From 2d2cf905149f17935eb20de23c0449e7b46e9621 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 10 Aug 2019 22:14:53 -0400 Subject: [PATCH] feat: admin create user + markdown help fix --- client/client-app.js | 2 +- client/components/admin.vue | 12 +- .../admin/admin-groups-edit-permissions.vue | 17 +-- .../admin/admin-groups-edit-rules.vue | 110 +++++++------ .../admin/admin-groups-edit-users.vue | 40 ++--- client/components/admin/admin-groups-edit.vue | 17 ++- client/components/admin/admin-groups.vue | 36 +++-- client/components/admin/admin-storage.vue | 8 +- .../components/admin/admin-users-create.vue | 20 ++- client/components/admin/admin-users-edit.vue | 144 ++++++++++-------- client/components/admin/admin-users.vue | 74 +++------ client/components/common/user-search.vue | 10 +- client/components/editor/markdown/help.vue | 79 +++++----- client/components/login.vue | 2 +- client/scss/components/v-data-table.scss | 2 +- server/graph/resolvers/user.js | 13 +- server/models/users.js | 105 +++++++++---- 17 files changed, 365 insertions(+), 326 deletions(-) diff --git a/client/client-app.js b/client/client-app.js index 45cae772..f8e2410b 100644 --- a/client/client-app.js +++ b/client/client-app.js @@ -64,7 +64,7 @@ const graphQLLink = ApolloLink.from([ ) store.commit('showNotification', { style: 'red', - message: `An expected error occured.`, + message: `An unexpected error occured.`, icon: 'warning' }) } diff --git a/client/components/admin.vue b/client/components/admin.vue index a2ac2565..798a1b97 100644 --- a/client/components/admin.vue +++ b/client/components/admin.vue @@ -26,8 +26,8 @@ v-list-item(to='/pages', v-if='hasPermission([`manage:system`, `write:pages`, `manage:pages`, `delete:pages`])') v-list-item-avatar(size='24'): v-icon mdi-file-document-outline v-list-item-title {{ $t('admin:pages.title') }} - v-list-item-action - v-chip(x-small, disabled, :color='darkMode ? `grey darken-3-d4` : `grey lighten-4`') + v-list-item-action.pr-3 + v-chip(x-small, :color='darkMode ? `grey darken-3-d4` : `grey lighten-5`') .caption.grey--text {{ info.pagesTotal }} v-list-item(to='/theme', v-if='hasPermission([`manage:system`, `manage:theme`])') v-list-item-avatar(size='24'): v-icon mdi-palette-outline @@ -38,14 +38,14 @@ v-list-item(to='/groups', v-if='hasPermission([`manage:system`, `manage:groups`, `write:groups`])') v-list-item-avatar(size='24'): v-icon mdi-account-group v-list-item-title {{ $t('admin:groups.title') }} - v-list-item-action - v-chip(x-small, disabled, :color='darkMode ? `grey darken-3-d4` : `grey lighten-4`') + v-list-item-action.pr-3 + v-chip(x-small, :color='darkMode ? `grey darken-3-d4` : `grey lighten-4`') .caption.grey--text {{ info.groupsTotal }} v-list-item(to='/users', v-if='hasPermission([`manage:system`, `manage:groups`, `write:groups`, `manage:users`, `write:users`])') v-list-item-avatar(size='24'): v-icon mdi-account-box v-list-item-title {{ $t('admin:users.title') }} - v-list-item-action - v-chip(x-small, disabled, :color='darkMode ? `grey darken-3-d4` : `grey lighten-4`') + v-list-item-action.pr-3 + v-chip(x-small, :color='darkMode ? `grey darken-3-d4` : `grey lighten-4`') .caption.grey--text {{ info.usersTotal }} template(v-if='hasPermission(`manage:system`)') v-divider.my-2 diff --git a/client/components/admin/admin-groups-edit-permissions.vue b/client/components/admin/admin-groups-edit-permissions.vue index 37bf00d8..9d516b6d 100644 --- a/client/components/admin/admin-groups-edit-permissions.vue +++ b/client/components/admin/admin-groups-edit-permissions.vue @@ -1,27 +1,26 @@