Skip to content

Commit

Permalink
Fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mrruby committed Dec 8, 2023
1 parent ce79f01 commit 842f82d
Show file tree
Hide file tree
Showing 18 changed files with 159 additions and 84 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"*.{js,ts,svelte,postcss,json}": ["eslint", "prettier --write ."]
"src/**/*.{js,ts,svelte,json}": ["eslint", "prettier --write ."]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier . --check . && eslint .",
"format": "prettier . --write .",
"lint": "prettier --check 'src/**/*.{js,ts,svelte,json}' && eslint 'src/**/*.{js,ts,svelte}'",
"format": "prettier --write 'src/**/*.{js,ts,svelte,json}'",
"prepare": "husky install"
},
"devDependencies": {
Expand Down
1 change: 0 additions & 1 deletion src/lib/const/secure-store.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const SESSION = 'session';
export const LOCAL = 'local';

export const SESSION_DATA = 'sessionData';
export const PASSWORD = 'password';
export const DEVICE_KEY = 'deviceKey';
1 change: 0 additions & 1 deletion src/lib/helpers/other.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export const isChromeDefined = () => typeof chrome !== 'undefined';

export const isChromeStorageSafe = () =>
isChromeDefined() && chrome.storage && chrome.storage.session;
6 changes: 3 additions & 3 deletions src/routes/setup-pass/import-key/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@

<Title>Import Your Device Seed</Title>
<AppParagraph
extraProps="my-4 max-w-xs text-center"
extraProps="text-center my-4 max-w-xs"
text="Kindly import your device seed file below to recover your Key Manager"
/>
<div class="w-full p-6 px-16">
<Dropzone
containerClasses={clsx('p-4 border rounded-lg flex flex-col justify-center items-center', {
'bg-white': file,
'bg-white border-primary': file,
'bg-primary-background py-12 px-0 border-purple': !file
})}
inputElement={false}
Expand All @@ -34,7 +34,7 @@
disableDefaultStyles={true}
>
{#if file}
<div class="flex w-full items-center justify-between">
<div class=" flex w-full items-center justify-between">
<p class="text-base font-semibold">{file?.name}</p>
<img src="/img/checkbox.svg" alt="Checkbox" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion static/img/arrow-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 14 additions & 6 deletions static/img/arrow-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions static/img/check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions static/img/checkbox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion static/img/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 16 additions & 10 deletions static/img/cloud.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 26 additions & 15 deletions static/img/download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 842f82d

Please sign in to comment.