pinokiod 3.9.25 → 3.9.27
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 +4 -1
- package/kernel/index.js +10 -0
- package/package.json +1 -1
- package/server/public/style.css +29 -8
- package/server/views/download.ejs +0 -1
- package/server/views/install.ejs +6 -5
- package/server/views/settings.ejs +1 -1
package/kernel/bin/index.js
CHANGED
|
@@ -183,6 +183,7 @@ class Bin {
|
|
|
183
183
|
// return a single merged env object, constructed from all the modules
|
|
184
184
|
|
|
185
185
|
// 1. get the module envs
|
|
186
|
+
console.log("this.mods", this.mods)
|
|
186
187
|
let envs = this.mods.map((mod) => {
|
|
187
188
|
if (mod.name === "vs") {
|
|
188
189
|
// don't include vs now
|
|
@@ -210,6 +211,7 @@ class Bin {
|
|
|
210
211
|
return e
|
|
211
212
|
}
|
|
212
213
|
async init() {
|
|
214
|
+
this.mods = []
|
|
213
215
|
if (this.kernel.homedir) {
|
|
214
216
|
const bin_folder = this.path()
|
|
215
217
|
await fs.promises.mkdir(bin_folder, { recursive: true }).catch((e) => { })
|
|
@@ -253,7 +255,8 @@ class Bin {
|
|
|
253
255
|
return file.endsWith(".js") && file !== "index.js" && file !== "cmake.js"
|
|
254
256
|
})
|
|
255
257
|
|
|
256
|
-
|
|
258
|
+
console.log("BIN INIT")
|
|
259
|
+
|
|
257
260
|
for(let filename of modfiles) {
|
|
258
261
|
// 1. get all the modules in __dirname
|
|
259
262
|
// 2. load them
|
package/kernel/index.js
CHANGED
|
@@ -703,7 +703,9 @@ class Kernel {
|
|
|
703
703
|
|
|
704
704
|
//await this.shell.init()
|
|
705
705
|
|
|
706
|
+
console.log("********************************************", { homedir: this.homedir })
|
|
706
707
|
if (this.homedir) {
|
|
708
|
+
console.log("> 1")
|
|
707
709
|
await this.template.init({
|
|
708
710
|
kernel: this,
|
|
709
711
|
system,
|
|
@@ -713,22 +715,30 @@ class Kernel {
|
|
|
713
715
|
return this.api.get_proxy_url("/proxy", port)
|
|
714
716
|
},
|
|
715
717
|
})
|
|
718
|
+
console.log("> 2")
|
|
716
719
|
this.sys = new Sysinfo()
|
|
717
720
|
await this.sys.init(this)
|
|
721
|
+
console.log("> 3")
|
|
718
722
|
let info = this.sys.info
|
|
719
723
|
|
|
720
724
|
this.sysinfo = info
|
|
721
725
|
|
|
722
726
|
await this.getInfo()
|
|
727
|
+
console.log("> 4")
|
|
723
728
|
|
|
724
729
|
await fs.promises.mkdir(this.path("logs"), { recursive: true }).catch((e) => { })
|
|
730
|
+
console.log("> 5")
|
|
725
731
|
await fs.promises.writeFile(this.path("logs/system.json"), JSON.stringify(this.i, null, 2))
|
|
732
|
+
console.log("> 6")
|
|
726
733
|
let pwpath = this.bin.path("playwright/node_modules/playwright")
|
|
727
734
|
this.playwright = (await this.loader.load(pwpath)).resolved
|
|
728
735
|
|
|
736
|
+
console.log("> 7")
|
|
729
737
|
|
|
730
738
|
await this.proto.init()
|
|
739
|
+
console.log("> 8")
|
|
731
740
|
await this.plugin.init()
|
|
741
|
+
console.log("> 9")
|
|
732
742
|
|
|
733
743
|
// refresh every 5 second
|
|
734
744
|
if (this.refresh_interval) {
|
package/package.json
CHANGED
package/server/public/style.css
CHANGED
|
@@ -292,10 +292,12 @@ footer b {
|
|
|
292
292
|
*/
|
|
293
293
|
}
|
|
294
294
|
.requirements {
|
|
295
|
-
padding: 20px;
|
|
295
|
+
padding: 50px 20px;
|
|
296
296
|
font-size: 14px;
|
|
297
|
+
/*
|
|
297
298
|
background: var(--dark-nav-bg);
|
|
298
299
|
color: white;
|
|
300
|
+
*/
|
|
299
301
|
flex-grow: 1;
|
|
300
302
|
display: flex;
|
|
301
303
|
align-items: center;
|
|
@@ -316,10 +318,10 @@ footer b {
|
|
|
316
318
|
font-size: 12px;
|
|
317
319
|
}
|
|
318
320
|
.requirements .requirement-item .label.highlighted {
|
|
319
|
-
color:
|
|
321
|
+
color: royalblue;
|
|
320
322
|
}
|
|
321
323
|
.requirements .requirement-item .name.highlighted {
|
|
322
|
-
color:
|
|
324
|
+
color: royalblue;
|
|
323
325
|
}
|
|
324
326
|
.requirements .requirement-item .name {
|
|
325
327
|
font-weight: bold;
|
|
@@ -338,13 +340,27 @@ footer b {
|
|
|
338
340
|
.requirements form .btn {
|
|
339
341
|
width: 100%;
|
|
340
342
|
}
|
|
341
|
-
|
|
343
|
+
/*
|
|
344
|
+
body.dark .requirement-item:first-child {
|
|
342
345
|
border-top: 1px solid rgba(255,255,255,0.04);
|
|
343
346
|
}
|
|
347
|
+
.requirement-item:first-child {
|
|
348
|
+
border-top: 1px solid rgba(0,0,0,0.08);
|
|
349
|
+
}
|
|
350
|
+
*/
|
|
351
|
+
body.dark .requirement-item {
|
|
352
|
+
/*
|
|
353
|
+
border-bottom: 1px solid rgba(255,255,255,0.04);
|
|
354
|
+
*/
|
|
355
|
+
background: rgba(0,0,0,0.08);
|
|
356
|
+
}
|
|
344
357
|
.requirement-item {
|
|
345
358
|
text-align: left;
|
|
346
|
-
padding: 15px
|
|
347
|
-
|
|
359
|
+
padding: 15px 20px;
|
|
360
|
+
background: rgba(0,0,100,0.03);
|
|
361
|
+
/*
|
|
362
|
+
border-bottom: 1px solid rgba(0,0,0,0.08);
|
|
363
|
+
*/
|
|
348
364
|
}
|
|
349
365
|
.requirement-item .btn {
|
|
350
366
|
margin-right: 5px;
|
|
@@ -372,6 +388,10 @@ footer b {
|
|
|
372
388
|
margin: 10px 0;
|
|
373
389
|
background: rgba(0,0,0,0.05);
|
|
374
390
|
}
|
|
391
|
+
#del-bin {
|
|
392
|
+
cursor: pointer;
|
|
393
|
+
color: royalblue;
|
|
394
|
+
}
|
|
375
395
|
|
|
376
396
|
html.columns {
|
|
377
397
|
height: 100%;
|
|
@@ -589,9 +609,11 @@ body.dark {
|
|
|
589
609
|
color: var(--dark-color);
|
|
590
610
|
background: var(--dark-bg);
|
|
591
611
|
}
|
|
612
|
+
/*
|
|
592
613
|
body.frozen {
|
|
593
614
|
background: #F5F4FA;
|
|
594
615
|
}
|
|
616
|
+
*/
|
|
595
617
|
body.fullscreen {
|
|
596
618
|
/*
|
|
597
619
|
background: white;
|
|
@@ -1470,7 +1492,7 @@ body.dark .swal2-styled.swal2-confirm{
|
|
|
1470
1492
|
color: black;
|
|
1471
1493
|
*/
|
|
1472
1494
|
color: rgba(255,255,255,0.8) !important;
|
|
1473
|
-
border: 1px solid rgba(255,255,255,0.
|
|
1495
|
+
border: 1px solid rgba(255,255,255,0.2) !important;
|
|
1474
1496
|
/*
|
|
1475
1497
|
background: var(--dark-btn-bg);
|
|
1476
1498
|
color: var(--dark-btn-color);
|
|
@@ -1479,7 +1501,6 @@ body.dark .swal2-styled.swal2-confirm{
|
|
|
1479
1501
|
.swal2-styled.swal2-confirm{
|
|
1480
1502
|
background: black !important;
|
|
1481
1503
|
margin: 0;
|
|
1482
|
-
font-weight: bold;
|
|
1483
1504
|
border: none;
|
|
1484
1505
|
}
|
|
1485
1506
|
.swal2-input:focus, .swal2-file:focus, .swal2-textarea:focus {
|
package/server/views/install.ejs
CHANGED
|
@@ -69,7 +69,6 @@ body {
|
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: flex-start;
|
|
71
71
|
margin: 10px;
|
|
72
|
-
background: rgba(0,0,0,0.04);
|
|
73
72
|
}
|
|
74
73
|
.item img {
|
|
75
74
|
width: 100px;
|
|
@@ -95,19 +94,21 @@ body {
|
|
|
95
94
|
color: rgba(0,0,0,0.5);
|
|
96
95
|
}
|
|
97
96
|
#status-screen {
|
|
98
|
-
padding:
|
|
97
|
+
padding: 15px;
|
|
99
98
|
box-sizing: border-box;
|
|
100
99
|
width: 100%;
|
|
101
100
|
margin: 0;
|
|
102
|
-
|
|
101
|
+
margin-bottom: 10px;
|
|
103
102
|
overflow: auto;
|
|
104
|
-
|
|
103
|
+
border-left: 5px solid royalblue;
|
|
105
104
|
/*
|
|
106
105
|
color: rgb(27, 28, 29);
|
|
107
106
|
*/
|
|
108
107
|
}
|
|
109
108
|
#status-screen b {
|
|
110
|
-
|
|
109
|
+
font-weight: normal;
|
|
110
|
+
color: royalblue;
|
|
111
|
+
font-size: 16px;
|
|
111
112
|
}
|
|
112
113
|
</style>
|
|
113
114
|
<script src="/hotkeys.min.js"></script>
|
|
@@ -257,7 +257,7 @@ hr {
|
|
|
257
257
|
<button class='btn2' id='back'><div><i class="fa-solid fa-chevron-left"></i></div><div>Prev</div></button>
|
|
258
258
|
<button class='btn2' id='forward'><div><i class="fa-solid fa-chevron-right"></i></div><div>Next</div></button>
|
|
259
259
|
<a class='btn2 create-new' id='create-new-folder'><div><i class='fa-solid fa-plus'></i></div><div>New</div></a>
|
|
260
|
-
<a class='btn2' id='explore' href="/?mode=explore"><div><i class="fa-solid fa-
|
|
260
|
+
<a class='btn2' id='explore' href="/?mode=explore"><div><i class="fa-solid fa-magnifying-glass"></i></div><div>Discover</div></a>
|
|
261
261
|
<a href="/network" class='btn2'><div><i class="fa-solid fa-wifi"></i></div><div>Network</div></a>
|
|
262
262
|
<a href="/connect" class='btn2'><div><i class="fa-solid fa-circle-user"></i></div><div>Connect</div></a>
|
|
263
263
|
<% paths.forEach((path) => { %>
|