fix: upgrade ui (#2)

Co-authored-by: terraputix <terraputix@mailbox.org>
Reviewed-on: useweb/open-meteo-blue#2
This commit was merged in pull request #2.
This commit is contained in:
2026-02-15 15:09:49 +01:00
co-authored by terraputix
parent 1e434e0a84
commit 2a8a8b9746
52 changed files with 452 additions and 129 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
<script lang="ts">
import './layout.css';
import favicon from '$lib/assets/favicon.svg';
import './layout.css';
let { children } = $props();
</script>
+4 -2
View File
@@ -1,6 +1,10 @@
<script lang="ts">
import { onMount } from 'svelte';
import { get } from 'svelte/store';
import { fade, fly } from 'svelte/transition';
import { storedLocation } from '$lib/stores/settings';
import { Button } from '$lib/components/ui/button';
import {
Card,
@@ -9,8 +13,6 @@
CardHeader,
CardTitle
} from '$lib/components/ui/card';
import { storedLocation } from '$lib/stores/settings';
import { get } from 'svelte/store';
let mounted = $state(false);
let location = get(storedLocation);
+2 -1
View File
@@ -1,6 +1,7 @@
import { page } from 'vitest/browser';
import { describe, expect, it } from 'vitest';
import { render } from 'vitest-browser-svelte';
import { page } from 'vitest/browser';
import Page from './+page.svelte';
describe('/+page.svelte', () => {
+7 -4
View File
@@ -1,12 +1,15 @@
<script lang="ts">
import { fly, fade } from 'svelte/transition';
import { onMount } from 'svelte';
import WeatherNav from '$lib/components/navigation/weather-nav.svelte';
import LocationSearch from '$lib/components/location/location-search.svelte';
import { storedLocation } from '$lib/stores/settings';
import { get } from 'svelte/store';
import { fade, fly } from 'svelte/transition';
import { page } from '$app/stores';
import { storedLocation } from '$lib/stores/settings';
import LocationSearch from '$lib/components/location/location-search.svelte';
import WeatherNav from '$lib/components/navigation/weather-nav.svelte';
interface Props {
children?: import('svelte').Snippet;
}
+1
View File
@@ -1,4 +1,5 @@
import { redirect } from '@sveltejs/kit';
import type { PageLoad } from '$types';
export const prerender = true;
+4
View File
@@ -1,7 +1,11 @@
import { get } from 'svelte/store';
import { redirect } from '@sveltejs/kit';
import { storedLocation } from '$lib/stores/settings';
import { geoLocationNameToRoute } from '$lib/utils/meteo';
import type { PageLoad } from '$types';
export const prerender = true;
@@ -1,5 +1,6 @@
<script lang="ts">
import { onMount } from 'svelte';
import { SvelteDate } from 'svelte/reactivity';
import { fade } from 'svelte/transition';
import { fetchWeatherApi } from 'openmeteo';
@@ -7,6 +8,8 @@
import { type GeoLocation, storedLocation } from '$lib/stores/settings';
import { urlHashStore } from '$lib/stores/url-hash-store';
import { pad } from '$lib/utils';
import { Label } from '$lib/components/ui/label';
import * as Select from '$lib/components/ui/select';
@@ -18,8 +21,6 @@
import { defaultParameters, models } from '../../options';
import { getColor } from '../../utils/colors';
import weatherCodes from '../../utils/weather-codes';
import { SvelteDate } from 'svelte/reactivity';
import { pad } from '$lib/utils';
const params = urlHashStore({
latitude: [$storedLocation.latitude],