pinokiod 1.2.63 → 1.2.65
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/kernel/bin/conda.js +1 -1
- package/package.json +1 -1
- package/server/public/style.css +1 -0
- package/server/views/index.ejs +2 -1
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/kernel/bin/conda.js
CHANGED
|
@@ -76,7 +76,7 @@ class Conda {
|
|
|
76
76
|
"conda config --add create_default_packages python=3.10",
|
|
77
77
|
"conda update -y conda",
|
|
78
78
|
"conda update -y --all",
|
|
79
|
-
"conda install -y -c conda-forge pip brotli brotlipy",
|
|
79
|
+
"conda install -y -c conda-forge pip brotli brotlipy conda-mamba-solver libmamba libarchive",
|
|
80
80
|
// "conda update --all",
|
|
81
81
|
// "conda update -y --all",
|
|
82
82
|
]
|
package/package.json
CHANGED
package/server/public/style.css
CHANGED
package/server/views/index.ejs
CHANGED
|
@@ -123,10 +123,11 @@ header .runner {
|
|
|
123
123
|
<a class='btn2' data-filepath="<%=filepath%>"><div><i class="fa-regular fa-folder-open"></i></div><div>Files</div></a>
|
|
124
124
|
<% } %>
|
|
125
125
|
<a id='wifi' data-proxy="<%=proxy.proxy%>" class='btn2'><div><i class="fa-solid fa-wifi"></i></div><div>WiFi</div></a>
|
|
126
|
-
<a class='btn2' href='https://build.pinokio.computer' target="_blank"><div><i class="fa-solid fa-shapes"></i></div><div>Build</div></a>
|
|
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>
|