Skip to content

Commit 78d22ed

Browse files
committed
style: format code
1 parent f581788 commit 78d22ed

File tree

91 files changed

+1468
-1758
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+1468
-1758
lines changed

.github/workflows/extension-artifact-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
with:
3232
name: mutable-web-extension-${{ github.head_ref }}
3333
path: apps/extension/build/
34-
if-no-files-found: error
34+
if-no-files-found: error

.github/workflows/extension-pr-comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ jobs:
7272
| Logs | ${{ env.JOB_PATH }}
7373
| Extension Build | ${{ env.SUITES_PATH }}/${{ env.PREVIOUS_SUITE_ID }}/artifacts/${{ env.ARTIFACT_ID }}
7474
75-
[badge]: https://img.shields.io/badge/Build-Success!-3fb950?logo=github&style=for-the-badge
75+
[badge]: https://img.shields.io/badge/Build-Success!-3fb950?logo=github&style=for-the-badge

.github/workflows/extension-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ jobs:
3939
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
4040
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
4141
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
42-
run: pnpm release
42+
run: pnpm release

.prettierignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
build
33
coverage
44
dist
5-
package-lock.json
5+
package-lock.json
6+
node_modules
7+
pnpm-lock.yaml
8+
apps/extension/resources/custom-elements.min.js

apps/extension/manifest.json

Lines changed: 9 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
"options_page": "options.html",
1818
"content_scripts": [
1919
{
20-
"matches": [
21-
"http://*/*",
22-
"https://*/*"
23-
],
20+
"matches": ["http://*/*", "https://*/*"],
2421
"exclude_globs": [
2522
"https://social.dapplets.org/*",
2623
"https://social.testnet.dapplets.org/*",
@@ -29,43 +26,22 @@
2926
"http://127.0.0.1:3000/*",
3027
"https://augm.link/*"
3128
],
32-
"js": [
33-
"custom-elements.min.js",
34-
"contentscript.js"
35-
],
29+
"js": ["custom-elements.min.js", "contentscript.js"],
3630
"run_at": "document_idle"
3731
},
3832
{
39-
"matches": [
40-
"https://app.mynearwallet.com/*",
41-
"https://testnet.mynearwallet.com/*"
42-
],
43-
"js": [
44-
"mnw-patch-inpage.js"
45-
],
33+
"matches": ["https://app.mynearwallet.com/*", "https://testnet.mynearwallet.com/*"],
34+
"js": ["mnw-patch-inpage.js"],
4635
"run_at": "document_start",
4736
"world": "MAIN"
4837
}
4938
],
5039
"web_accessible_resources": [
5140
{
52-
"resources": [
53-
"callback.html",
54-
"bootstrap.min.css"
55-
],
56-
"matches": [
57-
"*://*/*"
58-
]
41+
"resources": ["callback.html", "bootstrap.min.css"],
42+
"matches": ["*://*/*"]
5943
}
6044
],
61-
"permissions": [
62-
"storage",
63-
"tabs",
64-
"contextMenus"
65-
],
66-
"host_permissions": [
67-
"*://localhost/*",
68-
"http://*/*",
69-
"https://*/*"
70-
]
71-
}
45+
"permissions": ["storage", "tabs", "contextMenus"],
46+
"host_permissions": ["*://localhost/*", "http://*/*", "https://*/*"]
47+
}

apps/extension/src/common/networks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ export const networkConfigs = {
1919

2020
export type NearNetworkId = 'testnet' | 'mainnet'
2121

22-
export const DefaultNetworkId: NearNetworkId = 'mainnet'
22+
export const DefaultNetworkId: NearNetworkId = 'mainnet'

apps/extension/src/contentscript/multitable-panel/assets/stylesDropdown.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ export const MutationsList = styled.div`
123123
display: flex;
124124
flex-direction: column;
125125
background: #fff;
126-
box-shadow: 0 4px 5px rgb(45 52 60 / 10%), 0 4px 20px rgb(11 87 111 / 15%);
126+
box-shadow:
127+
0 4px 5px rgb(45 52 60 / 10%),
128+
0 4px 20px rgb(11 87 111 / 15%);
127129
width: 318px;
128130
left: -26px;
129131
top: 38px;
@@ -182,7 +184,9 @@ export const MutationsListWrapper = styled.div`
182184
height: 2px;
183185
background: #384bff;
184186
border-radius: 2px;
185-
box-shadow: 0 2px 6px rgb(0 0 0 / 9%), 0 2px 2px rgb(38 117 209 / 4%);
187+
box-shadow:
188+
0 2px 6px rgb(0 0 0 / 9%),
189+
0 2px 2px rgb(38 117 209 / 4%);
186190
}
187191
`
188192
export const ButtonListBlock = styled.div`

apps/extension/src/contentscript/multitable-panel/components/alert.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ const WrapperAlert = styled.div<{ severity?: 'success' | 'info' | 'warning' | 'e
1212
p.severity === 'success'
1313
? 'rgba(233, 252, 240, 1)'
1414
: p.severity === 'warning'
15-
? 'rgba(255, 248, 235, 1)'
16-
: p.severity === 'error'
17-
? 'rgba(246, 240, 246, 1)'
18-
: 'rgba(234, 241, 255, 1)'};
15+
? 'rgba(255, 248, 235, 1)'
16+
: p.severity === 'error'
17+
? 'rgba(246, 240, 246, 1)'
18+
: 'rgba(234, 241, 255, 1)'};
1919
2020
color: ${(p) =>
2121
p.severity === 'success'
2222
? 'rgba(3, 187, 66, 1)'
2323
: p.severity === 'warning'
24-
? 'rgba(208, 145, 26, 1)'
25-
: p.severity === 'error'
26-
? 'rgba(219, 80, 74, 1)'
27-
: 'rgba(36, 110, 253, 1)'};
24+
? 'rgba(208, 145, 26, 1)'
25+
: p.severity === 'error'
26+
? 'rgba(219, 80, 74, 1)'
27+
: 'rgba(36, 110, 253, 1)'};
2828
2929
outline: none;
3030
`

apps/extension/src/contentscript/multitable-panel/components/image.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export const Image: FC<Props> = ({ image, alt, fallbackUrl }) => {
1818
image?.ipfs_cid
1919
? setImageUrl(`https://ipfs.near.social/ipfs/${image.ipfs_cid}`)
2020
: image?.url
21-
? setImageUrl(image?.url)
22-
: setImageUrl(fallbackUrl)
21+
? setImageUrl(image?.url)
22+
: setImageUrl(fallbackUrl)
2323
}, [image])
2424

2525
return (

apps/extension/src/contentscript/multitable-panel/components/mutation-editor-modal.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ const AppsList = styled.div`
100100
height: 2px;
101101
background: #384bff;
102102
border-radius: 2px;
103-
box-shadow: 0 2px 6px rgb(0 0 0 / 9%), 0 2px 2px rgb(38 117 209 / 4%);
103+
box-shadow:
104+
0 2px 6px rgb(0 0 0 / 9%),
105+
0 2px 2px rgb(38 117 209 / 4%);
104106
}
105107
`
106108

@@ -220,8 +222,8 @@ export const MutationEditorModal: FC<Props> = ({ baseMutation, apps, onClose })
220222
!baseMutation
221223
? MutationModalMode.Creating
222224
: isOwn
223-
? MutationModalMode.Editing
224-
: MutationModalMode.Forking
225+
? MutationModalMode.Editing
226+
: MutationModalMode.Forking
225227
)
226228

227229
useEffect(() => {

0 commit comments

Comments
 (0)