pinokiod 3.103.0 → 3.104.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/style.css +2 -2
- package/server/views/app.ejs +39 -11
- package/server/views/pro.ejs +1 -1
package/package.json
CHANGED
package/server/public/style.css
CHANGED
|
@@ -278,7 +278,7 @@ body.dark .type-tabs {
|
|
|
278
278
|
margin-right: 5px;
|
|
279
279
|
}
|
|
280
280
|
body.dark .navheader2 {
|
|
281
|
-
background: rgba(255,255,255,0.
|
|
281
|
+
background: rgba(255,255,255,0.07) !important;
|
|
282
282
|
}
|
|
283
283
|
body.dark .navheader2 .btn {
|
|
284
284
|
background: rgba(0,0,0,0.4);
|
|
@@ -1559,7 +1559,7 @@ body.dark .btn {
|
|
|
1559
1559
|
/*
|
|
1560
1560
|
color: white;
|
|
1561
1561
|
*/
|
|
1562
|
-
background: rgba(255,255,255,0.1)
|
|
1562
|
+
background: rgba(255,255,255,0.1);
|
|
1563
1563
|
/*
|
|
1564
1564
|
background: var(--dark-btn-bg);
|
|
1565
1565
|
*/
|
package/server/views/app.ejs
CHANGED
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
<link href="/electron.css" rel="stylesheet"/>
|
|
19
19
|
<% } %>
|
|
20
20
|
<style>
|
|
21
|
-
body.dark #devtab {
|
|
21
|
+
body.dark #devtab.selected {
|
|
22
22
|
border: none;
|
|
23
|
+
background: rgba(255,255,255,0.07);
|
|
23
24
|
}
|
|
24
25
|
#devtab {
|
|
25
26
|
align-items: center;
|
|
@@ -144,7 +145,7 @@ body.dark .appcanvas {
|
|
|
144
145
|
}
|
|
145
146
|
*/
|
|
146
147
|
body.dark .appcanvas_filler {
|
|
147
|
-
background: rgba(255,255,255,0.
|
|
148
|
+
background: rgba(255,255,255,0.07) !important;
|
|
148
149
|
border: none;
|
|
149
150
|
}
|
|
150
151
|
.appcanvas_filler {
|
|
@@ -370,6 +371,9 @@ body.dark .appcanvas > aside .m.menu .nested-menu > .submenu .frame-link:hover {
|
|
|
370
371
|
background: none !important;
|
|
371
372
|
border: none;
|
|
372
373
|
}
|
|
374
|
+
body.dark .appcanvas > aside .header-item.btn:not(.selected) {
|
|
375
|
+
background: none;
|
|
376
|
+
}
|
|
373
377
|
|
|
374
378
|
.appcanvas > aside .header-item .tab {
|
|
375
379
|
display: flex;
|
|
@@ -702,7 +706,7 @@ body .frame-link.selected {
|
|
|
702
706
|
color: white;
|
|
703
707
|
}
|
|
704
708
|
body.dark .frame-link.selected {
|
|
705
|
-
background: rgba(255,255,255,0.
|
|
709
|
+
background: rgba(255,255,255,0.07) !important;
|
|
706
710
|
}
|
|
707
711
|
.frame-link .loader {
|
|
708
712
|
/*
|
|
@@ -1273,11 +1277,8 @@ body.dark .top-menu .btn2.selected {
|
|
|
1273
1277
|
}
|
|
1274
1278
|
|
|
1275
1279
|
body.dark #fs-status {
|
|
1276
|
-
/*
|
|
1277
|
-
border-bottom: 1px solid rgba(255,255,255,0.04);
|
|
1278
|
-
*/
|
|
1279
1280
|
border: none;
|
|
1280
|
-
background: rgba(255,255,255,0.
|
|
1281
|
+
background: rgba(255,255,255,0.07) !important;
|
|
1281
1282
|
}
|
|
1282
1283
|
#fs-status {
|
|
1283
1284
|
padding: 5px;
|
|
@@ -2760,6 +2761,15 @@ body.dark {
|
|
|
2760
2761
|
renderSelection({ force: true })
|
|
2761
2762
|
}, delay)
|
|
2762
2763
|
}
|
|
2764
|
+
const pluginLaunchActive = (() => {
|
|
2765
|
+
try {
|
|
2766
|
+
const params = new URLSearchParams(window.location.search)
|
|
2767
|
+
return params.has('plugin')
|
|
2768
|
+
} catch (_) {
|
|
2769
|
+
return false
|
|
2770
|
+
}
|
|
2771
|
+
})()
|
|
2772
|
+
let ignorePersistedSelection = pluginLaunchActive
|
|
2763
2773
|
let lastForegroundSignature = null
|
|
2764
2774
|
const iframe_onerror = (iframe) => {
|
|
2765
2775
|
let originalSrc = iframe.src
|
|
@@ -4674,8 +4684,13 @@ body.dark {
|
|
|
4674
4684
|
const renderSelection = async ({ event: eventParam = null, target: explicitTarget = null, force = false } = {}) => {
|
|
4675
4685
|
const storage = getWindowStorage()
|
|
4676
4686
|
const selectionKey = selectionStorageKey()
|
|
4677
|
-
const
|
|
4678
|
-
|
|
4687
|
+
const originalHasPersistedSelection = Boolean(selectionKey && storage && storage.getItem(selectionKey))
|
|
4688
|
+
let persistedSelectionRaw = selectionKey && storage ? storage.getItem(selectionKey) : null
|
|
4689
|
+
const skipPersistedSelection = ignorePersistedSelection
|
|
4690
|
+
let hasPersistedSelection = skipPersistedSelection ? false : originalHasPersistedSelection
|
|
4691
|
+
if (skipPersistedSelection) {
|
|
4692
|
+
persistedSelectionRaw = null
|
|
4693
|
+
}
|
|
4679
4694
|
|
|
4680
4695
|
let target = explicitTarget
|
|
4681
4696
|
|
|
@@ -4694,7 +4709,7 @@ body.dark {
|
|
|
4694
4709
|
}
|
|
4695
4710
|
}
|
|
4696
4711
|
|
|
4697
|
-
if (!target) {
|
|
4712
|
+
if (!target && persistedSelectionRaw) {
|
|
4698
4713
|
target = restorePersistedFrameLink()
|
|
4699
4714
|
if (!target && persistedSelectionRaw) {
|
|
4700
4715
|
scheduleSelectionRetry()
|
|
@@ -4702,7 +4717,7 @@ body.dark {
|
|
|
4702
4717
|
}
|
|
4703
4718
|
}
|
|
4704
4719
|
|
|
4705
|
-
if (!target) {
|
|
4720
|
+
if (!target && !skipPersistedSelection) {
|
|
4706
4721
|
const urlKey = selectionUrlStorageKey()
|
|
4707
4722
|
const storedUrl = urlKey && storage ? storage.getItem(urlKey) : null
|
|
4708
4723
|
if (storedUrl) {
|
|
@@ -4710,6 +4725,16 @@ body.dark {
|
|
|
4710
4725
|
}
|
|
4711
4726
|
}
|
|
4712
4727
|
|
|
4728
|
+
if (!target && skipPersistedSelection) {
|
|
4729
|
+
const defaultSelection = document.querySelector("[data-default]")
|
|
4730
|
+
if (defaultSelection) {
|
|
4731
|
+
target = defaultSelection
|
|
4732
|
+
} else {
|
|
4733
|
+
scheduleSelectionRetry()
|
|
4734
|
+
return
|
|
4735
|
+
}
|
|
4736
|
+
}
|
|
4737
|
+
|
|
4713
4738
|
<% if (type === "run" && env.PINOKIO_SCRIPT_DEFAULT && env.PINOKIO_SCRIPT_DEFAULT.toString().toLowerCase() === "true") { %>
|
|
4714
4739
|
if (!target && !hasPersistedSelection) {
|
|
4715
4740
|
const defaultSelection = document.querySelector("[data-default]")
|
|
@@ -4781,6 +4806,9 @@ body.dark {
|
|
|
4781
4806
|
el.classList.remove("selected")
|
|
4782
4807
|
})
|
|
4783
4808
|
target.classList.add("selected")
|
|
4809
|
+
if (skipPersistedSelection && target.hasAttribute('data-default')) {
|
|
4810
|
+
ignorePersistedSelection = false
|
|
4811
|
+
}
|
|
4784
4812
|
persistFrameLinkSelection(target)
|
|
4785
4813
|
|
|
4786
4814
|
// save target.href
|
package/server/views/pro.ejs
CHANGED
|
@@ -335,7 +335,7 @@ async function displayResults(config) {
|
|
|
335
335
|
write(JSON.stringify(packet.data.json2, null, 2).replace(/\n/g, "\r\n"))
|
|
336
336
|
write("\r\n")
|
|
337
337
|
}
|
|
338
|
-
document.querySelector("#end").scrollIntoView({ behavior: 'smooth' });
|
|
338
|
+
// document.querySelector("#end").scrollIntoView({ behavior: 'smooth' });
|
|
339
339
|
} else if (packet.type === 'disconnect') {
|
|
340
340
|
term.write("\r\nDisconnected...\r\n")
|
|
341
341
|
socket.close()
|