zidane-gui 8.2.5 → 9.0.2
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/README.md +3 -2
- package/out/main/chunks/{history-pager-DWgllMof.js → history-pager-DUFgTrih.js} +2 -13
- package/out/main/chunks/tool-results-sql-C0MqWcQc.js +41 -0
- package/out/main/chunks/usage-sql-DiITGx8Q.js +67 -0
- package/out/main/history-worker.js +1 -4
- package/out/main/index.js +2183 -3189
- package/out/main/lsp-host.js +17 -4
- package/out/main/tool-results-worker.js +17 -0
- package/out/main/usage-worker.js +5 -19
- package/out/preload/index.mjs +67 -4
- package/out/renderer/assets/CodeEditor-in2F3Rz-.js +12771 -0
- package/out/renderer/assets/ComposerEditor-DzKoxH6Z.js +68 -0
- package/out/renderer/assets/DiffsTab-Ceh4E5wW.js +540 -0
- package/out/renderer/assets/EditorWorkers-Bhv2OJRb.js +67 -0
- package/out/renderer/assets/FileIcon-CYgGSQ59.js +781 -0
- package/out/renderer/assets/FilesTab-DESQMqGK.js +11763 -0
- package/out/renderer/assets/core-xOIU6ifr.js +9977 -0
- package/out/renderer/assets/file-tabs-Cozt9Sho.js +105 -0
- package/out/renderer/assets/{ghostty-web-wgkS5jGl.js → ghostty-web-BTHoKwMc.js} +1 -1
- package/out/renderer/assets/index-DkE-xvCG.js +9525 -0
- package/out/renderer/assets/index-DogoEzwx.js +10868 -0
- package/out/renderer/assets/{index-DqGrzqUj.css → index-DrLLItLS.css} +2481 -2639
- package/out/renderer/assets/kit-BUt8oFlT.js +64699 -0
- package/out/renderer/assets/pierre-theme-Bj5EAt1L.js +4312 -0
- package/out/renderer/assets/useDetachCleanup-Bb7k1ePf.js +3138 -0
- package/out/renderer/assets/useFolderChanges-B4X4n6NV.js +7896 -0
- package/out/renderer/assets/vendor-BvslLX9q.js +20410 -0
- package/out/renderer/assets/vendor-D_E2rLzO.css +388 -0
- package/out/renderer/assets/vendor-editor-Bx3dRdBD.js +26391 -0
- package/out/renderer/assets/vendor-motion-BLeNAEjH.js +9376 -0
- package/out/renderer/assets/vendor-react-DltKc0Ts.js +14275 -0
- package/out/renderer/assets/vendor-shiki-ba8IDo5s.js +459 -0
- package/out/renderer/index.html +11 -3
- package/package.json +10 -4
- package/scripts/postinstall.mjs +2 -1
- package/out/main/chunks/context-77_UZfgL.js +0 -61
- package/out/main/chunks/usage-sql-C2Tg1u44.js +0 -81
- package/out/renderer/assets/index-CebkAnp4.js +0 -191640
- /package/out/renderer/assets/{working-tree-parse.worker-BAW1QWyk.js → patch-parse.worker-BAW1QWyk.js} +0 -0
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
const scriptRel = /* @__PURE__ */ (function detectScriptRel() {
|
|
2
|
+
const relList = typeof document !== "undefined" && document.createElement("link").relList;
|
|
3
|
+
return relList && relList.supports && relList.supports("modulepreload") ? "modulepreload" : "preload";
|
|
4
|
+
})();
|
|
5
|
+
const assetsURL = function(dep, importerUrl) {
|
|
6
|
+
return new URL(dep, importerUrl).href;
|
|
7
|
+
};
|
|
8
|
+
const seen = {};
|
|
9
|
+
const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
10
|
+
let promise = Promise.resolve();
|
|
11
|
+
if (deps && deps.length > 0) {
|
|
12
|
+
let allSettled = function(promises$2) {
|
|
13
|
+
return Promise.all(promises$2.map((p) => Promise.resolve(p).then((value$1) => ({
|
|
14
|
+
status: "fulfilled",
|
|
15
|
+
value: value$1
|
|
16
|
+
}), (reason) => ({
|
|
17
|
+
status: "rejected",
|
|
18
|
+
reason
|
|
19
|
+
}))));
|
|
20
|
+
};
|
|
21
|
+
const links = document.getElementsByTagName("link");
|
|
22
|
+
const cspNonceMeta = document.querySelector("meta[property=csp-nonce]");
|
|
23
|
+
const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
|
|
24
|
+
promise = allSettled(deps.map((dep) => {
|
|
25
|
+
dep = assetsURL(dep, importerUrl);
|
|
26
|
+
if (dep in seen) return;
|
|
27
|
+
seen[dep] = true;
|
|
28
|
+
const isCss = dep.endsWith(".css");
|
|
29
|
+
const cssSelector = isCss ? '[rel="stylesheet"]' : "";
|
|
30
|
+
if (!!importerUrl) for (let i$1 = links.length - 1; i$1 >= 0; i$1--) {
|
|
31
|
+
const link$1 = links[i$1];
|
|
32
|
+
if (link$1.href === dep && (!isCss || link$1.rel === "stylesheet")) return;
|
|
33
|
+
}
|
|
34
|
+
else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;
|
|
35
|
+
const link = document.createElement("link");
|
|
36
|
+
link.rel = isCss ? "stylesheet" : scriptRel;
|
|
37
|
+
if (!isCss) link.as = "script";
|
|
38
|
+
link.crossOrigin = "";
|
|
39
|
+
link.href = dep;
|
|
40
|
+
if (cspNonce) link.setAttribute("nonce", cspNonce);
|
|
41
|
+
document.head.appendChild(link);
|
|
42
|
+
if (isCss) return new Promise((res, rej) => {
|
|
43
|
+
link.addEventListener("load", res);
|
|
44
|
+
link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
|
|
45
|
+
});
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
function handlePreloadError(err$2) {
|
|
49
|
+
const e$1 = new Event("vite:preloadError", { cancelable: true });
|
|
50
|
+
e$1.payload = err$2;
|
|
51
|
+
window.dispatchEvent(e$1);
|
|
52
|
+
if (!e$1.defaultPrevented) throw err$2;
|
|
53
|
+
}
|
|
54
|
+
return promise.then((res) => {
|
|
55
|
+
for (const item of res || []) {
|
|
56
|
+
if (item.status !== "rejected") continue;
|
|
57
|
+
handlePreloadError(item.reason);
|
|
58
|
+
}
|
|
59
|
+
return baseModule().catch(handlePreloadError);
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
const bundledThemesInfo = [
|
|
63
|
+
{
|
|
64
|
+
"id": "andromeeda",
|
|
65
|
+
"displayName": "Andromeeda",
|
|
66
|
+
"type": "dark",
|
|
67
|
+
"import": (() => __vitePreload(() => import("./andromeeda-C847lm7Z.js"), true ? [] : void 0, import.meta.url))
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "aurora-x",
|
|
71
|
+
"displayName": "Aurora X",
|
|
72
|
+
"type": "dark",
|
|
73
|
+
"import": (() => __vitePreload(() => import("./aurora-x-wJ4-eM2h.js"), true ? [] : void 0, import.meta.url))
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "ayu-dark",
|
|
77
|
+
"displayName": "Ayu Dark",
|
|
78
|
+
"type": "dark",
|
|
79
|
+
"import": (() => __vitePreload(() => import("./ayu-dark-rtpbXCNg.js"), true ? [] : void 0, import.meta.url))
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "ayu-light",
|
|
83
|
+
"displayName": "Ayu Light",
|
|
84
|
+
"type": "light",
|
|
85
|
+
"import": (() => __vitePreload(() => import("./ayu-light-BCZDSyV8.js"), true ? [] : void 0, import.meta.url))
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "ayu-mirage",
|
|
89
|
+
"displayName": "Ayu Mirage",
|
|
90
|
+
"type": "dark",
|
|
91
|
+
"import": (() => __vitePreload(() => import("./ayu-mirage-BVoH71sA.js"), true ? [] : void 0, import.meta.url))
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "catppuccin-frappe",
|
|
95
|
+
"displayName": "Catppuccin Frappé",
|
|
96
|
+
"type": "dark",
|
|
97
|
+
"import": (() => __vitePreload(() => import("./catppuccin-frappe-CsW6iLIR.js"), true ? [] : void 0, import.meta.url))
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"id": "catppuccin-latte",
|
|
101
|
+
"displayName": "Catppuccin Latte",
|
|
102
|
+
"type": "light",
|
|
103
|
+
"import": (() => __vitePreload(() => import("./catppuccin-latte-reHbSDAH.js"), true ? [] : void 0, import.meta.url))
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "catppuccin-macchiato",
|
|
107
|
+
"displayName": "Catppuccin Macchiato",
|
|
108
|
+
"type": "dark",
|
|
109
|
+
"import": (() => __vitePreload(() => import("./catppuccin-macchiato-rSGd47q5.js"), true ? [] : void 0, import.meta.url))
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "catppuccin-mocha",
|
|
113
|
+
"displayName": "Catppuccin Mocha",
|
|
114
|
+
"type": "dark",
|
|
115
|
+
"import": (() => __vitePreload(() => import("./catppuccin-mocha-C6c0_b-7.js"), true ? [] : void 0, import.meta.url))
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "dark-plus",
|
|
119
|
+
"displayName": "Dark Plus",
|
|
120
|
+
"type": "dark",
|
|
121
|
+
"import": (() => __vitePreload(() => import("./dark-plus-DmZ1Dzd4.js"), true ? [] : void 0, import.meta.url))
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "dracula",
|
|
125
|
+
"displayName": "Dracula Theme",
|
|
126
|
+
"type": "dark",
|
|
127
|
+
"import": (() => __vitePreload(() => import("./dracula-B8-AVrwI.js"), true ? [] : void 0, import.meta.url))
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "dracula-soft",
|
|
131
|
+
"displayName": "Dracula Theme Soft",
|
|
132
|
+
"type": "dark",
|
|
133
|
+
"import": (() => __vitePreload(() => import("./dracula-soft-BHeefow7.js"), true ? [] : void 0, import.meta.url))
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"id": "everforest-dark",
|
|
137
|
+
"displayName": "Everforest Dark",
|
|
138
|
+
"type": "dark",
|
|
139
|
+
"import": (() => __vitePreload(() => import("./everforest-dark-Cg1xdODP.js"), true ? [] : void 0, import.meta.url))
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "everforest-light",
|
|
143
|
+
"displayName": "Everforest Light",
|
|
144
|
+
"type": "light",
|
|
145
|
+
"import": (() => __vitePreload(() => import("./everforest-light-BmTD3bxe.js"), true ? [] : void 0, import.meta.url))
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "github-dark",
|
|
149
|
+
"displayName": "GitHub Dark",
|
|
150
|
+
"type": "dark",
|
|
151
|
+
"import": (() => __vitePreload(() => import("./github-dark-O22yVQaY.js"), true ? [] : void 0, import.meta.url))
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"id": "github-dark-default",
|
|
155
|
+
"displayName": "GitHub Dark Default",
|
|
156
|
+
"type": "dark",
|
|
157
|
+
"import": (() => __vitePreload(() => import("./github-dark-default-DB2Hkvqn.js"), true ? [] : void 0, import.meta.url))
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "github-dark-dimmed",
|
|
161
|
+
"displayName": "GitHub Dark Dimmed",
|
|
162
|
+
"type": "dark",
|
|
163
|
+
"import": (() => __vitePreload(() => import("./github-dark-dimmed-CMZ_OfqC.js"), true ? [] : void 0, import.meta.url))
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"id": "github-dark-high-contrast",
|
|
167
|
+
"displayName": "GitHub Dark High Contrast",
|
|
168
|
+
"type": "dark",
|
|
169
|
+
"import": (() => __vitePreload(() => import("./github-dark-high-contrast-DmxWVmCU.js"), true ? [] : void 0, import.meta.url))
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"id": "github-light",
|
|
173
|
+
"displayName": "GitHub Light",
|
|
174
|
+
"type": "light",
|
|
175
|
+
"import": (() => __vitePreload(() => import("./github-light-BTbR9xVK.js"), true ? [] : void 0, import.meta.url))
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "github-light-default",
|
|
179
|
+
"displayName": "GitHub Light Default",
|
|
180
|
+
"type": "light",
|
|
181
|
+
"import": (() => __vitePreload(() => import("./github-light-default-DWEonwFe.js"), true ? [] : void 0, import.meta.url))
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"id": "github-light-high-contrast",
|
|
185
|
+
"displayName": "GitHub Light High Contrast",
|
|
186
|
+
"type": "light",
|
|
187
|
+
"import": (() => __vitePreload(() => import("./github-light-high-contrast-WJ_cPDts.js"), true ? [] : void 0, import.meta.url))
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"id": "gruvbox-dark-hard",
|
|
191
|
+
"displayName": "Gruvbox Dark Hard",
|
|
192
|
+
"type": "dark",
|
|
193
|
+
"import": (() => __vitePreload(() => import("./gruvbox-dark-hard-DVsRsETr.js"), true ? [] : void 0, import.meta.url))
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"id": "gruvbox-dark-medium",
|
|
197
|
+
"displayName": "Gruvbox Dark Medium",
|
|
198
|
+
"type": "dark",
|
|
199
|
+
"import": (() => __vitePreload(() => import("./gruvbox-dark-medium-B5JBrQdg.js"), true ? [] : void 0, import.meta.url))
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"id": "gruvbox-dark-soft",
|
|
203
|
+
"displayName": "Gruvbox Dark Soft",
|
|
204
|
+
"type": "dark",
|
|
205
|
+
"import": (() => __vitePreload(() => import("./gruvbox-dark-soft-Db-YOqRx.js"), true ? [] : void 0, import.meta.url))
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "gruvbox-light-hard",
|
|
209
|
+
"displayName": "Gruvbox Light Hard",
|
|
210
|
+
"type": "light",
|
|
211
|
+
"import": (() => __vitePreload(() => import("./gruvbox-light-hard-CXzJt7DI.js"), true ? [] : void 0, import.meta.url))
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"id": "gruvbox-light-medium",
|
|
215
|
+
"displayName": "Gruvbox Light Medium",
|
|
216
|
+
"type": "light",
|
|
217
|
+
"import": (() => __vitePreload(() => import("./gruvbox-light-medium-B89RAI1Y.js"), true ? [] : void 0, import.meta.url))
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"id": "gruvbox-light-soft",
|
|
221
|
+
"displayName": "Gruvbox Light Soft",
|
|
222
|
+
"type": "light",
|
|
223
|
+
"import": (() => __vitePreload(() => import("./gruvbox-light-soft-Cs0hTZYv.js"), true ? [] : void 0, import.meta.url))
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"id": "horizon",
|
|
227
|
+
"displayName": "Horizon",
|
|
228
|
+
"type": "dark",
|
|
229
|
+
"import": (() => __vitePreload(() => import("./horizon-DWzh3z5C.js"), true ? [] : void 0, import.meta.url))
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"id": "horizon-bright",
|
|
233
|
+
"displayName": "Horizon Bright",
|
|
234
|
+
"type": "light",
|
|
235
|
+
"import": (() => __vitePreload(() => import("./horizon-bright-BJQsV5UY.js"), true ? [] : void 0, import.meta.url))
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"id": "houston",
|
|
239
|
+
"displayName": "Houston",
|
|
240
|
+
"type": "dark",
|
|
241
|
+
"import": (() => __vitePreload(() => import("./houston-CF_ws8Cq.js"), true ? [] : void 0, import.meta.url))
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"id": "kanagawa-dragon",
|
|
245
|
+
"displayName": "Kanagawa Dragon",
|
|
246
|
+
"type": "dark",
|
|
247
|
+
"import": (() => __vitePreload(() => import("./kanagawa-dragon-BzrndB3G.js"), true ? [] : void 0, import.meta.url))
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"id": "kanagawa-lotus",
|
|
251
|
+
"displayName": "Kanagawa Lotus",
|
|
252
|
+
"type": "light",
|
|
253
|
+
"import": (() => __vitePreload(() => import("./kanagawa-lotus-BMbWLXSu.js"), true ? [] : void 0, import.meta.url))
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"id": "kanagawa-wave",
|
|
257
|
+
"displayName": "Kanagawa Wave",
|
|
258
|
+
"type": "dark",
|
|
259
|
+
"import": (() => __vitePreload(() => import("./kanagawa-wave-OC_VodQx.js"), true ? [] : void 0, import.meta.url))
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"id": "laserwave",
|
|
263
|
+
"displayName": "LaserWave",
|
|
264
|
+
"type": "dark",
|
|
265
|
+
"import": (() => __vitePreload(() => import("./laserwave-DF03wMlf.js"), true ? [] : void 0, import.meta.url))
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"id": "light-plus",
|
|
269
|
+
"displayName": "Light Plus",
|
|
270
|
+
"type": "light",
|
|
271
|
+
"import": (() => __vitePreload(() => import("./light-plus-DS08Xg5J.js"), true ? [] : void 0, import.meta.url))
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"id": "material-theme",
|
|
275
|
+
"displayName": "Material Theme",
|
|
276
|
+
"type": "dark",
|
|
277
|
+
"import": (() => __vitePreload(() => import("./material-theme-B8B2U48Q.js"), true ? [] : void 0, import.meta.url))
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"id": "material-theme-darker",
|
|
281
|
+
"displayName": "Material Theme Darker",
|
|
282
|
+
"type": "dark",
|
|
283
|
+
"import": (() => __vitePreload(() => import("./material-theme-darker-BV0iY_T3.js"), true ? [] : void 0, import.meta.url))
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"id": "material-theme-lighter",
|
|
287
|
+
"displayName": "Material Theme Lighter",
|
|
288
|
+
"type": "light",
|
|
289
|
+
"import": (() => __vitePreload(() => import("./material-theme-lighter-DrzybSTF.js"), true ? [] : void 0, import.meta.url))
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"id": "material-theme-ocean",
|
|
293
|
+
"displayName": "Material Theme Ocean",
|
|
294
|
+
"type": "dark",
|
|
295
|
+
"import": (() => __vitePreload(() => import("./material-theme-ocean-BRPLVReX.js"), true ? [] : void 0, import.meta.url))
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"id": "material-theme-palenight",
|
|
299
|
+
"displayName": "Material Theme Palenight",
|
|
300
|
+
"type": "dark",
|
|
301
|
+
"import": (() => __vitePreload(() => import("./material-theme-palenight-DSJwsR_D.js"), true ? [] : void 0, import.meta.url))
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"id": "min-dark",
|
|
305
|
+
"displayName": "Min Dark",
|
|
306
|
+
"type": "dark",
|
|
307
|
+
"import": (() => __vitePreload(() => import("./min-dark-BNaN9fWk.js"), true ? [] : void 0, import.meta.url))
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"id": "min-light",
|
|
311
|
+
"displayName": "Min Light",
|
|
312
|
+
"type": "light",
|
|
313
|
+
"import": (() => __vitePreload(() => import("./min-light-CMrjentn.js"), true ? [] : void 0, import.meta.url))
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"id": "monokai",
|
|
317
|
+
"displayName": "Monokai",
|
|
318
|
+
"type": "dark",
|
|
319
|
+
"import": (() => __vitePreload(() => import("./monokai-BL-7sM2b.js"), true ? [] : void 0, import.meta.url))
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"id": "night-owl",
|
|
323
|
+
"displayName": "Night Owl",
|
|
324
|
+
"type": "dark",
|
|
325
|
+
"import": (() => __vitePreload(() => import("./night-owl-DSS199ra.js"), true ? [] : void 0, import.meta.url))
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"id": "night-owl-light",
|
|
329
|
+
"displayName": "Night Owl Light",
|
|
330
|
+
"type": "light",
|
|
331
|
+
"import": (() => __vitePreload(() => import("./night-owl-light-gC6E-Eh2.js"), true ? [] : void 0, import.meta.url))
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"id": "nord",
|
|
335
|
+
"displayName": "Nord",
|
|
336
|
+
"type": "dark",
|
|
337
|
+
"import": (() => __vitePreload(() => import("./nord-CvDbBq5M.js"), true ? [] : void 0, import.meta.url))
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"id": "one-dark-pro",
|
|
341
|
+
"displayName": "One Dark Pro",
|
|
342
|
+
"type": "dark",
|
|
343
|
+
"import": (() => __vitePreload(() => import("./one-dark-pro-DfmyFT_9.js"), true ? [] : void 0, import.meta.url))
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"id": "one-light",
|
|
347
|
+
"displayName": "One Light",
|
|
348
|
+
"type": "light",
|
|
349
|
+
"import": (() => __vitePreload(() => import("./one-light-B0cTzZyr.js"), true ? [] : void 0, import.meta.url))
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"id": "plastic",
|
|
353
|
+
"displayName": "Plastic",
|
|
354
|
+
"type": "dark",
|
|
355
|
+
"import": (() => __vitePreload(() => import("./plastic-BjwMpBc0.js"), true ? [] : void 0, import.meta.url))
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"id": "poimandres",
|
|
359
|
+
"displayName": "Poimandres",
|
|
360
|
+
"type": "dark",
|
|
361
|
+
"import": (() => __vitePreload(() => import("./poimandres-ChWyhPrn.js"), true ? [] : void 0, import.meta.url))
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"id": "red",
|
|
365
|
+
"displayName": "Red",
|
|
366
|
+
"type": "dark",
|
|
367
|
+
"import": (() => __vitePreload(() => import("./red-BcXR4G_B.js"), true ? [] : void 0, import.meta.url))
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"id": "rose-pine",
|
|
371
|
+
"displayName": "Rosé Pine",
|
|
372
|
+
"type": "dark",
|
|
373
|
+
"import": (() => __vitePreload(() => import("./rose-pine-DsUfEP3G.js"), true ? [] : void 0, import.meta.url))
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"id": "rose-pine-dawn",
|
|
377
|
+
"displayName": "Rosé Pine Dawn",
|
|
378
|
+
"type": "light",
|
|
379
|
+
"import": (() => __vitePreload(() => import("./rose-pine-dawn-BvRaiqBN.js"), true ? [] : void 0, import.meta.url))
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"id": "rose-pine-moon",
|
|
383
|
+
"displayName": "Rosé Pine Moon",
|
|
384
|
+
"type": "dark",
|
|
385
|
+
"import": (() => __vitePreload(() => import("./rose-pine-moon-B51k6Eh0.js"), true ? [] : void 0, import.meta.url))
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"id": "slack-dark",
|
|
389
|
+
"displayName": "Slack Dark",
|
|
390
|
+
"type": "dark",
|
|
391
|
+
"import": (() => __vitePreload(() => import("./slack-dark-BEe10hxO.js"), true ? [] : void 0, import.meta.url))
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"id": "slack-ochin",
|
|
395
|
+
"displayName": "Slack Ochin",
|
|
396
|
+
"type": "light",
|
|
397
|
+
"import": (() => __vitePreload(() => import("./slack-ochin-BKmu9pBc.js"), true ? [] : void 0, import.meta.url))
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"id": "snazzy-light",
|
|
401
|
+
"displayName": "Snazzy Light",
|
|
402
|
+
"type": "light",
|
|
403
|
+
"import": (() => __vitePreload(() => import("./snazzy-light-Dcvd-ZyI.js"), true ? [] : void 0, import.meta.url))
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"id": "solarized-dark",
|
|
407
|
+
"displayName": "Solarized Dark",
|
|
408
|
+
"type": "dark",
|
|
409
|
+
"import": (() => __vitePreload(() => import("./solarized-dark-9CqJc6gu.js"), true ? [] : void 0, import.meta.url))
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"id": "solarized-light",
|
|
413
|
+
"displayName": "Solarized Light",
|
|
414
|
+
"type": "light",
|
|
415
|
+
"import": (() => __vitePreload(() => import("./solarized-light-CahvOdlg.js"), true ? [] : void 0, import.meta.url))
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"id": "synthwave-84",
|
|
419
|
+
"displayName": "Synthwave '84",
|
|
420
|
+
"type": "dark",
|
|
421
|
+
"import": (() => __vitePreload(() => import("./synthwave-84-CoUef9sh.js"), true ? [] : void 0, import.meta.url))
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"id": "tokyo-night",
|
|
425
|
+
"displayName": "Tokyo Night",
|
|
426
|
+
"type": "dark",
|
|
427
|
+
"import": (() => __vitePreload(() => import("./tokyo-night-DjtLpAEY.js"), true ? [] : void 0, import.meta.url))
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"id": "vesper",
|
|
431
|
+
"displayName": "Vesper",
|
|
432
|
+
"type": "dark",
|
|
433
|
+
"import": (() => __vitePreload(() => import("./vesper-D0zf0Dl2.js"), true ? [] : void 0, import.meta.url))
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"id": "vitesse-black",
|
|
437
|
+
"displayName": "Vitesse Black",
|
|
438
|
+
"type": "dark",
|
|
439
|
+
"import": (() => __vitePreload(() => import("./vitesse-black-BqNLki8b.js"), true ? [] : void 0, import.meta.url))
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"id": "vitesse-dark",
|
|
443
|
+
"displayName": "Vitesse Dark",
|
|
444
|
+
"type": "dark",
|
|
445
|
+
"import": (() => __vitePreload(() => import("./vitesse-dark-jJ32WhwH.js"), true ? [] : void 0, import.meta.url))
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"id": "vitesse-light",
|
|
449
|
+
"displayName": "Vitesse Light",
|
|
450
|
+
"type": "light",
|
|
451
|
+
"import": (() => __vitePreload(() => import("./vitesse-light-476zM4e6.js"), true ? [] : void 0, import.meta.url))
|
|
452
|
+
}
|
|
453
|
+
];
|
|
454
|
+
const bundledThemes = Object.fromEntries(bundledThemesInfo.map((i) => [i.id, i.import]));
|
|
455
|
+
export {
|
|
456
|
+
__vitePreload as _,
|
|
457
|
+
bundledThemes as a,
|
|
458
|
+
bundledThemesInfo as b
|
|
459
|
+
};
|
package/out/renderer/index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>Zidane</title>
|
|
7
7
|
<!--
|
|
8
8
|
Appearance boot. Replays the CSS variables the renderer stored on its
|
|
9
|
-
last apply (`
|
|
9
|
+
last apply (`createStorageBoot`, zidane-ui/appearance/headless, key zg:appearance:boot:v1) so the first
|
|
10
10
|
frame already has the user's theme, contrast and fonts. No derivation
|
|
11
11
|
happens here: the snapshot is the resolved output. If nothing is
|
|
12
12
|
stored (first launch) the :root fallbacks in styles.css paint the
|
|
@@ -88,8 +88,16 @@
|
|
|
88
88
|
pointer-events: none;
|
|
89
89
|
}
|
|
90
90
|
</style>
|
|
91
|
-
<script type="module" crossorigin src="./assets/index-
|
|
92
|
-
<link rel="
|
|
91
|
+
<script type="module" crossorigin src="./assets/index-DkE-xvCG.js"></script>
|
|
92
|
+
<link rel="modulepreload" crossorigin href="./assets/vendor-react-DltKc0Ts.js">
|
|
93
|
+
<link rel="modulepreload" crossorigin href="./assets/vendor-BvslLX9q.js">
|
|
94
|
+
<link rel="modulepreload" crossorigin href="./assets/core-xOIU6ifr.js">
|
|
95
|
+
<link rel="modulepreload" crossorigin href="./assets/vendor-motion-BLeNAEjH.js">
|
|
96
|
+
<link rel="modulepreload" crossorigin href="./assets/vendor-editor-Bx3dRdBD.js">
|
|
97
|
+
<link rel="modulepreload" crossorigin href="./assets/vendor-shiki-ba8IDo5s.js">
|
|
98
|
+
<link rel="modulepreload" crossorigin href="./assets/kit-BUt8oFlT.js">
|
|
99
|
+
<link rel="stylesheet" crossorigin href="./assets/vendor-D_E2rLzO.css">
|
|
100
|
+
<link rel="stylesheet" crossorigin href="./assets/index-DrLLItLS.css">
|
|
93
101
|
</head>
|
|
94
102
|
<body>
|
|
95
103
|
<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": "
|
|
4
|
+
"version": "9.0.2",
|
|
5
5
|
"description": "Zidane Desktop",
|
|
6
6
|
"author": "StackBlitz",
|
|
7
7
|
"type": "module",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dev": "bun --cwd=.. run build && ZIDANE_DEV=1 electron-vite dev",
|
|
22
22
|
"build": "electron-vite build",
|
|
23
23
|
"start": "electron-vite preview",
|
|
24
|
-
"link:zidane": "node -e \"const fs=require('fs'),
|
|
24
|
+
"link:zidane": "node -e \"const fs=require('fs');for(const [p,t] of [['node_modules/zidane','../..'],['node_modules/zidane-ui','../../ui']]){fs.rmSync(p,{recursive:true,force:true});fs.symlinkSync(t,p,'dir')}\"",
|
|
25
25
|
"postinstall": "node scripts/postinstall.mjs",
|
|
26
26
|
"icons:macos": "electron scripts/render-macos-icons.mjs",
|
|
27
27
|
"prepack": "electron-vite build",
|
|
@@ -38,10 +38,16 @@
|
|
|
38
38
|
"package": "electron-builder --config electron-builder.yml --mac --arm64",
|
|
39
39
|
"pretest:e2e": "bun run build",
|
|
40
40
|
"test:e2e": "playwright test --config test/playwright.config.ts",
|
|
41
|
+
"pretest:e2e:functional": "bun run build",
|
|
42
|
+
"test:e2e:functional": "playwright test --config test/playwright.config.ts --project functional",
|
|
43
|
+
"pretest:e2e:serial": "bun run build",
|
|
44
|
+
"test:e2e:serial": "playwright test --config test/playwright.config.ts --project exclusive --project perf --no-deps --workers 1",
|
|
41
45
|
"test:e2e:headed": "playwright test --config test/playwright.config.ts --headed",
|
|
42
46
|
"test:e2e:ui": "playwright test --config test/playwright.config.ts --ui",
|
|
43
47
|
"pretest:visual": "bun run build",
|
|
44
|
-
"test:visual": "playwright test --config test/playwright.config.ts test/visual"
|
|
48
|
+
"test:visual": "playwright test --config test/playwright.config.ts test/visual",
|
|
49
|
+
"pretest:perf": "bun run build",
|
|
50
|
+
"test:perf": "playwright test --config test/perf.config.ts"
|
|
45
51
|
},
|
|
46
52
|
"dependencies": {
|
|
47
53
|
"@pierre/diffs": "^1.5.2",
|
|
@@ -66,7 +72,7 @@
|
|
|
66
72
|
"shiki": "^4.5.0",
|
|
67
73
|
"tippy.js": "^6.3.7",
|
|
68
74
|
"typescript-language-server": "^6.0.1",
|
|
69
|
-
"zidane": "
|
|
75
|
+
"zidane": "9.0.2",
|
|
70
76
|
"zod": "^4.6.5"
|
|
71
77
|
},
|
|
72
78
|
"devDependencies": {
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* npm postinstall — branches on context:
|
|
3
3
|
*
|
|
4
|
-
* dev checkout (src/ present, not shipped in `files`): symlink node_modules/zidane to the repo root and
|
|
4
|
+
* dev checkout (src/ present, not shipped in `files`): symlink node_modules/zidane to the repo root and
|
|
5
|
+
* node_modules/zidane-ui to ui/ (resolved through its `exports`, `zidane-source` condition), and rebrand the
|
|
5
6
|
* dev Electron.app. Both go through bun, which every dev here has.
|
|
6
7
|
*
|
|
7
8
|
* published install (global or dependency): install the launcher app so
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { execFile } from "node:child_process";
|
|
2
|
-
import { access } from "node:fs/promises";
|
|
3
|
-
import { join, delimiter } from "node:path";
|
|
4
|
-
const MAX_OUTPUT_BYTES = 16 * 1024 * 1024;
|
|
5
|
-
async function exists(p) {
|
|
6
|
-
return access(p).then(
|
|
7
|
-
() => true,
|
|
8
|
-
() => false
|
|
9
|
-
);
|
|
10
|
-
}
|
|
11
|
-
async function resolveOnPath(name) {
|
|
12
|
-
const exts = process.platform === "win32" ? [".cmd", ".exe", ""] : [""];
|
|
13
|
-
for (const dir of (process.env.PATH ?? "").split(delimiter)) {
|
|
14
|
-
if (!dir) continue;
|
|
15
|
-
for (const ext of exts) {
|
|
16
|
-
const candidate = join(dir, name + ext);
|
|
17
|
-
if (await exists(candidate)) return candidate;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
function makeToolContext(cwd, timeoutMs) {
|
|
23
|
-
return {
|
|
24
|
-
cwd,
|
|
25
|
-
async resolveBin(name) {
|
|
26
|
-
const local = join(cwd, "node_modules", ".bin", name);
|
|
27
|
-
if (await exists(local)) return local;
|
|
28
|
-
return resolveOnPath(name);
|
|
29
|
-
},
|
|
30
|
-
async hasFile(...names) {
|
|
31
|
-
for (const n of names) if (await exists(join(cwd, n))) return true;
|
|
32
|
-
return false;
|
|
33
|
-
},
|
|
34
|
-
exec(bin, args, opts) {
|
|
35
|
-
return new Promise((done) => {
|
|
36
|
-
const child = execFile(
|
|
37
|
-
bin,
|
|
38
|
-
[...args],
|
|
39
|
-
{
|
|
40
|
-
cwd,
|
|
41
|
-
timeout: opts?.timeoutMs ?? timeoutMs,
|
|
42
|
-
maxBuffer: MAX_OUTPUT_BYTES,
|
|
43
|
-
env: { ...process.env, FORCE_COLOR: "0", NO_COLOR: "1" }
|
|
44
|
-
},
|
|
45
|
-
(err, stdout, stderr) => {
|
|
46
|
-
const killed = err?.killed === true;
|
|
47
|
-
done({
|
|
48
|
-
stdout: String(stdout ?? ""),
|
|
49
|
-
stderr: String(stderr ?? ""),
|
|
50
|
-
code: child.exitCode,
|
|
51
|
-
timedOut: killed
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
export {
|
|
60
|
-
makeToolContext as m
|
|
61
|
-
};
|