From b3218d636aac4210775c79f10d347c31f3930f8c Mon Sep 17 00:00:00 2001 From: Jiiks Date: Wed, 24 Jan 2018 07:47:04 +0200 Subject: [PATCH 1/8] Styling, common components and add buttons to plugin card --- .../modules/ui/components/bd/PluginCard.vue | 6 ++ .../modules/ui/components/bd/PluginsView.vue | 48 ---------- .../components/bd/templates/PluginCard.html | 17 +++- .../components/bd/templates/PluginsView.html | 2 +- .../modules/ui/components/generic/Button.vue | 11 +++ .../ui/components/generic/ButtonGroup.vue | 9 ++ .../modules/ui/components/generic/index.js | 4 +- client/src/styles/partials/buttons.scss | 88 +++++++++++++++++++ client/src/styles/partials/generic.scss | 31 ++----- 9 files changed, 140 insertions(+), 76 deletions(-) create mode 100644 client/src/modules/ui/components/generic/ButtonGroup.vue create mode 100644 client/src/styles/partials/buttons.scss diff --git a/client/src/modules/ui/components/bd/PluginCard.vue b/client/src/modules/ui/components/bd/PluginCard.vue index b17f57a7..e16d7d92 100644 --- a/client/src/modules/ui/components/bd/PluginCard.vue +++ b/client/src/modules/ui/components/bd/PluginCard.vue @@ -1,8 +1,14 @@ \ No newline at end of file diff --git a/client/src/modules/ui/components/bd/PluginsView.vue b/client/src/modules/ui/components/bd/PluginsView.vue index 87658df5..2aff281f 100644 --- a/client/src/modules/ui/components/bd/PluginsView.vue +++ b/client/src/modules/ui/components/bd/PluginsView.vue @@ -58,53 +58,5 @@ \ No newline at end of file diff --git a/client/src/modules/ui/components/bd/templates/PluginCard.html b/client/src/modules/ui/components/bd/templates/PluginCard.html index fe461549..d502bc1e 100644 --- a/client/src/modules/ui/components/bd/templates/PluginCard.html +++ b/client/src/modules/ui/components/bd/templates/PluginCard.html @@ -11,7 +11,22 @@
{{plugin.description}}
\ No newline at end of file diff --git a/client/src/modules/ui/components/bd/templates/PluginsView.html b/client/src/modules/ui/components/bd/templates/PluginsView.html index 8085fdd3..42bc1288 100644 --- a/client/src/modules/ui/components/bd/templates/PluginsView.html +++ b/client/src/modules/ui/components/bd/templates/PluginsView.html @@ -1,6 +1,6 @@
-
+

Local

