[ENG-1695] Global setting for explorer views (#2333)

* why do i translate everytime i open the app

* default explorer settings
This commit is contained in:
Utku 2024-04-16 22:02:06 -04:00 committed by GitHub
parent 212b6852e7
commit 544f275e49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 194 additions and 35 deletions

View file

@ -5,14 +5,12 @@ import {
Rows,
SidebarSimple,
SlidersHorizontal,
SquaresFour,
Tag
SquaresFour
} from '@phosphor-icons/react';
import clsx from 'clsx';
import { useMemo } from 'react';
import { useDocumentEventListener } from 'rooks';
import { ExplorerLayout, useSelector } from '@sd/client';
import { toast } from '@sd/ui';
import { useKeyMatcher, useLocale } from '~/hooks';
import { KeyManager } from '../KeyManager';
@ -49,7 +47,7 @@ export const useExplorerTopBarOptions = () => {
const option = {
layout,
toolTipLabel: t(`${layout} View`),
toolTipLabel: t(`${layout}_view`),
icon: <Icon className={TOP_BAR_ICON_STYLE} />,
keybinds: [controlIcon, (i + 1).toString()],
topBarActive:
@ -74,14 +72,14 @@ export const useExplorerTopBarOptions = () => {
const controlOptions: ToolOption[] = [
{
toolTipLabel: 'Explorer display',
toolTipLabel: t('explorer_settings'),
icon: <SlidersHorizontal className={TOP_BAR_ICON_STYLE} />,
popOverComponent: <OptionsPanel />,
individual: true,
showAtResolution: 'sm:flex'
},
{
toolTipLabel: 'Show Inspector',
toolTipLabel: t('show_inspector'),
keybinds: [controlIcon, 'I'],
onClick: () => {
explorerStore.showInspector = !showInspector;
@ -120,24 +118,24 @@ export const useExplorerTopBarOptions = () => {
showAtResolution: 'xl:flex'
},
{
toolTipLabel: 'Key Manager',
toolTipLabel: t('key_manager'),
icon: <Key className={TOP_BAR_ICON_STYLE} />,
popOverComponent: <KeyManager />,
individual: true,
showAtResolution: 'xl:flex'
},
{
toolTipLabel: 'Tag Assign Mode',
icon: (
<Tag weight={tagAssignMode ? 'fill' : 'regular'} className={TOP_BAR_ICON_STYLE} />
),
// TODO: Assign tag mode is not yet implemented!
// onClick: () => (explorerStore.tagAssignMode = !explorerStore.tagAssignMode),
onClick: () => toast.info('Coming soon!'),
topBarActive: tagAssignMode,
individual: true,
showAtResolution: 'xl:flex'
}
// {
// toolTipLabel: 'Tag Assign Mode',
// icon: (
// <Tag weight={tagAssignMode ? 'fill' : 'regular'} className={TOP_BAR_ICON_STYLE} />
// ),
// // TODO: Assign tag mode is not yet implemented!
// // onClick: () => (explorerStore.tagAssignMode = !explorerStore.tagAssignMode),
// onClick: () => toast.info('Coming soon!'),
// topBarActive: tagAssignMode,
// individual: true,
// showAtResolution: 'xl:flex'
// }
] satisfies ToolOption[];
return {

View file

@ -7,6 +7,7 @@ import {
FilePathOrder,
Location,
useCache,
useExplorerLayoutStore,
useLibraryMutation,
useLibraryQuery,
useLibrarySubscription,
@ -228,6 +229,7 @@ function useLocationExplorerSettings(location: Location) {
const preferences = useLibraryQuery(['preferences.get']);
const updatePreferences = useLibraryMutation('preferences.update');
const explorerLayout = useExplorerLayoutStore();
const settings = useMemo(() => {
const defaults = createDefaultExplorerSettings<FilePathOrder>({
@ -240,6 +242,9 @@ function useLocationExplorerSettings(location: Location) {
const settings = preferences.data?.location?.[pubId]?.explorer;
// Overwrite the default layout with the user's preference
Object.assign(defaults, { layoutMode: explorerLayout.defaultView });
if (!settings) return defaults;
for (const [key, value] of Object.entries(settings)) {
@ -247,7 +252,7 @@ function useLocationExplorerSettings(location: Location) {
}
return defaults;
}, [location, preferences.data?.location]);
}, [explorerLayout.defaultView, location, preferences.data?.location]);
const onSettingsChanged = async (
settings: ExplorerSettings<FilePathOrder>,

View file

@ -1,7 +1,14 @@
import { CheckCircle } from '@phosphor-icons/react';
import clsx from 'clsx';
import { useEffect, useState } from 'react';
import { Themes, unitFormatStore, useThemeStore, useUnitFormatStore, useZodForm } from '@sd/client';
import {
Themes,
unitFormatStore,
useExplorerLayoutStore,
useThemeStore,
useUnitFormatStore,
useZodForm
} from '@sd/client';
import { Button, Divider, Form, Select, SelectOption, SwitchField, z } from '@sd/ui';
import { useLocale } from '~/hooks';
import { usePlatform } from '~/util/Platform';
@ -58,6 +65,7 @@ export const Component = () => {
const { lockAppTheme } = usePlatform();
const themeStore = useThemeStore();
const formatStore = useUnitFormatStore();
const explorerLayout = useExplorerLayoutStore();
const { t } = useLocale();
const [selectedTheme, setSelectedTheme] = useState<Theme['themeValue']>(
@ -205,6 +213,24 @@ export const Component = () => {
</div>
</Form>
<Divider />
<div className="flex flex-col gap-4">
<h1 className="mb-3 text-lg font-bold text-ink">{t('default_settings')}</h1>
<Setting
mini
title={t('explorer_view')}
description={t('change_view_setting_description')}
>
<Select
onChange={(v) => (explorerLayout.defaultView = v)}
value={explorerLayout.defaultView}
>
<SelectOption value="grid">{t('grid_view')}</SelectOption>
<SelectOption value="list">{t('list_view')}</SelectOption>
<SelectOption value="media">{t('media_view')}</SelectOption>
</Select>
</Setting>
</div>
<Divider />
<div className="flex flex-col gap-4">
<h1 className="mb-3 text-lg font-bold text-ink">{t('display_formats')}</h1>

View file

@ -36,6 +36,7 @@
"cancel_selection": "Скасаваць выбар",
"celcius": "Цэльсій",
"change": "Змяніць",
"change_view_setting_description": "Change the default explorer view",
"changelog": "Што новага",
"changelog_page_description": "Даведайцеся, якія новыя магчымасці мы дадалі",
"changelog_page_title": "Спіс змен",
@ -93,8 +94,10 @@
"debug_mode": "Рэжым адладкі",
"debug_mode_description": "Уключыце дадатковыя функцыі адладкі ў дадатку.",
"default": "Стандартны",
"default_settings": "Default Settings",
"delete": "Выдаліць",
"delete_dialog_title": "Выдаліць {{prefix}} {{type}}",
"delete_forever": "Delete Forever",
"delete_info": "Гэта не выдаліць самой тэчкі на дыску. Будзе выдалена медыя-прэўю.",
"delete_library": "Выдаліць бібліятэку",
"delete_library_description": "Гэта незваротнае дзеянне, вашы файлы не будуць выдалены, толькі бібліятэка Spacedrive.",
@ -146,7 +149,9 @@
"error_loading_original_file": "Памылка пры загрузцы выточнага файла",
"expand": "Разгарнуць",
"explorer": "Праваднік",
"explorer_settings": "Explorer settings",
"explorer_shortcut_description": "Навігацыя і ўзаемадзеянне з файлавай сістэмай",
"explorer_view": "Explorer view",
"export": "Экспарт",
"export_library": "Экспарт бібліятэкі",
"export_library_coming_soon": "Экспарт бібліятэкі хутка стане магчымым",
@ -279,6 +284,7 @@
"manage_library": "Кіраванне бібліятэкай",
"managed": "Кіраваны",
"media": "Медыя",
"media_view": "Media View",
"media_view_context": "Кантэкст медыя-выгляду",
"media_view_notice_description": "Лёгка знаходзьце фатаграфіі і відэа, прагляд медыя паказвае вынікі, пачынальна з бягучай лакацыі, улучаючы ўкладзеныя каталогі.",
"meet_contributors_behind_spacedrive": "Пазнаёмцеся з удзельнікамі праекта Spacedrive",
@ -292,6 +298,7 @@
"move_back_within_quick_preview": "Перамяшчэнне назад у рамках хуткага перадпрагляду",
"move_files": "Перамясціць файлы",
"move_forward_within_quick_preview": "Перамяшчэнне наперад у рамках хуткага перадпрагляду",
"move_to_trash": "Move to Trash",
"name": "Імя",
"navigate_back": "Пераход назад",
"navigate_backwards": "Пераход назад",
@ -407,6 +414,7 @@
"sharing_description": "Кіруйце тым, хто мае доступ да вашых бібліятэк.",
"show_details": "Паказаць падрабязна",
"show_hidden_files": "Паказаць утоеныя файлы",
"show_inspector": "Show Inspector",
"show_object_size": "Паказаць памер аб'екта",
"show_path_bar": "Паказаць адрасны радок",
"show_slider": "Паказаць паўзунок",
@ -469,6 +477,9 @@
"updated_successfully": "Паспяхова абнавіліся, вы на версіі {{version}}",
"usage": "Выкарыстанне",
"usage_description": "Інфармацыя пра выкарыстанне бібліятэкі і інфармацыя пра ваша апаратнае забеспячэнне",
"vaccum": "Vaccum",
"vaccum_library": "Vaccum Library",
"vaccum_library_description": "Repack your database to free up unnecessary space.",
"value": "Значэнне",
"version": "Версія {{version}}",
"video_preview_not_supported": "Папярэдні прагляд відэа не падтрымваецца.",
@ -479,4 +490,4 @@
"your_account_description": "Уліковы запіс Spacedrive і інфармацыя.",
"your_local_network": "Ваша лакальная сетка",
"your_privacy": "Ваша прыватнасць"
}
}

View file

@ -36,6 +36,7 @@
"cancel_selection": "Auswahl abbrechen",
"celcius": "Celsius",
"change": "Ändern",
"change_view_setting_description": "Ändern Sie die Standard-Exploreransicht",
"changelog": "Änderungsprotokoll",
"changelog_page_description": "Sehen Sie, welche coolen neuen Funktionen wir machen",
"changelog_page_title": "Änderungsprotokoll",
@ -93,8 +94,10 @@
"debug_mode": "Debug-Modus",
"debug_mode_description": "Zusätzliche Debugging-Funktionen in der App aktivieren.",
"default": "Standard",
"default_settings": "Standardeinstellungen",
"delete": "Löschen",
"delete_dialog_title": "{{prefix}} {{type}} löschen",
"delete_forever": "Unwiederuflich löschen",
"delete_info": "Damit wird der eigentliche Ordner auf der Festplatte nicht gelöscht. Vorschaumedien werden gelöscht.",
"delete_library": "Bibliothek löschen",
"delete_library_description": "Dies ist dauerhaft, Ihre Dateien werden nicht gelöscht, nur die Spacedrive-Bibliothek.",
@ -146,7 +149,9 @@
"error_loading_original_file": "Fehler beim Laden der Originaldatei",
"expand": "Erweitern",
"explorer": "Explorer",
"explorer_settings": "Explorer-Einstellungen",
"explorer_shortcut_description": "Um das Dateisystem zu navigieren und damit zu interagieren",
"explorer_view": "Explorer-Ansicht",
"export": "Exportieren",
"export_library": "Bibliothek exportieren",
"export_library_coming_soon": "Bibliotheksexport kommt bald",
@ -279,6 +284,7 @@
"manage_library": "Bibliothek verwalten",
"managed": "Verwaltet",
"media": "Medien",
"media_view": "Medienansicht",
"media_view_context": "Medienansichtskontext",
"media_view_notice_description": "Entdecken Sie Fotos und Videos leicht, die Medienansicht zeigt Resultate beginnend am aktuellen Standort einschließlich Unterordnern.",
"meet_contributors_behind_spacedrive": "Treffen Sie die Mitwirkenden hinter Spacedrive",
@ -292,6 +298,7 @@
"move_back_within_quick_preview": "Innerhalb der Schnellvorschau zurückgehen",
"move_files": "Dateien verschieben",
"move_forward_within_quick_preview": "Innerhalb der Schnellvorschau vorwärts gehen",
"move_to_trash": "Ab in den Müll",
"name": "Name",
"navigate_back": "Zurück navigieren",
"navigate_backwards": "Rückwärts navigieren",
@ -407,6 +414,7 @@
"sharing_description": "Verwalten Sie, wer Zugriff auf Ihre Bibliotheken hat.",
"show_details": "Details anzeigen",
"show_hidden_files": "Versteckte Dateien anzeigen",
"show_inspector": "Inspektor anzeigen",
"show_object_size": "Objektgröße anzeigen",
"show_path_bar": "Pfadleiste anzeigen",
"show_slider": "Slider anzeigen",
@ -469,6 +477,9 @@
"updated_successfully": "Erfolgreich aktualisiert, Sie verwenden jetzt Version {{version}}",
"usage": "Verwendung",
"usage_description": "Ihre Bibliotheksnutzung und Hardwareinformationen",
"vaccum": "Vakuum",
"vaccum_library": "Vakuumbibliothek",
"vaccum_library_description": "Packen Sie Ihre Datenbank neu, um unnötigen Speicherplatz freizugeben.",
"value": "Wert",
"version": "Version {{version}}",
"video_preview_not_supported": "Videovorschau wird nicht unterstützt.",
@ -479,4 +490,4 @@
"your_account_description": "Spacedrive-Konto und -Informationen.",
"your_local_network": "Ihr lokales Netzwerk",
"your_privacy": "Ihre Privatsphäre"
}
}

View file

@ -36,6 +36,7 @@
"cancel_selection": "Cancel selection",
"celcius": "Celsius",
"change": "Change",
"change_view_setting_description": "Change the default explorer view",
"changelog": "Changelog",
"changelog_page_description": "See what cool new features we're making",
"changelog_page_title": "Changelog",
@ -93,6 +94,7 @@
"debug_mode": "Debug mode",
"debug_mode_description": "Enable extra debugging features within the app.",
"default": "Default",
"default_settings": "Default Settings",
"delete": "Delete",
"delete_dialog_title": "Delete {{prefix}} {{type}}",
"delete_forever": "Delete Forever",
@ -147,14 +149,13 @@
"error_loading_original_file": "Error loading original file",
"expand": "Expand",
"explorer": "Explorer",
"explorer_settings": "Explorer settings",
"explorer_shortcut_description": "To navigate and interact with the file system",
"explorer_view": "Explorer view",
"export": "Export",
"export_library": "Export Library",
"export_library_coming_soon": "Export Library coming soon",
"export_library_description": "Export this library to a file.",
"vaccum": "Vaccum",
"vaccum_library": "Vaccum Library",
"vaccum_library_description": "Repack your database to free up unnecessary space.",
"extensions": "Extensions",
"extensions_description": "Install extensions to extend the functionality of this client.",
"fahrenheit": "Fahrenheit",
@ -283,6 +284,7 @@
"manage_library": "Manage Library",
"managed": "Managed",
"media": "Media",
"media_view": "Media View",
"media_view_context": "Media View Context",
"media_view_notice_description": "Discover photos and videos easily, Media View will show results starting at the current location including sub directories.",
"meet_contributors_behind_spacedrive": "Meet the contributors behind Spacedrive",
@ -412,6 +414,7 @@
"sharing_description": "Manage who has access to your libraries.",
"show_details": "Show details",
"show_hidden_files": "Show Hidden Files",
"show_inspector": "Show Inspector",
"show_object_size": "Show Object size",
"show_path_bar": "Show Path Bar",
"show_slider": "Show slider",
@ -474,6 +477,9 @@
"updated_successfully": "Updated successfully, you're on version {{version}}",
"usage": "Usage",
"usage_description": "Your library usage and hardware information",
"vaccum": "Vaccum",
"vaccum_library": "Vaccum Library",
"vaccum_library_description": "Repack your database to free up unnecessary space.",
"value": "Value",
"version": "Version {{version}}",
"video_preview_not_supported": "Video preview is not supported.",
@ -484,4 +490,4 @@
"your_account_description": "Spacedrive account and information.",
"your_local_network": "Your Local Network",
"your_privacy": "Your Privacy"
}
}

View file

@ -36,6 +36,7 @@
"cancel_selection": "Cancelar selección",
"celcius": "Celsius",
"change": "Cambiar",
"change_view_setting_description": "Cambiar la vista predeterminada del explorador",
"changelog": "Registro de cambios",
"changelog_page_description": "Mira qué nuevas funciones geniales estamos creando",
"changelog_page_title": "Registro de cambios",
@ -93,8 +94,10 @@
"debug_mode": "Modo de depuración",
"debug_mode_description": "Habilitar funciones de depuración adicionales dentro de la aplicación.",
"default": "Predeterminado",
"default_settings": "Configuración por defecto",
"delete": "Eliminar",
"delete_dialog_title": "Eliminar {{prefix}} {{type}}",
"delete_forever": "Borrar para siempre",
"delete_info": "Esto no eliminará la carpeta real en el disco. Los medios de vista previa serán eliminados.",
"delete_library": "Eliminar Biblioteca",
"delete_library_description": "Esto es permanente, tus archivos no serán eliminados, solo la biblioteca de Spacedrive.",
@ -146,7 +149,9 @@
"error_loading_original_file": "Error cargando el archivo original",
"expand": "Expandir",
"explorer": "Explorador",
"explorer_settings": "Configuración del explorador",
"explorer_shortcut_description": "Para navegar e interactuar con el sistema de archivos",
"explorer_view": "Vista del explorador",
"export": "Exportar",
"export_library": "Exportar Biblioteca",
"export_library_coming_soon": "Exportación de biblioteca próximamente",
@ -279,6 +284,7 @@
"manage_library": "Administrar Biblioteca",
"managed": "Gestionado",
"media": "Medios",
"media_view": "Vista de medios",
"media_view_context": "Contexto de Vista de Medios",
"media_view_notice_description": "Descubre fotos y videos fácilmente, la Vista de Medios mostrará resultados comenzando en la ubicación actual incluyendo subdirectorios.",
"meet_contributors_behind_spacedrive": "Conoce a los colaboradores detrás de Spacedrive",
@ -292,6 +298,7 @@
"move_back_within_quick_preview": "Retroceder dentro de la vista rápida",
"move_files": "Mover Archivos",
"move_forward_within_quick_preview": "Avanzar dentro de la vista rápida",
"move_to_trash": "Mover a la papelera",
"name": "Nombre",
"navigate_back": "Navegar hacia atrás",
"navigate_backwards": "Navegar hacia atrás",
@ -407,6 +414,7 @@
"sharing_description": "Administra quién tiene acceso a tus bibliotecas.",
"show_details": "Mostrar detalles",
"show_hidden_files": "Mostrar Archivos Ocultos",
"show_inspector": "Mostrar inspector",
"show_object_size": "Mostrar Tamaño del Objeto",
"show_path_bar": "Mostrar Barra de Ruta",
"show_slider": "Mostrar deslizador",
@ -469,6 +477,9 @@
"updated_successfully": "Actualizado correctamente, estás en la versión {{version}}",
"usage": "Uso",
"usage_description": "Tu uso de la biblioteca e información del hardware",
"vaccum": "vacío",
"vaccum_library": "Biblioteca de vacío",
"vaccum_library_description": "Vuelva a empaquetar su base de datos para liberar espacio innecesario.",
"value": "Valor",
"version": "Versión {{version}}",
"video_preview_not_supported": "La vista previa de video no es soportada.",
@ -479,4 +490,4 @@
"your_account_description": "Cuenta de Spacedrive e información.",
"your_local_network": "Tu Red Local",
"your_privacy": "Tu Privacidad"
}
}

View file

@ -36,6 +36,7 @@
"cancel_selection": "Annuler la sélection",
"celcius": "Celsius",
"change": "Modifier",
"change_view_setting_description": "Changer la vue par défaut de l'explorateur",
"changelog": "Journal des modifications",
"changelog_page_description": "Découvrez les nouvelles fonctionnalités cool que nous développons",
"changelog_page_title": "Changelog",
@ -93,8 +94,10 @@
"debug_mode": "Mode débogage",
"debug_mode_description": "Activez des fonctionnalités de débogage supplémentaires dans l'application.",
"default": "Défaut",
"default_settings": "Paramètres par défaut",
"delete": "Supprimer",
"delete_dialog_title": "Supprimer {{prefix}} {{type}}",
"delete_forever": "Supprimer pour toujours",
"delete_info": "Cela ne supprimera pas le dossier réel sur le disque. Les médias aperçus seront supprimés.",
"delete_library": "Supprimer la bibliothèque",
"delete_library_description": "Ceci est permanent, vos fichiers ne seront pas supprimés, seule la bibliothèque Spacedrive le sera.",
@ -146,7 +149,9 @@
"error_loading_original_file": "Erreur lors du chargement du fichier original",
"expand": "Étendre",
"explorer": "Explorateur",
"explorer_settings": "Paramètres de l'explorateur",
"explorer_shortcut_description": "Pour naviguer et interagir avec le système de fichiers",
"explorer_view": "Vue Explorateur",
"export": "Exporter",
"export_library": "Exporter la bibliothèque",
"export_library_coming_soon": "L'exportation de la bibliothèque arrivera bientôt",
@ -279,6 +284,7 @@
"manage_library": "Gérer la bibliothèque",
"managed": "Géré",
"media": "Médias",
"media_view": "Vue Média",
"media_view_context": "Contexte de vue média",
"media_view_notice_description": "Découvrez facilement les photos et vidéos, la vue média affichera les résultats en commençant par l'emplacement actuel, y compris les sous-répertoires.",
"meet_contributors_behind_spacedrive": "Rencontrez les contributeurs derrière Spacedrive",
@ -292,6 +298,7 @@
"move_back_within_quick_preview": "Revenir en arrière dans l'aperçu rapide",
"move_files": "Déplacer les fichiers",
"move_forward_within_quick_preview": "Avancer dans l'aperçu rapide",
"move_to_trash": "Mettre à la corbeille",
"name": "Nom",
"navigate_back": "Naviguer en arrière",
"navigate_backwards": "Naviguer vers l'arrière",
@ -407,6 +414,7 @@
"sharing_description": "Gérer qui a accès à vos bibliothèques.",
"show_details": "Afficher les détails",
"show_hidden_files": "Afficher les fichiers cachés",
"show_inspector": "Afficher l'inspecteur",
"show_object_size": "Afficher la taille de l'objet",
"show_path_bar": "Afficher la barre de chemin",
"show_slider": "Afficher le curseur",
@ -469,6 +477,9 @@
"updated_successfully": "Mise à jour réussie, vous êtes en version {{version}}",
"usage": "Utilisation",
"usage_description": "Votre utilisation de la bibliothèque et les informations matérielles",
"vaccum": "Vide",
"vaccum_library": "Bibliothèque sous vide",
"vaccum_library_description": "Remballez votre base de données pour libérer de l'espace inutile.",
"value": "Valeur",
"version": "Version {{version}}",
"video_preview_not_supported": "L'aperçu vidéo n'est pas pris en charge.",
@ -479,4 +490,4 @@
"your_account_description": "Compte et informations Spacedrive.",
"your_local_network": "Votre réseau local",
"your_privacy": "Votre confidentialité"
}
}

View file

@ -36,6 +36,7 @@
"cancel_selection": "Annulla selezione",
"celcius": "Celsius",
"change": "Cambia",
"change_view_setting_description": "Modifica la visualizzazione predefinita di Explorer",
"changelog": "Changelog",
"changelog_page_description": "Scopri quali nuove fantastiche funzionalità stiamo realizzando",
"changelog_page_title": "Changelog",
@ -93,8 +94,10 @@
"debug_mode": "Modalità debug",
"debug_mode_description": "Abilita funzionalità di debug aggiuntive all'interno dell'app.",
"default": "Predefinito",
"default_settings": "Impostazioni predefinite",
"delete": "Elimina",
"delete_dialog_title": "Elimina {{prefix}} {{type}}",
"delete_forever": "Elimina per sempre",
"delete_info": "Non eliminerà la cartella dal tuo disco, solo le anteprime saranno eliminate.",
"delete_library": "Elimina Libreria",
"delete_library_description": "Questa azione è permanente, i tuoi file non saranno eliminati, solo la libreria di Spacedrive.",
@ -146,7 +149,9 @@
"error_loading_original_file": "Errore durante il caricamento del file originale",
"expand": "Espandi",
"explorer": "Explorer",
"explorer_settings": "Impostazioni di Esplora risorse",
"explorer_shortcut_description": "Per navigare e interagire con il sistema di file",
"explorer_view": "Visualizzazione Esploratore",
"export": "Esporta",
"export_library": "Esporta la Libreria",
"export_library_coming_soon": "L'esportazione della libreria arriverà prossimamente",
@ -279,6 +284,7 @@
"manage_library": "Gestisci la Libreria",
"managed": "Gestito",
"media": "Media",
"media_view": "Visualizzazione multimediale",
"media_view_context": "contesto Media View",
"media_view_notice_description": "Scopri facilmente foto e video, Media View mostrerà i risultati a partire dalla posizione corrente, comprese le sottocartelle.",
"meet_contributors_behind_spacedrive": "Incontra i contributori dietro a Spacedrive",
@ -292,6 +298,7 @@
"move_back_within_quick_preview": "Torna indietro nella visualizzazione rapida",
"move_files": "Muovi i Files",
"move_forward_within_quick_preview": "Avanza nella visualizzazione rapida",
"move_to_trash": "Sposta nel cestino",
"name": "Nome",
"navigate_back": "Naviga indietro",
"navigate_backwards": "Naviga indietro",
@ -407,6 +414,7 @@
"sharing_description": "Gestisci chi ha accesso alle tue librerie.",
"show_details": "Mostra dettagli",
"show_hidden_files": "Mostra file nascosti",
"show_inspector": "Mostra ispettore",
"show_object_size": "Mostra la dimensione dell'oggetto",
"show_path_bar": "Mostra barra del percorso",
"show_slider": "Mostra slider",
@ -469,6 +477,9 @@
"updated_successfully": "Aggiornato con successo, sei sulla versione {{version}}",
"usage": "Utilizzo",
"usage_description": "Informazioni sull'utilizzo della libreria e sull'hardware",
"vaccum": "Vuoto",
"vaccum_library": "Biblioteca dei vaccini",
"vaccum_library_description": "Ricomponi il tuo database per liberare spazio non necessario.",
"value": "Valore",
"version": "Versione {{versione}}",
"video_preview_not_supported": "L'anteprima video non è supportata.",
@ -479,4 +490,4 @@
"your_account_description": "Account di Spacedrive e informazioni.",
"your_local_network": "La tua rete locale",
"your_privacy": "La tua Privacy"
}
}

View file

@ -36,6 +36,7 @@
"cancel_selection": "選択を解除",
"celcius": "摂氏",
"change": "Change",
"change_view_setting_description": "デフォルトのエクスプローラー ビューを変更する",
"changelog": "変更履歴",
"changelog_page_description": "Spacedriveの魅力ある新機能をご確認ください。",
"changelog_page_title": "変更履歴",
@ -93,8 +94,10 @@
"debug_mode": "デバッグモード",
"debug_mode_description": "アプリ内で追加のデバッグ機能を有効にします。",
"default": "デフォルト",
"default_settings": "デフォルトの設定",
"delete": "削除",
"delete_dialog_title": "{{prefix}} {{type}} を削除",
"delete_forever": "永久に削除",
"delete_info": "ディスク上の実際のフォルダは削除されません。プレビューメディアは削除されます。",
"delete_library": "ライブラリを削除",
"delete_library_description": "ライブラリを永久的に削除します。これはSpacedriveライブラリのみが削除され、あなたのファイルが削除されることはありません。",
@ -146,7 +149,9 @@
"error_loading_original_file": "オリジナルファイルの読み込みエラー",
"expand": "詳細の表示",
"explorer": "エクスプローラー",
"explorer_settings": "エクスプローラーの設定",
"explorer_shortcut_description": "ファイルシステムの移動・操作を設定します。",
"explorer_view": "エクスプローラービュー",
"export": "エクスポート",
"export_library": "ライブラリのエクスポート",
"export_library_coming_soon": "ライブラリのエクスポート機能は今後実装予定です",
@ -279,6 +284,7 @@
"manage_library": "ライブラリの設定",
"managed": "Managed",
"media": "Media",
"media_view": "メディアビュー",
"media_view_context": "メディア ビュー",
"media_view_notice_description": "メディア ビューでは、ロケーションに含まれるファイルをサブディレクトリを含めて全て表示します。写真やビデオを簡単に見つけることができます。",
"meet_contributors_behind_spacedrive": "Spacedriveは以下の人々に支えられています",
@ -292,6 +298,7 @@
"move_back_within_quick_preview": "クイック プレビューで前に戻る",
"move_files": "ファイルを移動",
"move_forward_within_quick_preview": "クイック プレビューで次に進む",
"move_to_trash": "ゴミ箱に移動",
"name": "名前",
"navigate_back": "前へ",
"navigate_backwards": "前のページに戻る",
@ -407,6 +414,7 @@
"sharing_description": "ライブラリへのアクセス権を管理できます。",
"show_details": "詳細を表示",
"show_hidden_files": "隠しファイルを表示",
"show_inspector": "インスペクターを表示",
"show_object_size": "ファイルサイズを表示",
"show_path_bar": "パスバーを表示",
"show_slider": "スライダーを表示",
@ -469,6 +477,9 @@
"updated_successfully": "バージョン {{version}} へのアップデートが完了しました。",
"usage": "利用状況",
"usage_description": "ライブラリの利用状況とハードウェア情報",
"vaccum": "バキューム",
"vaccum_library": "バキュームライブラリ",
"vaccum_library_description": "データベースを再パックして、不要なスペースを解放します。",
"value": "Value",
"version": "バージョン {{version}}",
"video_preview_not_supported": "ビデオのプレビューには対応していません。",
@ -479,4 +490,4 @@
"your_account_description": "Spacedriveアカウントの情報",
"your_local_network": "ローカルネットワーク",
"your_privacy": "あなたのプライバシー"
}
}

View file

@ -36,6 +36,7 @@
"cancel_selection": "Selectie annuleren",
"celcius": "Celsius",
"change": "Wijzigen",
"change_view_setting_description": "Wijzig de standaardverkennerweergave",
"changelog": "Wijzigingslogboek",
"changelog_page_description": "Zie welke coole nieuwe functies we aan het maken zijn",
"changelog_page_title": "Wijzigingslogboek",
@ -93,8 +94,10 @@
"debug_mode": "Debug modus",
"debug_mode_description": "Schakel extra debugging functies in de app in.",
"default": "Standaard",
"default_settings": "Standaard instellingen",
"delete": "Verwijder",
"delete_dialog_title": "Verwijder {{prefix}} {{type}}",
"delete_forever": "Voor altijd verwijderen",
"delete_info": "Hiermee wordt de daadwerkelijke map op de schijf niet verwijderd. Voorvertoning media wordt verwijderd.",
"delete_library": "Verwijder Bibliotheek",
"delete_library_description": "Dit is permanent, je bestanden worden niet verwijderd, alleen de Spacedrive bibliotheek.",
@ -146,7 +149,9 @@
"error_loading_original_file": "Fout bij het laden van het originele bestand",
"expand": "Uitbreiden",
"explorer": "Verkenner",
"explorer_settings": "Explorer-instellingen",
"explorer_shortcut_description": "Om te navigeren en te interageren met het bestandssysteem",
"explorer_view": "Explorer-weergave",
"export": "Exporteer",
"export_library": "Exporteer Bibliotheek",
"export_library_coming_soon": "Bibliotheek Exporteren komt binnenkort",
@ -279,6 +284,7 @@
"manage_library": "Beheer Bibliotheek",
"managed": "Beheerd",
"media": "Media",
"media_view": "Mediaweergave",
"media_view_context": "Media Weergave Context",
"media_view_notice_description": "Ontdek eenvoudig foto's en video's, Mediaweergave toont resultaten vanaf de huidige locatie, inclusief submappen.",
"meet_contributors_behind_spacedrive": "Maak kennis met de bijdragers achter Spacedrive=",
@ -292,6 +298,7 @@
"move_back_within_quick_preview": "Terug bewegen binnen snelle voorvertoning",
"move_files": "Verplaats Bestanden",
"move_forward_within_quick_preview": "Vooruit bewegen binnen snelle voorvertoning",
"move_to_trash": "Verplaatsen naar prullenbak",
"name": "Naam",
"navigate_back": "Navigeer terug",
"navigate_backwards": "Terug navigeren",
@ -407,6 +414,7 @@
"sharing_description": "Beheer wie toegang heeft tot je bibliotheken.",
"show_details": "Toon details",
"show_hidden_files": "Toon Verborgen Bestanden",
"show_inspector": "Toon inspecteur",
"show_object_size": "Toon Object grootte",
"show_path_bar": "Padbalk Tonen",
"show_slider": "Toon schuifregelaar",
@ -469,6 +477,9 @@
"updated_successfully": "Succesvol bijgewerkt, je gebruikt nu versie {{version}}",
"usage": "Gebruik",
"usage_description": "Je bibliotheek gebruik en hardware informatie",
"vaccum": "Vacuüm",
"vaccum_library": "Vacuüm Bibliotheek",
"vaccum_library_description": "Pak uw database opnieuw in om onnodige ruimte vrij te maken.",
"value": "Waarde",
"version": "Versie {{version}}",
"video_preview_not_supported": "Video voorvertoning wordt niet ondersteund.",
@ -479,4 +490,4 @@
"your_account_description": "Spacedrive account en informatie.",
"your_local_network": "Je Lokale Netwerk",
"your_privacy": "Jouw Privacy"
}
}

