|
|
@ -113,7 +113,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
let error; |
|
|
|
let error; |
|
|
|
|
|
|
|
|
|
|
|
let trusted = false; |
|
|
|
let trusted = true; |
|
|
|
|
|
|
|
|
|
|
|
let mnemonic = ""; |
|
|
|
let mnemonic = ""; |
|
|
|
|
|
|
|
|
|
|
@ -331,7 +331,7 @@ |
|
|
|
bind:this={top} |
|
|
|
bind:this={top} |
|
|
|
> |
|
|
|
> |
|
|
|
{#if step == "load"} |
|
|
|
{#if step == "load"} |
|
|
|
<div class="flex-col justify-center p-4 pt-6" class:flex={height > 660}> |
|
|
|
<div class="flex flex-col justify-center p-4 pt-6"> |
|
|
|
<h2 class="pb-5 text-xl self-start"> |
|
|
|
<h2 class="pb-5 text-xl self-start"> |
|
|
|
How to open your wallet? You have 2 options: |
|
|
|
How to open your wallet? You have 2 options: |
|
|
|
</h2> |
|
|
|
</h2> |
|
|
@ -383,28 +383,28 @@ |
|
|
|
<li>Enter the PIN code that you chose when you created your wallet.</li> |
|
|
|
<li>Enter the PIN code that you chose when you created your wallet.</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
|
|
|
|
|
|
|
|
<div class=" max-w-xl lg:px-8 mx-auto px-4 text-primary-700"> |
|
|
|
|
|
|
|
<!-- Save wallet? --> |
|
|
|
<!-- Save wallet? --> |
|
|
|
{#if for_import} |
|
|
|
{#if for_import} |
|
|
|
<div class="max-w-xl lg:px-8 mx-auto px-4 mb-8"> |
|
|
|
<div class="max-w-xl lg:px-8 mx-auto px-4 mb-2"> |
|
|
|
<span class="text-xl">Do you trust this device? </span> <br /> |
|
|
|
<span class="text-xl">Do you trust this device? </span> <br /> |
|
|
|
|
|
|
|
<p class="text-sm"> |
|
|
|
|
|
|
|
If you do, if this device is yours or is used by few trusted persons |
|
|
|
|
|
|
|
of your family or workplace, and you would like to login again from |
|
|
|
|
|
|
|
this device in the future, then you can save your wallet on this |
|
|
|
|
|
|
|
device. To the contrary, if this device is public and shared by |
|
|
|
|
|
|
|
strangers, do not save your wallet here. {#if !tauri_platform}By |
|
|
|
|
|
|
|
selecting this option, you agree to saving some cookies on your |
|
|
|
|
|
|
|
browser.{/if}<br /> |
|
|
|
|
|
|
|
</p> |
|
|
|
<div class="flex justify-center items-center my-4"> |
|
|
|
<div class="flex justify-center items-center my-4"> |
|
|
|
<Toggle class="" bind:checked={trusted} |
|
|
|
<Toggle class="" bind:checked={trusted} |
|
|
|
>Yes, save my wallet on this device</Toggle |
|
|
|
>Yes, save my wallet on this device</Toggle |
|
|
|
> |
|
|
|
> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<p class="text-sm"> |
|
|
|
|
|
|
|
If you do, if this device is yours or is used by few trusted |
|
|
|
|
|
|
|
persons of your family or workplace, and you would like to login |
|
|
|
|
|
|
|
again from this device in the future, then you can save your |
|
|
|
|
|
|
|
wallet on this device. To the contrary, if this device is public |
|
|
|
|
|
|
|
and shared by strangers, do not save your wallet here. {#if !tauri_platform}By |
|
|
|
|
|
|
|
selecting this option, you agree to save some cookies on your |
|
|
|
|
|
|
|
browser.{/if}<br /> |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/if} |
|
|
|
{/if} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class=" max-w-xl lg:px-8 mx-auto px-4 text-primary-700"> |
|
|
|
<div class="flex flex-col justify-centerspace-x-12 mt-4 mb-4"> |
|
|
|
<div class="flex flex-col justify-centerspace-x-12 mt-4 mb-4"> |
|
|
|
{#if !loaded} |
|
|
|
{#if !loaded} |
|
|
|
Loading pazzle... |
|
|
|
Loading pazzle... |
|
|
@ -449,13 +449,15 @@ |
|
|
|
class="w-8 h-8 mr-2 -ml-1 transition duration-75 focus:outline-none group-hover:text-gray-900 dark:group-hover:text-white" |
|
|
|
class="w-8 h-8 mr-2 -ml-1 transition duration-75 focus:outline-none group-hover:text-gray-900 dark:group-hover:text-white" |
|
|
|
/>Cancel login</button |
|
|
|
/>Cancel login</button |
|
|
|
> |
|
|
|
> |
|
|
|
<a |
|
|
|
<span |
|
|
|
on:click={start_with_mnemonic} |
|
|
|
on:click={start_with_mnemonic} |
|
|
|
|
|
|
|
on:keypress={start_with_mnemonic} |
|
|
|
|
|
|
|
role="link" |
|
|
|
tabindex="0" |
|
|
|
tabindex="0" |
|
|
|
class="mt-1 text-lg px-5 py-2.5 text-center inline-flex items-center mb-2 underline cursor-pointer" |
|
|
|
class="mt-1 text-lg px-5 py-2.5 text-center inline-flex items-center mb-2 underline cursor-pointer" |
|
|
|
> |
|
|
|
> |
|
|
|
Open with Mnemonic instead |
|
|
|
Open with Mnemonic instead |
|
|
|
</a> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -477,11 +479,11 @@ |
|
|
|
<label |
|
|
|
<label |
|
|
|
for="mnemonic-input" |
|
|
|
for="mnemonic-input" |
|
|
|
class="block mb-2 text-xl text-gray-900 dark:text-white" |
|
|
|
class="block mb-2 text-xl text-gray-900 dark:text-white" |
|
|
|
>Your 12 words mnemonic</label |
|
|
|
>Enter your 12 words mnemonic</label |
|
|
|
> |
|
|
|
> |
|
|
|
<PasswordInput |
|
|
|
<PasswordInput |
|
|
|
id="mnemonic-input" |
|
|
|
id="mnemonic-input" |
|
|
|
placeholder="Enter your 12 words mnemonic here separated by spaces" |
|
|
|
placeholder="12 words separated by spaces" |
|
|
|
bind:value={mnemonic} |
|
|
|
bind:value={mnemonic} |
|
|
|
className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" |
|
|
|
className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" |
|
|
|
auto_complete="mnemonic" |
|
|
|
auto_complete="mnemonic" |
|
|
@ -489,7 +491,7 @@ |
|
|
|
<div class="flex"> |
|
|
|
<div class="flex"> |
|
|
|
<Button |
|
|
|
<Button |
|
|
|
type="submit" |
|
|
|
type="submit" |
|
|
|
class="mt-3 ml-auto text-white bg-primary-700 disabled:opacity-65 focus:ring-4 focus:ring-blue-500 focus:border-blue-500 rounded-lg text-lg px-5 py-2.5 text-center inline-flex items-center dark:focus:ring-blue-500 dark:focus:border-blue-500" |
|
|
|
class="mt-3 mb-2 ml-auto text-white bg-primary-700 disabled:opacity-65 focus:ring-4 focus:ring-blue-500 focus:border-blue-500 rounded-lg text-lg px-5 py-2.5 text-center inline-flex items-center dark:focus:ring-blue-500 dark:focus:border-blue-500" |
|
|
|
on:click={start_pin} |
|
|
|
on:click={start_pin} |
|
|
|
disabled={mnemonic.split(" ").length !== 12} |
|
|
|
disabled={mnemonic.split(" ").length !== 12} |
|
|
|
><CheckCircle |
|
|
|
><CheckCircle |
|
|
@ -553,7 +555,7 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
<span |
|
|
|
<span |
|
|
|
class="sel drop-shadow-[2px_2px_2px_rgba(255,255,255,1)]" |
|
|
|
class="sel drop-shadow-[2px_2px_2px_rgba(255,255,255,1)]" |
|
|
|
class:text-[9em]={!mobile} |
|
|
|
class:text-[8em]={!mobile} |
|
|
|
class:text-[6em]={mobile}>{emoji.sel}</span |
|
|
|
class:text-[6em]={mobile}>{emoji.sel}</span |
|
|
|
> |
|
|
|
> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -574,6 +576,9 @@ |
|
|
|
<button |
|
|
|
<button |
|
|
|
tabindex="0" |
|
|
|
tabindex="0" |
|
|
|
class="pindigit m-1 disabled:opacity-15 disabled:text-gray-200 select-none align-bottom text-7xl p-0 w-full aspect-square border-0" |
|
|
|
class="pindigit m-1 disabled:opacity-15 disabled:text-gray-200 select-none align-bottom text-7xl p-0 w-full aspect-square border-0" |
|
|
|
|
|
|
|
class:h-[160px]={!mobile} |
|
|
|
|
|
|
|
class:h-[100px]={mobile} |
|
|
|
|
|
|
|
class:text-8xl={!mobile} |
|
|
|
on:click={async () => await on_pin_key(num)} |
|
|
|
on:click={async () => await on_pin_key(num)} |
|
|
|
disabled={pin_code.length >= 4} |
|
|
|
disabled={pin_code.length >= 4} |
|
|
|
> |
|
|
|
> |
|
|
@ -587,6 +592,9 @@ |
|
|
|
<button |
|
|
|
<button |
|
|
|
tabindex="0" |
|
|
|
tabindex="0" |
|
|
|
class="pindigit disabled:opacity-15 m-1 disabled:text-gray-200 select-none align-bottom text-7xl p-0 w-full aspect-square border-0" |
|
|
|
class="pindigit disabled:opacity-15 m-1 disabled:text-gray-200 select-none align-bottom text-7xl p-0 w-full aspect-square border-0" |
|
|
|
|
|
|
|
class:h-[160px]={!mobile} |
|
|
|
|
|
|
|
class:h-[100px]={mobile} |
|
|
|
|
|
|
|
class:text-8xl={!mobile} |
|
|
|
on:click={async () => await on_pin_key(shuffle_pin[9])} |
|
|
|
on:click={async () => await on_pin_key(shuffle_pin[9])} |
|
|
|
disabled={pin_code.length >= 4} |
|
|
|
disabled={pin_code.length >= 4} |
|
|
|
> |
|
|
|
> |
|
|
@ -600,7 +608,7 @@ |
|
|
|
> |
|
|
|
> |
|
|
|
<LockOpen |
|
|
|
<LockOpen |
|
|
|
tabindex="-1" |
|
|
|
tabindex="-1" |
|
|
|
class="w-full h-[50%] transition duration-75 focus:outline-none select-none group-hover:text-gray-900 dark:group-hover:text-white" |
|
|
|
class="w-[50%] h-[50%] transition duration-75 focus:outline-none select-none group-hover:text-gray-900 dark:group-hover:text-white" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Button> |
|
|
|
</Button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -690,7 +698,7 @@ |
|
|
|
/>Cancel</button |
|
|
|
/>Cancel</button |
|
|
|
> |
|
|
|
> |
|
|
|
<button |
|
|
|
<button |
|
|
|
class="mt-10 select-none text-white bg-primary-700 hover:bg-primary-700/90 focus:ring-4 focus:ring-primary-100/50 rounded-lg text-lg px-5 py-2.5 text-center inline-flex items-center dark:focus:ring-primary-700/55" |
|
|
|
class="mt-10 ml-2 select-none text-white bg-primary-700 hover:bg-primary-700/90 focus:ring-4 focus:ring-primary-100/50 rounded-lg text-lg px-5 py-2.5 text-center inline-flex items-center dark:focus:ring-primary-700/55" |
|
|
|
on:click={init} |
|
|
|
on:click={init} |
|
|
|
> |
|
|
|
> |
|
|
|
<ArrowPath |
|
|
|
<ArrowPath |
|
|
@ -731,10 +739,10 @@ |
|
|
|
min-height: 99px; |
|
|
|
min-height: 99px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.pazzleline { |
|
|
|
/* .pazzleline { |
|
|
|
margin-right: auto; |
|
|
|
margin-right: auto; |
|
|
|
margin-left: auto; |
|
|
|
margin-left: auto; |
|
|
|
} |
|
|
|
} */ |
|
|
|
|
|
|
|
|
|
|
|
.sel { |
|
|
|
.sel { |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|