Skip to content

Commit

Permalink
Merge pull request #3691 from threefoldtech/development
Browse files Browse the repository at this point in the history
pull updates
  • Loading branch information
khaledyoussef24 authored Dec 1, 2024
2 parents b1c6bff + 4e2fc0b commit 395ef9f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
1 change: 1 addition & 0 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
32 changes: 17 additions & 15 deletions packages/playground/src/utils/manual.ts
Original file line number Diff line number Diff line change
@@ -1,18 +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`,
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"),
};
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/profile_manager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<v-alert variant="tonal" class="mb-6">
<p :style="{ maxWidth: '880px' }">
Please visit
<a class="app-link" :href="manual.tf_connect_app" target="_blank"> the manual </a>
<a class="app-link" :href="manual.tf_connect_wallet" target="_blank"> the manual </a>
get started.
</p>
</v-alert>
Expand Down

0 comments on commit 395ef9f

Please sign in to comment.