Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the manual link, add one more tab in the sidebar #243

Merged
merged 1 commit into from
May 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/dashboard/charts/tfgrid-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ image:
value: ""
- name: "PLAYGROUND_URL"
value: ""
- name: "MANUAL_URL"
value: ""
- name: "RELAY_DOMAIN"
value: ""

Expand Down
1 change: 1 addition & 0 deletions packages/dashboard/docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ To get a local copy up and running follow these simple example steps:
- SUBSTRATE_URL
- ACTIVATION_SERVICE_URL
- PLAYGROUND_URL
- MANUAL_URL
- RELAY_DOMAIN

To try the project locally you can easy clone the repo and run the following commands:
Expand Down
1 change: 1 addition & 0 deletions packages/dashboard/public/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ window.configs = {
APP_GAS_PRICE: "80TFT",
APP_CHAIN_ID: "threefold-hub-testnet",
PLAYGROUND_URL: "https://play.dev.grid.tf",
MANUAL_URL: "https://manual.grid.tf",
RELAY: "relay.dev.grid.tf",
};
4 changes: 3 additions & 1 deletion packages/dashboard/scripts/build-env.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

REQUIRED_ENV_VARS=( GRAPHQL_URL BRIDGE_TFT_ADDRESS GRIDPROXY_URL VERSION SUBSTRATE_URL ACTIVATION_SERVICE_URL PLAYGROUND_URL RELAY_DOMAIN )
REQUIRED_ENV_VARS=( GRAPHQL_URL BRIDGE_TFT_ADDRESS GRIDPROXY_URL VERSION SUBSTRATE_URL ACTIVATION_SERVICE_URL PLAYGROUND_URL RELAY_DOMAIN MANUAL_URL )
STELLAR_NETWORK="${STELLAR_NETWORK:=test}"
TFCHAIN_NETWORK="${TFCHAIN_NETWORK:=dev}"

Expand Down Expand Up @@ -88,6 +88,7 @@ BRIDGE_FEES="3"
TFT_DECIMALS=7
TFT_DENOM="TFT"
COSMOS_REST="https://tfhub.test.grid.tf:1317/"
MANUAL_URL="https://manual.grid.tf"
TENDERMINT_RPC="https://tfhub.test.grid.tf:26657/"
GAS_PRICE="80TFT"
CHAIN_ID="threefold-hub-testnet"
Expand Down Expand Up @@ -130,6 +131,7 @@ window.configs = {
APP_GAS_PRICE: '$GAS_PRICE',
APP_CHAIN_ID: '$CHAIN_ID',
PLAYGROUND_URL: '$PLAYGROUND_URL',
MANUAL_URL: '$MANUAL_URL',
RELAY: '$RELAY_DOMAIN',
};
"
Expand Down
7 changes: 7 additions & 0 deletions packages/dashboard/src/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,13 @@ export default class Dashboard extends Vue {
hyperlink: true,
children: [],
},
{
label: "Manual",
icon: "book-open-page-variant-outline",
prefix: window.configs.MANUAL_URL,
hyperlink: true,
children: [],
},
];
toggle() {
this.$root.$emit("closeSidebar");
Expand Down
4 changes: 1 addition & 3 deletions packages/dashboard/src/calculator/views/Calculator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
<i class="fa fa-calculator" aria-hidden="true"></i>
</h1>
<span class="link">
<a href="https://library.threefold.me/info/threefold/#/tfgrid/pricing/threefold__pricing" target="_blank"
>Threefold Pricing</a
>
<a href="https://manual.grid.tf/cloud/cloudunits_pricing.html" target="_blank">Threefold Pricing</a>
</span>
</div>

Expand Down
1 change: 1 addition & 0 deletions packages/dashboard/src/shims-tsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ interface AppConfigs {
APP_GAS_PRICE: string;
APP_CHAIN_ID: string;
PLAYGROUND_URL: string;
MANUAL_URL: string;
}
declare let process: {
env: {
Expand Down