From ead0fbbd1ef3de24151c02c41f1f6fdecef5c679 Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Sat, 9 Mar 2019 21:43:41 +0000 Subject: [PATCH] Fix extra space on macOS in the plugins and themes panel and use BdMenuItems to add the super secret view --- .../partials/sidebarview/settingswrap.scss | 10 +++++----- client/src/ui/components/BdSettings.vue | 20 ++++++------------- 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/client/src/styles/partials/sidebarview/settingswrap.scss b/client/src/styles/partials/sidebarview/settingswrap.scss index b7141d45..e11cdcff 100644 --- a/client/src/styles/partials/sidebarview/settingswrap.scss +++ b/client/src/styles/partials/sidebarview/settingswrap.scss @@ -22,12 +22,12 @@ > .bd-scroller { overflow-y: scroll; + } + } - .bd-settings & { - .platform-darwin & { // sass-lint:disable-line class-name-format - padding-top: 22px; - } - } + .bd-settings & { + .platform-darwin & { // sass-lint:disable-line class-name-format + padding-top: 22px; } } diff --git a/client/src/ui/components/BdSettings.vue b/client/src/ui/components/BdSettings.vue index ec1daae0..b99f8532 100644 --- a/client/src/ui/components/BdSettings.vue +++ b/client/src/ui/components/BdSettings.vue @@ -20,7 +20,6 @@ -
@@ -38,8 +37,7 @@ - -
+
@@ -80,15 +78,13 @@ items: BdMenuItems.items, Settings, SettingsWrapper, - openMenuHandler: null, - superSecretMenu: false, - superSecretMenuActive: false + openMenuHandler: null }; }, props: ['active'], components: { SidebarView, Sidebar, SidebarItem, ContentColumn, - SettingsWrapper, SettingsPanel, CssEditorView, PluginsView, ThemesView, UpdaterView, ConnectivityView, SuperSecretView, + SettingsWrapper, SettingsPanel, CssEditorView, PluginsView, ThemesView, UpdaterView, ConnectivityView, MiGithubCircle, MiWeb, MiClose, MiTwitterCircle }, computed: { @@ -107,12 +103,6 @@ }, methods: { itemOnClick(id) { - if (id === 'superSecretMenu') { - this.item = 'supersecretmenu'; - this.superSecretMenuActive = true; - return; - } - this.superSecretMenuActive = false; this.item = this.items.find(item => item.id === id); }, closeContent() { @@ -138,7 +128,9 @@ Events.on('bd-open-menu', this.openMenuHandler = item => item && this.itemOnClick(this.items.find(i => i === item || i.id === item || i.contentid === item || i.set === item).id)); try { const currentUser = Reflection.module.byName('UserStore').getCurrentUser(); - this.superSecretMenu = ['81388395867156480', '98003542823944192', '249746236008169473', '284056145272766465', '478559353516064769'].includes(currentUser.id) + if (['81388395867156480', '98003542823944192', '249746236008169473', '284056145272766465', '478559353516064769'].includes(currentUser.id) || true) { + BdMenuItems.addVueComponent('BD Devs', 'Super Secret', SuperSecretView); + } } catch (err) {} }, destroyed() {