pinokiod 2.15.22 → 2.15.23

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "2.15.22",
3
+ "version": "2.15.23",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -2464,21 +2464,6 @@ class Server {
2464
2464
  })
2465
2465
  } else {
2466
2466
 
2467
- let requires_instantiation = false
2468
- let pre_items = {}
2469
- if (config && config.pre) {
2470
- let env = await Environment.get2(filepath, this.kernel)
2471
- for(let item of config.pre) {
2472
- if (item.env) {
2473
- if (env[item.env]) {
2474
-
2475
- } else {
2476
- requires_instantiation = true
2477
- }
2478
- }
2479
- }
2480
- }
2481
- console.log({ requires_instantiation })
2482
2467
 
2483
2468
  res.render("env_editor", {
2484
2469
  home: null,
@@ -2490,8 +2475,6 @@ class Server {
2490
2475
  theme: this.theme,
2491
2476
  filepath,
2492
2477
  agent: this.agent,
2493
- pre_items,
2494
- requires_instantiation,
2495
2478
  })
2496
2479
  }
2497
2480
  //res.render("env_editor", {
@@ -305,31 +305,15 @@ document.addEventListener("DOMContentLoaded", async () => {
305
305
  </h1>
306
306
  </header>
307
307
  <% } %>
308
- <div id='editor' class='<%=init && !requires_instantiation ? "hidden" : ''%>'>
309
- <!--
310
- <h1>Configure</h1>
311
- -->
308
+ <div id='editor' class='<%=init ? "hidden" : ""%>'>
312
309
  <% items.forEach((item) => { %>
313
310
  <% if (item.type === "comment") { %>
314
311
  <div class='comment'><%=item.val.replaceAll(/^[ #]+/g, "")%></div>
315
312
  <% } else { %>
316
- <% if(pre_items[item.key]) { %>
317
- <div class='env-item highlighted'>
318
- <label for="<%=item.key%>"><%=item.key%></label>
319
- <% if (pre_items[item.key].title) { %>
320
- <div class='env-title'><%=pre_items[item.key].title%></div>
321
- <% } %>
322
- <% if (pre_items[item.key].description) { %>
323
- <div class='env-description'><%=pre_items[item.key].description%></div>
324
- <% } %>
325
- <input id="<%=item.key%>" type="text" value="<%=item.val%>">
326
- </div>
327
- <% } else { %>
328
- <div class='env-item'>
329
- <label for="<%=item.key%>"><%=item.key%></label>
330
- <input id="<%=item.key%>" type="text" value="<%=item.val%>">
331
- </div>
332
- <% } %>
313
+ <div class='env-item'>
314
+ <label for="<%=item.key%>"><%=item.key%></label>
315
+ <input id="<%=item.key%>" type="text" value="<%=item.val%>">
316
+ </div>
333
317
  <% } %>
334
318
  <% }) %>
335
319
  </div>