valaxy 1.3.0 → 1.3.1
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/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import 'node:path';
|
|
|
2
2
|
import 'node:process';
|
|
3
3
|
import 'yargs';
|
|
4
4
|
import 'yargs/helpers';
|
|
5
|
-
export { c as createCli, s as desktopRuntimeVersion, u as execBuild, O as registerDevCommand, a1 as run, a3 as startValaxyDev } from '../../shared/valaxy.
|
|
5
|
+
export { c as createCli, s as desktopRuntimeVersion, u as execBuild, O as registerDevCommand, a1 as run, a3 as startValaxyDev } from '../../shared/valaxy.Dpywjeor.mjs';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import '@11ty/gray-matter';
|
|
8
8
|
import 'consola';
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ALL_ROUTE, E as EXCERPT_SEPARATOR, G as GLOBAL_STATE, P as PATHNAME_PROTOCOL_RE, S as StateManager, V as ViteValaxyPlugins, b as build, c as createCli, a as createContentService, d as createMemoryReleasePlugin, e as createServer, f as createValaxyNode, g as createValaxyPlugin, h as customElements, i as defaultSiteConfig, j as defaultValaxyConfig, k as defaultViteConfig, l as defineAddon, m as defineConfig, n as defineSiteConfig, o as defineTheme, p as defineValaxyAddon, q as defineValaxyConfig, r as defineValaxyTheme, s as desktopRuntimeVersion, t as encryptContent, u as execBuild, v as generateClientRedirects, w as getGitTimestamp, x as getIndexHtml, y as getServerInfoText, z as isExternal, B as isInstalledGlobally, C as isKatexEnabled, D as isKatexPluginNeeded, F as isMathJaxEnabled, H as isPath, I as loadAllContent, J as loadConfigFromFile, K as mergeValaxyConfig, L as mergeViteConfigs, M as postProcessForSSG, N as processValaxyOptions, O as registerDevCommand, Q as resolveAddonsConfig, R as resolveImportPath, T as resolveImportUrl, U as resolveOptions, W as resolveSiteConfig, X as resolveSiteConfigFromRoot, Y as resolveThemeConfigFromRoot, Z as resolveThemeValaxyConfig, _ as resolveUserThemeConfig, $ as resolveValaxyConfig, a0 as resolveValaxyConfigFromRoot, a1 as run, a2 as ssgBuild, a3 as startValaxyDev, a4 as toAtFS, a5 as transformObject, a6 as version } from '../shared/valaxy.
|
|
1
|
+
export { A as ALL_ROUTE, E as EXCERPT_SEPARATOR, G as GLOBAL_STATE, P as PATHNAME_PROTOCOL_RE, S as StateManager, V as ViteValaxyPlugins, b as build, c as createCli, a as createContentService, d as createMemoryReleasePlugin, e as createServer, f as createValaxyNode, g as createValaxyPlugin, h as customElements, i as defaultSiteConfig, j as defaultValaxyConfig, k as defaultViteConfig, l as defineAddon, m as defineConfig, n as defineSiteConfig, o as defineTheme, p as defineValaxyAddon, q as defineValaxyConfig, r as defineValaxyTheme, s as desktopRuntimeVersion, t as encryptContent, u as execBuild, v as generateClientRedirects, w as getGitTimestamp, x as getIndexHtml, y as getServerInfoText, z as isExternal, B as isInstalledGlobally, C as isKatexEnabled, D as isKatexPluginNeeded, F as isMathJaxEnabled, H as isPath, I as loadAllContent, J as loadConfigFromFile, K as mergeValaxyConfig, L as mergeViteConfigs, M as postProcessForSSG, N as processValaxyOptions, O as registerDevCommand, Q as resolveAddonsConfig, R as resolveImportPath, T as resolveImportUrl, U as resolveOptions, W as resolveSiteConfig, X as resolveSiteConfigFromRoot, Y as resolveThemeConfigFromRoot, Z as resolveThemeValaxyConfig, _ as resolveUserThemeConfig, $ as resolveValaxyConfig, a0 as resolveValaxyConfigFromRoot, a1 as run, a2 as ssgBuild, a3 as startValaxyDev, a4 as toAtFS, a5 as transformObject, a6 as version } from '../shared/valaxy.Dpywjeor.mjs';
|
|
2
2
|
import 'node:path';
|
|
3
3
|
import 'consola';
|
|
4
4
|
import 'fs-extra';
|
|
@@ -72,7 +72,7 @@ import * as readline from 'node:readline';
|
|
|
72
72
|
import qrcode from 'qrcode';
|
|
73
73
|
import ejs from 'ejs';
|
|
74
74
|
|
|
75
|
-
const version = "1.3.
|
|
75
|
+
const version = "1.3.1";
|
|
76
76
|
|
|
77
77
|
const GLOBAL_STATE = {
|
|
78
78
|
valaxyApp: void 0,
|
|
@@ -3634,35 +3634,43 @@ export default new Map([${entries.join(",\n")}])`;
|
|
|
3634
3634
|
|
|
3635
3635
|
function foucGuardHtml(maxDuration) {
|
|
3636
3636
|
return [
|
|
3637
|
-
`<style id="valaxy-fouc">body{opacity:0!important}</style>`,
|
|
3638
|
-
`<style>body{transition:opacity .15s ease}</style>`,
|
|
3637
|
+
`<style id="valaxy-fouc">body{margin:0;opacity:0!important}</style>`,
|
|
3639
3638
|
`<noscript><style>body{opacity:1!important}</style></noscript>`,
|
|
3640
3639
|
`<script>(${foucGuardScript.toString()})(${maxDuration})<\/script>`
|
|
3641
3640
|
].join("");
|
|
3642
3641
|
}
|
|
3643
3642
|
function foucGuardScript(maxDuration) {
|
|
3644
3643
|
var done = 0;
|
|
3644
|
+
var observer = new MutationObserver(check);
|
|
3645
|
+
var timer = maxDuration ? setTimeout(reveal, maxDuration) : void 0;
|
|
3645
3646
|
function reveal() {
|
|
3646
3647
|
if (done) return;
|
|
3647
3648
|
done = 1;
|
|
3649
|
+
observer.disconnect();
|
|
3650
|
+
clearTimeout(timer);
|
|
3651
|
+
document.removeEventListener("load", check, true);
|
|
3652
|
+
removeEventListener("load", reveal);
|
|
3648
3653
|
var s = document.getElementById("valaxy-fouc");
|
|
3649
3654
|
if (s) s.remove();
|
|
3650
3655
|
}
|
|
3651
3656
|
function check() {
|
|
3652
|
-
|
|
3657
|
+
if (!document.body) return;
|
|
3658
|
+
var links = document.head.querySelectorAll('link[rel~="stylesheet"]');
|
|
3653
3659
|
for (var i = 0; i < links.length; i++) {
|
|
3654
|
-
|
|
3660
|
+
var link = links[i];
|
|
3661
|
+
if (!link.disabled && !link.sheet) return;
|
|
3655
3662
|
}
|
|
3656
3663
|
reveal();
|
|
3657
3664
|
}
|
|
3658
|
-
|
|
3665
|
+
observer.observe(document.documentElement, { childList: true });
|
|
3666
|
+
observer.observe(document.head, {
|
|
3659
3667
|
childList: true,
|
|
3668
|
+
subtree: true,
|
|
3660
3669
|
attributes: true,
|
|
3661
|
-
attributeFilter: ["media", "rel"]
|
|
3670
|
+
attributeFilter: ["media", "rel", "disabled"]
|
|
3662
3671
|
});
|
|
3672
|
+
document.addEventListener("load", check, true);
|
|
3663
3673
|
addEventListener("load", reveal);
|
|
3664
|
-
if (maxDuration)
|
|
3665
|
-
setTimeout(reveal, maxDuration);
|
|
3666
3674
|
}
|
|
3667
3675
|
|
|
3668
3676
|
async function mergeViteConfigs({ userRoot, themeRoot }, command) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.1",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"@unhead/bundler": "^3.4.1",
|
|
77
77
|
"@unhead/schema-org": "^3.4.1",
|
|
78
78
|
"@unhead/vue": "^3.4.1",
|
|
79
|
-
"@valaxyjs/devtools": "1.3.
|
|
80
|
-
"@valaxyjs/utils": "1.3.
|
|
79
|
+
"@valaxyjs/devtools": "1.3.1",
|
|
80
|
+
"@valaxyjs/utils": "1.3.1",
|
|
81
81
|
"@vitejs/devtools": "0.8.0",
|
|
82
82
|
"@vitejs/plugin-vue": "^6.0.9",
|
|
83
83
|
"@vueuse/core": "^15.0.0",
|