Initial implementation of Gitea Wrapped TUI

- Gitea API client with repository and commit fetching
- Interactive credential input screen with masked token input
- Statistics analyzer for commits, languages, and activity patterns
- Multi-page report screen with ASCII charts and visualizations
- Integration of all components in main app coordinator
- Comprehensive README with usage instructions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-05-01 09:43:09 -06:00
commit fec14022cd
12 changed files with 1152 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
package models
import "time"
type Repository struct {
ID int64
Name string
FullName string
HTMLURL string
Language string
Topics []string
}
type Commit struct {
SHA string
Message string
Author string
Timestamp time.Time
RepoName string
}
type LanguageStats struct {
Language string
Count int
Percent float64
}
type DateStats struct {
Date time.Time
Count int
Day string
}
type TagStats struct {
Tag string
Count int
}
type UserStats struct {
Username string
TotalCommits int
TotalRepositories int
Languages []LanguageStats
Tags []TagStats
CommitsByWeekday []DateStats
CommitsByMonth []DateStats
TopRepositories []Repository
MostActiveMonth string
MostActiveDay string
AverageCommitsPerDay float64
}