pinokiod 2.14.2 → 2.14.3
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
|
@@ -296,16 +296,16 @@ body.dark .grid-btns {
|
|
|
296
296
|
border-top: 1px solid rgba(0,0,0,0.04);
|
|
297
297
|
border-bottom: 1px solid rgba(0,0,0,0.04);
|
|
298
298
|
display: grid;
|
|
299
|
-
/*
|
|
300
299
|
grid-template-columns: repeat(2, 1fr);
|
|
301
300
|
grid-template-rows: repeat(2, 1fr);
|
|
302
|
-
|
|
301
|
+
/*
|
|
303
302
|
grid-template-columns: repeat(3, 1fr);
|
|
304
303
|
grid-template-rows: repeat(1, 1fr);
|
|
304
|
+
*/
|
|
305
305
|
box-sizing: border-box;
|
|
306
306
|
}
|
|
307
307
|
.grid-btns .btn2 {
|
|
308
|
-
padding:
|
|
308
|
+
padding: 10px 10px;
|
|
309
309
|
color: var(--light-color);
|
|
310
310
|
border-radius: 0;
|
|
311
311
|
cursor: pointer;
|
|
@@ -590,8 +590,10 @@ body.dark .loader-container {
|
|
|
590
590
|
</div>
|
|
591
591
|
-->
|
|
592
592
|
<div class='grid-btns'>
|
|
593
|
-
<a class='btn2' href="/"><div><i class="fa-solid fa-house"></i></div><div>Home</div></a>
|
|
594
593
|
<a class='btn2' href="https://portal.pinokio.computer/" target="_blank"><div><i class="fa-solid fa-face-smile-beam"></i></div><div>Community</div></a>
|
|
594
|
+
<button class='btn2' id='genlog'><div><i class="fa-solid fa-laptop-code"></i></div><div>Debug</div></button>
|
|
595
|
+
<a id='downloadlogs' download class='hidden btn2' href="/pinokio/logs.zip"><div><i class="fa-solid fa-download"></i></div><div>Download logs</div></a>
|
|
596
|
+
<a class='btn2' href="/"><div><i class="fa-solid fa-house"></i></div><div>Home</div></a>
|
|
595
597
|
<button class='btn2' id='new-window' title='open a new window'><div><i class="fa-solid fa-plus"></i></div><div>Window</div></button>
|
|
596
598
|
</div>
|
|
597
599
|
<!--
|
|
@@ -1410,6 +1412,22 @@ const refresh = async (silent) => {
|
|
|
1410
1412
|
renderSelection()
|
|
1411
1413
|
}
|
|
1412
1414
|
}
|
|
1415
|
+
document.querySelector("#genlog").addEventListener("click", (e) => {
|
|
1416
|
+
e.preventDefault()
|
|
1417
|
+
e.stopPropagation()
|
|
1418
|
+
e.target.innerHTML = '<i class="fa-solid fa-circle-notch fa-spin"></i>'
|
|
1419
|
+
fetch("/pinokio/log", {
|
|
1420
|
+
method: "post",
|
|
1421
|
+
}).then((res) => {
|
|
1422
|
+
console.log("RES", res)
|
|
1423
|
+
let btn = document.querySelector("#genlog")
|
|
1424
|
+
let btn2 = document.querySelector("#downloadlogs")
|
|
1425
|
+
btn2.classList.remove("hidden")
|
|
1426
|
+
btn.classList.add("hidden")
|
|
1427
|
+
btn.innerHTML = '<i class="fa-solid fa-circle-check"></i> Generated!'
|
|
1428
|
+
//btn.classList.add("hidden")
|
|
1429
|
+
})
|
|
1430
|
+
})
|
|
1413
1431
|
window.addEventListener('message', (event) => {
|
|
1414
1432
|
|
|
1415
1433
|
// only process the event it's coming from pinokio
|