pinokiod 0.1.35 → 0.1.37
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
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>
|
|
@@ -481,7 +487,7 @@ const renderSelection = (e, force) => {
|
|
|
481
487
|
}
|
|
482
488
|
console.log("loaded before", loaded)
|
|
483
489
|
renderSelection()
|
|
484
|
-
renderCursor()
|
|
490
|
+
//renderCursor()
|
|
485
491
|
console.log("loaded after", loaded)
|
|
486
492
|
Reporter()
|
|
487
493
|
document.querySelector("#reload").addEventListener("click", (e) => {
|
|
@@ -618,8 +624,8 @@ const refresh = async () => {
|
|
|
618
624
|
console.log("refresh", html)
|
|
619
625
|
document.querySelector(".menu").innerHTML = html
|
|
620
626
|
renderSelection()
|
|
621
|
-
cursorIndex =
|
|
622
|
-
renderCursor()
|
|
627
|
+
// cursorIndex = 0
|
|
628
|
+
//renderCursor()
|
|
623
629
|
|
|
624
630
|
}
|
|
625
631
|
window.addEventListener('message', (event) => {
|
|
@@ -633,6 +639,7 @@ window.addEventListener('message', (event) => {
|
|
|
633
639
|
refresh()
|
|
634
640
|
}
|
|
635
641
|
});
|
|
642
|
+
/*
|
|
636
643
|
document.addEventListener("keydown", (e) => {
|
|
637
644
|
let size = document.querySelectorAll(".selectable").length
|
|
638
645
|
console.log("size", size)
|
|
@@ -644,9 +651,9 @@ document.addEventListener("keydown", (e) => {
|
|
|
644
651
|
} else {
|
|
645
652
|
cursorIndex = size-1;
|
|
646
653
|
}
|
|
647
|
-
renderCursor()
|
|
648
|
-
let cursor = document.querySelector(".selectable.cursor")
|
|
649
|
-
cursor.scrollIntoView(false)
|
|
654
|
+
//renderCursor()
|
|
655
|
+
//let cursor = document.querySelector(".selectable.cursor")
|
|
656
|
+
//cursor.scrollIntoView(false)
|
|
650
657
|
//
|
|
651
658
|
} else if (e.key === "ArrowDown") {
|
|
652
659
|
if (cursorIndex < size-1) {
|
|
@@ -654,10 +661,10 @@ document.addEventListener("keydown", (e) => {
|
|
|
654
661
|
} else {
|
|
655
662
|
cursorIndex = 0;
|
|
656
663
|
}
|
|
657
|
-
renderCursor()
|
|
664
|
+
//renderCursor()
|
|
658
665
|
console.log("down arrow pressed");
|
|
659
|
-
let cursor = document.querySelector(".selectable.cursor")
|
|
660
|
-
cursor.scrollIntoView(false)
|
|
666
|
+
//let cursor = document.querySelector(".selectable.cursor")
|
|
667
|
+
//cursor.scrollIntoView(false)
|
|
661
668
|
} else if (e.key === "Enter") {
|
|
662
669
|
//let selected = document.querySelector(".line.selected:not(.hidden) .btns a.selected")
|
|
663
670
|
let cursor = document.querySelector(".selectable.cursor")
|
|
@@ -668,6 +675,7 @@ document.addEventListener("keydown", (e) => {
|
|
|
668
675
|
}
|
|
669
676
|
}
|
|
670
677
|
});
|
|
678
|
+
*/
|
|
671
679
|
</script>
|
|
672
680
|
</body>
|
|
673
681
|
</html>
|