From d9f4e90e2c86a594d562ad2ab9a0b0067237e438 Mon Sep 17 00:00:00 2001 From: Timo Kruth Date: Mon, 4 Apr 2022 05:21:59 +0200 Subject: [PATCH] feat: Configurable ToC Heading Levels (#5101) Co-authored-by: Regev Brody --- client/components/admin/admin-theme.vue | 30 ++++++- client/components/editor.vue | 56 ++++++++++++- .../editor/editor-modal-properties.vue | 41 ++++++++-- .../graph/admin/theme/theme-mutation-save.gql | 4 +- .../graph/admin/theme/theme-query-config.gql | 3 + client/store/page.js | 4 + .../default/components/page-toc-item.vue | 81 +++++++++++++++++++ client/themes/default/components/page.vue | 34 +++++--- dev/containers/Dockerfile | 2 +- server/app/data.yml | 4 + server/controllers/common.js | 21 +++++ server/db/migrations-sqlite/2.5.13.js | 11 +++ server/db/migrations/2.5.13.js | 11 +++ server/graph/resolvers/theming.js | 6 ++ server/graph/schemas/page.graphql | 12 +++ server/graph/schemas/theming.graphql | 6 ++ server/helpers/page.js | 12 ++- server/models/pages.js | 25 +++++- server/modules/storage/disk/common.js | 9 ++- server/setup.js | 4 + server/views/editor.pug | 4 + server/views/page.pug | 4 + 22 files changed, 355 insertions(+), 29 deletions(-) create mode 100644 client/themes/default/components/page-toc-item.vue create mode 100644 server/db/migrations-sqlite/2.5.13.js create mode 100644 server/db/migrations/2.5.13.js diff --git a/client/components/admin/admin-theme.vue b/client/components/admin/admin-theme.vue index 83ec5fac..6443f1b6 100644 --- a/client/components/admin/admin-theme.vue +++ b/client/components/admin/admin-theme.vue @@ -1,5 +1,5 @@