Skip to content

Commit 7f5634c

Browse files
committed
fix
1 parent 9fd4970 commit 7f5634c

File tree

1 file changed

+28
-29
lines changed

1 file changed

+28
-29
lines changed

config/nav-config.js

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
const currentHostname =
2-
window.location.hostname === "localhost" ? "" : window.location.hostname;
1+
32
const outerDit = {
4-
"crust network": `https://apps.${currentHostname}/?rpc=wss%3A%2F%2Frpc.${currentHostname}#/explorer`,
5-
"crust network_zh": `https://apps.${currentHostname}/?rpc=wss%3A%2F%2Frpc.${currentHostname}#/explorer`,
6-
"crust wallet": `https://wiki.${currentHostname}/docs/en/crustWallet`,
7-
"crust wallet_zh": `https://wiki.${currentHostname}/docs/zh-CN/crustWallet`,
3+
"crust network": `https://apps.${'crustnetwork.xyz'}/?rpc=wss%3A%2F%2Frpc.${'crustnetwork.xyz'}#/explorer`,
4+
"crust network_zh": `https://apps.${'crustnetwork.xyz'}/?rpc=wss%3A%2F%2Frpc.${'crustnetwork.xyz'}#/explorer`,
5+
"crust wallet": `https://wiki.${'crustnetwork.xyz'}/docs/en/crustWallet`,
6+
"crust wallet_zh": `https://wiki.${'crustnetwork.xyz'}/docs/zh-CN/crustWallet`,
87
"blockchain explorer": "https://crust.subscan.io/",
98
"blockchain explorer_zh": "https://crust.subscan.io/",
109
"token swap": "https://csm.crust.network/#/swap",
1110
"token swap_zh": "https://csm.crust.network/#/swap",
12-
"crust mainnet": `https://apps.${currentHostname}/?rpc=wss%3A%2F%2Frpc.${currentHostname}#/explorer`,
13-
"crust mainnet_en": `https://apps.${currentHostname}/?rpc=wss%3A%2F%2Frpc.${currentHostname}#/explorer`,
14-
"crust maxwell": `https://apps.${currentHostname}/?rpc=wss%3A%2F%2Fapi-maxwell.${currentHostname}#/`,
15-
"crust maxwellIndex": `https://apps.${currentHostname}/?rpc=wss%3A%2F%2Frpc.${currentHostname}#/`,
16-
"crust maxwell_zh": `https://apps.${currentHostname}/?rpc=wss%3A%2F%2Frpc.${currentHostname}#/explorer`,
17-
"crust maxwell_en": `https://apps.${currentHostname}/?rpc=wss%3A%2F%2Frpc.${currentHostname}#/explorer`,
11+
"crust mainnet": `https://apps.${'crustnetwork.xyz'}/?rpc=wss%3A%2F%2Frpc.${'crustnetwork.xyz'}#/explorer`,
12+
"crust mainnet_en": `https://apps.${'crustnetwork.xyz'}/?rpc=wss%3A%2F%2Frpc.${'crustnetwork.xyz'}#/explorer`,
13+
"crust maxwell": `https://apps.${'crustnetwork.xyz'}/?rpc=wss%3A%2F%2Fapi-maxwell.${'crustnetwork.xyz'}#/`,
14+
"crust maxwellIndex": `https://apps.${'crustnetwork.xyz'}/?rpc=wss%3A%2F%2Frpc.${'crustnetwork.xyz'}#/`,
15+
"crust maxwell_zh": `https://apps.${'crustnetwork.xyz'}/?rpc=wss%3A%2F%2Frpc.${'crustnetwork.xyz'}#/explorer`,
16+
"crust maxwell_en": `https://apps.${'crustnetwork.xyz'}/?rpc=wss%3A%2F%2Frpc.${'crustnetwork.xyz'}#/explorer`,
1817
github: "https://github.com/crustio",
1918
github_zh: "https://github.com/crustio",
20-
"build on crust": `https://wiki.${currentHostname}/docs/en/build101`,
21-
"build on crust_zh": `https://wiki.${currentHostname}/docs/en/build101`,
19+
"build on crust": `https://wiki.${'crustnetwork.xyz'}/docs/en/build101`,
20+
"build on crust_zh": `https://wiki.${'crustnetwork.xyz'}/docs/en/build101`,
2221
"crust grants": "https://github.com/crustio/Crust-Grants-Program",
2322
"crust grants_zh": "https://github.com/crustio/Crust-Grants-Program",
2423
"crust bounty": "https://gitcoin.co/crustio",
@@ -27,13 +26,13 @@ const outerDit = {
2726
"cru token_zh": "https://csm.crust.network/#/swap",
2827
csmtoken: "https://csm.crust.network/#/cru/info",
2928

30-
wiki: `https://wiki.${currentHostname}/zh-CN`,
29+
wiki: `https://wiki.${'crustnetwork.xyz'}/zh-CN`,
3130
twitter: "https://twitter.com/CrustNetwork",
3231
medium: "https://medium.com/@CrustNetwork",
3332
telegram: "https://t.me/CrustNetwork",
3433
discord: "https://discord.gg/Jbw2PAUSCR",
35-
explorer: `http://explorer.${currentHostname}/`,
36-
"crust apps": `https://apps.${currentHostname}/?rpc=wss%3A%2F%2Fapi-maxwell.${currentHostname}#/explorer/`,
34+
explorer: `http://explorer.${'crustnetwork.xyz'}/`,
35+
"crust apps": `https://apps.${'crustnetwork.xyz'}/?rpc=wss%3A%2F%2Fapi-maxwell.${'crustnetwork.xyz'}#/explorer/`,
3736
"blockchain explorer": "https://crust.subscan.io/",
3837
"storage explorer": "https://crust.subscan.io/storage",
3938
"storage explorer_zh": "https://crust.subscan.io/storage",
@@ -44,15 +43,15 @@ const outerDit = {
4443
pdfBucket:
4544
"https://crust-data.oss-cn-shanghai.aliyuncs.com/crust-home/whitepapers/",
4645
extractDocs: "https://crust-data.oss-cn-shanghai.aliyuncs.com/external_docs/",
47-
download: `https://${currentHostname}/download/`,
46+
download: `https://${'crustnetwork.xyz'}/download/`,
4847
clouden: "https://github.com/crustio/crust/wiki/Crust-Cloud-Testing-Guide",
4948
cloud:
5049
"https://github.com/crustio/crust/wiki/Crust-Cloud-%E6%B5%8B%E8%AF%95%E6%89%8B%E5%86%8C",
5150
learnMore: "https://github.com/crustio/crust",
52-
wiki_en: `https://wiki.${currentHostname}/en`,
53-
wiki_zh: `https://wiki.${currentHostname}/zh-CN`,
54-
wallet_wiki_en: `https://wiki.${currentHostname}/docs/en/crustWallet`,
55-
wallet_wiki_zh: `https://wiki.${currentHostname}/docs/zh-CN/crustWallet`,
51+
wiki_en: `https://wiki.${'crustnetwork.xyz'}/en`,
52+
wiki_zh: `https://wiki.${'crustnetwork.xyz'}/zh-CN`,
53+
wallet_wiki_en: `https://wiki.${'crustnetwork.xyz'}/docs/en/crustWallet`,
54+
wallet_wiki_zh: `https://wiki.${'crustnetwork.xyz'}/docs/zh-CN/crustWallet`,
5655
"check our github_en": "https://github.com/crustio",
5756
"check our github": "https://github.com/crustio",
5857
"crust grants": "https://github.com/crustio/Crust-Grants-Program",
@@ -65,15 +64,15 @@ const outerDit = {
6564
rewards_plan_en:
6665
"https://crustnetwork.medium.com/crust-updates-kusama-parachain-slot-auction-rewards-2f6b32c682ec",
6766
rewards_plan_zh: "https://mp.weixin.qq.com/s/xtLCalg9fnvoierQTNFDfQ",
68-
"free storage": `https://fs.${currentHostname}`,
67+
"free storage": `https://fs.${'crustnetwork.xyz'}`,
6968
mediamaterials:
7069
"https://ipfs.io/ipfs/Qme9uUpunio7heGDnnfsptYWzjLJgvD2hkbLGcvehPz5EK?filename=CrustLogo.zip",
7170
dotask: "https://www.coinask.io/n/crust",
7271
mainnet_plan_medium_zh: "https://www.yuque.com/qm003f/thyzgp/rs6o07",
7372
mainnet_plan_medium_en:
7473
"https://medium.com/crustnetwork/big-announcement-crust-mainnet-launch-timeline-c2bd2dc0d490",
75-
cru_claim_en: `https://wiki.${currentHostname}/docs/en/claims`,
76-
cru_claim_zh: `https://wiki.${currentHostname}/docs/zh-CN/claims`,
74+
cru_claim_en: `https://wiki.${'crustnetwork.xyz'}/docs/en/claims`,
75+
cru_claim_zh: `https://wiki.${'crustnetwork.xyz'}/docs/zh-CN/claims`,
7776
analysis_of_economic_model_en:
7877
"https://ipfs.io/ipfs/QmPeoZuvhq8G5SQ95KJ35xGVLP3pHtF2hahrtFsjTaZbFk?filename=Analysis of Crust Network Economic Model.pdf",
7978
analysis_of_economic_model_zh:
@@ -87,14 +86,14 @@ const outerDit = {
8786
enjoy_action:
8887
"https://twitter.com/CrustNetwork/status/1584431211417833472?s=20&t=C662BQ7jphV6l9D7F59b3Q",
8988

90-
start_button1: `https://wiki.${currentHostname}/docs/en/build101`,
89+
start_button1: `https://wiki.${'crustnetwork.xyz'}/docs/en/build101`,
9190
start_button2: "https://github.com/crustio/free-storage#-apply-process",
92-
start_button3: `https://wiki.${currentHostname}/docs/en/build101`,
93-
start_button4: `https://wiki.${currentHostname}/docs/en/buildCrossChainSolution`,
91+
start_button3: `https://wiki.${'crustnetwork.xyz'}/docs/en/build101`,
92+
start_button4: `https://wiki.${'crustnetwork.xyz'}/docs/en/buildCrossChainSolution`,
9493

9594
evm_storage:
9695
"https://ipfs.io/ipfs/QmSijA1yFvMxY2R6CxRzDNtrLA9h7v8hTxZqTvpgdSPsD3?filename=Crust EVM Storage.pdf",
97-
evm_storage_dev_wiki: `https://wiki.${currentHostname}/docs/en/evmBuildOverview`,
96+
evm_storage_dev_wiki: `https://wiki.${'crustnetwork.xyz'}/docs/en/evmBuildOverview`,
9897
"evm storage": "/evm",
9998
};
10099
const outerList = Object.keys(outerDit);

0 commit comments

Comments
 (0)