pinokiod 3.2.248 → 3.2.249
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/kernel/index.js +7 -2
- package/package.json +1 -1
- package/server/index.js +2 -0
- package/server/views/app.ejs +1 -0
- package/server/views/index.ejs +23 -20
package/kernel/index.js
CHANGED
|
@@ -522,8 +522,13 @@ class Kernel {
|
|
|
522
522
|
}
|
|
523
523
|
console.log("clear Interval")
|
|
524
524
|
clearInterval(interval)
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
await new Promise((resolve, reject) => {
|
|
526
|
+
setTimeout(() => {
|
|
527
|
+
this.launch_complete = true
|
|
528
|
+
console.log("SETTING launch complete", this.launch_complete)
|
|
529
|
+
resolve()
|
|
530
|
+
}, 1000)
|
|
531
|
+
})
|
|
527
532
|
}
|
|
528
533
|
}, 1000)
|
|
529
534
|
}
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -3075,7 +3075,9 @@ class Server {
|
|
|
3075
3075
|
|
|
3076
3076
|
let folder = this.kernel.path("exported_logs")
|
|
3077
3077
|
let zipPath = this.kernel.path("logs.zip")
|
|
3078
|
+
console.log(">1")
|
|
3078
3079
|
await compressing.zip.compressDir(folder, zipPath)
|
|
3080
|
+
console.log(">2")
|
|
3079
3081
|
res.json({ success: true })
|
|
3080
3082
|
}))
|
|
3081
3083
|
this.app.get("/pinokio/info", ex(async (req, res) => {
|
package/server/views/app.ejs
CHANGED
|
@@ -1472,6 +1472,7 @@ body.dark .loader-container {
|
|
|
1472
1472
|
fetch("/pinokio/log", {
|
|
1473
1473
|
method: "post",
|
|
1474
1474
|
}).then((res) => {
|
|
1475
|
+
console.log("RES", res)
|
|
1475
1476
|
let btn = document.querySelector("#genlog")
|
|
1476
1477
|
let btn2 = document.querySelector("#downloadlogs")
|
|
1477
1478
|
btn2.classList.remove("hidden")
|
package/server/views/index.ejs
CHANGED
|
@@ -735,6 +735,29 @@ if (document.querySelector("form input[type=search]")) {
|
|
|
735
735
|
})
|
|
736
736
|
}
|
|
737
737
|
<% if (ishome) { %>
|
|
738
|
+
// autolaunch display update
|
|
739
|
+
fetch("/pinokio/info").then((res) => {
|
|
740
|
+
return res.json()
|
|
741
|
+
}).then((res) => {
|
|
742
|
+
console.log("res", res)
|
|
743
|
+
if (res.launch_complete) {
|
|
744
|
+
// location.href = location.href
|
|
745
|
+
} else {
|
|
746
|
+
let interval = setInterval(async () => {
|
|
747
|
+
let res = await fetch("/pinokio/info").then((res) => {
|
|
748
|
+
return res.json()
|
|
749
|
+
})
|
|
750
|
+
console.log("res", res)
|
|
751
|
+
if (res.launch_complete) {
|
|
752
|
+
console.log("launched")
|
|
753
|
+
clearInterval(interval)
|
|
754
|
+
location.href = location.href
|
|
755
|
+
} else {
|
|
756
|
+
console.log("not yet launched")
|
|
757
|
+
}
|
|
758
|
+
}, 1000)
|
|
759
|
+
}
|
|
760
|
+
})
|
|
738
761
|
document.addEventListener("keydown", (e) => {
|
|
739
762
|
e = e || window.event;
|
|
740
763
|
if (e.key === "ArrowUp") {
|
|
@@ -1077,26 +1100,6 @@ if (document.querySelector("#genlog")) {
|
|
|
1077
1100
|
})
|
|
1078
1101
|
})
|
|
1079
1102
|
}
|
|
1080
|
-
fetch("/pinokio/info").then((res) => {
|
|
1081
|
-
return res.json()
|
|
1082
|
-
}).then((res) => {
|
|
1083
|
-
if (!res.launch_complete) {
|
|
1084
|
-
location.href = location.href
|
|
1085
|
-
} else {
|
|
1086
|
-
let interval = setInterval(async () => {
|
|
1087
|
-
let res = await fetch("/pinokio/info").then((res) => {
|
|
1088
|
-
return res.json()
|
|
1089
|
-
})
|
|
1090
|
-
if (res.launch_complete) {
|
|
1091
|
-
console.log("launched")
|
|
1092
|
-
clearInterval(interval)
|
|
1093
|
-
location.href = location.href
|
|
1094
|
-
} else {
|
|
1095
|
-
console.log("not yet launched")
|
|
1096
|
-
}
|
|
1097
|
-
}, 1000)
|
|
1098
|
-
}
|
|
1099
|
-
})
|
|
1100
1103
|
|
|
1101
1104
|
</script>
|
|
1102
1105
|
</body>
|