@slidev/cli 0.36.5 → 0.36.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{build-LORHK7IB.js → build-2GKWUURT.js} +12 -12
- package/dist/{build-2MCIKQLG.mjs → build-QD3DAK3P.mjs} +3 -3
- package/dist/{chunk-BJ3HS4XO.js → chunk-2IBHRHAW.js} +54 -54
- package/dist/{chunk-3H3TZYFA.mjs → chunk-CANY22JA.mjs} +5295 -4662
- package/dist/{chunk-6QRC3PYI.mjs → chunk-GHZ56E2R.mjs} +10 -10
- package/dist/chunk-JJGBGUCA.js +10408 -0
- package/dist/{chunk-74QPSS6T.js → chunk-N6L4BUFD.js} +2 -2
- package/dist/{chunk-IAMILGBS.mjs → chunk-XNT34UVI.mjs} +2 -2
- package/dist/cli.js +24 -24
- package/dist/cli.mjs +5 -5
- package/dist/{export-26FXNM7P.mjs → export-566C2AR3.mjs} +1 -1
- package/dist/{export-WKFHZNBT.js → export-RY5OM3SH.js} +4 -4
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/package.json +16 -17
- package/dist/chunk-T4BMLWX4.js +0 -9775
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk2IBHRHAWjs = require('./chunk-2IBHRHAW.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkN6L4BUFDjs = require('./chunk-N6L4BUFD.js');
|
|
11
11
|
|
|
12
12
|
// node/build.ts
|
|
13
|
-
|
|
13
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
14
14
|
var _path = require('path');
|
|
15
15
|
var _http = require('http'); var _http2 = _interopRequireDefault(_http);
|
|
16
16
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
@@ -18,12 +18,12 @@ var _vite = require('vite');
|
|
|
18
18
|
var _connect = require('connect'); var _connect2 = _interopRequireDefault(_connect);
|
|
19
19
|
|
|
20
20
|
// ../../node_modules/.pnpm/sirv@2.0.2/node_modules/sirv/build.mjs
|
|
21
|
-
|
|
21
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
var _fs = require('fs'); var fs = _interopRequireWildcard(_fs);
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
// ../../node_modules/.pnpm/totalist@3.0.0/node_modules/totalist/sync/index.mjs
|
|
26
|
-
|
|
26
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
function totalist(dir, callback, pre = "") {
|
|
@@ -38,7 +38,7 @@ function totalist(dir, callback, pre = "") {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
// ../../node_modules/.pnpm/@polka+url@1.0.0-next.21/node_modules/@polka/url/build.mjs
|
|
41
|
-
|
|
41
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
42
42
|
var _querystring = require('querystring'); var qs = _interopRequireWildcard(_querystring);
|
|
43
43
|
function parse2(req) {
|
|
44
44
|
let raw = req.url;
|
|
@@ -62,7 +62,7 @@ function parse2(req) {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
// ../../node_modules/.pnpm/mrmime@1.0.0/node_modules/mrmime/index.mjs
|
|
65
|
-
|
|
65
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
66
66
|
var mimes = {
|
|
67
67
|
"ez": "application/andrew-inset",
|
|
68
68
|
"aw": "application/applixware",
|
|
@@ -655,16 +655,16 @@ async function build(options, viteConfig = {}) {
|
|
|
655
655
|
let originalIndexHTML;
|
|
656
656
|
if (_fsextra2.default.existsSync(indexPath))
|
|
657
657
|
originalIndexHTML = await _fsextra2.default.readFile(indexPath, "utf-8");
|
|
658
|
-
await _fsextra2.default.writeFile(indexPath, await
|
|
658
|
+
await _fsextra2.default.writeFile(indexPath, await _chunk2IBHRHAWjs.getIndexHtml.call(void 0, options), "utf-8");
|
|
659
659
|
let config = void 0;
|
|
660
660
|
try {
|
|
661
|
-
const inlineConfig = await
|
|
661
|
+
const inlineConfig = await _chunk2IBHRHAWjs.mergeViteConfigs.call(void 0,
|
|
662
662
|
options,
|
|
663
663
|
viteConfig,
|
|
664
664
|
{
|
|
665
665
|
root: options.userRoot,
|
|
666
666
|
plugins: [
|
|
667
|
-
await
|
|
667
|
+
await _chunk2IBHRHAWjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
|
|
668
668
|
{
|
|
669
669
|
name: "resolve-config",
|
|
670
670
|
configResolved(_config) {
|
|
@@ -685,7 +685,7 @@ async function build(options, viteConfig = {}) {
|
|
|
685
685
|
} else {
|
|
686
686
|
console.log(_kolorist.blue.call(void 0, " building for Monaco...\n"));
|
|
687
687
|
await _vite.build.call(void 0,
|
|
688
|
-
await
|
|
688
|
+
await _chunk2IBHRHAWjs.mergeViteConfigs.call(void 0,
|
|
689
689
|
options,
|
|
690
690
|
inlineConfig,
|
|
691
691
|
{
|
|
@@ -725,7 +725,7 @@ async function build(options, viteConfig = {}) {
|
|
|
725
725
|
await _fsextra2.default.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
726
726
|
`, "utf-8");
|
|
727
727
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
728
|
-
const { exportSlides } = await Promise.resolve().then(() =>
|
|
728
|
+
const { exportSlides } = await Promise.resolve().then(() => _chunkN6L4BUFDjs.__toESM.call(void 0, _chunkN6L4BUFDjs.__require.call(void 0, "./export-RY5OM3SH.js")));
|
|
729
729
|
const port = 12445;
|
|
730
730
|
const app = _connect2.default.call(void 0, );
|
|
731
731
|
const server = _http2.default.createServer(app);
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
ViteSlidevPlugin,
|
|
3
3
|
getIndexHtml,
|
|
4
4
|
mergeViteConfigs
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GHZ56E2R.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__require,
|
|
8
8
|
__toESM,
|
|
9
9
|
init_esm_shims
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XNT34UVI.mjs";
|
|
11
11
|
|
|
12
12
|
// node/build.ts
|
|
13
13
|
init_esm_shims();
|
|
@@ -725,7 +725,7 @@ async function build(options, viteConfig = {}) {
|
|
|
725
725
|
await fs2.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
726
726
|
`, "utf-8");
|
|
727
727
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
728
|
-
const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-
|
|
728
|
+
const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-566C2AR3.mjs")));
|
|
729
729
|
const port = 12445;
|
|
730
730
|
const app = connect();
|
|
731
731
|
const server = http.createServer(app);
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkN6L4BUFDjs = require('./chunk-N6L4BUFD.js');
|
|
12
12
|
|
|
13
13
|
// ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
14
|
-
var require_fast_deep_equal =
|
|
14
|
+
var require_fast_deep_equal = _chunkN6L4BUFDjs.__commonJS.call(void 0, {
|
|
15
15
|
"../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
16
16
|
"use strict";
|
|
17
|
-
|
|
17
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
18
18
|
module.exports = function equal2(a, b) {
|
|
19
19
|
if (a === b)
|
|
20
20
|
return true;
|
|
@@ -57,7 +57,7 @@ var require_fast_deep_equal = _chunk74QPSS6Tjs.__commonJS.call(void 0, {
|
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
// node/common.ts
|
|
60
|
-
|
|
60
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
61
61
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
62
62
|
var _path = require('path');
|
|
63
63
|
var _utils = require('@antfu/utils');
|
|
@@ -86,8 +86,8 @@ ${(((_b = index.match(/<body>([\s\S]*?)<\/body>/im)) == null ? void 0 : _b[1]) |
|
|
|
86
86
|
body += '\n<script async src="https://platform.twitter.com/widgets.js"><\/script>';
|
|
87
87
|
if (data.config.fonts.webfonts.length && data.config.fonts.provider !== "none")
|
|
88
88
|
head += `
|
|
89
|
-
<link rel="stylesheet" href="${
|
|
90
|
-
main = main.replace("__ENTRY__",
|
|
89
|
+
<link rel="stylesheet" href="${_chunkN6L4BUFDjs.generateGoogleFontsUrl.call(void 0, data.config.fonts)}" type="text/css">`;
|
|
90
|
+
main = main.replace("__ENTRY__", _chunkN6L4BUFDjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "main.ts"))).replace("<!-- head -->", head).replace("<!-- body -->", body);
|
|
91
91
|
return main;
|
|
92
92
|
}
|
|
93
93
|
async function mergeViteConfigs({ addonRoots, themeRoots }, viteConfig, config, command) {
|
|
@@ -111,14 +111,14 @@ async function mergeViteConfigs({ addonRoots, themeRoots }, viteConfig, config,
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
// node/plugins/windicss.ts
|
|
114
|
-
|
|
114
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
var _jiti = require('jiti'); var _jiti2 = _interopRequireDefault(_jiti);
|
|
119
119
|
|
|
120
120
|
// node/plugins/setupNode.ts
|
|
121
|
-
|
|
121
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
122
122
|
|
|
123
123
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
124
124
|
|
|
@@ -152,7 +152,7 @@ async function loadSetups(roots, name, arg, initial, merge = true) {
|
|
|
152
152
|
|
|
153
153
|
// node/plugins/windicss.ts
|
|
154
154
|
async function createWindiCSSPlugin({ themeRoots, addonRoots, clientRoot, userRoot, roots, data }, { windicss: windiOptions }) {
|
|
155
|
-
const { default: WindiCSS, defaultConfigureFiles } = await Promise.resolve().then(() =>
|
|
155
|
+
const { default: WindiCSS, defaultConfigureFiles } = await Promise.resolve().then(() => _chunkN6L4BUFDjs.__toESM.call(void 0, _chunkN6L4BUFDjs.__require.call(void 0, "vite-plugin-windicss")));
|
|
156
156
|
const configFiles = _utils.uniq.call(void 0, [
|
|
157
157
|
...defaultConfigureFiles.map((i) => _path.resolve.call(void 0, userRoot, i)),
|
|
158
158
|
...themeRoots.map((i) => `${i}/windi.config.ts`),
|
|
@@ -191,9 +191,9 @@ async function createWindiCSSPlugin({ themeRoots, addonRoots, clientRoot, userRo
|
|
|
191
191
|
config2.scanOptions.include.push(`${i}/layouts/**/*.{vue,ts}`);
|
|
192
192
|
});
|
|
193
193
|
config2.scanOptions.include.push(`!${_utils.slash.call(void 0, _path.resolve.call(void 0, userRoot, "node_modules"))}`);
|
|
194
|
-
config2.scanOptions.exclude.push(_path.dirname.call(void 0,
|
|
195
|
-
config2.scanOptions.exclude.push(_path.dirname.call(void 0,
|
|
196
|
-
config2.scanOptions.exclude.push(_path.dirname.call(void 0,
|
|
194
|
+
config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunkN6L4BUFDjs.resolveImportPath.call(void 0, "monaco-editor/package.json", true)));
|
|
195
|
+
config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunkN6L4BUFDjs.resolveImportPath.call(void 0, "katex/package.json", true)));
|
|
196
|
+
config2.scanOptions.exclude.push(_path.dirname.call(void 0, _chunkN6L4BUFDjs.resolveImportPath.call(void 0, "prettier/package.json", true)));
|
|
197
197
|
},
|
|
198
198
|
...windiOptions
|
|
199
199
|
}
|
|
@@ -201,7 +201,7 @@ async function createWindiCSSPlugin({ themeRoots, addonRoots, clientRoot, userRo
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
// node/plugins/preset.ts
|
|
204
|
-
|
|
204
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
205
205
|
|
|
206
206
|
var _pluginvue = require('@vitejs/plugin-vue'); var _pluginvue2 = _interopRequireDefault(_pluginvue);
|
|
207
207
|
var _vite3 = require('unplugin-icons/vite'); var _vite4 = _interopRequireDefault(_vite3);
|
|
@@ -213,7 +213,7 @@ var _vitepluginvueserverref = require('vite-plugin-vue-server-ref'); var _vitepl
|
|
|
213
213
|
var _viteplugininspect = require('vite-plugin-inspect'); var _viteplugininspect2 = _interopRequireDefault(_viteplugininspect);
|
|
214
214
|
|
|
215
215
|
// node/drawings.ts
|
|
216
|
-
|
|
216
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
217
217
|
|
|
218
218
|
|
|
219
219
|
var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);
|
|
@@ -265,7 +265,7 @@ ${value}
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
// node/plugins/extendConfig.ts
|
|
268
|
-
|
|
268
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
269
269
|
|
|
270
270
|
|
|
271
271
|
var _isinstalledglobally = require('is-installed-globally'); var _isinstalledglobally2 = _interopRequireDefault(_isinstalledglobally);
|
|
@@ -276,34 +276,34 @@ var dependencies = {
|
|
|
276
276
|
"@antfu/utils": "^0.5.2",
|
|
277
277
|
"@slidev/parser": "workspace:*",
|
|
278
278
|
"@slidev/types": "workspace:*",
|
|
279
|
-
"@unocss/reset": "^0.45.
|
|
280
|
-
"@vueuse/core": "^9.
|
|
281
|
-
"@vueuse/head": "^0.
|
|
282
|
-
"@vueuse/math": "^9.
|
|
283
|
-
"@vueuse/motion": "^2.0.0-beta.
|
|
279
|
+
"@unocss/reset": "^0.45.29",
|
|
280
|
+
"@vueuse/core": "^9.3.0",
|
|
281
|
+
"@vueuse/head": "^0.9.8",
|
|
282
|
+
"@vueuse/math": "^9.3.0",
|
|
283
|
+
"@vueuse/motion": "^2.0.0-beta.23",
|
|
284
284
|
codemirror: "^5.65.5",
|
|
285
285
|
defu: "^6.1.0",
|
|
286
|
-
drauu: "^0.3.
|
|
286
|
+
drauu: "^0.3.2",
|
|
287
287
|
"file-saver": "^2.0.5",
|
|
288
288
|
"js-base64": "^3.7.2",
|
|
289
289
|
"js-yaml": "^4.1.0",
|
|
290
290
|
katex: "^0.16.2",
|
|
291
|
-
mermaid: "^9.1.
|
|
291
|
+
mermaid: "^9.1.7",
|
|
292
292
|
"monaco-editor": "^0.33.0",
|
|
293
293
|
nanoid: "^4.0.0",
|
|
294
294
|
prettier: "^2.7.1",
|
|
295
295
|
recordrtc: "^5.6.2",
|
|
296
296
|
resolve: "^1.22.1",
|
|
297
|
-
unocss: "^0.45.
|
|
297
|
+
unocss: "^0.45.29",
|
|
298
298
|
"vite-plugin-windicss": "^1.8.8",
|
|
299
|
-
vue: "^3.2.
|
|
299
|
+
vue: "^3.2.41",
|
|
300
300
|
"vue-router": "^4.1.5",
|
|
301
301
|
"vue-starport": "^0.3.0",
|
|
302
302
|
windicss: "^3.5.6"
|
|
303
303
|
};
|
|
304
304
|
|
|
305
305
|
// node/vite/searchRoot.ts
|
|
306
|
-
|
|
306
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
307
307
|
|
|
308
308
|
|
|
309
309
|
var ROOT_FILES = [
|
|
@@ -368,7 +368,7 @@ function createConfigPlugin(options) {
|
|
|
368
368
|
define: getDefine(options),
|
|
369
369
|
resolve: {
|
|
370
370
|
alias: {
|
|
371
|
-
"@slidev/client/": `${
|
|
371
|
+
"@slidev/client/": `${_chunkN6L4BUFDjs.toAtFS.call(void 0, options.clientRoot)}/`
|
|
372
372
|
}
|
|
373
373
|
},
|
|
374
374
|
optimizeDeps: {
|
|
@@ -392,7 +392,7 @@ function createConfigPlugin(options) {
|
|
|
392
392
|
css: options.data.config.css === "unocss" ? {
|
|
393
393
|
postcss: {
|
|
394
394
|
plugins: [
|
|
395
|
-
await Promise.resolve().then(() =>
|
|
395
|
+
await Promise.resolve().then(() => _chunkN6L4BUFDjs.__toESM.call(void 0, _chunkN6L4BUFDjs.__require.call(void 0, "postcss-nested"))).then((r) => r.default())
|
|
396
396
|
]
|
|
397
397
|
}
|
|
398
398
|
} : {},
|
|
@@ -402,7 +402,7 @@ function createConfigPlugin(options) {
|
|
|
402
402
|
allow: _utils.uniq.call(void 0, [
|
|
403
403
|
searchForWorkspaceRoot(options.userRoot),
|
|
404
404
|
searchForWorkspaceRoot(options.cliRoot),
|
|
405
|
-
..._isinstalledglobally2.default ? [_path.dirname.call(void 0,
|
|
405
|
+
..._isinstalledglobally2.default ? [_path.dirname.call(void 0, _chunkN6L4BUFDjs.resolveGlobalImportPath.call(void 0, "@slidev/client/package.json")), _path.dirname.call(void 0, _chunkN6L4BUFDjs.resolveGlobalImportPath.call(void 0, "katex/package.json"))] : []
|
|
406
406
|
])
|
|
407
407
|
}
|
|
408
408
|
}
|
|
@@ -411,7 +411,7 @@ function createConfigPlugin(options) {
|
|
|
411
411
|
injection.cacheDir = _path.join.call(void 0, options.cliRoot, "node_modules/.vite");
|
|
412
412
|
injection.publicDir = _path.join.call(void 0, options.userRoot, "public");
|
|
413
413
|
injection.root = options.cliRoot;
|
|
414
|
-
injection.resolve.alias.vue = `${
|
|
414
|
+
injection.resolve.alias.vue = `${_chunkN6L4BUFDjs.resolveImportPath.call(void 0, "vue/dist/vue.esm-browser.js", true)}`;
|
|
415
415
|
}
|
|
416
416
|
return _vite.mergeConfig.call(void 0, config, injection);
|
|
417
417
|
},
|
|
@@ -432,7 +432,7 @@ function createConfigPlugin(options) {
|
|
|
432
432
|
}
|
|
433
433
|
function getDefine(options) {
|
|
434
434
|
return {
|
|
435
|
-
__SLIDEV_CLIENT_ROOT__: JSON.stringify(
|
|
435
|
+
__SLIDEV_CLIENT_ROOT__: JSON.stringify(_chunkN6L4BUFDjs.toAtFS.call(void 0, options.clientRoot)),
|
|
436
436
|
__SLIDEV_HASH_ROUTE__: JSON.stringify(options.data.config.routerMode === "hash"),
|
|
437
437
|
__SLIDEV_FEATURE_DRAWINGS__: JSON.stringify(options.data.config.drawings.enabled === true || options.data.config.drawings.enabled === options.mode),
|
|
438
438
|
__SLIDEV_FEATURE_DRAWINGS_PERSIST__: JSON.stringify(!!options.data.config.drawings.persist === true),
|
|
@@ -442,8 +442,8 @@ function getDefine(options) {
|
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
// node/plugins/loaders.ts
|
|
445
|
-
|
|
446
|
-
var import_fast_deep_equal =
|
|
445
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
446
|
+
var import_fast_deep_equal = _chunkN6L4BUFDjs.__toESM.call(void 0, require_fast_deep_equal());
|
|
447
447
|
|
|
448
448
|
|
|
449
449
|
|
|
@@ -707,7 +707,7 @@ function createSlidesLoader({ data, entry, clientRoot, themeRoots, addonRoots, u
|
|
|
707
707
|
delete frontmatter.title;
|
|
708
708
|
const imports = [
|
|
709
709
|
'import { inject as vueInject } from "vue"',
|
|
710
|
-
`import InjectedLayout from "${
|
|
710
|
+
`import InjectedLayout from "${_chunkN6L4BUFDjs.toAtFS.call(void 0, layouts[layoutName])}"`,
|
|
711
711
|
'import { injectionSlidevContext } from "@slidev/client/constants"',
|
|
712
712
|
`const frontmatter = ${JSON.stringify(frontmatter)}`,
|
|
713
713
|
"const $slidev = vueInject(injectionSlidevContext)"
|
|
@@ -812,9 +812,9 @@ defineProps<{ no: number | string }>()`);
|
|
|
812
812
|
}
|
|
813
813
|
async function generateUserStyles() {
|
|
814
814
|
const imports = [
|
|
815
|
-
`import "${
|
|
816
|
-
`import "${
|
|
817
|
-
`import "${
|
|
815
|
+
`import "${_chunkN6L4BUFDjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/vars.css"))}"`,
|
|
816
|
+
`import "${_chunkN6L4BUFDjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/index.css"))}"`,
|
|
817
|
+
`import "${_chunkN6L4BUFDjs.toAtFS.call(void 0, _path.join.call(void 0, clientRoot, "styles/code.css"))}"`
|
|
818
818
|
];
|
|
819
819
|
const roots2 = _utils.uniq.call(void 0, [
|
|
820
820
|
...themeRoots,
|
|
@@ -831,13 +831,13 @@ defineProps<{ no: number | string }>()`);
|
|
|
831
831
|
];
|
|
832
832
|
for (const style of styles) {
|
|
833
833
|
if (_fsextra.existsSync.call(void 0, style)) {
|
|
834
|
-
imports.push(`import "${
|
|
834
|
+
imports.push(`import "${_chunkN6L4BUFDjs.toAtFS.call(void 0, style)}"`);
|
|
835
835
|
continue;
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
if (data.features.katex)
|
|
840
|
-
imports.push(`import "${
|
|
840
|
+
imports.push(`import "${_chunkN6L4BUFDjs.toAtFS.call(void 0, _chunkN6L4BUFDjs.resolveImportPath.call(void 0, "katex/dist/katex.min.css", true))}"`);
|
|
841
841
|
if (data.config.css === "unocss") {
|
|
842
842
|
imports.unshift(
|
|
843
843
|
'import "@unocss/reset/tailwind.css"',
|
|
@@ -866,7 +866,7 @@ defineProps<{ no: number | string }>()`);
|
|
|
866
866
|
const layouts = _utils.objectMap.call(void 0,
|
|
867
867
|
await getLayouts(),
|
|
868
868
|
(k, v) => {
|
|
869
|
-
imports.push(`import __layout_${k} from "${
|
|
869
|
+
imports.push(`import __layout_${k} from "${_chunkN6L4BUFDjs.toAtFS.call(void 0, v)}"`);
|
|
870
870
|
return [k, `__layout_${k}`];
|
|
871
871
|
}
|
|
872
872
|
);
|
|
@@ -915,7 +915,7 @@ ${routes.join(",\n")}
|
|
|
915
915
|
const config = { ...data.config, remote };
|
|
916
916
|
if (_utils.isString.call(void 0, config.title)) {
|
|
917
917
|
const tokens = md.parseInline(config.title, {});
|
|
918
|
-
config.title =
|
|
918
|
+
config.title = _chunkN6L4BUFDjs.stringifyMarkdownTokens.call(void 0, tokens);
|
|
919
919
|
}
|
|
920
920
|
if (_utils.isString.call(void 0, config.info))
|
|
921
921
|
config.info = md.render(config.info);
|
|
@@ -936,7 +936,7 @@ ${routes.join(",\n")}
|
|
|
936
936
|
];
|
|
937
937
|
}
|
|
938
938
|
}).filter((i) => _fsextra2.default.existsSync(i));
|
|
939
|
-
const imports = components.map((i, idx) => `import __n${idx} from '${
|
|
939
|
+
const imports = components.map((i, idx) => `import __n${idx} from '${_chunkN6L4BUFDjs.toAtFS.call(void 0, i)}'`).join("\n");
|
|
940
940
|
const render = components.map((i, idx) => `h(__n${idx})`).join(",");
|
|
941
941
|
return `
|
|
942
942
|
${imports}
|
|
@@ -955,7 +955,7 @@ export default {
|
|
|
955
955
|
_path.join.call(void 0, root, "CustomNavControls.vue")
|
|
956
956
|
];
|
|
957
957
|
}).filter((i) => _fsextra2.default.existsSync(i));
|
|
958
|
-
const imports = components.map((i, idx) => `import __n${idx} from '${
|
|
958
|
+
const imports = components.map((i, idx) => `import __n${idx} from '${_chunkN6L4BUFDjs.toAtFS.call(void 0, i)}'`).join("\n");
|
|
959
959
|
const render = components.map((i, idx) => `h(__n${idx})`).join(",");
|
|
960
960
|
return `
|
|
961
961
|
${imports}
|
|
@@ -970,7 +970,7 @@ export default {
|
|
|
970
970
|
}
|
|
971
971
|
|
|
972
972
|
// node/plugins/monacoTransform.ts
|
|
973
|
-
|
|
973
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
974
974
|
|
|
975
975
|
|
|
976
976
|
|
|
@@ -1004,7 +1004,7 @@ function createMonacoTypesLoader() {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
1006
|
// node/plugins/setupClient.ts
|
|
1007
|
-
|
|
1007
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
1008
1008
|
|
|
1009
1009
|
|
|
1010
1010
|
|
|
@@ -1030,7 +1030,7 @@ function createClientSetupPlugin({ clientRoot, themeRoots, addonRoots, userRoot
|
|
|
1030
1030
|
setups.forEach((path, idx) => {
|
|
1031
1031
|
if (!_fs.existsSync.call(void 0, path))
|
|
1032
1032
|
return;
|
|
1033
|
-
imports.push(`import __n${idx} from '${
|
|
1033
|
+
imports.push(`import __n${idx} from '${_chunkN6L4BUFDjs.toAtFS.call(void 0, path)}'`);
|
|
1034
1034
|
let fn = `:AWAIT:__n${idx}`;
|
|
1035
1035
|
if (/\binjection_return\b/g.test(code))
|
|
1036
1036
|
fn = `injection_return = ${fn}`;
|
|
@@ -1061,7 +1061,7 @@ function createClientSetupPlugin({ clientRoot, themeRoots, addonRoots, userRoot
|
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
1063
|
// node/plugins/markdown.ts
|
|
1064
|
-
|
|
1064
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
1065
1065
|
var _vitepluginvuemarkdown = require('vite-plugin-vue-markdown'); var _vitepluginvuemarkdown2 = _interopRequireDefault(_vitepluginvuemarkdown);
|
|
1066
1066
|
var _jsbase64 = require('js-base64'); var base64 = _interopRequireWildcard(_jsbase64);
|
|
1067
1067
|
|
|
@@ -1072,7 +1072,7 @@ var _shiki = require('shiki'); var Shiki = _interopRequireWildcard(_shiki);
|
|
|
1072
1072
|
var _plantumlencoder = require('plantuml-encoder');
|
|
1073
1073
|
|
|
1074
1074
|
// node/plugins/markdown-it-katex.ts
|
|
1075
|
-
|
|
1075
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
1076
1076
|
var _katex = require('katex'); var _katex2 = _interopRequireDefault(_katex);
|
|
1077
1077
|
function isValidDelim(state, pos) {
|
|
1078
1078
|
const max = state.posMax;
|
|
@@ -1219,7 +1219,7 @@ function math_plugin(md2, options) {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
|
|
1221
1221
|
// node/plugins/markdown-it-prism.ts
|
|
1222
|
-
|
|
1222
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
1223
1223
|
var _prismjs = require('prismjs'); var _prismjs2 = _interopRequireDefault(_prismjs);
|
|
1224
1224
|
var _ = require('prismjs/components/'); var _2 = _interopRequireDefault(_);
|
|
1225
1225
|
var DEFAULTS = {
|
|
@@ -1242,7 +1242,7 @@ function loadPrismLang(lang) {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
function loadPrismPlugin(name) {
|
|
1244
1244
|
try {
|
|
1245
|
-
|
|
1245
|
+
_chunkN6L4BUFDjs.__require.call(void 0, `prismjs/plugins/${name}/prism-${name}`);
|
|
1246
1246
|
} catch (e) {
|
|
1247
1247
|
throw new Error(`Cannot load Prism plugin "${name}". Please check the spelling.`);
|
|
1248
1248
|
}
|
|
@@ -1282,7 +1282,7 @@ function markdownItPrism(markdownit, useroptions) {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
1284
|
// node/plugins/markdown-it-shiki.ts
|
|
1285
|
-
|
|
1285
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
1286
1286
|
function getThemeName(theme) {
|
|
1287
1287
|
if (typeof theme === "string")
|
|
1288
1288
|
return theme;
|
|
@@ -1345,7 +1345,7 @@ async function createMarkdownPlugin({ data: { config }, roots, mode, entry }, {
|
|
|
1345
1345
|
const setups = [];
|
|
1346
1346
|
const entryPath = _utils.slash.call(void 0, entry);
|
|
1347
1347
|
if (config.highlighter === "shiki") {
|
|
1348
|
-
const { getHighlighter } = await Promise.resolve().then(() =>
|
|
1348
|
+
const { getHighlighter } = await Promise.resolve().then(() => _chunkN6L4BUFDjs.__toESM.call(void 0, _chunkN6L4BUFDjs.__require.call(void 0, "shiki")));
|
|
1349
1349
|
const shikiOptions = await loadSetups(roots, "shiki.ts", Shiki, DEFAULT_SHIKI_OPTIONS, false);
|
|
1350
1350
|
const { langs, themes } = resolveShikiOptions(shikiOptions);
|
|
1351
1351
|
shikiOptions.highlighter = await getHighlighter({ themes, langs });
|
|
@@ -1499,7 +1499,7 @@ function escapeVueInCode(md2) {
|
|
|
1499
1499
|
}
|
|
1500
1500
|
|
|
1501
1501
|
// node/plugins/patchTransform.ts
|
|
1502
|
-
|
|
1502
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
1503
1503
|
|
|
1504
1504
|
function createFixPlugins(options) {
|
|
1505
1505
|
const define = _utils.objectEntries.call(void 0, getDefine(options));
|
|
@@ -1522,14 +1522,14 @@ function createFixPlugins(options) {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
|
|
1524
1524
|
// node/plugins/unocss.ts
|
|
1525
|
-
|
|
1525
|
+
_chunkN6L4BUFDjs.init_cjs_shims.call(void 0, );
|
|
1526
1526
|
|
|
1527
1527
|
|
|
1528
1528
|
|
|
1529
1529
|
|
|
1530
1530
|
async function createUnocssPlugin({ themeRoots, addonRoots, clientRoot, roots, data }, { unocss: unoOptions }) {
|
|
1531
1531
|
var _a, _b, _c, _d;
|
|
1532
|
-
const UnoCSS = await Promise.resolve().then(() =>
|
|
1532
|
+
const UnoCSS = await Promise.resolve().then(() => _chunkN6L4BUFDjs.__toESM.call(void 0, _chunkN6L4BUFDjs.__require.call(void 0, "unocss/vite"))).then((r) => r.default);
|
|
1533
1533
|
const configFiles = _utils.uniq.call(void 0, [
|
|
1534
1534
|
...themeRoots.map((i) => `${i}/uno.config.ts`),
|
|
1535
1535
|
...addonRoots.map((i) => `${i}/uno.config.ts`),
|