Files
Ydisks-Xianyu-Helper/frontend/app/features/settings/constants.ts
T
Christ 0a45fd4a8b 完成审计重开与敏感设置脱敏切片
重开阶段2、4、5、8、9、10的完成状态,明确测试通过不等于架构完成。

管理端系统设置不再返回敏感明文,支持敏感配置保留与显式清除;dbverify仅输出Cookie长度和指纹;同步前端脱敏状态、回归测试和嵌入资源。

验证:make check;npm test --prefix frontend;npm run typecheck --prefix frontend。
2026-08-15 12:53:02 +08:00

33 lines
892 B
TypeScript

/** AI 服务默认兼容 API 地址。 */
export const DEFAULT_AI_API_URL = 'https://dashscope.aliyuncs.com/compatible-mode/v1';
/** 日志等级选择项。 */
export const LOG_LEVELS = [
{ value: 'debug', label: 'Debug' },
{ value: 'info', label: 'Info' },
{ value: 'warn', label: 'Warn' },
{ value: 'error', label: 'Error' },
];
/** 不应通过系统配置批量保存的兼容字段集合。 */
export const SETTINGS_SAVE_OMIT_KEYS = new Set([
'ai_api_key_configured',
'smtp_password_configured',
'qq_reply_secret_key_configured',
'captcha.remote_secret_key_configured',
'smtp_server',
'smtp_port',
'smtp_user',
'smtp_password',
'smtp_from',
'smtp_from_name',
'smtp_from_address',
'registration_enabled',
'show_default_login_info',
'login_captcha_enabled',
'item_sync_enabled',
'item_sync_interval',
'item_sync_max_pages',
'default_reply',
]);