diff --git a/frontend/deno.json b/frontend/deno.json index 2d7690d..642eca7 100644 --- a/frontend/deno.json +++ b/frontend/deno.json @@ -9,5 +9,13 @@ "test:ui": "deno run -A npm:vitest --ui", "test:coverage": "deno run -A npm:vitest run --coverage" }, - "nodeModulesDir": "auto" + "nodeModulesDir": "auto", + "lint": { + "rules": { + "exclude": [ + "require-await", + "prefer-const" + ] + } + } } diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 2d3d629..6119e60 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -36,6 +36,11 @@ import DidDocumentEditor from './routes/DidDocumentEditor.svelte' import Home from './routes/Home.svelte' + if (window.location.pathname === '/migrate') { + const newUrl = `${window.location.origin}/${window.location.search}#/migrate` + window.location.replace(newUrl) + } + initI18n() const auth = getAuthState() @@ -43,6 +48,9 @@ let oauthCallbackPending = $state(hasOAuthCallback()) function hasOAuthCallback(): boolean { + if (window.location.hash === '#/migrate') { + return false + } const params = new URLSearchParams(window.location.search) return !!(params.get('code') && params.get('state')) } diff --git a/frontend/src/components/ReauthModal.svelte b/frontend/src/components/ReauthModal.svelte index 09c31e5..8d09e2d 100644 --- a/frontend/src/components/ReauthModal.svelte +++ b/frontend/src/components/ReauthModal.svelte @@ -170,12 +170,12 @@
- This action requires you to verify your identity. + {$_('reauth.subtitle')}
{#if error} @@ -190,7 +190,7 @@ class:active={activeMethod === 'password'} onclick={() => activeMethod = 'password'} > - Password + {$_('reauth.password')} {/if} {#if availableMethods.includes('totp')} @@ -199,7 +199,7 @@ class:active={activeMethod === 'totp'} onclick={() => activeMethod = 'totp'} > - TOTP + {$_('reauth.totp')} {/if} {#if availableMethods.includes('passkey')} @@ -208,7 +208,7 @@ class:active={activeMethod === 'passkey'} onclick={() => activeMethod = 'passkey'} > - Passkey + {$_('reauth.passkey')} {/if}Click the button below to authenticate with your passkey.
+{$_('reauth.passkeyPrompt')}
This wizard will help you move your AT Protocol account from another PDS to this one.
+{$_('migration.inbound.welcome.desc')}
{isResumedMigration ? 'Enter your credentials to continue the migration.' : 'Enter your credentials for the account you want to migrate.'}
- - {#if isResumedMigration} -Your migration was interrupted. Log in to both accounts to resume.
-Migrating: {flow.state.sourceHandle} → {flow.state.targetHandle}
+{isResuming ? $_('migration.inbound.sourceAuth.descResume') : $_('migration.inbound.sourceAuth.desc')}
+ + {#if isResuming && resumeInfo} +{$_('migration.inbound.sourceAuth.resumeOAuthNote')}
Select a handle for your account on this PDS.
+{$_('migration.inbound.chooseHandle.desc')}
Checking availability...
+{$_('migration.inbound.chooseHandle.checkingAvailability')}
{:else if handleAvailable === true} -Handle is available!
+{$_('migration.inbound.chooseHandle.handleAvailable')}
{:else if handleAvailable === false} -Handle is already taken
+{$_('migration.inbound.chooseHandle.handleTaken')}
{:else} -You can also use your own domain by entering the full handle (e.g., alice.mydomain.com)
+{$_('migration.inbound.chooseHandle.handleHint')}
{/if}At least 8 characters
+ +{$_('migration.inbound.chooseHandle.passwordHint')}
+{$_('migration.inbound.chooseHandle.passkeyInfo')}
+Please confirm the details of your migration.
+{$_('migration.inbound.review.desc')}
Please wait while your account is being transferred...
+{$_('migration.inbound.migrating.desc')}
{flow.state.progress.currentOperation}
{$_('migration.inbound.passkeySetup.desc')}
+ + {#if flow.state.error} + + {/if} + +{$_('migration.inbound.passkeySetup.nameHint')}
+{$_('migration.inbound.passkeySetup.instructions')}
+{$_('migration.inbound.appPassword.desc')}
+ +{flow.state.generatedAppPassword}
+ A verification code has been sent to the email registered with your old account.
+{$_('migration.inbound.plcToken.desc')}
- This code confirms you have access to the account and authorizes updating your identity - to point to this PDS. -
+{$_('migration.inbound.plcToken.info')}