mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-04-05 20:48:31 +03:00
feat: add importedAt-based repository sorting (#226)
* repositories: add importedAt sorting * repositories: use tanstack table for repo list
This commit is contained in:
@@ -90,6 +90,7 @@ export const POST: APIRoute = async ({ request, locals }) => {
|
||||
status: repo.status,
|
||||
lastMirrored: repo.lastMirrored ?? null,
|
||||
errorMessage: repo.errorMessage ?? null,
|
||||
importedAt: repo.importedAt,
|
||||
createdAt: repo.createdAt,
|
||||
updatedAt: repo.updatedAt,
|
||||
}));
|
||||
|
||||
@@ -187,6 +187,7 @@ export const POST: APIRoute = async ({ request, locals }) => {
|
||||
status: "imported" as RepoStatus,
|
||||
lastMirrored: null,
|
||||
errorMessage: null,
|
||||
importedAt: new Date(),
|
||||
createdAt: repo.created_at ? new Date(repo.created_at) : new Date(),
|
||||
updatedAt: repo.updated_at ? new Date(repo.updated_at) : new Date(),
|
||||
};
|
||||
|
||||
@@ -155,6 +155,7 @@ export const POST: APIRoute = async ({ request, locals }) => {
|
||||
errorMessage: null,
|
||||
mirroredLocation: "",
|
||||
destinationOrg: null,
|
||||
importedAt: new Date(),
|
||||
createdAt: repoData.created_at
|
||||
? new Date(repoData.created_at)
|
||||
: new Date(),
|
||||
|
||||
Reference in New Issue
Block a user