diff --git a/package.json b/package.json index af4b1b4..34354d7 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ }, "dependencies": { "babel-runtime": "^6.23.0", + "gravatar": "^1.6.0", "vue": "^2.2.6", "vue-material": "^0.7.1", "vue-meta": "^0.5.5", diff --git a/src/components/layout/AppShell.vue b/src/components/layout/AppShell.vue index 5f72d21..3d554c6 100644 --- a/src/components/layout/AppShell.vue +++ b/src/components/layout/AppShell.vue @@ -1,18 +1,20 @@ - - - menu - - {{ $route.meta.title || "Sympa" }} - - more_vert - - - - - + + + + menu + + {{ $route.meta.title || "Sympa" }} + + more_vert + + + + + + @@ -36,12 +38,19 @@ export default { .md-toolbar > .md-title { flex: 1; } + +.main-container { + height: 100vh; + background-color: #F5F5F5; +} + .page-content { padding: 25px; } + @media screen and (min-width: 1281px) { - #app { - padding-left: 280px; + .main-container { + margin-left: 280px; } .page-content { padding: 18px 48px; diff --git a/src/components/layout/LoginForm.vue b/src/components/layout/LoginForm.vue index de58274..97f5c35 100644 --- a/src/components/layout/LoginForm.vue +++ b/src/components/layout/LoginForm.vue @@ -12,9 +12,11 @@ - + Password + + {{ errorMessage }} diff --git a/src/components/layout/Sidebar.vue b/src/components/layout/Sidebar.vue index e0364fd..ad06cd4 100644 --- a/src/components/layout/Sidebar.vue +++ b/src/components/layout/Sidebar.vue @@ -5,62 +5,73 @@ SYMPA - - - - - - {{ fullname }} - {{ email }} - - - keyboard_arrow_down - - - - - - dashboard - Dashboard - - - - - forum - Discussions - - - - - - work - Administration - - - - - list - Listmaster Admin - - - - - person - Profile - - - - - settings - Settings - - - - - help - About/Help - - + + + + + + + {{ fullname }} + {{ email }} + + + + + + Logout + + + + + + + + + + dashboard + Dashboard + + + + + forum + Discussions + + + + + + + + work + Administration + + + + + list + Listmaster Admin + + + + + person + Profile + + + + + settings + Settings + + + + + help + About/Help + + + @@ -73,12 +84,19 @@ export default { toggle() { this.$refs.sidebar.toggle(); }, + logout() { + this.$store.dispatch('auth/logout'); + }, }, - computed: mapGetters('auth', ['fullname', 'email']), + computed: mapGetters('auth', ['fullname', 'email', 'picture']), };