diff --git a/public/how-it-works.png b/public/how-it-works.png
new file mode 100644
index 0000000..9eebcec
Binary files /dev/null and b/public/how-it-works.png differ
diff --git a/src/components/NavDrawer.vue b/src/components/NavDrawer.vue
index 35f3102..cbf171d 100644
--- a/src/components/NavDrawer.vue
+++ b/src/components/NavDrawer.vue
@@ -19,7 +19,7 @@ import router from "@/router/index.js";
const s = useStore()
function nav(path) {
- router.push('/'+path)
+ router.push('/'+path) // todo use nav()
s.nav = false
}
diff --git a/src/components/Order.vue b/src/components/Order.vue
index 8f2c167..01e3141 100644
--- a/src/components/Order.vue
+++ b/src/components/Order.vue
@@ -11,7 +11,7 @@
- Cancel
+ Cancel
Place Dexorder
@@ -23,7 +23,7 @@ import {useOrderStore, useStore} from "@/store/store";
import PhoneCard from "@/components/PhoneCard.vue";
import Amount from "@/components/Amount.vue"
// noinspection ES6UnusedImports
-import {routeInverted, SingletonCoroutine, vAutoSelect} from "@/misc.js";
+import {nav, routeInverted, SingletonCoroutine, vAutoSelect} from "@/misc.js";
import {newOrder} from "@/blockchain/orderlib.js";
import {FixedNumber} from "ethers";
import {pendOrder} from "@/blockchain/wallet.js";
@@ -45,7 +45,7 @@ function placeOrder() {
const ts = props.tranches()
const order = newOrder(tokenIn, tokenOut, route.exchange, route.fee, amt, os.amountIsInput, ts) // todo: minAmount, outputToOwner, chainOrder
pendOrder(order)
- router.push('/status')
+ route('Status')
}
diff --git a/src/components/Social.vue b/src/components/Social.vue
index 7c9726f..d79efab 100644
--- a/src/components/Social.vue
+++ b/src/components/Social.vue
@@ -1,13 +1,14 @@
-
-
-
-
+
+
+
+
+
\ No newline at end of file
+
diff --git a/src/components/chart/ChartFooter.vue b/src/components/chart/ChartFooter.vue
deleted file mode 100644
index 0b5affa..0000000
--- a/src/components/chart/ChartFooter.vue
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/chart/ChartPlaceOrder.vue b/src/components/chart/ChartPlaceOrder.vue
index f047995..9970998 100644
--- a/src/components/chart/ChartPlaceOrder.vue
+++ b/src/components/chart/ChartPlaceOrder.vue
@@ -94,7 +94,7 @@ async function placeOrder() {
else {
await pendOrder(built[0])
co.resetOrders()
- router.push('/status')
+ nav('Status')
}
}
diff --git a/src/components/chart/Toolbar.vue b/src/components/chart/Toolbar.vue
index 8a9ee0b..9afe662 100644
--- a/src/components/chart/Toolbar.vue
+++ b/src/components/chart/Toolbar.vue
@@ -1,26 +1,14 @@
-
-
-
+
-
{{title}}
-
+
-
+
-
+
@@ -33,6 +21,7 @@ import {useTheme} from "vuetify";
import ToolbarButton from "@/components/chart/ToolbarButton.vue";
import Alpha from "@/components/Alpha.vue";
import Logo from "@/components/Logo.vue";
+import {nav} from "@/misc.js";
const props = defineProps(['title', 'icon'])
diff --git a/src/components/chart/ToolbarButton.vue b/src/components/chart/ToolbarButton.vue
index ddeba8e..68680f2 100644
--- a/src/components/chart/ToolbarButton.vue
+++ b/src/components/chart/ToolbarButton.vue
@@ -2,7 +2,7 @@
+ :icon="icon" @click="()=>nav(route)"/>
@@ -10,10 +10,12 @@
\ No newline at end of file
diff --git a/src/corp/Home.vue b/src/corp/Home.vue
index a7a262d..1e02fd4 100644
--- a/src/corp/Home.vue
+++ b/src/corp/Home.vue
@@ -1,36 +1,34 @@
-
-
-
-
-
- Advanced DeFi Orders
-
-
- Dexorder powers up your favorite DeFi exchange with advanced order types!
-
-
-
-
-
- Supports Uniswap v3
-
- Limit Orders
- DCA and TWAP Orders
- Diagonal Limit Orders
- Stop Loss / Take Profit
- One-Cancels-the-Other (OCO) Groups
- Single-transaction Cancel All
- Single-transaction Sell Everything
- Custom Complex Orders
-
-
-
-
-
-
-
-
+
+
+
+
+ Advanced DeFi Orders
+
+
+ Dexorder powers up your favorite DeFi exchange with advanced order types!
+
+
+
+
+
+ Supports Uniswap v3
+
+ Limit Orders
+ DCA and TWAP Orders
+ Diagonal Limit Orders
+ Stop Loss / Take Profit
+ One-Cancels-the-Other (OCO) Groups
+ Single-transaction Cancel All
+ Single-transaction Sell Everything
+ Custom Complex Orders
+
+
+
+