mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 14:35:41 +00:00
feat(device-sync): overhaul Device Sync page
- New two-panel layout with live album search (search3, 300ms debounce) and 10 random albums when search is empty — replaces full paginated load - Pre-sync summary modal: shows files to add/delete, net change, available space; Proceed button disabled when space is insufficient - calculate_sync_payload now filters already-synced tracks (path exists on device) so add_bytes/add_count reflect the true delta - Space check accounts for pending deletions: addBytes > availableBytes + delBytes - Separate deviceSyncJobStore for ephemeral job progress state - Removable drive detection + auto-poll every 5 s via sysinfo - Desired-state diff: de-selecting a synced source stages it for deletion instead of silently removing it - Status badges (Synced / Pending / Deletion) with matching row highlights - Live-Search badge (⚡) and Zufallsalben section label (⇌) in album browser - Status summary row height aligned with search field (52 px) - i18n: all new keys added to all 8 locales (en/de/fr/nl/nb/zh/ru/es) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,7 @@ export const esTranslation = {
|
||||
collapse: 'Colapsar Barra Lateral',
|
||||
|
||||
downloadingTracks: 'Descargando {{n}} pistas…',
|
||||
syncingTracks: 'Sincronizando {{done}}/{{total}}…',
|
||||
cancelDownload: 'Cancelar descarga',
|
||||
offlineLibrary: 'Biblioteca Offline',
|
||||
genres: 'Géneros',
|
||||
@@ -1029,8 +1030,15 @@ export const esTranslation = {
|
||||
title: 'Sincronizar dispositivo',
|
||||
targetFolder: 'Carpeta de destino',
|
||||
noFolderChosen: 'Ninguna carpeta seleccionada',
|
||||
selectDrive: 'Seleccionar unidad…',
|
||||
refreshDrives: 'Actualizar unidades',
|
||||
noDrivesDetected: 'No se detectaron unidades extraíbles',
|
||||
browseManual: 'Explorar manualmente…',
|
||||
free: 'libre',
|
||||
notMountedVolume: 'El destino no está en un volumen montado. La unidad puede haberse desconectado.',
|
||||
chooseFolder: 'Elegir…',
|
||||
filenameTemplate: 'Plantilla de nombre de archivo',
|
||||
targetDevice: 'Dispositivo de destino',
|
||||
templateHint: 'Variables: {artist}, {album}, {title}, {track_number}, {disc_number}, {year}',
|
||||
cleanupButton: 'Eliminar archivos fuera de la selección',
|
||||
cleanupNothingToDelete: 'Nada que eliminar — el dispositivo ya está sincronizado.',
|
||||
@@ -1044,6 +1052,10 @@ export const esTranslation = {
|
||||
tabArtists: 'Artistas',
|
||||
searchPlaceholder: 'Buscar…',
|
||||
syncButton: 'Sincronizar al dispositivo',
|
||||
actionTransfer: 'Transferir al dispositivo',
|
||||
actionDelete: 'Eliminar del dispositivo',
|
||||
actionApplyAll: 'Aplicar todos los cambios',
|
||||
templatePreview: 'Vista previa',
|
||||
cancel: 'Cancelar',
|
||||
noTargetDir: 'Por favor, elige primero una carpeta de destino.',
|
||||
noSources: 'Por favor, selecciona al menos una fuente.',
|
||||
@@ -1051,5 +1063,33 @@ export const esTranslation = {
|
||||
fetchError: 'Error al obtener pistas del servidor.',
|
||||
syncComplete: 'Sincronización completada.',
|
||||
dismiss: 'Cerrar',
|
||||
colName: 'Nombre',
|
||||
colType: 'Tipo',
|
||||
colStatus: 'Estado',
|
||||
onDevice: 'Gestor de dispositivo',
|
||||
addSources: 'Agregar…',
|
||||
syncResult: '{{done}} transferido(s), {{skipped}} ya actualizado(s) ({{total}} total)',
|
||||
deleteFromDevice: 'Marcar para eliminar ({{count}})',
|
||||
confirmDelete: '¿Eliminar {{count}} elemento(s) del dispositivo: {{names}}?',
|
||||
deleteComplete: '{{count}} elemento(s) eliminado(s) del dispositivo.',
|
||||
statusSynced: 'Sincronizado',
|
||||
statusPending: 'Pendiente',
|
||||
statusDeletion: 'Eliminación',
|
||||
markForDeletion: 'Marcar para eliminar',
|
||||
removeSource: 'Eliminar',
|
||||
undoDeletion: 'Deshacer eliminación',
|
||||
syncInBackground: 'Sincronización iniciada en segundo plano — puedes navegar a otro lugar.',
|
||||
syncInProgress: '{{done}} / {{total}} pistas…',
|
||||
syncSummary: 'Resumen de sincronización',
|
||||
calculating: 'Calculando la carga útil requerida…',
|
||||
filesToAdd: 'Archivos a agregar:',
|
||||
filesToDelete: 'Archivos a eliminar:',
|
||||
netChange: 'Cambio neto:',
|
||||
availableSpace: 'Espacio disponible en disco:',
|
||||
spaceWarning: 'Advertencia: El dispositivo de destino no tiene suficiente espacio reportado.',
|
||||
proceed: 'Proceder con la sincronización',
|
||||
notEnoughSpace: '¡Espacio físico en disco insuficiente detectado!',
|
||||
liveSearch: 'Live',
|
||||
randomAlbumsLabel: 'Álbumes aleatorios',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user