implemented pagination, header polish, and new display fixes
This commit is contained in:
11
shared/types/pagination.ts
Normal file
11
shared/types/pagination.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export interface PagedData<T> {
|
||||
data: T[]
|
||||
pagination: pagination
|
||||
}
|
||||
|
||||
export interface pagination {
|
||||
page: number
|
||||
pageSize: number
|
||||
total: number
|
||||
totalPages: number
|
||||
}
|
||||
@@ -12,4 +12,4 @@ export function toDateTime(date: Date): string {
|
||||
const second = date.getSeconds().toString().padStart(2, "0");
|
||||
|
||||
return `${year}-${month}-${day} ${hour}:${minute}:${second}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user