mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
feat: local backup (#5054)
* feat: local backup * refactor(backup): make local backup helpers synchronous and clean up redundant checks - Converted local backup helpers to synchronous functions to remove unused async warnings and align command signatures. - Updated list/delete/export commands to call the sync feature functions directly without awaits while preserving behavior. - Simplified destination directory creation to always ensure parent folders exist without redundant checks, satisfying Clippy.
This commit is contained in:
@@ -387,7 +387,7 @@
|
||||
"toggle_tun_mode": "Enable/Disable Tun Mode",
|
||||
"entry_lightweight_mode": "Entry Lightweight Mode",
|
||||
"Backup Setting": "Backup Setting",
|
||||
"Backup Setting Info": "Support WebDAV backup configuration files",
|
||||
"Backup Setting Info": "Support local or WebDAV backup of configuration files",
|
||||
"Runtime Config": "Runtime Config",
|
||||
"Open Conf Dir": "Open Conf Dir",
|
||||
"Open Conf Dir Info": "If the software runs abnormally, BACKUP and delete all files in this folder then restart the software",
|
||||
@@ -448,9 +448,13 @@
|
||||
"Username": "Username",
|
||||
"Password": "Password",
|
||||
"Backup": "Backup",
|
||||
"Local Backup": "Local backup",
|
||||
"WebDAV Backup": "WebDAV backup",
|
||||
"Select Backup Target": "Select backup target",
|
||||
"Filename": "Filename",
|
||||
"Actions": "Actions",
|
||||
"Restore": "Restore",
|
||||
"Export": "Export",
|
||||
"No Backups": "No backups available",
|
||||
"WebDAV URL Required": "WebDAV URL cannot be empty",
|
||||
"Invalid WebDAV URL": "Invalid WebDAV URL format",
|
||||
@@ -461,7 +465,13 @@
|
||||
"WebDAV Config Save Failed": "Failed to save WebDAV configuration: {{error}}",
|
||||
"Backup Created": "Backup created successfully",
|
||||
"Backup Failed": "Backup failed: {{error}}",
|
||||
"Local Backup Created": "Local backup created successfully",
|
||||
"Local Backup Failed": "Local backup failed",
|
||||
"Local Backup Exported": "Local backup exported successfully",
|
||||
"Local Backup Export Failed": "Failed to export local backup",
|
||||
"Local Backup Info": "Backups are stored locally in the application data directory. Use the list below to restore or delete backups.",
|
||||
"Delete Backup": "Delete Backup",
|
||||
"Export Backup": "Export Backup",
|
||||
"Restore Backup": "Restore Backup",
|
||||
"Backup Time": "Backup Time",
|
||||
"Confirm to delete this backup file?": "Confirm to delete this backup file?",
|
||||
|
||||
Reference in New Issue
Block a user