Merge branch 'develop' of https://github.com/ciderapp/Cider into develop
This commit is contained in:
commit
d176a88694
2 changed files with 17 additions and 0 deletions
|
@ -15,6 +15,19 @@ const MusicKitObjects = {
|
|||
}
|
||||
}
|
||||
|
||||
const CiderFrontAPI = {
|
||||
Objects: {
|
||||
MenuEntry: function () {
|
||||
this.id = ""
|
||||
this.name = ""
|
||||
this.onClick = ()=>{}
|
||||
}
|
||||
},
|
||||
AddMenuEntry(entry) {
|
||||
app.pluginMenuEntries.push(entry)
|
||||
}
|
||||
}
|
||||
|
||||
const MusicKitTools = {
|
||||
getHeader() {
|
||||
return new Headers({
|
||||
|
@ -63,6 +76,7 @@ const app = new Vue({
|
|||
platform: "",
|
||||
mk: {},
|
||||
quickPlayQuery: "",
|
||||
pluginMenuEntries: [],
|
||||
lz: ipcRenderer.sendSync("get-i18n", "en_US"),
|
||||
lzListing: ipcRenderer.sendSync("get-i18n-listing"),
|
||||
search: {
|
||||
|
|
|
@ -114,6 +114,9 @@
|
|||
style="right:2.5px;"><%- include("../svg/log-out.svg") %></span>
|
||||
<span class="usermenu-item-name">{{$root.getLz('term.logout')}}</span>
|
||||
</button>
|
||||
<button class="usermenu-item" @click="entry.onClick()" v-for="entry in pluginMenuEntries">
|
||||
{{ entry.name }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</transition>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue