pinokiod 1.0.57 → 1.0.59
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/index.js +1 -37
- package/package.json +1 -1
- package/server/views/editor.ejs +0 -30
- package/server/views/fullscreen_editor.ejs +0 -33
package/kernel/index.js
CHANGED
|
@@ -24,7 +24,7 @@ const VARS = {
|
|
|
24
24
|
//const memwatch = require('@airbnb/node-memwatch');
|
|
25
25
|
class Kernel {
|
|
26
26
|
//schema = ">=1.0.0"
|
|
27
|
-
schema = "
|
|
27
|
+
schema = "<=1.1.0"
|
|
28
28
|
constructor(store) {
|
|
29
29
|
this.fetch = fetch
|
|
30
30
|
this.store = store
|
|
@@ -39,42 +39,6 @@ class Kernel {
|
|
|
39
39
|
this.procs[uri] = undefined
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
// on(name, event) {
|
|
43
|
-
// if (name === "refresh_memory") {
|
|
44
|
-
// let urlSet = new Set()
|
|
45
|
-
// // start relevant proxies
|
|
46
|
-
// for(let scriptPath in this.memory.local) {
|
|
47
|
-
// let local = this.memory.local[scriptPath]
|
|
48
|
-
// // if 'url' is set
|
|
49
|
-
// // 1. check if a proxy is already running
|
|
50
|
-
// // 2. if running => ignore
|
|
51
|
-
// // 3. if not running => start proxy
|
|
52
|
-
// if (local.url) {
|
|
53
|
-
// urlSet.add(local.url)
|
|
54
|
-
// }
|
|
55
|
-
// let local = this.api.proxies[parentPath]
|
|
56
|
-
// }
|
|
57
|
-
//
|
|
58
|
-
// // get all running urls
|
|
59
|
-
//
|
|
60
|
-
//
|
|
61
|
-
// // stop relevant proxies
|
|
62
|
-
//
|
|
63
|
-
// for(let scriptPath in this.api.proxies) {
|
|
64
|
-
// // 1. get all the proxies for a scriptPath
|
|
65
|
-
// let proxies = this.api.proxies[scriptPath]
|
|
66
|
-
// // 2. iterate through the proxies
|
|
67
|
-
// for(let proxy of proxies) {
|
|
68
|
-
// if (urlSet.has(proxy.target)) {
|
|
69
|
-
// // the proxy target is part of the urlSet => don't do anything since all the relevant proxies have started above
|
|
70
|
-
// } else {
|
|
71
|
-
// // the proxy target is not part of the urlSet => stop the proxy
|
|
72
|
-
// }
|
|
73
|
-
// }
|
|
74
|
-
// // - if the proxy.target is included in one of the uris in one of the local variables
|
|
75
|
-
// }
|
|
76
|
-
// }
|
|
77
|
-
// }
|
|
78
42
|
local(...args) {
|
|
79
43
|
// get local variables at path
|
|
80
44
|
let v = this.memory.local[path.resolve(...args)]
|
package/package.json
CHANGED
package/server/views/editor.ejs
CHANGED
|
@@ -722,31 +722,12 @@ const reloadMemory = async () => {
|
|
|
722
722
|
<a class='path' href="<%=path.path%>"><%-path.name%></a>
|
|
723
723
|
<% } %>
|
|
724
724
|
<% }) %>
|
|
725
|
-
<!--
|
|
726
|
-
<div class='flexible'></div>
|
|
727
|
-
<button class='btn2' id='explore'><div><i class="fa-solid fa-globe"></i></div><div>Discover</div></button>
|
|
728
|
-
<button class='btn2' id='report'><div><i class="fa-solid fa-bug"></i></div><div>Report Bug</div></button>
|
|
729
|
-
<a class='btn2' href="/?mode=settings"><div><i class="fa-solid fa-gear"></i></div><div>Settings</div></a>
|
|
730
|
-
<button id='new-window' title='open a new window'><i class="fa-solid fa-plus"></i></button>
|
|
731
|
-
-->
|
|
732
725
|
</h1>
|
|
733
726
|
<% if (false) { %>
|
|
734
727
|
<a class='gitremote' data-filepath="<%=filepath%>"><%=filepath%></a>
|
|
735
728
|
<div class='pinokiourl'><i class="fa-solid fa-link"></i><%=pinokioPath%></div>
|
|
736
729
|
<% } %>
|
|
737
730
|
<% if (!install_required) { %>
|
|
738
|
-
<!--
|
|
739
|
-
<div class='runner'>
|
|
740
|
-
<div class='btn run <%= mod && runnable ? "" : "hidden" %>'>
|
|
741
|
-
<span class='play'><i class="fa-solid fa-play"></i> Run</span>
|
|
742
|
-
<span class='starting hidden'><i class="fa-solid fa-circle-notch fa-spin"></i> Starting...</span>
|
|
743
|
-
<span class='stop hidden'><i class="fa-solid fa-stop"></i> Stop</span>
|
|
744
|
-
</div>
|
|
745
|
-
<div id='save' class='btn disabled'>
|
|
746
|
-
<span class='save'><i class="fa-solid fa-check"></i> Save</span>
|
|
747
|
-
</div>
|
|
748
|
-
</div>
|
|
749
|
-
-->
|
|
750
731
|
<div class='runner'>
|
|
751
732
|
<div class='btn run <%= mod && runnable ? "" : "hidden" %>'>
|
|
752
733
|
<span class='play'><i class="fa-solid fa-play"></i> Run</span>
|
|
@@ -760,11 +741,6 @@ const reloadMemory = async () => {
|
|
|
760
741
|
<div id='save' class='btn disabled'>
|
|
761
742
|
<span class='save'><i class="fa-solid fa-check"></i> Save</span>
|
|
762
743
|
</div>
|
|
763
|
-
<% if (proxies) { %>
|
|
764
|
-
<% proxies.forEach((proxy) => { %>
|
|
765
|
-
<a class='btn' target="_blank" href="<%=proxy.proxy%>"><i class='fa-solid fa-up-right-from-square'></i> Proxy <%=proxy.name ? "(" + proxy.name + ")" : proxy.proxy%></a>
|
|
766
|
-
<% }) %>
|
|
767
|
-
<% } %>
|
|
768
744
|
</div>
|
|
769
745
|
<% } %>
|
|
770
746
|
</header>
|
|
@@ -849,12 +825,6 @@ const reloadMemory = async () => {
|
|
|
849
825
|
<% } %>
|
|
850
826
|
<div id='terminal'></div>
|
|
851
827
|
</div>
|
|
852
|
-
<!--
|
|
853
|
-
<div class='terminal-container'>
|
|
854
|
-
<div id='terminal'></div>
|
|
855
|
-
<div id='terminal-resize'><i class="fa-solid fa-up-right-and-down-left-from-center"></i></div>
|
|
856
|
-
</div>
|
|
857
|
-
-->
|
|
858
828
|
</div>
|
|
859
829
|
<footer><b>Ready</b></footer>
|
|
860
830
|
<% } %>
|
|
@@ -714,26 +714,6 @@ const reloadMemory = async () => {
|
|
|
714
714
|
<body class='<%=theme%>'>
|
|
715
715
|
<% } %>
|
|
716
716
|
<header>
|
|
717
|
-
<!--
|
|
718
|
-
<h1>
|
|
719
|
-
<% paths.forEach((path) => { %>
|
|
720
|
-
<% if (path.action) { %>
|
|
721
|
-
<a class='path nav-button' id="<%=path.id%>" onclick="<%=path.action%>"><%-path.name%></a>
|
|
722
|
-
<% } else if (path.path) { %>
|
|
723
|
-
<a class='path' href="<%=path.path%>"><%-path.name%></a>
|
|
724
|
-
<% } %>
|
|
725
|
-
<% }) %>
|
|
726
|
-
<div class='flexible'></div>
|
|
727
|
-
<button class='btn2' id='explore'><div><i class="fa-solid fa-globe"></i></div><div>Discover</div></button>
|
|
728
|
-
<button class='btn2' id='report'><div><i class="fa-solid fa-bug"></i></div><div>Report Bug</div></button>
|
|
729
|
-
<a class='btn2' href="/?mode=settings"><div><i class="fa-solid fa-gear"></i></div><div>Settings</div></a>
|
|
730
|
-
<button id='new-window' title='open a new window'><i class="fa-solid fa-plus"></i></button>
|
|
731
|
-
</h1>
|
|
732
|
-
<a class='gitremote' data-filepath="<%=filepath%>"><%=filepath%></a>
|
|
733
|
-
<% if (pinokioPath) { %>
|
|
734
|
-
<div class='pinokiourl'><i class="fa-solid fa-link"></i><%=pinokioPath%></div>
|
|
735
|
-
<% } %>
|
|
736
|
-
-->
|
|
737
717
|
<% if (!install_required) { %>
|
|
738
718
|
<div class='runner'>
|
|
739
719
|
<div class='btn run <%= mod && runnable ? "" : "hidden" %>'>
|
|
@@ -742,19 +722,6 @@ const reloadMemory = async () => {
|
|
|
742
722
|
<span class='stop hidden'><i class="fa-solid fa-stop"></i> Stop</span>
|
|
743
723
|
</div>
|
|
744
724
|
<button class='btn' id='open-fs' data-filepath="<%=filepath%>"><i class="fa-solid fa-eye"></i> View File</button>
|
|
745
|
-
<% if (proxies) { %>
|
|
746
|
-
<% proxies.forEach((proxy) => { %>
|
|
747
|
-
<a class='btn' target="_blank" href="<%=proxy.proxy%>"><i class='fa-solid fa-up-right-from-square'></i> Proxy <%=proxy.name ? "(" + proxy.name + ")" : proxy.proxy%></a>
|
|
748
|
-
<% }) %>
|
|
749
|
-
<% } %>
|
|
750
|
-
<!--
|
|
751
|
-
<button class='btn' id='source' data-editor-url="<%=editorUrl%>">Navigate</button>
|
|
752
|
-
-->
|
|
753
|
-
<!--
|
|
754
|
-
<div id='save' class='btn disabled'>
|
|
755
|
-
<span class='save'><i class="fa-solid fa-check"></i> Save</span>
|
|
756
|
-
</div>
|
|
757
|
-
-->
|
|
758
725
|
</div>
|
|
759
726
|
<% } %>
|
|
760
727
|
</header>
|