Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add utility code for NFT Features #4256

Merged
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
ee9f03d
import nft utilities
Aug 3, 2022
d8e057c
re-add featureflag provider
Aug 3, 2022
75c65e2
Merge branch 'main' into WEB-687-merge-utility-code-in-the-main-inter…
Aug 3, 2022
99b4d6f
add back in useCurrencyBalanceString fn
Aug 3, 2022
483a616
remove static assets for separate pr
Aug 3, 2022
c614304
remove resolutions, swap dev and regular dependencies, respond to com…
Aug 4, 2022
6db9608
remove currently unused dependencies and resynth .lock
Aug 4, 2022
bfbb146
build: update lockfile
zzmp Aug 5, 2022
a67d353
build: update lockfile
zzmp Aug 5, 2022
67fa6d3
remove env check
Aug 5, 2022
0b46d6f
useCurrencyBalanceString as fn
Aug 5, 2022
f7480bb
remove supported_Wallets until wallet component merged in
Aug 5, 2022
08f9e06
make Atoms an interface
Aug 5, 2022
1992bea
update abis
Aug 5, 2022
46f362e
remove outdated comment
Aug 5, 2022
22bcfb2
update usedebounce hook
Aug 8, 2022
37d26f1
remove useDarkMode
Aug 8, 2022
928ec73
remove useLazyEffect
Aug 8, 2022
bf000bd
remove getEtherscan helper fn
Aug 8, 2022
778341d
remove useLastWallet
Aug 8, 2022
b5ddfe1
remove useWindowDimensions
Aug 8, 2022
d070078
refactor hooks
Aug 8, 2022
1634e76
move hooks from nft to general folder
Aug 8, 2022
1cb2e1f
add walletBalanceInterface and remove wrongNetwork hook
Aug 8, 2022
e3941f7
remove empty obj
Aug 8, 2022
ab81488
remove ethers imports
Aug 9, 2022
7f2c02f
fixed comparison
Aug 9, 2022
a8167ed
same line eslint ignore
Aug 9, 2022
3d0a55d
gtag removed
Aug 9, 2022
d5c9f21
Merge branch 'main' into WEB-687-merge-utility-code-in-the-main-inter…
Aug 10, 2022
c85273a
Merge branch 'main' into WEB-687-merge-utility-code-in-the-main-inter…
Aug 10, 2022
0a29726
revert
Aug 10, 2022
7780756
revert
Aug 10, 2022
63faf5b
build: update lockfile
zzmp Aug 10, 2022
57392e2
remove walletinfo interface
Aug 10, 2022
d7e12ff
remove newline
Aug 10, 2022
df4eef9
remove tslinst exception from isMobile
Aug 10, 2022
d6abda2
remove hiding linter warnings
Aug 10, 2022
83d8d6c
remove unused util
Aug 10, 2022
9d32821
fix linter warnings
Aug 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions craco.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const { VanillaExtractPlugin } = require('@vanilla-extract/webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')

