43 lines
1.3 KiB
Dart
43 lines
1.3 KiB
Dart
/// 存储键常量
|
|
class StorageKeys {
|
|
// 设置相关
|
|
static const String themeMode = 'theme_mode';
|
|
static const String customBaseUrl = 'custom_base_url';
|
|
static const String servers = 'flutter_servers';
|
|
static const String lastSelectedServer = 'last_selected_server_label';
|
|
|
|
// 上传相关
|
|
static const String uploadQueue = 'upload_queue';
|
|
static const String uploadTasks = 'upload_tasks';
|
|
|
|
// 下载相关
|
|
static const String downloadTasks = 'download_tasks';
|
|
static const String downloadWifiOnly = 'download_wifi_only';
|
|
static const String downloadRetries = 'download_retries';
|
|
|
|
// 任务记录
|
|
static const String taskRetentionDays = 'task_retention_days';
|
|
|
|
// 缓存相关
|
|
static const String cacheSettings = 'cache_settings';
|
|
|
|
// Gravatar 镜像
|
|
static const String gravatarMirrorEnabled = 'gravatar_mirror_enabled';
|
|
static const String gravatarMirrorUrl = 'gravatar_mirror_url';
|
|
|
|
// 搜索历史
|
|
static const String searchHistory = 'search_history';
|
|
|
|
// 同步相关
|
|
static const String syncConfig = 'sync_config';
|
|
static const String syncState = 'sync_state';
|
|
static const String clientId = 'client_id';
|
|
|
|
// 日志级别
|
|
static const String logLevel = 'app_log_level';
|
|
|
|
// 公告
|
|
static const String siteAnnouncementDismissedFingerprint =
|
|
'site_announcement_dismissed_fingerprint';
|
|
}
|