mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-08-10 22:34:10 +08:00
refactor(home): 重构首页与侧边栏,移除旧HomeList类型并支持首页列表侧边栏入口
1. 移除废弃的HomeList类型定义,新增homeList侧边栏类型 2. 重构AppGrid组件,添加showOrigin属性支持自定义显示来源标记 3. 简化HomeView组件,移除旧的列表展示逻辑与相关代码 4. 新增侧边栏首页列表入口加载与应用数据加载逻辑 5. 优化侧边栏计数与应用预加载逻辑,适配新的首页列表类型
This commit is contained in:
@@ -237,16 +237,11 @@ export interface HomeLink {
|
||||
[k: string]: unknown;
|
||||
}
|
||||
|
||||
export interface HomeList {
|
||||
title: string;
|
||||
apps: App[];
|
||||
}
|
||||
|
||||
export interface SidebarEntry {
|
||||
id: string;
|
||||
name: string;
|
||||
icon?: string;
|
||||
type?: "category" | "search" | "link";
|
||||
type?: "category" | "search" | "link" | "homeList";
|
||||
value?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user