From b968a43391ec5a5a3c805405f582a876f5f3584e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 30 Jul 2023 15:55:13 +0200 Subject: [PATCH] Add a mockup for the add account view --- src/App.vue | 21 +------- src/main.js | 11 +++-- src/router/index.js | 14 ++++++ src/views/AddAccountView.vue | 93 ++++++++++++++++++++++++++++++++++++ src/views/MainView.vue | 22 +++++++-- 5 files changed, 135 insertions(+), 26 deletions(-) create mode 100644 src/router/index.js create mode 100644 src/views/AddAccountView.vue diff --git a/src/App.vue b/src/App.vue index 600d717..ca05b0d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,25 +1,8 @@ diff --git a/src/main.js b/src/main.js index 5a6a208..af4b013 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,9 @@ -import './assets/main.sass' +import './assets/main.sass'; -import { createApp } from 'vue' -import App from './App.vue' +import { createApp } from 'vue'; +import App from './App.vue'; +import router from './router'; -createApp(App).mount('#app') +const app = createApp(App); +app.use(router); +app.mount('#app'); diff --git a/src/router/index.js b/src/router/index.js new file mode 100644 index 0000000..b29970c --- /dev/null +++ b/src/router/index.js @@ -0,0 +1,14 @@ +import {createRouter, createMemoryHistory} from 'vue-router'; + +import MainView from '../views/MainView.vue'; +import AddAccountView from '../views/AddAccountView.vue'; + +const router = createRouter({ + history: createMemoryHistory(), + routes: [ + {path: '/', component: MainView}, + {path: '/add-account', component: AddAccountView}, + ] +}); + +export default router; diff --git a/src/views/AddAccountView.vue b/src/views/AddAccountView.vue new file mode 100644 index 0000000..552a783 --- /dev/null +++ b/src/views/AddAccountView.vue @@ -0,0 +1,93 @@ + + + diff --git a/src/views/MainView.vue b/src/views/MainView.vue index 7680fe4..71b3c73 100644 --- a/src/views/MainView.vue +++ b/src/views/MainView.vue @@ -1,10 +1,26 @@