Skip to content

Commit 91df8c6

Browse files
committed
WIP
1 parent 44f64ad commit 91df8c6

File tree

6 files changed

+1163
-23
lines changed

6 files changed

+1163
-23
lines changed

assets/js/dashboard/stats-query.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ type QueryInclude = {
1515
imports: boolean
1616
imports_meta: boolean
1717
time_labels: boolean
18+
partial_time_labels: boolean
1819
compare: IncludeCompare
1920
compare_match_day_of_week: boolean
21+
present_index?: boolean
2022
}
2123

2224
export type ReportParams = {
@@ -48,6 +50,7 @@ export function createStatsQuery(
4850
imports: dashboardState.with_imported,
4951
imports_meta: reportParams.include?.imports_meta || false,
5052
time_labels: reportParams.include?.time_labels || false,
53+
partial_time_labels: reportParams.include?.partial_time_labels || false,
5154
compare: createIncludeCompare(dashboardState),
5255
compare_match_day_of_week: dashboardState.match_day_of_week
5356
}

assets/js/dashboard/stats/graph/date-formatter.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
import { parseUTCDate, formatMonthYYYY, formatDayShort } from '../../util/date'
2-
3-
const browserDateFormat = Intl.DateTimeFormat(navigator.language, {
4-
hour: 'numeric'
5-
})
6-
7-
const is12HourClock = function () {
8-
return browserDateFormat.resolvedOptions().hour12
9-
}
1+
import { parseUTCDate, formatMonthYYYY, formatDayShort, is12HourClock } from '../../util/date'
102

113
const monthIntervalFormatter = {
124
long(isoDate, options) {

0 commit comments

Comments
 (0)