From 2affca22d56d95c442394d0c00f4ff8f018db5b2 Mon Sep 17 00:00:00 2001 From: zurdi Date: Wed, 4 Dec 2024 12:50:19 +0000 Subject: [PATCH] refactor: standardize prop naming conventions in Recent, MatchRom, SearchRom, Collection, and Platform components --- frontend/src/components/Dashboard/Recent.vue | 12 ++++++------ .../components/common/Game/Dialog/MatchRom.vue | 5 ++--- .../components/common/Game/Dialog/SearchRom.vue | 10 +++++----- frontend/src/views/Gallery/Collection.vue | 16 ++++++++-------- frontend/src/views/Gallery/Platform.vue | 14 +++++++------- 5 files changed, 28 insertions(+), 29 deletions(-) diff --git a/frontend/src/components/Dashboard/Recent.vue b/frontend/src/components/Dashboard/Recent.vue index b97d3bc22..e88d528a3 100644 --- a/frontend/src/components/Dashboard/Recent.vue +++ b/frontend/src/components/Dashboard/Recent.vue @@ -42,14 +42,14 @@ function onGameClick(emitData: { rom: SimpleRom; event: MouseEvent }) { :key="rom.updated_at" :rom="rom" @click="onGameClick" - title-on-hover + titleOnHover pointerOnHover withLink - show-flags - show-fav - transform-scale - show-action-bar - show-platform-icon + showFlags + showFav + transformScale + showActionBar + showPlatformIcon /> diff --git a/frontend/src/components/common/Game/Dialog/MatchRom.vue b/frontend/src/components/common/Game/Dialog/MatchRom.vue index 0393f118f..1c759466a 100644 --- a/frontend/src/components/common/Game/Dialog/MatchRom.vue +++ b/frontend/src/components/common/Game/Dialog/MatchRom.vue @@ -341,9 +341,8 @@ onBeforeUnmount(() => { v-if="rom" @click="showSources(matchedRom)" :rom="matchedRom" - title-on-footer - transform-scale - title-on-hover + transformScale + titleOnHover pointerOnHover /> diff --git a/frontend/src/components/common/Game/Dialog/SearchRom.vue b/frontend/src/components/common/Game/Dialog/SearchRom.vue index ece56ddf3..58c17110c 100644 --- a/frontend/src/components/common/Game/Dialog/SearchRom.vue +++ b/frontend/src/components/common/Game/Dialog/SearchRom.vue @@ -200,11 +200,11 @@ onBeforeUnmount(() => { title-on-hover pointerOnHover withLink - show-flags - show-fav - transform-scale - show-action-bar - show-platform-icon + showFlags + showFav + transformScale + showActionBar + showPlatformIcon /> diff --git a/frontend/src/views/Gallery/Collection.vue b/frontend/src/views/Gallery/Collection.vue index 519eb21c0..a0328b9d6 100644 --- a/frontend/src/views/Gallery/Collection.vue +++ b/frontend/src/views/Gallery/Collection.vue @@ -308,16 +308,16 @@ onBeforeUnmount(() => { { v-if="currentPlatform" :key="rom.updated_at" :rom="rom" - title-on-hover + titleOnHover pointerOnHover withLink - show-flags - show-action-bar - show-fav - transform-scale - with-border - :with-border-romm-accent=" + showFlags + showActionBar + showFav + transformScale + withBorder + :withBorderRommAccent=" romsStore.isSimpleRom(rom) && selectedRoms?.includes(rom) " @click="onGameClick"