Skip to content

Commit

Permalink
style: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Jun 12, 2024
1 parent 7cdcb60 commit d2e3d7c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/console/src/lib/nhost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const nhost = new NhostClient({
start: false,
});

export const user = writable <User>();
export const user = writable<User>();

if (isBrowser) {
nhost.auth.onAuthStateChanged((event, session) => {
Expand Down
14 changes: 14 additions & 0 deletions apps/console/src/routes/(app)/rules/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<script lang="ts">
import { nhost, user } from '$lib/nhost';
import { Debug } from '@spectacular/skeleton/components';
console.log(nhost);
</script>

<svelte:head>
<title>Datablocks | Settings</title>
<meta name="description" content="Account Settings" />
</svelte:head>

<h2 class="h2">Settings</h2>
<Debug data={$user}/>
4 changes: 2 additions & 2 deletions apps/console/src/routes/(auth)/signin/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
import { page } from '$app/stores';
import * as m from '$i18n/messages';
import { handleMessage } from '$lib/components/layout/toast-manager';
import { isLoadingForm } from '$lib/stores/loading';
import { pwSchema, pwlSchema } from '$lib/schema/user';
import { isLoadingForm } from '$lib/stores/loading';
import { getToastStore } from '@skeletonlabs/skeleton';
import { DebugShell } from '@spectacular/skeleton/components';
import { Icon } from '@spectacular/skeleton/components/icons';
import { Logger } from '@spectacular/utils';
import { AlertTriangle, Github, Loader, MoreHorizontal } from 'lucide-svelte';
import { fade } from 'svelte/transition';
import SuperDebug, { superForm } from 'sveltekit-superforms';
import { zodClient } from 'sveltekit-superforms/adapters';
import { zodClient } from 'sveltekit-superforms/adapters';
export let data;
const log = new Logger('auth:signin');
Expand Down
2 changes: 1 addition & 1 deletion apps/console/src/routes/(auth)/signup/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { i18n } from '$lib/i18n';
import { setNhostSessionInCookies } from '$lib/server/utils/nhost';
import { signUpSchema } from '$lib/schema/user';
import { limiter } from '$lib/server/limiter/limiter';
import { getOrgs } from '$lib/server/utils/get-orgs';
import { setNhostSessionInCookies } from '$lib/server/utils/nhost';
import { Logger, sleep } from '@spectacular/utils';
import { error, fail } from '@sveltejs/kit';
import type { GraphQLError } from 'graphql';
Expand Down
4 changes: 2 additions & 2 deletions apps/console/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import Header from '$lib/components/layout/header.svelte';
import Sidebar from '$lib/components/layout/sidebar.svelte';
import { i18n } from '$lib/i18n';
import Search from '$lib/modals/search.svelte';
// KEEPME: initialize nhost
import { NHOST_SESSION_KEY, init, nhost, user } from '$lib/nhost';
import { scroll, storeTheme, storeVercelProductionMode } from '$lib/stores';
import { arrow, autoUpdate, computePosition, flip, offset, shift } from '@floating-ui/dom';
import { ParaglideJS } from '@inlang/paraglide-js-adapter-sveltekit';
Expand All @@ -21,8 +23,6 @@ import { startsWith } from '@spectacular/utils';
import { inject } from '@vercel/analytics';
import type { ComponentEvents } from 'svelte';
import { setupViewTransition } from 'sveltekit-view-transition';
// KEEPME: initialize nhost
import {user , nhost, init, NHOST_SESSION_KEY } from '$lib/nhost';
import '../app.pcss';
export let data;
Expand Down

0 comments on commit d2e3d7c

Please sign in to comment.