Skip to content

Commit

Permalink
refactor: default export client from clients
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace committed Jan 24, 2025
1 parent a353222 commit 15c22da
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frontend/src/hooks.server.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
3 changes: 3 additions & 0 deletions frontend/src/lib/clients/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import client from './client';

export default client;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { enhance } from '$app/forms';
import { invalidateAll } from '$app/navigation';
import client from '$lib/clients/client';
import client from '$lib/clients';
import type { components } from '$lib/clients/v1';
import QuibbleTextLogo from '$lib/components/icons/logos/quibble-text.svelte';
import QuibbleLogo from '$lib/components/icons/logos/quibble.svelte';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/(actions)/auth/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dev } from '$app/environment';
import client from '$lib/clients/client';
import client from '$lib/clients';
import type { Actions } from './$types';
import { fail } from '@sveltejs/kit';

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/(app)/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import client from '$lib/clients/client';
import client from '$lib/clients';
import type { PageServerLoad } from './$types';

export const load: PageServerLoad = async () => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/(app)/q/[name]/+layout.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import client from '$lib/clients/client';
import client from '$lib/clients';
import type { LayoutServerLoad } from './$types';
import { error as raise_error, redirect } from '@sveltejs/kit';

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/(app)/q/[name]/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import client from '$lib/clients/client';
import client from '$lib/clients';
import type { PageServerLoad } from './$types';

export const load: PageServerLoad = async ({ params, parent }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import client from '$lib/clients/client';
import client from '$lib/clients';
import { CommentTreeBuilder } from '$lib/functions/comment';
import type { PageServerLoad } from './$types';
import { error as raise_error, redirect } from '@sveltejs/kit';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/(app)/settings/profile/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dev } from '$app/environment';
import client from '$lib/clients/client';
import client from '$lib/clients';
import type { Actions } from './$types';
import { fail } from '@sveltejs/kit';

Expand Down

0 comments on commit 15c22da

Please sign in to comment.