Add foundational components and logic for migration, UI design, and input handling
- Introduced foundational UI components (`Badge`, `LockCard`, `SectionHeader`, `AvatarIcon`, etc.) for flexible layouts and consistent design. - Added migration support with the `MigrationModal` component and backend integration for exporting/importing data between Electron and Tauri. - Extended form components with `TextAreaInput`, `OrderInput`, `ToggleField`, and `ToolbarSelect` for improved input handling. - Updated `ScribeShell` with migration popup logic to prompt users for data migration. - Integrated `AlertStack` for better alert handling and notification management. - Enhanced Rust/Tauri services with migration command implementations. - Added translations and styles for new components.
This commit is contained in:
@@ -187,9 +187,38 @@
|
||||
"title": "Discord",
|
||||
"description": "Join our community on Discord.",
|
||||
"badge": "DISCORD"
|
||||
},
|
||||
"migration": {
|
||||
"title": "Import from Electron",
|
||||
"description": "Migrate your data from the old version."
|
||||
}
|
||||
}
|
||||
},
|
||||
"migration": {
|
||||
"title": "Migration from Electron",
|
||||
"introText": "We detected this is your first launch. If you were using the old version of ERitors Scribe (Electron), you can import your local data (books, characters, chapters, etc.).",
|
||||
"steps": "How to proceed:",
|
||||
"step1": "In the old Electron app, go to the menu and click \"Export for migration\".",
|
||||
"step2": "A .json file and a copy of your database will be created on your Desktop.",
|
||||
"step3": "Come back here and enter the path to the exported .json file.",
|
||||
"later": "Later",
|
||||
"haveFile": "I have the file",
|
||||
"selectText": "Paste the full path to the migration file exported from Electron.",
|
||||
"filePath": "Migration file path",
|
||||
"back": "Back",
|
||||
"import": "Import",
|
||||
"importing": "Migrating...",
|
||||
"successTitle": "Migration successful!",
|
||||
"successText": "Your data has been imported successfully. Log in again to access it.",
|
||||
"deleteReminder": "Remember to delete the migration file and the database copy from your Desktop.",
|
||||
"done": "Done",
|
||||
"errorTitle": "Migration error",
|
||||
"close": "Close",
|
||||
"retry": "Retry",
|
||||
"fileNotFound": "The migration file was not found at this path.",
|
||||
"dbNotFound": "The database was not found next to the migration file.",
|
||||
"importFailed": "Import failed. Please check that the files are valid."
|
||||
},
|
||||
"quillSense": {
|
||||
"needSubscription": "Please subscribe to QuillSense or bring your keys to access this feature.",
|
||||
"subscriptionDescription": "Unlock powerful writing tools to enrich your prose.",
|
||||
|
||||
Reference in New Issue
Block a user