diff options
author | Derick Montague <derick.montague@ibm.com> | 2019-12-05 01:30:08 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2020-01-23 02:44:50 +0300 |
commit | e080a1a7593e83a49d623ffdd452fd0e1c617889 (patch) | |
tree | bb94dee85cae80a3f54f4fbcf1d816f304129e67 /src/layouts/AppLayout.vue | |
parent | 186ce2e407812f417aba7a2ee2ab6cae5d5f3b0e (diff) | |
download | webui-vue-e080a1a7593e83a49d623ffdd452fd0e1c617889.tar.xz |
Add login and logout functionality
- Add AuthenticationStore
- Add ability to login and logout
- Add route navigation guard
- Add login styles
- Add temporary authentication for api call
- Add Login directory
- Add index.js
In order to login a .env.development.local file that contains
BASE_URL="https://<ip address> or <FQDN>"
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: I88b93e287e66f4bae82a1ec2934cdef12d78264e
Diffstat (limited to 'src/layouts/AppLayout.vue')
-rw-r--r-- | src/layouts/AppLayout.vue | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/layouts/AppLayout.vue b/src/layouts/AppLayout.vue new file mode 100644 index 00000000..dcfb52e7 --- /dev/null +++ b/src/layouts/AppLayout.vue @@ -0,0 +1,38 @@ +<template> + <div> + <AppHeader /> + <b-container fluid class="page-container"> + <b-row no-gutters> + <b-col tag="nav" cols="12" md="3" lg="2"> + <AppNavigation /> + </b-col> + <b-col cols="12" md="9" lg="10"> + <main id="#main-content"> + <router-view /> + </main> + </b-col> + </b-row> + </b-container> + </div> +</template> + +<script> +import AppHeader from "@/components/AppHeader"; +import AppNavigation from "@/components/AppNavigation"; +export default { + name: "App", + components: { + AppHeader, + AppNavigation + } +}; +</script> + +<style lang="scss" scoped> +.page-container { + margin-right: 0; + margin-left: 0; + padding-right: 0; + padding-left: 0; +} +</style> |