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 @@
- -
-
- - - + + - + - + - + - + - + - + - + + - + -
+ +
+
+ + + + + + +
+
+
+ + +
- - - - - - -
-
-
- - - -
-
- - -
-
- -
- -
-
+
+ + +
+
+ +
+ +
+