From ff44b7fed5d8100cf0e2b77e30dd1a25b3755f59 Mon Sep 17 00:00:00 2001 From: ztimson Date: Wed, 24 Jun 2026 19:47:03 -0400 Subject: [PATCH] Fix icons --- client/src/App.vue | 16 ++++ client/src/components/HourlyForecast.vue | 109 +++++++++++++++++++++++ client/src/components/MapView.vue | 4 +- client/src/services/api.ts | 6 +- client/src/views/Dashboard.vue | 2 + server/src/forecast.mjs | 8 +- server/src/server.mjs | 11 +++ 7 files changed, 150 insertions(+), 6 deletions(-) create mode 100644 client/src/components/HourlyForecast.vue diff --git a/client/src/App.vue b/client/src/App.vue index 1399e19..9d4f454 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -9,6 +9,22 @@ function toggleDark() { dark.value = !dark.value } + + diff --git a/client/src/components/MapView.vue b/client/src/components/MapView.vue index 0f46b26..7229560 100644 --- a/client/src/components/MapView.vue +++ b/client/src/components/MapView.vue @@ -399,8 +399,8 @@ input[type='range'] { .desktop { display: none; } .mobile { display: flex; } .radar-timeline { bottom: 10px; } - .overlay-toggles { bottom: 70px; } - .layers-menu { bottom: 70px; } + .overlay-toggles { bottom: 10px; } + .layers-menu { bottom: 10px; } } diff --git a/client/src/services/api.ts b/client/src/services/api.ts index 181a83a..fdd934f 100644 --- a/client/src/services/api.ts +++ b/client/src/services/api.ts @@ -15,7 +15,11 @@ async function get(path: string, params: Record = {}): Promis export const api = { position: (fields?: string) => get<{latitude: number, longitude: number, altitude: number}>('/api/position', fields ? { fields } : {}), current: (fields?: string) => get('/api/current', fields ? { fields } : {}), - hourly: (start?: string, end?: string, fields?: string) => get('/api/hourly', { ...(start ? { start } : {}), ...(end ? { end } : {}), ...(fields ? { fields } : {}) }), + hourly: (start?: Date, end?: Date, fields?: string) => get('/api/hourly', { + ...(start ? { start: start.toISOString().slice(0, 10) } : {}), + ...(end ? { end: end.toISOString().slice(0, 10) } : {}), + ...(fields ? { fields } : {}) + }), daily: (start?: Date, end?: Date, fields?: string) => get('/api/daily', { ...(start ? { start: start.toISOString().slice(0, 10) } : {}), ...(end ? { end: end.toISOString().slice(0, 10) } : {}), diff --git a/client/src/views/Dashboard.vue b/client/src/views/Dashboard.vue index 2f63877..a662345 100644 --- a/client/src/views/Dashboard.vue +++ b/client/src/views/Dashboard.vue @@ -1,4 +1,5 @@ `