pinokiod 3.4.23 → 3.4.24
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/bin/index.js +1 -1
- package/kernel/shell.js +4 -3
- package/package.json +1 -1
- package/server/views/install.ejs +13 -2
package/kernel/bin/index.js
CHANGED
|
@@ -564,7 +564,7 @@ class Bin {
|
|
|
564
564
|
if (m.name === name) {
|
|
565
565
|
//await m.mod.install(this, ondata)
|
|
566
566
|
const message = `${m.mod.description ? '<br>' + m.mod.description : ''}`
|
|
567
|
-
ondata({ html: `<b><i class="fas fa-circle-notch fa-spin"></i> ${progress} Installing ${name}</b>${message}` }, "
|
|
567
|
+
ondata({ html: `<b><i class="fas fa-circle-notch fa-spin"></i> ${progress} Installing ${name}</b>${message}` }, "notify2")
|
|
568
568
|
console.log("## Before m.mod.install", requirement)
|
|
569
569
|
await m.mod.install(requirement, ondata, this.kernel)
|
|
570
570
|
|
package/kernel/shell.js
CHANGED
|
@@ -103,9 +103,6 @@ class Shell {
|
|
|
103
103
|
if (this.env.CMAKE_GENERATOR) {
|
|
104
104
|
delete this.env.CMAKE_GENERATOR
|
|
105
105
|
}
|
|
106
|
-
if (this.env.SSLKEYLOGFILE) {
|
|
107
|
-
delete this.env.SSLKEYLOGFILE
|
|
108
|
-
}
|
|
109
106
|
|
|
110
107
|
// if (this.env.CUDA_HOME) {
|
|
111
108
|
// delete this.env.CUDA_HOME
|
|
@@ -115,6 +112,10 @@ class Shell {
|
|
|
115
112
|
console.log("Unset env key: " + key)
|
|
116
113
|
delete this.env[key]
|
|
117
114
|
}
|
|
115
|
+
if (/.*(SSH|SSL).*/.test(key)) {
|
|
116
|
+
console.log("Unset env key: " + key)
|
|
117
|
+
delete this.env[key]
|
|
118
|
+
}
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
this.env.CMAKE_OBJECT_PATH_MAX = 1024
|
package/package.json
CHANGED
package/server/views/install.ejs
CHANGED
|
@@ -230,7 +230,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
230
230
|
type: "moddal",
|
|
231
231
|
description: packet.data
|
|
232
232
|
})
|
|
233
|
-
} else if (packet.type === "
|
|
233
|
+
} else if (packet.type === "notify2") {
|
|
234
234
|
console.log("HTML", packet.data)
|
|
235
235
|
if (packet.data) {
|
|
236
236
|
let payload = {}
|
|
@@ -240,9 +240,20 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
240
240
|
if (packet.data.type) {
|
|
241
241
|
payload.type = packet.data.type
|
|
242
242
|
}
|
|
243
|
-
// n.Noty(payload)
|
|
244
243
|
document.querySelector("#status-screen").innerHTML = packet.data.html
|
|
245
244
|
}
|
|
245
|
+
} else if (packet.type === "notify") {
|
|
246
|
+
console.log("HTML", packet.data)
|
|
247
|
+
if (packet.data) {
|
|
248
|
+
let payload = {}
|
|
249
|
+
if (packet.data.html) {
|
|
250
|
+
payload.text = packet.data.html
|
|
251
|
+
}
|
|
252
|
+
if (packet.data.type) {
|
|
253
|
+
payload.type = packet.data.type
|
|
254
|
+
}
|
|
255
|
+
n.Noty(payload)
|
|
256
|
+
}
|
|
246
257
|
}
|
|
247
258
|
})
|
|
248
259
|
})
|