feat(activity): update summary cards to toggles and introduce export menu
This commit is contained in:
1 parent
73f4b539fe
commit
03b39e64f2
30 files changed
+2376
-238
No files matched your search
@@ -9,6 +9,7 @@ const (
|
||||
activityRangeToday = "today"
|
||||
activityRange7Days = "7d"
|
||||
activityRange30Days = "30d"
|
||||
activityRangeAll = "all"
|
||||
activityRangeCustom = "custom"
|
||||
activityDateLayout = "2006-01-02"
|
||||
activityDefaultSize = 25
|
||||
@@ -47,6 +48,8 @@ func resolveActivityWindow(query ActivityQuery, now time.Time) (activityWindow,
|
||||
return activityWindow{from: end.AddDate(0, 0, -30), to: end}, nil
|
||||
case activityRangeToday:
|
||||
return activityWindow{from: time.Date(utc.Year(), utc.Month(), utc.Day(), 0, 0, 0, 0, time.UTC), to: end}, nil
|
||||
case activityRangeAll:
|
||||
return activityWindow{from: time.Unix(0, 0).UTC(), to: end}, nil
|
||||
case activityRangeCustom:
|
||||
return resolveCustomWindow(query)
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user