diff --git a/bun.lockb b/bun.lockb index 30c540f1..968e7033 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 81a2ddb3..ca2d0fd2 100644 --- a/package.json +++ b/package.json @@ -38,8 +38,7 @@ "vite": "^5.0.0", "vite-plugin-pwa": "^0.18.0", "vitest": "^1.0.0", - "workbox-window": "^7.0.0", - "svelte-qrcode": "^1.0.0" + "workbox-window": "^7.0.0" }, "private": true, "scripts": { @@ -52,5 +51,9 @@ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch" }, - "type": "module" + "type": "module", + "dependencies": { + "@svelte-put/qr": "^1.2.1", + "install": "^0.13.0" + } } diff --git a/src/routes/profile/(local_user)/password/+page.svelte b/src/routes/profile/(local_user)/password/+page.svelte index a4035713..d3059e6a 100644 --- a/src/routes/profile/(local_user)/password/+page.svelte +++ b/src/routes/profile/(local_user)/password/+page.svelte @@ -2,14 +2,14 @@ import { deleteProfile, profile, setUser } from '$lib/auth.js' import { getClient, site } from '$lib/lemmy.js' import { trycatch } from '$lib/util.js' - import { Button, Snippet, TextInput, toast } from 'mono-svelte' + import { Button, Material, Snippet, TextInput, toast } from 'mono-svelte' import { instance as currentInstance } from '$lib/instance.js' import { ClipboardDocument, Icon } from 'svelte-hero-icons' import { goto } from '$app/navigation' import { page } from '$app/stores' import Switch from '$lib/components/input/Switch.svelte' import { feature } from '$lib/version.js' - import QrCode from "svelte-qrcode" + import { qr } from '@svelte-put/qr/svg' import { t } from '$lib/translations.js' import Header from '$lib/components/ui/layout/pages/Header.svelte' @@ -83,7 +83,6 @@ toast({ content: e as any, type: 'error' }) } } -