From f0304c83cbad4b76bfee1124ce48e3b04835e657 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 17 Dec 2024 14:31:34 +0800 Subject: [PATCH] feat: rename options and wording --- docs/custom/index.md | 4 ++-- packages/client/constants.ts | 2 +- packages/client/internals/IconButton.vue | 9 +++++++-- packages/client/internals/NavControls.vue | 8 +++++++- packages/client/internals/Settings.vue | 12 ++++-------- packages/client/pages/export.vue | 2 +- packages/client/setup/routes.ts | 2 +- packages/client/styles/index.css | 3 +-- packages/parser/src/config.ts | 2 +- packages/slidev/node/cli.ts | 8 ++++---- packages/slidev/node/options.ts | 2 +- packages/types/src/frontmatter.ts | 4 ++-- packages/vscode/schema/headmatter.json | 6 +++--- shim.d.ts | 4 ++-- 14 files changed, 37 insertions(+), 31 deletions(-) diff --git a/docs/custom/index.md b/docs/custom/index.md index 2436520a5d..2e106509ed 100644 --- a/docs/custom/index.md +++ b/docs/custom/index.md @@ -27,8 +27,8 @@ keywords: keyword1,keyword2 # enable presenter mode, can be boolean, 'dev' or 'build' presenter: true -# enable exporting UI, can be boolean, 'dev' or 'build' -exportingUI: dev +# enable browser exporter, can be boolean, 'dev' or 'build' +browserExporter: dev # enabled pdf downloading in SPA build, can also be a custom url download: false # filename of the export file diff --git a/packages/client/constants.ts b/packages/client/constants.ts index a92885c3d7..e21ba35cc2 100644 --- a/packages/client/constants.ts +++ b/packages/client/constants.ts @@ -56,7 +56,7 @@ export const HEADMATTER_FIELDS = [ 'author', 'keywords', 'presenter', - 'exportingUI', + 'browserExporter', 'download', 'exportFilename', 'export', diff --git a/packages/client/internals/IconButton.vue b/packages/client/internals/IconButton.vue index bbc7c52ef7..abc395829c 100644 --- a/packages/client/internals/IconButton.vue +++ b/packages/client/internals/IconButton.vue @@ -1,13 +1,18 @@