feat: add manga and shows collections

This commit is contained in:
2026-02-04 15:41:23 -08:00
parent e5b15e02de
commit 11be34cd21
21 changed files with 2518 additions and 24 deletions
@@ -75,14 +75,14 @@ import { Book, BookStatus, CreateBookDto, UpdateBookDto, Comment } from '@librar
</div>
<div class="form-group">
<label for="rating">Rating (0-5)</label>
<label for="rating">Rating (1-10)</label>
<input
type="number"
id="rating"
[(ngModel)]="newBook.rating"
name="rating"
min="0"
max="5"
min="1"
max="10"
>
</div>
@@ -172,14 +172,14 @@ import { Book, BookStatus, CreateBookDto, UpdateBookDto, Comment } from '@librar
</div>
<div class="form-group">
<label for="edit-rating">Rating (0-5)</label>
<label for="edit-rating">Rating (1-10)</label>
<input
type="number"
id="edit-rating"
[(ngModel)]="editBook.rating"
name="rating"
min="0"
max="5"
min="1"
max="10"
>
</div>
@@ -278,8 +278,8 @@ import { Book, BookStatus, CreateBookDto, UpdateBookDto, Comment } from '@librar
@if (book.rating) {
<div class="rating">
@for (star of [1,2,3,4,5]; track star) {
<span [class.filled]="star <= book.rating">★</span>
@for (star of [1,2,3,4,5,6,7,8,9,10]; track star) {
<span [class.filled]="star <= book.rating!">★</span>
}
</div>
}