Files
syops/frontend/src/config.ts
T
hugoandCursor 39fe3c05f2 feat(freight-rpa): 库存/收料改名在手/入站,报表归属RPA,类名统一FreightRpa
把 shipping 侧 inventory/receipt 词根迁到 onhand/inbound,29 张表与
枚举/权限/前端/i18n 同步改名;在手与入站报表配置及文件改由 freight_rpa
持有,发货与调拨仅按 source_code 消费;ORM 类加 FreightRpa 前缀,
上传动作改为 freight_rpa_upload。含类名与上传动作改名规格文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-19 10:46:06 +08:00

84 lines
3.4 KiB
TypeScript

/**
* config.ts
* 鐢ㄩ€旓細鍓嶇搴旂敤绾у紑鍏充笌榛樿閰嶇疆锛堢櫥褰曟ā寮忋€佸伐浣滃彴妯″潡銆佺鐞嗘ā鍧楀彲瑙佹€э級銆?
* 渚濊禆锛氭棤杩愯鏃朵緷璧栵紱搴旂敤鏍囬閫氳繃 common.app.title i18n key 瑙f瀽銆?
* 閫昏緫锛歮ain.ts / router guards 浣跨敤 i18n.t(config.appTitleKey) 璁剧疆 document.title銆?
*/
export const config = {
/** Browser title base name 鈥?resolve via i18n `t(config.appTitleKey)`. */
appTitleKey: 'common.app.title',
auth: {
// Login mode switch:
// - 'casdoor': submit username/password to backend Casdoor password-login API.
// - 'password': submit to legacy local /api/user/login.
loginMode: 'casdoor',
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銆孨ame銆嶅瓧娈甸』涓€鑷达紙褰撳墠 IdP锛歸ecom锛夈€傜暀绌哄垯浠呯敤鍚庣 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, // 仪表盘
users: true, // 用户管理
departments: true, // 部门管理
agents: true, // 应用管理
knowledge_base: true, // 知识库管理
announcements: true, // 公告管理
questions: true, // 常用问题
permissions: true, // 应用权限
platform_apps: true, // 平台应用说明
requests: false, // 权限审批功能已移除
reports: true, //数据报表
schedules: true, // 定时任务
wecom: true, // 企业微信
linked_services: true, // 关联服务(侧栏跳转入口)
freight_rpa: true, // 货代配置
procurement_contract: true, // 采购合同审查(模板库 + 历史)
training_config: true,
integration_connector: true, // 集成连接器配置
transfer_types: true, // 在途调拨类型配置(ADR 0002)
}
}
};