pinokiod 1.2.53 → 1.2.55
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 +5 -4
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -965,6 +965,11 @@ class Server {
|
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
967
|
|
|
968
|
+
// lib types should not be displayed on the home page
|
|
969
|
+
if (config.type === "lib") {
|
|
970
|
+
continue
|
|
971
|
+
}
|
|
972
|
+
|
|
968
973
|
|
|
969
974
|
// check if there is a running process with this folder name
|
|
970
975
|
let runningApps = new Set()
|
|
@@ -1850,7 +1855,6 @@ class Server {
|
|
|
1850
1855
|
// if there is no menu, display all files
|
|
1851
1856
|
let p = this.kernel.path("api", name)
|
|
1852
1857
|
let files = await fs.promises.readdir(p, { withFileTypes: true })
|
|
1853
|
-
console.log("files", files)
|
|
1854
1858
|
config = {
|
|
1855
1859
|
title: name,
|
|
1856
1860
|
menu: files.map((file) => {
|
|
@@ -1862,7 +1866,6 @@ class Server {
|
|
|
1862
1866
|
}
|
|
1863
1867
|
let uri = this.kernel.path("api")
|
|
1864
1868
|
await this.renderMenu(uri, name, config, [])
|
|
1865
|
-
console.log("config", config)
|
|
1866
1869
|
}
|
|
1867
1870
|
|
|
1868
1871
|
|
|
@@ -1973,7 +1976,6 @@ class Server {
|
|
|
1973
1976
|
// if there is no menu, display all files
|
|
1974
1977
|
let p = this.kernel.path("api", name)
|
|
1975
1978
|
let files = await fs.promises.readdir(p, { withFileTypes: true })
|
|
1976
|
-
console.log("files", files)
|
|
1977
1979
|
config = {
|
|
1978
1980
|
title: name,
|
|
1979
1981
|
menu: files.map((file) => {
|
|
@@ -1985,7 +1987,6 @@ class Server {
|
|
|
1985
1987
|
}
|
|
1986
1988
|
let uri = this.kernel.path("api")
|
|
1987
1989
|
await this.renderMenu(uri, name, config, [])
|
|
1988
|
-
console.log("config", config)
|
|
1989
1990
|
}
|
|
1990
1991
|
let platform = os.platform()
|
|
1991
1992
|
res.render("browser", {
|