Add new data manager modal with clipboard support and basic json editor

This commit is contained in:
2026-01-21 17:12:47 +00:00
parent 6983ce3853
commit b9a2489225
7 changed files with 911 additions and 321 deletions

View File

@@ -216,6 +216,33 @@ export const en = {
importFileNotSelected: "No file selected",
exportImportTooltip: "Export your settings as backup or share with others. Import previously exported settings. Choose which parts to export/import individually.",
// Data Management Modal
dataManagementTitle: "Data Management",
dataManagementSubtitle: "Export, import, and manage your application data",
openDataManagement: "Manage Data...",
copyToClipboard: "Copy to Clipboard",
pasteFromClipboard: "Paste from Clipboard",
exportActions: "Export Actions",
importActions: "Import Actions",
showJsonEditor: "Show JSON Editor",
hideJsonEditor: "Hide JSON Editor",
jsonEditorLabel: "JSON Editor",
jsonEditorPlaceholder: "Paste your JSON backup here or edit the exported data...",
jsonEditorTooltip: "Edit exported data directly or paste backup JSON. Manual editing requires JSON knowledge.",
copiedToClipboard: "Copied to clipboard!",
copyFailed: "Failed to copy to clipboard",
pasteSuccess: "JSON pasted successfully",
pasteFailed: "Failed to paste from clipboard",
pasteNoClipboardApi: "Clipboard access not available. Please paste manually.",
pasteInvalidJson: "Invalid JSON format. Please check your data.",
jsonEditWarning: "⚠️ Manual editing requires JSON knowledge. Invalid data may cause errors.",
validateJson: "Validate JSON",
clearJson: "Clear",
jsonValidationSuccess: "JSON is valid",
jsonValidationError: "✗ Invalid JSON",
closeDataManagement: "Close",
pasteContentTooLarge: "Content too large (max. 5000 characters)",
// Footer disclaimer
importantNote: "Important Notice",
disclaimer: "This tool is for illustration and information purposes only. It is not a medical device and does not replace consultation with a doctor or pharmacist. All calculations are simulations based on general pharmacokinetic models and may differ significantly from individual factors. Please consult your treating physician before making adjustments to your medication.",