From a787b0b9b30b8ae584166537ccb62def5f3232cd Mon Sep 17 00:00:00 2001 From: GamingLiamStudios <58615717+GamingLiamStudios@users.noreply.github.com> Date: Wed, 25 May 2022 09:28:11 +1000 Subject: [PATCH 1/4] Update en_OWO.json --- src/i18n/en_OWO.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/i18n/en_OWO.json b/src/i18n/en_OWO.json index 4fae9fb1..eb9848ac 100644 --- a/src/i18n/en_OWO.json +++ b/src/i18n/en_OWO.json @@ -52,6 +52,7 @@ "term.navigateForward": "Nyavigate fowwawd", "term.play": "Pway", "term.pause": "Pause", + "term.stop": "Stop", "term.previous": "Pwevious", "term.next": "Nyext", "term.shuffle": "Shuffwe", @@ -257,6 +258,9 @@ "action.tray.minimize": "Minyimize to Tway", "action.tray.quit": "Quit", "action.tray.show": "Show Cidew", + "action.tray.playpause": "Pway/Pause", + "action.tray.next": "Nyext", + "action.tray.previous": "Pwevious", "action.update": "Update", "action.install": "Instaww", "action.copy": "Copy", From b831ec63fb0849527af7b38c22e3525b956a6deb Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Wed, 25 May 2022 02:53:39 +0100 Subject: [PATCH 2/4] apple be thinking differently --- src/renderer/views/components/mediaitem-square.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/views/components/mediaitem-square.ejs b/src/renderer/views/components/mediaitem-square.ejs index 64dde269..1d586a08 100644 --- a/src/renderer/views/components/mediaitem-square.ejs +++ b/src/renderer/views/components/mediaitem-square.ejs @@ -120,7 +120,7 @@ } }, getSubtitle() { - if (this.kind == 'card') { + if (this.kind == 'card' || this.item.type == "playlists") { try { if (typeof this.item.attributes.artistNames != "undefined") { return this.item.attributes.artistNames @@ -143,7 +143,7 @@ } }, getSubtitleNavigation() { - if (this.kind == 'card') { + if (this.kind == 'card' || this.item.type == "playlists") { try { if (typeof this.item.attributes.artistNames != "undefined") { return app.routeView(this.item) From ad570e969b6bce9c7b0c2cc3b34c065c1ab66abd Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Wed, 25 May 2022 03:04:26 +0100 Subject: [PATCH 3/4] description --- .../views/components/mediaitem-square.ejs | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/renderer/views/components/mediaitem-square.ejs b/src/renderer/views/components/mediaitem-square.ejs index 1d586a08..44ac5ce9 100644 --- a/src/renderer/views/components/mediaitem-square.ejs +++ b/src/renderer/views/components/mediaitem-square.ejs @@ -109,20 +109,21 @@ }, methods: { getBgColor() { - let color = `#${(this.item.attributes.artwork != null && this.item.attributes.artwork.bgColor != null) ? (this.item.attributes.artwork.bgColor) : ``}` - return color + return `#${(this.item.attributes.artwork != null && this.item.attributes.artwork.bgColor != null) ? (this.item.attributes.artwork.bgColor) : ``}` }, getContextMenu(event) { - if (this.item.type == "artists") { + if (this.item.type === "artists") { return this.artistMenu(event) } else { return this.contextMenu(event) } }, getSubtitle() { - if (this.kind == 'card' || this.item.type == "playlists") { + if (this.kind === 'card' || this.item.type === "playlists") { try { - if (typeof this.item.attributes.artistNames != "undefined") { + if (typeof this.item.attributes.description.standard != "undefined") { + return this.item.attributes.description.standard + } else if (typeof this.item.attributes.artistNames != "undefined") { return this.item.attributes.artistNames } else if (typeof this.item.attributes.editorialNotes != "undefined") { return this.item?.attributes?.editorialNotes?.short ?? (this.item.attributes?.editorialNotes?.name ?? '') @@ -143,16 +144,12 @@ } }, getSubtitleNavigation() { - if (this.kind == 'card' || this.item.type == "playlists") { + if (this.kind === 'card' || this.item.type === "playlists") { try { - if (typeof this.item.attributes.artistNames != "undefined") { - return app.routeView(this.item) - } else if (typeof this.item.attributes.editorialNotes != "undefined") { - return app.routeView(this.item) - } else if (typeof this.item.attributes.artistName != "undefined") { - return app.searchAndNavigate(this.item,'artist') + if (typeof this.item.attributes.artistName != "undefined") { + return app.searchAndNavigate(this.item,'artist') } else { - return app.routeView(this.item) + return app.routeView(this.item) } }catch(e) { return app.routeView(this.item) From df16909e1fa75db9bee1c4605deefe434cedba63 Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Wed, 25 May 2022 03:05:08 +0100 Subject: [PATCH 4/4] formatted --- .../views/components/mediaitem-square.ejs | 1119 +++++++++-------- 1 file changed, 570 insertions(+), 549 deletions(-) diff --git a/src/renderer/views/components/mediaitem-square.ejs b/src/renderer/views/components/mediaitem-square.ejs index 44ac5ce9..def03ae3 100644 --- a/src/renderer/views/components/mediaitem-square.ejs +++ b/src/renderer/views/components/mediaitem-square.ejs @@ -1,573 +1,594 @@ \ No newline at end of file