File tree Expand file tree Collapse file tree 7 files changed +8
-133
lines changed
Expand file tree Collapse file tree 7 files changed +8
-133
lines changed Original file line number Diff line number Diff line change 11node_modules
22/.svelte-kit
3+ /src /lib /client.ts
Original file line number Diff line number Diff line change 44 "version" : " 0.0.1" ,
55 "type" : " module" ,
66 "scripts" : {
7- "gen " : " openapi-typescript openapi.json -o src/lib/client.ts --root-types --root-types-no-schema-prefix" ,
7+ "prepare " : " openapi-typescript openapi.json -o src/lib/client.ts --root-types --root-types-no-schema-prefix" ,
88 "dev" : " vite dev" ,
99 "build" : " vite build" ,
1010 "preview" : " vite preview" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ export const load: PageLoad = async ({ fetch }) => {
1010 . then ( ( response ) => response . text ( ) )
1111 . then ( ( md ) => marked . parse ( md ) ) ;
1212
13- const client = createClient < paths > ( { baseUrl : PUBLIC_API_URL , fetch : fetch } ) ;
13+ // FIXME: use svelte's fetch when openapi-fetch fixes it
14+ const client = createClient < paths > ( { baseUrl : PUBLIC_API_URL } ) ;
1415
1516 const { data : projects , response } = await client . GET ( "/projects" ) ;
1617
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ import type { paths } from "$lib/client";
66import createClient from "openapi-fetch" ;
77
88export const load : PageLoad = async ( { params, fetch } ) => {
9- const client = createClient < paths > ( { baseUrl : PUBLIC_API_URL , fetch : fetch } ) ;
9+ // FIXME: use svelte's fetch when openapi-fetch fixes it
10+ const client = createClient < paths > ( { baseUrl : PUBLIC_API_URL } ) ;
1011
1112 const { data : project , response } = await client . GET ( "/projects/{id}" , {
1213 params : { path : { id : params . id } } ,
Original file line number Diff line number Diff line change 1010 "skipLibCheck" : true ,
1111 "sourceMap" : true ,
1212 "strict" : true ,
13+ "module" : " ESNext" ,
1314 "moduleResolution" : " bundler"
1415 }
1516 // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias
Original file line number Diff line number Diff line change 55down :
66 docker compose down -v
77gen :
8- cd backend && DATABASE_URL=sqlite:// ../ sqlite.db cargo sqlx prepare && cd ../ frontend && deno i --allow-scripts && deno task gen
8+ cd backend && DATABASE_URL=sqlite:// ../ sqlite.db cargo sqlx prepare && cd ../ frontend && deno i --allow-scripts && deno task prepare
99dev :
1010 cd frontend && deno task dev
1111fmt :
You can’t perform that action at this time.
0 commit comments