From 4e63e054b806a6a29c7c680657b10b1eec52c8ac Mon Sep 17 00:00:00 2001 From: Soleone Date: Wed, 1 Sep 2021 04:24:33 -0400 Subject: [PATCH] Change homepage to Videos --- CHANGELOG.md | 5 +++ src/App.vue | 45 +++++++++++++++++-------- src/constants/constants.js | 2 +- src/router/index.js | 16 ++++----- src/views/{Home.vue => About.vue} | 32 ++++++++++++------ src/views/Player.vue | 2 +- src/views/VideoShow.vue | 16 ++++----- src/views/Videos.vue | 56 ++++++++++++++++++------------- 8 files changed, 109 insertions(+), 65 deletions(-) rename src/views/{Home.vue => About.vue} (69%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ed01dc..b8dce50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +### 0.2.13 + +- Change homepage to Videos and move old home to About + ### 0.2.12 - Add Esports and Interview categories @@ -7,6 +11,7 @@ ### 0.2.11 - Add RSS feed link for video subscriptions + ### 0.2.10 - Fetch published date from Youtube API and use it to sort video list by diff --git a/src/App.vue b/src/App.vue index 713049e..546a369 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,7 +3,7 @@
- + Gunchained GU - {{ title }} + {{ title }} - + - + {{ link.icon }} @@ -172,13 +182,6 @@ export default { version: VERSION, drawer: false, navigation: [ - [ - { - label: 'Arena', - icon: 'mdi-fencing', - route: { name: 'Arena'}, - } - ], [ { label: 'Videos', @@ -190,6 +193,20 @@ export default { icon: 'mdi-message-plus-outline', route: { name: 'Feedback' } } + ], + [ + { + label: 'Arena', + icon: 'mdi-fencing', + route: { name: 'Arena' } + } + ], + [ + { + label: 'About', + icon: 'mdi-information-outline', + route: { name: 'About' } + } ] ] } @@ -220,7 +237,7 @@ export default { }, methods: { logout() { - console.log("Logging out") + console.log('Logging out') firebase .auth() .signOut() @@ -230,7 +247,7 @@ export default { message: 'Logged out.', color: 'default' }) - this.$router.push({ name: 'Home' }) + this.$router.push({ name: 'About' }) }) }, updateAvailability() { diff --git a/src/constants/constants.js b/src/constants/constants.js index ede978b..8706f4a 100644 --- a/src/constants/constants.js +++ b/src/constants/constants.js @@ -52,6 +52,6 @@ export const CHANNELS_BY_AUTHOR = { Rogvarok: 'https://www.youtube.com/channel/UCdaFKgefAytNPi-kmPOQcaw', Fakemews9: 'https://www.youtube.com/channel/UCbopgNya6aLhYi6GE8mNMvw', TGRInteractive: 'https://www.youtube.com/channel/UCctybG40v1jj-exD5D8VqoA', - BadBabaGU: 'https://www.youtube.com/channel/UCgoEoyKD-kTuSQQpSQpI1aA/videos', + BadBabaGU: 'https://www.youtube.com/channel/UCgoEoyKD-kTuSQQpSQpI1aA', ClutchHS: 'https://www.youtube.com/channel/UCUqvAp0-3XIhx27FFt7pGIA' } diff --git a/src/router/index.js b/src/router/index.js index 6dfb5a7..7198361 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,6 +1,6 @@ import Vue from 'vue' import VueRouter from 'vue-router' -import Home from '../views/Home.vue' +import About from '../views/About.vue' import Arena from '../views/Arena.vue' import Login from '../views/Login.vue' import Player from '../views/Player.vue' @@ -12,10 +12,15 @@ import Feedback from '../views/Feedback.vue' Vue.use(VueRouter) const routes = [ + { + path: '/about', + name: 'About', + component: About + }, { path: '/', - name: 'Home', - component: Home + name: 'Videos', + component: Videos }, { path: '/arena', @@ -32,11 +37,6 @@ const routes = [ name: 'Player', component: Player }, - { - path: '/videos', - name: 'Videos', - component: Videos - }, { path: '/videos/:id', name: 'VideoShow', diff --git a/src/views/Home.vue b/src/views/About.vue similarity index 69% rename from src/views/Home.vue rename to src/views/About.vue index 6a75969..f3daa79 100644 --- a/src/views/Home.vue +++ b/src/views/About.vue @@ -3,7 +3,10 @@

Welcome to Gunchained

-

Content and tools for Gods Unchained

+

+ Content and tools for + Gods Unchained +

@@ -11,7 +14,8 @@ - Navigate using the mdi-menu Menu button in the top right corner. + Navigate using the mdi-menu Menu button + in the top right corner. @@ -22,11 +26,14 @@

- mdi-fencing Arena + mdi-fencing Arena

- Find other players to play against. Useful for casual matches or organizing a tournament setting. + Find other players to play against. Useful for casual matches or + organizing a tournament setting.

To share your invite code you will have to @@ -34,7 +41,10 @@ sign in first to be able to fill out your - + player profile . @@ -44,7 +54,9 @@

- mdi-youtube Videos + mdi-youtube Videos

@@ -60,12 +72,12 @@ import GATrack from '@/components/shared/GATrack.js' export default { - name: 'Home', + name: 'About', components: { GATrack }, mounted() { - this.$store.dispatch('setTitle', 'Home') - }, + this.$store.dispatch('setTitle', 'About') + } } - \ No newline at end of file + diff --git a/src/views/Player.vue b/src/views/Player.vue index 9ce239d..8ae8fdf 100644 --- a/src/views/Player.vue +++ b/src/views/Player.vue @@ -158,7 +158,7 @@ export default { updatePlayer() { this.$gtag.event('updatePlayer') this.$store.dispatch('updatePlayer', this.player) - this.$router.push({ name: 'Home' }) + this.$router.push({ name: 'About' }) } }, watch: { diff --git a/src/views/VideoShow.vue b/src/views/VideoShow.vue index 3d420f6..9750dd4 100644 --- a/src/views/VideoShow.vue +++ b/src/views/VideoShow.vue @@ -1,8 +1,8 @@