themekit-js 1.1.56 → 1.1.58
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.
|
@@ -27,13 +27,12 @@ const params = computed(() => {
|
|
|
27
27
|
let params:any = {};
|
|
28
28
|
let match;
|
|
29
29
|
while ((match = pattern.exec(props.href==null?"?size=big":props.href)) !== null) {
|
|
30
|
-
params[match[1]] = match[2]
|
|
30
|
+
params[match[1]] = decodeURIComponent(match[2])
|
|
31
31
|
}
|
|
32
32
|
return params
|
|
33
33
|
// return [params["theme"]==null?props.theme:params["theme"],params["size"]==null?props.size:params["size"],props.baseClass]
|
|
34
34
|
})
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
|
|
37
36
|
const classes = computed(() => {
|
|
38
37
|
const _:any=[props.baseClass]
|
|
39
38
|
if(params.value['theme']!=null){
|
|
@@ -44,7 +43,7 @@ const classes = computed(() => {
|
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
if(params.value['class']!=null){
|
|
47
|
-
_.push(params.value['class'])
|
|
46
|
+
_.push(decodeURIComponent(params.value['class']))
|
|
48
47
|
}
|
|
49
48
|
return _
|
|
50
49
|
})
|
|
@@ -126,8 +126,7 @@ const styles= computed(() => {
|
|
|
126
126
|
</template>
|
|
127
127
|
<template v-if="pItem.block_type=='text'">{{pItem.content}}</template>
|
|
128
128
|
<template v-if="pItem.block_type=='img'&&pItem.src!=HeroImg.src">
|
|
129
|
-
<Image :block="pItem" ></Image>
|
|
130
|
-
{{pItem}}
|
|
129
|
+
<Image :block="pItem" ></Image>
|
|
131
130
|
</template>
|
|
132
131
|
</template>
|
|
133
132
|
</p>
|
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-CTyb-Bwv.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-CTyb-Bwv.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-CTyb-Bwv.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|
|
@@ -46735,7 +46735,7 @@ function escapeHtml(string) {
|
|
|
46735
46735
|
|
|
46736
46736
|
var escape$1 = /*@__PURE__*/getDefaultExportFromCjs(escapeHtml_1);
|
|
46737
46737
|
|
|
46738
|
-
var version = "1.1.
|
|
46738
|
+
var version = "1.1.58";
|
|
46739
46739
|
|
|
46740
46740
|
async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
|
|
46741
46741
|
const routePath = `/${page.replace(/\.md$/, "")}`;
|