From 2141366335310349519e2107f52ab42e4387726f Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 23 Feb 2019 18:22:25 -0500 Subject: [PATCH] feat: dev flags --- client/components/admin.vue | 3 +- client/components/admin/admin-contribute.vue | 12 +++++- client/components/admin/admin-dev-flags.vue | 38 ++++++++++++++++++- .../admin/dev/dev-mutation-save-flags.gql | 16 ++++++++ client/graph/admin/dev/dev-query-flags.gql | 8 ++++ dev/build/config.yml | 2 +- server/app/data.yml | 2 + server/core/config.js | 6 +++ server/core/kernel.js | 1 + server/graph/resolvers/system.js | 21 ++++++++++ server/graph/schemas/system.graphql | 21 ++++++++++ 11 files changed, 124 insertions(+), 6 deletions(-) create mode 100644 client/graph/admin/dev/dev-mutation-save-flags.gql create mode 100644 client/graph/admin/dev/dev-query-flags.gql diff --git a/client/components/admin.vue b/client/components/admin.vue index 61230b16..4e4a7835 100644 --- a/client/components/admin.vue +++ b/client/components/admin.vue @@ -80,13 +80,12 @@ v-list-tile-avatar: v-icon(color='grey lighten-2') build v-list-tile-title {{ $t('admin:utilities.title') }} v-list-group( - prepend-icon='weekend' - value='true' to='/dev' no-action v-if='hasPermission([`manage:system`, `manage:api`])' ) v-list-tile(slot='activator') + v-list-tile-avatar: v-icon weekend v-list-tile-title {{ $t('admin:dev.title') }} v-list-tile(to='/dev-flags') diff --git a/client/components/admin/admin-contribute.vue b/client/components/admin/admin-contribute.vue index 3d74e79d..4861b466 100644 --- a/client/components/admin/admin-contribute.vue +++ b/client/components/admin/admin-contribute.vue @@ -133,7 +133,7 @@ v-icon(color='grey') public v-divider v-list-tile - v-list-tile-avatar + v-list-tile-avatar(tile) img(src='/svg/logo-icons8.svg', alt='Icons8') v-list-tile-content v-list-tile-title Icons8 @@ -141,6 +141,16 @@ v-list-tile-action v-btn(icon, href='https://icons8.com', target='_blank') v-icon(color='grey') public + v-divider + v-list-tile + v-list-tile-avatar(tile) + img(src='https://static.requarks.io/logo/lokalise.png', alt='Lokalise') + v-list-tile-content + v-list-tile-title Lokalise + v-list-tile-sub-title Lokalise is a translation management system built for agile teams who want to automate their localization process. + v-list-tile-action + v-btn(icon, href='https://lokalise.co', target='_blank') + v-icon(color='grey') public diff --git a/client/components/admin/admin-dev-flags.vue b/client/components/admin/admin-dev-flags.vue index 4c3e2ef3..e7211d1c 100644 --- a/client/components/admin/admin-dev-flags.vue +++ b/client/components/admin/admin-dev-flags.vue @@ -38,6 +38,9 @@