pinokiod 3.241.0 → 3.250.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/index.js +1 -1
- package/server/views/settings.ejs +31 -0
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -167,7 +167,7 @@ class Server {
|
|
|
167
167
|
console.error('Failed to reset shells', error)
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
this.killTrackedProcesses()
|
|
170
|
+
// this.killTrackedProcesses()
|
|
171
171
|
if (this.kernel && this.kernel.processes && this.kernel.processes.caddy_pid) {
|
|
172
172
|
this.killProcessTree(this.kernel.processes.caddy_pid, 'kill caddy')
|
|
173
173
|
}
|
|
@@ -586,6 +586,36 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
586
586
|
document.addEventListener("DOMContentLoaded", async () => {
|
|
587
587
|
//Reporter()
|
|
588
588
|
const n = new N()
|
|
589
|
+
const updateThemeClassAcrossShells = (nextTheme) => {
|
|
590
|
+
if (!nextTheme) {
|
|
591
|
+
return
|
|
592
|
+
}
|
|
593
|
+
const applyTheme = (doc) => {
|
|
594
|
+
if (!doc || !doc.body) {
|
|
595
|
+
return
|
|
596
|
+
}
|
|
597
|
+
doc.body.classList.remove('dark', 'light')
|
|
598
|
+
doc.body.classList.add(nextTheme)
|
|
599
|
+
}
|
|
600
|
+
let ctx = window
|
|
601
|
+
const visited = new Set()
|
|
602
|
+
while (ctx && !visited.has(ctx)) {
|
|
603
|
+
visited.add(ctx)
|
|
604
|
+
try {
|
|
605
|
+
applyTheme(ctx.document)
|
|
606
|
+
} catch (err) {
|
|
607
|
+
break
|
|
608
|
+
}
|
|
609
|
+
try {
|
|
610
|
+
if (!ctx.parent || ctx.parent === ctx) {
|
|
611
|
+
break
|
|
612
|
+
}
|
|
613
|
+
ctx = ctx.parent
|
|
614
|
+
} catch (err) {
|
|
615
|
+
break
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
589
619
|
<% if (locals.bin) { %>
|
|
590
620
|
document.querySelector("#del-bin").addEventListener("click", async (e) => {
|
|
591
621
|
console.log("del-bin")
|
|
@@ -770,6 +800,7 @@ console.log("body", body)
|
|
|
770
800
|
return res.json()
|
|
771
801
|
})
|
|
772
802
|
if (r.success) {
|
|
803
|
+
updateThemeClassAcrossShells(body.theme)
|
|
773
804
|
if (r.message) {
|
|
774
805
|
Swal.fire({
|
|
775
806
|
title: r.message.title,
|