Files
syops/frontend/src/config.ts
T

66 lines
2.3 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, // 应用管理
announcements: true, // 公告管理
questions: true, // 常用问题
wecom: true, // 企业微信
permissions: true, // 应用权限
requests: true, // 审批权限
reports: true, // 数据报表
}
}
};