pinokiod 3.272.0 → 3.280.0
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/package.json +1 -1
- package/server/public/common.js +25 -1
- package/server/public/style.css +2 -2
package/package.json
CHANGED
package/server/public/common.js
CHANGED
|
@@ -2858,10 +2858,34 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
|
2858
2858
|
}
|
|
2859
2859
|
trigger.dataset.createLauncherInit = 'true';
|
|
2860
2860
|
trigger.addEventListener('click', () => {
|
|
2861
|
-
api
|
|
2861
|
+
handleCreateLauncherClick(api);
|
|
2862
2862
|
});
|
|
2863
2863
|
}
|
|
2864
2864
|
|
|
2865
|
+
async function handleCreateLauncherClick(api) {
|
|
2866
|
+
if (!api || typeof api.showModal !== 'function') {
|
|
2867
|
+
return;
|
|
2868
|
+
}
|
|
2869
|
+
try {
|
|
2870
|
+
const response = await fetch('/bundle/dev', {
|
|
2871
|
+
headers: {
|
|
2872
|
+
'Accept': 'application/json',
|
|
2873
|
+
},
|
|
2874
|
+
});
|
|
2875
|
+
if (response.ok) {
|
|
2876
|
+
const data = await response.json();
|
|
2877
|
+
if (data && data.available === false) {
|
|
2878
|
+
const callback = encodeURIComponent(window.location.pathname + window.location.search);
|
|
2879
|
+
window.location.href = `/setup/dev?callback=${callback}`;
|
|
2880
|
+
return;
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
} catch (error) {
|
|
2884
|
+
console.warn('Failed to verify tooling before opening create modal', error);
|
|
2885
|
+
}
|
|
2886
|
+
api.showModal();
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2865
2889
|
function openPendingCreateLauncherModal(api) {
|
|
2866
2890
|
if (!api || !createLauncherState.pendingDefaults) {
|
|
2867
2891
|
return;
|
package/server/public/style.css
CHANGED
|
@@ -1349,9 +1349,9 @@ body.dark .terminal-config-menu .terminal-config-help {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
body.dark .terminal-config-menu .terminal-config-select,
|
|
1351
1351
|
body.dark .terminal-config-menu .terminal-config-input {
|
|
1352
|
-
background:
|
|
1352
|
+
background: white;
|
|
1353
1353
|
border-color: rgba(255, 255, 255, 0.16);
|
|
1354
|
-
color:
|
|
1354
|
+
color: black;
|
|
1355
1355
|
}
|
|
1356
1356
|
body.dark .terminal-config-menu .terminal-config-color-input {
|
|
1357
1357
|
background: rgba(255, 255, 255, 0.08);
|