From 80351d6a0b3b2be69abd7edf28d1558e19d5e1a4 Mon Sep 17 00:00:00 2001 From: exttex Date: Fri, 20 Nov 2020 10:20:49 +0100 Subject: [PATCH] 1.1.10 --- app/background.js | 12 + app/client/src/App.vue | 16 +- app/client/src/components/AlbumTile.vue | 2 +- app/client/src/components/ArtistTile.vue | 2 +- app/client/src/components/PlaylistTile.vue | 2 +- app/client/src/components/TrackTile.vue | 6 +- app/client/src/locales/ar.json | 5 +- app/client/src/locales/cs.json | 141 +++++++++++ app/client/src/locales/de.json | 13 +- app/client/src/locales/el.json | 11 +- app/client/src/locales/en.json | 5 +- app/client/src/locales/es.json | 11 +- app/client/src/locales/fa.json | 5 +- app/client/src/locales/fil.json | 9 +- app/client/src/locales/fr.json | 25 +- app/client/src/locales/he.json | 5 +- app/client/src/locales/hi.json | 5 +- app/client/src/locales/hr.json | 261 +++++++++++---------- app/client/src/locales/hu.json | 5 +- app/client/src/locales/id.json | 15 +- app/client/src/locales/it.json | 19 +- app/client/src/locales/ko.json | 5 +- app/client/src/locales/pl.json | 19 +- app/client/src/locales/pt.json | 25 +- app/client/src/locales/ro.json | 51 ++-- app/client/src/locales/ru.json | 11 +- app/client/src/locales/sk.json | 17 +- app/client/src/locales/tr.json | 71 +++--- app/client/src/locales/uk.json | 17 +- app/client/src/locales/ur.json | 5 +- app/client/src/main.js | 42 +++- app/client/src/views/About.vue | 31 ++- app/client/src/views/FullscreenPlayer.vue | 27 +-- app/client/src/views/Library.vue | 2 +- app/client/src/views/PlaylistPage.vue | 2 +- app/package-lock.json | 7 +- app/package.json | 3 +- app/src/server.js | 16 ++ freezerpc.tar | Bin 10240 -> 0 bytes package.json | 2 +- 40 files changed, 621 insertions(+), 307 deletions(-) create mode 100644 app/client/src/locales/cs.json delete mode 100644 freezerpc.tar diff --git a/app/background.js b/app/background.js index ea1cbd1..9e4f87a 100644 --- a/app/background.js +++ b/app/background.js @@ -160,6 +160,18 @@ async function createWindow() { setThumbarButtons(); } +//Single instance +const singleInstanceLock = app.requestSingleInstanceLock(); +if (!singleInstanceLock) { + app.quit(); +} else { + app.on('second-instance', () => { + if (win) { + if (!win.visible) win.show(); + } + }); +} + //Create window app.on('ready', async () => { await startServer(); diff --git a/app/client/src/App.vue b/app/client/src/App.vue index 178b292..cd2a321 100644 --- a/app/client/src/App.vue +++ b/app/client/src/App.vue @@ -130,7 +130,8 @@ - mdi-information + mdi-information + mdi-update {{$t('About')}} @@ -325,6 +326,7 @@ export default { cancelSuggestions: false, globalSnackbar: false, version: null, + updateAvailable: false } }, methods: { @@ -413,6 +415,15 @@ export default { maximize() { const {ipcRenderer} = window.require('electron'); ipcRenderer.send('maximize'); + }, + async checkUpdate() { + try { + let res = await this.$axios('/updates'); + if (res.data) + this.updateAvailable = true; + } catch (_) { + this.updateAvailable = false; + } } }, computed: { @@ -451,6 +462,9 @@ export default { //Wait for volume to load if (this.$root.loadingPromise) await this.$root.loadingPromise; this.volume = this.$root.volume; + + //Check for update + this.checkUpdate(); }, created() { //Go to login if unauthorized diff --git a/app/client/src/components/AlbumTile.vue b/app/client/src/components/AlbumTile.vue index 384d831..fd637b9 100644 --- a/app/client/src/components/AlbumTile.vue +++ b/app/client/src/components/AlbumTile.vue @@ -1,6 +1,6 @@