Skip to content

Commit

Permalink
build: deps updated
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Jun 26, 2024
1 parent f0652d2 commit 1659ae3
Show file tree
Hide file tree
Showing 13 changed files with 721 additions and 1,262 deletions.
14 changes: 7 additions & 7 deletions apps/console-fb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@testing-library/svelte": "5.1.0",
"@types/gtag.js": "0.0.20",
"@types/js-cookie": "3.0.6",
"@types/node": "20.14.8",
"@types/node": "20.14.9",
"@vercel/analytics": "1.3.1",
"@vercel/speed-insights": "1.0.12",
"@vite-pwa/assets-generator": "0.2.4",
Expand All @@ -64,7 +64,7 @@
"d3-scale": "4.0.2",
"date-fns": "3.6.0",
"flowbite": "2.3.0",
"flowbite-svelte": "0.46.4",
"flowbite-svelte": "0.46.6",
"flowbite-svelte-blocks": "1.1.3",
"flowbite-svelte-icons": "1.6.1",
"flowbite-typography": "1.0.3",
Expand All @@ -75,26 +75,26 @@
"jose": "5.4.1",
"js-cookie": "3.0.5",
"jsdom": "24.1.0",
"layercake": "8.3.1",
"layercake": "8.3.3",
"msw": "2.3.1",
"postcss": "8.4.38",
"postcss-preset-env": "9.5.14",
"svelte": "4.2.18",
"svelte-adapter-bun": "0.5.2",
"svelte-check": "3.8.1",
"svelte-check": "3.8.2",
"svelte-headless-table": "0.18.2",
"svelte-meta-tags": "3.1.2",
"svelte-select": "5.8.3",
"svelte-time-distance": "0.0.3",
"sveltekit-flash-message": "2.4.4",
"sveltekit-rate-limiter": "0.5.1",
"sveltekit-superforms": "2.15.1",
"sveltekit-superforms": "2.15.2",
"sveltekit-view-transition": "0.5.3",
"tailwind-merge": "2.3.0",
"tailwind-variants": "0.2.1",
"tailwindcss": "3.4.4",
"tailwindcss-animate": "1.0.7",
"throttle-debounce": "5.0.0",
"throttle-debounce": "5.0.2",
"tslib": "2.6.3",
"typescript": "5.5.2",
"vite": "5.3.1",
Expand All @@ -103,7 +103,7 @@
"zod": "3.23.8"
},
"optionalDependencies": {
"@playwright/test": "1.44.1",
"@playwright/test": "1.45.0",
"@vitest/ui": "1.6.0"
}
}
8 changes: 4 additions & 4 deletions apps/console-sc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@tailwindcss/container-queries": "0.1.1",
"@tailwindcss/forms": "0.5.7",
"@tailwindcss/typography": "0.5.13",
"@types/node": "20.14.8",
"@types/node": "20.14.9",
"@vercel/analytics": "1.3.1",
"@vincjo/datatables": "1.14.10",
"@vitest/coverage-v8": "1.6.0",
Expand All @@ -52,10 +52,10 @@
"postcss-load-config": "6.0.1",
"postcss-nested": "6.0.1",
"svelte": "4.2.18",
"svelte-check": "3.8.1",
"svelte-check": "3.8.2",
"svelte-radix": "1.1.0",
"sveltekit-rate-limiter": "0.5.1",
"sveltekit-superforms": "2.15.1",
"sveltekit-superforms": "2.15.2",
"sveltekit-view-transition": "0.5.3",
"tailwind-merge": "2.3.0",
"tailwind-variants": "0.2.1",
Expand All @@ -68,7 +68,7 @@
"zod": "3.23.8"
},
"optionalDependencies": {
"@playwright/test": "1.44.1",
"@playwright/test": "1.45.0",
"@vitest/ui": "1.6.0"
}
}
16 changes: 8 additions & 8 deletions apps/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
},
"devDependencies": {
"@ai-sdk/openai": "0.0.33",
"@floating-ui/dom": "1.6.5",
"@floating-ui/dom": "1.6.6",
"@fontsource-variable/inter": "5.0.18",
"@inlang/cli": "2.18.1",
"@inlang/paraglide-js": "1.10.1",
"@inlang/paraglide-js": "1.11.0",
"@inlang/paraglide-js-adapter-sveltekit": "0.6.7",
"@nhost/nhost-js": "3.1.5",
"@skeletonlabs/skeleton": "2.10.1",
Expand All @@ -54,12 +54,12 @@
"@tailwindcss/typography": "0.5.13",
"@types/d3-scale": "4.0.8",
"@types/js-cookie": "3.0.6",
"@types/node": "20.14.8",
"@types/node": "20.14.9",
"@vercel/analytics": "1.3.1",
"@vincjo/datatables": "1.14.10",
"@vitest/coverage-v8": "1.6.0",
"@xyflow/svelte": "0.1.7",
"ai": "3.2.5",
"ai": "3.2.10",
"autoprefixer": "10.4.19",
"d3-array": "3.2.4",
"d3-scale": "4.0.2",
Expand All @@ -78,13 +78,13 @@
"postcss": "8.4.38",
"svelte": "4.2.18",
"svelte-adapter-bun": "0.5.2",
"svelte-check": "3.8.1",
"svelte-check": "3.8.2",
"svelte-meta-tags": "3.1.2",
"svelte-persisted-store": "0.11.0",
"svelte-ux": "0.70.1",
"svelte-ux": "0.71.0",
"sveltekit-flash-message": "2.4.4",
"sveltekit-rate-limiter": "0.5.1",
"sveltekit-superforms": "2.15.1",
"sveltekit-superforms": "2.15.2",
"sveltekit-view-transition": "0.5.3",
"tailwind-merge": "2.3.0",
"tailwind-variants": "0.2.1",
Expand All @@ -98,7 +98,7 @@
"zod": "3.23.8"
},
"optionalDependencies": {
"@playwright/test": "1.44.1",
"@playwright/test": "1.45.0",
"@vitest/ui": "1.6.0"
}
}
11 changes: 5 additions & 6 deletions apps/console/src/lib/nhost.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { goto } from '$app/navigation';
import { SearchSecurityKeysStore } from '$houdini';
import { nhost, user } from '$lib/stores/user';
import { Logger } from '@spectacular/utils';
import { SearchSecurityKeysStore } from '$houdini';

