All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 13s
- labels.ts: add 15 new label maps (review, import, admin, kb, etc.) - ReviewAdmin: status/scheduleState/difficulty + filter dropdown - KnowledgeBases: status - KnowledgeOps: userId + status - BackupAdmin: status (both backup & cleanup) - Secrets: status - ReleaseAdmin: status - HermesSettings: agent task + artifact status Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
157 lines
3.8 KiB
TypeScript
157 lines
3.8 KiB
TypeScript
// ── Admin learning data display labels ──
|
|
|
|
export const eventTypeLabels: Record<string, string> = {
|
|
material_opened: '打开资料',
|
|
material_closed: '关闭资料',
|
|
position_changed: '位置变化',
|
|
heartbeat: '心跳',
|
|
marked_as_read: '标记已读',
|
|
};
|
|
|
|
export const eventStatusLabels: Record<string, string> = {
|
|
processed: '已处理',
|
|
failed: '失败',
|
|
duplicate: '重复',
|
|
pending: '待处理',
|
|
warning: '警告',
|
|
};
|
|
|
|
export const sessionStatusLabels: Record<string, string> = {
|
|
active: '活跃',
|
|
interrupted: '中断',
|
|
completed: '已完成',
|
|
};
|
|
|
|
export const progressStatusLabels: Record<string, string> = {
|
|
reading: '阅读中',
|
|
completed: '已完成',
|
|
not_started: '未开始',
|
|
};
|
|
|
|
export const targetTypeLabels: Record<string, string> = {
|
|
knowledge_source: '知识资料',
|
|
temporary_file: '临时文件',
|
|
};
|
|
|
|
export const recordTypeLabels: Record<string, string> = {
|
|
reading: '阅读',
|
|
session: '会话',
|
|
};
|
|
|
|
export const sessionModeLabels: Record<string, string> = {
|
|
study: '学习',
|
|
review: '复习',
|
|
reading: '阅读',
|
|
quiz: '测验',
|
|
};
|
|
|
|
export const parseStatusLabels: Record<string, string> = {
|
|
pending: '待解析',
|
|
processing: '解析中',
|
|
completed: '已解析',
|
|
failed: '解析失败',
|
|
};
|
|
|
|
// ── Review ──
|
|
export const reviewStatusLabels: Record<string, string> = {
|
|
active: '活跃',
|
|
suspended: '暂停',
|
|
completed: '已完成',
|
|
};
|
|
export const scheduleStateLabels: Record<string, string> = {
|
|
learning: '学习中',
|
|
review: '复习中',
|
|
relearning: '重新学习',
|
|
};
|
|
export const difficultyLabels: Record<string, string> = {
|
|
easy: '简单',
|
|
medium: '中等',
|
|
hard: '困难',
|
|
};
|
|
|
|
// ── Import ──
|
|
export const importStatusLabels: Record<string, string> = {
|
|
QUEUED: '排队中',
|
|
CLAIMED: '已认领',
|
|
DOWNLOADING: '下载中',
|
|
PARSING: '解析中',
|
|
OCR_PROCESSING: 'OCR 处理中',
|
|
CLEANING: '清洗中',
|
|
CHUNKING: '分段中',
|
|
EMBEDDING: '向量化中',
|
|
INDEXING: '索引中',
|
|
GENERATING_CANDIDATES: '生成候选中',
|
|
completed: '已完成',
|
|
failed: '失败',
|
|
FAILED_FINAL: '永久失败',
|
|
};
|
|
export const importStepLabels: Record<string, string> = {
|
|
completed: '已完成',
|
|
failed: '失败',
|
|
DOWNLOADING: '下载中',
|
|
PARSING: '解析中',
|
|
CLEANING: '清洗中',
|
|
CHUNKING: '分段中',
|
|
};
|
|
|
|
// ── Admin / User ──
|
|
export const adminStatusLabels: Record<string, string> = {
|
|
ACTIVE: '正常',
|
|
DISABLED: '已禁用',
|
|
LOCKED: '已锁定',
|
|
};
|
|
export const userStatusLabels: Record<string, string> = {
|
|
active: '正常',
|
|
disabled: '已禁用',
|
|
deleted: '已注销',
|
|
};
|
|
|
|
// ── Knowledge ──
|
|
export const kbStatusLabels: Record<string, string> = { active: '正常' };
|
|
export const candidateStatusLabels: Record<string, string> = {
|
|
PENDING: '待审核',
|
|
ACCEPTED: '已通过',
|
|
REJECTED: '已拒绝',
|
|
};
|
|
|
|
// ── Hermes / Agent ──
|
|
export const agentTaskStatusLabels: Record<string, string> = {
|
|
pending: '待处理',
|
|
approved: '已批准',
|
|
rejected: '已拒绝',
|
|
};
|
|
export const artifactStatusLabels: Record<string, string> = {
|
|
draft: '草稿',
|
|
published: '已发布',
|
|
};
|
|
|
|
// ── Release ──
|
|
export const releaseStatusLabels: Record<string, string> = {
|
|
proposed: '提案中',
|
|
accepted: '已通过',
|
|
};
|
|
|
|
// ── Backup ──
|
|
export const backupStatusLabels: Record<string, string> = {
|
|
RUNNING: '运行中',
|
|
COMPLETED: '已完成',
|
|
FAILED: '失败',
|
|
};
|
|
|
|
// ── Secret ──
|
|
export const secretStatusLabels: Record<string, string> = {
|
|
active: '活跃',
|
|
expired: '已过期',
|
|
rotated: '已轮换',
|
|
revoked: '已撤销',
|
|
};
|
|
|
|
// ── Compliance ──
|
|
export const complianceStatusLabels: Record<string, string> = {
|
|
pending: '待处理',
|
|
approved: '已批准',
|
|
rejected: '已拒绝',
|
|
open: '待处理',
|
|
resolved: '已解决',
|
|
};
|