pinokiod 3.168.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 +7 -9
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
|
@@ -6288,17 +6288,10 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
6288
6288
|
rerenderMenuSection(submenu, dynamic)
|
|
6289
6289
|
restoreAllTabStates()
|
|
6290
6290
|
}
|
|
6291
|
-
const hasExistingSelection = Boolean(document.querySelector('.frame-link.selected'))
|
|
6292
6291
|
let default_selection = document.querySelector(".dynamic .submenu [data-default]")
|
|
6293
6292
|
if (default_selection) {
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
if (isPeerDefault) {
|
|
6297
|
-
ignorePersistedSelection = true
|
|
6298
|
-
}
|
|
6299
|
-
if (!hasExistingSelection || isPeerDefault) {
|
|
6300
|
-
default_selection.click()
|
|
6301
|
-
}
|
|
6293
|
+
console.log("CLICK default")
|
|
6294
|
+
default_selection.click()
|
|
6302
6295
|
}
|
|
6303
6296
|
rendered = true
|
|
6304
6297
|
} else {
|
|
@@ -6456,6 +6449,11 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
6456
6449
|
refresh_du()
|
|
6457
6450
|
refresh_du("logs")
|
|
6458
6451
|
} else {
|
|
6452
|
+
<% if (type === 'run') { %>
|
|
6453
|
+
if (event.data.type === 'start') {
|
|
6454
|
+
ignorePersistedSelection = true
|
|
6455
|
+
}
|
|
6456
|
+
<% } %>
|
|
6459
6457
|
refresh()
|
|
6460
6458
|
}
|
|
6461
6459
|
}
|