pinokiod 3.85.0 → 3.86.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.
Files changed (55) hide show
  1. package/kernel/api/index.js +7 -0
  2. package/kernel/bin/caddy.js +10 -4
  3. package/kernel/peer.js +0 -3
  4. package/kernel/prototype.js +1 -0
  5. package/kernel/shell.js +43 -2
  6. package/kernel/util.js +2 -0
  7. package/package.json +1 -1
  8. package/pipe/views/login.ejs +1 -1
  9. package/server/index.js +133 -83
  10. package/server/public/common.js +534 -0
  11. package/server/public/opener.js +12 -11
  12. package/server/public/serve/style.css +1 -1
  13. package/server/public/style.css +25 -24
  14. package/server/public/urldropdown.css +473 -4
  15. package/server/public/urldropdown.js +202 -8
  16. package/server/views/404.ejs +1 -1
  17. package/server/views/500.ejs +1 -1
  18. package/server/views/app.ejs +29 -33
  19. package/server/views/bookmarklet.ejs +197 -0
  20. package/server/views/connect/x.ejs +4 -4
  21. package/server/views/connect.ejs +10 -10
  22. package/server/views/container.ejs +2 -2
  23. package/server/views/d.ejs +3 -3
  24. package/server/views/download.ejs +1 -1
  25. package/server/views/editor.ejs +1 -1
  26. package/server/views/env_editor.ejs +3 -3
  27. package/server/views/explore.ejs +2 -2
  28. package/server/views/file_explorer.ejs +2 -2
  29. package/server/views/git.ejs +7 -7
  30. package/server/views/github.ejs +3 -3
  31. package/server/views/help.ejs +2 -2
  32. package/server/views/index.ejs +5 -5
  33. package/server/views/index2.ejs +3 -3
  34. package/server/views/init/index.ejs +11 -74
  35. package/server/views/install.ejs +3 -3
  36. package/server/views/keys.ejs +2 -2
  37. package/server/views/mini.ejs +2 -2
  38. package/server/views/net.ejs +6 -6
  39. package/server/views/network.ejs +21 -21
  40. package/server/views/network2.ejs +10 -10
  41. package/server/views/old_network.ejs +8 -8
  42. package/server/views/pro.ejs +369 -0
  43. package/server/views/prototype/index.ejs +2 -2
  44. package/server/views/required_env_editor.ejs +2 -2
  45. package/server/views/review.ejs +6 -6
  46. package/server/views/screenshots.ejs +5 -4
  47. package/server/views/settings.ejs +3 -3
  48. package/server/views/setup.ejs +2 -2
  49. package/server/views/setup_home.ejs +2 -2
  50. package/server/views/share_editor.ejs +4 -4
  51. package/server/views/shell.ejs +3 -3
  52. package/server/views/start.ejs +2 -2
  53. package/server/views/task.ejs +2 -2
  54. package/server/views/terminal.ejs +5 -4
  55. package/server/views/tools.ejs +13 -13
