pinokiod 3.17.4 → 3.17.5
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 +6 -3
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -1574,7 +1574,7 @@ class Server {
|
|
|
1574
1574
|
if (config.hasOwnProperty("icon")) {
|
|
1575
1575
|
config.html = `<i class="${config.icon}"></i> ${config.text}`
|
|
1576
1576
|
} else if (config.hasOwnProperty("image")) {
|
|
1577
|
-
let imagePath = `${base.
|
|
1577
|
+
let imagePath = `${base.web_path}/${config.image}`
|
|
1578
1578
|
config.html = `<img class='menu-item-image' src='${imagePath}' /> ${config.text}`
|
|
1579
1579
|
} else {
|
|
1580
1580
|
config.html = `${config.text}`
|
|
@@ -1591,7 +1591,8 @@ class Server {
|
|
|
1591
1591
|
*/
|
|
1592
1592
|
if (keypath) {
|
|
1593
1593
|
config.href = base.href + "/" + keypath.join("/") + "?path=" + base.cwd
|
|
1594
|
-
config.script_id = this.kernel.path(keypath) + "?cwd=" + base.cwd
|
|
1594
|
+
//config.script_id = this.kernel.path(keypath) + "?cwd=" + base.cwd
|
|
1595
|
+
config.script_id = path.resolve(base.path, config.href) + "?cwd=" + base.cwd
|
|
1595
1596
|
}
|
|
1596
1597
|
return config
|
|
1597
1598
|
}
|
|
@@ -3813,10 +3814,12 @@ class Server {
|
|
|
3813
3814
|
}
|
|
3814
3815
|
|
|
3815
3816
|
let config = structuredClone(this.kernel.proto.config)
|
|
3817
|
+
console.log(">>>>>>>> config", config)
|
|
3816
3818
|
config = this.renderMenu2(config, {
|
|
3817
3819
|
cwd: req.query.path,
|
|
3818
3820
|
href: "/prototype/show",
|
|
3819
|
-
path: "
|
|
3821
|
+
path: this.kernel.path("prototype/system"),
|
|
3822
|
+
web_path: "/asset/prototype/system"
|
|
3820
3823
|
})
|
|
3821
3824
|
|
|
3822
3825
|
// {
|