From f856da074ee8835b6c9c8621fbf12cc3716ce0df Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Sun, 2 Dec 2018 21:42:43 -0500 Subject: [PATCH] feat: user menu + jwt certs + UI fixes --- client/client-app.js | 2 + client/components/admin.vue | 13 ++- client/components/admin/admin-auth.vue | 2 +- client/components/admin/admin-editor.vue | 2 +- client/components/admin/admin-general.vue | 15 +-- client/components/admin/admin-locale.vue | 6 +- client/components/admin/admin-logging.vue | 2 +- client/components/admin/admin-navigation.vue | 23 +++- client/components/admin/admin-rendering.vue | 4 +- client/components/admin/admin-theme.vue | 4 +- client/components/common/criterias-item.vue | 77 +++++++++++-- client/components/common/nav-header.vue | 77 ++++++++++--- .../editor/editor-modal-properties.vue | 2 +- client/scss/app.scss | 2 +- client/scss/components/v-form.scss | 32 ++++++ .../scss/components/vue-tree-navigation.scss | 27 ----- client/store/index.js | 4 +- client/store/user.js | 44 ++++++++ client/themes/default/components/page.vue | 23 ++-- package.json | 1 + server/controllers/auth.js | 104 ++---------------- server/core/auth.js | 2 +- server/models/users.js | 6 +- server/setup.js | 25 ++++- yarn.lock | 22 ++++ 25 files changed, 327 insertions(+), 194 deletions(-) create mode 100644 client/scss/components/v-form.scss delete mode 100644 client/scss/components/vue-tree-navigation.scss create mode 100644 client/store/user.js diff --git a/client/client-app.js b/client/client-app.js index 39bc03ee..661c57e4 100644 --- a/client/client-app.js +++ b/client/client-app.js @@ -48,6 +48,8 @@ window.Hammer = Hammer moment.locale(siteConfig.lang) +store.commit('user/REFRESH_AUTH') + // ==================================== // Initialize Apollo Client (GraphQL) // ==================================== diff --git a/client/components/admin.vue b/client/components/admin.vue index 90f7be93..227f8ab7 100644 --- a/client/components/admin.vue +++ b/client/components/admin.vue @@ -155,6 +155,12 @@ export default {