mirror of
https://github.com/tiennm99/ghglance.git
synced 2026-10-14 12:16:41 +00:00
Files now land at output/<theme>/profile-details.svg etc., without leading 0-8 prefixes. README authors embed cards by name, so the lexicographic-sort rationale for the prefix no longer applies. - All Filename() methods + the allCards ordering comment updated. - Tests updated to expect the 9 unnumbered filenames. - README, deployment-guide, codebase-summary, roadmap references refreshed. - Dracula sample SVGs regenerated under new names.
17 lines
458 B
Go
17 lines
458 B
Go
package card
|
|
|
|
import (
|
|
"github.com/tiennm99/ghstats/internal/github"
|
|
"github.com/tiennm99/ghstats/internal/theme"
|
|
)
|
|
|
|
type mostCommitLanguageAllTimeCard struct{}
|
|
|
|
func (mostCommitLanguageAllTimeCard) Filename() string {
|
|
return "most-commit-language-all-time.svg"
|
|
}
|
|
|
|
func (mostCommitLanguageAllTimeCard) SVG(p *github.Profile, t theme.Theme) ([]byte, error) {
|
|
return renderDonutCard("Most Commit Language (all time)", p.CommitsByLanguageAllTime, t), nil
|
|
}
|