From e3b52bda3696c684ca944b43451868be681ef769 Mon Sep 17 00:00:00 2001 From: Thunder Date: Mon, 29 May 2023 11:55:25 +0300 Subject: [PATCH 1/2] Added TFTPrice component. --- packages/dashboard/src/Dashboard.vue | 7 +- .../src/portal/components/TftSwapPrice.vue | 64 +++++++++++++++++++ 2 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 packages/dashboard/src/portal/components/TftSwapPrice.vue diff --git a/packages/dashboard/src/Dashboard.vue b/packages/dashboard/src/Dashboard.vue index 0cc1b6ffcf..b7369610c2 100644 --- a/packages/dashboard/src/Dashboard.vue +++ b/packages/dashboard/src/Dashboard.vue @@ -8,7 +8,9 @@ >Threefold Chain - + + +
@@ -194,6 +196,7 @@ import { Component, Vue } from "vue-property-decorator"; import config from "@/portal/config"; import FundsCard from "./portal/components/FundsCard.vue"; +import TftSwapPrice from "./portal/components/TftSwapPrice.vue"; import WelcomeWindow from "./portal/components/WelcomeWindow.vue"; import { connect } from "./portal/lib/connect"; import { accountInterface } from "./portal/store/state"; @@ -222,7 +225,7 @@ interface SidenavItem { @Component({ name: "Dashboard", - components: { WelcomeWindow, FundsCard }, + components: { WelcomeWindow, FundsCard, TftSwapPrice }, }) export default class Dashboard extends Vue { collapseOnScroll = true; diff --git a/packages/dashboard/src/portal/components/TftSwapPrice.vue b/packages/dashboard/src/portal/components/TftSwapPrice.vue new file mode 100644 index 0000000000..4aa2273d0b --- /dev/null +++ b/packages/dashboard/src/portal/components/TftSwapPrice.vue @@ -0,0 +1,64 @@ + + From 4d61aa8c02c07dcc0e562affd90f24c889ef160a Mon Sep 17 00:00:00 2001 From: Thunder Date: Mon, 29 May 2023 12:36:51 +0300 Subject: [PATCH 2/2] Change the component class name to be TftSwapPrice --- packages/dashboard/src/portal/components/TftSwapPrice.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dashboard/src/portal/components/TftSwapPrice.vue b/packages/dashboard/src/portal/components/TftSwapPrice.vue index 4aa2273d0b..506980109f 100644 --- a/packages/dashboard/src/portal/components/TftSwapPrice.vue +++ b/packages/dashboard/src/portal/components/TftSwapPrice.vue @@ -27,7 +27,7 @@ type SwapPrice = { @Component({ name: "TftSwapPrice", }) -export default class FundsCard extends Vue { +export default class TftSwapPrice extends Vue { $api: any; swaped = false; prices: SwapPrice[] = [