module.exports = {
babel: {
plugins: ['@vanilla-extract/babel-plugin'],
},
webpack: {
plugins: [new VanillaExtractPlugin()],
configure: (webpackConfig) => {
const instanceOfMiniCssExtractPlugin = webpackConfig.plugins.find(
(plugin) => plugin instanceof MiniCssExtractPlugin
)
if (instanceOfMiniCssExtractPlugin !== undefined) instanceOfMiniCssExtractPlugin.options.ignoreOrder = true
return webpackConfig
},
},
}
27 changes: 22 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"i18n:compile": "yarn i18n:extract && lingui compile",
"i18n:pseudo": "lingui extract --locale pseudo && lingui compile",
"prepare": "yarn contracts:compile && yarn graphql:generate && yarn i18n:compile",
"start": "react-scripts start",
"build": "react-scripts build",
"start": "craco start",
"build": "craco build",
"serve": "serve build -l 3000",
"lint": "yarn eslint .",
"test": "react-scripts test --coverage",
"test": "craco test --coverage",
"cypress:open": "cypress open --browser chrome --e2e",
"cypress:run": "cypress run --browser chrome --e2e"
},
Expand Down Expand Up @@ -55,6 +55,7 @@
]
},
"devDependencies": {
"@craco/craco": "6.4.3",
"@ethersproject/experimental": "^5.4.0",
"@graphql-codegen/cli": "1.21.5",
"@graphql-codegen/typescript": "1.22.3",
Expand Down Expand Up @@ -85,6 +86,7 @@
"@types/styled-components": "^5.1.25",
"@types/testing-library__cypress": "^5.0.5",
"@types/ua-parser-js": "^0.7.35",
"@types/uuid": "^8.3.4",
"@types/wcag-contrast": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^4",
"@typescript-eslint/parser": "^4",
Expand All @@ -104,7 +106,9 @@
"react-scripts": "^4.0.3",
"serve": "^11.3.2",
"typechain": "^5.0.0",
"typescript": "^4.4.3"
"typescript": "^4.4.3",
"@vanilla-extract/babel-plugin": "^1.1.7",
"@vanilla-extract/webpack-plugin": "^2.1.11"
},
"dependencies": {
"@amplitude/analytics-browser": "^0.5.1",
Expand All @@ -115,7 +119,9 @@
"@lingui/core": "^3.14.0",
"@lingui/macro": "^3.14.0",
"@lingui/react": "^3.14.0",
"@looksrare/sdk": "^0.7.1",
"@metamask/jazzicon": "^2.0.0",
"@opensea/seaport-js": "^1.0.2",
"@popperjs/core": "^2.4.4",
"@reach/dialog": "^0.10.3",
"@reach/portal": "^0.10.3",
Expand All @@ -135,6 +141,10 @@
"@uniswap/v3-core": "1.0.0",
"@uniswap/v3-periphery": "^1.1.1",
"@uniswap/v3-sdk": "^3.9.0",
"@vanilla-extract/css": "^1.7.2",
"@vanilla-extract/css-utils": "^0.1.2",
"@vanilla-extract/dynamic": "^2.0.2",
"@vanilla-extract/sprinkles": "^1.4.1",
"@visx/axis": "^2.12.2",
"@visx/event": "^2.6.0",
"@visx/glyph": "^2.10.0",
Expand All @@ -156,11 +166,13 @@
"array.prototype.flat": "^1.2.4",
"array.prototype.flatmap": "^1.2.4",
"cids": "^1.0.0",
"clsx": "^1.1.1",
"copy-to-clipboard": "^3.2.0",
"d3": "^7.6.1",
"d3-curve-circlecorners": "^0.1.6",
"ethers": "^5.1.4",
"firebase": "^9.1.3",
"focus-visible": "^5.2.0",
"fortmatic": "^2.4.0",
"graphql": "^15.5.0",
"graphql-request": "^3.4.0",
Expand All @@ -185,9 +197,11 @@
"react-is": "^17.0.2",
"react-markdown": "^4.3.1",
"react-popper": "^2.2.3",
"react-query": "^3.39.1",
"react-redux": "^8.0.2",
"react-router-dom": "^6.3.0",
"react-spring": "^8.0.27",
"react-table": "^7.8.0",
"react-use-gesture": "^6.0.14",
"react-virtualized-auto-sizer": "^1.0.2",
"react-window": "^1.8.5",
Expand All @@ -200,11 +214,14 @@
"ua-parser-js": "^0.7.28",
"use-count-up": "^2.2.5",
"use-resize-observer": "^9.0.2",
"uuid": "^8.3.2",
"video-extensions": "^1.2.0",
"wcag-contrast": "^3.0.0",
"web-vitals": "^2.1.0",
"workbox-core": "^6.1.0",
"workbox-navigation-preload": "^6.1.0",
"workbox-precaching": "^6.1.0",
"workbox-routing": "^6.1.0"
"workbox-routing": "^6.1.0",
"zustand": "^4.0.0-rc.1"
}
}