diff --git a/server/plugins-manager.js b/server/plugins-manager.js index a1b13a4c..d0d9452c 100644 --- a/server/plugins-manager.js +++ b/server/plugins-manager.js @@ -43,6 +43,32 @@ class PluginsManager { } } } + + /** + * Install a Plugin + * @param {string} tarGzFileURL The url of tar.gz file + * @param {number} userID User ID - Used for streaming installing progress + */ + installPlugin(tarGzFileURL, userID = undefined) { + + } + + /** + * Remove a plugin + * @param pluginID + */ + removePlugin(pluginID) { + + } + + /** + * Update a plugin + * Only available for plugins which were downloaded from the official list + * @param pluginID + */ + updatePlugin(pluginID) { + + } } class Plugin { diff --git a/src/components/PluginItem.vue b/src/components/PluginItem.vue index bfd5bd2d..a3ad9d8a 100644 --- a/src/components/PluginItem.vue +++ b/src/components/PluginItem.vue @@ -2,7 +2,10 @@
{{ plugin.description }}
++ {{ plugin.description }} +
+ {{ $t("Version") }}: {{ plugin.version }}