diff --git a/package.json b/package.json index 5c0e988..a99a77c 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "test:unit": "vitest" }, "devDependencies": { + "@iconify/svelte": "^3.1.4", "@playwright/test": "^1.28.1", "@skeletonlabs/skeleton": "^1.10.0", "@sveltejs/adapter-auto": "^2.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4c69a8f..542f374 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,6 +36,9 @@ dependencies: version: 1.4.1(typescript@5.1.6) devDependencies: + '@iconify/svelte': + specifier: ^3.1.4 + version: 3.1.4(svelte@4.1.1) '@playwright/test': specifier: ^1.28.1 version: 1.36.2 @@ -845,6 +848,19 @@ packages: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} dev: true + /@iconify/svelte@3.1.4(svelte@4.1.1): + resolution: {integrity: sha512-YDwQlN46ka8KPRayDb7TivmkAPizfTXi6BSRNqa1IV0+byA907n8JcgQafA7FD//pW5XCuuAhVx6uRbKTo+CfA==} + peerDependencies: + svelte: '*' + dependencies: + '@iconify/types': 2.0.0 + svelte: 4.1.1 + dev: true + + /@iconify/types@2.0.0: + resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==} + dev: true + /@ipld/dag-cbor@6.0.15: resolution: {integrity: sha512-Vm3VTSTwlmGV92a3C5aeY+r2A18zbH2amehNhsX8PBa3muXICaWrN8Uri85A5hLH7D7ElhE8PdjxD6kNqUmTZA==} dependencies: diff --git a/src/lib/components/Actions.svelte b/src/lib/components/Actions.svelte new file mode 100644 index 0000000..7a59fae --- /dev/null +++ b/src/lib/components/Actions.svelte @@ -0,0 +1,26 @@ + + +
+

Actions

+ + {#each buttons as button} + + {/each} +
diff --git a/src/lib/components/AppBar.svelte b/src/lib/components/AppBar.svelte index 3ea6bfd..f60a8a8 100644 --- a/src/lib/components/AppBar.svelte +++ b/src/lib/components/AppBar.svelte @@ -1,12 +1,8 @@ -

Nova

diff --git a/src/lib/components/Apps.svelte b/src/lib/components/Apps.svelte index 92a4430..27e53c1 100644 --- a/src/lib/components/Apps.svelte +++ b/src/lib/components/Apps.svelte @@ -1,17 +1,26 @@ -
- {#each routes as route, index} - - {route.icon} - {route.name} - - {/each} +
+

Apps

+
+ {#each routes as route} + + + {route.name} + + {/each} +
diff --git a/src/lib/components/GoogleAuth.svelte b/src/lib/components/GoogleAuth.svelte index 3ea2e88..17a4c2f 100644 --- a/src/lib/components/GoogleAuth.svelte +++ b/src/lib/components/GoogleAuth.svelte @@ -5,8 +5,10 @@ import { ProviderType } from '@lit-protocol/constants'; import { createMessage } from '$lib/services/messages/messages'; import { createLitSession } from '$lib/services/createLitSession/createLitSession'; + import Icon from '@iconify/svelte'; + import Apps from '$lib/components/Apps.svelte'; - const redirectUri = 'http://localhost:5173/login/'; + const redirectUri = 'http://localhost:5173/'; export let services; @@ -109,37 +111,42 @@ } -
- {#if error} -

Error

-

{error.message}

- - {:else if isLoading} -

Loading...

- {:else if view === 'sign_in'} -

Sign in with Lit

- - {:else if view === 'fetching'} -

Fetching your PKPs...

- {:else if view === 'NO_PKPS'} -

No PKPs found.

- - {:else if view === 'fetched'} -

Select a PKP to continue

- {#each pkps as pkp} - - {/each} - {:else if view === 'MINTING'} -

Minting your PKP...

- {:else if view === 'MINTED'} -

Minted!

- {:else if view === 'CREATING_SESSION'} -

Creating session...

- {:else if view === 'SESSION_CREATED'} -

Ready for the open web

-
-

Check out your PKP:

-

{currentPKP.ethAddress}

-
- {/if} +
+
+ {#if error} +

Error

+

{error.message}

+ + {:else if isLoading} +

Loading...

+ {:else if view === 'sign_in'} + + {:else if view === 'fetching'} +

Fetching your PKPs...

+ {:else if view === 'NO_PKPS'} +

No PKPs found.

+ + {:else if view === 'fetched'} +

Select a PKP to continue

+ {#each pkps as pkp} + + {/each} + {:else if view === 'MINTING'} +

Minting your PKP...

+ {:else if view === 'MINTED'} +

Minted!

+ {:else if view === 'CREATING_SESSION'} +

Creating session...

+ {:else if view === 'SESSION_CREATED'} +

Ready for the open web

+
+

Check out your PKP:

+

{currentPKP.ethAddress}

+
+ + {/if} +
diff --git a/src/lib/components/Navigation.svelte b/src/lib/components/Navigation.svelte new file mode 100644 index 0000000..e359c9e --- /dev/null +++ b/src/lib/components/Navigation.svelte @@ -0,0 +1,9 @@ + + +
+ + +
diff --git a/src/lib/components/Terminal.svelte b/src/lib/components/Terminal.svelte index 9730605..8334d19 100644 --- a/src/lib/components/Terminal.svelte +++ b/src/lib/components/Terminal.svelte @@ -1,14 +1,16 @@ -
- +
+ -