1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-11-13 22:11:42 +08:00

refactor: 重构项目页面与组件,优化整体结构与体验

1.  重构分类页面路由与实现,替换旧分类详情页为文章列表页
2.  统一使用自定义导航栏,替换原有原生导航配置
3.  重构加载状态管理,统一使用useDataLoadingStatus hook
4.  优化插件可用性检查逻辑与组件展示
5.  调整数据加载占位与空状态样式
6.  优化文章卡片样式与交互,新增分类跳转功能
7.  重构设置页枚举选择弹窗,使用wd-picker替换自定义实现
8.  删除废弃的IPluginAvailable类型与相关代码
This commit is contained in:
小莫唐尼
2026-09-04 20:31:46 +08:00
parent 56ce29e69e
commit 02fa9e4294
27 changed files with 727 additions and 630 deletions
+1 -2
View File
@@ -24,7 +24,6 @@ import type {
IPhotoGroupListRes,
IPhotoListReq,
IPhotoListRes,
IPluginAvailable,
IPost,
IPostListReq,
IPostListRes,
@@ -293,7 +292,7 @@ export function postTrackersCounter(data: ITrackerCounterReq) {
* 检查插件是否可用
*/
export function checkPluginAvailable(name: string) {
return http.Get<IResponse<IPluginAvailable>>(`/apis/api.plugin.halo.run/v1alpha1/plugins/${name}/available`, {
return http.Get<IResponse<boolean>>(`/apis/api.plugin.halo.run/v1alpha1/plugins/${name}/available`, {
cacheFor: 0,
meta: { requestFrom: RequestFrom.Halo },
})
-7
View File
@@ -456,10 +456,3 @@ export interface IUpvoteReq {
name: string
plural?: string
}
/* ---------- 插件可用性 ---------- */
export interface IPluginAvailable {
available: boolean
reason?: string
}