First concept

This commit is contained in:
will
2026-04-02 19:13:46 +01:00
commit 1da5da43e1
9785 changed files with 2077949 additions and 0 deletions

38
lib/types.ts Normal file
View File

@@ -0,0 +1,38 @@
export interface GiteaRepo {
id: number;
name: string;
full_name: string;
description: string;
html_url: string;
language: string | null;
stars_count: number;
forks_count: number;
updated: string;
private: boolean;
fork: boolean;
}
export interface GiteaCommit {
sha: string;
html_url: string;
created: string;
commit: {
message: string;
author: { name: string; date: string };
};
author?: { login: string; avatar_url: string };
_repo?: string;
_repoUrl?: string;
}
export interface HeatmapEntry {
timestamp: number;
contributions: number;
}
export interface CommitStats {
total: number;
currentStreak: number;
longestStreak: number;
activeDays: number;
}