View file

@ -36,6 +36,7 @@
"cancel_selection": "Отменить выбор",
"celcius": "Цельсий",
"change": "Изменить",
"change_view_setting_description": "Изменение представления проводника по умолчанию",
"changelog": "Что нового",
"changelog_page_description": "Узнайте, какие новые возможности мы добавили",
"changelog_page_title": "Список изменений",
@ -93,8 +94,10 @@
"debug_mode": "Режим отладки",
"debug_mode_description": "Включите дополнительные функции отладки в приложении.",
"default": "Стандартный",
"default_settings": "Настройки по умолчанию",
"delete": "Удалить",
"delete_dialog_title": "Удалить {{prefix}} {{type}}",
"delete_forever": "Удалить навсегда",
"delete_info": "Это не удалит саму папку на диске. Будет удалено медиа-превью.",
"delete_library": "Удалить библиотеку",
"delete_library_description": "Это необратимое действие, ваши файлы не будут удалены, только библиотека Spacedrive.",
@ -146,7 +149,9 @@
"error_loading_original_file": "Ошибка при загрузке исходного файла",
"expand": "Развернуть",
"explorer": "Проводник",
"explorer_settings": "Настройки проводника",
"explorer_shortcut_description": "Навигация и взаимодействие с файловой системой",
"explorer_view": "Просмотр проводника",
"export": "Экспорт",
"export_library": "Экспорт библиотеки",
"export_library_coming_soon": "Экспорт библиотеки скоро станет возможным",
@ -279,6 +284,7 @@
"manage_library": "Управление библиотекой",
"managed": "Управляемый",
"media": "Медиа",
"media_view": "Медиа-представление",
"media_view_context": "Контекст медиа-вида",
"media_view_notice_description": "Легко находите фотографии и видео, просмотр медиа показывает результаты, начиная с текущей локации, включая вложенные каталоги.",
"meet_contributors_behind_spacedrive": "Познакомьтесь с участниками проекта Spacedrive",
@ -292,6 +298,7 @@
"move_back_within_quick_preview": "Перемещение назад в рамках быстрого предпросмотра",
"move_files": "Переместить файлы",
"move_forward_within_quick_preview": "Перемещение вперед в рамках быстрого предпросмотра",
"move_to_trash": "Переместить в корзину",
"name": "Имя",
"navigate_back": "Переход назад",
"navigate_backwards": "Переход назад",
@ -407,6 +414,7 @@
"sharing_description": "Управляйте тем, кто имеет доступ к вашим библиотекам.",
"show_details": "Показать подробно",
"show_hidden_files": "Показать скрытые файлы",
"show_inspector": "Показать инспектор",
"show_object_size": "Показать размер объекта",
"show_path_bar": "Показать адресную строку",
"show_slider": "Показать ползунок",
@ -469,6 +477,9 @@
"updated_successfully": "Успешно обновлено, вы используете версию {{version}}",
"usage": "Использование",
"usage_description": "Информация об использовании библиотеки и информация об вашем аппаратном обеспечении",
"vaccum": "Вакуум",
"vaccum_library": "Вакуумная библиотека",
"vaccum_library_description": "Переупакуйте базу данных, чтобы освободить ненужное пространство.",
"value": "Значение",
"version": "Версия {{version}}",
"video_preview_not_supported": "Предварительный просмотр видео не поддерживается.",
@ -479,4 +490,4 @@
"your_account_description": "Учетная запись Spacedrive и информация.",
"your_local_network": "Ваша локальная сеть",
"your_privacy": "Ваша конфиденциальность"
}
}

