Implement new landing page

This commit is contained in:
Georgios Jason Efstathiou
2024-02-01 17:29:40 +00:00
committed by Rūdolfs Ošiņš
parent 3a293a9862
commit b1411ae4a5
35 changed files with 1169 additions and 488 deletions
+7
View File
@@ -116,3 +116,10 @@ export async function loadProjectActivity(id: string, baseUrl: BaseUrl) {
return groupCommitsByWeek(commits.activity);
}
export async function fetchLastCommit(id: string, baseUrl: BaseUrl) {
const api = new HttpdClient(baseUrl);
const res = await api.project.getAllCommits(id, { perPage: 1 });
return res.commits[0];
}