From bff3abd16c63005873afc1020d03a1342f238031 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Mon, 18 Jan 2021 14:51:53 +0100 Subject: [PATCH] further move functionality into store and services --- CHANGELOG.md | 2 + src/App.vue | 15 ++ src/components/Table.vue | 12 +- src/main.js | 1 - src/services/Player.js | 74 +++++++ src/services/RadioApi.js | 153 +++++++++++++ src/services/RadioBrowserApi.js | 104 +++++++++ src/store/favorites.js | 55 +++++ src/store/main.js | 2 + src/store/player.js | 16 ++ src/store/recent.js | 67 ++++++ src/views/Main.vue | 377 ++++++++++++++++++++++++++++++++ 12 files changed, 873 insertions(+), 5 deletions(-) create mode 100644 src/services/Player.js create mode 100644 src/services/RadioApi.js create mode 100644 src/services/RadioBrowserApi.js create mode 100644 src/store/recent.js create mode 100644 src/views/Main.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f58739..23ad935 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ [234](https://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/234) @onny - Move menuState and volumeState into localStorage [236](https://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/236) @onny +- Create seperate store modules for player, favorites and recent + [239](https://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/239) @onny ## 1.0.1 - 2020-12 ### Added diff --git a/src/App.vue b/src/App.vue index d2d04ad..06b500e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -23,3 +23,18 @@ + + diff --git a/src/components/Table.vue b/src/components/Table.vue index b5a51fd..891c385 100644 --- a/src/components/Table.vue +++ b/src/components/Table.vue @@ -42,9 +42,9 @@ class="stationIcon" width="32" height="32" - :hash="station.blurHash" + :hash="station.blurHash || 'L1TSUA?bj[?b~qfQfQj[ayfQfQfQ'" :src="station.favicon" /> - + @@ -54,14 +54,14 @@ {{ t('radio', 'Add to favorites') }} @@ -100,6 +100,7 @@ + +