Merge branch 'main' into refactor-weather-weekly

This commit is contained in:
terraputix
2026-02-15 15:30:39 +01:00
4 changed files with 15 additions and 16 deletions
+2
View File
@@ -21,3 +21,5 @@ Thumbs.db
# Vite # Vite
vite.config.js.timestamp-* vite.config.js.timestamp-*
vite.config.ts.timestamp-* vite.config.ts.timestamp-*
AGENTS.md
+10 -13
View File
@@ -1,22 +1,21 @@
# sv # Open-Meteo Weather Web
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli). An open-source, high-performance weather forecast website built with SvelteKit and powered by the [Open-Meteo APIs](https://open-meteo.com/).
## Creating a project ## Goals
If you're seeing this, you've probably already done this step. Congrats! Our objective is to provide a comprehensive, user-friendly weather platform for end-users. We aim to offer professional-grade weather visualizations and detailed meteorological data while maintaining the transparency and community-driven nature of open-source software.
```sh ## Tech Stack
# create a new project in the current directory
npx sv create
# create a new project in my-app - **Framework**: [SvelteKit](https://kit.svelte.dev/)
npx sv create my-app - **Language**: [TypeScript](https://www.typescriptlang.org/)
``` - **Data Source**: [Open-Meteo API](https://open-meteo.com/)
- **Visualization**: [Highcharts](https://www.highcharts.com/) (Current, transitioning to a more flexible charting library in the future)
## Developing ## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: Once you've cloned the project and installed dependencies with `npm install`:
```sh ```sh
npm run dev npm run dev
@@ -34,5 +33,3 @@ npm run build
``` ```
You can preview the production build with `npm run preview`. You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
+2 -2
View File
@@ -1,5 +1,5 @@
export * from './ui.js'; export * from './ui.ts';
export * from './meteo.js'; export * from './meteo.ts';
export const isNumeric = (num: string | number) => export const isNumeric = (num: string | number) =>
(typeof num === 'number' || (typeof num === 'string' && num.trim() !== '')) && (typeof num === 'number' || (typeof num === 'string' && num.trim() !== '')) &&
@@ -8,7 +8,7 @@
import { storedLocation } from '$lib/stores/settings'; import { storedLocation } from '$lib/stores/settings';
import { urlHashStore } from '$lib/stores/url-hash-store'; import { urlHashStore } from '$lib/stores/url-hash-store';
import { pad } from '$lib/utils'; import { pad } from '$lib/utils/index';
import { Label } from '$lib/components/ui/label'; import { Label } from '$lib/components/ui/label';
import * as Select from '$lib/components/ui/select'; import * as Select from '$lib/components/ui/select';