valaxy 0.25.5 → 0.25.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Component } from 'vue'
|
|
3
|
-
import { compile, defineAsyncComponent,
|
|
3
|
+
import { compile, defineAsyncComponent, shallowRef, watch } from 'vue'
|
|
4
4
|
|
|
5
5
|
const props = withDefaults(
|
|
6
6
|
defineProps<{
|
|
@@ -23,9 +23,9 @@ async function createComponent() {
|
|
|
23
23
|
dynamicComponent.value = defineAsyncComponent(() => Promise.resolve(componentDefinition))
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
watch(() => [props.templateStr, props.data], () => {
|
|
27
27
|
createComponent()
|
|
28
|
-
})
|
|
28
|
+
}, { immediate: true })
|
|
29
29
|
</script>
|
|
30
30
|
|
|
31
31
|
<template>
|
|
@@ -4,7 +4,7 @@ import yargs from "yargs";
|
|
|
4
4
|
import { hideBin } from "yargs/helpers";
|
|
5
5
|
|
|
6
6
|
// package.json
|
|
7
|
-
var version = "0.25.
|
|
7
|
+
var version = "0.25.7";
|
|
8
8
|
|
|
9
9
|
// node/modules/fuse.ts
|
|
10
10
|
import path4 from "path";
|
|
@@ -373,6 +373,9 @@ var defaultValaxyConfig = {
|
|
|
373
373
|
// cssCodeSplit: false,
|
|
374
374
|
}
|
|
375
375
|
},
|
|
376
|
+
vue: {
|
|
377
|
+
browserTemplateCompilation: true
|
|
378
|
+
},
|
|
376
379
|
devtools: true
|
|
377
380
|
};
|
|
378
381
|
function defineValaxyConfig(config) {
|
|
@@ -1448,7 +1451,7 @@ async function getAlias(options) {
|
|
|
1448
1451
|
{ find: `valaxy-theme-${options.theme}/`, replacement: `${toAtFS(resolve6(options.themeRoot))}/` },
|
|
1449
1452
|
{ find: `valaxy-theme-${options.theme}`, replacement: `${toAtFS(resolve6(options.themeRoot))}/client/index.ts` }
|
|
1450
1453
|
];
|
|
1451
|
-
if (options.config.
|
|
1454
|
+
if (options.config.vue?.browserTemplateCompilation) {
|
|
1452
1455
|
alias.push(
|
|
1453
1456
|
{ find: /^vue$/, replacement: await resolveImportPath("vue/dist/vue.esm-bundler.js", true) }
|
|
1454
1457
|
);
|
package/dist/node/cli/index.js
CHANGED
package/dist/node/index.d.ts
CHANGED
|
@@ -276,7 +276,24 @@ interface ValaxyExtendConfig {
|
|
|
276
276
|
* @see https://github.com/vitejs/vite-plugin-vue/blob/main/packages/plugin-vue/README.md
|
|
277
277
|
*/
|
|
278
278
|
vue?: Parameters<typeof Vue>[0] & {
|
|
279
|
+
/**
|
|
280
|
+
* @valaxy
|
|
281
|
+
*/
|
|
279
282
|
isCustomElement?: ((tag: string) => boolean)[];
|
|
283
|
+
/**
|
|
284
|
+
* @valaxy
|
|
285
|
+
* @see https://cn.vuejs.org/guide/scaling-up/tooling#note-on-in-browser-template-compilation
|
|
286
|
+
* enable
|
|
287
|
+
*
|
|
288
|
+
* for runtime compile vue, encrypt and decrypt
|
|
289
|
+
* for excerpt_type: html (runtime render)
|
|
290
|
+
*
|
|
291
|
+
* @default true
|
|
292
|
+
*
|
|
293
|
+
* browserTemplateCompilation
|
|
294
|
+
* @description 支持浏览器内的模板编译
|
|
295
|
+
*/
|
|
296
|
+
browserTemplateCompilation?: boolean;
|
|
280
297
|
};
|
|
281
298
|
/**
|
|
282
299
|
* @see https://github.com/unplugin/unplugin-vue-components
|
package/dist/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.25.
|
|
4
|
+
"version": "0.25.7",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"markdown-it-table-of-contents": "^0.9.0",
|
|
101
101
|
"markdown-it-task-lists": "^2.1.1",
|
|
102
102
|
"medium-zoom": "^1.1.0",
|
|
103
|
-
"mermaid": "^11.
|
|
103
|
+
"mermaid": "^11.9.0",
|
|
104
104
|
"mlly": "^1.7.4",
|
|
105
105
|
"nprogress": "^0.2.0",
|
|
106
106
|
"open": "10.1.0",
|
|
@@ -128,11 +128,11 @@
|
|
|
128
128
|
"vite-ssg-sitemap": "^0.9.0",
|
|
129
129
|
"vitepress-plugin-group-icons": "^1.6.1",
|
|
130
130
|
"vue": "^3.5.17",
|
|
131
|
-
"vue-i18n": "^11.1.
|
|
131
|
+
"vue-i18n": "^11.1.10",
|
|
132
132
|
"vue-router": "^4.5.1",
|
|
133
133
|
"yargs": "^18.0.0",
|
|
134
|
-
"@valaxyjs/devtools": "0.25.
|
|
135
|
-
"@valaxyjs/utils": "0.25.
|
|
134
|
+
"@valaxyjs/devtools": "0.25.7",
|
|
135
|
+
"@valaxyjs/utils": "0.25.7"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
138
|
"@mdit-vue/plugin-component": "^2.1.4",
|