Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iswarmondal committed Feb 24, 2023
1 parent a387586 commit 73a2d02
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 22 deletions.
14 changes: 7 additions & 7 deletions src/lib/components/Logout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
setJwtToken,
walletAddress,
onboardingStepsLeft,
avatar,
avatar
} from '$lib/store/store';
let showModal = false;
Expand All @@ -29,7 +29,7 @@
on:click={() => (showModal = true)}
class="block rounded-lg shadow-lg bg-red-500 dark:bg-red-500 text-white p-5 w-full h-auto hover:bg-slate-600 active:bg-slate-500 text-xl text-center"
>
Logout
Reset Wallet
</button>
<div class="modal modal-bottom sm:modal-middle" class:modal-open={showModal}>
<div class="modal-box dark:bg-gray-900 dark:text-white">
Expand All @@ -41,27 +41,27 @@
>
</button>
<p class="text-md mt-5 mb-3">Enter 'logout'</p>
<p class="text-md mt-5 mb-3">Enter 'reset'</p>
<input
type="text"
placeholder="logout"
placeholder="reset"
class="input input-bordered dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs"
bind:value
on:change={() => {
if (value == 'logout') {
if (value == 'reset') {
captcha = true;
}
}}
/>
{#if captcha}
<div class="modal-action">
<a href="/">
<button class="btn" on:click={handleLogout}> Logout </button>
<button class="btn" on:click={handleLogout}> Reset </button>
</a>
</div>
{:else}
<div class="modal-action">
<button class="btn" disabled> Logout </button>
<button class="btn" disabled> Reset </button>
</div>
{/if}
</div>
Expand Down
8 changes: 5 additions & 3 deletions src/routes/Onboarding/get-secret-key/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@
<div>
<Header />
<div class="mt-6">
<h1 class="text-5xl text-left mb-60">Get your seed phase here</h1>
<h1 class="text-5xl text-left mb-60">Get your seed phrase here</h1>
<button
class="btn btn-wide"
on:click={() => {
showModal = true;
generateWallet();
}}>Seed phase</button
}}
>
Generate Seed phrase</button
>
<div class="modal" class:modal-open={showModal}>
<div class="modal-box dark:bg-gray-800 dark:text-white">
<h3 class="font-bold text-lg">Secret Recovery Password</h3>
<h3 class="font-bold text-lg">Secret Recovery Phrase</h3>
<br />
<h3 class="text-sm text-red-500 dark:text-red-300">
This is the only way you will be able to recover your account. Please store it somewhere
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<h2 class="text-xl text-left">Message</h2>
<br />
<p class="text-lg text-left dark:text-green-100">
{data?.message ?? '...'}
{`${data?.payload?.eula} ${data?.payload?.flowId} ` ?? '...'}
</p>
<br />
<div class="flex w-full mt-2">
Expand All @@ -135,7 +135,7 @@
<div class="divider divider-horizontal" />

<div class="grid flex-grow">
<button class="btn w-full mt-5" on:click={handleSave}> Save </button>
<button class="btn w-full mt-5" on:click={handleSave}> Sign </button>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/Onboarding/import-old-wallet/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
<h1 class="text-5xl text-left mb-60">Enter your seed phase</h1>

<button class="btn btn-wide modal-button" on:click={() => (showModal = true)}>
Enter Seed Phase
Enter Seed Phrase
</button>

<input type="checkbox" id="my-modal" class="modal-toggle" />
<div class="modal" class:modal-open={showModal}>
<div class="modal-box dark:bg-gray-800 dark:text-white">
<h3 class="font-bold text-lg">Seed Phase</h3>
<h3 class="font-bold text-lg">Seed Phrase</h3>
<br />
{#if userWalletAddress !== ''}
<h2 class="text-sm text-green-300">Found this Wallet</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<h2 class="text-xl text-left">Message</h2>
<br />
<p class="text-lg text-left dark:text-green-100">
{data?.message ?? '...'}
{`${data?.payload?.eula} ${data?.payload?.flowId} ` ?? '...'}
</p>
<br />
<div class="flex w-full mt-2">
Expand All @@ -135,7 +135,7 @@
<div class="divider divider-horizontal" />

<div class="grid flex-grow">
<button class="btn w-full mt-5" on:click={handleSave}> Save </button>
<button class="btn w-full mt-5" on:click={handleSave}> Sign </button>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/settings/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@
</div>
</div>
<br /> -->
<!-- Show Seed Phase -->
<!-- Show Seed Phrase -->
<br />
<div class="justify-center">
<a href="/settings/show-secret-key" class="text-xl text-center">
<div
class="block rounded-lg shadow-lg bg-white dark:bg-gray-800 dark:text-white p-5 h-auto hover:bg-slate-200 active:bg-slate-500"
>
Show Seed Phase
Show Seed Phrase
</div>
</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/routes/settings/show-secret-key/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<br />
{#if !isCorrectPassword}
<div>
<h1 class="text-5xl text-left text-black dark:text-white">Show Seed Phase</h1>
<h1 class="text-5xl text-left text-black dark:text-white">Show Seed Phrase</h1>
<p
class="text-md mt-5 mb-3 dark:text-white dark:bg-gray-900"
class:text-red-500={errorMessage.length > 1}
Expand All @@ -49,11 +49,11 @@
</div>
{:else}
<div>
<h1 class="text-5xl text-left text-black dark:text-white">Show Seed Phase</h1>
<h1 class="text-5xl text-left text-black dark:text-white">Show Seed Phrase</h1>
<div class="p-5 text-lg border rounded-md mt-5 font-semibold">
{secretKey}
</div>
<button on:click={handleDownload} class="btn mt-5">Export Secret Key</button>
<button on:click={handleDownload} class="btn mt-5">Export mnemonic</button>
</div>
{/if}
</div>
2 changes: 1 addition & 1 deletion static/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "NetSepio",
"version": "0.2.0",
"version": "0.3.0",
"manifest_version": 3,
"short_name": "Detect & Label Cyber Threats",
"description": "Browser Extension to detect threats and label domains as spam, malware, advertisements, etc.",
Expand Down

0 comments on commit 73a2d02

Please sign in to comment.