From f7c0daec9a7852dfff41143c8546a3ddd80feaf4 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sun, 23 Feb 2020 15:20:55 -0500 Subject: [PATCH] feat: content license notice option --- client/components/admin.vue | 2 +- client/components/admin/admin-general.vue | 118 +++++++++++++++++- .../admin/site/site-mutation-save-config.gql | 52 -------- client/graph/admin/site/site-query-config.gql | 25 ---- client/store/site.js | 1 + .../themes/default/components/nav-footer.vue | 5 +- server/app/data.yml | 2 + server/graph/resolvers/site.js | 4 +- server/graph/schemas/site.graphql | 2 + server/master.js | 1 + 10 files changed, 127 insertions(+), 85 deletions(-) delete mode 100644 client/graph/admin/site/site-mutation-save-config.gql delete mode 100644 client/graph/admin/site/site-query-config.gql diff --git a/client/components/admin.vue b/client/components/admin.vue index 4a8fee1a..9a45f554 100644 --- a/client/components/admin.vue +++ b/client/components/admin.vue @@ -7,7 +7,7 @@ v-spacer v-navigation-drawer.pb-0.admin-sidebar(v-model='adminDrawerShown', app, fixed, clipped, :right='$vuetify.rtl', permanent, width='300') vue-scroll(:ops='scrollStyle') - v-list(dense, nav) + v-list.radius-0(dense, nav) v-list-item(to='/dashboard', color='primary') v-list-item-avatar(size='24', tile): v-icon mdi-view-dashboard-variant v-list-item-title {{ $t('admin:dashboard.title') }} diff --git a/client/components/admin/admin-general.vue b/client/components/admin/admin-general.vue index d7f3141d..c9ee8f3a 100644 --- a/client/components/admin/admin-general.vue +++ b/client/components/admin/admin-general.vue @@ -73,6 +73,16 @@ persistent-hint :hint='$t(`admin:general.companyNameHint`)' ) + v-select.mt-3( + outlined + :label='$t(`admin:general.contentLicense`)' + :items='contentLicenses' + v-model='config.contentLicense' + prepend-icon='mdi-creative-commons' + :return-object='false' + :hint='$t(`admin:general.contentLicenseHint`)' + persistent-hint + ) v-divider .overline.grey--text.pa-4 SEO .px-3.pb-3 @@ -251,8 +261,7 @@