pinokiod 2.15.89 → 2.15.91
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,
|
|
@@ -10,16 +10,6 @@
|
|
|
10
10
|
<link href="/markdown.css" rel="stylesheet"/>
|
|
11
11
|
<link href="/noty.css" rel="stylesheet"/>
|
|
12
12
|
<link href="/style.css" rel="stylesheet"/>
|
|
13
|
-
<link href="/browser.css" rel="stylesheet"/>
|
|
14
|
-
<script src="/hotkeys.min.js"></script>
|
|
15
|
-
<script src="/sweetalert2.js"></script>
|
|
16
|
-
<script src="/nav.js"></script>
|
|
17
|
-
<script src="/opener.js"></script>
|
|
18
|
-
<script src="/report.js"></script>
|
|
19
|
-
<script src="/normalize.js"></script>
|
|
20
|
-
<script src="/Socket.js"></script>
|
|
21
|
-
<script src="/noty.js"></script>
|
|
22
|
-
<script src="/notyq.js"></script>
|
|
23
13
|
<% if (agent === "electron") { %>
|
|
24
14
|
<link href="/electron.css" rel="stylesheet"/>
|
|
25
15
|
<% } %>
|
|
@@ -547,6 +537,16 @@ body.dark .loader-container {
|
|
|
547
537
|
}
|
|
548
538
|
}
|
|
549
539
|
</style>
|
|
540
|
+
<link href="/app.css" rel="stylesheet"/>
|
|
541
|
+
<script src="/hotkeys.min.js"></script>
|
|
542
|
+
<script src="/sweetalert2.js"></script>
|
|
543
|
+
<script src="/nav.js"></script>
|
|
544
|
+
<script src="/opener.js"></script>
|
|
545
|
+
<script src="/report.js"></script>
|
|
546
|
+
<script src="/normalize.js"></script>
|
|
547
|
+
<script src="/Socket.js"></script>
|
|
548
|
+
<script src="/noty.js"></script>
|
|
549
|
+
<script src="/notyq.js"></script>
|
|
550
550
|
</head>
|
|
551
551
|
<body class='<%=theme%>' data-platform="<%=platform%>">
|
|
552
552
|
<aside class='active'>
|
|
File without changes
|