feat: 新增动态侧边栏配置功能,优化主题色与侧边栏样式

新增SidebarEntry类型定义与侧边栏配置加载逻辑,支持从服务器拉取sidebar-config.json动态配置侧边栏入口
替换原分类侧边栏为可配置样式,新增CategoryBar分类选择组件,更新品牌色为苹果风格蓝色
重构侧边栏状态管理,拆分activeTab与选中分类逻辑,新增侧边栏入口计数统计
添加SIDEBAR_CONFIG.md文档说明配置格式与使用方法,更新测试用例与组件props
This commit is contained in:
2026-05-18 13:25:52 +08:00
parent f62665cd73
commit c877f0551e
11 changed files with 437 additions and 84 deletions
+1 -8
View File
@@ -51,13 +51,6 @@
</button>
</div>
</div>
<div
v-if="activeCategory !== 'home'"
class="text-sm text-slate-500 dark:text-slate-400"
id="currentCount"
>
<!-- {{ appsCount }} 个应用 -->
</div>
</div>
</template>
@@ -66,7 +59,7 @@ import { ref, watch } from "vue";
const props = defineProps<{
searchQuery: string;
activeCategory: string;
activeTab: string;
appsCount: number;
}>();
const emit = defineEmits<{