From 9336aa180c06213bb8bdf3ced39c1a15b8ebeb21 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Mon, 26 Oct 2020 16:03:25 +0100 Subject: [PATCH] implement toggle mute --- appinfo/routes.php | 1 + src/assets/recent.svg | 5 +++++ src/components/Main.vue | 3 +++ src/components/Navigation.vue | 4 ++++ src/router.js | 5 +++++ src/store.js | 2 ++ 6 files changed, 20 insertions(+) create mode 100644 src/assets/recent.svg diff --git a/appinfo/routes.php b/appinfo/routes.php index 5173a98..27d8690 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -29,6 +29,7 @@ return [ 'routes' => [ ['name' => 'page#index', 'url' => '/', 'verb' => 'GET'], ['name' => 'page#index', 'url' => '/top', 'verb' => 'GET', 'postfix' => 'top'], + ['name' => 'page#index', 'url' => '/recent', 'verb' => 'GET', 'postfix' => 'recent'], ['name' => 'page#index', 'url' => '/new', 'verb' => 'GET', 'postfix' => 'new'], ['name' => 'page#index', 'url' => '/favorites', 'verb' => 'GET', 'postfix' => 'favorites'], ['name' => 'page#index', 'url' => '/categories', 'verb' => 'GET', 'postfix' => 'categories'], diff --git a/src/assets/recent.svg b/src/assets/recent.svg new file mode 100644 index 0000000..7d95448 --- /dev/null +++ b/src/assets/recent.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/components/Main.vue b/src/components/Main.vue index ffc5504..e63a7a6 100644 --- a/src/components/Main.vue +++ b/src/components/Main.vue @@ -79,6 +79,9 @@ export default { case 'TOP': this.loadStations() break + case 'RECENT': + this.loadStations() + break case 'NEW': this.loadStations() break diff --git a/src/components/Navigation.vue b/src/components/Navigation.vue index de1d234..844f24c 100644 --- a/src/components/Navigation.vue +++ b/src/components/Navigation.vue @@ -5,6 +5,10 @@ :to="{ name: 'TOP' }" icon="icon-category-dashboard" :title="t('radio', 'Top')" /> +