Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
feat: implement mnemonic download (#2844)
Browse files Browse the repository at this point in the history
  • Loading branch information
dated committed Sep 19, 2020
1 parent 1d96f81 commit 06bf793
Show file tree
Hide file tree
Showing 24 changed files with 772 additions and 391 deletions.
1 change: 1 addition & 0 deletions filePath
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test mnemonic
10 changes: 5 additions & 5 deletions src/app/components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const AlertContent = styled.div<{ size?: Size }>`
case "sm":
return tw`px-6 py-4`;
case "lg":
return tw`px-10 py-8`;
return tw`px-8 py-8`;
default:
return tw`px-8 py-6`;
}
Expand All @@ -30,7 +30,7 @@ const AlertIconWrapper = styled.div<{ size?: Size }>`
case "sm":
return tw`px-4 py-2`;
case "lg":
return tw`px-8 py-6`;
return tw`px-10 py-6`;
default:
return tw`px-6 py-4`;
}
Expand All @@ -57,13 +57,13 @@ export const Alert = ({ variant, title, size, children }: AlertProps) => (
>
<AlertIcon variant={variant!} />
</AlertIconWrapper>
<AlertContent size={size} className={`flex-1 bg-theme-${variant}-100`}>
<AlertContent size={size} className={`flex-1 bg-theme-${variant}-100 space-y-2`}>
{title && (
<p className={`text-xl font-bold text-theme-${variant}`} data-testid="alert__title">
<p className={`text-lg font-bold text-theme-${variant}`} data-testid="alert__title">
{title}
</p>
)}
{children}
{children && <div className="text-sm">{children}</div>}
</AlertContent>
</div>
);
Expand Down
8 changes: 4 additions & 4 deletions src/app/components/Alert/__snapshots__/Alert.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`Alert should render 1`] = `
</div>
</div>
<div
class="sc-AxirZ evPsEn flex-1 bg-theme-warning-100"
class="sc-AxirZ evPsEn flex-1 bg-theme-warning-100 space-y-2"
/>
</div>
</DocumentFragment>
Expand All @@ -31,7 +31,7 @@ exports[`Alert should render a large one 1`] = `
class="flex rounded-lg overflow-hidden bg-theme-warning"
>
<div
class="sc-AxiKw eRaQyX flex items-center justify-center text-theme-warning bg-theme-warning-200"
class="sc-AxiKw bbrPqH flex items-center justify-center text-theme-warning bg-theme-warning-200"
>
<div
class="sc-AxjAm bIZXgI"
Expand All @@ -44,7 +44,7 @@ exports[`Alert should render a large one 1`] = `
</div>
</div>
<div
class="sc-AxirZ iyxqHr flex-1 bg-theme-warning-100"
class="sc-AxirZ dvrJkn flex-1 bg-theme-warning-100 space-y-2"
/>
</div>
</div>
Expand All @@ -69,7 +69,7 @@ exports[`Alert should render a small one 1`] = `
</div>
</div>
<div
class="sc-AxirZ dzRQiL flex-1 bg-theme-warning-100"
class="sc-AxirZ dzRQiL flex-1 bg-theme-warning-100 space-y-2"
/>
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/app/i18n/common/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,9 @@ export const translations: { [key: string]: any } = {
TITLE: "No results",
SUBTITLE: "No results found. Refine your search and try again",
},

