-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
187 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ build | |
.env | ||
.env.* | ||
!.env.example | ||
.vscode | ||
|
||
holo-key-manager-js-client/lib | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ build | |
.env.* | ||
!.env.example | ||
package.json | ||
.vscode | ||
|
||
holo-key-manager-js-client/lib | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"prettier.requireConfig": true, | ||
"prettier.documentSelectors": ["**/*.svelte"], | ||
"[svelte]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
}, | ||
"editor.formatOnSave": true, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export { default as ActionPage } from './ActionPage.svelte'; | ||
export { default as AppContainer } from './AppContainer.svelte'; | ||
export { default as AppParagraph } from './AppParagraph.svelte'; | ||
export { default as Button } from './Button.svelte'; | ||
export { default as Init } from './Init.svelte'; | ||
export { default as InputPassword } from './InputPassword.svelte'; | ||
export { default as Login } from './Login.svelte'; | ||
export { default as Title } from './Title.svelte'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
holo-key-manager-extension/src/routes/sign-up-key/+page.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<script lang="ts"> | ||
import { ActionPage, Login } from '$components'; | ||
import { sessionStorageQueries } from '$queries'; | ||
const { sessionQuery, setupDeviceKeyQuery } = sessionStorageQueries(); | ||
$: isLoading = $sessionQuery.isFetching || $setupDeviceKeyQuery.isFetching; | ||
$: hasSessionData = $sessionQuery.data; | ||
$: hasSetupData = $setupDeviceKeyQuery.data; | ||
</script> | ||
|
||
<svelte:head> | ||
<title>Holo Key Manager</title> | ||
</svelte:head> | ||
|
||
<div class="mx-auto flex h-screen w-full max-w-[375px] flex-col items-center justify-center py-8"> | ||
{#if isLoading} | ||
<span>Loading</span> | ||
{:else if hasSessionData} | ||
<ActionPage | ||
outerWindow={true} | ||
mainAction={() => {}} | ||
mainActionLabel="Connect" | ||
title="Holo Key Manager" | ||
subTitle="Haxe would like to connect to Holo Key Manager" | ||
/> | ||
{:else if hasSetupData} | ||
<Login outerWindow={true} /> | ||
{:else} | ||
<ActionPage | ||
outerWindow={true} | ||
mainAction={() => window.open('setup-pass/start.html', '_blank')} | ||
mainActionLabel="Setup" | ||
title="Setup Required" | ||
subTitle="You are yet to setup Holo Key Manager. Click “start setup” to begin." | ||
/> | ||
{/if} | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.