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 @@ `