Files
metabuilder/hooks/storageSettingsConfig.ts
2026-03-09 22:30:41 +00:00

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