diff --git a/packages/package.json b/packages/package.json index 1f26553..1aa2ec1 100644 --- a/packages/package.json +++ b/packages/package.json @@ -22,9 +22,5 @@ "svelte": "^5.0.0", "vite": "^5.0.3", "vitest": "^2.0.4" - }, - "dependencies": { - "@paulmillr/qr": "^0.3.0", - "otpauth": "^9.3.5" } } diff --git a/packages/pnpm-lock.yaml b/packages/pnpm-lock.yaml index 7292531..500f8fc 100644 --- a/packages/pnpm-lock.yaml +++ b/packages/pnpm-lock.yaml @@ -7,13 +7,6 @@ settings: importers: .: - dependencies: - '@paulmillr/qr': - specifier: ^0.3.0 - version: 0.3.0 - otpauth: - specifier: ^9.3.5 - version: 9.3.5 devDependencies: '@sveltejs/adapter-auto': specifier: ^3.0.0 @@ -208,13 +201,6 @@ packages: '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} - '@noble/hashes@1.5.0': - resolution: {integrity: sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA==} - engines: {node: ^14.21.3 || >=16} - - '@paulmillr/qr@0.3.0': - resolution: {integrity: sha512-3s/cagXuoXTA2gWSfSfJNanNgm2ifmqgoX8WLOs5//3qrIJ3WWHFjqFqCxvYGf46Afwv6PctT9eAOXLDGwp96Q==} - '@polka/url@1.0.0-next.28': resolution: {integrity: sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==} @@ -506,9 +492,6 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - otpauth@9.3.5: - resolution: {integrity: sha512-jQyqOuQExeIl4YIiOUz4TdEcamgAgPX6UYeeS9Iit4lkvs7bwHb0JNDqchGRccbRfvWHV6oRwH36tOsVmc+7hQ==} - pathe@1.1.2: resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} @@ -775,10 +758,6 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - '@noble/hashes@1.5.0': {} - - '@paulmillr/qr@0.3.0': {} - '@polka/url@1.0.0-next.28': {} '@rollup/rollup-android-arm-eabi@4.25.0': @@ -1042,10 +1021,6 @@ snapshots: nanoid@3.3.7: {} - otpauth@9.3.5: - dependencies: - '@noble/hashes': 1.5.0 - pathe@1.1.2: {} pathval@2.0.0: {} diff --git a/packages/src/lib/components/nav-bar.svelte b/packages/src/lib/components/nav-bar.svelte index 3ab1b74..0b4e043 100644 --- a/packages/src/lib/components/nav-bar.svelte +++ b/packages/src/lib/components/nav-bar.svelte @@ -11,7 +11,7 @@
Token: {form?.token ?? data.token}.
-Valid for {count}s.
- - {#if qrCode} -This is your new cap key. You need it to access your folders and files. It will not be saved nor ever shown again.
+ +Copy it now and save it somewhere safe.
+ +If you lose your cap key you will not be able to access your files anymore. You will have to create a new cap key and upload new files and folders.
+ +{capKey}
+{/if} + +