pinokiod 0.1.52 → 0.1.54
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
|
@@ -40,6 +40,7 @@ class Server {
|
|
|
40
40
|
pinokiod: packagejson.version,
|
|
41
41
|
pinokio: config.version
|
|
42
42
|
}
|
|
43
|
+
this.kernel.version = this.version
|
|
43
44
|
this.upload = multer();
|
|
44
45
|
|
|
45
46
|
// sometimes the C:\Windows\System32 is not in PATH, need to add
|
|
@@ -260,6 +261,7 @@ class Server {
|
|
|
260
261
|
let stat = await fs.promises.stat(filepath)
|
|
261
262
|
if (pathComponents.length === 0 && req.query.mode === "explore") {
|
|
262
263
|
res.render("explore", {
|
|
264
|
+
version: this.version,
|
|
263
265
|
logo: this.logo,
|
|
264
266
|
theme: this.theme,
|
|
265
267
|
agent: this.agent,
|
package/server/public/style.css
CHANGED
|
@@ -653,6 +653,7 @@ header .runner .btn {
|
|
|
653
653
|
}
|
|
654
654
|
body.dark .memory {
|
|
655
655
|
background: rgba(0,0,0,0.1);
|
|
656
|
+
border-left: 5px solid white;
|
|
656
657
|
}
|
|
657
658
|
.memory table:empty {
|
|
658
659
|
margin-top: 0;
|
|
@@ -662,9 +663,13 @@ body.dark .memory {
|
|
|
662
663
|
}
|
|
663
664
|
.memory {
|
|
664
665
|
background: rgba(0,0,200,0.04);
|
|
666
|
+
border-left: 5px solid black;
|
|
667
|
+
}
|
|
668
|
+
.memory td:first-child {
|
|
669
|
+
font-weight: bold;
|
|
665
670
|
}
|
|
666
671
|
.memory td {
|
|
667
|
-
padding:
|
|
672
|
+
padding: 2px 10px;
|
|
668
673
|
}
|
|
669
674
|
.memory-item {
|
|
670
675
|
}
|
package/server/views/browser.ejs
CHANGED
|
@@ -265,11 +265,9 @@ body.dark .grid-btns .btn2 {
|
|
|
265
265
|
}
|
|
266
266
|
body .footer {
|
|
267
267
|
}
|
|
268
|
-
/*
|
|
269
268
|
body.dark nav {
|
|
270
269
|
border-bottom: 1px solid rgba(255,255,255,0.04);
|
|
271
270
|
}
|
|
272
|
-
*/
|
|
273
271
|
nav {
|
|
274
272
|
background: white;
|
|
275
273
|
padding: 5px;
|
|
@@ -473,6 +471,13 @@ const renderSelection = (e, force) => {
|
|
|
473
471
|
|
|
474
472
|
// if the iframe already exists, do not
|
|
475
473
|
if (loaded[target.target]){
|
|
474
|
+
|
|
475
|
+
let mode = target.getAttribute("data-mode")
|
|
476
|
+
if (mode === "refresh") {
|
|
477
|
+
targetFrame.src = target.href
|
|
478
|
+
return
|
|
479
|
+
}
|
|
480
|
+
|
|
476
481
|
if (e) {
|
|
477
482
|
// triggered with a click
|
|
478
483
|
// do not reload iframe if the href and the src is the same
|
package/server/views/editor.ejs
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</div>
|
|
11
11
|
<% } else { %>
|
|
12
12
|
<% if (item.btn) { %>
|
|
13
|
-
<a data-index="<%=index%>" target="<%=item.src%>" href="<%=item.href%>" class='btn header-item frame-link'>
|
|
13
|
+
<a data-index="<%=index%>" target="<%=item.src%>" data-mode="<%=item.mode%>" href="<%=item.href%>" class='btn header-item frame-link'>
|
|
14
14
|
<div class='tab'><%-item.btn%></div>
|
|
15
15
|
<% if (item.running) { %>
|
|
16
16
|
<div class='loader'>
|