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

add minting website to dashboard #792

Merged
merged 3 commits into from
Jul 12, 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
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>