themekit-js 1.49.2912 → 1.49.2914
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/node/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-
|
|
1
|
+
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-CbLISTBZ.js';
|
|
2
2
|
import { createLogger } from 'vite';
|
|
3
3
|
import 'path';
|
|
4
4
|
import 'shiki';
|
package/dist/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalizePath } from 'vite';
|
|
2
2
|
export { loadEnv } from 'vite';
|
|
3
|
-
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-
|
|
4
|
-
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-
|
|
3
|
+
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-CbLISTBZ.js';
|
|
4
|
+
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-CbLISTBZ.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|
|
@@ -38225,6 +38225,7 @@ async function seedunk_mdparser(src) {
|
|
|
38225
38225
|
let plain = src;
|
|
38226
38226
|
while ((matchmd = regexmd.exec(src)) !== null) {
|
|
38227
38227
|
if (matchmd[1].indexOf("?include=markdown") >= 0) {
|
|
38228
|
+
console.log("include=markdown: " + matchmd[1]);
|
|
38228
38229
|
const mdresponse = await axios({ url: matchmd[1], method: "get", responseType: "blob" });
|
|
38229
38230
|
if (mdresponse.status == 200) {
|
|
38230
38231
|
let mdraw = mdresponse.data;
|
|
@@ -38245,13 +38246,15 @@ async function seedunk_mdparser(src) {
|
|
|
38245
38246
|
""
|
|
38246
38247
|
)
|
|
38247
38248
|
);
|
|
38248
|
-
const
|
|
38249
|
+
const fileType = path$q.parse(imgpath.split("?")[0]).ext.substring(1);
|
|
38250
|
+
const fileType2 = fileType == "jpg" ? "jpeg" : fileType;
|
|
38251
|
+
const imgbase64 = "data:image/" + fileType2 + ";base64," + base64Data;
|
|
38249
38252
|
mdraw = mdraw.replace(imgsrc, imgbase64);
|
|
38250
38253
|
}
|
|
38251
38254
|
}
|
|
38252
38255
|
}
|
|
38253
38256
|
}
|
|
38254
|
-
plain = plain.replace(matchmd[1], matchmd[1] + ")\r\n" + mdraw);
|
|
38257
|
+
plain = plain.replace(matchmd[1] + ")", matchmd[1] + ")\r\n" + mdraw);
|
|
38255
38258
|
}
|
|
38256
38259
|
}
|
|
38257
38260
|
}
|
|
@@ -46783,7 +46786,7 @@ function escapeHtml(string) {
|
|
|
46783
46786
|
|
|
46784
46787
|
var escape$1 = /*@__PURE__*/getDefaultExportFromCjs(escapeHtml_1);
|
|
46785
46788
|
|
|
46786
|
-
var version = "1.49.
|
|
46789
|
+
var version = "1.49.2914";
|
|
46787
46790
|
|
|
46788
46791
|
async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
|
|
46789
46792
|
const routePath = `/${page.replace(/\.md$/, "")}`;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"themekit-js","version":"1.49.
|
|
1
|
+
{"name":"themekit-js","version":"1.49.2914","description":"基于VitePress开发的Markdown静态网站生成器","type":"module","packageManager":"pnpm@8.15.6","main":"dist/node/index.js","types":"types/index.d.ts","exports":{".":{"types":"./types/index.d.ts","default":"./dist/node/index.js"},"./dist/*":"./dist/*","./package.json":"./package.json","./client":{"types":"./client.d.ts","default":"./dist/client/index.js"},"./theme":{"types":"./theme.d.ts","default":"./dist/client/theme-default/index.js"},"./theme-without-fonts":{"types":"./theme-without-fonts.d.ts","default":"./dist/client/theme-default/without-fonts.js"},"./vue-demi":{"default":"./lib/vue-demi.mjs"}},"bin":{"themekit":"bin/themekit.js"},"files":["bin","dist","types","template","client.d.ts","theme.d.ts","theme-without-fonts.d.ts","lib"],"repository":{"type":"git","url":"git+https://github.com/seedunk/themekit-js.git"},"keywords":["vite","vue","themekit-js"],"author":"Seedunk","license":"MIT","homepage":"https://seedunk.github.io/themekit-js","scripts":{"dev":"rimraf dist && run-s dev:shared dev:start","dev:start":"run-p dev:client dev:node dev:watch","dev:client":"tsc --sourcemap -w -p src/client","dev:node":"DEV=true pnpm build:node -w","dev:shared":"node scripts/copyShared","dev:watch":"node scripts/watchAndCopy","build":"run-s build:prepare build:client build:node","build:prepare":"rimraf dist && node scripts/copyShared","build:client":"vue-tsc --noEmit -p src/client && tsc -p src/client && node scripts/copyClient","build:node":"tsc -p src/node --noEmit && rollup --config rollup.config.ts --configPlugin esbuild","test":"run-p --aggregate-output test:unit test:e2e test:init","test:unit":"vitest run -r __tests__/unit","test:unit:watch":"vitest -r __tests__/unit","test:e2e":"run-s test:e2e-dev test:e2e-build","test:e2e:site:dev":"pnpm -F=tests-e2e site:dev","test:e2e:site:build":"pnpm -F=tests-e2e site:build","test:e2e:site:preview":"pnpm -F=tests-e2e site:preview","test:e2e-dev":"pnpm -F=tests-e2e test","test:e2e-dev:watch":"pnpm -F=tests-e2e watch","test:e2e-build":"VITE_TEST_BUILD=1 pnpm test:e2e-dev","test:e2e-build:watch":"VITE_TEST_BUILD=1 pnpm test:e2e-dev:watch","test:init":"pnpm -F=tests-init test","test:init:watch":"pnpm -F=tests-init watch","docs":"run-p dev docs:dev","docs:dev":"themekit-js dev","docs:debug":"NODE_OPTIONS='--inspect-brk' pnpm docs:dev","docs:build":"themekit-js build","docs:build:only":"pnpm -F=docs build","docs:preview":"themekit-js preview","docs:lunaria:build":"pnpm -F=docs lunaria:build","docs:lunaria:open":"pnpm -F=docs lunaria:open","format":"prettier --check --write .","format:fail":"prettier --check .","check":"run-s format:fail build test","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","release":"node scripts/release.js"},"dependencies":{"@docsearch/css":"^3.6.0","@docsearch/js":"^3.6.0","@fortawesome/fontawesome-svg-core":"^6.5.2","@fortawesome/free-solid-svg-icons":"^6.5.2","@shikijs/core":"^1.2.4","@shikijs/transformers":"^1.2.4","@types/markdown-it":"^13.0.7","@vitejs/plugin-vue":"^5.0.4","@vue/devtools-api":"^7.0.25","@vueuse/core":"^10.9.0","@vueuse/integrations":"^10.9.0","axios":"^1.7.2","focus-trap":"^7.5.4","github-markdown-css":"^5.5.1","js-base64":"^3.7.7","mark.js":"8.11.1","minisearch":"^6.3.0","shiki":"^1.2.4","vite":"^5.2.8","vue":"^3.4.21"},"peerDependencies":{"markdown-it-mathjax3":"^4","postcss":"^8"},"peerDependenciesMeta":{"markdown-it-mathjax3":{"optional":true},"postcss":{"optional":true}},"devDependencies":{"@clack/prompts":"^0.7.0","@mdit-vue/plugin-component":"2.0.0","@mdit-vue/plugin-frontmatter":"2.0.0","@mdit-vue/plugin-headers":"2.0.0","@mdit-vue/plugin-sfc":"2.0.0","@mdit-vue/plugin-title":"2.0.0","@mdit-vue/plugin-toc":"2.0.0","@mdit-vue/shared":"2.0.0","@polka/compression":"1.0.0-next.25","@rollup/plugin-alias":"^5.1.0","@rollup/plugin-commonjs":"^25.0.7","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^15.2.3","@rollup/plugin-replace":"^5.0.5","@types/cross-spawn":"^6.0.6","@types/debug":"^4.1.12","@types/escape-html":"^1.0.4","@types/fs-extra":"^11.0.4","@types/lodash.template":"^4.5.3","@types/mark.js":"^8.11.12","@types/markdown-it-attrs":"^4.1.3","@types/markdown-it-container":"^2.0.10","@types/markdown-it-emoji":"^2.0.5","@types/micromatch":"^4.0.6","@types/minimist":"^1.2.5","@types/node":"^20.12.6","@types/postcss-prefix-selector":"^1.16.3","@types/prompts":"^2.4.9","@vue/shared":"^3.4.21","chokidar":"^3.6.0","conventional-changelog-cli":"^4.1.0","cross-spawn":"^7.0.3","debug":"^4.3.4","esbuild":"^0.20.2","escape-html":"^1.0.3","execa":"^8.0.1","fast-glob":"^3.3.2","fs-extra":"^11.2.0","get-port":"^7.1.0","gray-matter":"^4.0.3","lint-staged":"^15.2.2","lodash.template":"^4.5.0","lru-cache":"^10.2.0","markdown-it":"^14.1.0","markdown-it-anchor":"^8.6.7","markdown-it-attrs":"^4.1.6","markdown-it-container":"^4.0.0","markdown-it-emoji":"^3.0.0","markdown-it-mathjax3":"^4.3.2","micromatch":"^4.0.5","minimist":"^1.2.8","nanoid":"^5.0.7","npm-run-all":"^4.1.5","ora":"^8.0.1","p-map":"^7.0.2","path-to-regexp":"^6.2.2","picocolors":"^1.0.0","pkg-dir":"^8.0.0","playwright-chromium":"^1.43.0","polka":"1.0.0-next.25","postcss-prefix-selector":"^1.16.0","prettier":"^3.2.5","prompts":"^2.4.2","punycode":"^2.3.1","rimraf":"^5.0.5","rollup":"^4.14.1","rollup-plugin-dts":"^6.1.0","rollup-plugin-esbuild":"^6.1.1","semver":"^7.6.0","simple-git-hooks":"^2.11.1","sirv":"^2.0.4","sitemap":"^7.1.1","supports-color":"^9.4.0","typescript":"^5.4.4","vitest":"^1.4.0","vue-tsc":"^2.0.11","wait-on":"^7.2.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*":["prettier --write --ignore-unknown"]},"pnpm":{"overrides":{"ora>string-width":"^5"},"peerDependencyRules":{"ignoreMissing":["@algolia/client-search","search-insights","postcss"]}}}
|