pinokiod 2.15.28 → 2.15.30
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
|
@@ -305,14 +305,8 @@ class Server {
|
|
|
305
305
|
}
|
|
306
306
|
const env = await this.kernel.env("api/" + name)
|
|
307
307
|
|
|
308
|
-
//let d2 = await Util.du(this.kernel.homedir)
|
|
309
|
-
|
|
310
|
-
//console.log("d2",d2)
|
|
311
|
-
|
|
312
308
|
//res.render("browser", {
|
|
313
309
|
res.render("browser-experimental", {
|
|
314
|
-
// d1,
|
|
315
|
-
// d2,
|
|
316
310
|
env,
|
|
317
311
|
mode,
|
|
318
312
|
port: this.port,
|
|
@@ -915,6 +909,9 @@ class Server {
|
|
|
915
909
|
if (env[item.env]) {
|
|
916
910
|
item.val = env[item.env]
|
|
917
911
|
} else {
|
|
912
|
+
if (item.default) {
|
|
913
|
+
item.val = item.default
|
|
914
|
+
}
|
|
918
915
|
requires_instantiation = true
|
|
919
916
|
}
|
|
920
917
|
pre_items.push(item)
|
|
@@ -2594,10 +2591,7 @@ class Server {
|
|
|
2594
2591
|
}))
|
|
2595
2592
|
this.app.get("/du/:name", ex(async (req, res) => {
|
|
2596
2593
|
let p = this.kernel.path("api", req.params.name)
|
|
2597
|
-
console.time("a")
|
|
2598
2594
|
let d1 = await Util.du(p)
|
|
2599
|
-
console.log("d1", d1)
|
|
2600
|
-
console.timeEnd("a")
|
|
2601
2595
|
res.json({ du: d1 })
|
|
2602
2596
|
}))
|
|
2603
2597
|
this.app.get("/edit/*", ex(async (req, res) => {
|