pinokiod 2.15.90 → 2.15.92
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
|
@@ -164,8 +164,10 @@ class Server {
|
|
|
164
164
|
} else {
|
|
165
165
|
browser_url = "/pinokio/browser/" + x.name
|
|
166
166
|
}
|
|
167
|
+
let browser_browse_url = browser_url + "/browse"
|
|
167
168
|
return {
|
|
168
169
|
icon,
|
|
170
|
+
running: x.running ? true : false,
|
|
169
171
|
run: x.run,
|
|
170
172
|
menu: x.menu,
|
|
171
173
|
shortcuts: x.shortcuts,
|
|
@@ -178,6 +180,9 @@ class Server {
|
|
|
178
180
|
description,
|
|
179
181
|
url: p + "/" + x.name,
|
|
180
182
|
browser_url,
|
|
183
|
+
url: browser_url,
|
|
184
|
+
path: uri,
|
|
185
|
+
browse_url: browser_browse_url,
|
|
181
186
|
}
|
|
182
187
|
})
|
|
183
188
|
}
|
|
@@ -305,7 +310,7 @@ class Server {
|
|
|
305
310
|
}
|
|
306
311
|
const env = await this.kernel.env("api/" + name)
|
|
307
312
|
|
|
308
|
-
res.render("
|
|
313
|
+
res.render("app", {
|
|
309
314
|
env,
|
|
310
315
|
mode,
|
|
311
316
|
port: this.port,
|
|
@@ -1225,6 +1230,9 @@ class Server {
|
|
|
1225
1230
|
running = this.getItems(running, meta, p)
|
|
1226
1231
|
notRunning = this.getItems(notRunning, meta, p)
|
|
1227
1232
|
|
|
1233
|
+
console.log(JSON.stringify({ running, notRunning }, null, 2))
|
|
1234
|
+
|
|
1235
|
+
|
|
1228
1236
|
// check running for each
|
|
1229
1237
|
// running_items
|
|
1230
1238
|
items = items.map((x) => {
|
|
@@ -1320,6 +1328,8 @@ class Server {
|
|
|
1320
1328
|
}
|
|
1321
1329
|
|
|
1322
1330
|
if (meta) {
|
|
1331
|
+
items = running.concat(notRunning)
|
|
1332
|
+
console.log({ items })
|
|
1323
1333
|
res.render("index", {
|
|
1324
1334
|
home_url: `http://localhost:${this.port}`,
|
|
1325
1335
|
proxy: home_proxy,
|
|
@@ -537,7 +537,7 @@ body.dark .loader-container {
|
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
</style>
|
|
540
|
-
<link href="/
|
|
540
|
+
<link href="/app.css" rel="stylesheet"/>
|
|
541
541
|
<script src="/hotkeys.min.js"></script>
|
|
542
542
|
<script src="/sweetalert2.js"></script>
|
|
543
543
|
<script src="/nav.js"></script>
|
|
File without changes
|