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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "0.1.52",
3
+ "version": "0.1.54",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
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,
@@ -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: 5px 10px;
672
+ padding: 2px 10px;
668
673
  }
669
674
  .memory-item {
670
675
  }
@@ -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
@@ -750,7 +750,7 @@ const reloadMemory = async () => {
750
750
  <table>
751
751
  <% memory.forEach((m) => { %>
752
752
  <tr>
753
- <td><%=m.key%></td>
753
+ <td>local.<%=m.key%></td>
754
754
  <td><%=m.val%></td>
755
755
  <% if (m.localhost) { %>
756
756
  <% if (m.tunnel) { %>
@@ -735,7 +735,7 @@ const reloadMemory = async () => {
735
735
  <table>
736
736
  <% memory.forEach((m) => { %>
737
737
  <tr>
738
- <td><%=m.key%></td>
738
+ <td>local.<%=m.key%></td>
739
739
  <td><%=m.val%></td>
740
740
  <% if (m.localhost) { %>
741
741
  <% if (m.tunnel) { %>
@@ -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'>