From 2bd6fbd1a73a2c49fa50c839510da1f2eaecd852 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sat, 2 Aug 2025 15:27:54 -0400 Subject: [PATCH] Remove uses of Props and Functions comments --- frontend/src/RomM.vue | 1 - frontend/src/components/Details/ActionBar.vue | 2 -- frontend/src/components/Details/BackgroundHeader.vue | 1 - frontend/src/components/Details/GameData.vue | 1 - frontend/src/components/Details/Info/FileInfo.vue | 2 -- frontend/src/components/Details/Info/GameInfo.vue | 2 -- frontend/src/components/Details/PDFViewer.vue | 1 - frontend/src/components/Details/Personal.vue | 2 -- frontend/src/components/Details/RetroAchievements.vue | 2 -- frontend/src/components/Details/Saves.vue | 2 -- frontend/src/components/Details/States.vue | 2 -- frontend/src/components/Details/Title.vue | 1 - frontend/src/components/Details/VersionSwitcher.vue | 2 -- frontend/src/components/Gallery/AppBar/Base.vue | 1 - frontend/src/components/Gallery/AppBar/Collection/Base.vue | 1 - .../Gallery/AppBar/Collection/CollectionInfoDrawer.vue | 2 -- .../Gallery/AppBar/Collection/SmartCollectionInfoDrawer.vue | 2 -- frontend/src/components/Gallery/AppBar/Platform/Base.vue | 1 - .../src/components/Gallery/AppBar/Platform/FirmwareBtn.vue | 1 - .../src/components/Gallery/AppBar/Platform/FirmwareDrawer.vue | 2 -- .../components/Gallery/AppBar/Platform/PlatformInfoDrawer.vue | 2 -- .../src/components/Gallery/AppBar/Search/SearchTextField.vue | 1 - .../src/components/Gallery/AppBar/common/CharIndexBar.vue | 1 - frontend/src/components/Gallery/AppBar/common/FilterBtn.vue | 1 - .../components/Gallery/AppBar/common/FilterDrawer/Base.vue | 2 -- .../AppBar/common/FilterDrawer/FilterDuplicatesBtn.vue | 1 - .../AppBar/common/FilterDrawer/FilterFavouritesBtn.vue | 1 - .../Gallery/AppBar/common/FilterDrawer/FilterMatchedBtn.vue | 1 - .../Gallery/AppBar/common/FilterDrawer/FilterMissingBtn.vue | 1 - .../Gallery/AppBar/common/FilterDrawer/FilterPlayablesBtn.vue | 2 -- .../Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue | 2 -- .../Gallery/AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue | 1 - .../Gallery/AppBar/common/FilterDrawer/FilterVerifiedBtn.vue | 1 - .../src/components/Gallery/AppBar/common/GalleryViewBtn.vue | 1 - .../src/components/Gallery/AppBar/common/SelectingBtn.vue | 1 - frontend/src/components/Gallery/AppBar/common/SortBar.vue | 1 - frontend/src/components/Gallery/AppBar/common/SortBtn.vue | 1 - frontend/src/components/Gallery/FabOverlay.vue | 2 -- frontend/src/components/Gallery/Skeleton.vue | 1 - frontend/src/components/Home/Collections.vue | 2 -- frontend/src/components/Home/ContinuePlaying.vue | 2 -- frontend/src/components/Home/Platforms.vue | 1 - frontend/src/components/Home/RecentAdded.vue | 2 -- frontend/src/components/Home/RecentSkeletonLoader.vue | 1 - frontend/src/components/Home/Stats.vue | 2 -- frontend/src/components/Settings/AboutDialog.vue | 2 -- .../src/components/Settings/Administration/TaskOption.vue | 2 -- frontend/src/components/Settings/Administration/Tasks.vue | 2 -- .../Settings/Administration/Users/Dialog/CreateUser.vue | 2 -- .../Settings/Administration/Users/Dialog/DeleteUser.vue | 2 -- .../Settings/Administration/Users/Dialog/EditUser.vue | 1 - .../Settings/Administration/Users/Dialog/InviteLink.vue | 1 - .../src/components/Settings/Administration/Users/Table.vue | 1 - .../components/Settings/LibraryManagement/Config/AddBtn.vue | 1 - .../LibraryManagement/Config/Dialog/CreateExclusion.vue | 2 -- .../LibraryManagement/Config/Dialog/CreatePlatformBinding.vue | 1 - .../LibraryManagement/Config/Dialog/CreatePlatformVersion.vue | 2 -- .../LibraryManagement/Config/Dialog/DeletePlatformBinding.vue | 1 - .../LibraryManagement/Config/Dialog/DeletePlatformVersion.vue | 2 -- .../components/Settings/LibraryManagement/Config/Excluded.vue | 1 - .../Settings/LibraryManagement/Config/ExcludedCard.vue | 2 -- .../Settings/LibraryManagement/Config/PlatformBindCard.vue | 1 - .../Settings/LibraryManagement/Config/PlatformBinding.vue | 1 - .../Settings/LibraryManagement/Config/PlatformVersions.vue | 1 - .../src/components/Settings/ServerStats/PlatformsStats.vue | 2 -- frontend/src/components/Settings/UserInterface/Interface.vue | 4 ++-- frontend/src/components/Settings/UserInterface/Language.vue | 1 - .../components/Settings/UserInterface/LanguageSelector.vue | 2 -- frontend/src/components/Settings/UserInterface/Theme.vue | 3 +-- .../src/components/Settings/UserInterface/ThemeOption.vue | 1 - .../src/components/Settings/UserProfile/RetroAchievements.vue | 2 -- frontend/src/components/common/Collection/Card.vue | 1 - frontend/src/components/common/Collection/Dialog/AddRoms.vue | 1 - .../components/common/Collection/Dialog/CreateCollection.vue | 1 - .../components/common/Collection/Dialog/DeleteCollection.vue | 2 -- .../common/Collection/Dialog/DeleteSmartCollection.vue | 2 -- .../src/components/common/Collection/Dialog/RemoveRoms.vue | 1 - frontend/src/components/common/Collection/ListItem.vue | 1 - frontend/src/components/common/Game/AdminMenu.vue | 1 - frontend/src/components/common/Game/Card/ActionBar.vue | 1 - frontend/src/components/common/Game/Card/Base.vue | 1 - frontend/src/components/common/Game/Card/Related.vue | 1 - .../src/components/common/Game/Dialog/Asset/DeleteSaves.vue | 2 -- .../src/components/common/Game/Dialog/Asset/DeleteStates.vue | 2 -- .../src/components/common/Game/Dialog/Asset/SelectSave.vue | 1 - .../src/components/common/Game/Dialog/Asset/SelectState.vue | 1 - .../src/components/common/Game/Dialog/Asset/UploadSaves.vue | 1 - .../src/components/common/Game/Dialog/Asset/UploadStates.vue | 1 - .../src/components/common/Game/Dialog/CopyDownloadLink.vue | 1 - frontend/src/components/common/Game/Dialog/DeleteRom.vue | 1 - frontend/src/components/common/Game/Dialog/EditRom.vue | 2 -- frontend/src/components/common/Game/Dialog/MatchRom.vue | 2 -- frontend/src/components/common/Game/Dialog/UploadRom.vue | 1 - frontend/src/components/common/Game/FavBtn.vue | 2 -- frontend/src/components/common/Game/ListItem.vue | 1 - frontend/src/components/common/Game/Table.vue | 2 -- frontend/src/components/common/Navigation/CollectionsBtn.vue | 1 - .../src/components/common/Navigation/CollectionsDrawer.vue | 1 - frontend/src/components/common/Navigation/MainAppBar.vue | 2 -- frontend/src/components/common/Navigation/PlatformsBtn.vue | 1 - frontend/src/components/common/Navigation/ScanBtn.vue | 1 - frontend/src/components/common/Navigation/SearchBtn.vue | 1 - frontend/src/components/common/Navigation/SettingsDrawer.vue | 2 -- frontend/src/components/common/Navigation/UploadBtn.vue | 1 - frontend/src/components/common/Navigation/UserBtn.vue | 1 - frontend/src/components/common/NewVersionDialog.vue | 1 - frontend/src/components/common/Notifications/Notification.vue | 1 - .../src/components/common/Notifications/UploadProgress.vue | 2 -- .../src/components/common/Platform/Dialog/DeleteFirmware.vue | 1 - .../src/components/common/Platform/Dialog/DeletePlatform.vue | 2 -- .../src/components/common/Platform/Dialog/UploadFirmware.vue | 1 - frontend/src/components/common/Platform/ListItem.vue | 1 - frontend/src/components/common/RDialog.vue | 1 - frontend/src/components/common/SearchCover.vue | 2 -- frontend/src/components/common/ViewLoader.vue | 1 - frontend/src/layouts/Auth.vue | 1 - frontend/src/layouts/Main.vue | 2 -- frontend/src/views/Auth/Login.vue | 2 -- frontend/src/views/Auth/Register.vue | 2 -- frontend/src/views/Auth/ResetPassword.vue | 2 -- frontend/src/views/Auth/Setup.vue | 2 -- frontend/src/views/Gallery/Collection/BaseCollection.vue | 1 - frontend/src/views/Gallery/Platform.vue | 2 -- frontend/src/views/Gallery/Search.vue | 1 - frontend/src/views/GameDetails.vue | 2 -- frontend/src/views/Player/EmulatorJS/Base.vue | 2 -- frontend/src/views/Player/RuffleRS/Base.vue | 2 -- frontend/src/views/Scan.vue | 1 - frontend/src/views/Settings/Administration.vue | 1 - frontend/src/views/Settings/ServerStats.vue | 2 -- frontend/src/views/Settings/UserProfile.vue | 1 - 131 files changed, 3 insertions(+), 188 deletions(-) diff --git a/frontend/src/RomM.vue b/frontend/src/RomM.vue index 66a95b798..6b7037f98 100644 --- a/frontend/src/RomM.vue +++ b/frontend/src/RomM.vue @@ -4,7 +4,6 @@ import { storeToRefs } from "pinia"; import { ref } from "vue"; import { useI18n } from "vue-i18n"; -// Props const { locale } = useI18n(); const storeLanguage = languageStore(); const { defaultLanguage, languages } = storeToRefs(storeLanguage); diff --git a/frontend/src/components/Details/ActionBar.vue b/frontend/src/components/Details/ActionBar.vue index 2bf6401e4..09f8cbf9f 100644 --- a/frontend/src/components/Details/ActionBar.vue +++ b/frontend/src/components/Details/ActionBar.vue @@ -18,7 +18,6 @@ import type { Emitter } from "mitt"; import { computed, inject, ref } from "vue"; import { storeToRefs } from "pinia"; -// Props const props = defineProps<{ rom: DetailedRom }>(); const downloadStore = storeDownload(); const heartbeatStore = storeHeartbeat(); @@ -47,7 +46,6 @@ const is3DSRom = computed(() => { return is3DSCIARom(props.rom); }); -// Functions async function copyDownloadLink(rom: DetailedRom) { const downloadLink = getDownloadLink({ rom, diff --git a/frontend/src/components/Details/BackgroundHeader.vue b/frontend/src/components/Details/BackgroundHeader.vue index 138fe0525..84b455e23 100644 --- a/frontend/src/components/Details/BackgroundHeader.vue +++ b/frontend/src/components/Details/BackgroundHeader.vue @@ -4,7 +4,6 @@ import { getMissingCoverImage, getUnmatchedCoverImage } from "@/utils/covers"; import { storeToRefs } from "pinia"; import { computed } from "vue"; -// Props const romsStore = storeRoms(); const { currentRom } = storeToRefs(romsStore); const missingCoverImage = computed(() => diff --git a/frontend/src/components/Details/GameData.vue b/frontend/src/components/Details/GameData.vue index eefe616cd..2d0a8e177 100644 --- a/frontend/src/components/Details/GameData.vue +++ b/frontend/src/components/Details/GameData.vue @@ -5,7 +5,6 @@ import type { DetailedRom } from "@/stores/roms"; import { ref } from "vue"; import { useDisplay } from "vuetify"; -// Props defineProps<{ rom: DetailedRom }>(); const tab = ref<"saves" | "states">("saves"); const { mdAndDown } = useDisplay(); diff --git a/frontend/src/components/Details/Info/FileInfo.vue b/frontend/src/components/Details/Info/FileInfo.vue index a49d9b10d..594c75869 100644 --- a/frontend/src/components/Details/Info/FileInfo.vue +++ b/frontend/src/components/Details/Info/FileInfo.vue @@ -10,7 +10,6 @@ import { formatBytes } from "@/utils"; import { ref, watch } from "vue"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const props = defineProps<{ rom: DetailedRom }>(); const downloadStore = storeDownload(); @@ -22,7 +21,6 @@ const romInfo = ref([ { label: "CRC", value: props.rom.crc_hash }, ]); -// Functions async function toggleMainSibling() { romUser.value.is_main_sibling = !romUser.value.is_main_sibling; romApi.updateUserRomProps({ diff --git a/frontend/src/components/Details/Info/GameInfo.vue b/frontend/src/components/Details/Info/GameInfo.vue index bb62043aa..434e11235 100644 --- a/frontend/src/components/Details/Info/GameInfo.vue +++ b/frontend/src/components/Details/Info/GameInfo.vue @@ -13,7 +13,6 @@ import { get } from "lodash"; import storeHeartbeat from "@/stores/heartbeat"; import { storeToRefs } from "pinia"; -// Props const props = defineProps<{ rom: DetailedRom }>(); const { t } = useI18n(); const { xs } = useDisplay(); @@ -94,7 +93,6 @@ const coverImageSource = computed(() => { } }); -// Functions function onFilterClick(filter: FilterType, value: string) { router.push({ name: "search", diff --git a/frontend/src/components/Details/PDFViewer.vue b/frontend/src/components/Details/PDFViewer.vue index cfc6e692e..d0f91bb50 100644 --- a/frontend/src/components/Details/PDFViewer.vue +++ b/frontend/src/components/Details/PDFViewer.vue @@ -3,7 +3,6 @@ import { useTheme, useDisplay } from "vuetify"; import type { DetailedRom } from "@/stores/roms"; import VuePdfApp from "vue3-pdf-app"; -// Props defineProps<{ rom: DetailedRom }>(); const { xs } = useDisplay(); const theme = useTheme(); diff --git a/frontend/src/components/Details/Personal.vue b/frontend/src/components/Details/Personal.vue index 4fe994b12..fadedbe06 100644 --- a/frontend/src/components/Details/Personal.vue +++ b/frontend/src/components/Details/Personal.vue @@ -14,7 +14,6 @@ import { useDisplay, useTheme } from "vuetify"; import { useI18n } from "vue-i18n"; import { storeToRefs } from "pinia"; -// Props const { t } = useI18n(); const props = defineProps<{ rom: DetailedRom }>(); const tab = ref<"status" | "ra" | "notes">("status"); @@ -35,7 +34,6 @@ const statusOptions = [ "completed_100", ]; -// Functions function editNote() { if (editingNote.value) { romApi.updateUserRomProps({ diff --git a/frontend/src/components/Details/RetroAchievements.vue b/frontend/src/components/Details/RetroAchievements.vue index c7a238b8c..81b212f6f 100644 --- a/frontend/src/components/Details/RetroAchievements.vue +++ b/frontend/src/components/Details/RetroAchievements.vue @@ -6,7 +6,6 @@ import type { RAGameRomAchievement } from "@/__generated__/models/RAGameRomAchie import { useI18n } from "vue-i18n"; import { useDisplay } from "vuetify"; -// Props const { smAndDown } = useDisplay(); const props = defineProps<{ rom: DetailedRom }>(); const { t } = useI18n(); @@ -20,7 +19,6 @@ const achievementsPercentageHardcore = ref(0); const showEarned = ref(false); const filteredAchievements = ref([]); -// Functions function toggleShowEarned() { showEarned.value = !showEarned.value; if (showEarned.value) { diff --git a/frontend/src/components/Details/Saves.vue b/frontend/src/components/Details/Saves.vue index fff790fd6..a189e79b3 100644 --- a/frontend/src/components/Details/Saves.vue +++ b/frontend/src/components/Details/Saves.vue @@ -11,7 +11,6 @@ import { storeToRefs } from "pinia"; import { inject, ref } from "vue"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const auth = storeAuth(); const { scopes } = storeToRefs(auth); @@ -20,7 +19,6 @@ const selectedSaves = ref([]); const lastSelectedIndex = ref(-1); const emitter = inject>("emitter"); -// Functions async function downloasSaves() { selectedSaves.value.map((save) => { const a = document.createElement("a"); diff --git a/frontend/src/components/Details/States.vue b/frontend/src/components/Details/States.vue index dd5c99313..3a044505e 100644 --- a/frontend/src/components/Details/States.vue +++ b/frontend/src/components/Details/States.vue @@ -11,7 +11,6 @@ import { storeToRefs } from "pinia"; import { getEmptyCoverImage } from "@/utils/covers"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const auth = storeAuth(); const { scopes } = storeToRefs(auth); @@ -20,7 +19,6 @@ const selectedStates = ref([]); const lastSelectedIndex = ref(-1); const emitter = inject>("emitter"); -// Functions async function downloasStates() { selectedStates.value.map((state) => { const a = document.createElement("a"); diff --git a/frontend/src/components/Details/Title.vue b/frontend/src/components/Details/Title.vue index 682855642..ac35361c6 100644 --- a/frontend/src/components/Details/Title.vue +++ b/frontend/src/components/Details/Title.vue @@ -9,7 +9,6 @@ import { storeToRefs } from "pinia"; import { useDisplay } from "vuetify"; import { computed } from "vue"; -// Props const props = defineProps<{ rom: DetailedRom }>(); const { smAndDown } = useDisplay(); const releaseDate = new Date( diff --git a/frontend/src/components/Details/VersionSwitcher.vue b/frontend/src/components/Details/VersionSwitcher.vue index f11cee7f6..c0a9ec616 100644 --- a/frontend/src/components/Details/VersionSwitcher.vue +++ b/frontend/src/components/Details/VersionSwitcher.vue @@ -3,12 +3,10 @@ import type { DetailedRom } from "@/stores/roms"; import { ref } from "vue"; import { useRouter } from "vue-router"; -// Props const props = defineProps<{ rom: DetailedRom }>(); const router = useRouter(); const version = ref(props.rom.id); -// Functions function updateVersion() { router.push({ name: "rom", diff --git a/frontend/src/components/Gallery/AppBar/Base.vue b/frontend/src/components/Gallery/AppBar/Base.vue index af40f287a..b5684db13 100644 --- a/frontend/src/components/Gallery/AppBar/Base.vue +++ b/frontend/src/components/Gallery/AppBar/Base.vue @@ -9,7 +9,6 @@ import CharIndexBar from "@/components/Gallery/AppBar/common/CharIndexBar.vue"; import ContextualRandomBtn from "@/components/Gallery/AppBar/common/ContextualRandomBtn.vue"; import { calculateMainLayoutWidth } from "@/utils"; -// Props withDefaults( defineProps<{ showPlayablesFilter?: boolean; diff --git a/frontend/src/components/Gallery/AppBar/Collection/Base.vue b/frontend/src/components/Gallery/AppBar/Collection/Base.vue index 84e953f5b..8a1ecfe23 100644 --- a/frontend/src/components/Gallery/AppBar/Collection/Base.vue +++ b/frontend/src/components/Gallery/AppBar/Collection/Base.vue @@ -9,7 +9,6 @@ import { storeToRefs } from "pinia"; import { useDisplay } from "vuetify"; import { computed } from "vue"; -// Props const { xs } = useDisplay(); const navigationStore = storeNavigation(); const romsStore = storeRoms(); diff --git a/frontend/src/components/Gallery/AppBar/Collection/CollectionInfoDrawer.vue b/frontend/src/components/Gallery/AppBar/Collection/CollectionInfoDrawer.vue index e596f4ed4..60ae54691 100644 --- a/frontend/src/components/Gallery/AppBar/Collection/CollectionInfoDrawer.vue +++ b/frontend/src/components/Gallery/AppBar/Collection/CollectionInfoDrawer.vue @@ -18,7 +18,6 @@ import { useI18n } from "vue-i18n"; import { useDisplay } from "vuetify"; import { getCollectionCoverImage } from "@/utils/covers"; -// Props const { t } = useI18n(); const { smAndDown } = useDisplay(); const emitter = inject>("emitter"); @@ -53,7 +52,6 @@ emitter?.on("updateUrlCover", (url_cover) => { setArtwork(url_cover); }); -// Functions function showEditable() { updatedCollection.value = { ...currentCollection.value } as UpdatedCollection; imagePreviewUrl.value = ""; diff --git a/frontend/src/components/Gallery/AppBar/Collection/SmartCollectionInfoDrawer.vue b/frontend/src/components/Gallery/AppBar/Collection/SmartCollectionInfoDrawer.vue index e7decab1a..3d05f5991 100644 --- a/frontend/src/components/Gallery/AppBar/Collection/SmartCollectionInfoDrawer.vue +++ b/frontend/src/components/Gallery/AppBar/Collection/SmartCollectionInfoDrawer.vue @@ -14,7 +14,6 @@ import { inject, ref } from "vue"; import { useI18n } from "vue-i18n"; import { useDisplay } from "vuetify"; -// Props const { t } = useI18n(); const { smAndDown } = useDisplay(); const emitter = inject>("emitter"); @@ -37,7 +36,6 @@ const collectionInfoFields = [ const updating = ref(false); const isEditable = ref(false); -// Functions function showEditable() { isEditable.value = true; } diff --git a/frontend/src/components/Gallery/AppBar/Platform/Base.vue b/frontend/src/components/Gallery/AppBar/Platform/Base.vue index b0380f62c..bc2ce15c8 100644 --- a/frontend/src/components/Gallery/AppBar/Platform/Base.vue +++ b/frontend/src/components/Gallery/AppBar/Platform/Base.vue @@ -10,7 +10,6 @@ import storeNavigation from "@/stores/navigation"; import { storeToRefs } from "pinia"; import { useDisplay } from "vuetify"; -// Props const { xs } = useDisplay(); const romsStore = storeRoms(); const navigationStore = storeNavigation(); diff --git a/frontend/src/components/Gallery/AppBar/Platform/FirmwareBtn.vue b/frontend/src/components/Gallery/AppBar/Platform/FirmwareBtn.vue index 643500eab..471367578 100644 --- a/frontend/src/components/Gallery/AppBar/Platform/FirmwareBtn.vue +++ b/frontend/src/components/Gallery/AppBar/Platform/FirmwareBtn.vue @@ -3,7 +3,6 @@ import storeGalleryView from "@/stores/galleryView"; import { storeToRefs } from "pinia"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const galleryViewStore = storeGalleryView(); const { activeFirmwareDrawer } = storeToRefs(galleryViewStore); diff --git a/frontend/src/components/Gallery/AppBar/Platform/FirmwareDrawer.vue b/frontend/src/components/Gallery/AppBar/Platform/FirmwareDrawer.vue index a7ffeecf0..a0eecbc94 100644 --- a/frontend/src/components/Gallery/AppBar/Platform/FirmwareDrawer.vue +++ b/frontend/src/components/Gallery/AppBar/Platform/FirmwareDrawer.vue @@ -14,7 +14,6 @@ import { inject, ref, computed } from "vue"; import { useDisplay } from "vuetify"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const { xs, mdAndUp } = useDisplay(); const auth = storeAuth(); @@ -36,7 +35,6 @@ const HEADERS = [ ] as const; const tabIndex = computed(() => (activeFirmwareDrawer.value ? 0 : -1)); -// Functions function downloadSelectedFirmware() { selectedFirmware.value.map((firmware) => { const a = document.createElement("a"); diff --git a/frontend/src/components/Gallery/AppBar/Platform/PlatformInfoDrawer.vue b/frontend/src/components/Gallery/AppBar/Platform/PlatformInfoDrawer.vue index 1a7003a71..8f51eb279 100644 --- a/frontend/src/components/Gallery/AppBar/Platform/PlatformInfoDrawer.vue +++ b/frontend/src/components/Gallery/AppBar/Platform/PlatformInfoDrawer.vue @@ -20,7 +20,6 @@ import { useI18n } from "vue-i18n"; import { useDisplay } from "vuetify"; import { identity } from "lodash"; -// Props const { t } = useI18n(); const emitter = inject>("emitter"); const { smAndDown } = useDisplay(); @@ -80,7 +79,6 @@ const updating = ref(false); const updatedPlatform = ref({ ...currentPlatform.value }); const isEditable = ref(false); -// Functions function showEditable() { updatedPlatform.value = { ...currentPlatform.value }; isEditable.value = true; diff --git a/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue b/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue index 32ebff7d1..5620f4b52 100644 --- a/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue +++ b/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue @@ -8,7 +8,6 @@ import { storeToRefs } from "pinia"; import { useRouter } from "vue-router"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const router = useRouter(); const romsStore = storeRoms(); diff --git a/frontend/src/components/Gallery/AppBar/common/CharIndexBar.vue b/frontend/src/components/Gallery/AppBar/common/CharIndexBar.vue index 687f2aa0e..7cceed133 100644 --- a/frontend/src/components/Gallery/AppBar/common/CharIndexBar.vue +++ b/frontend/src/components/Gallery/AppBar/common/CharIndexBar.vue @@ -8,7 +8,6 @@ import { storeToRefs } from "pinia"; import { inject, watch, computed } from "vue"; import { useDisplay } from "vuetify"; -// Props const { smAndDown } = useDisplay(); const romsStore = storeRoms(); const galleryFilterStore = storeGalleryFilter(); diff --git a/frontend/src/components/Gallery/AppBar/common/FilterBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterBtn.vue index 95624f506..23993b4c8 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterBtn.vue @@ -3,7 +3,6 @@ import storeGalleryFilter from "@/stores/galleryFilter"; import { storeToRefs } from "pinia"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const galleryFilterStore = storeGalleryFilter(); const { activeFilterDrawer } = storeToRefs(galleryFilterStore); diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue index 9680800d8..c00d16ff7 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue @@ -22,7 +22,6 @@ import { useI18n } from "vue-i18n"; import { useRouter } from "vue-router"; import { debounce } from "lodash"; -// Props withDefaults( defineProps<{ showPlayablesFilter?: boolean; @@ -164,7 +163,6 @@ const filters = [ }, ]; -// Functions function resetFilters() { galleryFilterStore.resetFilters(); nextTick(() => emitter?.emit("filterRoms", null)); diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterDuplicatesBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterDuplicatesBtn.vue index 21956d010..7e242edfd 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterDuplicatesBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterDuplicatesBtn.vue @@ -7,7 +7,6 @@ import { storeToRefs } from "pinia"; import { inject } from "vue"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const romsStore = storeRoms(); const galleryFilterStore = storeGalleryFilter(); diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterFavouritesBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterFavouritesBtn.vue index a0de619e5..e3f373a86 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterFavouritesBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterFavouritesBtn.vue @@ -6,7 +6,6 @@ import { storeToRefs } from "pinia"; import { inject } from "vue"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const galleryFilterStore = storeGalleryFilter(); const { filterFavourites } = storeToRefs(galleryFilterStore); diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMatchedBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMatchedBtn.vue index 538c52b2b..45ae8d79b 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMatchedBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMatchedBtn.vue @@ -6,7 +6,6 @@ import { storeToRefs } from "pinia"; import { inject } from "vue"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const galleryFilterStore = storeGalleryFilter(); const { filterMatched } = storeToRefs(galleryFilterStore); diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMissingBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMissingBtn.vue index 6c171967a..2b8872feb 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMissingBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMissingBtn.vue @@ -6,7 +6,6 @@ import { storeToRefs } from "pinia"; import { inject } from "vue"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const galleryFilterStore = storeGalleryFilter(); const { filterMissing } = storeToRefs(galleryFilterStore); diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterPlayablesBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterPlayablesBtn.vue index 660329eb5..09a276aef 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterPlayablesBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterPlayablesBtn.vue @@ -7,7 +7,6 @@ import { storeToRefs } from "pinia"; import { inject } from "vue"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const romsStore = storeRoms(); const galleryFilterStore = storeGalleryFilter(); @@ -15,7 +14,6 @@ const { fetchTotalRoms } = storeToRefs(romsStore); const { filterPlayables } = storeToRefs(galleryFilterStore); const emitter = inject>("emitter"); -// Functions function setPlayables() { galleryFilterStore.switchFilterPlayables(); emitter?.emit("filterRoms", null); diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue index c5f5b7433..981ef9978 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue @@ -7,7 +7,6 @@ import { storeToRefs } from "pinia"; import { inject } from "vue"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const romsStore = storeRoms(); const galleryFilterStore = storeGalleryFilter(); @@ -15,7 +14,6 @@ const { fetchTotalRoms } = storeToRefs(romsStore); const { filterRA } = storeToRefs(galleryFilterStore); const emitter = inject>("emitter"); -// Functions function setRA() { galleryFilterStore.switchFilterRA(); emitter?.emit("filterRoms", null); diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue index 570ebc56d..776ecf2a5 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue @@ -6,7 +6,6 @@ import { storeToRefs } from "pinia"; import { inject } from "vue"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const galleryFilterStore = storeGalleryFilter(); const { filterUnmatched } = storeToRefs(galleryFilterStore); diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterVerifiedBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterVerifiedBtn.vue index 7cd5d4823..c6af9ca43 100644 --- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterVerifiedBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterVerifiedBtn.vue @@ -6,7 +6,6 @@ import { storeToRefs } from "pinia"; import { inject } from "vue"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const galleryFilterStore = storeGalleryFilter(); const { filterVerified } = storeToRefs(galleryFilterStore); diff --git a/frontend/src/components/Gallery/AppBar/common/GalleryViewBtn.vue b/frontend/src/components/Gallery/AppBar/common/GalleryViewBtn.vue index d301ac03b..2f2761ef7 100644 --- a/frontend/src/components/Gallery/AppBar/common/GalleryViewBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/GalleryViewBtn.vue @@ -3,7 +3,6 @@ import storeGalleryView from "@/stores/galleryView"; import { views } from "@/utils"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const galleryView = storeGalleryView(); diff --git a/frontend/src/components/Gallery/AppBar/common/SelectingBtn.vue b/frontend/src/components/Gallery/AppBar/common/SelectingBtn.vue index ae5c61da0..2b4034f66 100644 --- a/frontend/src/components/Gallery/AppBar/common/SelectingBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/SelectingBtn.vue @@ -2,7 +2,6 @@ import storeRoms from "@/stores/roms"; import { useI18n } from "vue-i18n"; -// Props const { t } = useI18n(); const romsStore = storeRoms(); diff --git a/frontend/src/components/Gallery/AppBar/common/SortBar.vue b/frontend/src/components/Gallery/AppBar/common/SortBar.vue index 75a73d22f..0e31b95a2 100644 --- a/frontend/src/components/Gallery/AppBar/common/SortBar.vue +++ b/frontend/src/components/Gallery/AppBar/common/SortBar.vue @@ -3,7 +3,6 @@ import { inject, ref } from "vue"; import type { Emitter } from "mitt"; import type { Events } from "@/types/emitter"; -// Props const showSortBar = ref(false); const emitter = inject>("emitter"); emitter?.on("sortBarShow", () => { diff --git a/frontend/src/components/Gallery/AppBar/common/SortBtn.vue b/frontend/src/components/Gallery/AppBar/common/SortBtn.vue index ded784b54..42f6f6be2 100644 --- a/frontend/src/components/Gallery/AppBar/common/SortBtn.vue +++ b/frontend/src/components/Gallery/AppBar/common/SortBtn.vue @@ -3,7 +3,6 @@ import type { Events } from "@/types/emitter"; import type { Emitter } from "mitt"; import { ref, inject } from "vue"; -// Props const emitter = inject>("emitter"); const isShowSortBar = ref(false); function showSortBar() { diff --git a/frontend/src/components/Gallery/FabOverlay.vue b/frontend/src/components/Gallery/FabOverlay.vue index 1e15829b0..76443161e 100644 --- a/frontend/src/components/Gallery/FabOverlay.vue +++ b/frontend/src/components/Gallery/FabOverlay.vue @@ -15,7 +15,6 @@ import { inject, ref } from "vue"; import { useRoute } from "vue-router"; import { useDisplay } from "vuetify"; -// Props const { smAndDown } = useDisplay(); const romsStore = storeRoms(); const galleryViewStore = storeGalleryView(); @@ -33,7 +32,6 @@ const { favoriteCollection } = storeToRefs(collectionsStore); const route = useRoute(); const heartbeat = storeHeartbeat(); -// Functions function scrollToTop() { window.scrollTo({ top: 0, diff --git a/frontend/src/components/Gallery/Skeleton.vue b/frontend/src/components/Gallery/Skeleton.vue index 0264018c6..43ebf1a94 100644 --- a/frontend/src/components/Gallery/Skeleton.vue +++ b/frontend/src/components/Gallery/Skeleton.vue @@ -3,7 +3,6 @@ import { views } from "@/utils"; import { storeToRefs } from "pinia"; import storeGalleryView from "@/stores/galleryView"; -// Props const galleryViewStore = storeGalleryView(); const { currentView } = storeToRefs(galleryViewStore); diff --git a/frontend/src/components/Home/Collections.vue b/frontend/src/components/Home/Collections.vue index 54956cc3e..3529f02e4 100644 --- a/frontend/src/components/Home/Collections.vue +++ b/frontend/src/components/Home/Collections.vue @@ -15,7 +15,6 @@ const props = defineProps<{ | "gridSmartCollections"; }>(); -// Props const storedCollections = localStorage.getItem(`settings.${props.setting}`); const gridCollections = ref( isNull(storedCollections) ? false : storedCollections === "true", @@ -28,7 +27,6 @@ const visibleCollections = ref(72); const isHovering = ref(false); const hoveringCollectionId = ref(); -// Functions function toggleGridCollections() { gridCollections.value = !gridCollections.value; localStorage.setItem( diff --git a/frontend/src/components/Home/ContinuePlaying.vue b/frontend/src/components/Home/ContinuePlaying.vue index 0fcb496ca..d5d5f3b4f 100644 --- a/frontend/src/components/Home/ContinuePlaying.vue +++ b/frontend/src/components/Home/ContinuePlaying.vue @@ -8,7 +8,6 @@ import { isNull } from "lodash"; import { useI18n } from "vue-i18n"; import { ref } from "vue"; -// Props const { t } = useI18n(); const romsStore = storeRoms(); const { continuePlayingRoms } = storeToRefs(romsStore); @@ -27,7 +26,6 @@ const hoveringRomId = ref(); const openedMenu = ref(false); const openedMenuRomId = ref(); -// Functions function toggleGridContinuePlaying() { gridContinuePlayingRoms.value = !gridContinuePlayingRoms.value; localStorage.setItem( diff --git a/frontend/src/components/Home/Platforms.vue b/frontend/src/components/Home/Platforms.vue index 61ed2a2d0..5978383a8 100644 --- a/frontend/src/components/Home/Platforms.vue +++ b/frontend/src/components/Home/Platforms.vue @@ -8,7 +8,6 @@ import { useI18n } from "vue-i18n"; import { storeToRefs } from "pinia"; import { ref } from "vue"; -// Props const { t } = useI18n(); const platformsStore = storePlatforms(); const { filledPlatforms } = storeToRefs(platformsStore); diff --git a/frontend/src/components/Home/RecentAdded.vue b/frontend/src/components/Home/RecentAdded.vue index a54519eb5..5959b5981 100644 --- a/frontend/src/components/Home/RecentAdded.vue +++ b/frontend/src/components/Home/RecentAdded.vue @@ -8,7 +8,6 @@ import { isNull } from "lodash"; import { useI18n } from "vue-i18n"; import { ref } from "vue"; -// Props const { t } = useI18n(); const romsStore = storeRoms(); const { recentRoms } = storeToRefs(romsStore); @@ -25,7 +24,6 @@ const hoveringRomId = ref(); const openedMenu = ref(false); const openedMenuRomId = ref(); -// Functions function toggleGridRecentRoms() { gridRecentRoms.value = !gridRecentRoms.value; localStorage.setItem( diff --git a/frontend/src/components/Home/RecentSkeletonLoader.vue b/frontend/src/components/Home/RecentSkeletonLoader.vue index e104f7771..20a8648fa 100644 --- a/frontend/src/components/Home/RecentSkeletonLoader.vue +++ b/frontend/src/components/Home/RecentSkeletonLoader.vue @@ -2,7 +2,6 @@ import RSection from "@/components/common/RSection.vue"; import { views } from "@/utils"; -// Props defineProps<{ title: string }>();