Skip to content

Commit 4a5842d

Browse files
authored
app refactor (#259)
1 parent 28443cc commit 4a5842d

File tree

116 files changed

+50470
-4119
lines changed

Some content is hidden

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

116 files changed

+50470
-4119
lines changed

.yarn/install-state.gz

-38.2 KB
Binary file not shown.

frontend/.env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
ESLINT_NO_DEV_ERRORS=true
22
SKIP_PREFLIGHT_CHECK=true
3+
ALCHEMY_PROJECT_ID=

frontend/.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
build
3+
src/assets/three.module.js

frontend/.eslintrc.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ module.exports = {
2929
'import/no-extraneous-dependencies': 'off', // allow dependencies from sdk
3030
'import/prefer-default-export': 'off',
3131
'no-plusplus': ['warn', { allowForLoopAfterthoughts: true }],
32-
// allow logs
33-
'no-console': 'off',
34-
'no-alert': 'off',
3532
// TODO: enable before shipping
3633
'jsx-a11y/label-has-associated-control': 'off',
3734
'jsx-a11y/click-events-have-key-events': 'off',
@@ -40,6 +37,8 @@ module.exports = {
4037
'no-else-return': 'off', // seems to be buggy
4138
'no-await-in-loop': 'off',
4239
'guard-for-in': 'off',
40+
'func-names': 'off',
41+
'prefer-arrow-callback': 'off',
4342
},
4443
settings: {
4544
'import/resolver': {

frontend/.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
src/sdk
1+
build
2+
node_modules

frontend/.yarn/install-state.gz

572 KB
Binary file not shown.

frontend/craco.config.js

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,34 @@
1-
// https://tailwindcss.com/docs/guides/create-react-app
1+
const path = require('path')
2+
23
module.exports = {
34
style: {
45
postcss: {
56
plugins: [require('tailwindcss'), require('autoprefixer')],
67
},
78
},
9+
10+
webpack: {
11+
configure: (webpackConfig) => {
12+
webpackConfig.module.rules.push({
13+
test: /\.js$/,
14+
include: [path.resolve(__dirname, 'node_modules/@web3-onboard'), path.resolve(__dirname, 'node_modules/viem')], // Include @web3-onboard and viem packages
15+
use: {
16+
loader: 'babel-loader',
17+
options: {
18+
presets: ['@babel/preset-env'],
19+
plugins: [
20+
'@babel/plugin-proposal-numeric-separator',
21+
'@babel/plugin-proposal-nullish-coalescing-operator',
22+
'@babel/plugin-proposal-optional-chaining',
23+
],
24+
},
25+
},
26+
})
27+
return webpackConfig
28+
},
29+
},
30+
31+
babel: {
32+
plugins: ['@babel/plugin-proposal-nullish-coalescing-operator', '@babel/plugin-proposal-optional-chaining'],
33+
},
834
}

frontend/package.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"@apollo/client": "^3.3.16",
88
"@craco/craco": "^6.1.2",
99
"@headlessui/react": "^1.4.1",
10-
"@heroicons/react": "^1.0.4",
10+
"@heroicons/react": "v1",
1111
"@testing-library/jest-dom": "^5.11.4",
1212
"@testing-library/react": "^11.1.0",
1313
"@testing-library/user-event": "^12.1.10",
@@ -16,11 +16,22 @@
1616
"@types/react": "^17.0.0",
1717
"@types/react-dom": "^17.0.0",
1818
"@types/styled-components": "^5.1.9",
19-
"bnc-onboard": "^1.25.0",
19+
"@web3-onboard/coinbase": "^2.4.1",
20+
"@web3-onboard/core": "^2.23.0",
21+
"@web3-onboard/gas": "^2.2.1",
22+
"@web3-onboard/gnosis": "^2.3.1",
23+
"@web3-onboard/injected-wallets": "^2.11.2",
24+
"@web3-onboard/ledger": "^2.7.1",
25+
"@web3-onboard/metamask": "^2.1.1",
26+
"@web3-onboard/react": "^2.10.0",
27+
"@web3-onboard/wagmi": "^2.0.1",
28+
"@web3-onboard/walletconnect": "^2.6.1",
29+
"@web3-onboard/web3auth": "^2.3.1",
2030
"graphql": "^15.5.0",
2131
"numeral-es6": "^1.0.0",
2232
"react": "^17.0.2",
2333
"react-dom": "^17.0.2",
34+
"react-router-dom": "^6.6.0",
2435
"react-scripts": "4.0.3",
2536
"react-spring": "^9.2.3",
2637
"string_decoder": "^1.3.0",
@@ -68,6 +79,7 @@
6879
}
6980
},
7081
"devDependencies": {
82+
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
7183
"@types/coingecko-api": "^1.0.0",
7284
"@typescript-eslint/eslint-plugin": "^4.26.0",
7385
"@typescript-eslint/parser": "^4.26.0",
@@ -86,6 +98,7 @@
8698
"postcss": "^7.0.35",
8799
"prettier": "^2.3.0",
88100
"react-is": "^17.0.2",
101+
"serve": "^14.2.4",
89102
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.1.2"
90103
}
91104
}

frontend/public/favicon.ico

-3.78 KB
Binary file not shown.
-10.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)