feat: Introduce dedicated settings page with API URL configuration and data management hooks, and update Dockerfile for runtime env injection.

This commit is contained in:
2025-12-26 15:55:55 +01:00
parent 23b3c5000f
commit 7840227649
14 changed files with 368 additions and 89 deletions

View File

@@ -0,0 +1,5 @@
// Default environment configuration for development
// This file is replaced at Docker container startup with runtime values
window.env = {
// API_URL will be injected by Docker, or can be overridden via localStorage
};

View File

@@ -2,6 +2,9 @@
"{{count}} selected_one": "{{count}} ausgewählt",
"{{count}} selected_other": "{{count}} ausgewählt",
"Add a new note to your collection.": "Füge eine neue Notiz zu deiner Sammlung hinzu.",
"API Configuration": "API-Konfiguration",
"API URL reset to default. Please reload the page.": "API-URL auf Standard zurückgesetzt. Bitte Seite neu laden.",
"API URL updated successfully. Please reload the page.": "API-URL erfolgreich aktualisiert. Bitte Seite neu laden.",
"Archive": "Archiv",
"Archived {{count}} note_one": "{{count}} Notiz archiviert",
"Archived {{count}} note_other": "{{count}} Notizen archiviert",
@@ -9,11 +12,15 @@
"Are you sure you want to delete {{count}} note?_other": "Möchtest du wirklich {{count}} Notizen löschen?",
"Are you sure?": "Bist du sicher?",
"Backend URL": "Backend-URL",
"Choose your preferred language": "Wähle deine bevorzugte Sprache",
"Color": "Farbe",
"Configure the application settings.": "Konfiguriere die Anwendungseinstellungen.",
"Configure the backend API URL for this application": "Konfiguriere die Backend-API-URL für diese Anwendung",
"Content": "Inhalt",
"Create": "Erstellen",
"Create Note": "Notiz erstellen",
"Current API URL": "Aktuelle API-URL",
"Custom API URL": "Benutzerdefinierte API-URL",
"Data Management": "Datenverwaltung",
"Delete": "Löschen",
"Delete tag \"{{name}}\"? Notes will keep their content.": "Tag \"{{name}}\" löschen? Notizen behalten ihren Inhalt.",
@@ -29,9 +36,10 @@
"Import Data": "Daten importieren",
"Import failed": "Import fehlgeschlagen",
"Import successful. Reloading...": "Import erfolgreich. Wird neu geladen...",
"Invalid URL": "Ungültige URL",
"Invalid URL format. Please enter a valid URL.": "Ungültiges URL-Format. Bitte gib eine gültige URL ein.",
"K-Notes": "K-Notes",
"Language": "Sprache",
"Leave empty to use the default or Docker-injected URL": "Leer lassen, um die Standard- oder Docker-injizierte URL zu verwenden",
"List View": "Listenansicht",
"New Note": "Neue Notiz",
"No archived notes yet": "Noch keine archivierten Notizen",
@@ -42,16 +50,24 @@
"Note created": "Notiz erstellt",
"Note title": "Notiztitel",
"Note updated": "Notiz aktualisiert",
"Notes": "Notizen",
"Others": "Andere",
"Pin this note": "Diese Notiz anheften",
"Pinned": "Angeheftet",
"Please enter a URL": "Bitte gib eine URL ein",
"Reload": "Neu laden",
"Rename": "Umbenennen",
"Reset to Default": "Auf Standard zurücksetzen",
"Save": "Speichern",
"Save changes": "Änderungen speichern",
"Saving...": "Speichern...",
"Saving": {
"": {
"": {
"": ""
}
}
},
"Search your notes...": "Durchsuche deine Notizen...",
"Settings": "Einstellungen",
"Settings saved. Please refresh the page.": "Einstellungen gespeichert. Bitte aktualisiere die Seite.",
"Tag deleted": "Tag gelöscht",
"Tag renamed": "Tag umbenannt",
"Tags": "Tags",

View File

