Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
1. App.tsx: add restoreSession() call on startup to prevent redirect to login page after refresh (isRestoring guard + BootstrapScreen) 2. CloneManager: call syncAgents() after loadClones() to restore currentAgent and conversation history on app load 3. zclaw-memory: add get_or_create_session() so frontend session UUID is persisted directly — kernel no longer creates mismatched IDs 4. openai.rs: assistant message content must be non-empty for Kimi/Qwen APIs — replace empty content with meaningful placeholders Also includes admin-v2 ModelServices unified page (merge providers + models + API keys into expandable row layout)
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
// ============================================================
|
|
// 操作日志状态映射 — Dashboard 与 Logs 共用
|
|
// ============================================================
|
|
|
|
export const actionLabels: Record<string, string> = {
|
|
login: '登录',
|
|
logout: '登出',
|
|
create_account: '创建账号',
|
|
update_account: '更新账号',
|
|
delete_account: '删除账号',
|
|
create_provider: '创建服务商',
|
|
update_provider: '更新服务商',
|
|
delete_provider: '删除服务商',
|
|
create_model: '创建模型',
|
|
update_model: '更新模型',
|
|
delete_model: '删除模型',
|
|
create_token: '创建密钥',
|
|
revoke_token: '撤销密钥',
|
|
update_config: '更新配置',
|
|
create_prompt: '创建提示词',
|
|
update_prompt: '更新提示词',
|
|
archive_prompt: '归档提示词',
|
|
desktop_audit: '桌面端审计',
|
|
}
|
|
|
|
export const actionColors: Record<string, string> = {
|
|
login: 'green',
|
|
logout: 'default',
|
|
create_account: 'blue',
|
|
update_account: 'orange',
|
|
delete_account: 'red',
|
|
create_provider: 'blue',
|
|
update_provider: 'orange',
|
|
delete_provider: 'red',
|
|
create_model: 'blue',
|
|
update_model: 'orange',
|
|
delete_model: 'red',
|
|
create_token: 'blue',
|
|
revoke_token: 'red',
|
|
update_config: 'orange',
|
|
create_prompt: 'blue',
|
|
update_prompt: 'orange',
|
|
archive_prompt: 'red',
|
|
desktop_audit: 'default',
|
|
}
|