pinokiod 7.1.76 → 7.1.78
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
CHANGED
package/server/index.js
CHANGED
|
@@ -2506,6 +2506,22 @@ class Server {
|
|
|
2506
2506
|
let { requirements, install_required, requirements_pending, error } = await this.kernel.bin.check({
|
|
2507
2507
|
bin: this.kernel.bin.preset("dev"),
|
|
2508
2508
|
})
|
|
2509
|
+
if (requirements_pending || install_required) {
|
|
2510
|
+
res.render("setup", {
|
|
2511
|
+
mode: "dev",
|
|
2512
|
+
wait: null,
|
|
2513
|
+
error,
|
|
2514
|
+
current: req.originalUrl,
|
|
2515
|
+
install_required,
|
|
2516
|
+
requirements,
|
|
2517
|
+
requirements_pending,
|
|
2518
|
+
portal: this.portal,
|
|
2519
|
+
logo: this.logo,
|
|
2520
|
+
theme: this.theme,
|
|
2521
|
+
agent: req.agent,
|
|
2522
|
+
})
|
|
2523
|
+
return
|
|
2524
|
+
}
|
|
2509
2525
|
let sanitizedPath = null
|
|
2510
2526
|
if (typeof req.query.path === 'string') {
|
|
2511
2527
|
let trimmed = req.query.path.trim()
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
let tabLinkActiveLink = null
|
|
4
4
|
let tabLinkPendingLink = null
|
|
5
5
|
let tabLinkHideTimer = null
|
|
6
|
+
let tabLinkCloseOnMouseLeave = false
|
|
6
7
|
let tabLinkLocalInfoPromise = null
|
|
7
8
|
let tabLinkLocalInfoExpiry = 0
|
|
8
9
|
let tabLinkRouterInfoPromise = null
|
|
@@ -137,7 +138,9 @@
|
|
|
137
138
|
}
|
|
138
139
|
})
|
|
139
140
|
tabLinkPopoverEl.addEventListener("mouseleave", () => {
|
|
140
|
-
|
|
141
|
+
if (tabLinkCloseOnMouseLeave) {
|
|
142
|
+
hideTabLinkPopover({ immediate: true })
|
|
143
|
+
}
|
|
141
144
|
})
|
|
142
145
|
tabLinkPopoverEl.addEventListener("click", (event) => {
|
|
143
146
|
const item = event.target.closest(".tab-link-popover-item")
|
|
@@ -1421,6 +1424,7 @@
|
|
|
1421
1424
|
tabLinkActiveLink = null
|
|
1422
1425
|
tabLinkPendingLink = null
|
|
1423
1426
|
tabLinkHideTimer = null
|
|
1427
|
+
tabLinkCloseOnMouseLeave = false
|
|
1424
1428
|
}
|
|
1425
1429
|
|
|
1426
1430
|
if (tabLinkHideTimer) {
|
|
@@ -1449,6 +1453,7 @@
|
|
|
1449
1453
|
const requireAlternate = options && options.requireAlternate === false ? false : true
|
|
1450
1454
|
const restrictToBase = options && options.restrictToBase === true
|
|
1451
1455
|
const forceCanonicalQr = options && options.forceCanonicalQr === true
|
|
1456
|
+
tabLinkCloseOnMouseLeave = options && options.closeOnMouseLeave === true
|
|
1452
1457
|
let sameOrigin = false
|
|
1453
1458
|
let canonicalBase = canonicalizeUrl(effectiveHref)
|
|
1454
1459
|
if (canonicalBase && isHttpUrl(canonicalBase)) {
|
|
@@ -1869,7 +1874,10 @@
|
|
|
1869
1874
|
hideTabLinkPopover({ immediate: true })
|
|
1870
1875
|
return
|
|
1871
1876
|
}
|
|
1872
|
-
renderTabLinkPopover(link, {
|
|
1877
|
+
renderTabLinkPopover(link, {
|
|
1878
|
+
requireAlternate: false,
|
|
1879
|
+
closeOnMouseLeave: false
|
|
1880
|
+
})
|
|
1873
1881
|
}
|
|
1874
1882
|
|
|
1875
1883
|
const handleTriggerClick = (event) => {
|
package/server/views/app.ejs
CHANGED
|
@@ -8319,6 +8319,7 @@ const rerenderMenuSection = (container, html) => {
|
|
|
8319
8319
|
const closeFloatingMenus = () => {
|
|
8320
8320
|
closeStatusDropdowns()
|
|
8321
8321
|
closeAllNestedMenus()
|
|
8322
|
+
hideTabLinkPopover({ immediate: true })
|
|
8322
8323
|
}
|
|
8323
8324
|
|
|
8324
8325
|
const openNestedMenu = (menu, toggle) => {
|