diff --git a/ui/src/App.vue b/ui/src/App.vue index 40b83ac..b0cb4ef 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -3,7 +3,21 @@ Wg Gen Web - Wg Gen Web + Wg Gen Web + + + + + + Clients + mdi-account-network-outline + + + Server + mdi-vpn + + + diff --git a/ui/src/components/Server.vue b/ui/src/components/Server.vue index 01e9106..9d68928 100644 --- a/ui/src/components/Server.vue +++ b/ui/src/components/Server.vue @@ -1,12 +1,20 @@ diff --git a/ui/src/router/index.js b/ui/src/router/index.js index ad988da..bbd46bb 100644 --- a/ui/src/router/index.js +++ b/ui/src/router/index.js @@ -1,21 +1,36 @@ import Vue from 'vue' import VueRouter from 'vue-router' -import Home from '../views/Home.vue' -Vue.use(VueRouter) +Vue.use(VueRouter); const routes = [ { path: '/', - name: 'home', - component: Home + name: 'index', + component: function () { + return import(/* webpackChunkName: "Index" */ '../views/Index.vue') + }, + }, + { + path: '/clients', + name: 'clients', + component: function () { + return import(/* webpackChunkName: "Clients" */ '../views/Clients.vue') + }, + }, + { + path: '/server', + name: 'server', + component: function () { + return import(/* webpackChunkName: "Server" */ '../views/Server.vue') + }, } -] +]; const router = new VueRouter({ mode: 'history', base: process.env.BASE_URL, routes -}) +}); export default router diff --git a/ui/src/views/Home.vue b/ui/src/views/Clients.vue similarity index 68% rename from ui/src/views/Home.vue rename to ui/src/views/Clients.vue index 6ac0b8a..2512e75 100644 --- a/ui/src/views/Home.vue +++ b/ui/src/views/Clients.vue @@ -1,18 +1,15 @@ diff --git a/ui/src/views/Server.vue b/ui/src/views/Server.vue new file mode 100644 index 0000000..a45af91 --- /dev/null +++ b/ui/src/views/Server.vue @@ -0,0 +1,16 @@ + + +