mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-09-20 21:50:11 +08:00
fix: 排序魔法数字提取常量 + sidebar-config 远程校验类型守卫
- InstalledAppsModal 提取 ORIGIN_PRIORITY 具名常量与 originPriority(), 消除排序比较函数中的 0/1 魔法数字(保留 hasOrigin 双来源语义) - useCatalog.loadSidebarConfig 新增 isValidSidebarEntry 类型守卫,对远程 sidebar-config.json 入口做字段类型/长度/type 白名单校验,防止畸形数据进入 渲染层(type 白名单与 typedefinition.ts 的 SidebarEntry.type 严格一致) - debian/changelog 测试版本号 5.2.1.1-test - 验证:vue-tsc 0 / eslint 0 / dpkg-buildpackage 打包成功 审查项实证: - 改进③(filteredApps 多次 filter) 误报:当前已为单 filter 遍历(.24 已改), 审查贴旧片段且退化 a.origin 会破坏双来源,不改 - 改进①/② 为真改进,已采纳并保真实现
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
spark-store (5.2.1.0) UNRELEASED; urgency=medium
|
||||
spark-store (5.2.1.1-test) UNRELEASED; urgency=medium
|
||||
|
||||
* Initial release. (Closes: #nnnn) <nnnn is the bug number of your ITP>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user