-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27d9391
commit 1e4c775
Showing
29 changed files
with
106 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 42 additions & 18 deletions
60
application/angular/src/app/boardgame/boardgame-list/boardgame-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,42 @@ | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>ID</th> | ||
<th>Name</th> | ||
<th>Release Year</th> | ||
<th>Categories</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr *ngFor="let game of boardGames"> | ||
<td>{{ game.id }}</td> | ||
<td>{{ game.name }}</td> | ||
<td>{{ game.releaseYear }}</td> | ||
<td>{{ game.categories.join(", ") }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<mat-table [dataSource]="boardGames"> | ||
<!-- ID Column --> | ||
<ng-container matColumnDef="id"> | ||
<mat-header-cell *matHeaderCellDef>ID</mat-header-cell> | ||
<mat-cell *matCellDef="let game">{{ game.id }}</mat-cell> | ||
</ng-container> | ||
|
||
<!-- Image Column --> | ||
<ng-container matColumnDef="image"> | ||
<mat-header-cell *matHeaderCellDef>Image</mat-header-cell> | ||
<mat-cell *matCellDef="let game"> | ||
<img [src]="'assets/images/' + game.id + '.png'" alt="{{ game.name }}" /> | ||
</mat-cell> | ||
</ng-container> | ||
|
||
<!-- Name Column --> | ||
<ng-container matColumnDef="name"> | ||
<mat-header-cell *matHeaderCellDef>Name</mat-header-cell> | ||
<mat-cell *matCellDef="let game">{{ game.name }}</mat-cell> | ||
</ng-container> | ||
|
||
<!-- Release Year Column --> | ||
<ng-container matColumnDef="releaseYear"> | ||
<mat-header-cell *matHeaderCellDef>Release Year</mat-header-cell> | ||
<mat-cell *matCellDef="let game">{{ game.releaseYear }}</mat-cell> | ||
</ng-container> | ||
|
||
<!-- Categories Column --> | ||
<ng-container matColumnDef="categories"> | ||
<mat-header-cell *matHeaderCellDef>Categories</mat-header-cell> | ||
<mat-cell *matCellDef="let game"> | ||
<mat-chip-set> | ||
<mat-chip *ngFor="let category of game.categories">{{ | ||
category | ||
}}</mat-chip> | ||
</mat-chip-set> | ||
</mat-cell> | ||
</ng-container> | ||
|
||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row> | ||
<mat-row *matRowDef="let row; columns: displayedColumns"></mat-row> | ||
</mat-table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
application/angular/src/app/boardgame/boardgame-list/boardgame-list.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.mat-mdc-chip-set { | ||
display: flex; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.mat-mdc-chip { | ||
margin: 2px; | ||
} | ||
|
||
.mat-column-categories { | ||
flex: 0 0 250px; /* Adjust this value based on your needs */ | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters