feat(ui): Tabs ohne 'Root'; Favoriten-Tab hinzugefügt und filtert lokale Sterne

This commit is contained in:
vibe-bot 2025-08-08 03:31:28 +02:00
parent 99588e446c
commit b9295a9050
2 changed files with 11 additions and 3 deletions

View file

@ -225,8 +225,7 @@ app.get('/api/sounds', (req: Request, res: Response) => {
const filteredItems = itemsByFolder.filter((s) => (q ? s.name.toLowerCase().includes(q) : true));
const total = allItems.length;
const rootCount = rootFiles.length;
const foldersOut = [{ key: '__all__', name: 'Alle', count: total }, { key: '', name: 'Root', count: rootCount }, ...folders];
const foldersOut = [{ key: '__all__', name: 'Alle', count: total }, ...folders];
res.json({ items: filteredItems, total, folders: foldersOut });
});