feat(admin): 实现只读词库管理后台

- 新增 Spring Boot 3 后端:JWT 认证、六个业务模块查询接口、Caffeine 聚合缓存与只读事务约束
- 新增 Vue 3 管理前端:登录、概览、词书、词条、词根词族、近反义词与数据质量
- 补充前后端 README、环境变量示例与本地构建部署说明
- 同步 OpenSpec 变更文档与任务进度(64/65,只读数据库账号待确认)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
voidandClaude Sonnet 4.6 committed 2026-11-08 22:55:15 +08:00
1 parent 131c2b6353
commit 4e68ba3890
137 files changed
+15423 -10

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
const COVER_BASE = import.meta.env.VITE_COVER_BASE_URL || 'https://static.beingfine.cn'
export const PLACEHOLDER_COVER =
'data:image/svg+xml;utf8,' +
encodeURIComponent(
'<svg xmlns="http://www.w3.org/2000/svg" width="60" height="80"><rect width="60" height="80" fill="#e5e7eb"/><text x="30" y="44" font-size="10" fill="#9ca3af" text-anchor="middle">N/A</text></svg>'
)
export function coverUrl(path: string | null): string {
return path ? `${COVER_BASE}${path}` : PLACEHOLDER_COVER
}
export function onCoverError(event: Event): void {
const img = event.target as HTMLImageElement
if (img.src !== PLACEHOLDER_COVER) img.src = PLACEHOLDER_COVER
}
+9
View File
@@ -0,0 +1,9 @@
export const TOKEN_KEY = 'word-market-token'
export const USER_KEY = 'word-market-user'
export const EXPIRES_KEY = 'word-market-expires'
export function clearAuthStorage(): void {
localStorage.removeItem(TOKEN_KEY)
localStorage.removeItem(USER_KEY)
localStorage.removeItem(EXPIRES_KEY)
}
+4
View File
@@ -0,0 +1,4 @@
export function plainText(value: string | null | undefined): string {
if (!value) return ''
return value.replace(/<[^>]*>/g, '')
}