@constela/start 1.2.25 → 1.2.26
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.
|
@@ -108,7 +108,9 @@ ${importMapJson}
|
|
|
108
108
|
themeScript = `<script>
|
|
109
109
|
(function() {
|
|
110
110
|
try {
|
|
111
|
-
var
|
|
111
|
+
var raw = localStorage.getItem('${options.themeStorageKey}');
|
|
112
|
+
var theme = raw;
|
|
113
|
+
try { theme = JSON.parse(raw); } catch (e) {}
|
|
112
114
|
if (theme === 'dark') {
|
|
113
115
|
document.documentElement.classList.add('dark');
|
|
114
116
|
} else if (theme === 'light') {
|
package/dist/cli/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
transformCsv,
|
|
24
24
|
transformMdx,
|
|
25
25
|
transformYaml
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KX2KFKH4.js";
|
|
27
27
|
import {
|
|
28
28
|
generateHydrationScript,
|
|
29
29
|
renderPage,
|
|
30
30
|
wrapHtml
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CYMS3K6V.js";
|
|
32
32
|
|
|
33
33
|
// src/build/ssg.ts
|
|
34
34
|
import { mkdir, writeFile } from "fs/promises";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constela/start",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.26",
|
|
4
4
|
"description": "Meta-framework for Constela applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@constela/compiler": "0.8.0",
|
|
47
47
|
"@constela/core": "0.8.0",
|
|
48
48
|
"@constela/server": "4.1.0",
|
|
49
|
-
"@constela/
|
|
50
|
-
"@constela/
|
|
49
|
+
"@constela/runtime": "0.11.0",
|
|
50
|
+
"@constela/router": "9.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/mdast": "^4.0.4",
|