From 2a659b64013b42742d8b1a39b6cb6665b12156d0 Mon Sep 17 00:00:00 2001 From: Timo Kruth Date: Fri, 16 Aug 2024 22:44:56 +0200 Subject: [PATCH] merge completion --- .vscode/settings.json | 2 +- client/components/admin/admin-theme.vue | 18 +++++++++--------- .../editor/editor-modal-properties.vue | 2 +- .../graph/admin/theme/theme-mutation-save.gql | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index dc1a054c..75e3a447 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,7 +8,7 @@ "vue" ], "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "i18n-ally.localesPaths": [ "server/locales" diff --git a/client/components/admin/admin-theme.vue b/client/components/admin/admin-theme.vue index 373402fc..eb357c6c 100644 --- a/client/components/admin/admin-theme.vue +++ b/client/components/admin/admin-theme.vue @@ -55,15 +55,6 @@ v-toolbar(color='primary', dark, dense, flat) v-toolbar-title.subtitle-1 {{$t(`admin:theme.options`)}} v-card-text - v-range-slider( - prepend-icon='mdi-menu-open' - :label='$t(`admin:theme.tocHeadingLevels`)' - v-model='tocRange' - :min='1' - :max='6' - :tick-labels='["H1", "H2", "H3", "H4", "H5", "H6"]' - ) - .text-caption {{$t('admin:theme.tocHeadingLevelsHint')}} v-select( :items='tocPositions' outlined @@ -73,6 +64,15 @@ persistent-hint hint='Select whether the table of contents is shown on the left, right or not at all.' ) + v-range-slider( + prepend-icon='mdi-menu-open' + label='Heading Levels in ToC' + v-model='tocRange' + :min='1' + :max='6' + :tick-labels='["H1", "H2", "H3", "H4", "H5", "H6"]' + hint='Select which levels of the toc are displayed.' + ) v-flex(lg6 xs12) v-card.animated.fadeInUp.wait-p2s diff --git a/client/components/editor/editor-modal-properties.vue b/client/components/editor/editor-modal-properties.vue index 79a32e6c..dc885aa1 100644 --- a/client/components/editor/editor-modal-properties.vue +++ b/client/components/editor/editor-modal-properties.vue @@ -92,7 +92,7 @@ v-dialog( ) v-tab-item(transition='fade-transition', reverse-transition='fade-transition') v-card-text - .overline {{$t('editor:props.tocTitle')}} + .overline.pb-5 {{$t('editor:props.tocTitle')}} v-switch( :label='$t(`editor:props.tocUseDefault`)' v-model='useDefaultTocDepth' diff --git a/client/graph/admin/theme/theme-mutation-save.gql b/client/graph/admin/theme/theme-mutation-save.gql index 82a6ee34..ed1d5343 100644 --- a/client/graph/admin/theme/theme-mutation-save.gql +++ b/client/graph/admin/theme/theme-mutation-save.gql @@ -1,6 +1,6 @@ -mutation($theme: String!, $iconset: String!, $darkMode: Boolean!, $tocPosition: String, $tocDepth: RangeInput!, $injectCSS: String, $injectHead: String, $injectBody: String) { +mutation($theme: String!, $iconset: String!, $darkMode: Boolean!, $tocPosition: String, $tocDepth: RangeInput!, $injectCSS: String, $injectHead: String, $injectBody: String) { theming { - setConfig(theme: $theme, iconset: $iconset, darkMode: $darkMode, tocPosition: $tocPosition, tocDepth: $tocDepth, injectCSS: $injectCSS, injectHead: $injectHead, injectBody: $injectBody) { + setConfig(theme: $theme, iconset: $iconset, darkMode: $darkMode, tocPosition: $tocPosition, tocDepth: $tocDepth, injectCSS: $injectCSS, injectHead: $injectHead, injectBody: $injectBody) { responseResult { succeeded errorCode