SAVE_FILE: {
SUCCESS: "<bold>{{filePath}}</bold> was saved successfully",
ERROR: "Could not save file: {{error}}",
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,19 @@ exports[`PluginInfo should render properly 1`] = `
</div>
</div>
<div
class="sc-AxirZ evPsEn flex-1 bg-theme-warning-100"
class="sc-AxirZ evPsEn flex-1 bg-theme-warning-100 space-y-2"
>
<p
class="text-xl font-bold text-theme-warning"
class="text-lg font-bold text-theme-warning"
data-testid="alert__title"
>
Disclaimer
</p>
The availability of this plugin in the ARK Desktop Wallet does not mean that either ARK.io or ARK SCIC is directly involved in the development or affiliated with the developer providing this plugin. By installing it on your wallet, you assume every responsibility
<div
class="text-sm"
>
The availability of this plugin in the ARK Desktop Wallet does not mean that either ARK.io or ARK SCIC is directly involved in the development or affiliated with the developer providing this plugin. By installing it on your wallet, you assume every responsibility
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,15 +630,19 @@ exports[`PluginDetails should render properly 1`] = `
</div>
</div>
<div
class="sc-fzqNqU jnurM flex-1 bg-theme-warning-100"
class="sc-fzqNqU jnurM flex-1 bg-theme-warning-100 space-y-2"
>
<p
class="text-xl font-bold text-theme-warning"
class="text-lg font-bold text-theme-warning"
data-testid="alert__title"
>
Disclaimer
</p>
The availability of this plugin in the ARK Desktop Wallet does not mean that either ARK.io or ARK SCIC is directly involved in the development or affiliated with the developer providing this plugin. By installing it on your wallet, you assume every responsibility
<div
class="text-sm"
>
The availability of this plugin in the ARK Desktop Wallet does not mean that either ARK.io or ARK SCIC is directly involved in the development or affiliated with the developer providing this plugin. By installing it on your wallet, you assume every responsibility
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -2131,15 +2135,19 @@ exports[`PluginDetails should render properly as installed 1`] = `
</div>
</div>
<div
class="sc-fzqNqU jnurM flex-1 bg-theme-warning-100"
class="sc-fzqNqU jnurM flex-1 bg-theme-warning-100 space-y-2"
>
<p
class="text-xl font-bold text-theme-warning"
class="text-lg font-bold text-theme-warning"
data-testid="alert__title"
>
Disclaimer
</p>
The availability of this plugin in the ARK Desktop Wallet does not mean that either ARK.io or ARK SCIC is directly involved in the development or affiliated with the developer providing this plugin. By installing it on your wallet, you assume every responsibility
<div
class="text-sm"
>
The availability of this plugin in the ARK Desktop Wallet does not mean that either ARK.io or ARK SCIC is directly involved in the development or affiliated with the developer providing this plugin. By installing it on your wallet, you assume every responsibility
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,15 +445,19 @@ exports[`Settings should change a password 1`] = `
</div>
</div>
<div
class="sc-fzoNJl cMajEE flex-1 bg-theme-success-100"
class="sc-fzoNJl cMajEE flex-1 bg-theme-success-100 space-y-2"
>
<p
class="text-xl font-bold text-theme-success"
class="text-lg font-bold text-theme-success"
data-testid="alert__title"
>
Success
</p>
Your password has been successfully changed.
<div
class="text-sm"
>
Your password has been successfully changed.
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -5018,15 +5022,19 @@ exports[`Settings should set a password 1`] = `
</div>
</div>
<div
class="sc-fzoNJl cMajEE flex-1 bg-theme-success-100"
class="sc-fzoNJl cMajEE flex-1 bg-theme-success-100 space-y-2"
>
<p
class="text-xl font-bold text-theme-success"
class="text-lg font-bold text-theme-success"
data-testid="alert__title"
>
Success
</p>
Your password has been successfully changed.
<div
class="text-sm"
>
Your password has been successfully changed.
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -5640,15 +5648,19 @@ exports[`Settings should show an error alert if the current password does not ma
</div>
</div>
<div
class="sc-fzoNJl cMajEE flex-1 bg-theme-danger-100"
class="sc-fzoNJl cMajEE flex-1 bg-theme-danger-100 space-y-2"
>
<p
class="text-xl font-bold text-theme-danger"
class="text-lg font-bold text-theme-danger"
data-testid="alert__title"
>
Error
</p>
The current password does not match.
<div
class="text-sm"
>
The current password does not match.
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ exports[`DelegateRegistrationForm should error for invalid username 1`] = `
</div>
</div>
<div
class="sc-AxiKw eRaQyX flex-1 bg-theme-warning-100"
class="sc-AxiKw eRaQyX flex-1 bg-theme-warning-100 space-y-2"
>
Keep in mind that you cannot change the name of your delegate after the registration has been registered on the blockchain.
<div
class="text-sm"
>
Keep in mind that you cannot change the name of your delegate after the registration has been registered on the blockchain.
</div>
</div>
</div>
<div
Expand Down Expand Up @@ -290,9 +294,13 @@ exports[`DelegateRegistrationForm should error for long username 1`] = `
</div>
</div>
<div
class="sc-AxiKw eRaQyX flex-1 bg-theme-warning-100"
class="sc-AxiKw eRaQyX flex-1 bg-theme-warning-100 space-y-2"
>
Keep in mind that you cannot change the name of your delegate after the registration has been registered on the blockchain.
<div
class="text-sm"
>
Keep in mind that you cannot change the name of your delegate after the registration has been registered on the blockchain.
</div>
</div>
</div>
<div
Expand Down Expand Up @@ -541,9 +549,13 @@ exports[`DelegateRegistrationForm should error if username already exists 1`] =
</div>
</div>
<div
class="sc-AxiKw eRaQyX flex-1 bg-theme-warning-100"
class="sc-AxiKw eRaQyX flex-1 bg-theme-warning-100 space-y-2"
>
Keep in mind that you cannot change the name of your delegate after the registration has been registered on the blockchain.
<div
class="text-sm"
>
Keep in mind that you cannot change the name of your delegate after the registration has been registered on the blockchain.
</div>
</div>
</div>
<div
Expand Down Expand Up @@ -792,9 +804,13 @@ exports[`DelegateRegistrationForm should render step 2 1`] = `
</div>
</div>
<div
class="sc-AxiKw eRaQyX flex-1 bg-theme-warning-100"
class="sc-AxiKw eRaQyX flex-1 bg-theme-warning-100 space-y-2"
>
Keep in mind that you cannot change the name of your delegate after the registration has been registered on the blockchain.
<div
class="text-sm"
>
Keep in mind that you cannot change the name of your delegate after the registration has been registered on the blockchain.
</div>
</div>
</div>
<div
Expand Down Expand Up @@ -1276,9 +1292,13 @@ exports[`DelegateRegistrationForm should set fee 1`] = `
</div>
</div>
<div
class="sc-AxiKw eRaQyX flex-1 bg-theme-warning-100"
class="sc-AxiKw eRaQyX flex-1 bg-theme-warning-100 space-y-2"
>
Keep in mind that you cannot change the name of your delegate after the registration has been registered on the blockchain.
<div
class="text-sm"
>
Keep in mind that you cannot change the name of your delegate after the registration has been registered on the blockchain.
</div>
</div>
</div>
<div
Expand Down Expand Up @@ -1521,9 +1541,13 @@ exports[`DelegateRegistrationForm should set username 1`] = `
</div>
</div>
<div
class="sc-AxiKw eRaQyX flex-1 bg-theme-warning-100"
class="sc-AxiKw eRaQyX flex-1 bg-theme-warning-100 space-y-2"
>
Keep in mind that you cannot change the name of your delegate after the registration has been registered on the blockchain.
<div
class="text-sm"
>
Keep in mind that you cannot change the name of your delegate after the registration has been registered on the blockchain.
</div>
</div>
</div>
<div
Expand Down
Loading

0 comments on commit 06bf793

Please sign in to comment.