use range instead of dates across the web

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-10-28 21:58:17 +02:00
parent c8c86d8c23
commit c5823dc4cb
11 changed files with 156 additions and 96 deletions

View File

@@ -19,15 +19,26 @@ export const intervals = {
month: "Month",
};
export const alphabetIds = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"] as const;
export const alphabetIds = [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
] as const;
export const timeRanges = {
'today': 'Today',
1: '24 hours',
7: '7 days',
14: '14 days',
30: '30 days',
90: '3 months',
180: '6 months',
365: '1 year',
}
export const timeRanges = [
{ range: 0, title: "Today" },
{ range: 1, title: "24 hours" },
{ range: 7, title: "7 days" },
{ range: 14, title: "14 days" },
{ range: 30, title: "30 days" },
{ range: 90, title: "3 months" },
{ range: 180, title: "6 months" },
{ range: 365, title: "1 year" },
] as const