pinokiod 3.232.0 → 3.234.0
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/bin/index.js +1 -1
- package/kernel/bin/setup.js +4 -0
- package/kernel/index.js +1 -1
- package/package.json +1 -1
- package/server/index.js +4 -3
- package/server/public/style.css +2 -0
- package/server/views/app.ejs +4 -2
- package/server/views/network.ejs +10 -10
package/kernel/bin/index.js
CHANGED
|
@@ -625,7 +625,7 @@ class Bin {
|
|
|
625
625
|
}
|
|
626
626
|
async install2(req, ondata) {
|
|
627
627
|
let { requirements, install_required, requirements_pending, error } = await this.check({
|
|
628
|
-
bin: this.preset("
|
|
628
|
+
bin: this.preset("dev")
|
|
629
629
|
})
|
|
630
630
|
req.params = JSON.stringify(requirements)
|
|
631
631
|
if (this.install_required) {
|
package/kernel/bin/setup.js
CHANGED
|
@@ -158,6 +158,7 @@ module.exports = {
|
|
|
158
158
|
{ name: "uv", },
|
|
159
159
|
{ name: "py", },
|
|
160
160
|
{ name: "huggingface" },
|
|
161
|
+
{ name: "ffmpeg", },
|
|
161
162
|
{ name: "browserless" },
|
|
162
163
|
])
|
|
163
164
|
let conda_requirements = [
|
|
@@ -166,6 +167,7 @@ module.exports = {
|
|
|
166
167
|
"node",
|
|
167
168
|
"huggingface",
|
|
168
169
|
"git",
|
|
170
|
+
"ffmpeg",
|
|
169
171
|
]
|
|
170
172
|
return {
|
|
171
173
|
icon: "fa-solid fa-laptop-code",
|
|
@@ -190,6 +192,7 @@ module.exports = {
|
|
|
190
192
|
{ name: "uv", },
|
|
191
193
|
{ name: "caddy", },
|
|
192
194
|
{ name: "huggingface" },
|
|
195
|
+
{ name: "ffmpeg", },
|
|
193
196
|
{ name: "py", },
|
|
194
197
|
{ name: "browserless" },
|
|
195
198
|
])
|
|
@@ -199,6 +202,7 @@ module.exports = {
|
|
|
199
202
|
"node",
|
|
200
203
|
"huggingface",
|
|
201
204
|
"git",
|
|
205
|
+
"ffmpeg",
|
|
202
206
|
"caddy",
|
|
203
207
|
]
|
|
204
208
|
if (platform === "win32") {
|
package/kernel/index.js
CHANGED
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -1443,7 +1443,7 @@ class Server {
|
|
|
1443
1443
|
})
|
|
1444
1444
|
} else if (pathComponents.length === 0 && req.query.mode === "download") {
|
|
1445
1445
|
let { requirements, install_required, requirements_pending, error } = await this.kernel.bin.check({
|
|
1446
|
-
bin: this.kernel.bin.preset("
|
|
1446
|
+
bin: this.kernel.bin.preset("dev"),
|
|
1447
1447
|
})
|
|
1448
1448
|
let sanitizedPath = null
|
|
1449
1449
|
if (typeof req.query.path === 'string') {
|
|
@@ -3042,7 +3042,7 @@ class Server {
|
|
|
3042
3042
|
|
|
3043
3043
|
if (this.theme === "dark") {
|
|
3044
3044
|
this.colors = {
|
|
3045
|
-
color: "
|
|
3045
|
+
color: "#252527",
|
|
3046
3046
|
// symbolColor: "white"
|
|
3047
3047
|
symbolColor: "#F4F4F4"
|
|
3048
3048
|
// color: "rgb(31, 29, 39)",
|
|
@@ -3050,7 +3050,8 @@ class Server {
|
|
|
3050
3050
|
}
|
|
3051
3051
|
} else {
|
|
3052
3052
|
this.colors = {
|
|
3053
|
-
color: "white",
|
|
3053
|
+
//color: "white",
|
|
3054
|
+
color: "#F4F4F4",
|
|
3054
3055
|
// color: "#F5F4FA",
|
|
3055
3056
|
symbolColor: "black",
|
|
3056
3057
|
}
|
package/server/public/style.css
CHANGED
|
@@ -847,9 +847,11 @@ body {
|
|
|
847
847
|
position: relative;
|
|
848
848
|
}
|
|
849
849
|
/* Reserve scrollbar space to prevent header layout shift */
|
|
850
|
+
/*
|
|
850
851
|
html {
|
|
851
852
|
scrollbar-gutter: stable both-edges;
|
|
852
853
|
}
|
|
854
|
+
*/
|
|
853
855
|
body.dark {
|
|
854
856
|
color: var(--dark-color);
|
|
855
857
|
background: var(--dark-bg);
|
package/server/views/app.ejs
CHANGED
|
@@ -2997,7 +2997,7 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
2997
2997
|
<div><i class="fa-solid fa-plus"></i></div>
|
|
2998
2998
|
</button>
|
|
2999
2999
|
<button class='btn2 hidden' id='close-window' data-tippy-content='close this section'>
|
|
3000
|
-
<div><i class="fa-solid fa-
|
|
3000
|
+
<div><i class="fa-solid fa-xmark"></i></div>
|
|
3001
3001
|
</button>
|
|
3002
3002
|
</h1>
|
|
3003
3003
|
</header>
|
|
@@ -4212,7 +4212,9 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
4212
4212
|
const devTab = document.querySelector('#devtab.frame-link')
|
|
4213
4213
|
if (!triggeredByUser && !resolvedByGlobalSelector && !target && devRouteActive && devTab) {
|
|
4214
4214
|
const defaultCandidate = getDefaultSelection()
|
|
4215
|
-
if (
|
|
4215
|
+
if (pluginLaunchActive && defaultCandidate) {
|
|
4216
|
+
target = defaultCandidate
|
|
4217
|
+
} else {
|
|
4216
4218
|
target = devTab
|
|
4217
4219
|
}
|
|
4218
4220
|
}
|
package/server/views/network.ejs
CHANGED
|
@@ -1233,7 +1233,7 @@ document.querySelector("#reset-label").addEventListener("click", async (e) => {
|
|
|
1233
1233
|
location.href = "/net/" + res.peer_name
|
|
1234
1234
|
} else {
|
|
1235
1235
|
console.log("> 2")
|
|
1236
|
-
location.
|
|
1236
|
+
location.reload()
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
} catch (e) {
|
|
@@ -1242,7 +1242,7 @@ document.querySelector("#reset-label").addEventListener("click", async (e) => {
|
|
|
1242
1242
|
}, 1000)
|
|
1243
1243
|
} else if (r.error) {
|
|
1244
1244
|
alert(r.error)
|
|
1245
|
-
location.
|
|
1245
|
+
location.reload()
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
1248
|
|
|
@@ -1397,7 +1397,7 @@ document.querySelector("main").addEventListener("click", async (e) => {
|
|
|
1397
1397
|
location.href = "/net/" + res.peer_name
|
|
1398
1398
|
} else {
|
|
1399
1399
|
console.log("> 2")
|
|
1400
|
-
location.
|
|
1400
|
+
location.reload()
|
|
1401
1401
|
}
|
|
1402
1402
|
}
|
|
1403
1403
|
} catch (e) {
|
|
@@ -1406,7 +1406,7 @@ document.querySelector("main").addEventListener("click", async (e) => {
|
|
|
1406
1406
|
}, 1000)
|
|
1407
1407
|
} else if (r.error) {
|
|
1408
1408
|
alert(r.error)
|
|
1409
|
-
location.
|
|
1409
|
+
location.reload()
|
|
1410
1410
|
}
|
|
1411
1411
|
return
|
|
1412
1412
|
}
|
|
@@ -1431,7 +1431,7 @@ document.querySelector("main").addEventListener("click", async (e) => {
|
|
|
1431
1431
|
}).then((res) => {
|
|
1432
1432
|
return res.json()
|
|
1433
1433
|
})
|
|
1434
|
-
location.
|
|
1434
|
+
location.reload()
|
|
1435
1435
|
return
|
|
1436
1436
|
}
|
|
1437
1437
|
|
|
@@ -1455,7 +1455,7 @@ document.querySelector("main").addEventListener("click", async (e) => {
|
|
|
1455
1455
|
}).then((res) => {
|
|
1456
1456
|
return res.json()
|
|
1457
1457
|
})
|
|
1458
|
-
location.
|
|
1458
|
+
location.reload()
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
1461
1461
|
if (e.target.classList.contains("wifi-qr")) {
|
|
@@ -1510,7 +1510,7 @@ if (document.querySelector("#forward")) {
|
|
|
1510
1510
|
return res.json()
|
|
1511
1511
|
})
|
|
1512
1512
|
console.log(res)
|
|
1513
|
-
location.
|
|
1513
|
+
location.reload()
|
|
1514
1514
|
})
|
|
1515
1515
|
}
|
|
1516
1516
|
<% } else { %>
|
|
@@ -1530,7 +1530,7 @@ if (document.querySelector("#wifi")) {
|
|
|
1530
1530
|
return res.json()
|
|
1531
1531
|
})
|
|
1532
1532
|
console.log(res)
|
|
1533
|
-
location.
|
|
1533
|
+
location.reload()
|
|
1534
1534
|
})
|
|
1535
1535
|
}
|
|
1536
1536
|
<% } %>
|
|
@@ -1544,7 +1544,7 @@ setInterval(() => {
|
|
|
1544
1544
|
if (res.install_required) {
|
|
1545
1545
|
location.href = "/setup/network?callback=/network"
|
|
1546
1546
|
} else {
|
|
1547
|
-
location.
|
|
1547
|
+
location.reload()
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
1550
1550
|
})
|
|
@@ -1556,7 +1556,7 @@ interval = setInterval(() => {
|
|
|
1556
1556
|
return res.json()
|
|
1557
1557
|
}).then((res) => {
|
|
1558
1558
|
if (res.updated) {
|
|
1559
|
-
location.
|
|
1559
|
+
location.reload()
|
|
1560
1560
|
}
|
|
1561
1561
|
})
|
|
1562
1562
|
}, 2000)
|