mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
36 lines
1017 B
TypeScript
36 lines
1017 B
TypeScript
/**
|
|
* Configuration and copy text for storage settings operations
|
|
*/
|
|
|
|
/**
|
|
* Storage backend type keys
|
|
*/
|
|
export type StorageBackendKey = 'indexeddb' | 'sqlite' | 'flask' | 'memory'
|
|
|
|
export const storageSettingsCopy = {
|
|
toasts: {
|
|
success: {
|
|
export: 'Data exported successfully',
|
|
import: 'Data imported successfully',
|
|
switchFlask: 'Switched to Flask backend',
|
|
switchSQLite: 'Switched to SQLite backend',
|
|
switchIndexedDB: 'Switched to IndexedDB backend',
|
|
},
|
|
failure: {
|
|
export: 'Failed to export data',
|
|
import: 'Failed to import data',
|
|
switchFlask: 'Failed to switch to Flask',
|
|
switchSQLite: 'Failed to switch to SQLite',
|
|
switchIndexedDB: 'Failed to switch to IndexedDB',
|
|
},
|
|
alreadyUsing: {
|
|
flask: 'Already using Flask backend',
|
|
sqlite: 'Already using SQLite backend',
|
|
indexeddb: 'Already using IndexedDB backend',
|
|
},
|
|
errors: {
|
|
missingFlaskUrl: 'Please enter a Flask server URL',
|
|
},
|
|
},
|
|
} as const
|