From 7793df9bd45216151f31f005dcb4e3e1a540c3dc Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 24 Mar 2018 22:35:47 -0400 Subject: [PATCH] feat: admin groups - list + create, gql refactoring --- client/components/admin-groups.vue | 64 ++++++-- client/components/admin-system.vue | 59 ++----- client/components/admin.vue | 19 +++ client/components/login.vue | 61 ++----- client/components/nav-header.vue | 7 +- client/graph/admin-groups-mutation-create.gql | 18 ++ client/graph/admin-groups-query-list.gql | 11 ++ client/graph/admin-system-query-info.gql | 21 +++ client/graph/login-mutation-login.gql | 14 ++ client/graph/login-mutation-tfa.gql | 12 ++ client/graph/login-query-strategies.gql | 13 ++ client/store/index.js | 43 +++-- client/store/modules/navigator.js | 40 ----- config.sample.yml | 9 +- dev/webpack/webpack.dev.js | 8 +- dev/webpack/webpack.prod.js | 6 + package.json | 2 + server/app/data.yml | 2 + server/core/db.js | 12 +- server/graph/resolvers/authentication.js | 4 +- server/graph/resolvers/group.js | 30 +++- server/graph/schemas/authentication.graphql | 2 +- server/graph/schemas/common.graphql | 4 +- server/graph/schemas/group.graphql | 3 +- server/helpers/graph.js | 6 +- server/models/file.js | 2 +- server/models/setting.js | 2 +- yarn.lock | 154 +++++++++++++++++- 28 files changed, 445 insertions(+), 183 deletions(-) create mode 100644 client/graph/admin-groups-mutation-create.gql create mode 100644 client/graph/admin-groups-query-list.gql create mode 100644 client/graph/admin-system-query-info.gql create mode 100644 client/graph/login-mutation-login.gql create mode 100644 client/graph/login-mutation-tfa.gql create mode 100644 client/graph/login-query-strategies.gql delete mode 100644 client/store/modules/navigator.js diff --git a/client/components/admin-groups.vue b/client/components/admin-groups.vue index 348b37f6..9d6d7d98 100644 --- a/client/components/admin-groups.vue +++ b/client/components/admin-groups.vue @@ -2,7 +2,7 @@ v-card(flat) v-card(flat, color='grey lighten-5').pa-3.pt-4 .headline.blue--text.text--darken-2 Groups - .subheading.grey--text Manage groups + .subheading.grey--text Manage groups and their permissions v-card v-card-title v-dialog(v-model='newGroupDialog', max-width='500') @@ -17,7 +17,7 @@ v-spacer v-btn(flat, @click='newGroupDialog = false') Cancel v-btn(color='primary', @click='createGroup') Create - v-btn(icon) + v-btn(icon, @click='refresh') v-icon.grey--text refresh v-spacer v-text-field(append-icon='search', label='Search', single-line, hide-details, v-model='search') @@ -44,6 +44,11 @@ diff --git a/client/components/login.vue b/client/components/login.vue index 48c2ad6c..31e0a538 100644 --- a/client/components/login.vue +++ b/client/components/login.vue @@ -38,10 +38,13 @@