zidane-gui 7.1.7 → 7.1.9
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/out/main/index.js +224 -30
- package/out/preload/index.mjs +21 -1
- package/out/renderer/assets/{index-DnkpUra3.js → index-BwjXMrIt.js} +31171 -28698
- package/out/renderer/assets/index-CNGtwsYK.css +2379 -0
- package/out/renderer/index.html +44 -20
- package/package.json +2 -2
- package/out/renderer/assets/index-BZjkKf9P.css +0 -2070
package/out/renderer/index.html
CHANGED
|
@@ -4,30 +4,55 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Zidane</title>
|
|
7
|
+
<!--
|
|
8
|
+
Appearance boot. Replays the CSS variables the renderer stored on its
|
|
9
|
+
last apply (`theme/boot.ts`, key zg:appearance:boot:v1) so the first
|
|
10
|
+
frame already has the user's theme, contrast and fonts. No derivation
|
|
11
|
+
happens here: the snapshot is the resolved output. If nothing is
|
|
12
|
+
stored (first launch) the :root fallbacks in styles.css paint the
|
|
13
|
+
default dark theme, which is also what the inline CSS below assumes.
|
|
14
|
+
-->
|
|
15
|
+
<script>
|
|
16
|
+
(function () {
|
|
17
|
+
try {
|
|
18
|
+
var raw = localStorage.getItem('zg:appearance:boot:v1');
|
|
19
|
+
if (!raw) return;
|
|
20
|
+
var snap = JSON.parse(raw);
|
|
21
|
+
if (!snap || !snap.vars || (snap.appearance !== 'light' && snap.appearance !== 'dark')) return;
|
|
22
|
+
var root = document.documentElement;
|
|
23
|
+
for (var name in snap.vars) {
|
|
24
|
+
if (name.indexOf('--zg-') === 0) root.style.setProperty(name, snap.vars[name]);
|
|
25
|
+
}
|
|
26
|
+
root.classList.remove('dark', 'light');
|
|
27
|
+
root.classList.add(snap.appearance);
|
|
28
|
+
root.style.colorScheme = snap.appearance;
|
|
29
|
+
} catch (e) {
|
|
30
|
+
/* corrupt snapshot: fall back to stylesheet defaults */
|
|
31
|
+
}
|
|
32
|
+
})();
|
|
33
|
+
</script>
|
|
7
34
|
<style>
|
|
8
35
|
html,
|
|
9
36
|
body {
|
|
10
37
|
margin: 0;
|
|
11
38
|
height: 100%;
|
|
12
|
-
background: #
|
|
13
|
-
color: #
|
|
39
|
+
background: var(--zg-bg, #0d1013);
|
|
40
|
+
color: var(--zg-text-raw, #e5e8ec);
|
|
14
41
|
color-scheme: dark;
|
|
15
|
-
font-family:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
'Roboto',
|
|
21
|
-
sans-serif;
|
|
42
|
+
font-family: var(--zg-font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif);
|
|
43
|
+
}
|
|
44
|
+
html.light,
|
|
45
|
+
html.light body {
|
|
46
|
+
color-scheme: light;
|
|
22
47
|
}
|
|
23
48
|
#root {
|
|
24
49
|
height: 100%;
|
|
25
50
|
}
|
|
26
51
|
/*
|
|
27
52
|
* Hide EVERYTHING (not just #root) until the renderer signals ready.
|
|
28
|
-
* Portals
|
|
29
|
-
*
|
|
30
|
-
*
|
|
53
|
+
* Portals (tippy, lightboxes) mount into <body> outside of #root, so a
|
|
54
|
+
* #root-only mask would let them flash unstyled during the dev
|
|
55
|
+
* CSS-injection window.
|
|
31
56
|
*/
|
|
32
57
|
html:not(.zg-ready) body {
|
|
33
58
|
visibility: hidden;
|
|
@@ -36,11 +61,10 @@
|
|
|
36
61
|
/*
|
|
37
62
|
* Belt-and-suspenders loading screen. The `visibility: hidden` rule
|
|
38
63
|
* above hides the DOM, but in dev the body's background can still
|
|
39
|
-
* flash
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* stable black screen — never unstyled content, never a flash.
|
|
64
|
+
* flash during the brief unstyled window. A solid full-screen div
|
|
65
|
+
* sitting above everything, styled only from inline CSS (no
|
|
66
|
+
* dependency on Vite-injected CSS), guarantees a stable screen in
|
|
67
|
+
* the user's canvas color, never unstyled content, never a flash.
|
|
44
68
|
*
|
|
45
69
|
* Hidden via opacity (not `display: none`) so we can fade out
|
|
46
70
|
* smoothly once `.zg-ready` lands. `pointer-events: none` on the
|
|
@@ -51,7 +75,7 @@
|
|
|
51
75
|
position: fixed;
|
|
52
76
|
inset: 0;
|
|
53
77
|
z-index: 2147483647;
|
|
54
|
-
background: #
|
|
78
|
+
background: var(--zg-bg, #0d1013);
|
|
55
79
|
opacity: 1;
|
|
56
80
|
transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
57
81
|
}
|
|
@@ -61,8 +85,8 @@
|
|
|
61
85
|
pointer-events: none;
|
|
62
86
|
}
|
|
63
87
|
</style>
|
|
64
|
-
<script type="module" crossorigin src="./assets/index-
|
|
65
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
88
|
+
<script type="module" crossorigin src="./assets/index-BwjXMrIt.js"></script>
|
|
89
|
+
<link rel="stylesheet" crossorigin href="./assets/index-CNGtwsYK.css">
|
|
66
90
|
</head>
|
|
67
91
|
<body>
|
|
68
92
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zidane-gui",
|
|
3
3
|
"productName": "Zidane",
|
|
4
|
-
"version": "7.1.
|
|
4
|
+
"version": "7.1.9",
|
|
5
5
|
"description": "Zidane Desktop",
|
|
6
6
|
"author": "StackBlitz",
|
|
7
7
|
"type": "module",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"remark-gfm": "^4.0.1",
|
|
60
60
|
"shiki": "^4.1.0",
|
|
61
61
|
"tippy.js": "^6.3.7",
|
|
62
|
-
"zidane": "7.1.
|
|
62
|
+
"zidane": "7.1.9",
|
|
63
63
|
"zod": "^4.4.3"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|