Files
MediaManager/web
Valentin Derksen d3b55566af Use openapi schemas directly (#488)
This PR adjusts the configuration to the `openapi-typescript` generation
to export the schema types directly and allow importing them directly in
the frontend code:
<img width="645" height="73" alt="image"
src="https://github.com/user-attachments/assets/75ddb995-ac16-4154-842d-fd85d4bdea46"
/>

Alternatively without the `--root-types-no-schema-prefix` option, the
schemas would all be prefixed with "Schema" like
`SchemaMetaDataProviderSearchResult` which could be safer, if there are
type collisions.

LMK what's preferred.

---
Checklist:
- [x] run `npm run openapi` to re-generate the `api.d.ts`
- [x] run `npm run lint`
- [x] run `npm run format`

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Refactor**
* Simplified and standardised TypeScript typings across the web app by
switching to concise public type aliases for API schemas (e.g. Movie,
Show, Episode, User, Notification, etc.), improving code clarity and
consistency across components and pages; purely type-level changes with
no runtime behaviour impact.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-05-01 16:37:24 +02:00
..
2026-05-01 16:37:24 +02:00
2025-10-31 12:19:23 -04:00
2025-04-27 00:14:55 +02:00
2025-12-06 22:39:09 +01:00
2025-04-27 00:14:55 +02:00
2025-10-31 12:19:23 -04:00
2025-06-28 18:24:11 +02:00

sv

Everything you need to build a Svelte project, powered by sv.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npx sv create

# create a new project in my-app
npx sv create my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.