feat(ui): New sidebar & search UI (#831)

This commit is contained in:
Alex
2026-05-04 09:46:48 +01:00
committed by GitHub
parent c9b2a5734e
commit f3138a88c5
182 changed files with 8318 additions and 4660 deletions
@@ -116,6 +116,16 @@ export class MagicShelfService {
).length;
}
readonly bookCountByMagicShelfId = computed(() => {
const counts = new Map<number, number>();
for (const shelf of this.shelves()) {
if (shelf.id != null) {
counts.set(shelf.id, this.getBookCountValue(shelf.id));
}
}
return counts;
});
deleteShelf(id: number): Observable<void> {
return this.http.delete<void>(`${this.url}/${id}`).pipe(
tap(() => {