From fbaaab2676e38702980ae2f158766b6e3b94ecf6 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Tue, 12 Aug 2025 22:20:18 -0400 Subject: [PATCH 01/32] jump to next game with arrow keys --- frontend/src/views/GameDetails.vue | 35 +++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/GameDetails.vue b/frontend/src/views/GameDetails.vue index cbdfe64ed..ed9220fbb 100644 --- a/frontend/src/views/GameDetails.vue +++ b/frontend/src/views/GameDetails.vue @@ -17,8 +17,15 @@ import storePlatforms from "@/stores/platforms"; import type { Events } from "@/types/emitter"; import type { Emitter } from "mitt"; import { storeToRefs } from "pinia"; -import { inject, onBeforeMount, ref, watch, defineAsyncComponent } from "vue"; -import { useRoute } from "vue-router"; +import { + inject, + onBeforeMount, + ref, + watch, + defineAsyncComponent, + onMounted, +} from "vue"; +import { useRoute, useRouter } from "vue-router"; import { useDisplay } from "vuetify"; import { useI18n } from "vue-i18n"; // Dynamic import for PDFViewer @@ -42,7 +49,8 @@ const emitter = inject>("emitter"); const noRomError = ref(false); const romsStore = storeRoms(); const platformsStore = storePlatforms(); -const { currentRom, fetchingRoms } = storeToRefs(romsStore); +const { currentRom, fetchingRoms, filteredRoms } = storeToRefs(romsStore); +const router = useRouter(); async function fetchDetails() { fetchingRoms.value = true; @@ -84,6 +92,27 @@ onBeforeMount(async () => { downloadStore.reset(); }); +onMounted(() => { + document.addEventListener("keydown", (event) => { + if (event.key === "ArrowLeft") { + const currentIndex = filteredRoms.value.findIndex( + (rom) => rom.id === currentRom.value?.id, + ); + if (currentIndex > 0) { + router.push(`/rom/${filteredRoms.value[currentIndex - 1].id}`); + } + } + if (event.key === "ArrowRight") { + const currentIndex = filteredRoms.value.findIndex( + (rom) => rom.id === currentRom.value?.id, + ); + if (currentIndex < filteredRoms.value.length - 1) { + router.push(`/rom/${filteredRoms.value[currentIndex + 1].id}`); + } + } + }); +}); + watch( () => route.fullPath, async () => { From 795a0a35343de1bee4148f431b5cbd98c77cbd26 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Tue, 12 Aug 2025 22:48:03 -0400 Subject: [PATCH 02/32] add to header footer for fun --- .../components/Details/BackgroundHeader.vue | 45 +++++++++++++++++- .../src/components/Details/Info/GameInfo.vue | 46 ++++++++++++++++++- 2 files changed, 88 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Details/BackgroundHeader.vue b/frontend/src/components/Details/BackgroundHeader.vue index 84b455e23..43a667c59 100644 --- a/frontend/src/components/Details/BackgroundHeader.vue +++ b/frontend/src/components/Details/BackgroundHeader.vue @@ -3,9 +3,12 @@ import storeRoms from "@/stores/roms"; import { getMissingCoverImage, getUnmatchedCoverImage } from "@/utils/covers"; import { storeToRefs } from "pinia"; import { computed } from "vue"; +import { useRouter } from "vue-router"; const romsStore = storeRoms(); -const { currentRom } = storeToRefs(romsStore); +const { currentRom, filteredRoms } = storeToRefs(romsStore); +const router = useRouter(); + const missingCoverImage = computed(() => getMissingCoverImage( currentRom.value?.name || currentRom.value?.fs_name || "", @@ -16,6 +19,22 @@ const unmatchedCoverImage = computed(() => currentRom.value?.name || currentRom.value?.fs_name || "", ), ); + +const currentRomIndex = computed(() => + filteredRoms.value.findIndex((rom) => rom.id === currentRom.value?.id), +); + +function previousRom() { + if (currentRomIndex.value > 0) { + router.push(`/rom/${filteredRoms.value[currentRomIndex.value - 1].id}`); + } +} + +function nextRom() { + if (currentRomIndex.value < filteredRoms.value.length - 1) { + router.push(`/rom/${filteredRoms.value[currentRomIndex.value + 1].id}`); + } +} + + + + mdi-arrow-left + {{ + filteredRoms[currentRomIndex - 1].name + }} + + + {{ + filteredRoms[currentRomIndex + 1].name + }} + mdi-arrow-right + + + diff --git a/frontend/src/components/common/RDialog.vue b/frontend/src/components/common/RDialog.vue index d43f582df..3985193b3 100644 --- a/frontend/src/components/common/RDialog.vue +++ b/frontend/src/components/common/RDialog.vue @@ -87,7 +87,7 @@ onMounted(() => { - + @@ -125,7 +125,7 @@ onMounted(() => { name="content" > - + diff --git a/frontend/src/locales/de_DE/common.json b/frontend/src/locales/de_DE/common.json index e531cfa15..966c863be 100644 --- a/frontend/src/locales/de_DE/common.json +++ b/frontend/src/locales/de_DE/common.json @@ -10,11 +10,16 @@ "confirm": "Bestätigen", "core": "Core", "create": "Erstellen", + "dropzone-description": "Ziehen Sie Ihre ROM-Dateien hierher oder klicken Sie zum Durchsuchen", + "dropzone-drag-over": "Loslassen zum Hochladen", + "dropzone-title": "Dateien hier ablegen", "edit": "Bearbeiten", "exclude-on-delete": "Beim Löschen ausschließen", "filter": "Filter", "firmware": "Firmware", "games-n": "{n} Spiel | {n} Spiele", + "invalid-email": "Ungültige E-Mail", + "invalid-name": "Ungültiger Name", "library-management": "Bibliothek verwalten", "logout": "Ausloggen", "name": "Name", @@ -25,8 +30,6 @@ "profile": "Profil", "random": "Zufällig", "required": "Erforderlich", - "invalid-name": "Ungültiger Name", - "invalid-email": "Ungültige E-Mail", "save": "Speichern", "saves": "Speicherstände", "saves-n": "{n} Speichern | {n} Speicherstände", @@ -35,15 +38,16 @@ "server-stats": "Serverstatistiken", "size-on-disk": "Größe auf Festplatte", "slug": "Slug", + "smart-collection": "Intelligente Sammlung", + "smart-collections": "Intelligente Sammlungen", "state": "Spielstand", "states": "Spielstände", "states-n": "{n} Spielstand | {n} Spielstände", + "sync": "Synchronisieren", "update": "Update", "upload": "Hochladen", + "upload-files-selected": "{count} Datei ausgewählt | {count} Dateien ausgewählt", "user-interface": "Benutzeroberfläche", "virtual-collection": "Autogenerierte Sammlung", - "virtual-collections": "Autogenerierte Sammlungen", - "smart-collection": "Intelligente Sammlung", - "smart-collections": "Intelligente Sammlungen", - "sync": "Synchronisieren" + "virtual-collections": "Autogenerierte Sammlungen" } diff --git a/frontend/src/locales/en_GB/common.json b/frontend/src/locales/en_GB/common.json index cecad1127..055a6f421 100644 --- a/frontend/src/locales/en_GB/common.json +++ b/frontend/src/locales/en_GB/common.json @@ -10,11 +10,16 @@ "confirm": "Confirm", "core": "Core", "create": "Create", + "dropzone-description": "Drag and drop your ROM files here, or click to browse", + "dropzone-drag-over": "Release to upload", + "dropzone-title": "Drop files here", "edit": "Edit", "exclude-on-delete": "Exclude on delete", "filter": "Filter", "firmware": "Firmware", "games-n": "{n} Game | {n} Games", + "invalid-email": "Invalid email", + "invalid-name": "Invalid name", "library-management": "Library management", "logout": "Logout", "name": "Name", @@ -25,8 +30,6 @@ "profile": "Profile", "random": "Random", "required": "Required", - "invalid-name": "Invalid name", - "invalid-email": "Invalid email", "save": "Save", "saves": "Saves", "saves-n": "{n} Save | {n} Saves", @@ -35,15 +38,16 @@ "server-stats": "Server stats", "size-on-disk": "Size on disk", "slug": "Slug", + "smart-collection": "Smart Collection", + "smart-collections": "Smart Collections", "state": "State", "states": "States", "states-n": "{n} State | {n} States", "sync": "Sync", "update": "Update", "upload": "Upload", + "upload-files-selected": "{count} file selected | {count} files selected", "user-interface": "User interface", "virtual-collection": "Autogenerated collection", - "virtual-collections": "Autogenerated collections", - "smart-collection": "Smart Collection", - "smart-collections": "Smart Collections" + "virtual-collections": "Autogenerated collections" } diff --git a/frontend/src/locales/en_US/common.json b/frontend/src/locales/en_US/common.json index cecad1127..055a6f421 100644 --- a/frontend/src/locales/en_US/common.json +++ b/frontend/src/locales/en_US/common.json @@ -10,11 +10,16 @@ "confirm": "Confirm", "core": "Core", "create": "Create", + "dropzone-description": "Drag and drop your ROM files here, or click to browse", + "dropzone-drag-over": "Release to upload", + "dropzone-title": "Drop files here", "edit": "Edit", "exclude-on-delete": "Exclude on delete", "filter": "Filter", "firmware": "Firmware", "games-n": "{n} Game | {n} Games", + "invalid-email": "Invalid email", + "invalid-name": "Invalid name", "library-management": "Library management", "logout": "Logout", "name": "Name", @@ -25,8 +30,6 @@ "profile": "Profile", "random": "Random", "required": "Required", - "invalid-name": "Invalid name", - "invalid-email": "Invalid email", "save": "Save", "saves": "Saves", "saves-n": "{n} Save | {n} Saves", @@ -35,15 +38,16 @@ "server-stats": "Server stats", "size-on-disk": "Size on disk", "slug": "Slug", + "smart-collection": "Smart Collection", + "smart-collections": "Smart Collections", "state": "State", "states": "States", "states-n": "{n} State | {n} States", "sync": "Sync", "update": "Update", "upload": "Upload", + "upload-files-selected": "{count} file selected | {count} files selected", "user-interface": "User interface", "virtual-collection": "Autogenerated collection", - "virtual-collections": "Autogenerated collections", - "smart-collection": "Smart Collection", - "smart-collections": "Smart Collections" + "virtual-collections": "Autogenerated collections" } diff --git a/frontend/src/locales/es_ES/common.json b/frontend/src/locales/es_ES/common.json index 0abc19c0a..957760238 100644 --- a/frontend/src/locales/es_ES/common.json +++ b/frontend/src/locales/es_ES/common.json @@ -10,11 +10,16 @@ "confirm": "Confirmar", "core": "Núcleo", "create": "Crear", + "dropzone-description": "Arrastra y suelta tus archivos ROM aquí, o haz clic para explorar", + "dropzone-drag-over": "Suelta para subir", + "dropzone-title": "Suelta archivos aquí", "edit": "Editar", "exclude-on-delete": "Excluir al eliminar", "filter": "Filtrar", "firmware": "Firmware", "games-n": "{n} Juego | {n} Juegos", + "invalid-email": "Correo electrónico inválido", + "invalid-name": "Nombre inválido", "library-management": "Gestionar biblioteca", "logout": "Cerrar sesión", "name": "Nombre", @@ -25,8 +30,6 @@ "profile": "Perfil", "random": "Aleatorio", "required": "Requerido", - "invalid-name": "Nombre inválido", - "invalid-email": "Correo electrónico inválido", "save": "Guardado", "saves": "Guardados", "saves-n": "{n} Guardado | {n} Guardados", @@ -35,15 +38,16 @@ "server-stats": "Estadísticas del servidor", "size-on-disk": "Tamaño en disco", "slug": "Slug", + "smart-collection": "Colección Inteligente", + "smart-collections": "Colecciones Inteligentes", "state": "Estado", "states": "Estados", "states-n": "{n} Estado | {n} Estados", + "sync": "Sincronizar", "update": "Actualizar", "upload": "Subir", + "upload-files-selected": "{count} archivo seleccionado | {count} archivos seleccionados", "user-interface": "Interfaz de usuario", "virtual-collection": "Colección autogenerada", - "virtual-collections": "Colecciones autogeneradas", - "smart-collection": "Colección Inteligente", - "smart-collections": "Colecciones Inteligentes", - "sync": "Sincronizar" + "virtual-collections": "Colecciones autogeneradas" } diff --git a/frontend/src/locales/fr_FR/common.json b/frontend/src/locales/fr_FR/common.json index d6a472827..da0ed2916 100644 --- a/frontend/src/locales/fr_FR/common.json +++ b/frontend/src/locales/fr_FR/common.json @@ -10,11 +10,16 @@ "confirm": "Confirmer", "core": "Noyau", "create": "Créer", + "dropzone-description": "Glissez-déposez vos fichiers ROM ici, ou cliquez pour parcourir", + "dropzone-drag-over": "Relâchez pour téléverser", + "dropzone-title": "Déposez les fichiers ici", "edit": "Éditer", "exclude-on-delete": "Exclure lors de la suppression", "filter": "Filtrer", "firmware": "Micrologiciel", "games-n": "{n} Jeu | {n} Jeux", + "invalid-email": "E-mail invalide", + "invalid-name": "Nom invalide", "library-management": "Gestion de la bibliothèque", "logout": "Se déconnecter", "name": "Nom", @@ -25,8 +30,6 @@ "profile": "Profil", "random": "Aléatoire", "required": "Requis", - "invalid-name": "Nom invalide", - "invalid-email": "E-mail invalide", "save": "Sauvegarder", "saves": "Sauvegardes", "saves-n": "{n} Sauvegarder | {n} Sauvegardes", @@ -35,15 +38,16 @@ "server-stats": "Statistiques du serveur", "size-on-disk": "Taille sur le disque", "slug": "Slug", + "smart-collection": "Collection Intelligente", + "smart-collections": "Collections Intelligentes", "state": "État", "states": "États", "states-n": "{n} État | {n} États", + "sync": "Synchroniser", "update": "Mettre à jour", "upload": "Téléverser", + "upload-files-selected": "{count} fichier sélectionné | {count} fichiers sélectionnés", "user-interface": "Interface utilisateur", "virtual-collection": "Collection autogénérée", - "virtual-collections": "Collections autogénérées", - "smart-collection": "Collection Intelligente", - "smart-collections": "Collections Intelligentes", - "sync": "Synchroniser" + "virtual-collections": "Collections autogénérées" } diff --git a/frontend/src/locales/it_IT/common.json b/frontend/src/locales/it_IT/common.json index 18772fb7a..a3219a2ab 100644 --- a/frontend/src/locales/it_IT/common.json +++ b/frontend/src/locales/it_IT/common.json @@ -10,11 +10,16 @@ "confirm": "Conferma", "core": "Core", "create": "Crea", + "dropzone-description": "Trascina e rilascia i tuoi file ROM qui, o clicca per sfogliare", + "dropzone-drag-over": "Rilascia per caricare", + "dropzone-title": "Rilascia i file qui", "edit": "Modifica", "exclude-on-delete": "Escludi al momento dell'eliminazione", "filter": "Filtro", "firmware": "Firmware", "games-n": "{n} Gioco | {n} Giochi", + "invalid-email": "Email non valida", + "invalid-name": "Nome non valido", "library-management": "Gestione Libreria", "logout": "Logout", "name": "Nome", @@ -25,8 +30,6 @@ "profile": "Profilo", "random": "Casuale", "required": "Obbligatorio", - "invalid-name": "Nome non valido", - "invalid-email": "Email non valida", "save": "Salvataggio", "saves": "Salvataggi", "saves-n": "{n} Salvataggio | {n} Salvataggi", @@ -35,15 +38,16 @@ "server-stats": "Statistiche del server", "size-on-disk": "Dimensione sul disco", "slug": "Slug", + "smart-collection": "Collezione Intelligente", + "smart-collections": "Collezioni Intelligenti", "state": "Stato", "states": "Stati", "states-n": "{n} Stato | {n} Stati", + "sync": "Sincronizza", "update": "Aggiorna", "upload": "Carica", + "upload-files-selected": "{count} file selezionato | {count} file selezionati", "user-interface": "Interfaccia Utente", "virtual-collection": "Collezione generata automaticamente", - "virtual-collections": "Collezioni generate automaticamente", - "smart-collection": "Collezione Intelligente", - "smart-collections": "Collezioni Intelligenti", - "sync": "Sincronizza" + "virtual-collections": "Collezioni generate automaticamente" } diff --git a/frontend/src/locales/ja_JP/common.json b/frontend/src/locales/ja_JP/common.json index b92d30e29..069db0edd 100644 --- a/frontend/src/locales/ja_JP/common.json +++ b/frontend/src/locales/ja_JP/common.json @@ -10,11 +10,16 @@ "confirm": "確定", "core": "コア", "create": "作成", + "dropzone-description": "ROMファイルをここにドラッグ&ドロップするか、クリックして参照してください", + "dropzone-drag-over": "アップロードするには離してください", + "dropzone-title": "ファイルをここにドロップ", "edit": "編集", "exclude-on-delete": "削除時に除外", "filter": "フィルタ", "firmware": "ファームウェア", "games-n": "{n} ゲーム | {n} ゲーム", + "invalid-email": "無効なメールアドレス", + "invalid-name": "無効な名前", "library-management": "ライブラリ管理", "logout": "ログアウト", "name": "名前", @@ -25,8 +30,6 @@ "profile": "プロファイル", "random": "ランダム", "required": "必須", - "invalid-name": "無効な名前", - "invalid-email": "無効なメールアドレス", "save": "セーブ", "saves": "セーブ", "saves-n": "{n} セーブ | {n} セーブ", @@ -35,15 +38,16 @@ "server-stats": "サーバーステータス", "size-on-disk": "ディスク上のサイズ", "slug": "スラッグ", + "smart-collection": "スマートコレクション", + "smart-collections": "スマートコレクション", "state": "ステートセーブ", "states": "ステートセーブ", "states-n": "{n} ステートセーブ | {n} ステートセーブ", + "sync": "同期", "update": "アップデート", "upload": "アップロード", + "upload-files-selected": "{count} ファイルが選択されました", "user-interface": "ユーザーインターフェイス", "virtual-collection": "自動生成コレクション", - "virtual-collections": "自動生成コレクション", - "smart-collection": "スマートコレクション", - "smart-collections": "スマートコレクション", - "sync": "同期" + "virtual-collections": "自動生成コレクション" } diff --git a/frontend/src/locales/ko_KR/common.json b/frontend/src/locales/ko_KR/common.json index a6db4e0df..e2442929f 100644 --- a/frontend/src/locales/ko_KR/common.json +++ b/frontend/src/locales/ko_KR/common.json @@ -10,11 +10,16 @@ "confirm": "확인", "core": "코어", "create": "생성", + "dropzone-description": "ROM 파일을 여기에 드래그 앤 드롭하거나 클릭하여 탐색하세요", + "dropzone-drag-over": "업로드하려면 놓으세요", + "dropzone-title": "파일을 여기에 드롭하세요", "edit": "수정", "exclude-on-delete": "삭제 시 제외", "filter": "필터", "firmware": "펌웨어", "games-n": "게임 {n}개 | 게임 {n}개", + "invalid-email": "유효하지 않은 이메일", + "invalid-name": "유효하지 않은 이름", "library-management": "라이브러리 관리", "logout": "로그아웃", "name": "이름", @@ -25,8 +30,6 @@ "profile": "프로필", "random": "무작위", "required": "필수", - "invalid-name": "유효하지 않은 이름", - "invalid-email": "유효하지 않은 이메일", "save": "세이브", "saves": "세이브", "saves-n": "세이브 {n}개 | 세이브 {n}개", @@ -35,15 +38,16 @@ "server-stats": "서버 통계", "size-on-disk": "디스크 크기", "slug": "슬러그", + "smart-collection": "스마트 모음집", + "smart-collections": "스마트 모음집", "state": "저장 상태", "states": "저장 상태", "states-n": "저장 상태 {n}개 | 저장 상태 {n}개", + "sync": "동기화", "update": "업데이트", "upload": "업로드", + "upload-files-selected": "{count}개 파일이 선택되었습니다", "user-interface": "사용자 인터페이스", "virtual-collection": "자동 생성된 모음집", - "virtual-collections": "자동 생성된 모음집", - "smart-collection": "스마트 모음집", - "smart-collections": "스마트 모음집", - "sync": "동기화" + "virtual-collections": "자동 생성된 모음집" } diff --git a/frontend/src/locales/pl_PL/common.json b/frontend/src/locales/pl_PL/common.json index f76410798..259b55e0b 100644 --- a/frontend/src/locales/pl_PL/common.json +++ b/frontend/src/locales/pl_PL/common.json @@ -10,11 +10,16 @@ "confirm": "Potwierdź", "core": "Rdzeń", "create": "Utwórz", + "dropzone-description": "Przeciągnij i upuść swoje pliki ROM tutaj, lub kliknij aby przeglądać", + "dropzone-drag-over": "Puść aby przesłać", + "dropzone-title": "Upuść pliki tutaj", "edit": "Edytuj", "exclude-on-delete": "Wyklucz przy usunięciu", "filter": "Filtruj", "firmware": "Oprogramowanie", "games-n": "{n} Gra | {n} Gry | {n} Gier", + "invalid-email": "Nieprawidłowy email", + "invalid-name": "Nieprawidłowa nazwa", "library-management": "Zarządzanie biblioteką", "logout": "Wyloguj się", "name": "Nazwa", @@ -25,8 +30,6 @@ "profile": "Profil", "random": "Losowo", "required": "Wymagane", - "invalid-name": "Nieprawidłowa nazwa", - "invalid-email": "Nieprawidłowy email", "save": "Zapisz", "saves": "Zapisane stany", "saves-n": "{n} Zapis | {n} Zapisy | {n} Zapisów", @@ -43,6 +46,7 @@ "sync": "Synchronizuj", "update": "Aktualizuj", "upload": "Prześlij", + "upload-files-selected": "{count} plik wybrany | {count} pliki wybrane | {count} plików wybranych", "user-interface": "Interfejs użytkownika", "virtual-collection": "Automatycznie wygenerowana kolekcja", "virtual-collections": "Automatycznie wygenerowane kolekcje" diff --git a/frontend/src/locales/pt_BR/common.json b/frontend/src/locales/pt_BR/common.json index a08665b57..4e86c08bb 100644 --- a/frontend/src/locales/pt_BR/common.json +++ b/frontend/src/locales/pt_BR/common.json @@ -10,11 +10,16 @@ "confirm": "Confirmar", "core": "Núcleo", "create": "Criar", + "dropzone-description": "Arraste e solte seus arquivos ROM aqui, ou clique para navegar", + "dropzone-drag-over": "Solte para carregar", + "dropzone-title": "Solte os arquivos aqui", "edit": "Editar", "exclude-on-delete": "Excluir ao excluir", "filter": "Filtrar", "firmware": "Firmware", "games-n": "{n} Jogo | {n} Jogos", + "invalid-email": "Email inválido", + "invalid-name": "Nome inválido", "library-management": "Gerenciamento de biblioteca", "logout": "Sair", "name": "Nome", @@ -25,8 +30,6 @@ "profile": "Perfil", "random": "Aleatório", "required": "Requerido", - "invalid-name": "Nome inválido", - "invalid-email": "Email inválido", "save": "Salvar", "saves": "Salvar", "saves-n": "{n} Salvar | {n} Salvar", @@ -35,15 +38,16 @@ "server-stats": "Estatísticas do servidor", "size-on-disk": "Tamanho no disco", "slug": "Slug", + "smart-collection": "Coleção Inteligente", + "smart-collections": "Coleções Inteligentes", "state": "Estado", "states": "Estados", "states-n": "{n} Estado | {n} Estados", + "sync": "Sincronizar", "update": "Atualizar", "upload": "Carregar", + "upload-files-selected": "{count} arquivo selecionado | {count} arquivos selecionados", "user-interface": "Interface do usuário", "virtual-collection": "Coleção autogerada", - "virtual-collections": "Coleções autogeradas", - "smart-collection": "Coleção Inteligente", - "smart-collections": "Coleções Inteligentes", - "sync": "Sincronizar" + "virtual-collections": "Coleções autogeradas" } diff --git a/frontend/src/locales/ro_RO/common.json b/frontend/src/locales/ro_RO/common.json index 2ab28303d..0f74e07a9 100644 --- a/frontend/src/locales/ro_RO/common.json +++ b/frontend/src/locales/ro_RO/common.json @@ -10,11 +10,16 @@ "confirm": "Confirmă", "core": "Nucleu", "create": "Creează", + "dropzone-description": "Trageți și eliberați fișierele ROM aici, sau faceți clic pentru a naviga", + "dropzone-drag-over": "Eliberați pentru a încărca", + "dropzone-title": "Trageți fișierele aici", "edit": "Editează", "exclude-on-delete": "Excluzând la ștergere", "filter": "Filtru", "firmware": "Firmware", "games-n": "{n} Joc | {n} Jocuri", + "invalid-email": "Email invalid", + "invalid-name": "Nume invalid", "library-management": "Gestionare bibliotecă", "logout": "Deconectare", "name": "Nume", @@ -25,8 +30,6 @@ "profile": "Profil", "random": "Aleatoriu", "required": "Obligatoriu", - "invalid-name": "Nume invalid", - "invalid-email": "Email invalid", "save": "Salvare", "saves": "Salvări", "saves-n": "{n} Salvare | {n} Salvări", @@ -35,15 +38,16 @@ "server-stats": "Statistici server", "size-on-disk": "Dimensiune pe disc", "slug": "Slug", + "smart-collection": "Colecție Inteligentă", + "smart-collections": "Colecții Inteligente", "state": "Stare", "states": "Stări", "states-n": "{n} Stare | {n} Stări", + "sync": "Sincronizează", "update": "Actualizează", "upload": "Încarcă", + "upload-files-selected": "{count} fișier selectat | {count} fișiere selectate", "user-interface": "Interfață utilizator", "virtual-collection": "Colecție autogenerată", - "virtual-collections": "Colecții autogenerate", - "smart-collection": "Colecție Inteligentă", - "smart-collections": "Colecții Inteligente", - "sync": "Sincronizează" + "virtual-collections": "Colecții autogenerate" } diff --git a/frontend/src/locales/ru_RU/common.json b/frontend/src/locales/ru_RU/common.json index 4cb6c914c..67b88cb29 100644 --- a/frontend/src/locales/ru_RU/common.json +++ b/frontend/src/locales/ru_RU/common.json @@ -10,11 +10,16 @@ "confirm": "Подтвердить", "core": "Ядро", "create": "Создать", + "dropzone-description": "Перетащите ваши ROM файлы сюда или нажмите для просмотра", + "dropzone-drag-over": "Отпустите для загрузки", + "dropzone-title": "Перетащите файлы сюда", "edit": "Редактировать", "exclude-on-delete": "Исключить при удалении", "filter": "Фильтр", "firmware": "Прошивка", "games-n": "{n} Игра | {n} Игры", + "invalid-email": "Недопустимый адрес электронной почты", + "invalid-name": "Недопустимое имя", "library-management": "Управление библиотекой", "logout": "Выйти", "name": "Имя", @@ -25,8 +30,6 @@ "profile": "Профиль", "random": "Случайный", "required": "Обязательное поле", - "invalid-name": "Недопустимое имя", - "invalid-email": "Недопустимый адрес электронной почты", "save": "Сохранить", "saves": "Сохранения", "saves-n": "{n} Сохранить | {n} Сохранения", @@ -35,15 +38,16 @@ "server-stats": "Статистика сервера", "size-on-disk": "Размер на диске", "slug": "Слаг", + "smart-collection": "Умная коллекция", + "smart-collections": "Умные коллекции", "state": "Состояние", "states": "Состояния", "states-n": "{n} Состояние | {n} Состояния", + "sync": "Синхронизировать", "update": "Обновить", "upload": "Загрузить", + "upload-files-selected": "{count} файл выбран | {count} файла выбрано | {count} файлов выбрано", "user-interface": "Пользовательский интерфейс", "virtual-collection": "Автосгенерированная коллекция", - "virtual-collections": "Автосгенерированные коллекции", - "smart-collection": "Умная коллекция", - "smart-collections": "Умные коллекции", - "sync": "Синхронизировать" + "virtual-collections": "Автосгенерированные коллекции" } diff --git a/frontend/src/locales/zh_CN/common.json b/frontend/src/locales/zh_CN/common.json index 58cc80359..70f1333e4 100644 --- a/frontend/src/locales/zh_CN/common.json +++ b/frontend/src/locales/zh_CN/common.json @@ -10,11 +10,16 @@ "confirm": "确认", "core": "核心", "create": "创建", + "dropzone-description": "将您的ROM文件拖放到此处,或点击浏览", + "dropzone-drag-over": "释放以上传", + "dropzone-title": "将文件拖放到此处", "edit": "编辑", "exclude-on-delete": "删除时排除", "filter": "筛选", "firmware": "固件", "games-n": "{n} 游戏 | {n} 游戏", + "invalid-email": "无效的电子邮件", + "invalid-name": "无效的名称", "library-management": "游戏库管理", "logout": "注销", "name": "名称", @@ -25,8 +30,6 @@ "profile": "简介", "random": "随机", "required": "必填", - "invalid-name": "无效的名称", - "invalid-email": "无效的电子邮件", "save": "存档", "saves": "存档", "saves-n": "{n} 存档 | {n} 存档", @@ -35,15 +38,16 @@ "server-stats": "服务器状态", "size-on-disk": "磁盘大小", "slug": "Slug", + "smart-collection": "智能收藏", + "smart-collections": "智能收藏", "state": "状态", "states": "状态", "states-n": "{n} 状态 | {n} 状态", + "sync": "同步", "update": "更新", "upload": "上传", + "upload-files-selected": "已选择 {count} 个文件", "user-interface": "用户界面", "virtual-collection": "自动生成的收藏", - "virtual-collections": "自动生成的收藏", - "smart-collection": "智能收藏", - "smart-collections": "智能收藏", - "sync": "同步" + "virtual-collections": "自动生成的收藏" } diff --git a/frontend/src/locales/zh_TW/common.json b/frontend/src/locales/zh_TW/common.json index 073796355..051131363 100644 --- a/frontend/src/locales/zh_TW/common.json +++ b/frontend/src/locales/zh_TW/common.json @@ -10,11 +10,16 @@ "confirm": "確認", "core": "核心", "create": "建立", + "dropzone-description": "將您的ROM檔案拖放到此處,或點擊瀏覽", + "dropzone-drag-over": "釋放以上傳", + "dropzone-title": "將檔案拖放到此處", "edit": "編輯", "exclude-on-delete": "刪除時排除", "filter": "篩選", "firmware": "韌體", "games-n": "{n} 遊戲 | {n} 遊戲", + "invalid-email": "無效的電子郵件", + "invalid-name": "無效的名稱", "library-management": "管理遊戲庫", "logout": "登出", "name": "名稱", @@ -25,8 +30,6 @@ "profile": "用戶資料", "random": "隨機", "required": "必填", - "invalid-name": "無效的名稱", - "invalid-email": "無效的電子郵件", "save": "存檔", "saves": "存檔", "saves-n": "{n} 存檔 | {n} 存檔", @@ -35,15 +38,16 @@ "server-stats": "伺服器狀態", "size-on-disk": "占用磁碟空間", "slug": "網址關鍵字", + "smart-collection": "智能收藏庫", + "smart-collections": "智能收藏庫", "state": "即時存檔", "states": "即時存檔", "states-n": "{n} 即時存檔 | {n} 即時存檔", + "sync": "同步", "update": "更新", "upload": "上傳", + "upload-files-selected": "已選擇 {count} 個檔案", "user-interface": "使用界面", "virtual-collection": "自動生成的收藏庫", - "virtual-collections": "自動生成的收藏庫", - "smart-collection": "智能收藏庫", - "smart-collections": "智能收藏庫", - "sync": "同步" + "virtual-collections": "自動生成的收藏庫" } From dfd6bd2bc915d3edcf38a14cd51105e391ee9a89 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Wed, 3 Sep 2025 10:18:08 -0400 Subject: [PATCH 27/32] Run formatter on all vue imports --- frontend/src/RomM.vue | 4 +-- frontend/src/components/Details/ActionBar.vue | 8 +++--- .../components/Details/AdditionalContent.vue | 2 +- .../components/Details/BackgroundHeader.vue | 4 +-- frontend/src/components/Details/GameData.vue | 6 ++-- .../src/components/Details/Info/FileInfo.vue | 4 +-- .../src/components/Details/Info/GameInfo.vue | 12 ++++---- frontend/src/components/Details/PDFViewer.vue | 2 +- frontend/src/components/Details/Personal.vue | 14 +++++----- .../src/components/Details/RelatedGames.vue | 2 +- .../components/Details/RetroAchievements.vue | 6 ++-- frontend/src/components/Details/Saves.vue | 8 +++--- frontend/src/components/Details/States.vue | 8 +++--- frontend/src/components/Details/Title.vue | 6 ++-- .../components/Details/VersionSwitcher.vue | 2 +- .../Gallery/AppBar/Collection/Base.vue | 6 ++-- .../Collection/CollectionInfoDrawer.vue | 10 +++---- .../Collection/SmartCollectionInfoDrawer.vue | 10 +++---- .../Gallery/AppBar/Platform/Base.vue | 4 +-- .../Gallery/AppBar/Platform/FirmwareBtn.vue | 2 +- .../AppBar/Platform/FirmwareDrawer.vue | 10 +++---- .../AppBar/Platform/PlatformInfoDrawer.vue | 12 ++++---- .../Gallery/AppBar/Search/SearchTextField.vue | 6 ++-- .../Gallery/AppBar/common/CharIndexBar.vue | 8 +++--- .../AppBar/common/ContextualRandomBtn.vue | 10 +++---- .../Gallery/AppBar/common/FilterBtn.vue | 2 +- .../AppBar/common/FilterDrawer/Base.vue | 14 +++++----- .../FilterDrawer/FilterDuplicatesBtn.vue | 6 ++-- .../FilterDrawer/FilterFavouritesBtn.vue | 4 +-- .../common/FilterDrawer/FilterMatchedBtn.vue | 4 +-- .../common/FilterDrawer/FilterMissingBtn.vue | 4 +-- .../FilterDrawer/FilterPlayablesBtn.vue | 6 ++-- .../common/FilterDrawer/FilterRaBtn.vue | 6 ++-- .../FilterDrawer/FilterUnmatchedBtn.vue | 4 +-- .../common/FilterDrawer/FilterVerifiedBtn.vue | 4 +-- .../Gallery/AppBar/common/GalleryViewBtn.vue | 2 +- .../Gallery/AppBar/common/SelectingBtn.vue | 2 +- .../AppBar/common/SmartCollectionBtn.vue | 4 +-- .../Gallery/AppBar/common/SortBar.vue | 2 +- .../Gallery/AppBar/common/SortBtn.vue | 2 +- .../src/components/Gallery/FabOverlay.vue | 12 ++++---- .../src/components/Gallery/LoadMoreBtn.vue | 2 +- frontend/src/components/Gallery/Skeleton.vue | 2 +- frontend/src/components/Home/Collections.vue | 6 ++-- .../src/components/Home/ContinuePlaying.vue | 8 +++--- frontend/src/components/Home/Platforms.vue | 8 +++--- .../src/components/Home/PlatformsSkeleton.vue | 4 +-- frontend/src/components/Home/RecentAdded.vue | 8 +++--- frontend/src/components/Home/Stats.vue | 4 +-- .../src/components/Settings/AboutDialog.vue | 6 ++-- .../Settings/Administration/TaskOption.vue | 4 +-- .../Settings/Administration/Tasks.vue | 4 +-- .../Users/Dialog/CreateUser.vue | 8 +++--- .../Users/Dialog/DeleteUser.vue | 6 ++-- .../Administration/Users/Dialog/EditUser.vue | 8 +++--- .../Users/Dialog/InviteLink.vue | 8 +++--- .../Settings/Administration/Users/Table.vue | 8 +++--- .../Config/Dialog/CreateExclusion.vue | 8 +++--- .../Config/Dialog/CreatePlatformBinding.vue | 8 +++--- .../Config/Dialog/CreatePlatformVersion.vue | 8 +++--- .../Config/Dialog/DeletePlatformBinding.vue | 6 ++-- .../Config/Dialog/DeletePlatformVersion.vue | 6 ++-- .../LibraryManagement/Config/Excluded.vue | 4 +-- .../LibraryManagement/Config/ExcludedCard.vue | 6 ++-- .../Config/PlatformBinding.vue | 8 +++--- .../Config/PlatformVersions.vue | 8 +++--- .../Settings/ServerStats/PlatformsStats.vue | 6 ++-- .../Settings/ServerStats/SummaryStats.vue | 2 +- .../Settings/UserInterface/Interface.vue | 6 ++-- .../Settings/UserInterface/Language.vue | 2 +- .../UserInterface/LanguageSelector.vue | 2 +- .../Settings/UserInterface/Theme.vue | 8 +++--- .../UserProfile/RetroAchievements.vue | 8 +++--- .../src/components/common/Collection/Card.vue | 6 ++-- .../common/Collection/Dialog/AddRoms.vue | 8 +++--- .../Collection/Dialog/CreateCollection.vue | 10 +++---- .../Dialog/CreateSmartCollection.vue | 14 +++++----- .../Collection/Dialog/DeleteCollection.vue | 10 +++---- .../Dialog/DeleteSmartCollection.vue | 10 +++---- .../common/Collection/Dialog/RemoveRoms.vue | 10 +++---- .../components/common/Collection/ListItem.vue | 2 +- .../components/common/Collection/RAvatar.vue | 2 +- .../src/components/common/Game/AdminMenu.vue | 6 ++-- .../components/common/Game/Card/ActionBar.vue | 8 +++--- .../src/components/common/Game/Card/Base.vue | 10 +++---- .../src/components/common/Game/Card/Flags.vue | 6 ++-- .../components/common/Game/Card/Related.vue | 2 +- .../components/common/Game/Card/Skeleton.vue | 4 +-- .../common/Game/Dialog/Asset/DeleteSaves.vue | 6 ++-- .../common/Game/Dialog/Asset/DeleteStates.vue | 6 ++-- .../common/Game/Dialog/Asset/SelectSave.vue | 10 +++---- .../common/Game/Dialog/Asset/SelectState.vue | 10 +++---- .../common/Game/Dialog/Asset/UploadSaves.vue | 6 ++-- .../common/Game/Dialog/Asset/UploadStates.vue | 6 ++-- .../common/Game/Dialog/CopyDownloadLink.vue | 4 +-- .../common/Game/Dialog/DeleteRom.vue | 10 +++---- .../components/common/Game/Dialog/EditRom.vue | 10 +++---- .../common/Game/Dialog/MatchRom.vue | 10 +++---- .../common/Game/Dialog/NoteDialog.vue | 4 +-- .../common/Game/Dialog/ShowQRCode.vue | 8 +++--- .../common/Game/Dialog/UploadRom.vue | 8 +++--- .../src/components/common/Game/FavBtn.vue | 4 +-- .../src/components/common/Game/RAvatar.vue | 2 +- frontend/src/components/common/Game/Table.vue | 8 +++--- .../common/Navigation/CollectionsBtn.vue | 2 +- .../common/Navigation/CollectionsDrawer.vue | 12 ++++---- .../common/Navigation/ConsoleModeBtn.vue | 2 +- .../components/common/Navigation/HomeBtn.vue | 4 +-- .../common/Navigation/MainAppBar.vue | 6 ++-- .../common/Navigation/PlatformsBtn.vue | 2 +- .../common/Navigation/PlatformsDrawer.vue | 8 +++--- .../components/common/Navigation/ScanBtn.vue | 8 +++--- .../common/Navigation/SearchBtn.vue | 2 +- .../common/Navigation/SettingsDrawer.vue | 14 +++++----- .../common/Navigation/UploadBtn.vue | 4 +-- .../components/common/Navigation/UserBtn.vue | 4 +-- .../components/common/NewVersionDialog.vue | 2 +- .../common/Notifications/Notification.vue | 4 +-- .../common/Notifications/UploadProgress.vue | 4 +-- .../src/components/common/Platform/Card.vue | 6 ++-- .../common/Platform/Dialog/DeleteFirmware.vue | 8 +++--- .../common/Platform/Dialog/DeletePlatform.vue | 10 +++---- .../common/Platform/Dialog/UploadFirmware.vue | 8 +++--- frontend/src/components/common/RDialog.vue | 4 +-- .../src/components/common/SearchCover.vue | 6 ++-- frontend/src/composables/useFavoriteToggle.ts | 4 +-- frontend/src/console/Layout.vue | 8 +++--- .../src/console/components/CollectionCard.vue | 2 +- frontend/src/console/components/GameCard.vue | 2 +- .../src/console/components/NavigationText.vue | 2 +- .../console/components/ScreenshotLightbox.vue | 2 +- .../src/console/components/SettingsModal.vue | 2 +- .../src/console/components/SystemCard.vue | 2 +- .../src/console/composables/useInputScope.ts | 2 +- .../src/console/composables/useThemeAssets.ts | 2 +- frontend/src/console/utils/sfx.ts | 2 +- frontend/src/console/views/Game.vue | 6 ++-- frontend/src/console/views/GamesList.vue | 4 +-- frontend/src/console/views/Home.vue | 6 ++-- frontend/src/console/views/Play.vue | 8 +++--- frontend/src/layouts/Main.vue | 6 ++-- frontend/src/main.ts | 2 +- frontend/src/plugins/index.ts | 8 +++--- frontend/src/plugins/pinia.ts | 2 +- frontend/src/plugins/router.ts | 12 ++++---- frontend/src/plugins/vuetify.ts | 4 +-- frontend/src/services/api/index.ts | 4 +-- frontend/src/services/api/rom.ts | 2 +- frontend/src/stores/auth.ts | 4 +-- frontend/src/stores/collections.ts | 6 ++-- frontend/src/stores/config.ts | 2 +- frontend/src/stores/console.ts | 2 +- frontend/src/stores/consoleTheme.ts | 2 +- frontend/src/stores/download.ts | 2 +- frontend/src/stores/galleryFilter.ts | 2 +- frontend/src/stores/heartbeat.ts | 2 +- frontend/src/stores/navigation.ts | 2 +- frontend/src/stores/notifications.ts | 2 +- frontend/src/stores/platforms.ts | 4 +-- frontend/src/stores/roms.ts | 4 +-- frontend/src/stores/scanning.ts | 2 +- frontend/src/stores/tasks.ts | 2 +- frontend/src/stores/users.ts | 2 +- frontend/src/utils/index.ts | 8 +++--- frontend/src/views/Auth/Login.vue | 8 +++--- frontend/src/views/Auth/Register.vue | 6 ++-- frontend/src/views/Auth/ResetPassword.vue | 8 +++--- frontend/src/views/Auth/Setup.vue | 8 +++--- .../Gallery/Collection/BaseCollection.vue | 12 ++++---- .../views/Gallery/Collection/Collection.vue | 4 +-- .../Gallery/Collection/SmartCollection.vue | 4 +-- .../Gallery/Collection/VirtualCollection.vue | 4 +-- frontend/src/views/Gallery/Platform.vue | 12 ++++---- frontend/src/views/Gallery/Search.vue | 12 ++++---- frontend/src/views/GameDetails.vue | 12 ++++---- frontend/src/views/Home.vue | 8 +++--- frontend/src/views/Player/EmulatorJS/Base.vue | 16 +++++------ .../views/Player/EmulatorJS/CacheDialog.vue | 2 +- .../src/views/Player/EmulatorJS/Player.vue | 28 +++++++++---------- frontend/src/views/Player/RuffleRS/Base.vue | 8 +++--- frontend/src/views/Scan.vue | 10 +++---- .../src/views/Settings/LibraryManagement.vue | 10 +++---- frontend/src/views/Settings/ServerStats.vue | 2 +- frontend/src/views/Settings/UserProfile.vue | 8 +++--- 184 files changed, 549 insertions(+), 549 deletions(-) diff --git a/frontend/src/RomM.vue b/frontend/src/RomM.vue index 6a9e908fb..9277b70a1 100644 --- a/frontend/src/RomM.vue +++ b/frontend/src/RomM.vue @@ -1,10 +1,10 @@ diff --git a/frontend/src/components/Settings/UserInterface/LanguageSelector.vue b/frontend/src/components/Settings/UserInterface/LanguageSelector.vue index 36a43a488..373389ad5 100644 --- a/frontend/src/components/Settings/UserInterface/LanguageSelector.vue +++ b/frontend/src/components/Settings/UserInterface/LanguageSelector.vue @@ -1,8 +1,8 @@