/**
* NOTE: These methods are still not in use.
Expand Down Expand Up @@ -55,10 +55,9 @@ export async function isAuthenticated(): Promise<boolean> {
const skQuery = new SearchSecurityKeysStore().artifact.raw;
export async function hasSecurityKey(userId: string) {
const { data, error } = await nhost.graphql.request(skQuery, { userId });
if(error) {
log.error({error})
return false
if (error) {
log.error({ error });
return false;
}
return data?.authUserSecurityKeys.length > 0
return data?.authUserSecurityKeys.length > 0;
}

11 changes: 5 additions & 6 deletions apps/console/src/routes/(app)/profile/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ let error: AuthErrorPayload | null;
// Functions
async function addSecurityKey() {
console.log({ nickname });
error = await elevate()
if (error) {
error = await elevate();
if (error) {
console.log(error);
return;
}
Expand All @@ -43,10 +42,10 @@ async function addSecurityKey() {
}
async function handleElevate() {
error = await elevate()
error = await elevate();
if (!error) {
// TODO notify
console.log('elevated successfully');
// TODO notify
console.log('elevated successfully');
}
}
Expand Down
27 changes: 18 additions & 9 deletions apps/console/src/routes/(auth)/signin/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import * as m from '$i18n/messages';
import { handleMessage } from '$lib/components/layout/toast-manager';
import { pwSchema, pwlSchema } from '$lib/schema/user';
import { isLoadingForm } from '$lib/stores/loading';
import { nhost } from '$lib/stores/user';
import { getToastStore } from '@skeletonlabs/skeleton';
import { DebugShell } from '@spectacular/skeleton/components';
import { Icon } from '@spectacular/skeleton/components/icons';
Expand Down Expand Up @@ -86,6 +88,19 @@ const {
},
});
async function waSignin() {
console.log($pwlForm.email);
if (!$pwErrors.email) {
const { session, error: signInError } = await nhost.auth.signIn({ email: $pwlForm.email, securityKey: true });
if (session) {
// TODO
// Cookies.set(NHOST_SESSION_KEY, btoa(JSON.stringify(session)), { path: '/' })
goto('/dashboard');
} else {
console.log(signInError);
}
}
}
// Reactivity
pwDelayed.subscribe((v) => ($isLoadingForm = v));
pwlDelayed.subscribe((v) => ($isLoadingForm = v));
Expand Down Expand Up @@ -234,7 +249,7 @@ $pwlForm.redirectTo = $page.url.searchParams.get('redirectTo') ?? $pwlForm.redir
</div>

<!-- Signin with email : Magic Link Passwordless Authentication -->
<form method="POST" action="/signin?/passwordless" use:pwlEnhance>
<form method="POST" use:pwlEnhance>
<input type="hidden" name="__superform_id" bind:value={$pwlFormId} />
<div class="mt-6">
<label class="label">
Expand All @@ -256,7 +271,7 @@ $pwlForm.redirectTo = $page.url.searchParams.get('redirectTo') ?? $pwlForm.redir
</label>
</div>
<div class="mt-6 flex justify-between">
<button type="submit" class="variant-filled-primary btn">
<button type="submit" formaction="/signin?/passwordless" class="variant-filled-primary btn">
{#if $pwlTimeout}
<MoreHorizontal class="animate-ping" />
{:else if $pwlDelayed}
Expand All @@ -265,14 +280,8 @@ $pwlForm.redirectTo = $page.url.searchParams.get('redirectTo') ?? $pwlForm.redir
{m.auth_labels_signin_with_email()} <Mail class="pl-2" />
{/if}
</button>
<button type="submit" class="variant-filled-primary btn">
{#if $pwlTimeout}
<MoreHorizontal class="animate-ping" />
{:else if $pwlDelayed}
<Loader class="animate-spin" />
{:else}
<button type="button" formaction="/signin?/webauthn" on:click|preventDefault={waSignin} class="variant-filled-primary btn">
{m.auth_labels_signin_with_webauthn()} <Fingerprint class="pl-2"/>
{/if}
</button>
</div>
</form>
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
},
"dependencies": {
"@astrojs/check": "0.7.0",
"@astrojs/node": "8.3.1",
"@astrojs/node": "8.3.2",
"@astrojs/starlight": "0.24.4",
"@astrojs/starlight-tailwind": "2.0.3",
"@astrojs/tailwind": "5.1.0",
"@astrojs/vercel": "7.7.1",
"@astrojs/vercel": "7.7.2",
"@fontsource-variable/inter": "5.0.18",
"@fontsource/source-code-pro": "5.0.18",
"astro": "4.11.0",
"astro": "4.11.1",
"sharp": "0.33.4",
"tailwindcss": "3.4.4",
"typescript": "5.5.2"
Expand Down
14 changes: 7 additions & 7 deletions apps/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"test:unit:ui": "dotenv-run -f .env -f .secrets -v -- vitest --ui"
},
"devDependencies": {
"@floating-ui/dom": "1.6.5",
"@floating-ui/dom": "1.6.6",
"@fontsource-variable/inter": "5.0.18",
"@inlang/cli": "2.18.1",
"@inlang/paraglide-js": "1.10.1",
"@inlang/paraglide-js": "1.11.0",
"@inlang/paraglide-js-adapter-sveltekit": "0.6.7",
"@skeletonlabs/skeleton": "2.10.1",
"@skeletonlabs/tw-plugin": "0.4.0",
Expand All @@ -49,7 +49,7 @@
"@tsparticles/slim": "3.4.0",
"@tsparticles/svelte": "3.1.1",
"@types/d3-scale": "4.0.8",
"@types/node": "20.14.8",
"@types/node": "20.14.9",
"@vercel/analytics": "1.3.1",
"@vincjo/datatables": "1.14.10",
"@vitest/coverage-v8": "1.6.0",
Expand All @@ -67,13 +67,13 @@
"postcss": "8.4.38",
"svelte": "4.2.18",
"svelte-adapter-bun": "0.5.2",
"svelte-check": "3.8.1",
"svelte-check": "3.8.2",
"svelte-meta-tags": "3.1.2",
"svelte-persisted-store": "0.11.0",
"svelte-ux": "0.70.1",
"svelte-ux": "0.71.0",
"sveltekit-flash-message": "2.4.4",
"sveltekit-rate-limiter": "0.5.1",
"sveltekit-superforms": "2.15.1",
"sveltekit-superforms": "2.15.2",
"sveltekit-view-transition": "0.5.3",
"tailwind-merge": "2.3.0",
"tailwind-variants": "0.2.1",
Expand All @@ -86,7 +86,7 @@
"zod": "3.23.8"
},
"optionalDependencies": {
"@playwright/test": "1.44.1",
"@playwright/test": "1.45.0",
"@vitest/ui": "1.6.0"
}
}
8 changes: 4 additions & 4 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
},
"devDependencies": {
"@astrojs/check": "0.7.0",
"@astrojs/mdx": "3.1.1",
"@astrojs/node": "8.3.1",
"@astrojs/mdx": "3.1.2",
"@astrojs/node": "8.3.2",
"@astrojs/partytown": "2.1.1",
"@astrojs/sitemap": "3.1.6",
"@astrojs/starlight": "0.24.4",
"@astrojs/svelte": "5.6.0",
"@astrojs/tailwind": "5.1.0",
"@astrojs/vercel": "7.7.1",
"@astrojs/vercel": "7.7.2",
"@fontsource-variable/inter": "5.0.18",
"@fontsource/source-code-pro": "5.0.18",
"@spectacular/biome-config": "workspace:*",
"@spectacular/typescript-config": "workspace:*",
"@spectacular/utils": "workspace:*",
"@tailwindcss/typography": "0.5.13",
"@vitest/coverage-v8": "1.6.0",
"astro": "4.11.0",
"astro": "4.11.1",
"astro-expressive-code": "0.35.3",
"astro-seo": "0.8.4",
"lucide-svelte": "0.396.0",
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@
"devDependencies": {
"@biomejs/biome": "1.8.2",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.5",
"@changesets/cli": "2.27.6",
"@dotenv-run/cli": "1.3.5",
"@markuplint/astro-parser": "4.6.4",
"@markuplint/svelte-parser": "4.6.4",
"@markuplint/astro-parser": "4.6.5",
"@markuplint/svelte-parser": "4.6.5",
"@spectacular/biome-config": "workspace:*",
"@spectacular/typescript-config": "workspace:*",
"concurrently": "8.2.2",
"cspell": "8.9.1",
"husky": "9.0.11",
"lint-staged": "15.2.7",
"markuplint": "4.9.1",
"turbo": "2.0.4",
"markuplint": "4.9.2",
"turbo": "2.0.5",
"vitest": "1.6.0"
},
"packageManager": "[email protected]",
Expand Down
Loading

0 comments on commit 1659ae3

Please sign in to comment.