From db0cc62497d145dcba65c23c186b854e7f08f906 Mon Sep 17 00:00:00 2001 From: Keith Date: Thu, 17 Nov 2022 15:16:37 +0800 Subject: [PATCH 01/13] feat: add official site and description on erc 721/1155 pages --- pages/multi-token-collection/[address].tsx | 28 +++++++++++++++--- .../multi-token-collection/styles.module.scss | 4 +++ pages/nft-collection/[address].tsx | 29 ++++++++++++++++++- pages/nft-collection/styles.module.scss | 4 +++ public/locales/en-US/multi-token.json | 4 ++- public/locales/en-US/nft.json | 4 ++- public/locales/zh-CN/multi-token.json | 4 ++- public/locales/zh-CN/nft.json | 4 ++- 8 files changed, 72 insertions(+), 9 deletions(-) diff --git a/pages/multi-token-collection/[address].tsx b/pages/multi-token-collection/[address].tsx index 3db8c01c1..6d6295b95 100644 --- a/pages/multi-token-collection/[address].tsx +++ b/pages/multi-token-collection/[address].tsx @@ -18,7 +18,10 @@ import InventoryList, { fetchInventoryListOfCollection } from 'components/MultiT import { client, GraphQLSchema } from 'utils' import styles from './styles.module.scss' -type CollectionInfoProps = Omit | undefined +type CollectionInfoProps = + | (Omit & + Record<'description' | 'official_site', string | null>) + | undefined interface InfoProps { erc1155_udts: { @@ -40,6 +43,8 @@ const infoQuery = gql` token_type_count holders_count minted_count + description + official_site } } } @@ -111,10 +116,21 @@ const MultiTokenCollection = () => { field: t('contract'), content: , }, - { - field: '', - content:
, + field: t('officialSite'), + content: info ? ( + info.official_site ? ( + + ) : ( + '-' + ) + ) : ( + + ), + }, + { + field: t('description'), + content: info ? info.description || '-' : , }, ] @@ -131,6 +147,10 @@ const MultiTokenCollection = () => { field: t('holder_count'), content: isInfoLoading ? : (+info?.holders_count ?? 0).toLocaleString('en'), }, + { + field: '', + content:
, + }, ] const title = t(`multi-token-collection`) diff --git a/pages/multi-token-collection/styles.module.scss b/pages/multi-token-collection/styles.module.scss index 193784a34..f46c6758d 100644 --- a/pages/multi-token-collection/styles.module.scss +++ b/pages/multi-token-collection/styles.module.scss @@ -30,6 +30,7 @@ dd { white-space: breaks-spaces; word-break: break-all; + text-transform: none; } @media screen and (min-width: 1024px) { @@ -50,6 +51,9 @@ & > div { margin-bottom: 1rem; } + dl[title=''] { + display: none; + } } } diff --git a/pages/nft-collection/[address].tsx b/pages/nft-collection/[address].tsx index 0ee04985f..20b8d2bc2 100644 --- a/pages/nft-collection/[address].tsx +++ b/pages/nft-collection/[address].tsx @@ -18,7 +18,10 @@ import InventoryList, { fetchInventoryListOfCollection } from 'components/NFTInv import { client, GraphQLSchema } from 'utils' import styles from './styles.module.scss' -type CollectionInfoProps = Omit | undefined +type CollectionInfoProps = + | (Omit & + Record<'description' | 'official_site', string | null>) + | undefined interface CollectionProps { erc721_udts: { @@ -39,6 +42,8 @@ const infoQuery = gql` icon holders_count minted_count + description + official_site } } } @@ -110,6 +115,22 @@ const NftCollection = () => { field: t('contract'), content: , }, + { + field: t('officialSite'), + content: info ? ( + info.official_site ? ( + + ) : ( + '-' + ) + ) : ( + + ), + }, + { + field: t('description'), + content: info ? info.description || '-' : , + }, ] const stats: Array<{ field: string; content: React.ReactNode }> = [ @@ -121,6 +142,12 @@ const NftCollection = () => { field: t('minted_count'), content: isInfoLoading ? : (+info?.minted_count ?? 0).toLocaleString('en'), }, + info?.official_site + ? { + field: '', + content:
, + } + : null, ] const title = t(`nft-collection`) diff --git a/pages/nft-collection/styles.module.scss b/pages/nft-collection/styles.module.scss index 3204d707d..0580c60e1 100644 --- a/pages/nft-collection/styles.module.scss +++ b/pages/nft-collection/styles.module.scss @@ -32,6 +32,7 @@ dd { white-space: breaks-spaces; word-break: break-all; + text-transform: none; } @media screen and (min-width: 1024px) { @@ -52,6 +53,9 @@ & > div { margin-bottom: 1rem; } + dl[title=''] { + display: none; + } } } diff --git a/public/locales/en-US/multi-token.json b/public/locales/en-US/multi-token.json index b709aabf9..2e431db38 100644 --- a/public/locales/en-US/multi-token.json +++ b/public/locales/en-US/multi-token.json @@ -17,5 +17,7 @@ "token-id": "Token ID", "owner": "Owner", "name": "Name", - "quantity": "Quantity" + "quantity": "Quantity", + "description": "Description", + "officialSite": "Official Site" } diff --git a/public/locales/en-US/nft.json b/public/locales/en-US/nft.json index 1eb55d779..6edf68420 100644 --- a/public/locales/en-US/nft.json +++ b/public/locales/en-US/nft.json @@ -15,5 +15,7 @@ "erc-721": "ERC 721", "token-id": "Token ID", "owner": "Owner", - "name": "Name" + "name": "Name", + "description": "Description", + "officialSite": "Official Site" } diff --git a/public/locales/zh-CN/multi-token.json b/public/locales/zh-CN/multi-token.json index fb68b65bb..d5a01c6e9 100644 --- a/public/locales/zh-CN/multi-token.json +++ b/public/locales/zh-CN/multi-token.json @@ -17,5 +17,7 @@ "token-id": "通证 ID", "owner": "所属人", "name": "名称", - "quantity": "数量" + "quantity": "数量", + "description": "简介", + "officialSite": "官方网站" } diff --git a/public/locales/zh-CN/nft.json b/public/locales/zh-CN/nft.json index 56149583b..5efea8b23 100644 --- a/public/locales/zh-CN/nft.json +++ b/public/locales/zh-CN/nft.json @@ -15,5 +15,7 @@ "erc-721": "ERC 721", "token-id": "通证 ID", "owner": "所属人", - "name": "名称" + "name": "名称", + "description": "简介", + "officialSite": "官方网站" } From 8b1988ff86ac4bdc15d3ace5199d6276c1efeee2 Mon Sep 17 00:00:00 2001 From: Jun Ma Date: Fri, 18 Nov 2022 14:32:35 +0800 Subject: [PATCH 02/13] Fix: wrapped label and the basic info width (#726) * fix wrapped label and the basic info width --- components/AccountOverview/index.tsx | 38 +++++++++++-------- components/AccountOverview/styles.module.scss | 6 +++ pages/token/[id].tsx | 1 + pages/token/styles.module.scss | 5 +++ 4 files changed, 34 insertions(+), 16 deletions(-) diff --git a/components/AccountOverview/index.tsx b/components/AccountOverview/index.tsx index 0a3993c69..3307e2525 100644 --- a/components/AccountOverview/index.tsx +++ b/components/AccountOverview/index.tsx @@ -267,16 +267,14 @@ const AccountOverview: React.FC Promise< ), }) - return ( -
- {account.type === GraphQLSchema.AccountType.MetaContract ? ( - - ) : null} - {account.type === GraphQLSchema.AccountType.EthUser ? ( - - ) : null} - {account.type === GraphQLSchema.AccountType.EthAddrReg ? : null} - {account.type === GraphQLSchema.AccountType.PolyjuiceContract ? ( + const getInfoBlock = account => { + const { type } = account + + const blockMap = { + [`${GraphQLSchema.AccountType.MetaContract}`]: , + [`${GraphQLSchema.AccountType.EthUser}`]: , + [`${GraphQLSchema.AccountType.EthAddrReg}`]: , + [`${GraphQLSchema.AccountType.PolyjuiceContract}`]: ( Promise< refetch={refetch} isLoading={isOverviewLoading} /> - ) : null} - {account.type === GraphQLSchema.AccountType.PolyjuiceCreator ? ( + ), + [`${GraphQLSchema.AccountType.PolyjuiceCreator}`]: ( - ) : null} - {account.type === GraphQLSchema.AccountType.Udt && account.udt ? ( + ), + [`${GraphQLSchema.AccountType.Udt}`]: account.udt ? ( - ) : null} - {account.type === GraphQLSchema.AccountType.Unknown ? : null} + ) : null, + [`${GraphQLSchema.AccountType.Unknown}`]: , + } + const infoBlock = blockMap[type] + + return infoBlock ?
{infoBlock}
: null + } + return ( +
+ {getInfoBlock(account)}
) diff --git a/components/AccountOverview/styles.module.scss b/components/AccountOverview/styles.module.scss index 4f154f0fc..7512228f4 100644 --- a/components/AccountOverview/styles.module.scss +++ b/components/AccountOverview/styles.module.scss @@ -74,3 +74,9 @@ } } } + +@media screen and (min-width: 1024px) { + .info-width { + width: calc(50% - 32px); + } +} diff --git a/pages/token/[id].tsx b/pages/token/[id].tsx index 9ab834fac..c3efdc1b7 100644 --- a/pages/token/[id].tsx +++ b/pages/token/[id].tsx @@ -267,6 +267,7 @@ const Token: React.FC = () => {
{t(`tokenInfo`)} diff --git a/pages/token/styles.module.scss b/pages/token/styles.module.scss index 875d39f5d..11930eee9 100644 --- a/pages/token/styles.module.scss +++ b/pages/token/styles.module.scss @@ -83,6 +83,11 @@ display: none; } } + @media screen and (min-width: 1024px) { + .info-width { + width: calc(50% - 32px); + } + } } .list { From 4f65864eabab2e30bc9be7f420e562da2794e422 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 18 Nov 2022 23:09:43 +0000 Subject: [PATCH 03/13] chore(deps): update dependency eslint to v8.28.0 --- package-lock.json | 26 +++++++++++++------------- package.json | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 066e6b359..20bf3ac8f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,7 +50,7 @@ "autoprefixer": "10.4.13", "babel-plugin-istanbul": "6.1.1", "cypress": "9.7.0", - "eslint": "8.27.0", + "eslint": "8.28.0", "eslint-config-next": "12.3.3", "husky": "8.0.2", "jest": "29.3.1", @@ -11442,9 +11442,9 @@ } }, "node_modules/eslint": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.27.0.tgz", - "integrity": "sha512-0y1bfG2ho7mty+SiILVf9PfuRA49ek4Nc60Wmmu62QlobNR+CeXa4xXIJgcuwSQgZiWaPH+5BDsctpIW0PR/wQ==", + "version": "8.28.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.28.0.tgz", + "integrity": "sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==", "dev": true, "dependencies": { "@eslint/eslintrc": "^1.3.3", @@ -11851,9 +11851,9 @@ } }, "node_modules/eslint/node_modules/globals": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", + "version": "13.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.18.0.tgz", + "integrity": "sha512-/mR4KI8Ps2spmoc0Ulu9L7agOF0du1CZNQ3dke8yItYlyKNmGrkONemBbd6V8UTc1Wgcqn21t3WYB7dbRmh6/A==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -31824,9 +31824,9 @@ } }, "eslint": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.27.0.tgz", - "integrity": "sha512-0y1bfG2ho7mty+SiILVf9PfuRA49ek4Nc60Wmmu62QlobNR+CeXa4xXIJgcuwSQgZiWaPH+5BDsctpIW0PR/wQ==", + "version": "8.28.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.28.0.tgz", + "integrity": "sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==", "dev": true, "requires": { "@eslint/eslintrc": "^1.3.3", @@ -31912,9 +31912,9 @@ } }, "globals": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", + "version": "13.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.18.0.tgz", + "integrity": "sha512-/mR4KI8Ps2spmoc0Ulu9L7agOF0du1CZNQ3dke8yItYlyKNmGrkONemBbd6V8UTc1Wgcqn21t3WYB7dbRmh6/A==", "dev": true, "requires": { "type-fest": "^0.20.2" diff --git a/package.json b/package.json index 55bd9b3a4..3ba645a2f 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "@types/testing-library__react": "10.2.0", "babel-plugin-istanbul": "6.1.1", "cypress": "9.7.0", - "eslint": "8.27.0", + "eslint": "8.28.0", "eslint-config-next": "12.3.3", "husky": "8.0.2", "lint-staged": "13.0.3", From f08e67277aaf1345d3ed8f7ffc445841ead6e1b8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 19 Nov 2022 15:13:25 +0000 Subject: [PATCH 04/13] fix(deps): update dependency next-i18next to v13 --- package-lock.json | 80 ++++++++++++++++++++++++++--------------------- package.json | 2 +- 2 files changed, 46 insertions(+), 36 deletions(-) diff --git a/package-lock.json b/package-lock.json index 066e6b359..ad742f1f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "graphql-request": "5.0.0", "material-ui-popup-state": "4.1.0", "next": "12.3.3", - "next-i18next": "12.1.0", + "next-i18next": "13.0.0", "next-pwa": "5.5.4", "phoenix": "1.6.15", "qrcode": "1.5.1", @@ -13455,6 +13455,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-3.0.1.tgz", "integrity": "sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==", + "peer": true, "dependencies": { "void-elements": "3.1.0" } @@ -13548,9 +13549,9 @@ } }, "node_modules/i18next": { - "version": "21.10.0", - "resolved": "https://registry.npmjs.org/i18next/-/i18next-21.10.0.tgz", - "integrity": "sha512-YeuIBmFsGjUfO3qBmMOc0rQaun4mIpGKET5WDwvu8lU7gvwpcariZLNtL0Fzj+zazcHUrlXHiptcFhBMFaxzfg==", + "version": "22.0.6", + "resolved": "https://registry.npmjs.org/i18next/-/i18next-22.0.6.tgz", + "integrity": "sha512-RlreNGoPIdDP4QG+qSA9PxZKGwlzmcozbI9ObI6+OyUa/Rp0EjZZA9ubyBjw887zVNZsC+7FI3sXX8oiTzAfig==", "funding": [ { "type": "individual", @@ -13565,14 +13566,15 @@ "url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project" } ], + "peer": true, "dependencies": { "@babel/runtime": "^7.17.2" } }, "node_modules/i18next-fs-backend": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/i18next-fs-backend/-/i18next-fs-backend-1.1.5.tgz", - "integrity": "sha512-raTel3EfshiUXxR0gvmIoqp75jhkj8+7R1LjB006VZKPTFBbXyx6TlUVhb8Z9+7ahgpFbcQg1QWVOdf/iNzI5A==" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/i18next-fs-backend/-/i18next-fs-backend-2.0.0.tgz", + "integrity": "sha512-zlwzcoUKlveoRt/SxgeP8i/6p1rxwxZ+x0w4sfCTY1zgUlhhnoxBSRX3GjVIsDJm5mky8Hpr//UX93UIknK7yQ==" }, "node_modules/iconv-lite": { "version": "0.6.3", @@ -18847,10 +18849,14 @@ } }, "node_modules/next-i18next": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/next-i18next/-/next-i18next-12.1.0.tgz", - "integrity": "sha512-rhos/PVULmZPdC0jpec2MDBQMXdGZ3+Mbh/tZfrDtjgnVN3ucdq7k8BlwsJNww6FnqC8AC31n6dSYuqVzYsGsw==", + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/next-i18next/-/next-i18next-13.0.0.tgz", + "integrity": "sha512-XiODAmMdueAIETQKIRPvYEZ5ghLOlzHb6PI4/WzwYkKdC/5q6UROzwIRw7aj3VWRB3xwnuuzEVI9NAjMfXyrkQ==", "funding": [ + { + "type": "individual", + "url": "https://github.com/belgattitude" + }, { "type": "individual", "url": "https://locize.com" @@ -18869,16 +18875,16 @@ "@types/hoist-non-react-statics": "^3.3.1", "core-js": "^3", "hoist-non-react-statics": "^3.3.2", - "i18next": "^21.9.1", - "i18next-fs-backend": "^1.1.5", - "react-i18next": "^11.18.4" + "i18next-fs-backend": "^2.0.0" }, "engines": { - "node": ">=12" + "node": ">=14" }, "peerDependencies": { - "next": ">= 10.0.0", - "react": ">= 16.8.0" + "i18next": "^22.0.6", + "next": ">= 12.0.0", + "react": ">= 17.0.2", + "react-i18next": "^12.0.0" } }, "node_modules/next-pwa": { @@ -20558,9 +20564,10 @@ } }, "node_modules/react-i18next": { - "version": "11.18.6", - "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-11.18.6.tgz", - "integrity": "sha512-yHb2F9BiT0lqoQDt8loZ5gWP331GwctHz9tYQ8A2EIEUu+CcEdjBLQWli1USG3RdWQt3W+jqQLg/d4rrQR96LA==", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-12.0.0.tgz", + "integrity": "sha512-/O7N6aIEAl1FaWZBNvhdIo9itvF/MO/nRKr9pYqRc9LhuC1u21SlfwpiYQqvaeNSEW3g3qUXLREOWMt+gxrWbg==", + "peer": true, "dependencies": { "@babel/runtime": "^7.14.5", "html-parse-stringify": "^3.0.1" @@ -23241,6 +23248,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz", "integrity": "sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -33271,6 +33279,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-3.0.1.tgz", "integrity": "sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==", + "peer": true, "requires": { "void-elements": "3.1.0" } @@ -33337,17 +33346,18 @@ "dev": true }, "i18next": { - "version": "21.10.0", - "resolved": "https://registry.npmjs.org/i18next/-/i18next-21.10.0.tgz", - "integrity": "sha512-YeuIBmFsGjUfO3qBmMOc0rQaun4mIpGKET5WDwvu8lU7gvwpcariZLNtL0Fzj+zazcHUrlXHiptcFhBMFaxzfg==", + "version": "22.0.6", + "resolved": "https://registry.npmjs.org/i18next/-/i18next-22.0.6.tgz", + "integrity": "sha512-RlreNGoPIdDP4QG+qSA9PxZKGwlzmcozbI9ObI6+OyUa/Rp0EjZZA9ubyBjw887zVNZsC+7FI3sXX8oiTzAfig==", + "peer": true, "requires": { "@babel/runtime": "^7.17.2" } }, "i18next-fs-backend": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/i18next-fs-backend/-/i18next-fs-backend-1.1.5.tgz", - "integrity": "sha512-raTel3EfshiUXxR0gvmIoqp75jhkj8+7R1LjB006VZKPTFBbXyx6TlUVhb8Z9+7ahgpFbcQg1QWVOdf/iNzI5A==" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/i18next-fs-backend/-/i18next-fs-backend-2.0.0.tgz", + "integrity": "sha512-zlwzcoUKlveoRt/SxgeP8i/6p1rxwxZ+x0w4sfCTY1zgUlhhnoxBSRX3GjVIsDJm5mky8Hpr//UX93UIknK7yQ==" }, "iconv-lite": { "version": "0.6.3", @@ -37223,17 +37233,15 @@ } }, "next-i18next": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/next-i18next/-/next-i18next-12.1.0.tgz", - "integrity": "sha512-rhos/PVULmZPdC0jpec2MDBQMXdGZ3+Mbh/tZfrDtjgnVN3ucdq7k8BlwsJNww6FnqC8AC31n6dSYuqVzYsGsw==", + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/next-i18next/-/next-i18next-13.0.0.tgz", + "integrity": "sha512-XiODAmMdueAIETQKIRPvYEZ5ghLOlzHb6PI4/WzwYkKdC/5q6UROzwIRw7aj3VWRB3xwnuuzEVI9NAjMfXyrkQ==", "requires": { "@babel/runtime": "^7.18.9", "@types/hoist-non-react-statics": "^3.3.1", "core-js": "^3", "hoist-non-react-statics": "^3.3.2", - "i18next": "^21.9.1", - "i18next-fs-backend": "^1.1.5", - "react-i18next": "^11.18.4" + "i18next-fs-backend": "^2.0.0" } }, "next-pwa": { @@ -38232,9 +38240,10 @@ } }, "react-i18next": { - "version": "11.18.6", - "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-11.18.6.tgz", - "integrity": "sha512-yHb2F9BiT0lqoQDt8loZ5gWP331GwctHz9tYQ8A2EIEUu+CcEdjBLQWli1USG3RdWQt3W+jqQLg/d4rrQR96LA==", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-12.0.0.tgz", + "integrity": "sha512-/O7N6aIEAl1FaWZBNvhdIo9itvF/MO/nRKr9pYqRc9LhuC1u21SlfwpiYQqvaeNSEW3g3qUXLREOWMt+gxrWbg==", + "peer": true, "requires": { "@babel/runtime": "^7.14.5", "html-parse-stringify": "^3.0.1" @@ -40126,7 +40135,8 @@ "void-elements": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz", - "integrity": "sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==" + "integrity": "sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==", + "peer": true }, "w3c-xmlserializer": { "version": "3.0.0", diff --git a/package.json b/package.json index 55bd9b3a4..7419627d6 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "graphql-request": "5.0.0", "material-ui-popup-state": "4.1.0", "next": "12.3.3", - "next-i18next": "12.1.0", + "next-i18next": "13.0.0", "next-pwa": "5.5.4", "phoenix": "1.6.15", "qrcode": "1.5.1", From ad784dff09754c881a3d83b26c996b9af875b368 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 21 Nov 2022 20:36:40 +0000 Subject: [PATCH 05/13] fix(deps): update dependency wagmi to v0.8.6 --- package-lock.json | 30 +++++++++++++++--------------- package.json | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 066e6b359..147597960 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "react-dom": "18.2.0", "react-query": "3.39.2", "recharts": "2.1.16", - "wagmi": "0.8.2" + "wagmi": "0.8.6" }, "devDependencies": { "@cypress/code-coverage": "3.10.0", @@ -7568,9 +7568,9 @@ } }, "node_modules/@wagmi/core": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/@wagmi/core/-/core-0.7.2.tgz", - "integrity": "sha512-UKEjGq9379bzAozePC+c0Pl2LT4asNIJ40QW7tE7LS8BkeitOFh0SxO1SkNBe2iBnPVNboRtj/4xoGvZpWbO1A==", + "version": "0.7.5", + "resolved": "https://registry.npmjs.org/@wagmi/core/-/core-0.7.5.tgz", + "integrity": "sha512-4pODpOzfZ2Hg4/N8CdIgFvRA4bKTQegGwt+m6xz0EeV0LOXPU9tGiXim9mJ2NUm1bDt6tFxE437NgqPiqQ1xUg==", "funding": [ { "type": "gitcoin", @@ -23258,9 +23258,9 @@ } }, "node_modules/wagmi": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/wagmi/-/wagmi-0.8.2.tgz", - "integrity": "sha512-pCWpkI3HB/Y4Yep5lg46G+cozHQAQpqE9oTowrWSKm1KNxb1I4aedkC4iUXovwIvwN4t4znb3N3iKw4Q+duP2g==", + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/wagmi/-/wagmi-0.8.6.tgz", + "integrity": "sha512-60pQtwrT7qrXRr68rAJLdPlk9PhDuHvaT1A8cUdEU6bkUamk9F8DHeGQ52NJkBubLLaaUXmPMZw8vWoVheGxWA==", "funding": [ { "type": "gitcoin", @@ -23276,7 +23276,7 @@ "@tanstack/query-sync-storage-persister": "^4.14.5", "@tanstack/react-query": "^4.14.5", "@tanstack/react-query-persist-client": "^4.14.5", - "@wagmi/core": "0.7.2", + "@wagmi/core": "0.7.5", "@walletconnect/ethereum-provider": "^1.8.0", "abitype": "^0.1.7", "use-sync-external-store": "^1.2.0" @@ -29022,9 +29022,9 @@ } }, "@wagmi/core": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/@wagmi/core/-/core-0.7.2.tgz", - "integrity": "sha512-UKEjGq9379bzAozePC+c0Pl2LT4asNIJ40QW7tE7LS8BkeitOFh0SxO1SkNBe2iBnPVNboRtj/4xoGvZpWbO1A==", + "version": "0.7.5", + "resolved": "https://registry.npmjs.org/@wagmi/core/-/core-0.7.5.tgz", + "integrity": "sha512-4pODpOzfZ2Hg4/N8CdIgFvRA4bKTQegGwt+m6xz0EeV0LOXPU9tGiXim9mJ2NUm1bDt6tFxE437NgqPiqQ1xUg==", "requires": { "abitype": "^0.1.8", "eventemitter3": "^4.0.7", @@ -40138,15 +40138,15 @@ } }, "wagmi": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/wagmi/-/wagmi-0.8.2.tgz", - "integrity": "sha512-pCWpkI3HB/Y4Yep5lg46G+cozHQAQpqE9oTowrWSKm1KNxb1I4aedkC4iUXovwIvwN4t4znb3N3iKw4Q+duP2g==", + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/wagmi/-/wagmi-0.8.6.tgz", + "integrity": "sha512-60pQtwrT7qrXRr68rAJLdPlk9PhDuHvaT1A8cUdEU6bkUamk9F8DHeGQ52NJkBubLLaaUXmPMZw8vWoVheGxWA==", "requires": { "@coinbase/wallet-sdk": "^3.5.3", "@tanstack/query-sync-storage-persister": "^4.14.5", "@tanstack/react-query": "^4.14.5", "@tanstack/react-query-persist-client": "^4.14.5", - "@wagmi/core": "0.7.2", + "@wagmi/core": "0.7.5", "@walletconnect/ethereum-provider": "^1.8.0", "abitype": "^0.1.7", "use-sync-external-store": "^1.2.0" diff --git a/package.json b/package.json index 55bd9b3a4..5927a9d8e 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "react-dom": "18.2.0", "react-query": "3.39.2", "recharts": "2.1.16", - "wagmi": "0.8.2" + "wagmi": "0.8.6" }, "devDependencies": { "@cypress/code-coverage": "3.10.0", From 25ca1eded7b838b5cd03674fc8901777dab87c89 Mon Sep 17 00:00:00 2001 From: Qiwei Yang Date: Tue, 22 Nov 2022 17:27:15 +0800 Subject: [PATCH 06/13] fix: keep search text (#684) --- components/Search.tsx | 21 ++++++++++++++++++--- cypress/integration/search/index.spec.ts | 2 +- utils/handler.ts | 2 +- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/components/Search.tsx b/components/Search.tsx index 1f5097c0d..ea1581a81 100644 --- a/components/Search.tsx +++ b/components/Search.tsx @@ -1,4 +1,4 @@ -import { useRef, useState } from 'react' +import { useEffect, useRef, useState } from 'react' import { useRouter } from 'next/router' import Image from 'next/image' import { OutlinedInput, InputAdornment, styled, InputBaseProps } from '@mui/material' @@ -33,17 +33,32 @@ const StyledInputBase = styled((props: InputBaseProps) => { - const { push, asPath } = useRouter() + const { push, asPath, query } = useRouter() const searchRef = useRef(null) const [showClearBtn, setShowClearBtn] = useState(false) const isHome = asPath === '/' || asPath === '/zh-CN' const theme = useTheme() + useEffect(() => { + if (!searchRef.current) return + if (query.search) { + searchRef.current.value = (query.search as string) || '' + } else { + // on page refresh, next.js's query.search will always be null, so need this fallback + const queryValue = new URLSearchParams(window.location.search).get('search') + if (queryValue) { + searchRef.current.value = queryValue || '' + } + } + if (searchRef.current.value) { + setShowClearBtn(true) + } + }, [query, asPath]) + const handleSearch = async (e: React.KeyboardEvent) => { await handleSearchKeyPress(e, push) if (e.key === 'Enter') { searchRef.current?.blur() - searchRef.current.value = '' setShowClearBtn(false) } } diff --git a/cypress/integration/search/index.spec.ts b/cypress/integration/search/index.spec.ts index d6347a623..d147dd54c 100644 --- a/cypress/integration/search/index.spec.ts +++ b/cypress/integration/search/index.spec.ts @@ -128,7 +128,7 @@ context('Search', () => { cy.get(`${ROOT_SELECTOR} input`).type(UNKNOWN_STRING) cy.get(ROOT_SELECTOR).type('{enter}') cy.url({ timeout: REDIRECT_TIMEOUT }).should('contain', `/tokens/native`) - cy.location('search').should('eq', `?name=${UNKNOWN_STRING}`) + cy.location('search').should('eq', `?name=${UNKNOWN_STRING}&search=${UNKNOWN_STRING}`) }) it('404', () => { diff --git a/utils/handler.ts b/utils/handler.ts index bfbc5bb8c..45894ead9 100644 --- a/utils/handler.ts +++ b/utils/handler.ts @@ -36,7 +36,7 @@ export const handleSearchKeyPress = async (e: React.KeyboardEvent Date: Tue, 22 Nov 2022 18:06:47 +0800 Subject: [PATCH 07/13] change the link address (#739) --- components/BaseTransferlist/index.tsx | 59 ++++++++++++++-------- components/CommonERCTransferlist/index.tsx | 14 ++--- pages/multi-token-item/[...id].tsx | 6 +-- pages/tx/[hash].tsx | 3 +- 4 files changed, 48 insertions(+), 34 deletions(-) diff --git a/components/BaseTransferlist/index.tsx b/components/BaseTransferlist/index.tsx index 9b05c9a03..08172e9c2 100644 --- a/components/BaseTransferlist/index.tsx +++ b/components/BaseTransferlist/index.tsx @@ -10,8 +10,8 @@ import TokenLogo from 'components/TokenLogo' import FilterMenu from 'components/FilterMenu' import RoundedAmount from 'components/RoundedAmount' import Tooltip from 'components/Tooltip' -import SortIcon from 'assets/icons/sort.svg' import { GraphQLSchema, ZERO_ADDRESS } from 'utils' +import SortIcon from 'assets/icons/sort.svg' import ChangeIcon from 'assets/icons/change.svg' import NoDataIcon from 'assets/icons/no-data.svg' import EmptyFilteredListIcon from 'assets/icons/empty-filtered-list.svg' @@ -19,26 +19,34 @@ import styles from './styles.module.scss' type udtType = Nullable> +export type TransferListItem = { + amount: string + from_address: string + to_address: string + log_index: number + transaction_hash: string + udt: udtType + block?: Nullable> + token_contract_address_hash?: string + token_id?: number +} + export type TransferListProps = { - entries: Array<{ - amount: string - from_address: string - to_address: string - log_index: number - transaction_hash: string - udt: udtType - block?: Nullable> - token_contract_address_hash?: string - token_id?: number - }> + entries: Array handleTokenName?: (udt: udtType, ...rest: any) => string metadata: GraphQLSchema.PageMetadata isShowValue?: boolean + type: TransferlistType +} +export enum TransferlistType { + 'Erc20' = 'Erc20', + 'Erc721' = 'Erc721', + 'Erc1155' = 'Erc1155', } const FILTER_KEYS = ['address_from', 'address_to'] -const TransferList: React.FC = ({ entries, metadata, isShowValue = false, handleTokenName }) => { +const TransferList: React.FC = ({ entries, metadata, type, handleTokenName }) => { const [isShowLogo, setIsShowLogo] = useState(true) const [t] = useTranslation('list') const { @@ -50,6 +58,19 @@ const TransferList: React.FC = ({ entries, metadata, isShowVa const isFiltered = Object.keys(query).some(key => FILTER_KEYS.includes(key)) const isFilterUnnecessary = !metadata?.total_count && !isFiltered + const handleTokenLink = (item: TransferListItem, type: TransferlistType) => { + switch (type) { + case TransferlistType.Erc20: + return `/token/${item.udt.id}` + case TransferlistType.Erc721: + return `/nft-item/${item.token_contract_address_hash}/${item.token_id}` + case TransferlistType.Erc1155: + return `/multi-token-item/${item.token_contract_address_hash}/${item.token_id}` + default: + return '' + } + } + const handleLogIndexSortClick = (e: React.MouseEvent) => { const { dataset: { order }, @@ -93,7 +114,7 @@ const TransferList: React.FC = ({ entries, metadata, isShowVa
- {isShowValue && {`${t('value')}`}} + {type === TransferlistType.Erc20 && {`${t('value')}`}} @@ -131,11 +152,9 @@ const TransferList: React.FC = ({ entries, metadata, isShowVa {isShowLogo ? ( @@ -146,7 +165,7 @@ const TransferList: React.FC = ({ entries, metadata, isShowVa - {isShowValue && ( + {type === TransferlistType.Erc20 && ( diff --git a/components/CommonERCTransferlist/index.tsx b/components/CommonERCTransferlist/index.tsx index e51b66d71..7615f1991 100644 --- a/components/CommonERCTransferlist/index.tsx +++ b/components/CommonERCTransferlist/index.tsx @@ -1,13 +1,7 @@ -import BaseTransferlist, { TransferListProps } from 'components/BaseTransferlist' +import BaseTransferlist, { TransferListProps, TransferlistType } from 'components/BaseTransferlist' import { gql } from 'graphql-request' import { client, GraphQLSchema } from 'utils' -export enum TransferlistType { - 'Erc20' = 'Erc20', - 'Erc721' = 'Erc721', - 'Erc1155' = 'Erc1155', -} - type Erc20ResponseProps = { token_transfers: TransferListProps & { block: Nullable> @@ -107,21 +101,21 @@ const SimpleERC20Transferlist: React.FC = props => { const { token_transfers: dataSource } = props const handleTokenName = udt => udt.symbol.split('.')[0] || '' - return + return } const SimpleERC721Transferlist: React.FC = props => { const { erc721_token_transfers: dataSource } = props const handleTokenName = (udt, token_id) => `${udt.name}#${token_id}` - return + return } const SimpleERC1155Transferlist: React.FC = props => { const { erc1155_token_transfers: dataSource } = props const handleTokenName = (udt, token_id) => `${udt.name}#${token_id}` - return + return } const CommonERCTransferlist: React.FC = props => { diff --git a/pages/multi-token-item/[...id].tsx b/pages/multi-token-item/[...id].tsx index ba4fb6355..74c10c313 100644 --- a/pages/multi-token-item/[...id].tsx +++ b/pages/multi-token-item/[...id].tsx @@ -100,7 +100,7 @@ const MultiTokenItem = () => { limit: Number.isNaN(+page_size) ? +SIZES[1] : +page_size, } - const { isLoading: isInfoLoading, data: info = {} } = useQuery( + const { isLoading: isInfoLoading, data: info } = useQuery( ['multi-token-item-info', address], () => fetchInfo({ address, token_id }), { @@ -153,8 +153,8 @@ const MultiTokenItem = () => { }, ] - const { metadata = {}, collection } = info as CollectionInfo - const { image: imageUrl = '', name = '' } = metadata as MetadataProps + const { metadata = {}, collection } = (info as CollectionInfo) || {} + const { image: imageUrl = '', name = '' } = (metadata as MetadataProps) || {} const title = `${t('multi-token-collection')} ${name ?? collection?.name ?? '-'}` diff --git a/pages/tx/[hash].tsx b/pages/tx/[hash].tsx index d29bf005f..85bee334c 100644 --- a/pages/tx/[hash].tsx +++ b/pages/tx/[hash].tsx @@ -12,7 +12,7 @@ import Tabs from 'components/Tabs' import SubpageHead from 'components/SubpageHead' import PageTitle from 'components/PageTitle' import InfoList from 'components/InfoList' -import CommonERCTransferlist, { fetchERCTransferList, TransferlistType } from 'components/CommonERCTransferlist' +import CommonERCTransferlist, { fetchERCTransferList } from 'components/CommonERCTransferlist' import TxLogsList from 'components/TxLogsList' import RawTxData from 'components/RawTxData' import CopyBtn from 'components/CopyBtn' @@ -23,6 +23,7 @@ import Amount from 'components/Amount' import { SIZES } from 'components/PageSize' import Tooltip from 'components/Tooltip' import PolyjuiceStatus from 'components/PolyjuiceStatus' +import { TransferlistType } from 'components/BaseTransferlist' import ExpandIcon from 'assets/icons/expand.svg' import { formatDatetime, From 716b0399fce08f2d4a9bdbd6ea7b1a4eac6c4651 Mon Sep 17 00:00:00 2001 From: Jun Ma Date: Thu, 17 Nov 2022 23:11:30 +0800 Subject: [PATCH 08/13] Truncated field misses ellipsis and label is wrapped --- components/InfoList/styles.module.scss | 1 + components/SmartContractInfo/index.tsx | 27 +++++++++++++++----------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/components/InfoList/styles.module.scss b/components/InfoList/styles.module.scss index 97c81f8cd..786b8bfb5 100644 --- a/components/InfoList/styles.module.scss +++ b/components/InfoList/styles.module.scss @@ -67,6 +67,7 @@ padding-right: 1rem; color: var(--secondary-text-color); font-weight: 400; + white-space: nowrap; } dd.desc { diff --git a/components/SmartContractInfo/index.tsx b/components/SmartContractInfo/index.tsx index c20db1f02..4a8e41b52 100644 --- a/components/SmartContractInfo/index.tsx +++ b/components/SmartContractInfo/index.tsx @@ -1,11 +1,12 @@ +import { useState } from 'react' import { useTranslation } from 'next-i18next' import NextLink from 'next/link' import { Skeleton } from '@mui/material' import InfoList from '../InfoList' +import Tooltip from 'components/Tooltip' import NextPageIcon from 'assets/icons/next-page.svg' import VerifiedIcon from 'assets/icons/check-success.svg' import SubmittedIcon from 'assets/icons/submit-success.svg' -import { useState } from 'react' import { gql } from 'graphql-request' import { client, GraphQLSchema } from 'utils' import styles from './styles.module.scss' @@ -95,11 +96,13 @@ const SmartContract: React.FC<{ { field: t('deployer'), content: deployer ? ( - - - {deployer} - - + + + + {deployer} + + + ) : isLoading ? ( ) : ( @@ -109,11 +112,13 @@ const SmartContract: React.FC<{ { field: t('deployTx'), content: deployTxHash ? ( - - - {deployTxHash} - - + + + + {deployTxHash} + + + ) : isLoading ? ( ) : ( From dee92d876bf42604ee0571ecc8c13d266a01ff80 Mon Sep 17 00:00:00 2001 From: Jun Ma Date: Mon, 21 Nov 2022 22:28:34 +0800 Subject: [PATCH 09/13] change color --- components/AccountOverview/index.tsx | 2 -- components/AccountOverview/styles.module.scss | 4 ++-- components/InfoList/index.tsx | 5 +++-- components/SmartContractInfo/index.tsx | 1 + components/SmartContractInfo/styles.module.scss | 3 +++ 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/components/AccountOverview/index.tsx b/components/AccountOverview/index.tsx index 3307e2525..483c3338c 100644 --- a/components/AccountOverview/index.tsx +++ b/components/AccountOverview/index.tsx @@ -21,11 +21,9 @@ export interface AccountBase { transaction_count: number nonce: number } - interface UnknownUser extends AccountBase { type: GraphQLSchema.AccountType.Unknown } - interface EthUser extends AccountBase { type: GraphQLSchema.AccountType.EthUser script: BasicScript diff --git a/components/AccountOverview/styles.module.scss b/components/AccountOverview/styles.module.scss index 7512228f4..859c27c66 100644 --- a/components/AccountOverview/styles.module.scss +++ b/components/AccountOverview/styles.module.scss @@ -55,13 +55,13 @@ } dl[role='listitem'] { dt { - flex-basis: 133px !important; + flex-basis: 138px !important; } } &[data-account-type='META_CONTRACT'] { dl[role='listitem'] { dt { - flex-basis: 133px !important; + flex-basis: 138px !important; } } } diff --git a/components/InfoList/index.tsx b/components/InfoList/index.tsx index 2715fa174..d76fd33ba 100644 --- a/components/InfoList/index.tsx +++ b/components/InfoList/index.tsx @@ -5,6 +5,7 @@ export interface InfoItermProps { content: React.ReactNode expandable?: boolean tooltipTitle?: string + ddClassName?: string } const InfoList: React.FC<{ @@ -26,7 +27,7 @@ const InfoList: React.FC<{ ) : null} {list .filter(v => v) - .map(({ field, content, expandable, tooltipTitle }, idx) => { + .map(({ field, content, expandable, tooltipTitle, ddClassName }, idx) => { return (
{field}
Date: Tue, 22 Nov 2022 18:58:18 +0800 Subject: [PATCH 10/13] change color of deployer --- components/SmartContractInfo/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/SmartContractInfo/index.tsx b/components/SmartContractInfo/index.tsx index 7b5b068bf..f01d45909 100644 --- a/components/SmartContractInfo/index.tsx +++ b/components/SmartContractInfo/index.tsx @@ -108,6 +108,7 @@ const SmartContract: React.FC<{ ) : ( '-' ), + ddClassName: styles['item-dd-cls'], }, { field: t('deployTx'), @@ -135,6 +136,7 @@ const SmartContract: React.FC<{ ) : ( '-' ), + ddClassName: styles['item-dd-cls'], }, !isVerified ? { From a6c4a75e2d2136d9154b2372158d087da8e52925 Mon Sep 17 00:00:00 2001 From: Freder Date: Wed, 23 Nov 2022 19:55:56 +0800 Subject: [PATCH 11/13] Update auto-merge.yml Add pr_reviewer user --- .github/workflows/auto-merge.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 728d965fb..2b7ae09dd 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -31,7 +31,7 @@ jobs: source_branch: 'develop' destination_branch: 'v1/master' pr_title: 'Merge develop into v1 mainnet' - pr_reviewer: 'keith-cy' + pr_reviewer: 'keith-cy,FrederLu' pr_label: 'auto-pr' github_token: ${{ secrets.GITHUB_TOKEN }} @@ -46,7 +46,7 @@ jobs: source_branch: 'develop' destination_branch: 'v1/testnet' pr_title: 'Merge develop into v1 testnet' - pr_reviewer: 'keith-cy' + pr_reviewer: 'keith-cy,FrederLu' pr_label: 'auto-pr' github_token: ${{ secrets.GITHUB_TOKEN }} From 45181c65688b19f0138f3883d4b9ac6ad61cf503 Mon Sep 17 00:00:00 2001 From: Qiwei Yang Date: Thu, 24 Nov 2022 15:01:02 +0800 Subject: [PATCH 12/13] feat: hidden token field if contract is not token contract (#733) --- components/SmartContractInfo/index.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/components/SmartContractInfo/index.tsx b/components/SmartContractInfo/index.tsx index f01d45909..46743fbb2 100644 --- a/components/SmartContractInfo/index.tsx +++ b/components/SmartContractInfo/index.tsx @@ -127,17 +127,17 @@ const SmartContract: React.FC<{ ), ddClassName: styles['item-dd-cls'], }, - { - field: t('token'), - content: tokenUrl ? ( - - {udt?.name ?? '-'} - - ) : ( - '-' - ), - ddClassName: styles['item-dd-cls'], - }, + tokenUrl + ? { + field: t('token'), + content: ( + + {udt?.name ?? '-'} + + ), + ddClassName: styles['item-dd-cls'], + } + : null, !isVerified ? { field: t('verify_status'), From fe0ac236f1d0d00110c981fc9454c0a471c39171 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 24 Nov 2022 07:02:57 +0000 Subject: [PATCH 13/13] chore(deps): update cypress-io/github-action action to v4.2.1 --- .github/workflows/test.e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.e2e.yml b/.github/workflows/test.e2e.yml index 486441c8c..58f7f44ee 100644 --- a/.github/workflows/test.e2e.yml +++ b/.github/workflows/test.e2e.yml @@ -31,7 +31,7 @@ jobs: run: npx cypress info - name: Cypress run - uses: cypress-io/github-action@v4.2.0 + uses: cypress-io/github-action@v4.2.1 with: install: false build: npm run build