feat: add global weather support
All checks were successful
CI / Lint, typecheck and build (push) Successful in 9m54s

This commit is contained in:
zv
2026-06-14 15:53:34 +02:00
parent d572c9cc53
commit 2182297adc
45 changed files with 739 additions and 212 deletions

View File

@@ -1,6 +1,7 @@
import type { Language } from "@/lib/i18n";
import type { Province } from "@/types/province";
import type { TemperatureUnit, WindSpeedUnit } from "@/types/units";
import type { WeatherRegion } from "@/types/weather-region";
export interface PushSubscriptionKeys {
p256dh: string;
@@ -16,7 +17,8 @@ export interface BrowserPushSubscription {
export interface WarningPushSubscription {
endpoint: string;
subscription: BrowserPushSubscription;
province: Province;
province: Province | null;
region: WeatherRegion;
language: Language;
enabled: boolean;
morningBriefEnabled: boolean;
@@ -24,6 +26,7 @@ export interface WarningPushSubscription {
latitude: number | null;
longitude: number | null;
locationName: string | null;
timezone: string | null;
countyTeryt: string | null;
temperatureUnit: TemperatureUnit;
windSpeedUnit: WindSpeedUnit;