pinokiod 0.1.34 → 0.1.36
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 +1 -1
- package/server/public/style.css +8 -8
- package/server/views/browser.ejs +32 -20
package/package.json
CHANGED
package/server/public/style.css
CHANGED
|
@@ -966,10 +966,10 @@ button {
|
|
|
966
966
|
cursor: pointer;
|
|
967
967
|
}
|
|
968
968
|
body.dark .btn {
|
|
969
|
-
/*
|
|
970
969
|
color: var(--dark-btn-color);
|
|
971
|
-
|
|
970
|
+
/*
|
|
972
971
|
color: white;
|
|
972
|
+
*/
|
|
973
973
|
background: var(--dark-btn-bg);
|
|
974
974
|
}
|
|
975
975
|
.btn {
|
|
@@ -1289,10 +1289,10 @@ b {
|
|
|
1289
1289
|
background: royalblue;
|
|
1290
1290
|
}
|
|
1291
1291
|
body.dark #new-window {
|
|
1292
|
-
/*
|
|
1293
1292
|
color: var(--dark-btn-color);
|
|
1294
|
-
|
|
1293
|
+
/*
|
|
1295
1294
|
color: white;
|
|
1295
|
+
*/
|
|
1296
1296
|
}
|
|
1297
1297
|
#new-window {
|
|
1298
1298
|
padding: 10px;
|
|
@@ -1302,10 +1302,10 @@ body.dark #new-window {
|
|
|
1302
1302
|
color: var(--light-color);
|
|
1303
1303
|
}
|
|
1304
1304
|
body.dark .btn2 {
|
|
1305
|
-
/*
|
|
1306
1305
|
color: var(--dark-btn-color);
|
|
1307
|
-
|
|
1306
|
+
/*
|
|
1308
1307
|
color: white;
|
|
1308
|
+
*/
|
|
1309
1309
|
}
|
|
1310
1310
|
.btn2:hover {
|
|
1311
1311
|
background: rgba(0,0,0,0.06);
|
|
@@ -1419,10 +1419,10 @@ body.dark .running-apps {
|
|
|
1419
1419
|
*/
|
|
1420
1420
|
}
|
|
1421
1421
|
body.dark header .home {
|
|
1422
|
-
/*
|
|
1423
1422
|
color: var(--dark-btn-color);
|
|
1424
|
-
|
|
1423
|
+
/*
|
|
1425
1424
|
color: white;
|
|
1425
|
+
*/
|
|
1426
1426
|
}
|
|
1427
1427
|
header .home {
|
|
1428
1428
|
color: var(--light-color);
|
package/server/views/browser.ejs
CHANGED
|
@@ -100,10 +100,10 @@ body.dark .header-item .btn2 {
|
|
|
100
100
|
border-radius: 30px;
|
|
101
101
|
}
|
|
102
102
|
body.dark .header-item.btn {
|
|
103
|
+
/*
|
|
103
104
|
color: white;
|
|
104
|
-
/*
|
|
105
|
-
color: var(--dark-color);
|
|
106
105
|
*/
|
|
106
|
+
color: var(--dark-color);
|
|
107
107
|
}
|
|
108
108
|
.header-item.btn {
|
|
109
109
|
padding: 10px;
|
|
@@ -118,19 +118,19 @@ body .logo {
|
|
|
118
118
|
color: var(--light-color);
|
|
119
119
|
}
|
|
120
120
|
body.dark .logo {
|
|
121
|
-
/*
|
|
122
121
|
color: var(--dark-btn-color);
|
|
123
|
-
|
|
122
|
+
/*
|
|
124
123
|
color: white;
|
|
124
|
+
*/
|
|
125
125
|
}
|
|
126
126
|
body #new-window {
|
|
127
127
|
color: var(--light-color);
|
|
128
128
|
}
|
|
129
129
|
body.dark #new-window {
|
|
130
|
-
/*
|
|
131
130
|
color: var(--dark-btn-color);
|
|
132
|
-
|
|
131
|
+
/*
|
|
133
132
|
color: white;
|
|
133
|
+
*/
|
|
134
134
|
}
|
|
135
135
|
.app-info {
|
|
136
136
|
/*
|
|
@@ -226,10 +226,10 @@ body.dark .grid-btns {
|
|
|
226
226
|
cursor: pointer;
|
|
227
227
|
}
|
|
228
228
|
body.dark .grid-btns .btn2 {
|
|
229
|
+
/*
|
|
229
230
|
color: white;
|
|
230
|
-
/*
|
|
231
|
-
color: var(--dark-btn-color);
|
|
232
231
|
*/
|
|
232
|
+
color: var(--dark-btn-color);
|
|
233
233
|
}
|
|
234
234
|
.footer {
|
|
235
235
|
width: 100%;
|
|
@@ -281,6 +281,12 @@ nav .logo {
|
|
|
281
281
|
display: flex;
|
|
282
282
|
align-items: center;
|
|
283
283
|
}
|
|
284
|
+
body.dark .header-item.cursor.header-top {
|
|
285
|
+
background: none !important;
|
|
286
|
+
}
|
|
287
|
+
.header-item.cursor.header-top {
|
|
288
|
+
background: none !important;
|
|
289
|
+
}
|
|
284
290
|
.header-item.header-top {
|
|
285
291
|
display: block;
|
|
286
292
|
}
|
|
@@ -298,21 +304,21 @@ body.dark #new-tab {
|
|
|
298
304
|
</head>
|
|
299
305
|
<body class='<%=theme%>'>
|
|
300
306
|
<aside>
|
|
301
|
-
<div class='header-top header-item
|
|
307
|
+
<div class='header-top header-item'>
|
|
302
308
|
<div class='app-info'>
|
|
303
309
|
<img src="<%=rawpath%>/<%=config.icon%>?raw=true"/>
|
|
304
310
|
<div><%=config.title%></div>
|
|
305
311
|
</div>
|
|
306
312
|
</div>
|
|
307
313
|
<div class='system'>
|
|
308
|
-
<a data-index="
|
|
314
|
+
<a data-index="0" target="<%=src%>" href="<%=src%>" class='btn header-item frame-link'>
|
|
309
315
|
<div class='tab'><i class="fa-regular fa-folder-open"></i> Files</div>
|
|
310
316
|
</a>
|
|
311
317
|
</div>
|
|
312
318
|
<div class='menu'>
|
|
313
319
|
<% config.menu.forEach((item, index) => { %>
|
|
314
320
|
<% if (item.btn) { %>
|
|
315
|
-
<a data-index="<%=index+
|
|
321
|
+
<a data-index="<%=index+1%>" target="<%=item.src%>" href="<%=item.href%>" class='btn header-item frame-link'>
|
|
316
322
|
<div class='tab'><%-item.btn%></div>
|
|
317
323
|
<% if (item.running) { %>
|
|
318
324
|
<i class='fa-solid fa-spin fa-circle-notch'></i>
|
|
@@ -334,9 +340,11 @@ body.dark #new-tab {
|
|
|
334
340
|
</a>
|
|
335
341
|
<%})%>
|
|
336
342
|
</div>
|
|
343
|
+
<!--
|
|
337
344
|
<div id='new-tab' class='btn header-item'>
|
|
338
345
|
<i class="fa-solid fa-plus"></i>
|
|
339
346
|
</div>
|
|
347
|
+
-->
|
|
340
348
|
<div class='flexible'></div>
|
|
341
349
|
<div class='grid-btns'>
|
|
342
350
|
<a class='btn2' href="/?mode=explore" id='explore'><div><i class="fa-solid fa-globe"></i></div><div>Discover</div></a>
|
|
@@ -479,7 +487,7 @@ const renderSelection = (e, force) => {
|
|
|
479
487
|
}
|
|
480
488
|
console.log("loaded before", loaded)
|
|
481
489
|
renderSelection()
|
|
482
|
-
renderCursor()
|
|
490
|
+
//renderCursor()
|
|
483
491
|
console.log("loaded after", loaded)
|
|
484
492
|
Reporter()
|
|
485
493
|
document.querySelector("#reload").addEventListener("click", (e) => {
|
|
@@ -490,6 +498,7 @@ document.querySelector("#reload").addEventListener("click", (e) => {
|
|
|
490
498
|
renderSelection(null, true)
|
|
491
499
|
})
|
|
492
500
|
|
|
501
|
+
/*
|
|
493
502
|
document.querySelector("#new-tab").addEventListener("click", async (e) => {
|
|
494
503
|
const url = prompt("url")
|
|
495
504
|
|
|
@@ -498,6 +507,7 @@ document.querySelector("#new-tab").addEventListener("click", async (e) => {
|
|
|
498
507
|
await addTab(url)
|
|
499
508
|
}
|
|
500
509
|
})
|
|
510
|
+
*/
|
|
501
511
|
|
|
502
512
|
const syncTabs = async () => {
|
|
503
513
|
let tabs = []
|
|
@@ -614,8 +624,8 @@ const refresh = async () => {
|
|
|
614
624
|
console.log("refresh", html)
|
|
615
625
|
document.querySelector(".menu").innerHTML = html
|
|
616
626
|
renderSelection()
|
|
617
|
-
cursorIndex =
|
|
618
|
-
renderCursor()
|
|
627
|
+
// cursorIndex = 0
|
|
628
|
+
//renderCursor()
|
|
619
629
|
|
|
620
630
|
}
|
|
621
631
|
window.addEventListener('message', (event) => {
|
|
@@ -629,6 +639,7 @@ window.addEventListener('message', (event) => {
|
|
|
629
639
|
refresh()
|
|
630
640
|
}
|
|
631
641
|
});
|
|
642
|
+
/*
|
|
632
643
|
document.addEventListener("keydown", (e) => {
|
|
633
644
|
let size = document.querySelectorAll(".selectable").length
|
|
634
645
|
console.log("size", size)
|
|
@@ -640,9 +651,9 @@ document.addEventListener("keydown", (e) => {
|
|
|
640
651
|
} else {
|
|
641
652
|
cursorIndex = size-1;
|
|
642
653
|
}
|
|
643
|
-
renderCursor()
|
|
644
|
-
let cursor = document.querySelector(".selectable.cursor")
|
|
645
|
-
cursor.scrollIntoView(false)
|
|
654
|
+
//renderCursor()
|
|
655
|
+
//let cursor = document.querySelector(".selectable.cursor")
|
|
656
|
+
//cursor.scrollIntoView(false)
|
|
646
657
|
//
|
|
647
658
|
} else if (e.key === "ArrowDown") {
|
|
648
659
|
if (cursorIndex < size-1) {
|
|
@@ -650,10 +661,10 @@ document.addEventListener("keydown", (e) => {
|
|
|
650
661
|
} else {
|
|
651
662
|
cursorIndex = 0;
|
|
652
663
|
}
|
|
653
|
-
renderCursor()
|
|
664
|
+
//renderCursor()
|
|
654
665
|
console.log("down arrow pressed");
|
|
655
|
-
let cursor = document.querySelector(".selectable.cursor")
|
|
656
|
-
cursor.scrollIntoView(false)
|
|
666
|
+
//let cursor = document.querySelector(".selectable.cursor")
|
|
667
|
+
//cursor.scrollIntoView(false)
|
|
657
668
|
} else if (e.key === "Enter") {
|
|
658
669
|
//let selected = document.querySelector(".line.selected:not(.hidden) .btns a.selected")
|
|
659
670
|
let cursor = document.querySelector(".selectable.cursor")
|
|
@@ -664,6 +675,7 @@ document.addEventListener("keydown", (e) => {
|
|
|
664
675
|
}
|
|
665
676
|
}
|
|
666
677
|
});
|
|
678
|
+
*/
|
|
667
679
|
</script>
|
|
668
680
|
</body>
|
|
669
681
|
</html>
|