@@ -30,7 +30,7 @@ body.dark .mode-display {
30
30
  background: rgba(0,0,0,0.04);
31
31
  /*
32
32
  text-align: center;
33
- color: royalblue;
33
+ color: rgba(127, 91, 243, 0.9);
34
34
  */
35
35
  color: rgba(0, 0, 0, 0.7);
36
36
  font-size: 12px;
@@ -439,8 +439,8 @@ body.dark .frame-link.selected {
439
439
  flex-shrink: 0;
440
440
  }
441
441
  .loader .btn:hover {
442
- color: royalblue;
443
- border-color: royalblue;
442
+ color: rgba(127, 91, 243, 0.9);
443
+ border-color: rgba(127, 91, 243, 0.9);
444
444
  }
445
445
  .loader .btn {
446
446
  padding: 4px 8px;
@@ -645,7 +645,7 @@ nav .logo {
645
645
  .error-message {
646
646
  width: 100%;
647
647
  /*
648
- background: royalblue !important;
648
+ background: rgba(127, 91, 243, 0.9) !important;
649
649
  */
650
650
  color: white;
651
651
  display: flex;
@@ -847,8 +847,8 @@ body.minimized #collapse {
847
847
  color: black;
848
848
  }
849
849
  #collapse {
850
- border-bottom: 5px solid royalblue;
851
- color: royalblue;
850
+ border-bottom: 5px solid rgba(127, 91, 243, 0.9);
851
+ color: rgba(127, 91, 243, 0.9);
852
852
  border-radius: 0;
853
853
  }
854
854
  #browserview-container {
@@ -145,7 +145,7 @@ body.dark .item select {
145
145
  }
146
146
  .item .title {
147
147
  text-decoration: none;
148
- color: royalblue;
148
+ color: rgba(127, 91, 243, 0.9);
149
149
  }
150
150
  .item .col {
151
151
  padding: 10px;
@@ -258,7 +258,7 @@ body.dark aside .tab {
258
258
  color: white;
259
259
  }
260
260
  body.dark aside .tab:hover, aside .tab:hover {
261
- color: royalblue !important;
261
+ color: rgba(127, 91, 243, 0.9) !important;
262
262
  opacity: 1;
263
263
  }
264
264
  aside .tab {
@@ -497,7 +497,7 @@ body.dark .gallery-item-timestamp {
497
497
  .gallery-error .btn {
498
498
  margin-top: 10px;
499
499
  padding: 8px 16px;
500
- background: royalblue;
500
+ background: rgba(127, 91, 243, 0.9);
501
501
  color: white;
502
502
  border: none;
503
503
  border-radius: 4px;
@@ -709,7 +709,7 @@ document.addEventListener('DOMContentLoaded', function() {
709
709
  </div>
710
710
  <aside>
711
711
  <div class='btn-tab'>
712
- <a href="/init" class='btn'><i class="fa-solid fa-plus"></i><div class='caption'>Create</div></a>
712
+ <button type='button' class='btn' id='create-launcher-button'><i class="fa-solid fa-plus"></i><div class='caption'>Create</div></button>
713
713
  <a class='btn' id='explore' href="/?mode=explore"><i class="fa-solid fa-globe"></i><div class='caption'>Discover</div></a>
714
714
  </div>
715
715
  <a href="/" class='tab'><i class='fas fa-laptop-code'></i><div class='caption'>This machine</div></a>
@@ -725,6 +725,7 @@ document.addEventListener('DOMContentLoaded', function() {
725
725
  <a class='tab' id='genlog'><i class="fa-solid fa-laptop-code"></i><div class='caption'>Logs</div></a>
726
726
  <a id='downloadlogs' download class='hidden btn2' href="/pinokio/logs.zip"><i class="fa-solid fa-download"></i><div class='caption'>Download logs</div></a>
727
727
  <a class='tab selected' href="/screenshots"><i class="fa-solid fa-camera"></i><div class='caption'>Screenshots</div></a>
728
+ <a class='tab' href="/tools"><i class="fa-solid fa-toolbox"></i><div class='caption'>Installed Tools</div></a>
728
729
  <a class='tab' href="/?mode=settings"><i class="fa-solid fa-gear"></i><div class='caption'>Settings</div></a>
729
730
  </aside>
730
731
  </main>
@@ -145,7 +145,7 @@ body.dark .item select {
145
145
  }
146
146
  .item .title {
147
147
  text-decoration: none;
148
- color: royalblue;
148
+ color: rgba(127, 91, 243, 0.9);
149
149
  }
150
150
  .item .col {
151
151
  padding: 10px;
@@ -258,7 +258,7 @@ body.dark aside .tab {
258
258
  color: white;
259
259
  }
260
260
  body.dark aside .tab:hover, aside .tab:hover {
261
- color: royalblue !important;
261
+ color: rgba(127, 91, 243, 0.9) !important;
262
262
  opacity: 1;
263
263
  }
264
264
  aside .tab {
@@ -582,7 +582,7 @@ document.addEventListener('DOMContentLoaded', function() {
582
582
  </div>
583
583
  <aside>
584
584
  <div class='btn-tab'>
585
- <a href="/init" class='btn'><i class="fa-solid fa-plus"></i><div class='caption'>Create</div></a>
585
+ <button type='button' class='btn' id='create-launcher-button'><i class="fa-solid fa-plus"></i><div class='caption'>Create</div></button>
586
586
  <a class='btn' id='explore' href="/?mode=explore"><i class="fa-solid fa-globe"></i><div class='caption'>Discover</div></a>
587
587
  </div>
588
588
  <a href="/" class='tab'><i class='fas fa-laptop-code'></i><div class='caption'>This machine</div></a>
@@ -23,7 +23,7 @@ body.frozen {
23
23
  overflow: auto !important;
24
24
  }
25
25
  #del-bin {
26
- color: royalblue;
26
+ color: rgba(127, 91, 243, 0.9);
27
27
  cursor: pointer;
28
28
  }
29
29
  body {
@@ -91,7 +91,7 @@ body {
91
91
  }
92
92
  .item .title {
93
93
  text-decoration: none;
94
- color: royalblue;
94
+ color: rgba(127, 91, 243, 0.9);
95
95
  }
96
96
  .item .col {
97
97
  padding: 10px;
@@ -81,7 +81,7 @@ body {
81
81
  }
82
82
  .item .title {
83
83
  text-decoration: none;
84
- color: royalblue;
84
+ color: rgba(127, 91, 243, 0.9);
85
85
  }
86
86
  .item .col {
87
87
  padding: 10px;
@@ -132,7 +132,7 @@ body.dark .card {
132
132
  margin: 20px;
133
133
  }
134
134
  .card:hover {
135
- color: royalblue !important;
135
+ color: rgba(127, 91, 243, 0.9) !important;
136
136
  }
137
137
  .card .desc {
138
138
  text-align: left;
@@ -99,14 +99,14 @@ body.dark .env-item label {
99
99
  color: cornflowerblue;
100
100
  }
101
101
  .env-item a {
102
- color: royalblue;
102
+ color: rgba(127, 91, 243, 0.9);
103
103
  text-decoration: none;
104
104
  }
105
105
  .env-item div {
106
106
  padding: 5px;
107
107
  }
108
108
  .env-item label {
109
- color: royalblue;
109
+ color: rgba(127, 91, 243, 0.9);
110
110
  display: inline-block;
111
111
  margin-bottom: 5px;
112
112
  font-weight: bold;
@@ -129,7 +129,7 @@ body.dark .comment {
129
129
  padding-left: 10px;
130
130
  }
131
131
  #save {
132
- background: royalblue;
132
+ background: rgba(127, 91, 243, 0.9);
133
133
  }
134
134
  hr {
135
135
  margin: 20px 0;
@@ -190,7 +190,7 @@ body.dark .passcode .row input {
190
190
  background: rgba(0,0,100,0.1);
191
191
  }
192
192
  body.dark .passcode button {
193
- background: royalblue;
193
+ background: rgba(127, 91, 243, 0.9);
194
194
  }
195
195
  .passcode button {
196
196
  border-radius: 0;
@@ -125,7 +125,7 @@ header {
125
125
  }
126
126
  */
127
127
  #del-bin {
128
- color: royalblue;
128
+ color: rgba(127, 91, 243, 0.9);
129
129
  cursor: pointer;
130
130
  font-weight: bold;
131
131
  padding: 0 5px;
@@ -148,7 +148,7 @@ body.frozen {
148
148
  padding: 0 10px;
149
149
  }
150
150
  #status-window strong {
151
- color: royalblue;
151
+ color: rgba(127, 91, 243, 0.9);
152
152
  }
153
153
  #status-window b {
154
154
  color: black;
@@ -170,7 +170,7 @@ body.dark #status-window b {
170
170
  #progress-bar {
171
171
  width: 0%;
172
172
  height: 100%;
173
- background: royalblue;
173
+ background: rgba(127, 91, 243, 0.9);
174
174
  transition: width 0.2s;
175
175
  }
176
176
  </style>
@@ -87,7 +87,7 @@ body.dark .env-item label {
87
87
  color: cornflowerblue;
88
88
  }
89
89
  .env-item label {
90
- color: royalblue;
90
+ color: rgba(127, 91, 243, 0.9);
91
91
  display: block;
92
92
  margin-bottom: 5px;
93
93
  font-weight: bold;
@@ -211,7 +211,7 @@ footer .btn.go-home {
211
211
  }
212
212
  .warning a {
213
213
  text-decoration: none;
214
- color: royalblue;
214
+ color: rgba(127, 91, 243, 0.9);
215
215
  }
216
216
  .auto {
217
217
  display: flex;
@@ -117,7 +117,7 @@ body.dark .env-item label {
117
117
  color: cornflowerblue;
118
118
  }
119
119
  .env-item label {
120
- color: royalblue;
120
+ color: rgba(127, 91, 243, 0.9);
121
121
  display: block;
122
122
  margin-bottom: 5px;
123
123
  font-weight: bold;
@@ -136,7 +136,7 @@ body.dark .comment {
136
136
  padding-left: 10px;
137
137
  }
138
138
  #save {
139
- background: royalblue;
139
+ background: rgba(127, 91, 243, 0.9);
140
140
  }
141
141
  a#customize {
142
142
  text-decoration: none;
@@ -102,7 +102,7 @@ header {
102
102
  */
103
103
  /*
104
104
  .btn {
105
- background: royalblue;
105
+ background: rgba(127, 91, 243, 0.9);
106
106
  }
107
107
  */
108
108
  #status-window {
@@ -114,7 +114,7 @@ header {
114
114
  font-size: 12px;
115
115
  }
116
116
  #status-window strong {
117
- color: royalblue;
117
+ color: rgba(127, 91, 243, 0.9);
118
118
  }
119
119
  #status-window b {
120
120
  color: black;
@@ -136,11 +136,11 @@ body.dark #status-window b {
136
136
  #progress-bar {
137
137
  width: 0%;
138
138
  height: 100%;
139
- background: royalblue;
139
+ background: rgba(127, 91, 243, 0.9);
140
140
  transition: width 0.2s;
141
141
  }
142
142
  #del-bin {
143
- color: royalblue;
143
+ color: rgba(127, 91, 243, 0.9);
144
144
  cursor: pointer;
145
145
  font-weight: bold;
146
146
  padding: 0 5px;
@@ -248,6 +248,7 @@ document.addEventListener("DOMContentLoaded", async () => {
248
248
  await this.socket.close()
249
249
 
250
250
  let query = Object.fromEntries(new URLSearchParams(location.search))
251
+ console.log("query", query)
251
252
 
252
253
  this.socket.run({
253
254
  //uri: location.pathname.slice(1).replace("api/", ""),
@@ -145,7 +145,7 @@ body.dark .item select {
145
145
  }
146
146
  .item .title {
147
147
  text-decoration: none;
148
- color: royalblue;
148
+ color: rgba(127, 91, 243, 0.9);
149
149
  }
150
150
  .item .col {
151
151
  padding: 10px;
@@ -228,7 +228,7 @@ body.dark .config {
228
228
  font-size: 16px;
229
229
  font-weight: bold;
230
230
  width: 100px;
231
- background: royalblue;
231
+ background: rgba(127, 91, 243, 0.9);
232
232
  flex-shrink: 0;
233
233
  }
234
234
  .config-row {
@@ -310,7 +310,7 @@ body.dark .section-header {
310
310
  gap: 5px;
311
311
  }
312
312
  .tab:hover {
313
- color: royalblue;
313
+ color: rgba(127, 91, 243, 0.9);
314
314
  }
315
315
  .tab-content .tab {
316
316
  text-decoration: none;
@@ -394,18 +394,18 @@ body.dark .package-tab {
394
394
  color: rgba(255,255,255,0.7);
395
395
  }
396
396
  .package-tab:hover {
397
- color: royalblue;
397
+ color: rgba(127, 91, 243, 0.9);
398
398
  background: rgba(0,0,100,0.08);
399
399
  }
400
400
  body.dark .package-tab:hover {
401
401
  background: rgba(255,255,255,0.08);
402
402
  }
403
403
  .package-tab.active {
404
- background: royalblue;
404
+ background: rgba(127, 91, 243, 0.9);
405
405
  color: white;
406
406
  }
407
407
  .package-tab.active:hover {
408
- background: royalblue;
408
+ background: rgba(127, 91, 243, 0.9);
409
409
  color: white;
410
410
  }
411
411
  .tab-panel {
@@ -442,7 +442,7 @@ body.dark .bundles-header h3 {
442
442
  .bundle-card {
443
443
  background: rgba(0,0,0,0.04);
444
444
  padding: 15px;
445
- border-left: 4px solid royalblue;
445
+ border-left: 4px solid rgba(127, 91, 243, 0.9);
446
446
  }
447
447
  body.dark .bundle-card {
448
448
  background: rgba(255,255,255,0.04);
@@ -471,7 +471,7 @@ body.dark .bundle-card {
471
471
  display: flex;
472
472
  align-items: center;
473
473
  justify-content: center;
474
- background: royalblue;
474
+ background: rgba(127, 91, 243, 0.9);
475
475
  color: white;
476
476
  border-radius: 8px;
477
477
  font-size: 18px;
@@ -487,7 +487,7 @@ body.dark .bundle-icon {
487
487
  .bundle-name {
488
488
  font-size: 16px;
489
489
  font-weight: bold;
490
- color: royalblue;
490
+ color: rgba(127, 91, 243, 0.9);
491
491
  margin-bottom: 2px;
492
492
  }
493
493
  body.dark .bundle-name {
@@ -582,7 +582,7 @@ body.dark .package-badge.not-installed {
582
582
  font-weight: bold;
583
583
  }
584
584
  .bundle-install-btn {
585
- background: royalblue;
585
+ background: rgba(127, 91, 243, 0.9);
586
586
  color: white;
587
587
  border: none;
588
588
  padding: 8px 15px;
@@ -619,7 +619,7 @@ body.dark .package-badge.not-installed {
619
619
  width: 50px;
620
620
  height: 50px;
621
621
  border: 4px solid rgba(0,0,0,0.1);
622
- border-left: 4px solid royalblue;
622
+ border-left: 4px solid rgba(127, 91, 243, 0.9);
623
623
  border-radius: 50%;
624
624
  animation: spin 1s linear infinite;
625
625
  margin-bottom: 20px;
@@ -695,7 +695,7 @@ body.dark aside .tab {
695
695
  color: white;
696
696
  }
697
697
  body.dark aside .tab:hover, aside .tab:hover {
698
- color: royalblue !important;
698
+ color: rgba(127, 91, 243, 0.9) !important;
699
699
  opacity: 1;
700
700
  }
701
701
  aside .tab {
@@ -978,7 +978,7 @@ document.addEventListener('DOMContentLoaded', function() {
978
978
  </div>
979
979
  <aside>
980
980
  <div class='btn-tab'>
981
- <a href="/init" class='btn'><i class="fa-solid fa-plus"></i><div class='caption'>Create</div></a>
981
+ <button type='button' class='btn' id='create-launcher-button'><i class="fa-solid fa-plus"></i><div class='caption'>Create</div></button>
982
982
  <a class='btn' id='explore' href="/?mode=explore"><i class="fa-solid fa-globe"></i><div class='caption'>Discover</div></a>
983
983
  </div>
984
984
  <a href="/" class='tab'><i class='fas fa-laptop-code'></i><div class='caption'>This machine</div></a>