themekit-js 1.47.2609 → 1.47.2616
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
import type { DefaultTheme } from 'themekit-js/theme'
|
|
4
|
-
|
|
5
|
-
import
|
|
4
|
+
|
|
5
|
+
import A from './Button.vue';
|
|
6
6
|
import Image from './Image.vue';
|
|
7
7
|
|
|
8
8
|
|
|
@@ -49,8 +49,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
const _blank:string="_blank"
|
|
52
|
+
|
|
54
53
|
|
|
55
54
|
const hasImg = computed(() => {
|
|
56
55
|
return HeroImg!==null&& HeroImg.src!=""
|
|
@@ -87,7 +86,7 @@ const styles= computed(() => {
|
|
|
87
86
|
</script>
|
|
88
87
|
|
|
89
88
|
<template>
|
|
90
|
-
<div class="VPHero" :class="[{ 'has-image':hasImg},block.class?block.class:'']" :style="styles">
|
|
89
|
+
<div class="VPHero block-hero" :class="[{ 'has-image':hasImg},block.class?block.class:'']" :style="styles">
|
|
91
90
|
|
|
92
91
|
<div v-if="hasBgImg" class="hero-bgi-nav" :style="{'background-color':block['nav-color']}"></div>
|
|
93
92
|
<div class="container">
|
|
@@ -115,19 +114,11 @@ const styles= computed(() => {
|
|
|
115
114
|
<template v-if="item.block_type=='p'">
|
|
116
115
|
<p class="tagline">
|
|
117
116
|
<template v-for="(pItem) in item.children" >
|
|
118
|
-
|
|
119
|
-
<Button
|
|
120
|
-
tag="a"
|
|
121
|
-
size="medium"
|
|
122
|
-
:block="pItem"
|
|
123
|
-
:href="pItem.href"
|
|
124
|
-
:target="_blank"
|
|
125
|
-
></Button>
|
|
126
|
-
</template>
|
|
117
|
+
<A v-if="pItem.block_type=='a'" :block="pItem"></A>
|
|
127
118
|
<template v-if="pItem.block_type=='text'">{{pItem.content}}</template>
|
|
128
119
|
<template v-if="pItem.block_type=='img'&&pItem.src!=HeroImg.src">
|
|
129
120
|
<Image :block="pItem" ></Image>
|
|
130
|
-
|
|
121
|
+
</template>
|
|
131
122
|
</template>
|
|
132
123
|
</p>
|
|
133
124
|
</template>
|
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-d-s9MH1k.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-d-s9MH1k.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-d-s9MH1k.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|
|
@@ -46741,7 +46741,7 @@ function escapeHtml(string) {
|
|
|
46741
46741
|
|
|
46742
46742
|
var escape$1 = /*@__PURE__*/getDefaultExportFromCjs(escapeHtml_1);
|
|
46743
46743
|
|
|
46744
|
-
var version = "1.47.
|
|
46744
|
+
var version = "1.47.2616";
|
|
46745
46745
|
|
|
46746
46746
|
async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
|
|
46747
46747
|
const routePath = `/${page.replace(/\.md$/, "")}`;
|