From a929561c6303b5c9a1470d88a4ae46d9db5fe350 Mon Sep 17 00:00:00 2001 From: Jeffrey Duroyon Date: Fri, 5 Nov 2021 00:53:09 +0100 Subject: [PATCH] feat(accounts): add account tab and modal creation --- src/components/MesComptes.vue | 88 +++++++++++++++++++++++++++++++++++ src/config/noscomptes.js | 2 +- src/main.js | 5 +- src/views/Home.vue | 45 ++++++++++-------- 4 files changed, 119 insertions(+), 21 deletions(-) create mode 100644 src/components/MesComptes.vue diff --git a/src/components/MesComptes.vue b/src/components/MesComptes.vue new file mode 100644 index 0000000..1a17448 --- /dev/null +++ b/src/components/MesComptes.vue @@ -0,0 +1,88 @@ + + + + + diff --git a/src/config/noscomptes.js b/src/config/noscomptes.js index ce78056..2506aac 100644 --- a/src/config/noscomptes.js +++ b/src/config/noscomptes.js @@ -11,7 +11,7 @@ export const getAccounts = (oauthToken, userId) => { const headers = { "Authorization": "Bearer "+oauthToken }; - return Vue.axios.get("http://localhost:8081/users/"+userId+"/accountsgc", {headers}).then(response => {console.log(response);return response.data}) + return Vue.axios.get("http://localhost:8081/users/"+userId+"/accounts", {headers}).then(response => {console.log(response);return response.data}) } export const getSharedAccounts = (oauthToken, userId) => { diff --git a/src/main.js b/src/main.js index 45170cf..b0deae0 100644 --- a/src/main.js +++ b/src/main.js @@ -8,7 +8,7 @@ import VueAxios from 'vue-axios' import '@/assets/css/style.css' import GoogleAuth from '@/config/google_oAuth.js' -import { BootstrapVue, IconsPlugin } from 'bootstrap-vue' +import { BootstrapVue, IconsPlugin , BootstrapVueIcons, ModalPlugin} from 'bootstrap-vue' // Import Bootstrap an BootstrapVue CSS files (order is important) import 'bootstrap/dist/css/bootstrap.css' @@ -33,3 +33,6 @@ new Vue({ Vue.use(BootstrapVue) // Optionally install the BootstrapVue icon components plugin Vue.use(IconsPlugin) + +Vue.use(BootstrapVueIcons) +Vue.use(ModalPlugin) diff --git a/src/views/Home.vue b/src/views/Home.vue index 3c3869e..d2f7e75 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,27 +1,32 @@