From 53b116b69d4f06ddaa99d7af4e52e1301b508073 Mon Sep 17 00:00:00 2001 From: Gamebrary Date: Thu, 22 Jun 2023 16:44:59 -0700 Subject: [PATCH] ui updates --- .../Board/KanbanBoardPlaceholder.vue | 6 +- src/components/Board/MiniBoard.vue | 1 + src/components/Game/GameHeader.vue | 4 +- src/components/Game/GameInBoards.vue | 22 +- src/components/Game/GameMedia.vue | 4 +- src/components/Game/GamePageTile.vue | 49 ++++ src/components/Game/GameProgress.vue | 9 +- src/components/Game/SimilarGames.vue | 93 +++---- src/components/GameCards/GameCardText.vue | 18 +- src/components/Lists/EditListModal.vue | 3 +- src/components/Lists/TierList.vue | 4 +- src/components/PageHeader.vue | 158 +++--------- src/components/SearchBox.vue | 2 +- src/game/pages/GamePage.vue | 226 ++++++++++-------- src/notes/pages/NotesPage.vue | 27 ++- src/pages/GamesPage.vue | 55 +++-- src/public/pages/HomePage.vue | 30 +-- src/settings/pages/SettingsPage.vue | 3 +- src/tags/pages/TagsPage.vue | 25 +- 19 files changed, 354 insertions(+), 385 deletions(-) create mode 100644 src/components/Game/GamePageTile.vue diff --git a/src/components/Board/KanbanBoardPlaceholder.vue b/src/components/Board/KanbanBoardPlaceholder.vue index 4de012df..cfbce74a 100644 --- a/src/components/Board/KanbanBoardPlaceholder.vue +++ b/src/components/Board/KanbanBoardPlaceholder.vue @@ -1,8 +1,8 @@ + + diff --git a/src/components/Game/GameProgress.vue b/src/components/Game/GameProgress.vue index ab4f983b..0c763720 100644 --- a/src/components/Game/GameProgress.vue +++ b/src/components/Game/GameProgress.vue @@ -82,10 +82,9 @@ export default { await this.$store.dispatch('SAVE_PROGRESSES_NO_MERGE'); this.progress = 0; - this.$bus.$emit('ALERT', { message: 'Progress deleted' }); + this.$bvToast.toast('Progress deleted'); } catch (e) { - this.$bus.$emit('ALERT', { type: 'error', message: 'Error deleting progress' }); - this.$bvToast.toast('There was an error deleting your progress', { title: `${name} progress`, variant: 'error' }); + this.$bvToast.toast('There was an error deleting your progress', { variant: 'error' }); } this.editing = false; @@ -103,10 +102,10 @@ export default { await this.$store.dispatch('SAVE_PROGRESSES'); - this.$bus.$emit('ALERT', { type: 'success', message: 'Progress saved' }); + this.$bvToast.toast('Progress saved'); } catch (e) { this.saving = false; - this.$bus.$emit('ALERT', { type: 'error', message: 'Error saving progress' }); + this.$bvToast.toast('There was an error saving your progress', { variant: 'error' }); } this.editing = false; diff --git a/src/components/Game/SimilarGames.vue b/src/components/Game/SimilarGames.vue index 0232ee02..a3d8f179 100644 --- a/src/components/Game/SimilarGames.vue +++ b/src/components/Game/SimilarGames.vue @@ -1,78 +1,52 @@ - + + diff --git a/src/components/GameCards/GameCardText.vue b/src/components/GameCards/GameCardText.vue index 0944e640..f681d4cb 100644 --- a/src/components/GameCards/GameCardText.vue +++ b/src/components/GameCards/GameCardText.vue @@ -1,8 +1,8 @@