diff --git a/webapp/src/locales/de.json b/webapp/src/locales/de.json index d5b9f71e7..433b2512f 100644 --- a/webapp/src/locales/de.json +++ b/webapp/src/locales/de.json @@ -54,6 +54,7 @@ "2005": "Ungültige Landesauswahl!", "3001": "Nichts gelöscht!", "3002": "Konfiguration zurückgesetzt. Starte jetzt neu...", + "3003": "Datei erfolgreich gelöscht. Neustarten um Änderungen anzuwenden!", "4001": "@:apiresponse.2001", "4002": "Der Name muss zwischen 1 und {max} Zeichen lang sein!", "4003": "Es werden nur {max} Wechselrichter unterstützt!", @@ -556,11 +557,9 @@ "YieldDayCorrection": "Tagesertragskorrektur", "YieldDayCorrectionHint": "Summiert den Tagesertrag, auch wenn der Wechselrichter neu gestartet wird. Der Wert wird um Mitternacht zurückgesetzt" }, - "configadmin": { + "fileadmin": { "ConfigManagement": "Konfigurationsverwaltung", "BackupHeader": "Sicherung: Sicherung der Konfigurationsdatei", - "BackupConfig": "Sicherung der Konfigurationsdatei", - "Backup": "Sichern", "Restore": "Wiederherstellen", "NoFileSelected": "Keine Datei ausgewählt", "RestoreHeader": "Wiederherstellen: Wiederherstellen der Konfigurationsdatei", @@ -573,6 +572,12 @@ "FactoryReset": "Werksreset", "ResetMsg": "Sind Sie sicher, dass Sie die aktuelle Konfiguration löschen und alle Einstellungen auf die Werkseinstellungen zurücksetzen möchten?", "ResetConfirm": "Werksreset!", + "Download": "Herunterladen", + "Delete": "Löschen", + "DeleteMsg": "Sind Sie sicher, dass Sie die Datei löschen wollen: '{name}'? Es muss manuell neu gestartet werden um die Konfigurationsänderungen zu übernehmen!", + "Name": "Name", + "Size": "Größe", + "Action": "Aktion", "Cancel": "@:base.Cancel" }, "login": { diff --git a/webapp/src/locales/en.json b/webapp/src/locales/en.json index f129d9f3f..bd782139b 100644 --- a/webapp/src/locales/en.json +++ b/webapp/src/locales/en.json @@ -54,6 +54,7 @@ "2005": "Invalid country selection!", "3001": "Not deleted anything!", "3002": "Configuration resettet. Rebooting now...", + "3003": "File successful deleted. Restart to apply changes!", "4001": "@:apiresponse.2001", "4002": "Name must between 1 and {max} characters long!", "4003": "Only {max} inverters are supported!", @@ -556,11 +557,9 @@ "YieldDayCorrection": "Yield Day Correction", "YieldDayCorrectionHint": "Sum up daily yield even if the inverter is restarted. Value will be reset at midnight" }, - "configadmin": { + "fileadmin": { "ConfigManagement": "Config Management", "BackupHeader": "Backup: Configuration File Backup", - "BackupConfig": "Backup the configuration file", - "Backup": "Backup", "Restore": "Restore", "NoFileSelected": "No file selected", "RestoreHeader": "Restore: Restore the Configuration File", @@ -573,6 +572,12 @@ "FactoryReset": "Factory Reset", "ResetMsg": "Are you sure you want to delete the current configuration and reset all settings to their factory defaults?", "ResetConfirm": "Factory Reset!", + "Download": "Download", + "Delete": "Delete", + "DeleteMsg": "Are you sure you want to delete file: '{name}'? You have to manually reboot the device to apply config changes!", + "Name": "Name", + "Size": "Size", + "Action": "Action", "Cancel": "@:base.Cancel" }, "login": { diff --git a/webapp/src/locales/fr.json b/webapp/src/locales/fr.json index 023fc0994..0387565f9 100644 --- a/webapp/src/locales/fr.json +++ b/webapp/src/locales/fr.json @@ -54,6 +54,7 @@ "2005": "Invalid country selection !", "3001": "Rien n'a été supprimé !", "3002": "Configuration réinitialisée. Redémarrage maintenant...", + "3003": "File successful deleted. Restart to apply changes!", "4001": "@:apiresponse.2001", "4002": "Le nom doit comporter entre 1 et {max} caractères !", "4003": "Seulement {max} onduleurs sont supportés !", @@ -538,11 +539,9 @@ "YieldDayCorrection": "Yield Day Correction", "YieldDayCorrectionHint": "Sum up daily yield even if the inverter is restarted. Value will be reset at midnight" }, - "configadmin": { + "fileadmin": { "ConfigManagement": "Gestion de la configuration", "BackupHeader": "Sauvegarder le fichier de configuration", - "BackupConfig": "Fichier de configuration", - "Backup": "Sauvegarder", "Restore": "Restaurer", "NoFileSelected": "Aucun fichier sélectionné", "RestoreHeader": "Restaurer le fichier de configuration", @@ -555,6 +554,12 @@ "FactoryReset": "Remise à zéro", "ResetMsg": "Êtes-vous sûr de vouloir supprimer la configuration actuelle et réinitialiser tous les paramètres à leurs valeurs par défaut ?", "ResetConfirm": "Remise à zéro !", + "Download": "Download", + "Delete": "Supprimer", + "DeleteMsg": "Are you sure you want to delete file: '{name}'? You have to manually reboot the device to apply config changes!", + "Name": "Name", + "Size": "Size", + "Action": "Action", "Cancel": "@:base.Cancel" }, "login": { diff --git a/webapp/src/types/Alert.ts b/webapp/src/types/Alert.ts new file mode 100644 index 000000000..f32f133ec --- /dev/null +++ b/webapp/src/types/Alert.ts @@ -0,0 +1,6 @@ +export interface AlertResponse { + message: string; + type: string; + code: number; + show: boolean; +} diff --git a/webapp/src/types/Config.ts b/webapp/src/types/Config.ts deleted file mode 100644 index a86512c5b..000000000 --- a/webapp/src/types/Config.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface ConfigFileInfo { - name: string; -} - -export interface ConfigFileList { - configs: Array; -} diff --git a/webapp/src/types/File.ts b/webapp/src/types/File.ts new file mode 100644 index 000000000..0850bd9de --- /dev/null +++ b/webapp/src/types/File.ts @@ -0,0 +1,4 @@ +export interface FileInfo { + name: string; + size: number; +} diff --git a/webapp/src/views/ConfigAdminView.vue b/webapp/src/views/ConfigAdminView.vue index 6005db012..09335a6a2 100644 --- a/webapp/src/views/ConfigAdminView.vue +++ b/webapp/src/views/ConfigAdminView.vue @@ -1,30 +1,38 @@