From 7f146e0166c3ad946b8680f1e048bb3579d149f9 Mon Sep 17 00:00:00 2001 From: unknown <41499871+Torpedo99@users.noreply.github.com> Date: Wed, 11 Dec 2019 00:25:24 +0530 Subject: [PATCH] Added a Logout mechanism and add some login ui Changed auth page and added logout button Changed some fonts --- package.json | 3 +- public/index.html | 73 +++++++++++++++++------------- src/App.vue | 21 +++------ src/assets/loaders/bars.svg | 2 +- src/components/auth/Login.vue | 48 ++++++++++---------- src/components/general/Toolbar.vue | 45 ++++++++++++++++++ src/config/AxiosHelper.js | 3 +- src/views/AuthView.vue | 41 +++++++++++++++-- 8 files changed, 159 insertions(+), 77 deletions(-) create mode 100644 src/components/general/Toolbar.vue diff --git a/package.json b/package.json index 4aec39a..80573c7 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,9 @@ }, "dependencies": { "axios": "^0.18.0", + "bootstrap": "^4.4.1", + "bootstrap-vue": "^2.1.0", "core-js": "^2.6.5", - "cors": "^2.8.5", "vue": "^2.6.10", "vue-router": "^3.0.3", "vuetify": "^1.5.5", diff --git a/public/index.html b/public/index.html index 773f8d1..5de8c81 100644 --- a/public/index.html +++ b/public/index.html @@ -1,34 +1,43 @@ - - - - - - CodeBadge - - - - - - -
- - - + + + + + + + CodeBadge + + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index a3c22fb..1626fe0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,26 +1,19 @@ diff --git a/src/assets/loaders/bars.svg b/src/assets/loaders/bars.svg index 8777ab5..94c6440 100644 --- a/src/assets/loaders/bars.svg +++ b/src/assets/loaders/bars.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/components/auth/Login.vue b/src/components/auth/Login.vue index 8c90646..818c837 100644 --- a/src/components/auth/Login.vue +++ b/src/components/auth/Login.vue @@ -1,23 +1,23 @@ + + \ No newline at end of file diff --git a/src/config/AxiosHelper.js b/src/config/AxiosHelper.js index 9c64509..7c53071 100644 --- a/src/config/AxiosHelper.js +++ b/src/config/AxiosHelper.js @@ -2,5 +2,6 @@ module.exports = { baseUrl: 'https://api.github.com', authUrl: 'https://github.com/login/oauth/authorize', gatekeeperUrl: 'https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token', - homeUrl: 'http://localhost:8080/#/home' + homeUrl: 'http://localhost:8080/#/home', + homeAuthUrl: 'http://localhost:8080/#/auth' }; diff --git a/src/views/AuthView.vue b/src/views/AuthView.vue index e3e6b0b..74d9acb 100644 --- a/src/views/AuthView.vue +++ b/src/views/AuthView.vue @@ -1,16 +1,27 @@ \ No newline at end of file