View file

@ -36,6 +36,7 @@
"cancel_selection": "Seçimi iptal et",
"celcius": "Santigrat",
"change": "Değiştir",
"change_view_setting_description": "Varsayılan gezgin görünümünü değiştirme",
"changelog": "Değişiklikler",
"changelog_page_description": "Yaptığımız havalı yeni özellikleri görün",
"changelog_page_title": "Değişiklikler",
@ -93,8 +94,10 @@
"debug_mode": "Hata Ayıklama Modu",
"debug_mode_description": "Uygulama içinde ek hata ayıklama özelliklerini etkinleştir.",
"default": "Varsayılan",
"default_settings": "Varsayılan ayarları",
"delete": "Sil",
"delete_dialog_title": "{{prefix}} {{type}} Sil",
"delete_forever": "Tamamen Sil",
"delete_info": "Bu, diskteki gerçek klasörü silmeyecek. Önizleme medyası silinecek.",
"delete_library": "Kütüphaneyi Sil",
"delete_library_description": "Bu kalıcıdır, dosyalarınız silinmeyecek, sadece Spacedrive kütüphanesi silinecek.",
@ -146,7 +149,9 @@
"error_loading_original_file": "Orijinal dosya yüklenirken hata",
"expand": "Genişlet",
"explorer": "Gezgin",
"explorer_settings": "Gezgin ayarları",
"explorer_shortcut_description": "Dosya sistemiyle gezinmek ve etkileşimde bulunmak için",
"explorer_view": "Gezgin görünümü",
"export": "Dışa Aktar",
"export_library": "Kütüphaneyi Dışa Aktar",
"export_library_coming_soon": "Kütüphaneyi dışa aktarma yakında geliyor",
@ -279,6 +284,7 @@
"manage_library": "Kütüphaneyi Yönet",
"managed": "Yönetilen",
"media": "Medya",
"media_view": "Medya Görünümü",
"media_view_context": "Medya Görünümü Bağlamı",
"media_view_notice_description": "Fotoğrafları ve videoları kolayca keşfedin, Medya Görünümü alt dizinler dahil olmak üzere mevcut konumdan itibaren sonuçları gösterecektir.",
"meet_contributors_behind_spacedrive": "Spacedrive'ın arkasındaki katkıda bulunanlarla tanışın",
@ -292,6 +298,7 @@
"move_back_within_quick_preview": "Hızlı önizleme içinde geri git",
"move_files": "Dosyaları Taşı",
"move_forward_within_quick_preview": "Hızlı önizleme içinde ileri git",
"move_to_trash": "Çöp kutusuna taşıyın",
"name": "Ad",
"navigate_back": "Geri git",
"navigate_backwards": "Geri git",
@ -407,6 +414,7 @@
"sharing_description": "Kütüphanelerinize kimlerin erişim sağlayabileceğini yönetin.",
"show_details": "Detayları Göster",
"show_hidden_files": "Gizli Dosyaları Göster",
"show_inspector": "Müfettişi Göster",
"show_object_size": "Nesne Boyutunu Göster",
"show_path_bar": "Yol Çubuğunu Göster",
"show_slider": "Kaydırıcıyı Göster",
@ -469,6 +477,9 @@
"updated_successfully": "Başarıyla güncellendi, şu anda {{version}} sürümündesiniz",
"usage": "Kullanım",
"usage_description": "Kütüphanenizi kullanımı ve donanım bilgileri",
"vaccum": "Vakum",
"vaccum_library": "Vakum Kütüphanesi",
"vaccum_library_description": "Gereksiz alanı boşaltmak için veritabanınızı yeniden paketleyin.",
"value": "Değer",
"version": "Sürüm {{version}}",
"video_preview_not_supported": "Video ön izlemesi desteklenmiyor.",
@ -479,4 +490,4 @@
"your_account_description": "Spacedrive hesabınız ve bilgileri.",
"your_local_network": "Yerel Ağınız",
"your_privacy": "Gizliliğiniz"
}
}

