From 506616716384dc736c7fed76f29a348d35fce409 Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Sat, 29 Sep 2018 23:30:20 -0400 Subject: [PATCH] fix: streamline admin UI with common save actions --- client/components/admin.vue | 19 +- client/components/admin/admin-api.vue | 123 +++++---- client/components/admin/admin-auth.vue | 232 ++++++++-------- client/components/admin/admin-contribute.vue | 170 ++++++------ client/components/admin/admin-dashboard.vue | 172 ++++++------ client/components/admin/admin-dev.vue | 46 ++-- client/components/admin/admin-editor.vue | 57 ++-- client/components/admin/admin-general.vue | 70 +++-- client/components/admin/admin-groups.vue | 85 +++--- client/components/admin/admin-locale.vue | 28 +- client/components/admin/admin-logging.vue | 194 ++++++------- client/components/admin/admin-navigation.vue | 27 +- client/components/admin/admin-pages.vue | 67 ++--- client/components/admin/admin-rendering.vue | 225 +++++++-------- client/components/admin/admin-search.vue | 162 +++++------ client/components/admin/admin-storage.vue | 208 +++++++------- client/components/admin/admin-system.vue | 10 +- client/components/admin/admin-theme.vue | 30 +- client/components/admin/admin-users.vue | 125 ++++----- client/components/admin/admin-utilities.vue | 275 ++++++++++--------- 20 files changed, 1199 insertions(+), 1126 deletions(-) diff --git a/client/components/admin.vue b/client/components/admin.vue index 5e551923..bae6a6c0 100644 --- a/client/components/admin.vue +++ b/client/components/admin.vue @@ -20,6 +20,9 @@ v-list-tile(to='/pages') v-list-tile-avatar: v-icon insert_drive_file v-list-tile-title {{ $t('admin:pages.title') }} + v-list-tile-action + v-chip(small, disabled, color='grey lighten-4') + .caption.grey--text 123 v-list-tile(to='/theme') v-list-tile-avatar: v-icon palette v-list-tile-title {{ $t('admin:theme.title') }} @@ -32,9 +35,8 @@ v-list-tile-avatar: v-icon perm_identity v-list-tile-title {{ $t('admin:users.title') }} v-list-tile-action - .justify-end - v-chip(small, disabled, color='grey lighten-4') - .caption.grey--text 1 + v-chip(small, disabled, color='grey lighten-4') + .caption.grey--text 1 v-divider.my-2 v-subheader.pl-4 {{ $t('admin:nav.modules') }} v-list-tile(to='/auth') @@ -158,11 +160,14 @@ export default { } } -.admin-header-icon { - position: absolute; - top: 1rem; - right: 1rem; +.admin-header { + display: flex; + justify-content: flex-start; + align-items: center; + &-title { + margin-left: 1rem; + } } diff --git a/client/components/admin/admin-api.vue b/client/components/admin/admin-api.vue index 96f010c5..2c16288f 100644 --- a/client/components/admin/admin-api.vue +++ b/client/components/admin/admin-api.vue @@ -1,65 +1,66 @@