diff --git a/src/components/MonitorList.vue b/src/components/MonitorList.vue index 496ad7a12..5be5bc7be 100644 --- a/src/components/MonitorList.vue +++ b/src/components/MonitorList.vue @@ -4,7 +4,7 @@ No Monitors, please add one. - + diff --git a/src/layouts/Layout.vue b/src/layouts/Layout.vue index d63f209f1..f5f2c6ec2 100644 --- a/src/layouts/Layout.vue +++ b/src/layouts/Layout.vue @@ -52,22 +52,22 @@ - + Dashboard - + List - + - + Add - + Settings @@ -101,7 +101,7 @@ export default { }, watch: { - $route (to, from) { + $route(to, from) { this.init(); }, }, diff --git a/src/main.js b/src/main.js index 19da50b97..a4c1338b6 100644 --- a/src/main.js +++ b/src/main.js @@ -18,6 +18,8 @@ import Details from "./pages/Details.vue"; import EditMonitor from "./pages/EditMonitor.vue"; import Settings from "./pages/Settings.vue"; import Setup from "./pages/Setup.vue"; +import List from "./pages/List.vue"; + import { appName } from "./util.ts"; const routes = [ @@ -53,6 +55,10 @@ const routes = [ path: "/add", component: EditMonitor, }, + { + path: "/list", + component: List, + }, ], }, { diff --git a/src/mixins/socket.js b/src/mixins/socket.js index 69931c92a..454422e94 100644 --- a/src/mixins/socket.js +++ b/src/mixins/socket.js @@ -25,7 +25,6 @@ export default { uptimeList: { }, certInfoList: {}, notificationList: [], - showListMobile: false, connectionErrorMsg: "Cannot connect to the socket server. Reconnecting...", } }, @@ -186,10 +185,6 @@ export default { methods: { - cancelActiveList() { - this.$root.showListMobile = false; - }, - storage() { return (this.remember) ? localStorage : sessionStorage; }, diff --git a/src/pages/List.vue b/src/pages/List.vue new file mode 100644 index 000000000..6d87cb87d --- /dev/null +++ b/src/pages/List.vue @@ -0,0 +1,14 @@ + + + + + +