View file

@ -36,6 +36,7 @@
"cancel_selection": "取消选择",
"celcius": "摄氏度",
"change": "更改",
"change_view_setting_description": "更改默认资源管理器视图",
"changelog": "更新日志",
"changelog_page_description": "查看我们正在开发的酷炫新功能",
"changelog_page_title": "更新日志",
@ -93,8 +94,10 @@
"debug_mode": "调试模式",
"debug_mode_description": "在应用内启用额外的调试功能。",
"default": "默认",
"default_settings": "默认设置",
"delete": "删除",
"delete_dialog_title": "删除 {{prefix}} {{type}}",
"delete_forever": "永久删除",
"delete_info": "这不会删除磁盘上的实际文件夹。预览媒体将被删除。",
"delete_library": "删除库",
"delete_library_description": "这是永久性的您的文件不会被删除只有Spacedrive库会被删除。",
@ -146,7 +149,9 @@
"error_loading_original_file": "加载原始文件出错",
"expand": "展开",
"explorer": "资源管理器",
"explorer_settings": "资源管理器设置",
"explorer_shortcut_description": "导航、与文件系统交互",
"explorer_view": "资源管理器视图",
"export": "导出",
"export_library": "导出库",
"export_library_coming_soon": "导出库功能即将推出",
@ -279,6 +284,7 @@
"manage_library": "管理库",
"managed": "已管理",
"media": "媒体",
"media_view": "媒体视图",
"media_view_context": "媒体视图上下文",
"media_view_notice_description": "轻松发现照片和视频,媒体视图将从当前位置开始显示结果,包括子目录。",
"meet_contributors_behind_spacedrive": "结识 Spacedrive 背后的贡献者",
@ -292,6 +298,7 @@
"move_back_within_quick_preview": "在快速预览中后退",
"move_files": "移动文件",
"move_forward_within_quick_preview": "在快速预览中前进",
"move_to_trash": "移到废纸篓",
"name": "名称",
"navigate_back": "回退",
"navigate_backwards": "向后导航",
@ -407,6 +414,7 @@
"sharing_description": "管理有权访问您的库的人。",
"show_details": "显示详情",
"show_hidden_files": "显示隐藏文件",
"show_inspector": "显示检查员",
"show_object_size": "显示对象大小",
"show_path_bar": "显示路径栏",
"show_slider": "显示滑块",
@ -469,6 +477,9 @@
"updated_successfully": "成功更新,您当前使用的是版本 {{version}}",
"usage": "使用情况",
"usage_description": "您的库使用情况和硬件信息",
"vaccum": "真空",
"vaccum_library": "真空库",
"vaccum_library_description": "重新打包数据库以释放不必要的空间。",
"value": "值",
"version": "版本 {{version}}",
"video_preview_not_supported": "不支持视频预览。",

