-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add table pagination support to time attack page (#1063)
With this the page is complete.
- Loading branch information
1 parent
2f337dd
commit 0f7b393
Showing
19 changed files
with
14,886 additions
and
74 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
19 changes: 15 additions & 4 deletions
19
DragaliaAPI/DragaliaAPI/Features/Web/OffsetPagedResponse.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,13 +1,24 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace DragaliaAPI.Features.Web; | ||
|
||
public class OffsetPagedResponse<TData> | ||
internal sealed class OffsetPagedResponse<TData> | ||
{ | ||
public required OffsetPagingMetadata Pagination { get; set; } | ||
public OffsetPagedResponse() { } | ||
|
||
[SetsRequiredMembers] | ||
public OffsetPagedResponse(int totalCount, IList<TData> data) | ||
{ | ||
this.Pagination = new() { TotalCount = totalCount }; | ||
this.Data = data; | ||
} | ||
|
||
public required OffsetPagingMetadata Pagination { get; init; } | ||
|
||
public required IList<TData> Data { get; set; } | ||
public required IList<TData> Data { get; init; } | ||
} | ||
|
||
public class OffsetPagingMetadata | ||
internal sealed class OffsetPagingMetadata | ||
{ | ||
public required int TotalCount { get; init; } | ||
} |
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,5 +1,4 @@ | ||
PUBLIC_ENABLE_MSW=true # Enables Mock Service Worker for API calls and decreases cookie security. | ||
PUBLIC_VERSION=development | ||
PUBLIC_ENABLE_TIME_ATTACK=true | ||
|
||
DAWNSHARD_API_URL_SSR=http://localhost:5000/ |
Oops, something went wrong.