diff --git a/.gitignore b/.gitignore index 3b462cb..934dca1 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ Thumbs.db # Vite vite.config.js.timestamp-* vite.config.ts.timestamp-* + +AGENTS.md diff --git a/README.md b/README.md index 75842c4..806e050 100644 --- a/README.md +++ b/README.md @@ -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 -# create a new project in the current directory -npx sv create +## Tech Stack -# create a new project in my-app -npx sv create my-app -``` +- **Framework**: [SvelteKit](https://kit.svelte.dev/) +- **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 -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 npm run dev @@ -34,5 +33,3 @@ npm run build ``` 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. diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index b8ff3ed..4e2c217 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -1,5 +1,5 @@ -export * from './ui.js'; -export * from './meteo.js'; +export * from './ui.ts'; +export * from './meteo.ts'; export const isNumeric = (num: string | number) => (typeof num === 'number' || (typeof num === 'string' && num.trim() !== '')) && diff --git a/src/routes/weather/week/[location]/+page.svelte b/src/routes/weather/week/[location]/+page.svelte index a21237f..7ccefe4 100644 --- a/src/routes/weather/week/[location]/+page.svelte +++ b/src/routes/weather/week/[location]/+page.svelte @@ -8,7 +8,7 @@ import { storedLocation } from '$lib/stores/settings'; 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 * as Select from '$lib/components/ui/select';