From 84b6003fe1f6bff76b907bdf6908d8643ebee7d1 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sat, 21 Nov 2020 10:50:26 +0100 Subject: [PATCH] prefill stations if window size too big --- package-lock.json | 5 +++++ package.json | 1 + src/components/Main.vue | 42 +++++++++++++++++++++++++------------- src/components/Sidebar.vue | 8 ++++---- src/components/Table.vue | 2 +- src/main.js | 2 ++ 6 files changed, 41 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8151682..b6b765c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11321,6 +11321,11 @@ "resolved": "https://registry.npmjs.org/vue-resize/-/vue-resize-0.4.5.tgz", "integrity": "sha512-bhP7MlgJQ8TIkZJXAfDf78uJO+mEI3CaLABLjv0WNzr4CcGRGPIAItyWYnP6LsPA4Oq0WE+suidNs6dgpO4RHg==" }, + "vue-resize-observer": { + "version": "1.0.32", + "resolved": "https://registry.npmjs.org/vue-resize-observer/-/vue-resize-observer-1.0.32.tgz", + "integrity": "sha512-Hz1xigu7RmEf4/7eO6Z7OhbYhaTJo87rEZu5XbzbvHn3+MUTMJe/FCtSowe+rwBc7WaPsKcxDp3izMIDUXe5Eg==" + }, "vue-router": { "version": "3.4.9", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.4.9.tgz", diff --git a/package.json b/package.json index ef91c26..05957ed 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "vue": "^2.6.12", "vue-blurhash": "^0.1.2", "vue-clipboard2": "^0.3.1", + "vue-resize-observer": "^1.0.32", "vue-router": "^3.4.9", "vuex": "^3.5.1" }, diff --git a/src/components/Main.vue b/src/components/Main.vue index da9dedf..8afe3e8 100644 --- a/src/components/Main.vue +++ b/src/components/Main.vue @@ -4,7 +4,8 @@ :station-data="tableData" /> 0 && (vm.$route.name === 'FAVORITES' || vm.$route.name === 'RECENT')) { @@ -362,7 +377,6 @@ export default { } } }, - loadSettings() { axios.defaults.headers.common = { diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index ff5df09..d99c2f8 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -9,7 +9,7 @@
- Stream URL + {{ t('radio', 'Stream URL') }}
@@ -23,7 +23,7 @@
- Homepage + {{ t('radio', 'Homepage') }}
@@ -38,7 +38,7 @@
- Country & Language + {{ t('radio', 'Country & Language') }}
@@ -49,7 +49,7 @@
- Codec & Bitrate + {{ t('radio', 'Codec & Bitrate') }}
diff --git a/src/components/Table.vue b/src/components/Table.vue index cbba36c..9f48816 100644 --- a/src/components/Table.vue +++ b/src/components/Table.vue @@ -1,5 +1,5 @@