From f237344d8d3fb63992102e62849a36553764bf9f Mon Sep 17 00:00:00 2001 From: Gamebrary Date: Sat, 5 Nov 2022 21:11:53 -0700 Subject: [PATCH] Bug fixes and clean up --- src/App.vue | 22 +- src/boards/pages/BoardPage.vue | 3 +- src/components/Board/MiniBoard.vue | 1 - src/components/PageHeader.vue | 2 +- src/constants.js | 16 ++ src/game/pages/GamePage.vue | 2 +- src/public/pages/SearchPage.vue | 6 +- src/public/pages/UpgradePage.vue | 344 --------------------------- src/public/public.routes.js | 9 - src/settings/pages/AccountPage.vue | 3 +- src/settings/pages/DashboardPage.vue | 11 +- 11 files changed, 28 insertions(+), 391 deletions(-) delete mode 100644 src/public/pages/UpgradePage.vue diff --git a/src/App.vue b/src/App.vue index ae1a35eb..d1f58d04 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,8 @@ - - - @@ -134,14 +121,11 @@ export default { }, init() { - // TODO: get platforms from constants - if (this.isPublicRoute) { - return; - } + if (this.isPublicRoute) return; if (this.user) { this.boot(); - } else if (this.$route.name !== 'auth' && !this.$route.params.providerId) { + } else if (this.$route.name !== 'auth') { this.$router.replace({ name: 'auth' }); } }, @@ -171,7 +155,7 @@ export default { } .viewport { - height: calc(100vh - 62px); overflow-y: auto; + min-height: calc(100vh - 62px); } diff --git a/src/boards/pages/BoardPage.vue b/src/boards/pages/BoardPage.vue index 7070e842..da41b1c6 100755 --- a/src/boards/pages/BoardPage.vue +++ b/src/boards/pages/BoardPage.vue @@ -16,7 +16,7 @@ by - diff --git a/src/constants.js b/src/constants.js index 4da9db05..45f38baa 100644 --- a/src/constants.js +++ b/src/constants.js @@ -17,6 +17,22 @@ export const BOARD_TYPES = [ { text: 'Tier', value: BOARD_TYPE_TIER }, ]; +export const FEATURED_BOARDS = [ + 'wGZ8chO5VK4jOaqG1373', + 'raHXfbMSJtQ9xNT8T6yC', + 'NSmHnEtQbjblUcwNKN0T', + '022E7O53f6XpvO5VIz8D', +]; + +export const TRENDING_GAMES = [ + '112875', + '200165', + '119388', + '96437', + '191692', + '125165', +]; + export const PLATFORM_CATEGORIES = { 1: 'console', 2: 'arcade', diff --git a/src/game/pages/GamePage.vue b/src/game/pages/GamePage.vue index 7182afd7..84e79a8e 100644 --- a/src/game/pages/GamePage.vue +++ b/src/game/pages/GamePage.vue @@ -11,7 +11,7 @@