@@ -21,7 +21,7 @@
ref="searchInput"
style="width:100%;"
spellcheck="false"
- :placeholder="app.getLz('term.search') + '...'"
+ :placeholder="$root.getLz('term.search') + '...'"
v-model="searchQuery"
@input="search()"
class="search-input">
diff --git a/src/renderer/views/components/libraryartist-item.ejs b/src/renderer/views/components/libraryartist-item.ejs
index 771163c6..48a16c00 100644
--- a/src/renderer/views/components/libraryartist-item.ejs
+++ b/src/renderer/views/components/libraryartist-item.ejs
@@ -98,7 +98,7 @@
normal: {
items: [
{
- "name": app.getLz('action.goToArtist'),
+ "name": $root.getLz('action.goToArtist'),
"icon": "./assets/feather/user.svg",
"action": function () {
app.searchAndNavigate(self.item, 'artist')
@@ -107,7 +107,7 @@
},
{
"icon": "./assets/feather/radio.svg",
- "name": app.getLz('action.startRadio'),
+ "name": $root.getLz('action.startRadio'),
"action": function () {
app.mk.setStationQueue({song: self.item.attributes.playParams.id ?? self.item.id}).then(() => {
app.mk.play()
@@ -117,7 +117,7 @@
},
{
"icon": "./assets/feather/share.svg",
- "name": app.getLz('action.share'),
+ "name": $root.getLz('action.share'),
"action": function () {
if (!self.item.attributes.url && self.item.relationships){
if (self.item.relationships.catalog){
diff --git a/src/renderer/views/components/mediaitem-list-item.ejs b/src/renderer/views/components/mediaitem-list-item.ejs
index 7d8b21c6..34ebefea 100644
--- a/src/renderer/views/components/mediaitem-list-item.ejs
+++ b/src/renderer/views/components/mediaitem-list-item.ejs
@@ -231,7 +231,7 @@
multiple: {
items: [
{
- "name": app.getLz('action.addToPlaylist'),
+ "name": $root.getLz('action.addToPlaylist'),
"icon": "./assets/feather/plus.svg",
"action": function () {
app.promptAddToPlaylist()
@@ -287,7 +287,7 @@
{
"icon": "./assets/feather/heart.svg",
"id": "love",
- "name": this.app.getLz('action.love'),
+ "name": this.$root.getLz('action.love'),
"hidden": false,
"disabled": true,
"action": function () {
@@ -298,7 +298,7 @@
"icon": "./assets/feather/heart.svg",
"id": "unlove",
"active": true,
- "name": this.app.getLz('action.unload'),
+ "name": this.$root.getLz('action.unload'),
"hidden": true,
"action": function () {
app.unlove(self.item)
@@ -307,7 +307,7 @@
{
"icon": "./assets/feather/thumbs-down.svg",
"id": "dislike",
- "name": this.app.getLz('action.dislike'),
+ "name": this.$root.getLz('action.dislike'),
"hidden": false,
"disabled": true,
"action": function () {
@@ -317,7 +317,7 @@
{
"icon": "./assets/feather/thumbs-down.svg",
"id": "undo_dislike",
- "name": this.app.getLz('action.undoDislike'),
+ "name": this.$root.getLz('action.undoDislike'),
"active": true,
"hidden": true,
"action": function () {
@@ -329,7 +329,7 @@
{
"id": "addToLibrary",
"icon": "./assets/feather/plus.svg",
- "name": this.app.getLz('action.addToLibrary'),
+ "name": this.$root.getLz('action.addToLibrary'),
"hidden": false,
"disabled": true,
"action": function () {
@@ -339,7 +339,7 @@
{
"id": "removeFromLibrary",
"icon": "./assets/feather/x-circle.svg",
- "name": app.getLz('action.removeFromLibrary'),
+ "name": $root.getLz('action.removeFromLibrary'),
"hidden": true,
"action": function () {
self.removeFromLibrary()
@@ -347,13 +347,13 @@
},
{
"icon": "./assets/feather/list.svg",
- "name": app.getLz('action.addToPlaylist'),
+ "name": $root.getLz('action.addToPlaylist'),
"action": function () {
app.promptAddToPlaylist()
}
},
{
- "name": app.getLz('action.playNext'),
+ "name": $root.getLz('action.playNext'),
"icon": "./assets/arrow-bend-up.svg",
"action": function () {
app.mk.playNext({[self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id})
@@ -362,7 +362,7 @@
}
},
{
- "name": app.getLz('action.playLater'),
+ "name": $root.getLz('action.playLater'),
"icon": "./assets/arrow-bend-down.svg",
"action": function () {
app.mk.playLater({[self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id})
@@ -372,7 +372,7 @@
},
{
"icon": "./assets/feather/radio.svg",
- "name": app.getLz('action.startRadio'),
+ "name": $root.getLz('action.startRadio'),
"action": function () {
app.mk.setStationQueue({song: self.item.attributes.playParams.id ?? self.item.id}).then(() => {
app.mk.play()
@@ -382,21 +382,21 @@
},
{
"icon": "./assets/feather/user.svg",
- "name": app.getLz('action.goToArtist'),
+ "name": $root.getLz('action.goToArtist'),
"action": function () {
app.searchAndNavigate(self.item, 'artist')
}
},
{
"icon": "./assets/feather/disc.svg",
- "name": app.getLz('action.goToAlbum'),
+ "name": $root.getLz('action.goToAlbum'),
"action": function () {
app.searchAndNavigate(self.item, 'album')
}
},
{
"icon": "./assets/feather/share.svg",
- "name": app.getLz('action.share'),
+ "name": $root.getLz('action.share'),
"action": function () {
if (!self.item.attributes.url && self.item.relationships){
if (self.item.relationships.catalog){
diff --git a/src/renderer/views/components/mediaitem-square.ejs b/src/renderer/views/components/mediaitem-square.ejs
index 4145fd78..eab5a222 100644
--- a/src/renderer/views/components/mediaitem-square.ejs
+++ b/src/renderer/views/components/mediaitem-square.ejs
@@ -299,7 +299,7 @@
{
"icon": "./assets/feather/heart.svg",
"id": "love",
- "name": app.getLz('action.love'),
+ "name": $root.getLz('action.love'),
"hidden": false,
"disabled": true,
"action": function () {
@@ -310,7 +310,7 @@
"icon": "./assets/feather/heart.svg",
"id": "unlove",
"active": true,
- "name": app.getLz('action.unlove'),
+ "name": $root.getLz('action.unlove'),
"hidden": true,
"action": function () {
app.unlove(self.item)
@@ -319,7 +319,7 @@
{
"icon": "./assets/feather/thumbs-down.svg",
"id": "dislike",
- "name": app.getLz('action.dislike'),
+ "name": $root.getLz('action.dislike'),
"hidden": false,
"disabled": true,
"action": function () {
@@ -329,7 +329,7 @@
{
"icon": "./assets/feather/thumbs-down.svg",
"id": "undo_dislike",
- "name": app.getLz('action.undoDislike'),
+ "name": $root.getLz('action.undoDislike'),
"active": true,
"hidden": true,
"action": function () {
@@ -341,7 +341,7 @@
{
"icon": "./assets/feather/list.svg",
"id": "addToPlaylist",
- "name": app.getLz('action.addToPlaylist'),
+ "name": $root.getLz('action.addToPlaylist'),
"action": function () {
app.promptAddToPlaylist()
}
@@ -349,7 +349,7 @@
{
"id": "addToLibrary",
"icon": "./assets/feather/plus.svg",
- "name": app.getLz('action.addToLibrary'),
+ "name": $root.getLz('action.addToLibrary'),
"hidden": false,
"disabled": true,
"action": function () {
@@ -362,7 +362,7 @@
{
"id": "removeFromLibrary",
"icon": "./assets/feather/x-circle.svg",
- "name": app.getLz('action.removeFromLibrary'),
+ "name": $root.getLz('action.removeFromLibrary'),
"hidden": true,
"action": async function () {
console.log("remove");
@@ -373,7 +373,7 @@
}
},
{
- "name": app.getLz('action.playNext'),
+ "name": $root.getLz('action.playNext'),
"icon": "./assets/arrow-bend-up.svg",
"action": function () {
app.mk.playNext({[self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id})
@@ -382,7 +382,7 @@
}
},
{
- "name": app.getLz('action.playLater'),
+ "name": $root.getLz('action.playLater'),
"icon": "./assets/arrow-bend-down.svg",
"action": function () {
app.mk.playLater({[self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id})
@@ -392,7 +392,7 @@
},
{
"icon": "./assets/feather/share.svg",
- "name": app.getLz('action.share'),
+ "name": $root.getLz('action.share'),
"action": function () {
self.app.copyToClipboard(self.item.attributes.url)
}
diff --git a/src/renderer/views/components/queue-item.ejs b/src/renderer/views/components/queue-item.ejs
index 7cb6527e..0dd56c64 100644
--- a/src/renderer/views/components/queue-item.ejs
+++ b/src/renderer/views/components/queue-item.ejs
@@ -48,7 +48,7 @@
let self = this
CiderContextMenu.Create(event, {
items: [{
- "name": app.getLz('action.removeFromQueue'),
+ "name": $root.getLz('action.removeFromQueue'),
"action": function () {
}
diff --git a/src/renderer/views/components/queue.ejs b/src/renderer/views/components/queue.ejs
index 3fa55806..e10686e6 100644
--- a/src/renderer/views/components/queue.ejs
+++ b/src/renderer/views/components/queue.ejs
@@ -2,7 +2,7 @@
-
+
@@ -33,7 +33,7 @@
@@ -76,7 +76,7 @@
let menus = {
single: {
items: [{
- "name": app.getLz('action.removeFromQueue'),
+ "name": $root.getLz('action.removeFromQueue'),
"action": function () {
self.queueItems.splice(position, 1)
app.mk.queue._queueItems = self.queueItems;
@@ -84,7 +84,7 @@
}
},
{
- "name": app.getLz('action.startRadio'),
+ "name": $root.getLz('action.startRadio'),
"action": function () {
app.mk.setStationQueue({
song: item.attributes.playParams.id ?? item.id
diff --git a/src/renderer/views/components/sidebar-playlist.ejs b/src/renderer/views/components/sidebar-playlist.ejs
index c6031928..e9c03b37 100644
--- a/src/renderer/views/components/sidebar-playlist.ejs
+++ b/src/renderer/views/components/sidebar-playlist.ejs
@@ -105,7 +105,7 @@
let menu = {
items: {
"moveToParent": {
- name: app.getLz('action.moveToTop'),
+ name: $root.getLz('action.moveToTop'),
action: () => {
let self = this
this.move(this.item, {
@@ -116,7 +116,7 @@
}
},
"rename": {
- name: app.getLz('action.rename'),
+ name: $root.getLz('action.rename'),
action: () => {
this.renaming = true
setTimeout(()=>{
@@ -126,13 +126,13 @@
}
},
"deleteFromPlaylist": {
- name: app.getLz('action.removeFromLibrary'),
+ name: $root.getLz('action.removeFromLibrary'),
action: () => {
this.$root.deletePlaylist(playlist_id)
}
},
"addToFavorites": {
- name: app.getLz('action.addToFavorites'),
+ name: $root.getLz('action.addToFavorites'),
disabled: true,
hidden: true,
action: () => {
diff --git a/src/renderer/views/pages/artist-feed.ejs b/src/renderer/views/pages/artist-feed.ejs
index 2a354bd8..1bf68087 100644
--- a/src/renderer/views/pages/artist-feed.ejs
+++ b/src/renderer/views/pages/artist-feed.ejs
@@ -5,7 +5,7 @@
-
{{app.getLz('home.followedArtists')}}
+ {{$root.getLz('home.followedArtists')}}
@@ -15,7 +15,7 @@
{{$root.getLz('action.unfollow')}}
@@ -30,7 +30,7 @@
-
{{app.getLz('home.artistsFeed')}}
+ {{$root.getLz('home.artistsFeed')}}
diff --git a/src/renderer/views/pages/artist.ejs b/src/renderer/views/pages/artist.ejs
index 07300f6f..05fa3334 100644
--- a/src/renderer/views/pages/artist.ejs
+++ b/src/renderer/views/pages/artist.ejs
@@ -60,7 +60,7 @@
-
{{app.getLz('term.latestReleases')}}
+
{{$root.getLz('term.latestReleases')}}
@@ -70,10 +70,10 @@
-
{{app.getLz('term.topSongs')}}
+ {{$root.getLz('term.topSongs')}}
-
+
- {{app.getLz('term.showMore')}}
+ {{$root.getLz('term.showMore')}}
- {{app.getLz('term.showLess')}}
+ {{$root.getLz('term.showLess')}}
@@ -120,7 +120,7 @@
-
{{ app.getLz('term.about') }} {{ data.attributes.name }}
+
{{ $root.getLz('term.about') }} {{ data.attributes.name }}
@@ -164,14 +164,14 @@
let followActions = {
follow: {
icon: "./assets/feather/plus-circle.svg",
- name: app.getLz('action.follow'),
+ name: $root.getLz('action.follow'),
action: ()=>{
self.app.cfg.home.followedArtists.push(self.data.id)
}
},
unfollow: {
icon: "./assets/feather/x-circle.svg",
- name: app.getLz('action.unfollow'),
+ name: $root.getLz('action.unfollow'),
action: ()=>{
let index = self.app.cfg.home.followedArtists.indexOf(self.data.id)
if (index > -1) {
@@ -187,7 +187,7 @@
items: [
{
icon: "./assets/feather/play.svg",
- name: app.getLz('action.startRadio'),
+ name: $root.getLz('action.startRadio'),
action: ()=>{
app.mk.setStationQueue({artist:self.data.id}).then(()=>{
app.mk.play()
@@ -197,7 +197,7 @@
followActions[followAction],
{
icon: "./assets/feather/share.svg",
- name: app.getLz('action.share'),
+ name: $root.getLz('action.share'),
action: ()=>{
self.app.copyToClipboard(self.data.attributes.url)
}
diff --git a/src/renderer/views/pages/cider-playlist.ejs b/src/renderer/views/pages/cider-playlist.ejs
index b326b8ce..02429039 100644
--- a/src/renderer/views/pages/cider-playlist.ejs
+++ b/src/renderer/views/pages/cider-playlist.ejs
@@ -48,7 +48,7 @@
@@ -57,26 +57,26 @@
-
@@ -318,7 +318,7 @@
return {
normal: [
{
- name: app.getLz('action.removeFromPlaylist'),
+ name: $root.getLz('action.removeFromPlaylist'),
action: () => {
self.remove()
}
@@ -326,7 +326,7 @@
],
multiple: [
{
- name: app.getLz('action.removeFromPlaylist'),
+ name: $root.getLz('action.removeFromPlaylist'),
action: () => {
self.remove()
}
@@ -429,13 +429,13 @@
if (date == null || date === "") return "";
switch (date) {
case this.data.attributes.releaseDate:
- prefix = this.app.getLz('term.time.released')+ ' '
+ prefix = this.$root.getLz('term.time.released')+ ' '
break;
case this.data.attributes.lastModifiedDate:
- prefix = this.app.getLz('term.time.updated')+ ' '
+ prefix = this.$root.getLz('term.time.updated')+ ' '
break;
case this.data.attributes.dateAdded:
- prefix = this.app.getLz('term.time.added')+ ' '
+ prefix = this.$root.getLz('term.time.added')+ ' '
break;
}
let month, year;
diff --git a/src/renderer/views/pages/collection-list.ejs b/src/renderer/views/pages/collection-list.ejs
index 391206ba..92928e64 100644
--- a/src/renderer/views/pages/collection-list.ejs
+++ b/src/renderer/views/pages/collection-list.ejs
@@ -15,7 +15,7 @@
{{app.getLz('term.showMore')}}
+ v-observe-visibility="{callback: visibilityChanged}">{{$root.getLz('term.showMore')}}
diff --git a/src/renderer/views/pages/home.ejs b/src/renderer/views/pages/home.ejs
index 3f6dda0f..1c9a4c86 100644
--- a/src/renderer/views/pages/home.ejs
+++ b/src/renderer/views/pages/home.ejs
@@ -18,7 +18,7 @@
{{$root.getLz('home.artistsFeed')}}
- {{app.getLz('term.seeAll')}}
+ {{$root.getLz('term.seeAll')}}
@@ -60,7 +60,7 @@
{{$root.getLz('home.friendsListeningTo')}}
- {{app.getLz('term.seeAll')}}
+ {{$root.getLz('term.seeAll')}}
diff --git a/src/renderer/views/pages/library-songs.ejs b/src/renderer/views/pages/library-songs.ejs
index 567d2884..7ac34ab7 100644
--- a/src/renderer/views/pages/library-songs.ejs
+++ b/src/renderer/views/pages/library-songs.ejs
@@ -10,7 +10,7 @@
@@ -19,24 +19,24 @@
diff --git a/src/renderer/views/pages/listen_now.ejs b/src/renderer/views/pages/listen_now.ejs
index d33a44ec..62e35eef 100644
--- a/src/renderer/views/pages/listen_now.ejs
+++ b/src/renderer/views/pages/listen_now.ejs
@@ -1,6 +1,6 @@