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
@@ -63,13 +63,13 @@ import { Game, GameStatus, CreateGameDto, UpdateGameDto, Comment } from '@librar
</div>
<div class="form-group">
<label for="rating">Rating (0-10)</label>
<label for="rating">Rating (1-10)</label>
<input
type="number"
id="rating"
[(ngModel)]="newGame.rating"
name="rating"
min="0"
min="1"
max="10"
>
</div>
@@ -148,13 +148,13 @@ import { Game, GameStatus, CreateGameDto, UpdateGameDto, Comment } from '@librar
</div>
<div class="form-group">
<label for="edit-rating">Rating (0-10)</label>
<label for="edit-rating">Rating (1-10)</label>
<input
type="number"
id="edit-rating"
[(ngModel)]="editGame.rating"
name="rating"
min="0"
min="1"
max="10"
>
</div>
@@ -253,7 +253,9 @@ import { Game, GameStatus, CreateGameDto, UpdateGameDto, Comment } from '@librar
@if (game.rating) {
<div class="rating">
⭐ {{ game.rating }}/10
@for (star of [1,2,3,4,5,6,7,8,9,10]; track star) {
<span [class.filled]="star <= game.rating!">★</span>
}
</div>
}
@@ -467,7 +469,15 @@ import { Game, GameStatus, CreateGameDto, UpdateGameDto, Comment } from '@librar
.rating {
margin: 0.5rem 0;
font-weight: 500;
}
.rating span {
color: #e5e7eb;
font-size: 1rem;
}
.rating span.filled {
color: #f59e0b;
}
.notes {