Download projects/NovelForge-Client/lib/utils/constants.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 2.8 kB
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/projects/NovelForge-Client/lib/utils/constants.dart
- Command line
-
hf download hf://luom2645/agent-workspace/projects/NovelForge-Client/lib/utils/constants.dart
-
curl -L -o constants.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/projects/NovelForge-Client/lib/utils/constants.dart
2.8 kB
| /// NovelForge Client - 应用常量配置 | |
| class AppConstants { | |
| // ============== Supabase 配置 ============== | |
| static const String supabaseUrl = 'YOUR_SUPABASE_URL'; | |
| static const String supabaseAnonKey = 'YOUR_SUPABASE_ANON_KEY'; | |
| static const String supabaseServiceKey = 'YOUR_SUPABASE_SERVICE_KEY'; | |
| // ============== AI 服务配置 ============== | |
| static const String openaiApiKey = 'YOUR_OPENAI_API_KEY'; | |
| static const String anthropicApiKey = 'YOUR_ANTHROPIC_API_KEY'; | |
| static const String googleApiKey = 'YOUR_GOOGLE_API_KEY'; | |
| // ============== 应用配置 ============== | |
| static const String appName = 'NovelForge Client'; | |
| static const String appVersion = '1.0.0'; | |
| static const String appDescription = 'AI驱动的小说创作工具'; | |
| // ============== 安全配置 ============== | |
| static const int sessionTimeoutSeconds = 3600; // 1小时 | |
| static const int maxLoginAttempts = 5; | |
| static const String encryptionKey = 'novelforge_secure_key_2024'; | |
| // ============== 文件配置 ============== | |
| static const int maxFileSize = 50 * 1024 * 1024; // 50MB | |
| static const List<String> allowedFileTypes = ['.txt', '.md', '.doc', '.docx']; | |
| // ============== AI 模型配置 ============== | |
| static const Map<String, String> aiModels = { | |
| 'gpt-4': 'OpenAI GPT-4', | |
| 'gpt-3.5-turbo': 'OpenAI GPT-3.5 Turbo', | |
| 'claude-3': 'Anthropic Claude 3', | |
| 'gemini-pro': 'Google Gemini Pro', | |
| }; | |
| // ============== 创作流程配置 ============== | |
| static const List<String> creationStages = [ | |
| '构思阶段', | |
| '大纲设计', | |
| '角色设定', | |
| '情节编写', | |
| '修改完善', | |
| ]; | |
| // ============== UI 配置 ============== | |
| static const double defaultFontSize = 14.0; | |
| static const double titleFontSize = 18.0; | |
| static const double headingFontSize = 16.0; | |
| // ============== 网络配置 ============== | |
| static const int requestTimeoutSeconds = 30; | |
| static const int maxRetryAttempts = 3; | |
| // ============== 本地存储配置 ============== | |
| static const String localStorageKey = 'novelforge_data'; | |
| static const String userPreferencesKey = 'user_preferences'; | |
| static const String deviceInfoKey = 'device_info'; | |
| } | |
| /// 应用主题配色常量 | |
| class AppColors { | |
| // 科幻主色调 | |
| static const int primaryBlue = 0xFF0A1A2A; | |
| static const int neonCyan = 0xFF00FFFF; | |
| static const int neonGreen = 0xFF00FF88; | |
| static const int warningOrange = 0xFFFF6B00; | |
| static const int errorRed = 0xFFFF0066; | |
| // 灰度色调 | |
| static const int darkGray = 0xFF1A1A1A; | |
| static const int mediumGray = 0xFF2A2A2A; | |
| static const int lightGray = 0xFF4A4A4A; | |
| // 文本颜色 | |
| static const int primaryText = 0xFFFFFFFF; | |
| static const int secondaryText = 0xFFCCCCCC; | |
| static const int disabledText = 0xFF888888; | |
| } |