fix(navbar): eliminate hardcoded names and make navbar and categories 100% dynamic JSON-driven

This commit is contained in:
2026-11-11 11:20:04 +05:30
parent 4afbf80709
commit 1e675d56fa
6 changed files with 94 additions and 79 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ export function getAppById(id: string): AppItem | null {
}
export function getAllCategories(): CategoryItem[] {
if (categoriesCache.size > 0) return Array.from(categoriesCache.values());
categoriesCache.clear();
const dir = path.join(CONTENT_DIR, 'collections', 'categories');
if (fs.existsSync(dir)) {