From a364043f5f8521d3804a27736c233e82937e75f0 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sat, 21 Nov 2020 23:21:44 +0100 Subject: [PATCH] adding krankerl config --- Makefile | 3 +++ krankerl.toml | 6 ++++++ src/components/Main.vue | 2 +- src/components/Sidebar.vue | 1 - src/main.js | 1 + 5 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 krankerl.toml diff --git a/Makefile b/Makefile index 6083b8c..92f2140 100644 --- a/Makefile +++ b/Makefile @@ -49,3 +49,6 @@ clean: clean-dev: rm -rf node_modules + +appstore: + krankerl package diff --git a/krankerl.toml b/krankerl.toml new file mode 100644 index 0000000..6c87aad --- /dev/null +++ b/krankerl.toml @@ -0,0 +1,6 @@ +[package] +before_cmds = [ + "composer install --no-dev -o", + "npm install --deps", + "npm run build", +] diff --git a/src/components/Main.vue b/src/components/Main.vue index 1a03c94..6ae2976 100644 --- a/src/components/Main.vue +++ b/src/components/Main.vue @@ -408,7 +408,7 @@ export default { loadSettings() { axios.defaults.headers.common = { - 'User-Agent': 'Nextcloud Radio App/1.0', + 'User-Agent': 'Nextcloud Radio App/' + this.$version, } this.$store.dispatch('getVolumeState') diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index d99c2f8..0b121f4 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -105,7 +105,6 @@ export default { this.$emit('toggleSidebar') }, copyLink() { - console.log(this.sidebarStation.favicon) this.$copyText(this.urlResolved).then( function() { showSuccess(t('radio', 'Link copied to clipboard')) diff --git a/src/main.js b/src/main.js index 5d81ee7..d45075f 100644 --- a/src/main.js +++ b/src/main.js @@ -38,6 +38,7 @@ Vue.prototype.n = translatePlural Vue.prototype.OC = window.OC Vue.prototype.OCA = window.OCA Vue.prototype.$apiUrl = 'https://de1.api.radio-browser.info' +Vue.prototype.$version = '1.0' Vue.use(VueClipboard) Vue.use(VueBlurHash)