pinokiod 3.162.0 → 3.163.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/views/app.ejs +24 -5
package/package.json
CHANGED
package/server/views/app.ejs
CHANGED
|
@@ -5157,10 +5157,17 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
5157
5157
|
}
|
|
5158
5158
|
}
|
|
5159
5159
|
|
|
5160
|
-
console.log(
|
|
5160
|
+
console.log('[renderSelection] init', {
|
|
5161
|
+
triggeredByUser,
|
|
5162
|
+
resolvedByGlobalSelector,
|
|
5163
|
+
skipPersistedSelection,
|
|
5164
|
+
hasPersistedSelection,
|
|
5165
|
+
explicitTarget: Boolean(explicitTarget),
|
|
5166
|
+
targetInitial: target ? target.outerHTML : null
|
|
5167
|
+
})
|
|
5161
5168
|
if (!target && !skipPersistedSelection) {
|
|
5162
5169
|
preselected = document.querySelector('#devtab.frame-link.selected') || document.querySelector('.frame-link.selected')
|
|
5163
|
-
console.log(
|
|
5170
|
+
console.log('[renderSelection] preselected candidate', preselected ? preselected.outerHTML : null)
|
|
5164
5171
|
}
|
|
5165
5172
|
|
|
5166
5173
|
if (!target && persistedSelectionPayload) {
|
|
@@ -5236,7 +5243,7 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
5236
5243
|
target = preselected
|
|
5237
5244
|
}
|
|
5238
5245
|
|
|
5239
|
-
console.log(
|
|
5246
|
+
console.log('[renderSelection] target after resolution', target ? target.outerHTML : null)
|
|
5240
5247
|
|
|
5241
5248
|
if (!target) {
|
|
5242
5249
|
target = document.querySelector(".frame-link")
|
|
@@ -6214,7 +6221,16 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
6214
6221
|
const navContainers = [document.querySelector("aside"), document.querySelector("#fs-status")]
|
|
6215
6222
|
navContainers.forEach((container) => {
|
|
6216
6223
|
if (container) {
|
|
6217
|
-
container.addEventListener("click",
|
|
6224
|
+
container.addEventListener("click", (event) => {
|
|
6225
|
+
const frameLink = event.target?.closest && event.target.closest('.frame-link')
|
|
6226
|
+
if (frameLink) {
|
|
6227
|
+
console.log('[handleMenuClick] triggered', {
|
|
6228
|
+
origin: event.target && event.target.className,
|
|
6229
|
+
frameLink: frameLink.outerHTML
|
|
6230
|
+
})
|
|
6231
|
+
}
|
|
6232
|
+
handleMenuClick(event)
|
|
6233
|
+
})
|
|
6218
6234
|
}
|
|
6219
6235
|
})
|
|
6220
6236
|
setupTabLinkHover()
|
|
@@ -6293,6 +6309,7 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
6293
6309
|
status = res.status
|
|
6294
6310
|
return res.text()
|
|
6295
6311
|
})
|
|
6312
|
+
console.log('[try_dynamic] fetched', { status, length: dynamic ? dynamic.length : 0 })
|
|
6296
6313
|
if (status == 500) {
|
|
6297
6314
|
ModalInput({
|
|
6298
6315
|
description: dynamic,
|
|
@@ -6312,8 +6329,10 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
6312
6329
|
}
|
|
6313
6330
|
let default_selection = document.querySelector(".dynamic .submenu [data-default]")
|
|
6314
6331
|
if (default_selection) {
|
|
6315
|
-
console.log(
|
|
6332
|
+
console.log('[try_dynamic] clicking default', default_selection.outerHTML)
|
|
6316
6333
|
default_selection.click()
|
|
6334
|
+
} else {
|
|
6335
|
+
console.log('[try_dynamic] no default selection found after update')
|
|
6317
6336
|
}
|
|
6318
6337
|
rendered = true
|
|
6319
6338
|
} else {
|