From 5383581f8f467c3f26f2c0fa2586f1f11bde27c2 Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Fri, 23 Sep 2022 00:43:08 -0700 Subject: [PATCH] plugins adjustment --- src/renderer/main/ciderfrontapi.js | 9 +- src/renderer/main/vueapp.js | 1 + src/renderer/views/app/app-navigation.ejs | 291 ++++++++++------------ 3 files changed, 146 insertions(+), 155 deletions(-) diff --git a/src/renderer/main/ciderfrontapi.js b/src/renderer/main/ciderfrontapi.js index 8a7ef76a..95a57919 100644 --- a/src/renderer/main/ciderfrontapi.js +++ b/src/renderer/main/ciderfrontapi.js @@ -3,11 +3,16 @@ const CiderFrontAPI = { MenuEntry: function () { this.id = ""; this.name = ""; - this.onClick = () => {}; + this.onClick = () => { }; + this.top = false }, }, AddMenuEntry(entry) { - app.pluginMenuEntries.push(entry); + if (entry?.top) { + app.pluginMenuTopEntries.push(entry); + } else { + app.pluginMenuEntries.push(entry); + } app.pluginInstalled = true; }, StyleSheets: { diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index f11d4470..52fe2de6 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -18,6 +18,7 @@ const app = new Vue({ mk: {}, pluginInstalled: false, pluginMenuEntries: [], + pluginMenuTopEntries: [], lz: ipcRenderer.sendSync("get-i18n", "en_US"), lzListing: ipcRenderer.sendSync("get-i18n-listing"), radiohls: null, diff --git a/src/renderer/views/app/app-navigation.ejs b/src/renderer/views/app/app-navigation.ejs index 7e03c957..bf6da9dc 100644 --- a/src/renderer/views/app/app-navigation.ejs +++ b/src/renderer/views/app/app-navigation.ejs @@ -1,166 +1,151 @@
- -
-
- - - + + - + - + - + - + - + - + - + + - + -
+ +
+
+ + + + + + +
+
+
+ + +
- - - - - - -
-
-
- - - -
-
- - -
-
- -
- -
-
+
+ + +
+
+ +
+ +
+