First concept
This commit is contained in:
38
lib/types.ts
Normal file
38
lib/types.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user