pinokiod 3.167.0 → 3.169.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/kernel/shell.js +2 -10
- package/package.json +1 -1
- package/server/views/app.ejs +6 -4
package/kernel/shell.js
CHANGED
|
@@ -1139,11 +1139,7 @@ class Shell {
|
|
|
1139
1139
|
// console.log("KILL PTY", this.id)
|
|
1140
1140
|
if (this.ptyProcess) {
|
|
1141
1141
|
if (cb) {
|
|
1142
|
-
|
|
1143
|
-
kill(this.ptyProcess.pid, "SIGKILL", true)
|
|
1144
|
-
} catch (e) {
|
|
1145
|
-
console.log("Kill Error", e)
|
|
1146
|
-
}
|
|
1142
|
+
kill(this.ptyProcess.pid, "SIGKILL", true)
|
|
1147
1143
|
this.ptyProcess.kill()
|
|
1148
1144
|
this.ptyProcess = undefined
|
|
1149
1145
|
// automatically remove the shell from this.kernel.shells
|
|
@@ -1154,11 +1150,7 @@ class Shell {
|
|
|
1154
1150
|
}
|
|
1155
1151
|
cb()
|
|
1156
1152
|
} else {
|
|
1157
|
-
|
|
1158
|
-
kill(this.ptyProcess.pid, "SIGKILL", true)
|
|
1159
|
-
} catch (e) {
|
|
1160
|
-
console.log("Kill Error", e)
|
|
1161
|
-
}
|
|
1153
|
+
kill(this.ptyProcess.pid, "SIGKILL", true)
|
|
1162
1154
|
this.ptyProcess.kill()
|
|
1163
1155
|
this.ptyProcess = undefined
|
|
1164
1156
|
// automatically remove the shell from this.kernel.shells
|
package/package.json
CHANGED
package/server/views/app.ejs
CHANGED
|
@@ -6290,10 +6290,7 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
6290
6290
|
}
|
|
6291
6291
|
let default_selection = document.querySelector(".dynamic .submenu [data-default]")
|
|
6292
6292
|
if (default_selection) {
|
|
6293
|
-
|
|
6294
|
-
if (typeof targetAttr === 'string' && targetAttr.startsWith('@http')) {
|
|
6295
|
-
ignorePersistedSelection = true
|
|
6296
|
-
}
|
|
6293
|
+
console.log("CLICK default")
|
|
6297
6294
|
default_selection.click()
|
|
6298
6295
|
}
|
|
6299
6296
|
rendered = true
|
|
@@ -6452,6 +6449,11 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
6452
6449
|
refresh_du()
|
|
6453
6450
|
refresh_du("logs")
|
|
6454
6451
|
} else {
|
|
6452
|
+
<% if (type === 'run') { %>
|
|
6453
|
+
if (event.data.type === 'start') {
|
|
6454
|
+
ignorePersistedSelection = true
|
|
6455
|
+
}
|
|
6456
|
+
<% } %>
|
|
6455
6457
|
refresh()
|
|
6456
6458
|
}
|
|
6457
6459
|
}
|