mirror of
https://github.com/ShayManor/github-readme-stats.git
synced 2026-12-02 11:53:48 +05:30
feat(api): add 'streaks' to allowed widgets and settings structure.
This commit is contained in:
@@ -18,6 +18,7 @@ export type Achievement = {
|
||||
export type PerWidgetSettings = {
|
||||
grade?: { max_tags?: number }
|
||||
impact?: { line_color?: string }
|
||||
streaks?: { show_dates?: boolean }
|
||||
collaborators?: { max_count?: number; bar_color?: string }
|
||||
focus?: { max_categories?: number }
|
||||
languages?: { max_languages?: number }
|
||||
@@ -36,7 +37,7 @@ export type WidgetSettings = {
|
||||
|
||||
const DEFAULT_SETTINGS: WidgetSettings = {
|
||||
theme: 'midnight',
|
||||
widgets: ['grade', 'impact', 'collaborators', 'focus', 'languages'],
|
||||
widgets: ['grade', 'impact', 'streaks', 'collaborators', 'focus', 'languages'],
|
||||
impactPeriod: '6mo',
|
||||
customTags: [],
|
||||
hiddenLanguages: [],
|
||||
|
||||
Reference in New Issue
Block a user