From 0afba8b06855d4774ea381a9fde37bb1ccebaa65 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sat, 25 May 2024 21:24:26 -0400 Subject: [PATCH] rename Rom to SimpleRom --- frontend/src/App.vue | 4 +-- .../Dialog/Rom/MatchRom/MatchRom.vue | 4 +-- .../src/components/Dialog/Rom/SearchRom.vue | 4 +-- .../src/components/Game/AdminMenu/Base.vue | 4 +-- .../src/components/Game/Card/ActionBar.vue | 4 +-- frontend/src/components/Game/Card/Base.vue | 4 +-- frontend/src/components/Game/Card/Cover.vue | 4 +-- frontend/src/services/api/rom.ts | 8 ++--- frontend/src/stores/roms.ts | 30 +++++++++---------- frontend/src/stores/scanning.ts | 4 +-- frontend/src/types/emitter.d.ts | 8 ++--- frontend/src/utils/index.ts | 4 +-- 12 files changed, 41 insertions(+), 41 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 7457c7439..2832322db 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -7,7 +7,7 @@ import socket from "@/services/socket"; import storeConfig from "@/stores/config"; import storeGalleryFilter from "@/stores/galleryFilter"; import storeHeartbeat from "@/stores/heartbeat"; -import storeRoms, { type Rom } from "@/stores/roms"; +import storeRoms, { type SimpleRom } from "@/stores/roms"; import storePlatforms from "@/stores/platforms"; import storeAuth from "@/stores/auth"; import storeScanning from "@/stores/scanning"; @@ -42,7 +42,7 @@ socket.on( } ); -socket.on("scan:scanning_rom", (rom: Rom) => { +socket.on("scan:scanning_rom", (rom: SimpleRom) => { scanningStore.set(true); if (romsStore.platformID === rom.platform_id) { romsStore.add([rom]); diff --git a/frontend/src/components/Dialog/Rom/MatchRom/MatchRom.vue b/frontend/src/components/Dialog/Rom/MatchRom/MatchRom.vue index 38b8a8366..bcdae2c2c 100644 --- a/frontend/src/components/Dialog/Rom/MatchRom/MatchRom.vue +++ b/frontend/src/components/Dialog/Rom/MatchRom/MatchRom.vue @@ -3,7 +3,7 @@ import type { SearchRomSchema } from "@/__generated__"; import SelectSourceDialog from "@/components/Dialog/Rom/MatchRom/SelectSource.vue"; import romApi from "@/services/api/rom"; import storeHeartbeat from "@/stores/heartbeat"; -import storeRoms, { type Rom } from "@/stores/roms"; +import storeRoms, { type SimpleRom } from "@/stores/roms"; import type { Events } from "@/types/emitter"; import type { Emitter } from "mitt"; import { inject, onBeforeUnmount, ref } from "vue"; @@ -11,7 +11,7 @@ import { useDisplay, useTheme } from "vuetify"; const { xs, mdAndDown, lgAndUp } = useDisplay(); const show = ref(false); -const rom = ref(null); +const rom = ref(null); const romsStore = storeRoms(); const renameAsIGDB = ref(false); const searching = ref(false); diff --git a/frontend/src/components/Dialog/Rom/SearchRom.vue b/frontend/src/components/Dialog/Rom/SearchRom.vue index f908ee026..f1f56e145 100644 --- a/frontend/src/components/Dialog/Rom/SearchRom.vue +++ b/frontend/src/components/Dialog/Rom/SearchRom.vue @@ -1,5 +1,4 @@ diff --git a/frontend/src/components/Game/Card/ActionBar.vue b/frontend/src/components/Game/Card/ActionBar.vue index 1379159d8..bc93079b2 100644 --- a/frontend/src/components/Game/Card/ActionBar.vue +++ b/frontend/src/components/Game/Card/ActionBar.vue @@ -3,11 +3,11 @@ import romApi from "@/services/api/rom"; import storeDownload from "@/stores/download"; import storeAuth from "@/stores/auth"; import AdminMenu from "@/components/Game/AdminMenu/Base.vue"; -import type { Rom } from "@/stores/roms"; +import type { SimpleRom } from "@/stores/roms"; import { platformSlugEJSCoreMap } from "@/utils"; // Props -defineProps<{ rom: Rom }>(); +defineProps<{ rom: SimpleRom }>(); const auth = storeAuth(); const downloadStore = storeDownload(); diff --git a/frontend/src/components/Game/Card/Base.vue b/frontend/src/components/Game/Card/Base.vue index ffe8f2863..1d45cae2f 100644 --- a/frontend/src/components/Game/Card/Base.vue +++ b/frontend/src/components/Game/Card/Base.vue @@ -1,11 +1,11 @@