pinokiod 3.148.0 → 3.151.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.
- package/kernel/prototype.js +0 -1
- package/kernel/router/common.js +1 -0
- package/kernel/router/connector.js +2 -0
- package/kernel/shell.js +14 -14
- package/kernel/util.js +0 -1
- package/package.json +1 -1
- package/server/index.js +187 -53
- package/server/public/files-app/app.css +317 -0
- package/server/public/files-app/app.js +686 -0
- package/server/public/style.css +5 -5
- package/server/public/tab-idle-notifier.js +48 -6
- package/server/public/urldropdown.css +59 -0
- package/server/public/urldropdown.js +140 -90
- package/server/routes/files.js +284 -0
- package/server/views/app.ejs +75 -33
- package/server/views/file_browser.ejs +130 -0
- package/server/views/net.ejs +3 -4
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
.files-app {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
height: 100vh;
|
|
5
|
+
background: var(--background-color, #f7f7f7);
|
|
6
|
+
color: var(--text-color, #111);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.files-app[data-theme='dark'] {
|
|
10
|
+
--background-color: var(--dark-bg);
|
|
11
|
+
--surface-color: #222327;
|
|
12
|
+
--sidebar-color: var(--dark-nav-bg);
|
|
13
|
+
--border-color: var(--dark-thin);
|
|
14
|
+
--text-color: var(--dark-color);
|
|
15
|
+
--muted-color: var(--dark-fade);
|
|
16
|
+
--accent-color: var(--dark-link-color);
|
|
17
|
+
--accent-color-soft: rgba(183, 161, 255, 0.18);
|
|
18
|
+
--accent-color-shadow: rgba(183, 161, 255, 0.35);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.files-app:not([data-theme='dark']) {
|
|
22
|
+
--background-color: #f7f7f7;
|
|
23
|
+
--surface-color: #ffffff;
|
|
24
|
+
--sidebar-color: #ffffff;
|
|
25
|
+
--border-color: rgba(15, 23, 42, 0.08);
|
|
26
|
+
--text-color: #111827;
|
|
27
|
+
--muted-color: #6b7280;
|
|
28
|
+
--accent-color: var(--light-link-color);
|
|
29
|
+
--accent-color-soft: rgba(127, 91, 243, 0.12);
|
|
30
|
+
--accent-color-shadow: rgba(127, 91, 243, 0.35);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.files-app__header {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
padding: 12px 18px;
|
|
38
|
+
background: var(--surface-color);
|
|
39
|
+
border-bottom: 1px solid var(--border-color);
|
|
40
|
+
gap: 12px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.files-app__header-title {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: 12px;
|
|
47
|
+
font-size: 15px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.files-app__header-title i {
|
|
51
|
+
font-size: 18px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.files-app__header-text {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
gap: 2px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.files-app__header-primary {
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.files-app__header-sub {
|
|
65
|
+
font-size: 12px;
|
|
66
|
+
color: var(--muted-color);
|
|
67
|
+
word-break: break-all;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.files-app__header-actions {
|
|
71
|
+
display: flex;
|
|
72
|
+
gap: 8px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.files-app__save {
|
|
76
|
+
display: inline-flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: 6px;
|
|
79
|
+
padding: 6px 12px;
|
|
80
|
+
border-radius: 6px;
|
|
81
|
+
border: 1px solid transparent;
|
|
82
|
+
background: var(--accent-color);
|
|
83
|
+
color: #ffffff;
|
|
84
|
+
font-weight: 600;
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.files-app__meta {
|
|
90
|
+
display: inline-flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
gap: 6px;
|
|
93
|
+
padding: 6px 12px;
|
|
94
|
+
border-radius: 6px;
|
|
95
|
+
border: 1px solid var(--border-color);
|
|
96
|
+
background: transparent;
|
|
97
|
+
color: var(--text-color);
|
|
98
|
+
font-weight: 600;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
transition: transform 0.15s ease, background 0.15s ease;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.files-app__meta:focus-visible {
|
|
104
|
+
outline: 2px solid var(--accent-color);
|
|
105
|
+
outline-offset: 2px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.files-app__meta:hover {
|
|
109
|
+
background: var(--accent-color-soft);
|
|
110
|
+
transform: translateY(-1px);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.files-app__save[disabled] {
|
|
114
|
+
opacity: 0.55;
|
|
115
|
+
cursor: not-allowed;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.files-app__save:not([disabled]):hover {
|
|
119
|
+
box-shadow: 0 8px 18px var(--accent-color-shadow);
|
|
120
|
+
transform: translateY(-1px);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.files-app__body {
|
|
124
|
+
flex: 1;
|
|
125
|
+
display: flex;
|
|
126
|
+
min-height: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.files-app__sidebar {
|
|
130
|
+
width: 280px;
|
|
131
|
+
background: var(--sidebar-color);
|
|
132
|
+
border-right: 1px solid var(--border-color);
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.files-app__sidebar-scroll {
|
|
138
|
+
flex: 1;
|
|
139
|
+
overflow: auto;
|
|
140
|
+
padding: 12px 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.files-app__main {
|
|
144
|
+
flex: 1;
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
background: var(--surface-color);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.files-app__tabs:empty {
|
|
151
|
+
display: none;
|
|
152
|
+
}
|
|
153
|
+
.files-app__tabs {
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
gap: 4px;
|
|
157
|
+
padding: 8px 10px;
|
|
158
|
+
border-bottom: 1px solid var(--border-color);
|
|
159
|
+
overflow-x: auto;
|
|
160
|
+
white-space: nowrap;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.files-app__tab {
|
|
164
|
+
position: relative;
|
|
165
|
+
display: inline-flex;
|
|
166
|
+
align-items: center;
|
|
167
|
+
gap: 6px;
|
|
168
|
+
padding: 6px 12px;
|
|
169
|
+
border-radius: 6px;
|
|
170
|
+
border: 1px solid transparent;
|
|
171
|
+
background: transparent;
|
|
172
|
+
color: var(--text-color);
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
font-size: 13px;
|
|
175
|
+
transition: background 0.15s ease, border 0.15s ease;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.files-app__tab:hover {
|
|
179
|
+
background: rgba(127, 91, 243, 0.08);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.files-app__tab--active {
|
|
183
|
+
background: rgba(127, 91, 243, 0.14);
|
|
184
|
+
border-color: rgba(127, 91, 243, 0.25);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.files-app__tab--stale {
|
|
188
|
+
border-color: rgba(249, 115, 22, 0.45);
|
|
189
|
+
background: rgba(249, 115, 22, 0.18);
|
|
190
|
+
}
|
|
191
|
+
.files-app__tab--stale .files-app__tab-label::after {
|
|
192
|
+
content: ' •';
|
|
193
|
+
color: #f97316;
|
|
194
|
+
font-weight: 600;
|
|
195
|
+
}
|
|
196
|
+
body.dark .files-app__tab--stale {
|
|
197
|
+
border-color: rgba(250, 204, 21, 0.45);
|
|
198
|
+
background: rgba(250, 204, 21, 0.18);
|
|
199
|
+
}
|
|
200
|
+
body.dark .files-app__tab--stale .files-app__tab-label::after {
|
|
201
|
+
color: #facc15;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.files-app__tab-close {
|
|
205
|
+
border: none;
|
|
206
|
+
background: none;
|
|
207
|
+
color: inherit;
|
|
208
|
+
cursor: pointer;
|
|
209
|
+
font-size: 13px;
|
|
210
|
+
padding: 0;
|
|
211
|
+
line-height: 1;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.files-app__tab--dirty::after {
|
|
215
|
+
content: '•';
|
|
216
|
+
color: var(--accent-color);
|
|
217
|
+
margin-left: 4px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.files-app__editor {
|
|
221
|
+
position: relative;
|
|
222
|
+
flex: 1;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.files-app__editor .ace_editor {
|
|
226
|
+
position: absolute;
|
|
227
|
+
inset: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.files-app__status {
|
|
231
|
+
padding: 6px 12px;
|
|
232
|
+
font-size: 12px;
|
|
233
|
+
color: var(--muted-color);
|
|
234
|
+
border-top: 1px solid var(--border-color);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.files-app__tree {
|
|
238
|
+
list-style: none;
|
|
239
|
+
padding: 0 12px;
|
|
240
|
+
margin: 0;
|
|
241
|
+
font-size: 13px;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.files-app__tree-item {
|
|
245
|
+
margin: 0;
|
|
246
|
+
padding: 0;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.files-app__tree-row {
|
|
250
|
+
width: 100%;
|
|
251
|
+
display: flex;
|
|
252
|
+
align-items: center;
|
|
253
|
+
gap: 8px;
|
|
254
|
+
padding: 4px 8px;
|
|
255
|
+
border-radius: 4px;
|
|
256
|
+
background: none;
|
|
257
|
+
border: none;
|
|
258
|
+
color: inherit;
|
|
259
|
+
text-align: left;
|
|
260
|
+
cursor: pointer;
|
|
261
|
+
transition: background 0.1s ease;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.files-app__tree-row:hover,
|
|
265
|
+
.files-app__tree-row:focus-visible {
|
|
266
|
+
background: rgba(127, 91, 243, 0.12);
|
|
267
|
+
outline: none;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.files-app__tree-row[data-selected='true'] {
|
|
271
|
+
background: rgba(127, 91, 243, 0.2);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.files-app__tree-row i {
|
|
275
|
+
width: 16px;
|
|
276
|
+
text-align: center;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.files-app__tree-children {
|
|
280
|
+
list-style: none;
|
|
281
|
+
margin: 0;
|
|
282
|
+
padding: 0 0 0 16px;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.files-app__tree-item[data-type='directory'] > .files-app__tree-children {
|
|
286
|
+
display: none;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.files-app__tree-item[data-expanded='true'] > .files-app__tree-children {
|
|
290
|
+
display: block;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.files-app__empty-state {
|
|
294
|
+
padding: 16px;
|
|
295
|
+
font-size: 13px;
|
|
296
|
+
color: var(--muted-color);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
@media (max-width: 900px) {
|
|
300
|
+
.files-app__body {
|
|
301
|
+
flex-direction: column;
|
|
302
|
+
}
|
|
303
|
+
.files-app__sidebar {
|
|
304
|
+
width: 100%;
|
|
305
|
+
max-height: 260px;
|
|
306
|
+
border-right: none;
|
|
307
|
+
border-bottom: 1px solid var(--border-color);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.files-app__status[data-state='error'] {
|
|
312
|
+
color: #ef4444;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.files-app__status[data-state='success'] {
|
|
316
|
+
color: #10b981;
|
|
317
|
+
}
|