xuyue
8be96e178e
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-06 12:05:37 -06:00
xuyue
ec54fb430e
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-06 11:56:07 -06:00
xuyue
56b5dc2e36
dota2 like
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-06 11:50:45 -06:00
xuyue
39f9bb9d38
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-06 10:15:16 -06:00
xuyue
34aff29048
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-06 08:44:35 -06:00
xuyue
d7b57074d3
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-06 08:36:04 -06:00
xuyue
280e360506
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-06 08:25:53 -06:00
xuyue
5b8e0f866b
refactor(reaction): 收敛单选提交交互
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-06 07:53:06 -06:00
xuyue and Claude Opus 5
9f89be3876
feat(reaction): 评价改为先勾选再提交,提交后不可修改
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-06 06:15:34 -06:00
xuyue and Claude Opus 5
1fb93e6b16
refactor(reaction): 后台反馈统计独立成 reaction 目录,去掉排序、加最近评价时间
...
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-06 06:15:34 -06:00
xuyue and Claude Opus 5
b3d0c3fcc7
题目点评按钮改成大图标按钮
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
七个按钮放大到 48px 高、图标 28px,去掉按钮内的中文标签(移到 hover
tooltip 里),计数改成 ×N 形式。不再用 n-button,改成原生 button 自己写
样式。窄面板下从横向滚动改成换行,避免按钮被滚动条藏起来。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-06 05:55:29 -06:00
xuyue and Claude Opus 5
c4d55bb88e
fix(reaction): fix disabled-tooltip hover and post-AC dialog copy
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
- SubmitCode.vue: AC dialog title still told students to '打星
评分' after the reaction UI moved to emoji buttons. Rewritten to
match the emoji-based interaction, with no star/rating language.
- ProblemReaction.vue: n-tooltip's hover trigger merges its
mouseenter/mouseleave onto the single root element of the trigger
slot. That root was an n-button, and disabled form controls never
dispatch mouse events, so the two disabled-state tooltips ('完成本题后可以评价'
and the max-selection message) never appeared. Wrap each button in
a non-disabled <span> and make that the tooltip root so hover
events fire regardless of the button's disabled state.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-06 04:12:55 -06:00
xuyue and Claude Opus 5
c91c923fd6
refactor(reaction): 清理旧的评论代码
...
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-06 03:55:11 -06:00
xuyue and Claude Opus 5
9c6c6e1784
fix(reaction): dedupe sort request when not on page 1
...
handleSorter previously mutated query.page then called listStats()
synchronously, while a separate page/limit watcher also fired on the
page reset, producing two identical requests whenever sorting was
triggered from page 2+. ordering is now part of the watched sources
so page+ordering mutations from handleSorter batch into a single
watcher run.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-06 03:47:19 -06:00
xuyue and Claude Opus 5
a8cc7c855a
feat(reaction): 后台题目反馈统计页
...
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-06 03:42:25 -06:00
xuyue and Claude Opus 5
e153064d87
fix(reaction): guard toggle against out-of-order responses
...
用请求代号确保只有最新一次点击的响应会写回本地状态,乐观更新的
回滚路径同样受保护,避免旧请求晚到覆盖新状态。不引入防抖、不禁用按钮。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-06 03:38:24 -06:00
xuyue and Claude Opus 5
0af91b1e20
feat(reaction): 学生端表情条组件
...
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-06 03:27:45 -06:00
xuyue and Claude Opus 5
d16e3dddb8
feat(reaction): 前端表情常量、类型与 API
...
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-06 03:19:39 -06:00
xuyue and Claude Opus 5
8a46bae27d
feat(admin): 班级号位数校验,规则收敛到 constants
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
后端现在会拒绝位数不对的班级号,前端提前拦一道并给出明确提示。
- generate.vue 导入前校验班级号范围
- config.vue 校验班级列表每一项,输入框下方补说明
- 位数规则收敛到 utils/constants 的 CLASS_NAME_* 常量,
三个使用方都改为引用
顺带两处修正:
- config.vue 和 list.vue 的保存都没有 try/catch。http 拦截器只对
login-required / permission-denied 自动弹提示,其余业务错误不接住
就什么都不显示,连"用户名已存在"这类老错误也是静默的
- ButtonWithSearch 原来用 startsWith("ks") 决定显不显示按班级筛选,
kstest 这类账号会显示按钮但点了没反应;改用同一个正则判断
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-06 00:15:52 -06:00
xuyue and Claude Opus 5
0e2cc28235
refactor(signup): 去掉注册验证码
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
后端已移除验证码功能。
- Signup.vue 删表单项、验证码图、getCaptchaSrc、打开弹窗拉图的 watch、
"Invalid captcha" 错误分支和 .captcha 样式
- authModal store 删 signupForm.captcha、captchaSrc、setCaptchaSrc
- api.ts 删 getCaptcha(),signup() 参数去掉 captcha
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-05 23:48:13 -06:00
xuyue and Claude Opus 5
e777a94568
refactor(admin): 去掉 two_factor_auth 残留
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
后端已删除该 model 字段,2FA 功能整体移除。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-05 23:00:48 -06:00
xuyue
56f1431a10
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 14:01:14 -06:00
xuyue
7b2a4a9094
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 13:59:31 -06:00
xuyue
b559c93476
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 13:57:31 -06:00
xuyue
42de79ee60
revert(achievement): 去掉进度条动画
...
保留奖章的题单来源,只回退 0 → 真值那套触发动画的处理和拉长的过渡时长,
圆环和进度条回到直接显示终值。
2026-08-05 13:56:13 -06:00
xuyue
8cfa90ca16
feat(achievement): 奖章标出来自哪个题单 + 进度条动画
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
奖章卡片只有名字和描述,看不出是哪个题单发的,补上题单名并链到详情页。
进度是异步加载的,卡片挂载时百分比已是终值,naive 自带的过渡触发不了,
先按 0 渲染一帧再填真值,同时把时长从 .3s/.2s 拉到 .9s,
圆环数字换成 n-number-animation 同步滚动。
2026-08-05 13:52:58 -06:00
xuyue
4b796650ff
fix(achievement): 拉开青铜和黄金的配色
...
青铜和黄金原来都落在橙棕区(色相 30 / 44),扫一眼分不出来。
青铜往红铜偏、黄金往纯黄推,边框色和明暗两套文字色一起调整,
对比度全部保持 4.5:1 以上。顺带修浅色模式白金只有 4.10:1。
2026-08-05 13:52:58 -06:00
xuyue
ade6034316
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 13:44:16 -06:00
xuyue
a1bea7182f
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 13:43:21 -06:00
xuyue
425bab1c15
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 13:38:52 -06:00
xuyue
17dbd7a4a7
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 13:34:46 -06:00
xuyue
8db26ef7a4
rewind
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 13:33:32 -06:00
xuyue and Claude Opus 5
508267bb59
fix(成就): 圆环百分比在移动端撑出 + 卡片边框加粗
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
- 圆环改用默认插槽渲染百分比,字号跟断点走(naive 自带指示器字号固定,76px 圆环放不下)
- 卡片边框 1px → 2px
- 置灰从整张卡挪到内容上,未获得的卡片不再把稀有度边框一起洗成灰
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-05 13:30:51 -06:00
xuyue
a4fdd377f2
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 13:23:45 -06:00
xuyue
da2334ed3a
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 13:15:01 -06:00
xuyue
a626160f29
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 13:13:07 -06:00
xuyue
bf028b3fb1
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 11:50:51 -06:00
xuyue and Claude Opus 5
b7f82adb7c
fix(achievement): 抬头四条稀有度进度固定单列
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
auto-fit 两列在宽屏会折成 2x2,进度条被压短看不出差别。
改成一列四行,和定稿一致。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-05 11:45:15 -06:00
xuyue and Claude Opus 5
05ce9cbb9e
revert(achievement): 抬头回到环形进度版,保留白金优先的排序
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
PSN 那版奖杯陈列观感不佳,回退到环形 + 四色进度条。稀有度顺序
沿用 PSN 的做法:白金、黄金、白银、青铜,稀有的排前面。
顺带保留卡片网格的 min() 修复,避免 320 宽机型横向滚动。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-05 11:40:55 -06:00
xuyue and Claude Opus 5
4072abe199
feat(achievement): 抬头改成 PlayStation 奖杯陈列
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
参照 PSN 的奖杯系统重做:六边形铭牌放完成度,四个奖杯按稀有度
倒序陈列(白金在最左),同一个杯型只换颜色,某档一个没有就置灰。
底部一条总进度分成四段,每段宽度是该档已获得占总数的比例,
拼起来正好等于总完成度——条的长度和构成都对得上数据。
移动端走全站的 useBreakpoints(tailwind md),竖排;顺手修了
卡片网格 minmax(300px) 在 320 宽机型上撑出横向滚动的问题。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-05 11:34:49 -06:00
xuyue and Claude Opus 5
0d7336bce8
refactor(achievement): 稀有度配色收进 constants,文字色适配浅色模式
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
四份重复的 RARITY_COLOR / RARITY_LABEL 合并到 utils/constants。
拆成两套:边框色块继续用饱和的原色,文字改走 useRarityColor,
按明暗主题切换,两套都压到 4.5:1 以上——原色是照深色底调的,
白底上白金只有 1.7:1、黄金 2.2:1,卡片上的稀有度 tag 看不清。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-05 11:24:04 -06:00
xuyue and Claude Opus 5
4db0dc7e83
fix(achievement): 抬头稀有度配色适配浅色模式
...
原色值是照深色底调的,白底上白金 1.7:1、黄金 2.2:1 看不清。
改成按 useDark 切换明暗两套色值。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-05 11:21:03 -06:00
xuyue and Claude Opus 5
56d06eb456
style(achievement): 成就页抬头改为环形进度 + 四色稀有度条
...
左侧环形显示总完成度,右侧四行稀有度各配一条对应颜色的进度条,
配色复用 AchievementCard 的 RARITY_COLOR。窄屏自动塌成一列。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-05 11:19:57 -06:00
xuyue and Claude Opus 5
b79dd6c721
feat(admin): 成就管理标题显示条数
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
有下架的成就时一并显示下架条数——列表里只有"上架:否"那一列能看出来,
扫一眼容易漏。数据未加载完时退回纯标题,避免闪一下"0 条"。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-05 11:13:48 -06:00
xuyue and Claude Opus 5
15d823aa20
refactor: 个人主页移除徽章卡片
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
徽章已在成就页的"题单奖章" tab 展示,主页重复且与旁边的成就摘要
风格不一致。连带删掉无引用的 GroupedUserBadge 组件。
成就图标那排补上"最近获得"标签,避免被误读成成就总数。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-05 10:27:42 -06:00
xuyue and Claude Opus 5
4ae25b09c0
perf: skulpt 改为按需加载,client-zip 换成 fflate
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
skulpt 此前被 SubmitCode.vue 静态引用,945K 的 chunk 落在做题页首屏,
学生打开任何一道题都要下 233KB gzip,只为提交时拿一个语法错误行号。
改成 import() 懒加载并在语言切到 Python3 时预取,加载失败放行提交、
交给后端判题兜底。构建产物确认该 chunk 只剩一处 import() 引用,
index.html 不再引用。
client-zip 的能力 fflate 已经覆盖(utils/functions.ts 本就在用 zlibSync),
新增 createZipBlob 统一两处测试用例打包,删掉该依赖。压缩方式由 store
变为 deflate,Python zipfile 透明解压,后端不受影响。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-05 09:11:58 -06:00
xuyue
ea691834b0
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 06:46:44 -06:00
xuyue
344e9734b6
feat: 标签管理页点击标签查看对应题目
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-05 06:11:46 -06:00
xuyue
7694db7d41
feat: 新增标签题目弹窗组件
2026-08-05 06:04:46 -06:00
xuyue and Claude Sonnet 5
a191bd78d4
feat(admin): 题目列表支持批量添加/移除标签
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-08-05 04:28:26 -06:00
xuyue and Claude Sonnet 5
842c4796c0
feat(admin): 标签管理页
...
支持搜索、重命名(撞名自动合并并提示影响题数)、删除(二次确认)。
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-08-05 04:25:36 -06:00
xuyue and Claude Sonnet 5
15aaec4384
feat(admin): 标签管理与批量打标签的 API 封装
...
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-08-05 04:23:17 -06:00
xuyue and Claude Sonnet 5
52ac8d205d
merge: 合并 github 远程分支(同一改动的不同提交历史)
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-08-05 00:07:08 -06:00
xuyue and Claude Sonnet 5
30ea5c8191
fix(header): 深浅色切换扩散动画改为从屏幕中心扩散
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-08-05 00:04:37 -06:00
xuyue and Claude Sonnet 5
58c67240b7
Merge branch 'fix/learn-exercise-highlight-dedup'
...
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-08-04 21:25:35 -06:00
xuyue and Claude Sonnet 5
b4b96b0da3
fix(learn): 修复填空题代码高亮丢失,去重高亮与洗牌逻辑
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
- ExerciseFill.vue 之前未导入 exercise-highlight.css,若某课只含
fill 类型练习(不加载 ExerciseSort),高亮代码会渲染成无色纯文本
- ExerciseFill/ExerciseSort 改为复用 useCodeHighlight 的
highlight()/highlightLines(),删除各自重复的 hljs 注册与
escapeHtml 实现
- 新增 useShuffle.ts,供 ExerciseSort/ExerciseMatch/ExerciseGroup
共用洗牌逻辑,替代三处几乎逐字相同的实现
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-08-04 21:25:21 -06:00
xuyue
4ed8014c30
merge: 自学模块支持 C 语言教程
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
- 路由改为 /learn/:type/:step,按语言分流
- 导航栏自学变二级菜单,按语言记住上次学到的课
- 示例代码编辑器语言跟随教程类型
2026-08-04 21:14:28 -06:00
xuyue and Claude Opus 5
40bd331a1c
feat(learn): 导航栏自学二级菜单,按语言记住学习进度
...
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-04 21:08:06 -06:00
xuyue
4ec6b1d738
feat(learn): 自学模块按语言分路由,支持 C 语言教程
2026-08-04 21:02:27 -06:00
xuyue
c88753ba78
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-08-04 19:27:26 -06:00
xuyue and Claude Opus 5
0932a05850
feat(achievement): 成就图标改用 iconify 渲染
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
机房的老浏览器缺 emoji 字体,成就图标会渲染成方块。后端的 icon 字段
改存 iconify 图标名(noto 集),前端统一走新的 AchievementIcon 组件
渲染成 SVG。
组件按三种形态判断:图片 URL 走 img,含冒号走 Icon,其余当纯文本兜底,
所以存量的 emoji 数据不会瞎掉。
顺带修好解锁弹窗:题单奖章的 icon 是图片 URL,之前当文本渲染,会把
一串路径直接显示出来。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-04 19:20:10 -06:00
xuyue and Claude Opus 5
0ba25dc4e3
merge: 修复弹窗队列的 id 空间冲突
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-04 07:23:42 -06:00
xuyue and Claude Opus 5
7e498a1c1c
fix(achievement): 弹窗队列区分成就与题单奖章的 id 空间
...
两者的 id 来自不同的表、数值会重叠,却共用同一个队列:
- 去重只按 id,队列里有奖章 5 时成就 5 会被当成重复项丢掉
- 弹完奖章后调 markAchievementsRead(奖章id),后端按成就 id 解释,
把同号且未弹过的成就静默标记为已弹,那个奖杯再也不会出现
载荷里本来就有 kind 字段,前端此前完全忽略。现在去重按 kind:id,
标记已读跳过奖章,弹窗标题也按类型区分。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-04 07:22:42 -06:00
xuyue and Claude Opus 5
700559557d
merge: 成就系统前端剩余部分
...
个人主页与排行榜的成就入口、管理后台成就配置页。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-04 06:59:55 -06:00
xuyue and Claude Opus 5
a9278589c9
feat(achievement): 添加管理后台成就配置页
...
指标下拉框由后端 METRIC_REGISTRY 动态提供,选中后显示该指标的说明。
列表显示已解锁人数——阈值配错时学生永远拿不到也永远不会来问,
这个计数器是唯一的仪表盘。
API 追加到 src/admin/api.ts(仓库的 admin 接口集中在这一个文件里),
路由 meta 用 requiresSuperAdmin 以匹配后端的 super_admin_required。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-04 06:59:27 -06:00
xuyue and Claude Opus 5
d31bfd8b8f
feat(achievement): 个人主页与排行榜添加成就入口
...
个人主页显示完成度与最近获得的成就,可跳转奖杯馆;
全服 Top100 和班级排名每行加一个跳转按钮。
成就摘要单独请求,不并进 init 里那个按位置取值的 promises 数组,
且失败时静默降级——它不该拖垮整个个人主页。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-04 06:57:07 -06:00
xuyue and Claude Opus 5
64a770ff62
merge: 成就系统前端
...
奖杯馆页面、成就 API 层与类型、全局解锁弹窗与待弹拉取、
WebSocket 消息分流修复。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-04 06:51:43 -06:00
xuyue and Claude Opus 5
d7d80e1c1b
feat(achievement): 添加全局解锁弹窗与待弹拉取
...
推拉结合:布局层每次路由切换拉一次 pending 作为主通道,
WebSocket 只作为在线时的即时增强。纯靠推会丢消息——
前端 WebSocket 只在问题页且有提交监听时才建连。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-04 06:46:28 -06:00
xuyue and Claude Opus 5
fe7095bd74
fix(achievement): 奖杯馆取 ApiResponse.data 而非整个响应对象
...
http 客户端返回 ApiResponse<T>,载荷在 .data 里。
原写法会让页面拿到 undefined,奖杯馆整片空白。
项目没有类型检查步骤,Vite 只转译不校验,构建不会报这个错。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-04 06:46:20 -06:00
xuyue and Claude Opus 5
d81e00ee14
feat(achievement): 添加奖杯馆页面
...
三种视觉状态:已解锁显示日期与获得率;未解锁公开成就显示进度条;
未解锁隐藏成就只显示稀有度,不画进度条(会泄露后端刻意遮掉的门槛)。
lte 类成就(如最短代码 ≤ 50 字符)不画百分比条,改为显示当前最好成绩。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-04 06:42:38 -06:00
xuyue
71186f0ca5
feat(achievement): 添加成就 API 层与类型,修复 WebSocket 消息分流
2026-08-04 05:24:13 -06:00
xuyue
8d06fafbae
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-26 08:52:14 -06:00
xuyue
dc853cd61f
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-26 08:44:46 -06:00
xuyue
ccbb961d64
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-26 08:36:49 -06:00
xuyue
f928e79c1f
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-26 08:11:51 -06:00
xuyue and Claude Opus 5
8db3b15df1
Merge branch 'feat/demo-student-view'
...
学生视角(演示模式):超管在用户下拉菜单一键把界面伪装成普通学生。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-07-26 07:51:52 -06:00
xuyue and Claude Opus 5
6766c4dcd5
style(header): 演示模式菜单文案改为「进入演示 / 退出演示」
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
两端都是四字,动作对称。spec 与 plan 文档同步更新。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-07-26 07:51:11 -06:00
xuyue and Claude Opus 5
bd6c5d19f8
style(header): 演示模式退出文案改为四字
...
「退出学生视角」六字,与「学生视角」不齐。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-07-26 07:49:22 -06:00
xuyue and Claude Opus 5
8a343edbbb
feat(header): 用户下拉菜单加入学生视角开关
...
仅超管可见。进入演示模式时若停在后台页面则跳回首页。
options 改为 computed,否则菜单文案与显示条件不会随状态更新。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-07-26 07:48:22 -06:00
xuyue and Claude Opus 5
07bbbce013
feat(user): store 层加入演示模式伪装开关
...
超管开启后所有角色 getter 降级为普通学生,全站权限判断自动跟随。
realIsSuperAdmin 保留真实身份,用于判断能否切换。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-07-26 07:47:27 -06:00
xuyue and Claude Opus 5
5fac75238d
docs: 学生视角(演示模式)实施计划
...
两个任务:store 层伪装开关、Header 下拉菜单入口。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-07-26 07:46:23 -06:00
xuyue and Claude Opus 5
3509f340ff
docs: 学生视角(演示模式)设计
...
超管一键把界面切换成普通学生的样子,方便上课演示。
纯前端伪装,在 userStore 层包装角色 getter,全站权限判断自动跟随。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-07-26 07:43:57 -06:00
xuyue
297f674bac
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-26 07:20:13 -06:00
xuyue
e99f9d5458
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-26 06:51:46 -06:00
xuyue
63b02ec221
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-24 07:19:05 -06:00
xuyue
3aa82bb200
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-24 07:16:09 -06:00
xuyue
4031e2bd3c
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-24 07:12:43 -06:00
xuyue
4e5b2fdb3e
fix
2026-07-24 06:46:59 -06:00
xuyue
be1b9a97a0
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-05 03:12:36 -06:00
xuyue and Claude Fable 5
02c523b32f
docs: SQL 题强制至少 2 个测试点设计文档
...
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-07-05 03:11:53 -06:00
xuyue and Claude Fable 5
f6d4d9bcb2
docs: SQL 题目表名/字段名自动补全设计文档
...
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-07-05 03:05:32 -06:00
xuyue
527127d9c7
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-05 01:33:30 -06:00
xuyue and Claude Opus 4.8
e7a621075c
移除 OI 残留:前端 Profile / Rank 去掉 oi_problems_status / total_score
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
配合后端删除 UserProfile 的 OI 字段:
- Profile、Rank 类型移除 oi_problems_status、total_score
- 用户主页 AC 列表只用 acm_problems_status,去掉 oi 合并
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-04 11:43:11 -06:00
xuyue and Claude Opus 4.8
081981d115
精简 Problem 模型:前端移除 rule_type / io_mode / total_score
...
配合后端删除这三列:
- Problem 类型与 admin 出题页去掉 rule_type、io_mode 字段
- 出题提交 payload 不再携带这些字段
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-04 11:42:21 -06:00
xuyue
ff5daf8afe
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-04 11:06:41 -06:00
xuyue and Claude Fable 5
bda28b8400
feat: SQL 题接入测试点在线编辑器
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-07-04 03:57:55 -06:00
xuyue and Claude Fable 5
740f956fe3
feat: SQL 测试点在线编辑器组件与 API
...
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-07-04 03:50:43 -06:00
xuyue
ebe2ab762f
fix
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-03 10:27:58 -06:00
xuyue
9144dbb4fc
update
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
2026-07-03 10:15:33 -06:00
xuyue and Claude Fable 5
10dcb29704
feat: SQL 提交前自动格式化
...
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled
格式化白名单加入 sql,后端用 sqlparse 处理
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-07-03 10:05:39 -06:00