/** * Mobile Config - 智能中控台手机端专属配置 * * 说明: * 1. 此配置文件仅供手机端使用,不影响其他项目 * 2. 所有路径都相对于 mobile/index.html * 3. 自动加载器会根据此配置加载所需组件 */ window.MOBILE_CONFIG = { // 环境配置 environment: 'production', // API 配置(相对路径,通过 nginx 转发) apiBaseUrl: '', // CDN 基础路径 cdnBaseUrl: 'https://console.duoweiying.cn', // 应用配置 appConfig: { title: '华为云智能中控台 - 移动端', logo: '📱', version: '1.0.0' }, // 功能标签配置 functionTabs: [ { name: 'content-generation', label: '📝 内容生成', color: '#667eea', description: 'AI 写作、文案创作' }, { name: 'video-generation', label: '🎬 视频生成', color: '#764ba2', description: '视频制作、渲染' }, { name: 'image-analysis', label: '🖼️ 图片解析', color: '#f093fb', description: '图像识别、分析' }, { name: 'video-analysis', label: '🎥 视频解析', color: '#4facfe', description: '视频内容理解' }, { name: 'publish-management', label: '📤 发布管理', color: '#4facfe', description: '自媒体平台发布' }, { name: 'scheduled-tasks', label: '⏰ 定时任务', color: '#f6d365', description: '定时发布计划' } ], // 底部导航配置 bottomNav: [ { name: 'home', label: '首页', icon: '🏠', target: 'chat' }, { name: 'workflow', label: '工作流', icon: '⚙️', target: 'workflow' }, { name: 'profile', label: '我的', icon: '👤', target: 'profile' } ], // 多模态支持配置 multimodal: { enableImage: true, enableVideo: true, enableVoice: false, // 暂不支持 enableFile: true, maxFileSize: 50 * 1024 * 1024 // 50MB }, // UI 组件配置 uiComponents: { // 必选组件(从共享组件库加载) // ✅ 使用相对于 smart-control-center 的路径,确保 CDN 正确解析 required: [ // === 基础框架组件 === '/components/ui-core.css', // 基础样式(共享) '/mobile/ui-mobile.css', // 移动端样式(共享) '/components/api_config.js', // API 配置(共享) '/components/api_client.js', // API 客户端(共享) '/components/smart-ui-autoloader.js',// ⭐智能加载器(共享)- 修正路径 '/components/auth-manager.js', // 认证管理(共享) // === AI对话组件 === '/components/ai-chat-component.js', // AI 对话(共享) '/components/chat-client.js', // 聊天客户端(共享) // === 视频相关组件 === '/components/video-preview-player-component.js', // ⭐视频播放器 '/components/video-management-component.js', // ⭐视频管理 '/components/video-generation-workflow.js', // 视频生成工作流 // === 定时任务与发布组件 === '/components/task-scheduler-component.js', // ⭐任务调度器 '/components/multi-platform-publisher.js', // 多平台发布器 '/components/publish-control-component.js', // 发布控制 '/components/ai-task-dispatcher-component.js', // AI任务分发器 // === 个人中心与账号管理组件 === '/components/user-profile-component.js', // ⭐用户资料管理 '/components/platform-integration-manager.js', // 平台集成管理 '/components/multi-platform-component.js', // 多平台组件 // === API Key管理组件 === '/components/apikey-usage-monitor.js', // API使用监控 '/components/apikey-package-config.js' // API套餐配置 ], // 手机端专用组件(从 mobile 目录加载) // ✅ 使用相对于 smart-control-center/mobile 的路径 mobileOnly: [ './components/mobile-function-nav.js', // 功能标签导航(专用) './components/mobile-profile-page.js', // 个人中心(专用) './components/ui-mobile-adapter.css' // 样式增强(专用) ] }, // 样式主题 theme: { primaryColor: '#667eea', secondaryColor: '#764ba2', backgroundGradient: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)' }, // 调试模式 debug: true }; // 兼容旧版本 window.APP_CONFIG = window.MOBILE_CONFIG;