Skip to content

Commit

Permalink
Merge pull request #792 from threefoldtech/development_dashboard_minting
Browse files Browse the repository at this point in the history
add minting website to dashboard
  • Loading branch information
AhmedHanafy725 authored Jul 12, 2023
2 parents 45aff99 + a50d270 commit b269e54
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
11 changes: 11 additions & 0 deletions packages/dashboard/src/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ interface SidenavItem {
icon: string;
prefix: string;
active?: boolean;
hidden?: boolean;
hyperlink?: boolean;
children: Array<{
label?: string;
Expand Down Expand Up @@ -269,6 +270,9 @@ export default class Dashboard extends Vue {
});
}
async mounted() {
this.routes = this.routes.filter(route => {
if (!route.hidden) return route;
});
await this.subscribe();
this.accounts = this.$store.state.portal.accounts;
if (this.$route.path === "/" && !this.$api) {
Expand Down Expand Up @@ -461,6 +465,13 @@ export default class Dashboard extends Vue {
prefix: "/other/bootstrap",
children: [],
},
{
label: "Minting",
icon: "cash-multiple",
prefix: "/other/minting",
children: [],
hidden: window.configs.APP_NETWORK !== "main",
},
{
label: "Monitoring",
icon: "equalizer",
Expand Down
6 changes: 5 additions & 1 deletion packages/dashboard/src/other/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ import Vue from "vue";
import VueRouter, { RouteConfig } from "vue-router";

import BootstrapView from "../views/BootstrapView.vue";

import MintingView from "../views/MintingView.vue";
Vue.use(VueRouter);

export const otherRoutes: Array<RouteConfig> = [
{
path: "/other/bootstrap",
component: BootstrapView,
},
{
path: "/other/minting",
component: MintingView,
},
];
10 changes: 10 additions & 0 deletions packages/dashboard/src/other/views/MintingView.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<template>
<div style="padding-top: 64px; height: 100vh">
<iframe
src="https://alpha.minting.tfchain.grid.tf/"
style="border: none; background-color: white"
width="100%"
height="100%"
/>
</div>
</template>

0 comments on commit b269e54

Please sign in to comment.