Skip to content

fix(article): 更新专栏 API 端点、适配子模块类型并移除 promotion#177

Open
Enigma-Soul wants to merge 1 commit into
yltx:masterfrom
Enigma-Soul:fix/article-endpoints
Open

fix(article): 更新专栏 API 端点、适配子模块类型并移除 promotion#177
Enigma-Soul wants to merge 1 commit into
yltx:masterfrom
Enigma-Soul:fix/article-endpoints

Conversation

@Enigma-Soul

Copy link
Copy Markdown
Contributor

背景

整改自 #176(按维护者反馈拆分)。本 PR 仅含专栏 API 相关的功能修复与类型适配,剥离格式化与版本发布。

改动

  • 文章端点(create/edit/delete/vote)迁移至当前洛谷 API
  • 移除未实现的申请/撤回全站推荐功能:删除 handler、API wrapper 及 package.json 的 command/menu/commandPalette 声明,保持贡献点与代码一致(替代 fix: 更新专栏 API 端点 #176 中保留注释死代码的方案)
  • 适配 luogu-api-docs 子模块类型变更:contest(ruleTypemethodvisibilityTypevisibilityrated 布尔化)、Article(content/top 可选)、ProblemSet(titlename)、contestProblems 结构

说明

  • promotion 相关代码与声明已彻底清除(grep 验证为空)
  • 保留 promoteStatus 数据字段的业务守卫(setCategory/setShowMode/fsProvider/treeview)
  • 格式化改动与版本发布已拆分到独立的 style PR

Test plan

  • npm run typecheck(0 错误)
  • npm run test(52/52)
  • promotion 声明与代码一致(package.json 三处已删,JSON 合法)

- 文章端点(create/edit/delete/vote)迁移至当前洛谷 API
- 移除未实现的申请/撤回全站推荐功能:删除 handler、API wrapper 及 package.json 的 command/menu/commandPalette 声明,保持贡献点与代码一致
- 适配 luogu-api-docs 子模块类型变更:contest(method/visibility)、Article(content/top 可选)、ProblemSet(name)、contestProblems 结构

typecheck 0 错误,test 52/52 通过。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant