pinokiod 7.1.75 → 7.1.77
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/index.js +16 -0
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()
|