diff --git a/bun.lockb b/bun.lockb index 4317a501..10517944 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 5d178a31..d666fab8 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,6 @@ "studio": "drizzle-kit studio" }, "devDependencies": { - "@skeletonlabs/skeleton": "^2.7.1", - "@skeletonlabs/tw-plugin": "^0.3.1", "@types/node": "^20.11.4", "@typescript-eslint/eslint-plugin": "^6.19.0", "@typescript-eslint/parser": "^6.19.0", @@ -28,8 +26,7 @@ "prettier": "^3.2.2", "prettier-plugin-organize-imports": "^3.2.4", "prettier-plugin-svelte": "^3.1.2", - "prettier-plugin-tailwindcss": "^0.5.11", - "vite-plugin-tailwind-purgecss": "^0.2.0" + "prettier-plugin-tailwindcss": "^0.5.11" }, "dependencies": { "@dicebear/collection": "^6.0.4", @@ -38,6 +35,8 @@ "@google-cloud/storage": "^7.7.0", "@lucia-auth/adapter-mysql": "^2.1.0", "@planetscale/database": "^1.13.0", + "@skeletonlabs/skeleton": "^2.7.1", + "@skeletonlabs/tw-plugin": "^0.3.1", "@sveltejs/adapter-vercel": "^4.0.5", "@sveltejs/kit": "^2.3.3", "@tailwindcss/forms": "^0.5.7", @@ -51,10 +50,11 @@ "sharp": "^0.33.2", "svelte": "^4.2.8", "svelte-check": "^3.6.3", - "sveltekit-api-fetch": "^3.3.0", "sveltekit-superforms": "^1.13.3", + "sveltekit-typesafe-api": "^0.1.2", "tailwindcss": "^3.4.1", "vite": "^5.0.11", + "vite-plugin-tailwind-purgecss": "^0.2.0", "zod": "^3.22.4" }, "trustedDependencies": [ diff --git a/src/lib/components/BookDetails.svelte b/src/lib/components/BookDetails.svelte index d8c46971..8b8ba533 100644 --- a/src/lib/components/BookDetails.svelte +++ b/src/lib/components/BookDetails.svelte @@ -2,7 +2,7 @@ import { invalidate } from "$app/navigation"; import type { Book } from "$lib/types"; import Carousel from "$lib/components/Carousel.svelte"; - import { api } from "sveltekit-api-fetch"; + import { api } from "sveltekit-typesafe-api"; export let book: Book; export let isDeletable: boolean = false; diff --git a/src/lib/modals/AddFriendModal.svelte b/src/lib/modals/AddFriendModal.svelte index 631b313d..54040fda 100644 --- a/src/lib/modals/AddFriendModal.svelte +++ b/src/lib/modals/AddFriendModal.svelte @@ -2,7 +2,7 @@ import friends from "$lib/stores/friends"; import { getModalStore, getToastStore } from "@skeletonlabs/skeleton"; import type { User } from "lucia"; - import { api } from "sveltekit-api-fetch"; + import { api } from "sveltekit-typesafe-api"; import UsersList from "./components/UsersList.svelte"; const modalStore = getModalStore(); diff --git a/src/lib/stores/colorScheme.ts b/src/lib/stores/colorScheme.ts index ef24d391..9643d9da 100644 --- a/src/lib/stores/colorScheme.ts +++ b/src/lib/stores/colorScheme.ts @@ -5,7 +5,7 @@ import { browser } from "$app/environment"; import { writable } from "svelte/store"; -import { api } from "sveltekit-api-fetch"; +import { api } from "sveltekit-typesafe-api"; export type ColorScheme = "light" | "dark"; diff --git a/src/lib/stores/friends.ts b/src/lib/stores/friends.ts index 28cf6d87..7882ee90 100644 --- a/src/lib/stores/friends.ts +++ b/src/lib/stores/friends.ts @@ -1,6 +1,6 @@ import type { User } from "lucia"; import { writable } from "svelte/store"; -import { api } from "sveltekit-api-fetch"; +import { api } from "sveltekit-typesafe-api"; function createFriendsStore() { const { subscribe, set } = writable(); diff --git a/src/lib/stores/groups.ts b/src/lib/stores/groups.ts index 88858951..7c702692 100644 --- a/src/lib/stores/groups.ts +++ b/src/lib/stores/groups.ts @@ -2,7 +2,7 @@ import type { Group } from "$lib/types"; import { getModalStore } from "@skeletonlabs/skeleton"; import type { User } from "lucia"; import { writable } from "svelte/store"; -import { api } from "sveltekit-api-fetch"; +import { api } from "sveltekit-typesafe-api"; function createGroupsStore() { const { subscribe, set } = writable(); diff --git a/src/lib/stores/notifications.ts b/src/lib/stores/notifications.ts index 5c76799f..7f6bbc67 100644 --- a/src/lib/stores/notifications.ts +++ b/src/lib/stores/notifications.ts @@ -4,7 +4,7 @@ import type { Notification, NotificationKind } from "$lib/types"; import { writable } from "svelte/store"; -import { api } from "sveltekit-api-fetch"; +import { api } from "sveltekit-typesafe-api"; function createNotificationsStore() { const { subscribe, set } = writable(); diff --git a/src/lib/stores/schedule.ts b/src/lib/stores/schedule.ts index 6cb180ca..e8370359 100644 --- a/src/lib/stores/schedule.ts +++ b/src/lib/stores/schedule.ts @@ -1,7 +1,7 @@ import { scheduleFromJson, type JsonSchedule } from "$lib/sanitization"; import type { Period, Schedule } from "$lib/types"; import { writable } from "svelte/store"; -import { api } from "sveltekit-api-fetch"; +import { api } from "sveltekit-typesafe-api"; function createScheduleStore() { const { subscribe, set: setStore } = writable(); diff --git a/src/lib/stores/user.ts b/src/lib/stores/user.ts index 7b45b95a..28ddea47 100644 --- a/src/lib/stores/user.ts +++ b/src/lib/stores/user.ts @@ -2,7 +2,7 @@ import { browser } from "$app/environment"; import { invalidate } from "$app/navigation"; import type { User } from "lucia"; import { writable } from "svelte/store"; -import { api } from "sveltekit-api-fetch"; +import { api } from "sveltekit-typesafe-api"; function createUserStore() { const { subscribe, set: setStore, update } = writable(); diff --git a/src/routes/(app)/livres/(acheter)/+page.svelte b/src/routes/(app)/livres/(acheter)/+page.svelte index d8f4ba44..3313b9b7 100644 --- a/src/routes/(app)/livres/(acheter)/+page.svelte +++ b/src/routes/(app)/livres/(acheter)/+page.svelte @@ -1,6 +1,6 @@