initial cleanup

This commit is contained in:
terraputix
2026-01-07 23:45:10 +01:00
parent 9b39255e64
commit 1e434e0a84
325 changed files with 1903 additions and 1000 deletions
+2 -6
View File
@@ -1,21 +1,17 @@
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;
export const load = (async (event) => {
export const load = (async () => {
const location = get(storedLocation);
const locationRoute = geoLocationNameToRoute(location.name);
throw redirect(
303,
'/en/weather/week/' +
'/weather/week/' +
(location.population
? location.population > 543000
? locationRoute