-
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
Showing
18 changed files
with
242 additions
and
66 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
| ||
using API.Data.Dtos; | ||
using MediatR; | ||
using MediatR; | ||
|
||
namespace API.Handlers.BodyWeight.GetBodyWeight | ||
{ | ||
public class GetBodyWeightQuery : IRequest<GetBodyWeightResponse> | ||
{ | ||
public int? PageNumber { get; set; } | ||
public int? PageSize { get; set; } | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
API/Handlers/BodyWeight/GetBodyWeight/GetBodyWeightResponse.cs
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,10 +1,12 @@ | ||
using API.Data.Dtos; | ||
using API.Utilities; | ||
|
||
namespace API.Handlers.BodyWeight.GetBodyWeight | ||
{ | ||
public class GetBodyWeightResponse | ||
{ | ||
public bool GenderMale { get; set; } | ||
public BodyWeightDto BodyWeight { get; set; } | ||
public int? Height { get; set; } | ||
public PagedResult<BodyWeightRecordDto> BodyWeightRecords { get; set; } | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
<div class="row"> | ||
<div class="col-2" *ngFor="let user of users"> | ||
<app-user-card [user]="user"></app-user-card> | ||
<p class="text-center my-4 fs-5">Users from {{itemsFrom}} to {{itemsTo}} of {{totalCount}}</p> | ||
|
||
<div class="row justify-content-center align-items-center g-3"> | ||
<div class="col-10 col-sm-6 col-md-4 col-lg-3 col-xl-2" *ngFor="let user of users"> | ||
<app-user-card [user]="user" class="shadow-sm rounded mb-4"></app-user-card> | ||
</div> | ||
</div> | ||
|
||
<p class="text-center my-3 fs-5">Page {{currentPage}} of {{totalPages}}</p> | ||
|
||
<div class="d-flex justify-content-center align-items-center mt-3"> | ||
<button class="btn btn-secondary me-2" (click)="previousPage()" [disabled]="currentPage === 1">Previous</button> | ||
<input | ||
type="number" | ||
class="form-control text-center me-2" | ||
style="width: 80px;" | ||
[(ngModel)]="currentPage" | ||
(change)="goToPage(currentPage)" | ||
min="1" | ||
[max]="totalPages || 1" | ||
/> | ||
<button class="btn btn-secondary" (click)="nextPage()" [disabled]="currentPage === totalPages">Next</button> | ||
</div> |
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
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,6 +1,8 @@ | ||
import {BodyWeight} from "./BodyWeight"; | ||
import {BodyWeightRecord} from "./BodyWeightRecord"; | ||
import {PagedResult} from "../../_common/PagedResult"; | ||
|
||
export interface GetBodyWeightQueryResponse { | ||
bodyWeight: BodyWeight; | ||
bodyWeightRecords: PagedResult<BodyWeightRecord> | ||
height: number; | ||
genderMale: boolean; | ||
} |
Oops, something went wrong.