From 15c22dad0fb04809c7faaa654b21d909cdbc78ef Mon Sep 17 00:00:00 2001 From: moonlitgrace Date: Fri, 24 Jan 2025 23:02:47 +0530 Subject: [PATCH] refactor: default export client from clients --- frontend/src/hooks.server.ts | 2 +- frontend/src/lib/clients/index.ts | 3 +++ frontend/src/lib/modals/modal-auth/forms/profile-select.svelte | 2 +- frontend/src/routes/(actions)/auth/+page.server.ts | 2 +- frontend/src/routes/(app)/+page.server.ts | 2 +- frontend/src/routes/(app)/q/[name]/+layout.server.ts | 2 +- frontend/src/routes/(app)/q/[name]/+page.server.ts | 2 +- .../routes/(app)/q/[name]/posts/[id]/[slug]/+page.server.ts | 2 +- frontend/src/routes/(app)/settings/profile/+page.server.ts | 2 +- 9 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 frontend/src/lib/clients/index.ts diff --git a/frontend/src/hooks.server.ts b/frontend/src/hooks.server.ts index aea482a1..5921bfe2 100644 --- a/frontend/src/hooks.server.ts +++ b/frontend/src/hooks.server.ts @@ -1,4 +1,4 @@ -import client from '$lib/clients/client'; +import client from '$lib/clients'; import type { components } from '$lib/clients/v1'; import type { Handle, HandleFetch } from '@sveltejs/kit'; diff --git a/frontend/src/lib/clients/index.ts b/frontend/src/lib/clients/index.ts new file mode 100644 index 00000000..380d6058 --- /dev/null +++ b/frontend/src/lib/clients/index.ts @@ -0,0 +1,3 @@ +import client from './client'; + +export default client; diff --git a/frontend/src/lib/modals/modal-auth/forms/profile-select.svelte b/frontend/src/lib/modals/modal-auth/forms/profile-select.svelte index 1054980c..91e4f5d4 100644 --- a/frontend/src/lib/modals/modal-auth/forms/profile-select.svelte +++ b/frontend/src/lib/modals/modal-auth/forms/profile-select.svelte @@ -1,7 +1,7 @@