-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'leon/verify_scripts' of github.com:dfinity/oisy-wallet …
…into leon/verify_scripts
- Loading branch information
Showing
21 changed files
with
318 additions
and
41 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
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
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script lang="ts"> | ||
import { fade } from 'svelte/transition'; | ||
import LandingPage from '$lib/components/auth/LandingPage.svelte'; | ||
import { authNotSignedIn } from '$lib/derived/auth.derived'; | ||
</script> | ||
|
||
{#if $authNotSignedIn} | ||
<LandingPage /> | ||
{:else} | ||
<div in:fade> | ||
<slot /> | ||
</div> | ||
{/if} |
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,31 @@ | ||
<script lang="ts"> | ||
import previewLarge from '$lib/assets/preview-large.webp'; | ||
import previewSmall from '$lib/assets/preview-small.webp'; | ||
import HeroSignIn from '$lib/components/hero/HeroSignIn.svelte'; | ||
import Img from '$lib/components/ui/Img.svelte'; | ||
import { i18n } from '$lib/stores/i18n.store.js'; | ||
import { replaceOisyPlaceholders } from '$lib/utils/i18n.utils.js'; | ||
let ariaLabel: string; | ||
$: ariaLabel = replaceOisyPlaceholders($i18n.auth.alt.preview); | ||
</script> | ||
|
||
<div | ||
class="m-auto grid w-full max-w-screen-2.5xl grid-cols-1 flex-col items-center gap-12 overflow-hidden px-5 md:grid-cols-2 md:grid-rows-1 md:items-start md:gap-8 md:overflow-visible" | ||
> | ||
<div | ||
class="flex w-full flex-1 flex-col items-center text-center md:items-start md:pl-8 md:pt-12 md:text-left" | ||
> | ||
<div class="md:absolute md:top-1/3"> | ||
<HeroSignIn /> | ||
</div> | ||
</div> | ||
|
||
<!-- TODO: determine if this value is specific/permanent or can be changed --> | ||
<div class=" min-w-[1127px] flex-1 md:pt-12"> | ||
<picture aria-label={ariaLabel} class="w-full" role="presentation"> | ||
<source srcset={previewSmall} media="(max-width: 767px)" /> | ||
<Img src={previewLarge} alt={ariaLabel} /> | ||
</picture> | ||
</div> | ||
</div> |
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,11 @@ | ||
<script lang="ts"> | ||
import IconLogin from '$lib/components/icons/IconLogin.svelte'; | ||
import ButtonIcon from '$lib/components/ui/ButtonIcon.svelte'; | ||
import { signIn } from '$lib/services/auth.services'; | ||
import { i18n } from '$lib/stores/i18n.store'; | ||
</script> | ||
|
||
<ButtonIcon ariaLabel={$i18n.auth.text.authenticate} on:click={async () => await signIn({})}> | ||
<IconLogin slot="icon" /> | ||
{$i18n.auth.text.authenticate} | ||
</ButtonIcon> |
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,30 +1,20 @@ | ||
<script lang="ts"> | ||
import Header from '$lib/components/hero/Header.svelte'; | ||
import HeroContent from '$lib/components/hero/HeroContent.svelte'; | ||
import HeroSignIn from '$lib/components/hero/HeroSignIn.svelte'; | ||
import { authNotSignedIn, authSignedIn } from '$lib/derived/auth.derived'; | ||
import { authSignedIn } from '$lib/derived/auth.derived'; | ||
export let usdTotal = false; | ||
export let summary = false; | ||
export let actions = true; | ||
export let back: 'header' | 'hero' | undefined; | ||
// We only want to display the "Sign-in" call to action on pages that actually are displaying any content in the Hero pane. | ||
let heroContent = true; | ||
$: heroContent = usdTotal || summary; | ||
</script> | ||
|
||
<div class="pt-6"> | ||
<Header back={back === 'header'} /> | ||
|
||
<article | ||
class="main relative flex flex-col items-center rounded-lg pb-6 pt-10" | ||
class:pb-16={$authNotSignedIn} | ||
> | ||
{#if $authSignedIn} | ||
{#if $authSignedIn} | ||
<article class="main relative flex flex-col items-center rounded-lg pb-6 pt-10"> | ||
<HeroContent {usdTotal} {summary} {actions} back={back === 'hero'} /> | ||
{:else if heroContent} | ||
<HeroSignIn /> | ||
{/if} | ||
</article> | ||
</article> | ||
{/if} | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- source: ISC Lucide - please visit https://lucide.dev/license --> | ||
<svg | ||
width="22" | ||
height="22" | ||
viewBox="0 0 22 22" | ||
fill="currentColor" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M12.8333 2.75016C12.8333 2.2439 13.2437 1.8335 13.75 1.8335H17.4166C18.146 1.8335 18.8455 2.12323 19.3612 2.63895C19.8769 3.15468 20.1666 3.85415 20.1666 4.5835V17.4168C20.1666 18.1462 19.8769 18.8456 19.3612 19.3614C18.8455 19.8771 18.146 20.1668 17.4166 20.1668H13.75C13.2437 20.1668 12.8333 19.7564 12.8333 19.2502C12.8333 18.7439 13.2437 18.3335 13.75 18.3335H17.4166C17.6598 18.3335 17.8929 18.2369 18.0648 18.065C18.2367 17.8931 18.3333 17.6599 18.3333 17.4168V4.5835C18.3333 4.34038 18.2367 4.10722 18.0648 3.93531C17.8929 3.76341 17.6598 3.66683 17.4166 3.66683H13.75C13.2437 3.66683 12.8333 3.25642 12.8333 2.75016Z" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M8.51849 5.76849C8.87647 5.4105 9.45687 5.4105 9.81485 5.76849L14.3982 10.3518C14.7562 10.7098 14.7562 11.2902 14.3982 11.6482L9.81485 16.2315C9.45687 16.5895 8.87647 16.5895 8.51849 16.2315C8.1605 15.8735 8.1605 15.2931 8.51849 14.9352L12.4536 11L8.51849 7.06485C8.1605 6.70687 8.1605 6.12647 8.51849 5.76849Z" | ||
/> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M1.83331 11.0002C1.83331 10.4939 2.24372 10.0835 2.74998 10.0835H13.75C14.2562 10.0835 14.6666 10.4939 14.6666 11.0002C14.6666 11.5064 14.2562 11.9168 13.75 11.9168H2.74998C2.24372 11.9168 1.83331 11.5064 1.83331 11.0002Z" | ||
/> | ||
</svg> |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { Result_1 } from '$declarations/backend/backend.did'; | ||
|
||
export type AllowSigningResponse = Result_1; |
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.