View file

@ -36,6 +36,7 @@
"cancel_selection": "取消選擇",
"celcius": "攝氏",
"change": "更改",
"change_view_setting_description": "變更預設資源管理器視圖",
"changelog": "變更日誌",
"changelog_page_description": "了解我們正在創建的酷炫新功能",
"changelog_page_title": "變更日誌",
@ -93,8 +94,10 @@
"debug_mode": "除錯模式",
"debug_mode_description": "在應用程序中啟用額外的除錯功能。",
"default": "默認",
"default_settings": "預設設定",
"delete": "刪除",
"delete_dialog_title": "刪除 {{prefix}} {{type}}",
"delete_forever": "永久刪除",
"delete_info": "這不會刪除磁盤上的實際文件夾。預覽媒體將被刪除。",
"delete_library": "刪除圖書館",
"delete_library_description": "這是永久性的您的文件不會被刪除只有Spacedrive圖書館會被刪除。",
@ -146,7 +149,9 @@
"error_loading_original_file": "加載原始文件出錯",
"expand": "展開",
"explorer": "資源管理器",
"explorer_settings": "資源管理器設定",
"explorer_shortcut_description": "導覽和與檔案系統互動",
"explorer_view": "資源管理器視圖",
"export": "導出",
"export_library": "導出圖書館",
"export_library_coming_soon": "導出圖書館即將推出",
@ -279,6 +284,7 @@
"manage_library": "管理圖書館",
"managed": "已管理",
"media": "媒體",
"media_view": "媒體視圖",
"media_view_context": "媒體視圖上下文",
"media_view_notice_description": "輕鬆發現照片和視頻,媒體視圖會從當前位置(包括子目錄)顯示結果。",
"meet_contributors_behind_spacedrive": "認識Spacedrive背後的貢獻者",
@ -292,6 +298,7 @@
"move_back_within_quick_preview": "在快速預覽中向後移動",
"move_files": "移動文件",
"move_forward_within_quick_preview": "在快速預覽中向前移動",
"move_to_trash": "移到廢紙簍",
"name": "名稱",
"navigate_back": "後退",
"navigate_backwards": "向後導覽",
@ -407,6 +414,7 @@
"sharing_description": "管理誰可以訪問您的圖書館。",
"show_details": "顯示詳情",
"show_hidden_files": "顯示隱藏文件",
"show_inspector": "顯示檢查員",
"show_object_size": "顯示對象大小",
"show_path_bar": "顯示路徑條",
"show_slider": "顯示滑塊",
@ -469,6 +477,9 @@
"updated_successfully": "成功更新,您目前使用的是版本 {{version}}",
"usage": "使用情況",
"usage_description": "您的圖書館使用情況和硬體資訊。",
"vaccum": "真空",
"vaccum_library": "真空庫",
"vaccum_library_description": "重新打包資料庫以釋放不必要的空間。",
"value": "值",
"version": "版本 {{version}}",
"video_preview_not_supported": "不支援視頻預覽。",

View file

@ -1,12 +1,15 @@
import { createMutable } from 'solid-js/store';
import { ExplorerLayout } from '../core';
import { createPersistedMutable, useSolidStore } from '../solid';
export const explorerLayout = createPersistedMutable(
'sd-explorer-layout',
createMutable({
showPathBar: true,
showImageSlider: true
showImageSlider: true,
// might move this to a store called settings
defaultView: 'grid' as ExplorerLayout
})
);