@@ -2,6 +2,9 @@
"{{count}} selected_one": "{{count}} selected",
"{{count}} selected_other": "{{count}} selected",
"Add a new note to your collection.": "Add a new note to your collection.",
"API Configuration": "API Configuration",
"API URL reset to default. Please reload the page.": "API URL reset to default. Please reload the page.",
"API URL updated successfully. Please reload the page.": "API URL updated successfully. Please reload the page.",
"Archive": "Archive",
"Archived {{count}} note_one": "Archived {{count}} notes",
"Archived {{count}} note_other": "Archived {{count}} notes",
@@ -9,11 +12,15 @@
"Are you sure you want to delete {{count}} note?_other": "Are you sure you want to delete {{count}} notes?",
"Are you sure?": "Are you sure?",
"Backend URL": "Backend URL",
"Choose your preferred language": "Choose your preferred language",
"Color": "Color",
"Configure the application settings.": "Configure the application settings.",
"Configure the backend API URL for this application": "Configure the backend API URL for this application",
"Content": "Content",
"Create": "Create",
"Create Note": "Create Note",
"Current API URL": "Current API URL",
"Custom API URL": "Custom API URL",
"Data Management": "Data Management",
"Delete": "Delete",
"Delete tag \"{{name}}\"? Notes will keep their content.": "Delete tag \"{{name}}\"? Notes will keep their content.",
@@ -29,9 +36,10 @@
"Import Data": "Import Data",
"Import failed": "Import failed",
"Import successful. Reloading...": "Import successful. Reloading...",
"Invalid URL": "Invalid URL",
"Invalid URL format. Please enter a valid URL.": "Invalid URL format. Please enter a valid URL.",
"K-Notes": "K-Notes",
"Language": "Language",
"Leave empty to use the default or Docker-injected URL": "Leave empty to use the default or Docker-injected URL",
"List View": "List View",
"New Note": "New Note",
"No archived notes yet": "No archived notes yet",
@@ -45,7 +53,11 @@
"Others": "Others",
"Pin this note": "Pin this note",
"Pinned": "Pinned",
"Please enter a URL": "Please enter a URL",
"Reload": "Reload",
"Rename": "Rename",
"Reset to Default": "Reset to Default",
"Save": "Save",
"Save changes": "Save changes",
"Saving": {
"": {
@@ -56,7 +68,6 @@
},
"Search your notes...": "Search your notes...",
"Settings": "Settings",
"Settings saved. Please refresh the page.": "Settings saved. Please refresh the page.",
"Tag deleted": "Tag deleted",
"Tag renamed": "Tag renamed",
"Tags": "Tags",

View File

@@ -1,23 +1,34 @@
{
"{{count}} selected_one": "{{count}} seleccionado",
"{{count}} selected_many": "",
"{{count}} selected_other": "{{count}} seleccionados",
"Add a new note to your collection.": "Añade una nueva nota a tu colección.",
"API Configuration": "Configuración de API",
"API URL reset to default. Please reload the page.": "URL de API restablecido a predeterminado. Recarga la página.",
"API URL updated successfully. Please reload the page.": "URL de API actualizado correctamente. Recarga la página.",
"Archive": "Archivar",
"Archived {{count}} note_one": "{{count}} nota archivada",
"Archived {{count}} note_many": "",
"Archived {{count}} note_other": "{{count}} notas archivadas",
"Are you sure you want to delete {{count}} note?_one": "¿Estás seguro de que quieres eliminar {{count}} nota?",
"Are you sure you want to delete {{count}} note?_many": "",
"Are you sure you want to delete {{count}} note?_other": "¿Estás seguro de que quieres eliminar {{count}} notas?",
"Are you sure?": "¿Estás seguro?",
"Backend URL": "URL del backend",
"Choose your preferred language": "Elige tu idioma preferido",
"Color": "Color",
"Configure the application settings.": "Configura los ajustes de la aplicación.",
"Configure the backend API URL for this application": "Configura la URL de API del backend para esta aplicación",
"Content": "Contenido",
"Create": "Crear",
"Create Note": "Crear nota",
"Current API URL": "URL de API actual",
"Custom API URL": "URL de API personalizado",
"Data Management": "Gestión de datos",
"Delete": "Eliminar",
"Delete tag \"{{name}}\"? Notes will keep their content.": "¿Eliminar etiqueta \"{{name}}\"? Las notas conservarán su contenido.",
"Deleted {{count}} note_one": "{{count}} nota eliminada",
"Deleted {{count}} note_many": "",
"Deleted {{count}} note_other": "{{count}} notas eliminadas",
"Edit Note": "Editar nota",
"Export Data": "Exportar datos",
@@ -29,9 +40,10 @@
"Import Data": "Importar datos",
"Import failed": "Importación fallida",
"Import successful. Reloading...": "Importación exitosa. Recargando...",
"Invalid URL": "URL inválida",
"Invalid URL format. Please enter a valid URL.": "Formato de URL inválido. Por favor, introduce una URL válida.",
"K-Notes": "K-Notes",
"Language": "Idioma",
"Leave empty to use the default or Docker-injected URL": "Dejar vacío para usar la URL predeterminada o inyectada por Docker",
"List View": "Vista de lista",
"New Note": "Nueva nota",
"No archived notes yet": "Aún no hay notas archivadas",
@@ -42,16 +54,24 @@
"Note created": "Nota creada",
"Note title": "Título de la nota",
"Note updated": "Nota actualizada",
"Notes": "Notas",
"Others": "Otros",
"Pin this note": "Fijar esta nota",
"Pinned": "Fijadas",
"Please enter a URL": "Por favor, introduce una URL",
"Reload": "Recargar",
"Rename": "Renombrar",
"Reset to Default": "Restablecer a predeterminado",
"Save": "Guardar",
"Save changes": "Guardar cambios",
"Saving...": "Guardando...",
"Saving": {
"": {
"": {
"": ""
}
}
},
"Search your notes...": "Busca tus notas...",
"Settings": "Configuración",
"Settings saved. Please refresh the page.": "Configuración guardada. Por favor, actualiza la página.",
"Tag deleted": "Etiqueta eliminada",
"Tag renamed": "Etiqueta renombrada",
"Tags": "Etiquetas",

View File

@@ -1,23 +1,34 @@
{
"{{count}} selected_one": "{{count}} sélectionné",
"{{count}} selected_many": "",
"{{count}} selected_other": "{{count}} sélectionnés",
"Add a new note to your collection.": "Ajoute une nouvelle note à ta collection.",
"API Configuration": "Configuration de l'API",
"API URL reset to default. Please reload the page.": "URL de l'API réinitialisée par défaut. Veuillez recharger la page.",
"API URL updated successfully. Please reload the page.": "URL de l'API mise à jour avec succès. Veuillez recharger la page.",
"Archive": "Archive",
"Archived {{count}} note_one": "{{count}} note archivée",
"Archived {{count}} note_many": "",
"Archived {{count}} note_other": "{{count}} notes archivées",
"Are you sure you want to delete {{count}} note?_one": "Es-tu sûr de vouloir supprimer {{count}} note ?",
"Are you sure you want to delete {{count}} note?_many": "",
"Are you sure you want to delete {{count}} note?_other": "Es-tu sûr de vouloir supprimer {{count}} notes ?",
"Are you sure?": "Es-tu sûr ?",
"Backend URL": "URL du backend",
"Choose your preferred language": "Choisis ta langue préférée",
"Color": "Couleur",
"Configure the application settings.": "Configure les paramètres de l'application.",
"Configure the backend API URL for this application": "Configure l'URL de l'API backend pour cette application",
"Content": "Contenu",
"Create": "Créer",
"Create Note": "Créer une note",
"Current API URL": "URL de l'API actuelle",
"Custom API URL": "URL de l'API personnalisée",
"Data Management": "Gestion des données",
"Delete": "Supprimer",
"Delete tag \"{{name}}\"? Notes will keep their content.": "Supprimer l'étiquette \"{{name}}\" ? Les notes conserveront leur contenu.",
"Deleted {{count}} note_one": "{{count}} note supprimée",
"Deleted {{count}} note_many": "",
"Deleted {{count}} note_other": "{{count}} notes supprimées",
"Edit Note": "Modifier la note",
"Export Data": "Exporter les données",
@@ -29,9 +40,10 @@
"Import Data": "Importer les données",
"Import failed": "Échec de l'importation",
"Import successful. Reloading...": "Importation réussie. Rechargement...",
"Invalid URL": "URL invalide",
"Invalid URL format. Please enter a valid URL.": "Format d'URL invalide. Veuillez entrer une URL valide.",
"K-Notes": "K-Notes",
"Language": "Langue",
"Leave empty to use the default or Docker-injected URL": "Laisser vide pour utiliser l'URL par défaut ou injectée par Docker",
"List View": "Vue en liste",
"New Note": "Nouvelle note",
"No archived notes yet": "Pas encore de notes archivées",
@@ -42,16 +54,24 @@
"Note created": "Note créée",
"Note title": "Titre de la note",
"Note updated": "Note mise à jour",
"Notes": "Notes",
"Others": "Autres",
"Pin this note": "Épingler cette note",
"Pinned": "Épinglées",
"Please enter a URL": "Veuillez entrer une URL",
"Reload": "Recharger",
"Rename": "Renommer",
"Reset to Default": "Réinitialiser par défaut",
"Save": "Enregistrer",
"Save changes": "Enregistrer les modifications",
"Saving...": "Enregistrement...",
"Saving": {
"": {
"": {
"": ""
}
}
},
"Search your notes...": "Recherche dans tes notes...",
"Settings": "Paramètres",
"Settings saved. Please refresh the page.": "Paramètres enregistrés. Veuillez actualiser la page.",
"Tag deleted": "Étiquette supprimée",
"Tag renamed": "Étiquette renommée",
"Tags": "Étiquettes",

View File

@@ -4,6 +4,9 @@
"{{count}} selected_many": "{{count}} zaznaczonych",
"{{count}} selected_other": "{{count}} zaznaczonych",
"Add a new note to your collection.": "Dodaj nową notatkę do swojej kolekcji.",
"API Configuration": "Konfiguracja API",
"API URL reset to default. Please reload the page.": "URL API zresetowano do domyślnego. Przeładuj stronę.",
"API URL updated successfully. Please reload the page.": "URL API zaktualizowano pomyślnie. Przeładuj stronę.",
"Archive": "Archiwum",
"Archived {{count}} note_one": "Zarchiwizowano {{count}} notatkę",
"Archived {{count}} note_few": "Zarchiwizowano {{count}} notatki",
@@ -15,11 +18,15 @@
"Are you sure you want to delete {{count}} note?_other": "Czy na pewno chcesz usunąć {{count}} notatek?",
"Are you sure?": "Czy jesteś pewien?",
"Backend URL": "Adres URL backendu",
"Choose your preferred language": "Wybierz preferowany język",
"Color": "Kolor",
"Configure the application settings.": "Skonfiguruj ustawienia aplikacji.",
"Configure the backend API URL for this application": "Skonfiguruj URL API backendu dla tej aplikacji",
"Content": "Treść",
"Create": "Utwórz",
"Create Note": "Utwórz notatkę",
"Current API URL": "Aktualny URL API",
"Custom API URL": "Własny URL API",
"Data Management": "Zarządzanie danymi",
"Delete": "Usuń",
"Delete tag \"{{name}}\"? Notes will keep their content.": "Usunąć tag \"{{name}}\"? Notatki zachowają swoją treść.",
@@ -37,9 +44,10 @@
"Import Data": "Importuj dane",
"Import failed": "Import nie powiódł się",
"Import successful. Reloading...": "Import zakończony sukcesem. Przeładowywanie...",
"Invalid URL": "Nieprawidłowy adres URL",
"Invalid URL format. Please enter a valid URL.": "Nieprawidłowy format URL. Podaj prawidłowy URL.",
"K-Notes": "K-Notes",
"Language": "Język",
"Leave empty to use the default or Docker-injected URL": "Pozostaw puste, aby użyć domyślnego lub wstrzykniętego przez Docker URL",
"List View": "Widok listy",
"New Note": "Nowa notatka",
"No archived notes yet": "Jeszcze nie ma zarchiwizowanych notatek",
@@ -53,7 +61,11 @@
"Others": "Inne",
"Pin this note": "Przypnij tę notatkę",
"Pinned": "Przypięte",
"Please enter a URL": "Proszę podać URL",
"Reload": "Przeładuj",
"Rename": "Zmień nazwę",
"Reset to Default": "Przywróć domyślne",
"Save": "Zapisz",
"Save changes": "Zapisz zmiany",
"Saving": {
"": {
@@ -64,7 +76,6 @@
},
"Search your notes...": "Szukaj swoich notatek...",
"Settings": "Ustawienia",
"Settings saved. Please refresh the page.": "Ustawienia zapisane. Odśwież stronę.",
"Tag deleted": "Tag usunięty",
"Tag renamed": "Nazwę tagu zmieniono",
"Tags": "Tagi",
@@ -75,4 +86,4 @@
"Update": "Aktualizuj",
"work, todo, ideas": "praca, zadania, pomysły",
"Your notes will appear here. Click + to create one.": "Twoje notatki pojawią się tutaj. Kliknij +, aby utworzyć notatkę."
}
}