pinokiod 1.2.62 → 1.2.64
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/kernel/api/index.js +2 -0
- package/kernel/api/jump/index.js +24 -0
- package/package.json +1 -1
- package/server/public/style.css +1 -0
- package/server/views/index.ejs +4 -3
package/kernel/api/index.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module.exports = async (req, ondata, kernel) => {
|
|
2
|
+
/*
|
|
3
|
+
req := {
|
|
4
|
+
method: "jump",
|
|
5
|
+
params: {
|
|
6
|
+
index: 0,
|
|
7
|
+
input: <any value that will be passed int as "input">
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
*/
|
|
11
|
+
if (req.params.hasOwnProperty("index")) {
|
|
12
|
+
req.next = req.params.index
|
|
13
|
+
} else if (req.params.hasOwnProperty("id")) {
|
|
14
|
+
// find the req.next
|
|
15
|
+
let run = req.parent.body.run
|
|
16
|
+
for(let i=0; i<run.length; i++) {
|
|
17
|
+
let step = run[i]
|
|
18
|
+
if (step && step.id === req.params.id) {
|
|
19
|
+
req.next = i
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return req.params.params || req.params.input
|
|
24
|
+
}
|
package/package.json
CHANGED
package/server/public/style.css
CHANGED
package/server/views/index.ejs
CHANGED
|
@@ -119,14 +119,15 @@ header .runner {
|
|
|
119
119
|
<% if (ishome) { %>
|
|
120
120
|
<div class='nav-btns'>
|
|
121
121
|
<a class='btn2' id='explore'><div><i class="fa-solid fa-globe"></i></div><div>Discover</div></a>
|
|
122
|
+
<% if (agent === "electron") { %>
|
|
122
123
|
<a class='btn2' data-filepath="<%=filepath%>"><div><i class="fa-regular fa-folder-open"></i></div><div>Files</div></a>
|
|
124
|
+
<% } %>
|
|
123
125
|
<a id='wifi' data-proxy="<%=proxy.proxy%>" class='btn2'><div><i class="fa-solid fa-wifi"></i></div><div>WiFi</div></a>
|
|
124
|
-
<!--
|
|
125
|
-
<a class='btn2' href="<%=proxy.proxy%>" target="_blank"><div><i class="fa-solid fa-wifi"></i></div><div>WiFi</div></a>
|
|
126
|
-
-->
|
|
127
126
|
<a class='btn2' id='report'><div><i class="fa-solid fa-bug"></i></div><div>Report Bug</div></a>
|
|
128
127
|
<a class='btn2' href='https://discord.gg/TQdNwadtE4' target="_blank"><div><i class="fa-brands fa-discord"></i></div><div>Discord</div></a>
|
|
129
128
|
<a class='btn2' href='https://twitter.com/cocktailpeanut' target="_blank"><div><i class="fa-brands fa-twitter"></i></div><div>Twitter</div></a>
|
|
129
|
+
<!--<a class='btn2' href='https://dev.pinokio.computer' target="_blank"><div><i class="fa-solid fa-shapes"></i></div><div>Develop</div></a>-->
|
|
130
|
+
<a class='btn2' href='https://dev.pinokio.computer' target="_blank"><div><i class="fa-solid fa-laptop-code"></i></div><div>Develop</div></a>
|
|
130
131
|
<a class='btn2' href="/?mode=settings"><div><i class="fa-solid fa-gear"></i></div><div>Settings</div></a>
|
|
131
132
|
</div>
|
|
132
133
|
<button id='new-window' title='open a new window'><i class="fa-solid fa-plus"></i></button>
|