Skip to content

Commit

Permalink
start of rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwiterrion committed Jun 5, 2024
1 parent 4c0d826 commit fdc1786
Show file tree
Hide file tree
Showing 10 changed files with 194 additions and 385 deletions.
13 changes: 13 additions & 0 deletions docs/documentation/app/builder/collaborate/_page.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# Collaborate

Wasmo 1.2.2 brings a new feature to collaborate inside the product. You can work together on a plugin by sharing it with collaborators. It's easy to share plugins with your entire team.

1. In Wasmo, on the left, click Share plugin.
2. Email can be added to two lists : the first to allow users to edit, view and share plugin, and the second, more restrictive, where users can only
edit and view plugins.
3. Click Update authorized people

<div style={{ display: 'flex', justifyContent: 'center', width: '100%', marginTop: '2rem' }}>
<img src="/wasmo/collaborate.png" width={500} style={{ borderRadius: '.5rem' }} />
</div>
7 changes: 7 additions & 0 deletions docs/documentation/app/builder/collaborate/layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Page from './page';

export const metadata = {
title: 'Builder - UI',
}

export default Page;
24 changes: 24 additions & 0 deletions docs/documentation/app/builder/collaborate/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"use client"

import Layout from '@/components/Layout';
import Page from './_page.mdx';

export default function Home() {

return <Layout
metadata={{
title: 'Wasmo - User Interface',
href: '/builder/ui'
}}
previous={{
href: "/builder/plugin-structure",
title: "Plugin structure"
}}
next={{
href: "/cli/ui",
title: "User interface"
}}>
<Page />
</Layout>

}
4 changes: 2 additions & 2 deletions docs/documentation/app/builder/ui/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export default function Home() {
href: '/builder/ui'
}}
previous={{
href: "/builder/plugin-structure",
title: "Plugin Structure"
href: "/builder/collaborate",
title: "Collaborate"
}}
next={{
href: "/cli/getting-started",
Expand Down
2 changes: 1 addition & 1 deletion docs/documentation/components/Sidebar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client"
const LINKS = {
Builder: ["Getting started", "Your first plugin", "Environment Variables", "Plugin Structure", 'UI'],
Builder: ["Getting started", "Your first plugin", "Environment Variables", "Plugin Structure", "Collaborate", 'UI'],
CLI: ["Getting started", "Core commands", "Configuration file"],
Integrations: ["Otoroshi"],
}
Expand Down
Binary file added docs/documentation/public/collaborate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions server/datastores/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ module.exports = class Datastore {

/**
* Save plugin information after build process
* @param {string} email
* @param {string} pluginId
* @param {string} newHash
* @param {string} generateWasmName
*/
putWasmInformationsToS3(email, pluginId, newHash, generateWasmName) { return Promise.resolve() }
putWasmInformationsToS3(pluginId, newHash, generateWasmName) { return Promise.resolve() }

/**
* Fetch wasm from datastore
Expand Down Expand Up @@ -93,10 +92,9 @@ module.exports = class Datastore {

/**
* Delete specific plugin
* @param {string} email
* @param {string} pluginId
*/
deletePlugin = (email, pluginId) => Promise.resolve()
deletePlugin = (pluginId) => Promise.resolve()

/**
* Update plugin content
Expand Down
Loading

0 comments on commit fdc1786

Please sign in to comment.