From 0971c800dec44dea5f1ee68ddbaa6638c2b36421 Mon Sep 17 00:00:00 2001 From: maayarosama Date: Tue, 19 Nov 2024 12:12:26 +0200 Subject: [PATCH 1/3] Fixing manual link redirects to connect wallet docs --- packages/playground/src/utils/manual.ts | 1 + packages/playground/src/weblets/profile_manager.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/playground/src/utils/manual.ts b/packages/playground/src/utils/manual.ts index 0af98de2e3..538324f33a 100644 --- a/packages/playground/src/utils/manual.ts +++ b/packages/playground/src/utils/manual.ts @@ -10,6 +10,7 @@ export const manual = { dao: `${BASE}/documentation/dashboard/tfchain/tf_dao.html`, caprover: `${BASE}/documentation/dashboard/solutions/caprover.html`, tf_connect_app: `${BASE}/documentation/threefold_token/storing_tft/tf_connect_app.html`, + tf_connect_wallet: `${BASE}/documentation/dashboard/wallet_connector.html`, contract_locking: `${BASE}/documentation/developers/tfchain/tfchain.html#contract-locking`, billing_pricing: `${BASE}/documentation/dashboard/deploy/node_finder.html#billing--pricing`, discount_levels: `${BASE}/knowledge_base/cloud/pricing/pricing.html#staking-discount`, diff --git a/packages/playground/src/weblets/profile_manager.vue b/packages/playground/src/weblets/profile_manager.vue index cef65de4da..8a7590b88e 100644 --- a/packages/playground/src/weblets/profile_manager.vue +++ b/packages/playground/src/weblets/profile_manager.vue @@ -72,7 +72,7 @@

Please visit - the manual + the manual get started.

From 6cfbdbe746992f3618ffe1e17d8d973944d29819 Mon Sep 17 00:00:00 2001 From: maayarosama Date: Sun, 24 Nov 2024 11:33:17 +0200 Subject: [PATCH 2/3] using url join in with links in manual.ts --- packages/playground/package.json | 1 + packages/playground/src/utils/manual.ts | 33 +++++++++++++------------ 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/packages/playground/package.json b/packages/playground/package.json index 34f5593cdf..e2a76fbd54 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -41,6 +41,7 @@ "mosha-vue-toastify": "^1.0.23", "pinia": "^2.0.32", "qrcode": "^1.5.1", + "url-join": "^5.0.0", "validator": "^13.9.0", "vue": "^3.2.47", "vue-chartjs": "^5.2.0", diff --git a/packages/playground/src/utils/manual.ts b/packages/playground/src/utils/manual.ts index 538324f33a..6bcf104c94 100644 --- a/packages/playground/src/utils/manual.ts +++ b/packages/playground/src/utils/manual.ts @@ -1,19 +1,20 @@ -const BASE = window.env.MANUAL_URL; +import urlJoin from "url-join"; +const BASE = window.env.MANUAL_URL; export const manual = { - dedicated_machines: `${BASE}/documentation/dashboard/deploy/node_finder.html#dedicated-nodes`, - tft_bridges: `${BASE}/documentation/threefold_token/tft_bridges/tft_bridges.html`, - buy_sell_tft: `${BASE}/documentation/threefold_token/buy_sell_tft/buy_sell_tft.html`, - farmers: `${BASE}/documentation/farmers/farmers.html`, - governance: `${BASE}/documentation/dashboard/tfchain/tf_dao.html`, - pricing: `${BASE}/knowledge_base/cloud/pricing/pricing.html`, - dao: `${BASE}/documentation/dashboard/tfchain/tf_dao.html`, - caprover: `${BASE}/documentation/dashboard/solutions/caprover.html`, - tf_connect_app: `${BASE}/documentation/threefold_token/storing_tft/tf_connect_app.html`, - tf_connect_wallet: `${BASE}/documentation/dashboard/wallet_connector.html`, - contract_locking: `${BASE}/documentation/developers/tfchain/tfchain.html#contract-locking`, - billing_pricing: `${BASE}/documentation/dashboard/deploy/node_finder.html#billing--pricing`, - discount_levels: `${BASE}/knowledge_base/cloud/pricing/pricing.html#staking-discount`, - tfchain_stellar_bridge: `${BASE}/documentation/threefold_token/tft_bridges/tfchain_stellar_bridge.html`, - minting_receipts: `${BASE}/documentation/farmers/3node_building/minting_receipts.html`, + dedicated_machines: urlJoin(BASE, "/documentation/dashboard/deploy/node_finder.html#dedicated-nodes"), + tft_bridges: urlJoin(BASE, "/documentation/threefold_token/tft_bridges/tft_bridges.html"), + buy_sell_tft: urlJoin(BASE, "/documentation/threefold_token/buy_sell_tft/buy_sell_tft.html"), + farmers: urlJoin(BASE, "/documentation/farmers/farmers.html"), + governance: urlJoin(BASE, "/documentation/dashboard/tfchain/tf_dao.html"), + pricing: urlJoin(BASE, "/knowledge_base/cloud/pricing/pricing.html"), + dao: urlJoin(BASE, "/documentation/dashboard/tfchain/tf_dao.html"), + caprover: urlJoin(BASE, "/documentation/dashboard/solutions/caprover.html"), + tf_connect_app: urlJoin(BASE, "/documentation/threefold_token/storing_tft/tf_connect_app.html"), + tf_connect_wallet: urlJoin(BASE, "/documentation/dashboard/wallet_connector.html"), + contract_locking: urlJoin(BASE, "/documentation/developers/tfchain/tfchain.html#contract-locking"), + billing_pricing: urlJoin(BASE, "/documentation/dashboard/deploy/node_finder.html#billing--pricing"), + discount_levels: urlJoin(BASE, "/knowledge_base/cloud/pricing/pricing.html#staking-discount"), + tfchain_stellar_bridge: urlJoin(BASE, "/documentation/threefold_token/tft_bridges/tfchain_stellar_bridge.html"), + minting_receipts: urlJoin(BASE, "/documentation/farmers/3node_building/minting_receipts.html"), }; From e5dd45165867349da0fe79a10320116b9c939bd0 Mon Sep 17 00:00:00 2001 From: Omar Kassem Date: Sun, 24 Nov 2024 14:36:34 +0200 Subject: [PATCH 3/3] FIX(NodeDetails/iperf): show error if the result array is empty (#3664) --- .../src/components/node_details_cards/iperf_details_card.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/playground/src/components/node_details_cards/iperf_details_card.vue b/packages/playground/src/components/node_details_cards/iperf_details_card.vue index 3f8cfe6407..0f03ad7385 100644 --- a/packages/playground/src/components/node_details_cards/iperf_details_card.vue +++ b/packages/playground/src/components/node_details_cards/iperf_details_card.vue @@ -70,6 +70,10 @@ export default { downloadSpeed: format(node.download_speed), uploadSpeed: format(node.upload_speed), })); + if (array.length === 0) { + console.error("Empty array returned from the IPerf test"); + throw new Error("Can't get the test results, please try again later."); + } IperfDetails.value = array; return IperfDetails.value; };