Skip to content

Commit

Permalink
Add new page
Browse files Browse the repository at this point in the history
  • Loading branch information
mrruby committed Oct 25, 2023
1 parent f1e0920 commit d8ad918
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/routes/setup/enter-passphrase/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import EnterPassphraseComponent from './EnterPassphraseComponent.svelte';
import type { SetPassphrase } from '$lib/types';
import type { Writable } from 'svelte/store';
import { goto } from '$app/navigation';
const passphraseStore = getContext<Writable<string>>(passphrase);
Expand Down Expand Up @@ -40,6 +41,6 @@
description="Tying loose ends, please enter your passphrase again."
nextLabel="Next"
inputState={confirmPassphrase !== $passphraseStore ? 'Passphrases do not match' : ``}
next={() => null}
next={() => goto('/setup/generate-keys')}
/>
{/if}
17 changes: 17 additions & 0 deletions src/routes/setup/generate-keys/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script lang="ts">
import { getContext, onMount } from 'svelte';
import { passphrase } from '$stores';
import type { Writable } from 'svelte/store';
import { goto } from '$app/navigation';
const passphraseStore = getContext<Writable<string>>(passphrase);
onMount(() => {
if ($passphraseStore === '') {
goto('/setup/start');
}
});
</script>

<img src="/img/download.svg" alt="Download" class="w-12 my-4" />
<h1 class="text-4xl font-bold text-center">Generate Seed & Key files</h1>
17 changes: 17 additions & 0 deletions static/img/download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Holo key manager",
"description": "A browser extension to manage holo keys",
"version": "0.0.10",
"version": "0.0.11",
"manifest_version": 3,
"browser_specific_settings": {
"gecko": {
Expand Down

0 comments on commit d8ad918

Please sign in to comment.