mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 10:32:57 +01:00
feat(v2): unify platform and collection settings, fill the viewport
- Platform settings adopt the collection tab's structure (stacked field labels, info icon on Details, Apply) and both tabs share the platform's 460px column. - A shared DangerZone composite replaces the duplicated danger-zone markup in both settings tabs, and Edit ROM moves Unmatch out of the footer into one, away from Apply. - On desktop the platform and collection heads stay fixed and only the tab body scrolls down to the viewport bottom; phones keep the page scroll. The platform icon box floors at the collection cover height so both heads, and their tabs, line up. - Upload ROMs runs in a new desktop-only SettingsLayout `fill` mode: the dropzone and file list reach the bottom, the Upload button sits beside the platform picker and the count + Add move under the list. RDropzone gains a `fill` prop so the empty CTA stretches too (also used by Firmware). - "x files selected" now reads "x files to upload" in every locale. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017VhukP5AfTE36MxtiJR6vL
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
"core": "Основни",
|
||||
"create": "Създай",
|
||||
"crt-mode": "CRT mode",
|
||||
"danger-zone": "Опасна зона",
|
||||
"decade-mix": "Микс по десетилетия",
|
||||
"decades-n": "{n} десетилетие | {n} десетилетия",
|
||||
"delete": "Изтрий",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Качи",
|
||||
"upload-collapse-panel": "Свий панела за качване",
|
||||
"upload-expand-panel": "Разшири панела за качване",
|
||||
"upload-files-selected": "{count} избран файл | {count} избрани файла",
|
||||
"upload-files-selected": "{count} файл за качване | {count} файла за качване",
|
||||
"upload-progress": "Прогрес на качването",
|
||||
"upload-roms": "Качи ROM-ове",
|
||||
"upload-stats": "{done} готови · {failed} неуспешни",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} песен | {n} песни",
|
||||
"tracks-summary": "{count} песни · {duration}",
|
||||
"unmatch": "Премахни разпознаването",
|
||||
"unmatch-hint": "Изтрива метаданните, корицата и екранните снимки, свързани с този ROM. Файлът на диска остава и може да бъде разпознат отново.",
|
||||
"unmatch-success": "Разпознаването на ROM-а е премахнато успешно",
|
||||
"unselect-all": "Премахни избора на всички",
|
||||
"update-default-failed": "Неуспешно обновяване на версията по подразбиране",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "Jádro",
|
||||
"create": "Vytvořit",
|
||||
"crt-mode": "CRT mode",
|
||||
"danger-zone": "Nebezpečná zóna",
|
||||
"decade-mix": "Mix desetiletí",
|
||||
"decades-n": "{n} desetiletí | {n} desetiletí",
|
||||
"delete": "Smazat",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Nahrát",
|
||||
"upload-collapse-panel": "Sbalit panel nahrávání",
|
||||
"upload-expand-panel": "Rozbalit panel nahrávání",
|
||||
"upload-files-selected": "{count} vybraných souborů | {count} vybraný soubor | {count} vybrané soubory | {count} vybraných souborů",
|
||||
"upload-files-selected": "{count} souborů k nahrání | {count} soubor k nahrání | {count} soubory k nahrání | {count} souborů k nahrání",
|
||||
"upload-progress": "Průběh nahrávání",
|
||||
"upload-roms": "Nahrát ROMy",
|
||||
"upload-stats": "{done} hotovo · {failed} selhalo",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} skladeb | {n} skladba | {n} skladby | {n} skladeb",
|
||||
"tracks-summary": "{count} skladeb · {duration}",
|
||||
"unmatch": "Odpojit ROM",
|
||||
"unmatch-hint": "Smaže metadata, obal a screenshoty přiřazené k této ROM. Soubor na disku zůstane, takže ji lze znovu přiřadit.",
|
||||
"unmatch-success": "ROM úspěšně odpojena",
|
||||
"unselect-all": "Zrušit výběr všeho",
|
||||
"update-default-failed": "Nepodařilo se aktualizovat výchozí verzi",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "Core",
|
||||
"create": "Erstellen",
|
||||
"crt-mode": "CRT-Modus",
|
||||
"danger-zone": "Gefahrenzone",
|
||||
"decade-mix": "Jahrzehnte-Mix",
|
||||
"decades-n": "{n} Jahrzehnt | {n} Jahrzehnte",
|
||||
"delete": "Löschen",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Hochladen",
|
||||
"upload-collapse-panel": "Upload-Panel einklappen",
|
||||
"upload-expand-panel": "Upload-Panel ausklappen",
|
||||
"upload-files-selected": "{count} Datei ausgewählt | {count} Dateien ausgewählt",
|
||||
"upload-files-selected": "{count} Datei zum Hochladen | {count} Dateien zum Hochladen",
|
||||
"upload-progress": "Upload-Fortschritt",
|
||||
"upload-roms": "ROMs hochladen",
|
||||
"upload-stats": "{done} fertig · {failed} fehlgeschlagen",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} Track | {n} Tracks",
|
||||
"tracks-summary": "{count} Tracks · {duration}",
|
||||
"unmatch": "Zuweisung aufheben",
|
||||
"unmatch-hint": "Löscht die Metadaten, das Cover und die Screenshots dieses ROMs. Die Datei auf der Festplatte bleibt erhalten und kann erneut zugewiesen werden.",
|
||||
"unmatch-success": "ROM-Zuweisung erfolgreich aufgehoben",
|
||||
"unselect-all": "Alles abwählen",
|
||||
"update-default-failed": "Standardversion konnte nicht aktualisiert werden",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "Core",
|
||||
"create": "Create",
|
||||
"crt-mode": "CRT mode",
|
||||
"danger-zone": "Danger zone",
|
||||
"decade-mix": "Decade Mix",
|
||||
"decades-n": "{n} decade | {n} decades",
|
||||
"delete": "Delete",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Upload",
|
||||
"upload-collapse-panel": "Collapse upload panel",
|
||||
"upload-expand-panel": "Expand upload panel",
|
||||
"upload-files-selected": "{count} file selected | {count} files selected",
|
||||
"upload-files-selected": "{count} file to upload | {count} files to upload",
|
||||
"upload-progress": "Upload progress",
|
||||
"upload-roms": "Upload ROMs",
|
||||
"upload-stats": "{done} done · {failed} failed",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} track | {n} tracks",
|
||||
"tracks-summary": "{count} tracks · {duration}",
|
||||
"unmatch": "Unmatch ROM",
|
||||
"unmatch-hint": "Clears the metadata, cover and screenshots matched to this ROM. The file on disk stays, so it can be matched again.",
|
||||
"unmatch-success": "ROM unmatched successfully",
|
||||
"unselect-all": "Unselect all",
|
||||
"update-default-failed": "Failed to update default version",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "Core",
|
||||
"create": "Create",
|
||||
"crt-mode": "CRT mode",
|
||||
"danger-zone": "Danger zone",
|
||||
"decade-mix": "Decade Mix",
|
||||
"decades-n": "{n} decade | {n} decades",
|
||||
"delete": "Delete",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Upload",
|
||||
"upload-collapse-panel": "Collapse upload panel",
|
||||
"upload-expand-panel": "Expand upload panel",
|
||||
"upload-files-selected": "{count} file selected | {count} files selected",
|
||||
"upload-files-selected": "{count} file to upload | {count} files to upload",
|
||||
"upload-progress": "Upload progress",
|
||||
"upload-roms": "Upload ROMs",
|
||||
"upload-stats": "{done} done · {failed} failed",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} track | {n} tracks",
|
||||
"tracks-summary": "{count} tracks · {duration}",
|
||||
"unmatch": "Unmatch ROM",
|
||||
"unmatch-hint": "Clears the metadata, cover and screenshots matched to this ROM. The file on disk stays, so it can be matched again.",
|
||||
"unmatch-success": "ROM unmatched successfully",
|
||||
"unselect-all": "Unselect all",
|
||||
"update-default-failed": "Failed to update default version",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "Núcleo",
|
||||
"create": "Crear",
|
||||
"crt-mode": "Modo CRT",
|
||||
"danger-zone": "Zona de peligro",
|
||||
"decade-mix": "Mezcla por décadas",
|
||||
"decades-n": "{n} década | {n} décadas",
|
||||
"delete": "Eliminar",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Subir",
|
||||
"upload-collapse-panel": "Contraer panel de subida",
|
||||
"upload-expand-panel": "Expandir panel de subida",
|
||||
"upload-files-selected": "{count} archivo seleccionado | {count} archivos seleccionados",
|
||||
"upload-files-selected": "{count} archivo para subir | {count} archivos para subir",
|
||||
"upload-progress": "Progreso de subida",
|
||||
"upload-roms": "Subir ROMs",
|
||||
"upload-stats": "{done} hechos · {failed} con error",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} pista | {n} pistas",
|
||||
"tracks-summary": "{tracks}, {duration}",
|
||||
"unmatch": "Desvincular ROM",
|
||||
"unmatch-hint": "Borra los metadatos, la portada y las capturas vinculados a esta ROM. El archivo en disco se conserva, así que puede volver a vincularse.",
|
||||
"unmatch-success": "ROM desvinculada con éxito",
|
||||
"unselect-all": "Deseleccionar todos",
|
||||
"update-default-failed": "Error al actualizar la versión por defecto",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "Noyau",
|
||||
"create": "Créer",
|
||||
"crt-mode": "Mode CRT",
|
||||
"danger-zone": "Zone de danger",
|
||||
"decade-mix": "Mix par décennie",
|
||||
"decades-n": "{n} décennie | {n} décennies",
|
||||
"delete": "Supprimer",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Téléverser",
|
||||
"upload-collapse-panel": "Réduire le panneau de téléversement",
|
||||
"upload-expand-panel": "Développer le panneau de téléversement",
|
||||
"upload-files-selected": "{count} fichier sélectionné | {count} fichiers sélectionnés",
|
||||
"upload-files-selected": "{count} fichier à téléverser | {count} fichiers à téléverser",
|
||||
"upload-progress": "Progression du téléversement",
|
||||
"upload-roms": "Téléverser des ROMs",
|
||||
"upload-stats": "{done} terminé · {failed} en échec",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} piste | {n} pistes",
|
||||
"tracks-summary": "{count} pistes · {duration}",
|
||||
"unmatch": "Dissocier le ROM",
|
||||
"unmatch-hint": "Efface les métadonnées, la jaquette et les captures d'écran associées à ce ROM. Le fichier sur le disque est conservé et peut être associé à nouveau.",
|
||||
"unmatch-success": "ROM dissociée avec succès",
|
||||
"unselect-all": "Désélectionner tous",
|
||||
"update-default-failed": "Échec de la mise à jour de la version par défaut",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "Mag",
|
||||
"create": "Létrehoz",
|
||||
"crt-mode": "CRT mode",
|
||||
"danger-zone": "Veszély zóna",
|
||||
"decade-mix": "Évtizedmix",
|
||||
"decades-n": "{n} évtized | {n} évtized",
|
||||
"delete": "Törlés",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Feltöltés",
|
||||
"upload-collapse-panel": "Feltöltési panel összecsukása",
|
||||
"upload-expand-panel": "Feltöltési panel kibontása",
|
||||
"upload-files-selected": "{count} fájl kiválasztva | {count} fájlok kiválasztva",
|
||||
"upload-files-selected": "{count} feltöltendő fájl | {count} feltöltendő fájl",
|
||||
"upload-progress": "Feltöltés folyamata",
|
||||
"upload-roms": "ROM-ok feltöltése",
|
||||
"upload-stats": "{done} kész · {failed} sikertelen",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} szám | {n} szám",
|
||||
"tracks-summary": "{count} szám · {duration}",
|
||||
"unmatch": "Nem egyező ROM",
|
||||
"unmatch-hint": "Törli a ROM-hoz társított metaadatokat, borítót és képernyőképeket. A lemezen lévő fájl megmarad, így később újra párosítható.",
|
||||
"unmatch-success": "A ROM sikeresen nem egyeztetettként lett jelölve",
|
||||
"unselect-all": "Minden kijelölés visszavonása",
|
||||
"update-default-failed": "Az alapértelmezett verzió frissítése sikertelen",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "Core",
|
||||
"create": "Crea",
|
||||
"crt-mode": "Modalità CRT",
|
||||
"danger-zone": "Zona pericolosa",
|
||||
"decade-mix": "Mix per decennio",
|
||||
"decades-n": "{n} decennio | {n} decenni",
|
||||
"delete": "Elimina",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Carica",
|
||||
"upload-collapse-panel": "Comprimi pannello di caricamento",
|
||||
"upload-expand-panel": "Espandi pannello di caricamento",
|
||||
"upload-files-selected": "{count} file selezionato | {count} file selezionati",
|
||||
"upload-files-selected": "{count} file da caricare | {count} file da caricare",
|
||||
"upload-progress": "Progresso caricamento",
|
||||
"upload-roms": "Carica ROM",
|
||||
"upload-stats": "{done} completati · {failed} falliti",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} traccia | {n} tracce",
|
||||
"tracks-summary": "{count} tracce · {duration}",
|
||||
"unmatch": "Rimuovi associazione rom",
|
||||
"unmatch-hint": "Cancella i metadati, la copertina e gli screenshot associati a questa rom. Il file su disco resta e potrà essere associato di nuovo.",
|
||||
"unmatch-success": "Associazione ROM rimossa con successo",
|
||||
"unselect-all": "Deseleziona tutto",
|
||||
"update-default-failed": "Impossibile aggiornare la versione predefinita",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "コア",
|
||||
"create": "作成",
|
||||
"crt-mode": "CRT mode",
|
||||
"danger-zone": "危険",
|
||||
"decade-mix": "年代別ミックス",
|
||||
"decades-n": "{n}年代",
|
||||
"delete": "削除",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "アップロード",
|
||||
"upload-collapse-panel": "アップロードパネルを折りたたむ",
|
||||
"upload-expand-panel": "アップロードパネルを展開",
|
||||
"upload-files-selected": "{count} ファイルが選択されました",
|
||||
"upload-files-selected": "アップロードするファイル {count} 件",
|
||||
"upload-progress": "アップロードの進行状況",
|
||||
"upload-roms": "ROMをアップロード",
|
||||
"upload-stats": "{done}件完了 · {failed}件失敗",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n}件のトラック | {n}件のトラック",
|
||||
"tracks-summary": "{count}件のトラック · {duration}",
|
||||
"unmatch": "検索結果無し",
|
||||
"unmatch-hint": "このROMに紐づくメタデータ、カバー、スクリーンショットを消去します。ディスク上のファイルは残るため、後で再度マッチングできます。",
|
||||
"unmatch-success": "ROMの関連付けが正常に解除されました",
|
||||
"unselect-all": "すべて選択解除",
|
||||
"update-default-failed": "デフォルトバージョンの更新に失敗しました",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "코어",
|
||||
"create": "생성",
|
||||
"crt-mode": "CRT mode",
|
||||
"danger-zone": "위험 구역",
|
||||
"decade-mix": "연대별 믹스",
|
||||
"decades-n": "{n}개 연대",
|
||||
"delete": "삭제",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "업로드",
|
||||
"upload-collapse-panel": "업로드 패널 접기",
|
||||
"upload-expand-panel": "업로드 패널 펼치기",
|
||||
"upload-files-selected": "{count}개 파일이 선택되었습니다",
|
||||
"upload-files-selected": "업로드할 파일 {count}개",
|
||||
"upload-progress": "업로드 진행률",
|
||||
"upload-roms": "ROM 업로드",
|
||||
"upload-stats": "{done}개 완료 · {failed}개 실패",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n}개 트랙 | {n}개 트랙",
|
||||
"tracks-summary": "{count}개 트랙 · {duration}",
|
||||
"unmatch": "DB 대응 해제",
|
||||
"unmatch-hint": "이 ROM에 연결된 메타데이터, 커버, 스크린샷을 지웁니다. 디스크의 파일은 유지되므로 나중에 다시 대응시킬 수 있습니다.",
|
||||
"unmatch-success": "ROM 연결이 성공적으로 해제되었습니다",
|
||||
"unselect-all": "모두 선택 해제",
|
||||
"update-default-failed": "기본 버전을 업데이트하지 못했습니다",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "Rdzeń",
|
||||
"create": "Utwórz",
|
||||
"crt-mode": "CRT mode",
|
||||
"danger-zone": "Strefa zagrożenia",
|
||||
"decade-mix": "Miks dekad",
|
||||
"decades-n": "{n} dekada | {n} dekady | {n} dekad",
|
||||
"delete": "Usuń",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Prześlij",
|
||||
"upload-collapse-panel": "Zwiń panel przesyłania",
|
||||
"upload-expand-panel": "Rozwiń panel przesyłania",
|
||||
"upload-files-selected": "{count} plik wybrany | {count} pliki wybrane | {count} plików wybranych",
|
||||
"upload-files-selected": "{count} plik do przesłania | {count} pliki do przesłania | {count} plików do przesłania",
|
||||
"upload-progress": "Postęp przesyłania",
|
||||
"upload-roms": "Prześlij ROM-y",
|
||||
"upload-stats": "{done} ukończono · {failed} niepowodzeń",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} utwór | {n} utwory | {n} utworów",
|
||||
"tracks-summary": "{count} utworów · {duration}",
|
||||
"unmatch": "Odłącz ROM",
|
||||
"unmatch-hint": "Usuwa metadane, okładkę i zrzuty ekranu przypisane do tego ROM-u. Plik na dysku pozostaje, więc można go ponownie dopasować.",
|
||||
"unmatch-success": "ROM został pomyślnie odłączony",
|
||||
"unselect-all": "Odznacz wszystkie",
|
||||
"update-default-failed": "Nie udało się zaktualizować wersji domyślnej",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "Núcleo",
|
||||
"create": "Criar",
|
||||
"crt-mode": "Modo CRT",
|
||||
"danger-zone": "Zona de perigo",
|
||||
"decade-mix": "Mix por década",
|
||||
"decades-n": "{n} década | {n} décadas",
|
||||
"delete": "Excluir",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Carregar",
|
||||
"upload-collapse-panel": "Recolher painel de upload",
|
||||
"upload-expand-panel": "Expandir painel de upload",
|
||||
"upload-files-selected": "{count} arquivo selecionado | {count} arquivos selecionados",
|
||||
"upload-files-selected": "{count} arquivo para enviar | {count} arquivos para enviar",
|
||||
"upload-progress": "Progresso do upload",
|
||||
"upload-roms": "Enviar ROMs",
|
||||
"upload-stats": "{done} concluídos · {failed} com falha",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} faixa | {n} faixas",
|
||||
"tracks-summary": "{count} faixas · {duration}",
|
||||
"unmatch": "Desvincular ROM",
|
||||
"unmatch-hint": "Apaga os metadados, a capa e as capturas de tela vinculados a esta ROM. O arquivo no disco é mantido e pode ser vinculado novamente.",
|
||||
"unmatch-success": "ROM desvinculada com sucesso",
|
||||
"unselect-all": "Desselecionar todos",
|
||||
"update-default-failed": "Falha ao atualizar a versão padrão",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "Nucleu",
|
||||
"create": "Creează",
|
||||
"crt-mode": "CRT mode",
|
||||
"danger-zone": "Zonă periculoasă",
|
||||
"decade-mix": "Mix pe decenii",
|
||||
"decades-n": "{n} deceniu | {n} decenii",
|
||||
"delete": "Șterge",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Încarcă",
|
||||
"upload-collapse-panel": "Restrânge panoul de încărcare",
|
||||
"upload-expand-panel": "Extinde panoul de încărcare",
|
||||
"upload-files-selected": "{count} fișier selectat | {count} fișiere selectate",
|
||||
"upload-files-selected": "{count} fișier de încărcat | {count} fișiere de încărcat",
|
||||
"upload-progress": "Progres încărcare",
|
||||
"upload-roms": "Încarcă ROM-uri",
|
||||
"upload-stats": "{done} finalizate · {failed} eșuate",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} piesă | {n} piese",
|
||||
"tracks-summary": "{count} piese · {duration}",
|
||||
"unmatch": "Dissociază ROM-ul",
|
||||
"unmatch-hint": "Șterge metadatele, coperta și capturile de ecran asociate acestui ROM. Fișierul de pe disc rămâne, așa că poate fi asociat din nou.",
|
||||
"unmatch-success": "ROM-ul a fost disociat cu succes",
|
||||
"unselect-all": "Deselectează toate",
|
||||
"update-default-failed": "Actualizarea versiunii implicite a eșuat",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "Ядро",
|
||||
"create": "Создать",
|
||||
"crt-mode": "CRT mode",
|
||||
"danger-zone": "Опасная зона",
|
||||
"decade-mix": "Микс по десятилетиям",
|
||||
"decades-n": "{n} десятилетие | {n} десятилетия | {n} десятилетий",
|
||||
"delete": "Удалить",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Загрузить",
|
||||
"upload-collapse-panel": "Свернуть панель загрузки",
|
||||
"upload-expand-panel": "Развернуть панель загрузки",
|
||||
"upload-files-selected": "{count} файл выбран | {count} файла выбрано | {count} файлов выбрано",
|
||||
"upload-files-selected": "{count} файл для загрузки | {count} файла для загрузки | {count} файлов для загрузки",
|
||||
"upload-progress": "Прогресс загрузки",
|
||||
"upload-roms": "Загрузить ROM-ы",
|
||||
"upload-stats": "{done} готово · {failed} с ошибкой",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} трек | {n} треков",
|
||||
"tracks-summary": "{count} треков · {duration}",
|
||||
"unmatch": "Отменить совпадение",
|
||||
"unmatch-hint": "Удаляет метаданные, обложку и скриншоты, связанные с этим ROM. Файл на диске сохраняется, и его можно сопоставить заново.",
|
||||
"unmatch-success": "Связь с ROM успешно отменена",
|
||||
"unselect-all": "Отменить выбор всех",
|
||||
"update-default-failed": "Не удалось обновить версию по умолчанию",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "Çekirdek",
|
||||
"create": "Oluştur",
|
||||
"crt-mode": "CRT modu",
|
||||
"danger-zone": "Tehlikeli bölge",
|
||||
"decade-mix": "On yıl karması",
|
||||
"decades-n": "{n} on yıl",
|
||||
"delete": "Sil",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "Yükle",
|
||||
"upload-collapse-panel": "Yükleme panelini daralt",
|
||||
"upload-expand-panel": "Yükleme panelini genişlet",
|
||||
"upload-files-selected": "{count} dosya seçildi | {count} dosya seçildi",
|
||||
"upload-files-selected": "Yüklenecek {count} dosya | Yüklenecek {count} dosya",
|
||||
"upload-progress": "Yükleme ilerlemesi",
|
||||
"upload-roms": "ROM yükle",
|
||||
"upload-stats": "{done} tamamlandı · {failed} başarısız",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} parça | {n} parça",
|
||||
"tracks-summary": "{count} parça · {duration}",
|
||||
"unmatch": "ROM eşleşmesini kaldır",
|
||||
"unmatch-hint": "Bu ROM ile eşleşen meta verileri, kapağı ve ekran görüntülerini temizler. Diskteki dosya korunur, böylece yeniden eşleştirilebilir.",
|
||||
"unmatch-success": "ROM eşleşmesi başarıyla kaldırıldı",
|
||||
"unselect-all": "Tümünün seçimini kaldır",
|
||||
"update-default-failed": "Varsayılan sürüm güncellenemedi",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "核心",
|
||||
"create": "创建",
|
||||
"crt-mode": "CRT 模式",
|
||||
"danger-zone": "危险区域",
|
||||
"decade-mix": "年代混音",
|
||||
"decades-n": "{n} 个年代",
|
||||
"delete": "删除",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "上传",
|
||||
"upload-collapse-panel": "折叠上传面板",
|
||||
"upload-expand-panel": "展开上传面板",
|
||||
"upload-files-selected": "已选择 {count} 个文件",
|
||||
"upload-files-selected": "待上传 {count} 个文件",
|
||||
"upload-progress": "上传进度",
|
||||
"upload-roms": "上传 ROMs",
|
||||
"upload-stats": "{done} 完成 · {failed} 失败",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} 个曲目 | {n} 个曲目",
|
||||
"tracks-summary": "{count} 个曲目 · {duration}",
|
||||
"unmatch": "未匹配的 ROM",
|
||||
"unmatch-hint": "清除与此 ROM 匹配的元数据、封面和截图。磁盘上的文件会保留,之后可以重新匹配。",
|
||||
"unmatch-success": "ROM 取消匹配成功",
|
||||
"unselect-all": "取消选择所有",
|
||||
"update-default-failed": "更新默认版本失败",
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
"core": "核心",
|
||||
"create": "建立",
|
||||
"crt-mode": "CRT mode",
|
||||
"danger-zone": "危險操作",
|
||||
"decade-mix": "年代混音",
|
||||
"decades-n": "{n} 個年代",
|
||||
"delete": "刪除",
|
||||
@@ -161,7 +162,7 @@
|
||||
"upload": "上傳",
|
||||
"upload-collapse-panel": "收合上傳面板",
|
||||
"upload-expand-panel": "展開上傳面板",
|
||||
"upload-files-selected": "已選擇 {count} 個檔案",
|
||||
"upload-files-selected": "待上傳 {count} 個檔案",
|
||||
"upload-progress": "上傳進度",
|
||||
"upload-roms": "上傳 ROM",
|
||||
"upload-stats": "{done} 完成 · {failed} 失敗",
|
||||
|
||||
@@ -469,6 +469,7 @@
|
||||
"tracks-n": "{n} 個音軌 | {n} 個音軌",
|
||||
"tracks-summary": "{count} 個音軌 · {duration}",
|
||||
"unmatch": "清除匹配資料",
|
||||
"unmatch-hint": "清除與此 ROM 匹配的元數據、封面和截圖。磁碟上的檔案會保留,之後可以重新匹配。",
|
||||
"unmatch-success": "ROM 取消匹配成功",
|
||||
"unselect-all": "取消選擇所有",
|
||||
"update-default-failed": "更新預設版本失敗",
|
||||
|
||||
@@ -349,6 +349,9 @@ const routes = [
|
||||
name: ROUTES.UPLOAD,
|
||||
meta: {
|
||||
title: "common.upload-roms",
|
||||
// The file list grows to the bottom of the viewport on desktop
|
||||
// so long batches get room — see SettingsLayout `fill`.
|
||||
fill: "desktop",
|
||||
},
|
||||
components: {
|
||||
// v1 has no Upload view (the dialog was its only entry
|
||||
|
||||
@@ -29,6 +29,7 @@ import AdditionalDetails from "@/v2/components/EditRom/AdditionalDetails.vue";
|
||||
import MetadataIdSection from "@/v2/components/EditRom/MetadataIdSection.vue";
|
||||
import RawMetadataPanel from "@/v2/components/EditRom/RawMetadataPanel.vue";
|
||||
import GameCard from "@/v2/components/GameCard/GameCard.vue";
|
||||
import DangerZone from "@/v2/components/shared/DangerZone.vue";
|
||||
import { useBreakpoint } from "@/v2/composables/useBreakpoint";
|
||||
import { useRomSync } from "@/v2/composables/useRomSync";
|
||||
import { useSnackbar } from "@/v2/composables/useSnackbar";
|
||||
@@ -457,6 +458,23 @@ function handleRomUpdateFromMetadata(updatedRom: UpdateRom) {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<DangerZone
|
||||
v-if="!rom.is_unidentified"
|
||||
:title="t('rom.unmatch')"
|
||||
:hint="t('rom.unmatch-hint')"
|
||||
>
|
||||
<RBtn
|
||||
variant="outlined"
|
||||
color="danger"
|
||||
prepend-icon="mdi-link-variant-off"
|
||||
:loading="saving"
|
||||
:disabled="saving"
|
||||
@click="unmatchRom"
|
||||
>
|
||||
{{ t("rom.unmatch") }}
|
||||
</RBtn>
|
||||
</DangerZone>
|
||||
</template>
|
||||
|
||||
<template #footer>
|
||||
@@ -464,17 +482,6 @@ function handleRomUpdateFromMetadata(updatedRom: UpdateRom) {
|
||||
{{ t("common.cancel") }}
|
||||
</RBtn>
|
||||
<div style="flex: 1" />
|
||||
<RBtn
|
||||
v-if="!rom.is_unidentified"
|
||||
variant="outlined"
|
||||
color="error"
|
||||
prepend-icon="mdi-link-variant-off"
|
||||
:loading="saving"
|
||||
:disabled="saving"
|
||||
@click="unmatchRom"
|
||||
>
|
||||
{{ t("rom.unmatch") }}
|
||||
</RBtn>
|
||||
<RBtn
|
||||
variant="translucent"
|
||||
color="primary"
|
||||
|
||||
@@ -45,6 +45,7 @@ import type { Events } from "@/types/emitter";
|
||||
import { toBrowserLocale } from "@/utils";
|
||||
import CollectionMosaic from "@/v2/components/Collections/CollectionMosaic.vue";
|
||||
import type { Kind as CollectionKind } from "@/v2/components/Collections/CollectionTile.vue";
|
||||
import DangerZone from "@/v2/components/shared/DangerZone.vue";
|
||||
import { useSnackbar } from "@/v2/composables/useSnackbar";
|
||||
import { useWebpSupport } from "@/v2/composables/useWebpSupport";
|
||||
import storeGalleryRoms from "@/v2/stores/galleryRoms";
|
||||
@@ -378,7 +379,7 @@ function discard() {
|
||||
<!-- Details (edit form) — both kinds. -->
|
||||
<section class="r-v2-coll-set__section">
|
||||
<header class="r-v2-coll-set__section-head">
|
||||
<RIcon icon="mdi-pencil-outline" size="14" />
|
||||
<RIcon icon="mdi-information-outline" size="14" />
|
||||
<span>{{ t("common.details", "Details") }}</span>
|
||||
</header>
|
||||
<div class="r-v2-coll-set__form">
|
||||
@@ -475,43 +476,29 @@ function discard() {
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<!-- Danger zone — destructive actions kept visually separated.
|
||||
Delete itself routes through the parent (confirm dialog +
|
||||
navigation lives in Collection.vue). -->
|
||||
<section
|
||||
<!-- Delete routes through the parent (confirm dialog + navigation
|
||||
lives in Collection.vue). -->
|
||||
<DangerZone
|
||||
v-if="canDelete"
|
||||
class="r-v2-coll-set__section r-v2-coll-set__danger"
|
||||
:title="t('collection.delete-collection', 'Delete collection')"
|
||||
:hint="
|
||||
t(
|
||||
'collection.delete-collection-hint',
|
||||
'Removes the collection from RomM. The ROM files themselves are not deleted.',
|
||||
)
|
||||
"
|
||||
>
|
||||
<header class="r-v2-coll-set__section-head r-v2-coll-set__danger-head">
|
||||
<RIcon icon="mdi-alert-outline" size="14" />
|
||||
<span>{{ t("collection.danger-zone", "Danger zone") }}</span>
|
||||
</header>
|
||||
<div class="r-v2-coll-set__danger-row">
|
||||
<div class="r-v2-coll-set__danger-copy">
|
||||
<p class="r-v2-coll-set__danger-title">
|
||||
{{ t("collection.delete-collection", "Delete collection") }}
|
||||
</p>
|
||||
<p class="r-v2-coll-set__danger-hint">
|
||||
{{
|
||||
t(
|
||||
"collection.delete-collection-hint",
|
||||
"Removes the collection from RomM. The ROM files themselves are not deleted.",
|
||||
)
|
||||
}}
|
||||
</p>
|
||||
</div>
|
||||
<RBtn
|
||||
variant="outlined"
|
||||
color="danger"
|
||||
prepend-icon="mdi-delete-outline"
|
||||
:loading="deleting"
|
||||
:disabled="deleting"
|
||||
@click="emit('delete')"
|
||||
>
|
||||
{{ t("common.delete", "Delete") }}
|
||||
</RBtn>
|
||||
</div>
|
||||
</section>
|
||||
<RBtn
|
||||
variant="outlined"
|
||||
color="danger"
|
||||
prepend-icon="mdi-delete-outline"
|
||||
:loading="deleting"
|
||||
:disabled="deleting"
|
||||
@click="emit('delete')"
|
||||
>
|
||||
{{ t("common.delete", "Delete") }}
|
||||
</RBtn>
|
||||
</DangerZone>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -520,7 +507,7 @@ function discard() {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
max-width: 720px;
|
||||
max-width: 460px;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
@@ -622,42 +609,4 @@ function discard() {
|
||||
gap: 4px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
/* ── Danger zone ───────────────────────────────────────────────── */
|
||||
.r-v2-coll-set__danger {
|
||||
padding: 14px;
|
||||
background: color-mix(
|
||||
in srgb,
|
||||
var(--r-color-status-base-danger) 6%,
|
||||
transparent
|
||||
);
|
||||
border: 1px solid
|
||||
color-mix(in srgb, var(--r-color-status-base-danger) 35%, transparent);
|
||||
border-radius: var(--r-radius-md);
|
||||
}
|
||||
.r-v2-coll-set__danger-head {
|
||||
color: var(--r-color-status-base-danger);
|
||||
}
|
||||
.r-v2-coll-set__danger-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.r-v2-coll-set__danger-copy {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.r-v2-coll-set__danger-title {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: var(--r-font-weight-semibold);
|
||||
color: var(--r-color-fg);
|
||||
}
|
||||
.r-v2-coll-set__danger-hint {
|
||||
margin: 2px 0 0;
|
||||
font-size: 12px;
|
||||
color: var(--r-color-fg-muted);
|
||||
line-height: 1.4;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -217,6 +217,7 @@ async function performDelete(
|
||||
<RDropzone
|
||||
v-if="firmwareList.length === 0 && pendingFiles.length === 0 && canWrite"
|
||||
ref="firmwareDz"
|
||||
fill
|
||||
:title="t('platform.upload-firmware')"
|
||||
:hint="t('platform.firmware-dropzone-description')"
|
||||
:active-title="t('common.dropzone-drag-over')"
|
||||
|
||||
@@ -225,10 +225,9 @@ const iconSize = computed(() => (xs.value ? 116 : 148));
|
||||
.r-v2-plat__panel-icon {
|
||||
width: 200px;
|
||||
/* `min-height` (not a fixed `height`): the icon is a square sized in JS, so
|
||||
the box floors at the icon height and simply grows to contain it — a tall
|
||||
icon pushes the title/stats down (reflow) instead of overflowing and
|
||||
getting clipped or overlapping. */
|
||||
min-height: 148px;
|
||||
the box grows to contain a taller one instead of clipping it. The floor is
|
||||
the collection cover height, so both heads match and their tabs line up. */
|
||||
min-height: var(--r-coll-cover-h);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ import { useI18n } from "vue-i18n";
|
||||
import platformApi from "@/services/api/platform";
|
||||
import storePlatforms, { type Platform } from "@/stores/platforms";
|
||||
import { formatBytes } from "@/utils";
|
||||
import DangerZone from "@/v2/components/shared/DangerZone.vue";
|
||||
import { useCan } from "@/v2/composables/useCan";
|
||||
import { useSnackbar } from "@/v2/composables/useSnackbar";
|
||||
import storeGalleryRoms from "@/v2/stores/galleryRoms";
|
||||
@@ -158,136 +159,104 @@ const details = computed<DetailRow[]>(() => {
|
||||
|
||||
<template>
|
||||
<div class="r-v2-plat-settings">
|
||||
<!-- Left column — details (editable name + read-only fields) plus
|
||||
danger zone at the bottom. -->
|
||||
<div class="r-v2-plat-settings__col">
|
||||
<section class="r-v2-plat-settings__section">
|
||||
<header class="r-v2-plat-settings__section-head">
|
||||
<RIcon icon="mdi-information-outline" size="14" />
|
||||
<span>{{ t("common.details", "Details") }}</span>
|
||||
</header>
|
||||
<section class="r-v2-plat-settings__section">
|
||||
<header class="r-v2-plat-settings__section-head">
|
||||
<RIcon icon="mdi-information-outline" size="14" />
|
||||
<span>{{ t("common.details", "Details") }}</span>
|
||||
</header>
|
||||
|
||||
<!-- Editable fields — `custom_name` and `description` are the
|
||||
only user-authored ones. The rest of the metadata (slug,
|
||||
fs_slug, etc.) is derived from the upstream sources and is
|
||||
surfaced read-only below. -->
|
||||
<RForm ref="formRef" class="r-v2-plat-settings__form" @submit="save">
|
||||
<RTextField
|
||||
v-model="customName"
|
||||
:label="t('common.name', 'Name')"
|
||||
:placeholder="platform.name"
|
||||
:rules="nameRules"
|
||||
:disabled="!canEdit"
|
||||
prepend-inner-icon="mdi-rename"
|
||||
variant="outlined"
|
||||
density="comfortable"
|
||||
hide-details="auto"
|
||||
/>
|
||||
<RTextField
|
||||
v-model="description"
|
||||
:label="t('platform.description', 'Description')"
|
||||
:disabled="!canEdit"
|
||||
multiline
|
||||
:rows="3"
|
||||
variant="outlined"
|
||||
density="comfortable"
|
||||
hide-details="auto"
|
||||
/>
|
||||
<div v-if="dirty" class="r-v2-plat-settings__form-actions">
|
||||
<RBtn variant="text" :disabled="saving" @click="discard">
|
||||
{{ t("common.discard", "Discard") }}
|
||||
</RBtn>
|
||||
<RBtn
|
||||
variant="flat"
|
||||
color="primary"
|
||||
prepend-icon="mdi-check"
|
||||
:loading="saving"
|
||||
@click="save"
|
||||
>
|
||||
{{ t("common.save", "Save") }}
|
||||
</RBtn>
|
||||
</div>
|
||||
</RForm>
|
||||
|
||||
<!-- Read-only details. Kept as a hairline-divided table for
|
||||
scan-ability without competing with the editable field
|
||||
above. -->
|
||||
<div class="r-v2-plat-settings__details">
|
||||
<div
|
||||
v-for="row in details"
|
||||
:key="row.label"
|
||||
class="r-v2-plat-settings__detail-row"
|
||||
>
|
||||
<span class="r-v2-plat-settings__detail-label">{{
|
||||
row.label
|
||||
}}</span>
|
||||
<span class="r-v2-plat-settings__detail-value">{{
|
||||
row.value
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Danger zone — destructive actions kept visually separated
|
||||
with a brand-warning header band, matching the pattern v1
|
||||
used in PlatformInfoDrawer. The delete itself routes through
|
||||
the parent (confirm dialog + navigation lives in Platform.vue). -->
|
||||
<section
|
||||
v-if="canDelete"
|
||||
class="r-v2-plat-settings__section r-v2-plat-settings__danger"
|
||||
>
|
||||
<header
|
||||
class="r-v2-plat-settings__section-head r-v2-plat-settings__danger-head"
|
||||
<!-- Editable fields — `custom_name` and `description` are the
|
||||
only user-authored ones. The rest of the metadata (slug,
|
||||
fs_slug, etc.) is derived from the upstream sources and is
|
||||
surfaced read-only below. -->
|
||||
<RForm ref="formRef" class="r-v2-plat-settings__form" @submit="save">
|
||||
<RTextField
|
||||
v-model="customName"
|
||||
prefix-label="stacked"
|
||||
:placeholder="platform.name"
|
||||
:rules="nameRules"
|
||||
:disabled="!canEdit"
|
||||
hide-details="auto"
|
||||
>
|
||||
<RIcon icon="mdi-alert-outline" size="14" />
|
||||
<span>{{ t("platform.danger-zone", "Danger zone") }}</span>
|
||||
</header>
|
||||
<div class="r-v2-plat-settings__danger-row">
|
||||
<div class="r-v2-plat-settings__danger-copy">
|
||||
<p class="r-v2-plat-settings__danger-title">
|
||||
{{ t("platform.delete-platform", "Delete platform") }}
|
||||
</p>
|
||||
<p class="r-v2-plat-settings__danger-hint">
|
||||
{{
|
||||
t(
|
||||
"platform.delete-platform-hint",
|
||||
"Removes the platform and its ROM database entries. Files on disk are NOT deleted.",
|
||||
)
|
||||
}}
|
||||
</p>
|
||||
</div>
|
||||
<template #prefix-label>{{ t("common.name", "Name") }}</template>
|
||||
</RTextField>
|
||||
<RTextField
|
||||
v-model="description"
|
||||
prefix-label="stacked"
|
||||
:disabled="!canEdit"
|
||||
multiline
|
||||
:rows="3"
|
||||
hide-details="auto"
|
||||
>
|
||||
<template #prefix-label>
|
||||
{{ t("platform.description", "Description") }}
|
||||
</template>
|
||||
</RTextField>
|
||||
<div v-if="dirty" class="r-v2-plat-settings__form-actions">
|
||||
<RBtn variant="text" :disabled="saving" @click="discard">
|
||||
{{ t("common.discard", "Discard") }}
|
||||
</RBtn>
|
||||
<RBtn
|
||||
variant="outlined"
|
||||
color="danger"
|
||||
prepend-icon="mdi-delete-outline"
|
||||
:loading="deleting"
|
||||
:disabled="deleting"
|
||||
@click="emit('delete')"
|
||||
variant="flat"
|
||||
color="primary"
|
||||
prepend-icon="mdi-check"
|
||||
:disabled="!customName.trim()"
|
||||
:loading="saving"
|
||||
@click="save"
|
||||
>
|
||||
{{ t("common.delete", "Delete") }}
|
||||
{{ t("common.apply", "Apply") }}
|
||||
</RBtn>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</RForm>
|
||||
|
||||
<!-- Read-only details. Kept as a hairline-divided table for
|
||||
scan-ability without competing with the editable field
|
||||
above. -->
|
||||
<div class="r-v2-plat-settings__details">
|
||||
<div
|
||||
v-for="row in details"
|
||||
:key="row.label"
|
||||
class="r-v2-plat-settings__detail-row"
|
||||
>
|
||||
<span class="r-v2-plat-settings__detail-label">{{ row.label }}</span>
|
||||
<span class="r-v2-plat-settings__detail-value">{{ row.value }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Delete routes through the parent (confirm dialog + navigation
|
||||
lives in Platform.vue). -->
|
||||
<DangerZone
|
||||
v-if="canDelete"
|
||||
:title="t('platform.delete-platform', 'Delete platform')"
|
||||
:hint="
|
||||
t(
|
||||
'platform.delete-platform-hint',
|
||||
'Removes the platform and its ROM database entries. Files on disk are NOT deleted.',
|
||||
)
|
||||
"
|
||||
>
|
||||
<RBtn
|
||||
variant="outlined"
|
||||
color="danger"
|
||||
prepend-icon="mdi-delete-outline"
|
||||
:loading="deleting"
|
||||
:disabled="deleting"
|
||||
@click="emit('delete')"
|
||||
>
|
||||
{{ t("common.delete", "Delete") }}
|
||||
</RBtn>
|
||||
</DangerZone>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
/* Single column of details and danger zone, held to a readable width and
|
||||
centered in the tab. */
|
||||
.r-v2-plat-settings {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(280px, 460px);
|
||||
justify-content: center;
|
||||
gap: 28px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.r-v2-plat-settings__col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
min-width: 0;
|
||||
gap: 20px;
|
||||
max-width: 460px;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.r-v2-plat-settings__section-head {
|
||||
@@ -342,44 +311,4 @@ const details = computed<DetailRow[]>(() => {
|
||||
color: var(--r-color-fg);
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
/* ── Danger zone ───────────────────────────────────────────────
|
||||
Subtle danger-tinted card. Header label borrows the section-head
|
||||
typography so it nests visually with the rest of the surface. */
|
||||
.r-v2-plat-settings__danger {
|
||||
padding: 14px;
|
||||
background: color-mix(
|
||||
in srgb,
|
||||
var(--r-color-status-base-danger) 6%,
|
||||
transparent
|
||||
);
|
||||
border: 1px solid
|
||||
color-mix(in srgb, var(--r-color-status-base-danger) 35%, transparent);
|
||||
border-radius: var(--r-radius-md);
|
||||
}
|
||||
.r-v2-plat-settings__danger-head {
|
||||
color: var(--r-color-status-base-danger);
|
||||
}
|
||||
.r-v2-plat-settings__danger-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.r-v2-plat-settings__danger-copy {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.r-v2-plat-settings__danger-title {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: var(--r-font-weight-semibold);
|
||||
color: var(--r-color-fg);
|
||||
}
|
||||
.r-v2-plat-settings__danger-hint {
|
||||
margin: 2px 0 0;
|
||||
font-size: 12px;
|
||||
color: var(--r-color-fg-muted);
|
||||
line-height: 1.4;
|
||||
}
|
||||
</style>
|
||||
|
||||
87
frontend/src/v2/components/shared/DangerZone.vue
Normal file
87
frontend/src/v2/components/shared/DangerZone.vue
Normal file
@@ -0,0 +1,87 @@
|
||||
<script setup lang="ts">
|
||||
// DangerZone — danger-tinted card that isolates a destructive action from
|
||||
// the rest of a surface, so it never sits next to a primary button.
|
||||
import { RIcon } from "@v2/lib";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
defineOptions({ inheritAttrs: false });
|
||||
|
||||
defineProps<{
|
||||
title: string;
|
||||
hint?: string;
|
||||
}>();
|
||||
|
||||
defineSlots<{
|
||||
default(): unknown;
|
||||
}>();
|
||||
|
||||
const { t } = useI18n();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section v-bind="$attrs" class="danger-zone">
|
||||
<header class="danger-zone__head">
|
||||
<RIcon icon="mdi-alert-outline" size="14" />
|
||||
<span>{{ t("common.danger-zone") }}</span>
|
||||
</header>
|
||||
<div class="danger-zone__row">
|
||||
<div class="danger-zone__copy">
|
||||
<p class="danger-zone__title">{{ title }}</p>
|
||||
<p v-if="hint" class="danger-zone__hint">{{ hint }}</p>
|
||||
</div>
|
||||
<slot />
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.danger-zone {
|
||||
padding: 14px;
|
||||
background: color-mix(
|
||||
in srgb,
|
||||
var(--r-color-status-base-danger) 6%,
|
||||
transparent
|
||||
);
|
||||
border: 1px solid
|
||||
color-mix(in srgb, var(--r-color-status-base-danger) 35%, transparent);
|
||||
border-radius: var(--r-radius-md);
|
||||
}
|
||||
|
||||
.danger-zone__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 10px;
|
||||
font-size: 11px;
|
||||
font-weight: var(--r-font-weight-bold);
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--r-color-status-base-danger);
|
||||
}
|
||||
|
||||
.danger-zone__row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.danger-zone__copy {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.danger-zone__title {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: var(--r-font-weight-semibold);
|
||||
color: var(--r-color-fg);
|
||||
}
|
||||
|
||||
.danger-zone__hint {
|
||||
margin: 2px 0 0;
|
||||
font-size: 12px;
|
||||
color: var(--r-color-fg-muted);
|
||||
line-height: 1.4;
|
||||
}
|
||||
</style>
|
||||
@@ -32,8 +32,13 @@ const route = useRoute();
|
||||
const { mdAndUp } = useBreakpoint();
|
||||
const isBare = computed(() => route.meta?.bare === true);
|
||||
// `fill` views (e.g. Logs) pin to the viewport height and scroll their own
|
||||
// content internally instead of growing the document.
|
||||
const isFill = computed(() => route.meta?.fill === true);
|
||||
// content internally instead of growing the document. `fill: "desktop"` does
|
||||
// so on md-and-up only, keeping the plain document scroll on phones.
|
||||
const isFill = computed(
|
||||
() =>
|
||||
route.meta?.fill === true ||
|
||||
(route.meta?.fill === "desktop" && mdAndUp.value),
|
||||
);
|
||||
|
||||
// Settings pages share the current cover-art background from wherever
|
||||
// the user came from. We don't paint over it; just no-op so a stale
|
||||
|
||||
@@ -18,6 +18,7 @@ const meta: Meta<typeof RDropzone> = {
|
||||
disabled: { control: "boolean" },
|
||||
overlay: { control: "boolean" },
|
||||
compact: { control: "boolean" },
|
||||
fill: { control: "boolean" },
|
||||
},
|
||||
args: {
|
||||
title: "Drop files here",
|
||||
@@ -57,6 +58,20 @@ export const Compact: Story = {
|
||||
args: { compact: true },
|
||||
};
|
||||
|
||||
// CTA stretched to a parent with a fixed height (e.g. a full-height panel).
|
||||
export const Fill: Story = {
|
||||
args: { fill: true },
|
||||
render: (args) => ({
|
||||
components: { RDropzone },
|
||||
setup: () => ({ args }),
|
||||
template: `
|
||||
<div style="max-width: 520px; height: 360px">
|
||||
<RDropzone v-bind="args" />
|
||||
</div>
|
||||
`,
|
||||
}),
|
||||
};
|
||||
|
||||
export const Disabled: Story = {
|
||||
args: { disabled: true },
|
||||
};
|
||||
|
||||
@@ -33,6 +33,8 @@ interface Props {
|
||||
overlay?: boolean;
|
||||
/** CTA mode only: one row with a small icon beside the title and hint. */
|
||||
compact?: boolean;
|
||||
/** CTA mode only: stretch the CTA to the dropzone's full height. */
|
||||
fill?: boolean;
|
||||
// CTA copy / icons (ignored in overlay mode except `activeIcon`).
|
||||
title?: string;
|
||||
hint?: string;
|
||||
@@ -106,6 +108,7 @@ defineExpose({ open, isOver: isOverDropZone });
|
||||
'r-dropzone--active': isOverDropZone && !disabled,
|
||||
'r-dropzone--disabled': disabled,
|
||||
'r-dropzone--compact': compact,
|
||||
'r-dropzone--fill': fill,
|
||||
}"
|
||||
>
|
||||
<input
|
||||
@@ -204,6 +207,9 @@ defineExpose({ open, isOver: isOverDropZone });
|
||||
border-color var(--r-motion-fast) var(--r-motion-ease-out),
|
||||
background var(--r-motion-fast) var(--r-motion-ease-out);
|
||||
}
|
||||
.r-dropzone--fill .r-dropzone__cta {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
.r-dropzone__cta:hover {
|
||||
border-color: color-mix(
|
||||
in srgb,
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
// RTabNav) lives INSIDE the scrolling container of whichever branch
|
||||
// is active. On Library, it rides in `GalleryShell`'s `#header` slot
|
||||
// so it scrolls away with the cards (toolbar pins below it). On
|
||||
// Settings, it sits in a plain scroll wrapper above the tab body.
|
||||
// Settings, the head stays fixed above the tab body on desktop (only
|
||||
// the panel scrolls); on mobile the head scrolls away too.
|
||||
//
|
||||
// Edit + Delete moved out of the InfoPanel `#actions` kebab and into
|
||||
// the Settings tab (editable form on top, danger zone at the bottom).
|
||||
@@ -424,8 +425,10 @@ async function onDelete() {
|
||||
</template>
|
||||
</GalleryShell>
|
||||
|
||||
<!-- SETTINGS — plain scroll wrapper hosting the same CollectionHead
|
||||
above the tab body. Whole page scrolls together. -->
|
||||
<!-- SETTINGS — hosts the same CollectionHead above the tab body. On
|
||||
desktop the head + divider stay fixed and only the panel
|
||||
scrolls; on mobile the whole thing scrolls together as one page
|
||||
(see the `sm-and-down` overrides below). -->
|
||||
<section v-else class="r-v2-coll-tabs">
|
||||
<div class="r-v2-coll-tabs__scroll">
|
||||
<CollectionHead
|
||||
@@ -461,9 +464,10 @@ async function onDelete() {
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
/* Settings branch — single scroll wrapper that owns the page scroll.
|
||||
The CollectionHead and the tab body scroll together as one surface,
|
||||
matching the platform-view layout. */
|
||||
/* Settings branch. On desktop, CollectionHead + divider stay fixed and
|
||||
only `__panel` scrolls, so switching tabs never jumps the head. On
|
||||
mobile (`sm-and-down`) the whole thing scrolls together as a single
|
||||
page instead — see the `__panel` override below. */
|
||||
.r-v2-coll-tabs {
|
||||
/* `dvh` (not `vh`) so the section matches the mobile visible viewport
|
||||
instead of the larger address-bar-hidden one — otherwise it spills below
|
||||
@@ -487,10 +491,13 @@ html[data-bp~="sm-and-down"] .r-v2-coll-tabs {
|
||||
|
||||
.r-v2-coll-tabs__scroll {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
padding: 32px var(--r-row-pad) 60px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
padding: 32px var(--r-row-pad) 0;
|
||||
}
|
||||
html[data-bp~="sm-and-down"] .r-v2-coll-tabs__scroll {
|
||||
overflow-y: auto;
|
||||
padding-bottom: calc(
|
||||
var(--r-bottom-nav-h) + env(safe-area-inset-bottom) + 24px
|
||||
);
|
||||
@@ -498,9 +505,18 @@ html[data-bp~="sm-and-down"] .r-v2-coll-tabs__scroll {
|
||||
|
||||
.r-v2-coll-tabs__divider {
|
||||
margin: 0 0 24px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.r-v2-coll-tabs__panel {
|
||||
min-height: 0;
|
||||
flex: 1 1 auto;
|
||||
overflow-y: auto;
|
||||
padding-bottom: var(--r-row-pad);
|
||||
}
|
||||
html[data-bp~="sm-and-down"] .r-v2-coll-tabs__panel {
|
||||
flex: 0 0 auto;
|
||||
overflow: visible;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
// scrolling container of whichever branch is active. On Library, it
|
||||
// rides in `GalleryShell`'s `#header` slot so it scrolls away with
|
||||
// the cards and the toolbar pins below it — the same vocabulary the
|
||||
// pre-tabs gallery had. On Firmware / Settings it sits in a plain
|
||||
// scroll wrapper above the tab body, so the user gets a single
|
||||
// natural scroll for the whole page.
|
||||
// pre-tabs gallery had. On Firmware / Settings, the head stays fixed
|
||||
// above the tab body on desktop (only the panel scrolls); on mobile
|
||||
// the head scrolls away too, for one natural page scroll.
|
||||
//
|
||||
// Action ribbon (Upload / Scan) lives inside the head component;
|
||||
// Edit (custom_name) and Delete moved inline into the Settings tab.
|
||||
@@ -493,10 +493,10 @@ async function onDelete() {
|
||||
</template>
|
||||
</GalleryShell>
|
||||
|
||||
<!-- FIRMWARE / SETTINGS — plain scroll wrapper that hosts the same
|
||||
PlatformHead above the tab body. Whole page scrolls together so
|
||||
the user keeps the head band, the divider, and the tab content
|
||||
in one natural scroll surface. -->
|
||||
<!-- FIRMWARE / SETTINGS — hosts the same PlatformHead above the tab
|
||||
body. On desktop the head + divider stay fixed and only the
|
||||
panel scrolls; on mobile the whole thing scrolls together as one
|
||||
page (see the `sm-and-down` overrides below). -->
|
||||
<section v-else class="r-v2-plat-tabs">
|
||||
<div class="r-v2-plat-tabs__scroll">
|
||||
<PlatformHead
|
||||
@@ -549,10 +549,10 @@ async function onDelete() {
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
/* Firmware / Settings branch — single scroll wrapper that owns the
|
||||
page scroll. The PlatformHead and the tab body scroll together as
|
||||
one surface, so the user gets the same natural scroll feel as the
|
||||
Library tab (where GalleryShell handles it). */
|
||||
/* Firmware / Settings branch. On desktop, PlatformHead + divider stay
|
||||
fixed and only `__panel` scrolls, so switching tabs never jumps the
|
||||
head. On mobile (`sm-and-down`) the whole thing scrolls together as
|
||||
a single page instead — see the `__panel` override below. */
|
||||
.r-v2-plat-tabs {
|
||||
/* `dvh` (not `vh`) so the section matches the mobile visible viewport
|
||||
instead of the larger address-bar-hidden one — otherwise it spills below
|
||||
@@ -576,10 +576,13 @@ html[data-bp~="sm-and-down"] .r-v2-plat-tabs {
|
||||
|
||||
.r-v2-plat-tabs__scroll {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
padding: 32px var(--r-row-pad) 60px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
padding: 32px var(--r-row-pad) 0;
|
||||
}
|
||||
html[data-bp~="sm-and-down"] .r-v2-plat-tabs__scroll {
|
||||
overflow-y: auto;
|
||||
padding-bottom: calc(
|
||||
var(--r-bottom-nav-h) + env(safe-area-inset-bottom) + 24px
|
||||
);
|
||||
@@ -587,13 +590,24 @@ html[data-bp~="sm-and-down"] .r-v2-plat-tabs__scroll {
|
||||
|
||||
.r-v2-plat-tabs__divider {
|
||||
margin: 0 0 24px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.r-v2-plat-tabs__panel {
|
||||
/* Tab body — Firmware / Settings render their own internal layouts
|
||||
(lists, two-column grids). The wrapper just provides breathing
|
||||
room and stops the inner content from running edge-to-edge with
|
||||
the head's icon column. */
|
||||
the head's icon column. On desktop it's the one scrolling region
|
||||
(flex:1 fills down to the viewport bottom); on mobile it lays out
|
||||
inline so the parent `__scroll` handles the single page scroll. */
|
||||
min-height: 0;
|
||||
flex: 1 1 auto;
|
||||
overflow-y: auto;
|
||||
padding-bottom: var(--r-row-pad);
|
||||
}
|
||||
html[data-bp~="sm-and-down"] .r-v2-plat-tabs__panel {
|
||||
flex: 0 0 auto;
|
||||
overflow: visible;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -203,28 +203,44 @@ async function upload() {
|
||||
|
||||
<template>
|
||||
<div class="r-v2-upload r-v2-section-stack">
|
||||
<!-- Platform picker -->
|
||||
<PlatformSelect
|
||||
v-model="selectedPlatformSlug"
|
||||
:items="supportedPlatforms"
|
||||
item-key="slug"
|
||||
:placeholder="t('common.select-platform')"
|
||||
density="comfortable"
|
||||
prefix-label="stacked"
|
||||
:icon-size="22"
|
||||
:search-placeholder="t('common.search')"
|
||||
:disabled="platformsLoading"
|
||||
>
|
||||
<template #prefix-label>
|
||||
<RIcon icon="mdi-controller" size="14" />
|
||||
{{ t("common.platform") }}
|
||||
</template>
|
||||
</PlatformSelect>
|
||||
<!-- No Cancel next to Upload: this is a view, not a dialog, the user
|
||||
just navigates away if they change their mind. -->
|
||||
<div class="r-v2-upload__top">
|
||||
<PlatformSelect
|
||||
v-model="selectedPlatformSlug"
|
||||
class="r-v2-upload__platform"
|
||||
:items="supportedPlatforms"
|
||||
item-key="slug"
|
||||
:placeholder="t('common.select-platform')"
|
||||
density="comfortable"
|
||||
prefix-label="stacked"
|
||||
:icon-size="22"
|
||||
:search-placeholder="t('common.search')"
|
||||
:disabled="platformsLoading"
|
||||
>
|
||||
<template #prefix-label>
|
||||
<RIcon icon="mdi-controller" size="14" />
|
||||
{{ t("common.platform") }}
|
||||
</template>
|
||||
</PlatformSelect>
|
||||
<RBtn
|
||||
variant="flat"
|
||||
color="primary"
|
||||
prepend-icon="mdi-cloud-upload-outline"
|
||||
:disabled="files.length === 0 || !selectedPlatform"
|
||||
:loading="uploading"
|
||||
@click="upload"
|
||||
>
|
||||
{{ t("common.upload") }}
|
||||
</RBtn>
|
||||
</div>
|
||||
|
||||
<!-- Drop zone — CTA when empty, file list (with drag overlay) when
|
||||
populated. -->
|
||||
<RDropzone
|
||||
v-if="files.length === 0"
|
||||
class="r-v2-upload__dropzone"
|
||||
fill
|
||||
:title="t('common.dropzone-title')"
|
||||
:hint="t('common.dropzone-description')"
|
||||
:active-title="t('common.dropzone-drag-over')"
|
||||
@@ -235,6 +251,7 @@ async function upload() {
|
||||
<RDropzone
|
||||
v-else
|
||||
ref="uploadDz"
|
||||
class="r-v2-upload__dropzone"
|
||||
overlay
|
||||
:release-label="t('common.dropzone-drag-over')"
|
||||
:input-label="t('common.upload-roms')"
|
||||
@@ -242,19 +259,6 @@ async function upload() {
|
||||
@files="addFiles"
|
||||
>
|
||||
<div class="r-v2-upload__filled">
|
||||
<header class="r-v2-upload__filled-head">
|
||||
<span>
|
||||
{{ t("common.upload-files-selected", { count: files.length }) }}
|
||||
</span>
|
||||
<RBtn
|
||||
variant="flat"
|
||||
color="primary"
|
||||
prepend-icon="mdi-plus"
|
||||
@click="uploadDz?.open()"
|
||||
>
|
||||
{{ t("common.add") }}
|
||||
</RBtn>
|
||||
</header>
|
||||
<ul class="r-v2-upload__list">
|
||||
<li v-for="f in files" :key="f.name" class="r-v2-upload__row">
|
||||
<RIcon icon="mdi-file-outline" size="14" />
|
||||
@@ -272,36 +276,58 @@ async function upload() {
|
||||
/>
|
||||
</li>
|
||||
</ul>
|
||||
<footer class="r-v2-upload__filled-foot">
|
||||
<span>
|
||||
{{ t("common.upload-files-selected", { count: files.length }) }}
|
||||
</span>
|
||||
<RBtn
|
||||
variant="flat"
|
||||
color="primary"
|
||||
prepend-icon="mdi-plus"
|
||||
@click="uploadDz?.open()"
|
||||
>
|
||||
{{ t("common.add") }}
|
||||
</RBtn>
|
||||
</footer>
|
||||
</div>
|
||||
</RDropzone>
|
||||
|
||||
<!-- Footer — primary CTA. No Cancel: this is a view, not a
|
||||
dialog, the user just navigates away if they change their
|
||||
mind. -->
|
||||
<div class="r-v2-upload__footer">
|
||||
<RBtn
|
||||
variant="flat"
|
||||
color="primary"
|
||||
prepend-icon="mdi-cloud-upload-outline"
|
||||
:disabled="files.length === 0 || !selectedPlatform"
|
||||
:loading="uploading"
|
||||
@click="upload"
|
||||
>
|
||||
{{ t("common.upload") }}
|
||||
</RBtn>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
/* On desktop the route runs in SettingsLayout `fill` mode: the view takes the
|
||||
body's height and the dropzone (empty CTA or file list) grows to the bottom
|
||||
of the viewport. Phones keep the document scroll and the capped list. */
|
||||
.r-v2-upload {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
}
|
||||
.r-v2-upload__top {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
.r-v2-upload__platform {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
}
|
||||
.r-v2-upload__dropzone {
|
||||
flex: 1 1 0;
|
||||
min-height: 0;
|
||||
}
|
||||
html[data-bp~="sm-and-down"] .r-v2-upload__dropzone {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
/* ── Filled state ────────────────────────────────────────────── */
|
||||
.r-v2-upload__filled {
|
||||
padding: 14px;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
.r-v2-upload__filled-head {
|
||||
.r-v2-upload__filled-foot {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
@@ -317,10 +343,14 @@ async function upload() {
|
||||
border: 1px solid var(--r-color-border);
|
||||
border-radius: var(--r-radius-md);
|
||||
background: var(--r-color-bg-elevated);
|
||||
overflow: hidden;
|
||||
max-height: 320px;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
}
|
||||
html[data-bp~="sm-and-down"] .r-v2-upload__list {
|
||||
flex: none;
|
||||
max-height: 320px;
|
||||
}
|
||||
.r-v2-upload__row {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto auto;
|
||||
@@ -339,9 +369,4 @@ async function upload() {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.r-v2-upload__footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user