fix(article): 更新专栏 API 端点、适配子模块类型并移除 promotion#177
Open
Enigma-Soul wants to merge 1 commit into
Open
Conversation
- 文章端点(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>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
整改自 #176(按维护者反馈拆分)。本 PR 仅含专栏 API 相关的功能修复与类型适配,剥离格式化与版本发布。
改动
package.json的 command/menu/commandPalette 声明,保持贡献点与代码一致(替代 fix: 更新专栏 API 端点 #176 中保留注释死代码的方案)luogu-api-docs子模块类型变更:contest(ruleType→method、visibilityType→visibility、rated布尔化)、Article(content/top可选)、ProblemSet(title→name)、contestProblems 结构说明
promoteStatus数据字段的业务守卫(setCategory/setShowMode/fsProvider/treeview)Test plan
npm run typecheck(0 错误)npm run test(52/52)