From ccf4960cecb60b292be47ce13f018ef71a155eb1 Mon Sep 17 00:00:00 2001 From: tangxuezhi <0x74616e67@gmail.com> Date: Mon, 24 Oct 2022 14:50:46 +0800 Subject: [PATCH 1/2] feat: SCAN-4373 --- src/app/containers/Footer/index.tsx | 16 +++++++++------- src/app/containers/Header/index.tsx | 8 ++++---- src/index.tsx | 2 +- src/locales/en/translation.json | 3 ++- src/locales/zh_cn/translation.json | 3 ++- src/utils/gaConstants.ts | 1 + 6 files changed, 19 insertions(+), 14 deletions(-) diff --git a/src/app/containers/Footer/index.tsx b/src/app/containers/Footer/index.tsx index 2ea74e574..6a82dc7a4 100644 --- a/src/app/containers/Footer/index.tsx +++ b/src/app/containers/Footer/index.tsx @@ -112,16 +112,20 @@ export function Footer() { {t(translations.footer.fluentwallet)} ); - const bountyLink = ( + const hubLink = ( - {t(translations.footer.confluxbounty)} + {t(translations.footer.hub)} ); const privacyPolicy = ( @@ -382,9 +386,7 @@ export function Footer() { {websiteLink} {portalLink} - {IS_FOREIGN_HOST && ( - {bountyLink} - )} + {hubLink} diff --git a/src/app/containers/Header/index.tsx b/src/app/containers/Header/index.tsx index ac4be4b80..8a0f789fc 100644 --- a/src/app/containers/Header/index.tsx +++ b/src/app/containers/Header/index.tsx @@ -230,11 +230,11 @@ export const Header = memo(() => { afterClick: menuClick, href: iszh ? NETWORK_TYPE === NETWORK_TYPES.testnet - ? 'https://test.confluxhub.io/governance/dashboard' - : 'https://governance.confluxnetwork.org/zh/' + ? 'https://test.confluxhub.io/governance/' + : 'https://confluxhub.io/governance/' : NETWORK_TYPE === NETWORK_TYPES.testnet - ? 'https://test.confluxhub.io/governance/dashboard' - : 'https://governance.confluxnetwork.org/en/', + ? 'https://test.confluxhub.io/governance/' + : 'https://confluxhub.io/governance/', }); contractItems.splice(2, 0, { diff --git a/src/index.tsx b/src/index.tsx index eeb8c6051..4449e91e6 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -61,7 +61,7 @@ Promise.all([completeDetect()]).then(() => { render(App); }); -const currentVersion = 'v2.16.0'; +const currentVersion = 'v2.16.1'; const brand = ` ┌─┐┌─┐┌┐┌┌─┐┬ ┬ ┬─┐ ┬ ┌─┐┌─┐┌─┐┌┐┌ ${currentVersion} diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 1c15073aa..164f856e4 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -460,7 +460,7 @@ "stakingAndGovernance": "Staking & Governance", "developerAPI": "API Documentation", "fcCfx": "FC-CFX Non-reversible Exchange", - "crossSpace": "Conflux Hub", + "crossSpace": "ConfluxHub", "more": "More", "tools": "Tools", "balanceChecker": "Balance Checker", @@ -524,6 +524,7 @@ "confluxnetwork": "Conflux Network", "fluentwallet": "Fluent Wallet", "confluxbounty": "ConfluxBounty", + "hub": "ConfluxHub", "copryRight": "© 2022 Conflux. All Rights Reserved.", "tool": "Tool", "addressFormatConversion": "Address Format Conversion", diff --git a/src/locales/zh_cn/translation.json b/src/locales/zh_cn/translation.json index 53317dec1..b972dba8e 100644 --- a/src/locales/zh_cn/translation.json +++ b/src/locales/zh_cn/translation.json @@ -459,7 +459,7 @@ "stakingAndGovernance": "质押 & 治理", "developerAPI": "API 文档", "fcCfx": "FC-CFX 不可逆兑换", - "crossSpace": "Conflux Hub", + "crossSpace": "ConfluxHub", "more": "更多", "tools": "工具", "balanceChecker": "余额检索器", @@ -523,6 +523,7 @@ "confluxnetwork": "Conflux Network", "fluentwallet": "Fluent Wallet", "confluxbounty": "ConfluxBounty", + "hub": "ConfluxHub", "copryRight": "© 2022 Conflux. All Rights Reserved.", "tool": "工具", "addressFormatConversion": "地址格式转换", diff --git a/src/utils/gaConstants.ts b/src/utils/gaConstants.ts index 29b6a3f6a..cdda71675 100644 --- a/src/utils/gaConstants.ts +++ b/src/utils/gaConstants.ts @@ -24,6 +24,7 @@ export const ScanEvent = { confluxNetwork: 'official_website', fluentWallet: 'portal', confluxBounty: 'bounty', + hub: 'confluxhub', addressConverter: 'address_converter', faucet: 'faucet', tools: 'tools', From 2dbfc755bcca763a9b88d98b6d2114b15135bd13 Mon Sep 17 00:00:00 2001 From: tangxuezhi <0x74616e67@gmail.com> Date: Tue, 25 Oct 2022 20:06:08 +0800 Subject: [PATCH 2/2] feat: remove pagesize of 120 --- src/app/containers/NFTAsset/index.tsx | 2 +- src/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/containers/NFTAsset/index.tsx b/src/app/containers/NFTAsset/index.tsx index 95c2a3145..ffabe0855 100644 --- a/src/app/containers/NFTAsset/index.tsx +++ b/src/app/containers/NFTAsset/index.tsx @@ -302,7 +302,7 @@ export function NFTAsset({ current={page} defaultPageSize={pageSize} total={paginationTotal} - pageSizeOptions={['12', '24', '60', '120']} + pageSizeOptions={['12', '24', '60']} onChange={handlePaginationChange} /> diff --git a/src/index.tsx b/src/index.tsx index 4449e91e6..726ff5748 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -61,7 +61,7 @@ Promise.all([completeDetect()]).then(() => { render(App); }); -const currentVersion = 'v2.16.1'; +const currentVersion = 'v2.16.2'; const brand = ` ┌─┐┌─┐┌┐┌┌─┐┬ ┬ ┬─┐ ┬ ┌─┐┌─┐┌─┐┌┐┌ ${currentVersion}