pinokiod 2.1.5 → 2.1.6
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/index.js +2 -0
- package/server/views/env_editor.ejs +34 -4
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -2219,6 +2219,7 @@ class Server {
|
|
|
2219
2219
|
|
|
2220
2220
|
|
|
2221
2221
|
res.render("env_editor", {
|
|
2222
|
+
home: true,
|
|
2222
2223
|
config: null,
|
|
2223
2224
|
name: null,
|
|
2224
2225
|
init: null,
|
|
@@ -2250,6 +2251,7 @@ class Server {
|
|
|
2250
2251
|
}
|
|
2251
2252
|
|
|
2252
2253
|
res.render("env_editor", {
|
|
2254
|
+
home: null,
|
|
2253
2255
|
config,
|
|
2254
2256
|
name,
|
|
2255
2257
|
init: req.query ? req.query.init : null,
|
|
@@ -92,6 +92,12 @@ td.key {
|
|
|
92
92
|
<% } %>
|
|
93
93
|
|
|
94
94
|
header .runner {
|
|
95
|
+
display: flex;
|
|
96
|
+
}
|
|
97
|
+
header .runner .btn {
|
|
98
|
+
display: block;
|
|
99
|
+
margin-left: 10px;
|
|
100
|
+
|
|
95
101
|
}
|
|
96
102
|
.disabled {
|
|
97
103
|
opacity: 0.7;
|
|
@@ -179,11 +185,27 @@ footer {
|
|
|
179
185
|
background: none;
|
|
180
186
|
padding: 0;
|
|
181
187
|
text-align: right;
|
|
182
|
-
display:
|
|
183
|
-
margin
|
|
188
|
+
display: flex;
|
|
189
|
+
margin: 10px 0 20px 0;
|
|
184
190
|
}
|
|
185
191
|
footer .btn {
|
|
186
192
|
margin-left: 10px;
|
|
193
|
+
display: inline-block;
|
|
194
|
+
-webkit-appearance: button;
|
|
195
|
+
-moz-appearance: button;
|
|
196
|
+
appearance: button;
|
|
197
|
+
|
|
198
|
+
}
|
|
199
|
+
footer .btn.go-home {
|
|
200
|
+
margin-left: 0px;
|
|
201
|
+
}
|
|
202
|
+
.btn.home-button {
|
|
203
|
+
background: none !important;
|
|
204
|
+
margin: 0 !important;
|
|
205
|
+
font-size: 16px !important;
|
|
206
|
+
}
|
|
207
|
+
#editor {
|
|
208
|
+
height: auto;
|
|
187
209
|
}
|
|
188
210
|
</style>
|
|
189
211
|
<script>
|
|
@@ -246,6 +268,8 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
246
268
|
</div>
|
|
247
269
|
<% } %>
|
|
248
270
|
<footer>
|
|
271
|
+
<a href="/" class='btn go-home'><i class='fa-solid fa-home'></i> home</a>
|
|
272
|
+
<div class='flexible'></div>
|
|
249
273
|
<button id='customize' class='btn'><i class="fa-solid fa-gear"></i> Customize</button>
|
|
250
274
|
<div id='save' class='btn'>
|
|
251
275
|
<span class='save'><i class="fa-solid fa-check"></i> Install</span>
|
|
@@ -255,16 +279,22 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
255
279
|
<% } else { %>
|
|
256
280
|
<header class='navheader grabbable'>
|
|
257
281
|
<div class='runner'>
|
|
282
|
+
<% if (home) { %>
|
|
283
|
+
<a class='home-button btn' href="/"><i class='fa-solid fa-home'></i></a>
|
|
284
|
+
<% } %>
|
|
285
|
+
<div class='flexible'></div>
|
|
286
|
+
<a class='btn' href="<%=editorpath%>"><i class="fa-solid fa-pen-to-square"></i> Edit file</a>
|
|
287
|
+
<button class='btn' id='open-fs' data-filepath="<%=filepath%>"><i class="fa-solid fa-eye"></i> Open in File Explorer</button>
|
|
258
288
|
<div id='save' class='btn'>
|
|
259
289
|
<span class='save'><i class="fa-solid fa-check"></i> Save</span>
|
|
260
290
|
</div>
|
|
261
|
-
<a class='btn' href="<%=editorpath%>"><i class="fa-solid fa-pen-to-square"></i> Edit file</a>
|
|
262
|
-
<button class='btn' id='open-fs' data-filepath="<%=filepath%>"><i class="fa-solid fa-eye"></i> Open in File Explorer</button>
|
|
263
291
|
</div>
|
|
264
292
|
</header>
|
|
265
293
|
<% } %>
|
|
266
294
|
<div id='editor' class='<%=init ? "hidden" : ''%>'>
|
|
295
|
+
<!--
|
|
267
296
|
<h1>Configure</h1>
|
|
297
|
+
-->
|
|
268
298
|
<% items.forEach((item) => { %>
|
|
269
299
|
<% if (item.type === "comment") { %>
|
|
270
300
|
<div class='comment'><%=item.val.replaceAll(/^[ #]+/g, "")%></div>
|