diff --git a/client/src/modules/ui/components/generic/Button.vue b/client/src/modules/ui/components/generic/Button.vue index e69de29b..7e3763f6 100644 --- a/client/src/modules/ui/components/generic/Button.vue +++ b/client/src/modules/ui/components/generic/Button.vue @@ -0,0 +1,11 @@ + + \ No newline at end of file diff --git a/client/src/modules/ui/components/generic/ButtonGroup.vue b/client/src/modules/ui/components/generic/ButtonGroup.vue new file mode 100644 index 00000000..b7d427f6 --- /dev/null +++ b/client/src/modules/ui/components/generic/ButtonGroup.vue @@ -0,0 +1,9 @@ + + \ No newline at end of file diff --git a/client/src/modules/ui/components/generic/index.js b/client/src/modules/ui/components/generic/index.js index 3a5e1423..86eb7719 100644 --- a/client/src/modules/ui/components/generic/index.js +++ b/client/src/modules/ui/components/generic/index.js @@ -1,3 +1,5 @@ export { default as ScrollerWrap } from './ScrollerWrap.vue'; export { default as SettingSwitch } from './SettingSwitch.vue'; -export { default as FormButton } from './FormButton.vue'; \ No newline at end of file +export { default as FormButton } from './FormButton.vue'; +export { default as ButtonGroup } from './ButtonGroup.vue'; +export { default as Button } from './Button.vue'; \ No newline at end of file diff --git a/client/src/styles/partials/buttons.scss b/client/src/styles/partials/buttons.scss new file mode 100644 index 00000000..3e7ece20 --- /dev/null +++ b/client/src/styles/partials/buttons.scss @@ -0,0 +1,88 @@ +.bd-button { + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + color: #FFF; + text-align: center; + user-select: none; + font-weight: 500; + background: $colbdblue; + + &:not(.bd-disabled):hover { + background: darken($colbdblue, 5%); + } + + &.bd-disabled { + filter: grayscale(90%); + cursor: not-allowed; + } + + .bd-spinner-7 { + opacity: .3; + } +} + +.bd-button-group { + display: flex; + + .bd-button, + .bd-material-button { + &:first-of-type { + border-radius: 6px 0 0 6px; + } + + &:last-of-type { + border-radius: 0 6px 6px 0; + } + + &:not(:last-of-type) { + border-right: 1px solid rgba(114, 118, 126, 0.3); + } + + &:not(:first-of-type) { + border-left: 1px solid rgba(114, 118, 126, 0.1); + } + } +} + +.bd-tabheader { + .bd-button { + background: transparent; + border-bottom: 2px solid #2b2d31; + + h3 { + flex-grow: 1; + } + + .bd-material-button { + width: 30px; + height: 30px; + + .material-design-icon, + .bd-material-design-icon { + display: flex; + align-items: center; + fill: #FFF; + } + + &:hover { + background: #2d2f34; + } + } + + &:hover, + &.bd-active { + background: transparent; + border-bottom: 2px solid $colbdblue; + } + } +} + +.bd-material-button { + border-radius: 3px; + display: flex; + align-items: center; + align-content: center; + justify-content: center; +} \ No newline at end of file diff --git a/client/src/styles/partials/generic.scss b/client/src/styles/partials/generic.scss index 011331cf..81168aa8 100644 --- a/client/src/styles/partials/generic.scss +++ b/client/src/styles/partials/generic.scss @@ -1,3 +1,5 @@ +@import './buttons.scss'; + .bd-scroller-wrap { display: flex; width: 100%; @@ -55,30 +57,6 @@ backface-visibility: hidden; } -.bd-button { - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - color: #FFF; - text-align: center; - user-select: none; - font-weight: 500; - background: $colbdblue; - - &:not(.bd-disabled):hover { - background: darken($colbdblue, 5%); - } - - &.bd-disabled { - filter: grayscale(90%); - cursor: not-allowed; - } - - .bd-spinner-7 { - opacity: .3; - } -} .bd-form-item h5 { color: #b9bbbe; @@ -241,4 +219,7 @@ .bd-switch:before { background: #888888; } -} \ No newline at end of file +} + + + From 71ac54911ab1b2907322f165ab261ede6082bc73 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Wed, 24 Jan 2018 08:42:10 +0200 Subject: [PATCH 2/8] Styling --- .../modules/ui/components/bd/PluginCard.vue | 5 +++- .../components/bd/templates/PluginCard.html | 8 +++--- .../modules/ui/components/generic/Button.vue | 4 +-- client/src/styles/partials/bdsettings.scss | 25 ------------------- client/src/styles/partials/buttons.scss | 25 ++++++++++++++++++- client/src/styles/partials/generic.scss | 5 +--- client/src/styles/partials/plugincard.scss | 18 +++++++++---- 7 files changed, 48 insertions(+), 42 deletions(-) diff --git a/client/src/modules/ui/components/bd/PluginCard.vue b/client/src/modules/ui/components/bd/PluginCard.vue index e16d7d92..391b75ff 100644 --- a/client/src/modules/ui/components/bd/PluginCard.vue +++ b/client/src/modules/ui/components/bd/PluginCard.vue @@ -4,7 +4,10 @@ /*Imports*/ import { Button, ButtonGroup } from '../generic'; import MiSettings from 'vue-material-design-icons/settings.vue'; - const components = { MiSettings, Button, ButtonGroup }; + import MiReload from 'vue-material-design-icons/refresh.vue'; + import MiEdit from 'vue-material-design-icons/pencil.vue'; + import MiDelete from 'vue-material-design-icons/delete.vue'; + const components = { MiSettings, Button, ButtonGroup, MiReload, MiEdit, MiDelete }; export default { props: ['plugin', 'togglePlugin'], diff --git a/client/src/modules/ui/components/bd/templates/PluginCard.html b/client/src/modules/ui/components/bd/templates/PluginCard.html index d502bc1e..be77732e 100644 --- a/client/src/modules/ui/components/bd/templates/PluginCard.html +++ b/client/src/modules/ui/components/bd/templates/PluginCard.html @@ -17,13 +17,13 @@ -
diff --git a/client/src/modules/ui/components/generic/Button.vue b/client/src/modules/ui/components/generic/Button.vue index 7e3763f6..154ecbe7 100644 --- a/client/src/modules/ui/components/generic/Button.vue +++ b/client/src/modules/ui/components/generic/Button.vue @@ -1,11 +1,11 @@ \ No newline at end of file diff --git a/client/src/styles/partials/bdsettings.scss b/client/src/styles/partials/bdsettings.scss index 085f00a5..55d46a07 100644 --- a/client/src/styles/partials/bdsettings.scss +++ b/client/src/styles/partials/bdsettings.scss @@ -1,30 +1,5 @@ @import './plugincard.scss'; -.bd-pluginsView { - .bd-button { - text-align: center; - background: transparent; - h3 { - -webkit-user-select: none; - user-select: none; - display: block; - font-size: 1.17em; - margin-top: 1em; - margin-bottom: 1em; - margin-left: 0; - margin-right: 0; - font-weight: bold; - } - - &:hover, - &.bd-active { - color: #fff; - background: transparent; - border-bottom: 2px solid #3e82e5; - } - } -} - .bd-settings-button { position: absolute; z-index: 1; diff --git a/client/src/styles/partials/buttons.scss b/client/src/styles/partials/buttons.scss index 3e7ece20..2099515b 100644 --- a/client/src/styles/partials/buttons.scss +++ b/client/src/styles/partials/buttons.scss @@ -4,6 +4,7 @@ justify-content: center; cursor: pointer; color: #FFF; + background: #44474c; text-align: center; user-select: none; font-weight: 500; @@ -18,6 +19,18 @@ cursor: not-allowed; } + &.bd-err { + background: $colerr; + } + + &.bd-warn { + background: $colwarn; + } + + &.bd-ok { + background: $colok; + } + .bd-spinner-7 { opacity: .3; } @@ -28,6 +41,7 @@ .bd-button, .bd-material-button { + &:first-of-type { border-radius: 6px 0 0 6px; } @@ -49,9 +63,18 @@ .bd-tabheader { .bd-button { background: transparent; - border-bottom: 2px solid #2b2d31; + border-bottom: 2px solid rgba(114, 118, 126, 0.3); h3 { + -webkit-user-select: none; + user-select: none; + display: block; + font-size: 1.17em; + margin-top: 1em; + margin-bottom: 1em; + margin-left: 0; + margin-right: 0; + font-weight: bold; flex-grow: 1; } diff --git a/client/src/styles/partials/generic.scss b/client/src/styles/partials/generic.scss index 81168aa8..33e2e2b0 100644 --- a/client/src/styles/partials/generic.scss +++ b/client/src/styles/partials/generic.scss @@ -219,7 +219,4 @@ .bd-switch:before { background: #888888; } -} - - - +} \ No newline at end of file diff --git a/client/src/styles/partials/plugincard.scss b/client/src/styles/partials/plugincard.scss index 8386cf32..83a7f452 100644 --- a/client/src/styles/partials/plugincard.scss +++ b/client/src/styles/partials/plugincard.scss @@ -2,12 +2,11 @@ display: flex; flex-direction: column; flex-grow: 1; - background: #2f3136; - border: 1px solid #202225; + background: transparent; + border-bottom: 1px solid rgba(114, 118, 126, 0.3); padding: 10px 5px; min-height: 150px; color: #b9bbbe; - border-radius: 8px; margin-top: 10px; .bd-plugin-header { @@ -30,7 +29,6 @@ color: #8a8c90; font-size: 12px; font-weight: 600; - background: rgba(0,0,0,.05); padding: 5px; border-radius: 8px; margin-top: 5px; @@ -38,7 +36,6 @@ .bd-plugin-footer { display: flex; - justify-content: flex-end; flex-grow: 1; align-items: flex-end; @@ -46,6 +43,17 @@ color: rgba(255, 255, 255, 0.15); font-size: 10px; font-weight: 700; + flex-grow: 1; + } + + .bd-controls { + .bd-button-group { + .bd-button { + fill: #FFF; + width: 30px; + height: 30px; + } + } } } } From 1d9e6037d924ca433ae0232eaf7b9cac4ac95218 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Wed, 24 Jan 2018 08:43:04 +0200 Subject: [PATCH 3/8] Hover styles for alt colours --- client/src/styles/partials/buttons.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/client/src/styles/partials/buttons.scss b/client/src/styles/partials/buttons.scss index 2099515b..2066250d 100644 --- a/client/src/styles/partials/buttons.scss +++ b/client/src/styles/partials/buttons.scss @@ -21,14 +21,26 @@ &.bd-err { background: $colerr; + + &:hover { + background: darken($colerr, 5%); + } } &.bd-warn { background: $colwarn; + + &:hover { + background: darken($colwarn, 5%); + } } &.bd-ok { background: $colok; + + &:hover { + background: darken($colok, 5%); + } } .bd-spinner-7 { From 87b07d0a0e1bc02577c21aa9c91c1ae313bf9d80 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Wed, 24 Jan 2018 12:35:43 +0200 Subject: [PATCH 4/8] Change how plugins are reloaded --- client/src/modules/core/pluginmanager.js | 18 ++++++++++-------- .../modules/ui/components/bd/PluginCard.vue | 2 +- .../modules/ui/components/bd/PluginsView.vue | 6 +++++- .../ui/components/bd/templates/PluginCard.html | 2 +- .../components/bd/templates/PluginsView.html | 2 +- client/src/styles/partials/buttons.scss | 11 +++++++++++ tests/plugins/Example/index.js | 2 +- 7 files changed, 30 insertions(+), 13 deletions(-) diff --git a/client/src/modules/core/pluginmanager.js b/client/src/modules/core/pluginmanager.js index 881f26b2..0c094575 100644 --- a/client/src/modules/core/pluginmanager.js +++ b/client/src/modules/core/pluginmanager.js @@ -134,16 +134,18 @@ class PluginManager extends Module { } } - async loadPlugin(pluginPath) { + async loadPlugin(pluginPath, reload = false, index) { const { plugins } = this.state; const dirName = pluginPath; try { pluginPath = path.join(this.pluginsPath, pluginPath); - const loaded = plugins.find(plugin => plugin.pluginPath === pluginPath); - if (loaded) { - throw { 'message': 'Attempted to load an already loaded plugin' }; + if (!reload) { + const loaded = plugins.find(plugin => plugin.pluginPath === pluginPath); + if (loaded) { + throw { 'message': 'Attempted to load an already loaded plugin' }; + } } const readConfig = await this.readConfig(pluginPath); @@ -165,8 +167,8 @@ class PluginManager extends Module { const instance = new plugin({configs, info: readConfig.info, main: readConfig.main, paths: { pluginPath, dirName }}); if (instance.enabled) instance.start(); - - plugins.push(instance); + if (reload) plugins[index] = instance; + else plugins.push(instance); this.setState(plugins); @@ -184,9 +186,9 @@ class PluginManager extends Module { const { pluginPath, dirName } = _plugin; delete window.require.cache[window.require.resolve(pluginPath)]; - this.plugins.splice(index, 1); + // this.plugins.splice(index, 1); - return this.loadPlugin(dirName); + return this.loadPlugin(dirName, true, index); } //TODO make this nicer diff --git a/client/src/modules/ui/components/bd/PluginCard.vue b/client/src/modules/ui/components/bd/PluginCard.vue index 391b75ff..2cc3db9b 100644 --- a/client/src/modules/ui/components/bd/PluginCard.vue +++ b/client/src/modules/ui/components/bd/PluginCard.vue @@ -10,7 +10,7 @@ const components = { MiSettings, Button, ButtonGroup, MiReload, MiEdit, MiDelete }; export default { - props: ['plugin', 'togglePlugin'], + props: ['plugin', 'togglePlugin', 'reloadPlugin'], components, name: "PluginCard" } diff --git a/client/src/modules/ui/components/bd/PluginsView.vue b/client/src/modules/ui/components/bd/PluginsView.vue index 2aff281f..cdd6bcaf 100644 --- a/client/src/modules/ui/components/bd/PluginsView.vue +++ b/client/src/modules/ui/components/bd/PluginsView.vue @@ -35,7 +35,11 @@ } } - const methods = { showLocal, showOnline, refreshLocalPlugins, togglePlugin }; + function reloadPlugin(plugin) { + this.pluginManager.reloadPlugin(plugin.name); + } + + const methods = { showLocal, showOnline, refreshLocalPlugins, togglePlugin, reloadPlugin }; export default { components, diff --git a/client/src/modules/ui/components/bd/templates/PluginCard.html b/client/src/modules/ui/components/bd/templates/PluginCard.html index be77732e..c72ada3a 100644 --- a/client/src/modules/ui/components/bd/templates/PluginCard.html +++ b/client/src/modules/ui/components/bd/templates/PluginCard.html @@ -16,7 +16,7 @@ -
- +
diff --git a/client/src/styles/partials/buttons.scss b/client/src/styles/partials/buttons.scss index 2066250d..aace9376 100644 --- a/client/src/styles/partials/buttons.scss +++ b/client/src/styles/partials/buttons.scss @@ -10,6 +10,7 @@ font-weight: 500; background: $colbdblue; + &:not(.bd-disabled):hover { background: darken($colbdblue, 5%); } @@ -46,6 +47,11 @@ .bd-spinner-7 { opacity: .3; } + + .material-design-icon svg { + width: 18px; + height: 18px; + } } .bd-button-group { @@ -99,6 +105,11 @@ display: flex; align-items: center; fill: #FFF; + + svg { + width: 24px; + height: 24px; + } } &:hover { diff --git a/tests/plugins/Example/index.js b/tests/plugins/Example/index.js index 7a9253c4..0fc266e6 100644 --- a/tests/plugins/Example/index.js +++ b/tests/plugins/Example/index.js @@ -11,7 +11,7 @@ module.exports = (Plugin, Api, Vendor) => { } onStart() { - console.log('On Start!'); + console.log('On Start!!!!'); return true; } } From 17a8c2372b4bd19f8f3942ca4695dbc73c69eda3 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Wed, 24 Jan 2018 12:37:28 +0200 Subject: [PATCH 5/8] add some test settings for ui testing --- tests/plugins/Example/config.json | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/tests/plugins/Example/config.json b/tests/plugins/Example/config.json index 3bfcc1dd..0aa2bbd5 100644 --- a/tests/plugins/Example/config.json +++ b/tests/plugins/Example/config.json @@ -6,7 +6,20 @@ "description": "Example Plugin Description" }, "main": "index.js", - "defaultConfig": { - "foo": "bar" - } + "defaultConfig": [ + { + "id": "test-setting-1", + "type": "bool", + "value": false, + "text": "Bool Test Setting", + "hint": "Bool Test Setting Hint" + }, + { + "id": "test-setting-2", + "type": "text", + "value": "defaultValue", + "text": "Text Test Setting", + "hint": "Text Test Setting Hint" + } + ] } \ No newline at end of file From 38783631c5521f1dd14329d75f53aa7c19d3d50d Mon Sep 17 00:00:00 2001 From: Jiiks Date: Thu, 25 Jan 2018 07:13:40 +0200 Subject: [PATCH 6/8] Modal plugin settings, use [] instead of {} for plugin configs --- client/src/modules/core/pluginmanager.js | 21 ++++--- client/src/modules/index.js | 2 +- .../modules/ui/components/bd/PluginCard.vue | 20 +++++-- .../modules/ui/components/bd/PluginsView.vue | 22 +++---- .../components/bd/templates/PluginCard.html | 4 +- .../components/bd/templates/PluginsView.html | 28 ++++++++- .../ui/components/generic/SettingSwitch.vue | 2 +- .../ui/components/templates/BdSettings.html | 10 ++-- client/src/styles/partials/generic.scss | 33 ++++++++++- client/src/styles/partials/plugincard.scss | 57 +++++++++++++++++++ tests/plugins/Example 2/config.json | 8 ++- tests/plugins/Example/index.js | 2 +- 12 files changed, 173 insertions(+), 36 deletions(-) diff --git a/client/src/modules/core/pluginmanager.js b/client/src/modules/core/pluginmanager.js index 0c094575..2f0be7c3 100644 --- a/client/src/modules/core/pluginmanager.js +++ b/client/src/modules/core/pluginmanager.js @@ -17,7 +17,6 @@ class Plugin { constructor(pluginInternals) { this.__pluginInternals = pluginInternals; - this.userConfig.enabled = this.userConfig.enabled || false; this.start = this.start.bind(this); this.stop = this.stop.bind(this); } @@ -34,6 +33,7 @@ class Plugin { get pluginPath() { return this.paths.pluginPath } get dirName() { return this.paths.dirName } get enabled() { return this.userConfig.enabled } + get pluginConfig() { return this.userConfig.pluginConfig } start() { if (this.onStart) { @@ -152,10 +152,17 @@ class PluginManager extends Module { const mainPath = path.join(pluginPath, readConfig.main); const userConfigPath = path.join(pluginPath, 'user.config.json'); - let userConfig = readConfig.defaultConfig; + const userConfig = { + enabled: false, + pluginConfig: readConfig.defaultConfig + }; try { const readUserConfig = await FileUtils.readJsonFromFile(userConfigPath); - userConfig = Object.assign({}, userConfig, readUserConfig); + //userConfig = Object.assign({}, userConfig, readUserConfig); + userConfig.pluginConfig = readConfig.defaultConfig.map(config => { + const userSet = readUserConfig.pluginConfig.find(c => c.id === config.id); + return userSet || config; + }); } catch (err) {/*We don't care if this fails it either means that user config doesn't exist or there's something wrong with it so we revert to default config*/} const configs = { @@ -179,7 +186,7 @@ class PluginManager extends Module { } async reloadPlugin(plugin) { - const _plugin = this.findPlugin(plugin); + const _plugin = plugin instanceof Plugin ? plugin : this.findPlugin(plugin); if (!_plugin) throw { 'message': 'Attempted to reload a plugin that is not loaded?' }; if (!_plugin.stop()) throw { 'message': 'Plugin failed to stop!' }; const index = this.getPluginIndex(_plugin); @@ -209,7 +216,7 @@ class PluginManager extends Module { getPluginByDirName(dirName) { return this.plugins.find(p => p.dirName === dirName) } stopPlugin(name) { - const plugin = this.getPluginByName(name); + const plugin = name instanceof Plugin ? name : this.getPluginByName(name); try { if (plugin) return plugin.stop(); } catch (err) { @@ -219,7 +226,7 @@ class PluginManager extends Module { } startPlugin(name) { - const plugin = this.getPluginByName(name); + const plugin = name instanceof Plugin ? name : this.getPluginByName(name); try { if (plugin) return plugin.start(); } catch (err) { @@ -261,4 +268,4 @@ async function pluginManager(pluginName) { if (window.bdTests) window.bdTests.pluginManager = pluginManager; else window.bdTests = { pluginManager }; -module.exports = { PluginManager: _instance } \ No newline at end of file +module.exports = { PluginManager: _instance, Plugin } \ No newline at end of file diff --git a/client/src/modules/index.js b/client/src/modules/index.js index 76422440..5067ecda 100644 --- a/client/src/modules/index.js +++ b/client/src/modules/index.js @@ -1,6 +1,6 @@ export { Global } from './core/global'; export { Logger, Utils, FileUtils } from './core/utils'; -export { PluginManager } from './core/pluginmanager'; +export { PluginManager, Plugin } from './core/pluginmanager'; export { Pluging } from './core/plugin'; export { BDIpc } from './core/bdipc'; export { WebpackModules } from './core/webpackmodules'; diff --git a/client/src/modules/ui/components/bd/PluginCard.vue b/client/src/modules/ui/components/bd/PluginCard.vue index 2cc3db9b..9d1841c6 100644 --- a/client/src/modules/ui/components/bd/PluginCard.vue +++ b/client/src/modules/ui/components/bd/PluginCard.vue @@ -2,16 +2,28 @@ \ No newline at end of file diff --git a/client/src/modules/ui/components/bd/PluginsView.vue b/client/src/modules/ui/components/bd/PluginsView.vue index cdd6bcaf..1e57c92c 100644 --- a/client/src/modules/ui/components/bd/PluginsView.vue +++ b/client/src/modules/ui/components/bd/PluginsView.vue @@ -1,6 +1,6 @@ diff --git a/client/src/modules/ui/components/bd/templates/PluginCard.html b/client/src/modules/ui/components/bd/templates/PluginCard.html index c72ada3a..9bd5c75a 100644 --- a/client/src/modules/ui/components/bd/templates/PluginCard.html +++ b/client/src/modules/ui/components/bd/templates/PluginCard.html @@ -7,13 +7,14 @@
+
{{plugin.description}}
+
\ No newline at end of file diff --git a/client/src/modules/ui/components/bd/templates/PluginsView.html b/client/src/modules/ui/components/bd/templates/PluginsView.html index 1c8078da..aea6ed21 100644 --- a/client/src/modules/ui/components/bd/templates/PluginsView.html +++ b/client/src/modules/ui/components/bd/templates/PluginsView.html @@ -1,10 +1,11 @@ +

Local

- +
@@ -15,10 +16,33 @@
- +
+
+
+ {{settingsOpen.name}} Settings +
+
+
+
+

{{setting.text}}

+
+
+
+ +
+ +
+
+
\ No newline at end of file diff --git a/client/src/modules/ui/components/generic/SettingSwitch.vue b/client/src/modules/ui/components/generic/SettingSwitch.vue index c14db968..28aa91a0 100644 --- a/client/src/modules/ui/components/generic/SettingSwitch.vue +++ b/client/src/modules/ui/components/generic/SettingSwitch.vue @@ -4,7 +4,7 @@

{{setting.title || setting.text}}