Skip to content

Commit 3a762ab

Browse files
committed
chore: misc issues
1 parent a2e4207 commit 3a762ab

4 files changed

Lines changed: 11 additions & 16 deletions

File tree

app/composables/useCharts.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function buildDailyEvolutionFromDaily(daily: DailyRawPoint[]): DailyDataP
7070
.slice()
7171
.sort((a, b) => a.day.localeCompare(b.day))
7272
.map(item => {
73-
const dayDate = parseIsoDateOnly(item.day)
73+
const dayDate = parseIsoDate(item.day)
7474
const timestamp = dayDate.getTime()
7575

7676
return { day: item.day, value: item.value, timestamp }
@@ -83,13 +83,13 @@ export function buildRollingWeeklyEvolutionFromDaily(
8383
rangeEndIso: string,
8484
): WeeklyDataPoint[] {
8585
const sorted = daily.slice().sort((a, b) => a.day.localeCompare(b.day))
86-
const rangeStartDate = parseIsoDateOnly(rangeStartIso)
87-
const rangeEndDate = parseIsoDateOnly(rangeEndIso)
86+
const rangeStartDate = parseIsoDate(rangeStartIso)
87+
const rangeEndDate = parseIsoDate(rangeEndIso)
8888

8989
const groupedByIndex = new Map<number, number>()
9090

9191
for (const item of sorted) {
92-
const itemDate = parseIsoDateOnly(item.day)
92+
const itemDate = parseIsoDate(item.day)
9393
const dayOffset = Math.floor((itemDate.getTime() - rangeStartDate.getTime()) / 86400000)
9494
if (dayOffset < 0) continue
9595

@@ -173,7 +173,7 @@ export function buildMonthlyEvolutionFromDaily(daily: DailyRawPoint[]): MonthlyD
173173
return Array.from(valuesByMonth.entries())
174174
.sort(([a], [b]) => a.localeCompare(b))
175175
.map(([month, value]) => {
176-
const monthStartDate = parseIsoDateOnly(`${month}-01`)
176+
const monthStartDate = parseIsoDate(`${month}-01`)
177177
const timestamp = monthStartDate.getTime()
178178
return { month, value, timestamp }
179179
})
@@ -191,7 +191,7 @@ export function buildYearlyEvolutionFromDaily(daily: DailyRawPoint[]): YearlyDat
191191
return Array.from(valuesByYear.entries())
192192
.sort(([a], [b]) => a.localeCompare(b))
193193
.map(([year, value]) => {
194-
const yearStartDate = parseIsoDateOnly(`${year}-01-01`)
194+
const yearStartDate = parseIsoDate(`${year}-01-01`)
195195
const timestamp = yearStartDate.getTime()
196196
return { year, value, timestamp }
197197
})

knip.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const config: KnipConfig = {
66
entry: [
77
'app/pages/**/*.vue!',
88
'app/components/**/*.vue!',
9-
'app/components/**/*.d.vue.ts!',
109
'app/composables/**/*.ts!',
1110
'app/middleware/**/*.ts!',
1211
'app/plugins/**/*.ts!',

test/mocks/site-config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/unit/a11y-component-coverage.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ import { assert, describe, it } from 'vitest'
2222
* from #components, it counts as testing `SomeComponent.client.vue` if it exists.
2323
*/
2424
const SKIPPED_COMPONENTS: Record<string, string> = {
25-
// OgImage components are server-side rendered images, not interactive UI
26-
'OgImage/BlogPost.vue': 'OG Image component - server-rendered image, not interactive UI',
25+
// OG image components are server-side rendered images, not interactive UI
26+
'OgBrand.vue': 'OG Image component - server-rendered image, not interactive UI',
27+
'OgLayout.vue': 'OG Image component - server-rendered image, not interactive UI',
28+
'OgImage/BlogPost.takumi.vue': 'OG Image component - server-rendered image, not interactive UI',
2729
'OgImage/Package.takumi.vue': 'OG Image component - server-rendered image, not interactive UI',
2830
'OgImage/Page.takumi.vue': 'OG Image component - server-rendered image, not interactive UI',
31+
'OgImage/Profile.takumi.vue': 'OG Image component - server-rendered image, not interactive UI',
2932
'OgImage/Splash.takumi.vue': 'OG Image component - server-rendered image, not interactive UI',
3033

3134
// Client-only components with complex dependencies

0 commit comments

Comments
 (0)