mirror of
https://github.com/tiennm99/ghstats.git
synced 2026-08-01 02:21:04 +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.
15 lines
421 B
Go
15 lines
421 B
Go
package card
|
|
|
|
import (
|
|
"github.com/tiennm99/ghstats/internal/github"
|
|
"github.com/tiennm99/ghstats/internal/theme"
|
|
)
|
|
|
|
type mostCommitLanguageCard struct{}
|
|
|
|
func (mostCommitLanguageCard) Filename() string { return "most-commit-language.svg" }
|
|
|
|
func (mostCommitLanguageCard) SVG(p *github.Profile, t theme.Theme) ([]byte, error) {
|
|
return renderDonutCard("Most Commit Language (last year)", p.CommitsByLanguage, t), nil
|
|
}
|