Files
syops/frontend/src/config.ts
T
runny f8de4630a5 feat:
1. 管理后台支持为不同 Agent 应用上传和管理视频、PDF 等新手指南资料。
2. 前端聊天界面根据后台配置,动态展示“新手指南”入口。
3. 用户点击后可直接在系统内预览视频或 PDF 文档。
2026-06-04 12:47:21 +08:00

69 lines
2.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export const config = {
appTitle: 'AI工作台',
auth: {
// Login mode switch:
// - 'casdoor': submit username/password to backend Casdoor password-login API.
// - 'password': submit to legacy local /api/user/login.
loginMode: 'password',
casdoor: {
enabled: true,
authorizeApi: '/api/user/casdoor/authorize-url',
loginApi: '/api/user/casdoor/login',
passwordLoginApi: '/api/user/casdoor/password-login',
refreshApi: '/api/user/casdoor/refresh',
callbackPath: '/casdoor-callback',
// Casdoor Provider「Name」字段须一致(当前 IdP:wecom)。留空则仅用后端 CASDOOR_WECOM_PROVIDER_HINT。
wecomProviderHint: 'wecom',
},
wecom: {
enabled: true,
// true: login button uses Casdoor OAuth (WeCom as Casdoor provider). false: legacy /api/user/wecom/* OAuth.
loginViaCasdoor: true,
authorizeApi: '/api/user/wecom/authorize-url',
loginApi: '/api/user/wecom/login',
completeBindApi: '/api/user/wecom/complete-bind',
callbackPath: '/workspace',
deeplinkTraceApi: '/api/user/wecom/deeplink-opened',
taskCompleteApi: '/api/user/wecom/task-complete'
}
},
workspace: {
// true 显示评分区;false 隐藏评分区
showChatRating: true,
// 聊天窗口“源文件展示”开关配置
sourceFiles: {
// 是否显示源文件区域(包含上方文件按钮 + 下方“源文档”详情)
showSourceFiles: true,
// 是否显示 MD 源文件(文件名后缀为 .md/.markdown)
showMdFiles: false,
// 当 showMdFiles=true 时,MD 源文件是否默认展开“源文档”详情
expandMdByDefault: false,
},
modules: {
announcements: true,
favorites: true,
quickQuestions: false,
embedded: false,
allAgents: true
}
},
admin: {
modules: {
dashboard: true, // 仪表盘
approvals: true, // 用户审批
users: true, // 用户管理
departments: true, // 部门管理
agents: true, // 应用管理
knowledge_base: true, // 知识库管理
announcements: true, // 公告管理
questions: true, // 常用问题
wecom: true, // 企业微信
permissions: true, // 应用权限
platform_apps: true, // 平台应用说明
requests: true, // 审批权限
reports: true, // 数据报表
schedules: true, // 定时任务
}
}
};