mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-06-11 00:55:16 -04:00
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 -->
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.