pinokiod 2.15.18 → 2.15.19
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/views/editor.ejs +20 -20
- package/server/views/fullscreen_editor.ejs +20 -20
package/package.json
CHANGED
package/server/views/editor.ejs
CHANGED
|
@@ -744,26 +744,26 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
744
744
|
})
|
|
745
745
|
})
|
|
746
746
|
const reloadMemory = async () => {
|
|
747
|
-
let url = "/pinokio/memory?filepath=" + encodeURI("<%-filepath%>")
|
|
748
|
-
console.log("Url", url)
|
|
749
|
-
let memory = await fetch(url).then((res) => {
|
|
750
|
-
return res.json()
|
|
751
|
-
})
|
|
752
|
-
console.log("memory", memory)
|
|
753
|
-
document.querySelector(".memory table").innerHTML = memory.map((m) => {
|
|
754
|
-
let html = `<tr><td>local.${m.key}</td><td>${m.val}</td>`
|
|
755
|
-
if (m.localhost) {
|
|
756
|
-
if (m.tunnel) {
|
|
757
|
-
html += `<td>${m.tunnel}</td>
|
|
758
|
-
<td><a class='btn2' target="_blank" href="${m.tunnel}"><i class="fa-solid fa-arrow-up-right-from-square"></i> Open</a></td>
|
|
759
|
-
<td><button data-url="${m.val}" class='btn2 tunnel-stop'><i class="fa-solid fa-lock-closed"></i> Make Private</button></td>`
|
|
760
|
-
} else {
|
|
761
|
-
html += `<td><button data-url="${m.val}" class='btn2 tunnel'><i class="fa-solid fa-lock-open"></i> Make Public</button></td>`
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
html += "</tr>"
|
|
765
|
-
return html
|
|
766
|
-
}).join("")
|
|
747
|
+
// let url = "/pinokio/memory?filepath=" + encodeURI("<%-filepath%>")
|
|
748
|
+
// console.log("Url", url)
|
|
749
|
+
// let memory = await fetch(url).then((res) => {
|
|
750
|
+
// return res.json()
|
|
751
|
+
// })
|
|
752
|
+
// console.log("memory", memory)
|
|
753
|
+
// document.querySelector(".memory table").innerHTML = memory.map((m) => {
|
|
754
|
+
// let html = `<tr><td>local.${m.key}</td><td>${m.val}</td>`
|
|
755
|
+
// if (m.localhost) {
|
|
756
|
+
// if (m.tunnel) {
|
|
757
|
+
// html += `<td>${m.tunnel}</td>
|
|
758
|
+
// <td><a class='btn2' target="_blank" href="${m.tunnel}"><i class="fa-solid fa-arrow-up-right-from-square"></i> Open</a></td>
|
|
759
|
+
// <td><button data-url="${m.val}" class='btn2 tunnel-stop'><i class="fa-solid fa-lock-closed"></i> Make Private</button></td>`
|
|
760
|
+
// } else {
|
|
761
|
+
// html += `<td><button data-url="${m.val}" class='btn2 tunnel'><i class="fa-solid fa-lock-open"></i> Make Public</button></td>`
|
|
762
|
+
// }
|
|
763
|
+
// }
|
|
764
|
+
// html += "</tr>"
|
|
765
|
+
// return html
|
|
766
|
+
// }).join("")
|
|
767
767
|
}
|
|
768
768
|
</script>
|
|
769
769
|
</head>
|
|
@@ -708,26 +708,26 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
708
708
|
})
|
|
709
709
|
})
|
|
710
710
|
const reloadMemory = async () => {
|
|
711
|
-
let url = "/pinokio/memory?filepath=<%=encodedFilePath%>"
|
|
712
|
-
console.log("Url", url)
|
|
713
|
-
let memory = await fetch(url).then((res) => {
|
|
714
|
-
return res.json()
|
|
715
|
-
})
|
|
716
|
-
console.log("memory", memory)
|
|
717
|
-
document.querySelector(".memory table").innerHTML = memory.map((m) => {
|
|
718
|
-
let html = `<tr><td>local.${m.key}</td><td>${m.val}</td>`
|
|
719
|
-
if (m.localhost) {
|
|
720
|
-
if (m.tunnel) {
|
|
721
|
-
html += `<td>${m.tunnel}</td>
|
|
722
|
-
<td><a class='btn2' target="_blank" href="${m.tunnel}"><i class="fa-solid fa-arrow-up-right-from-square"></i> Open</a></td>
|
|
723
|
-
<td><button data-url="${m.val}" class='btn2 tunnel-stop'><i class="fa-solid fa-lock-closed"></i> Make Private</button></td>`
|
|
724
|
-
} else {
|
|
725
|
-
html += `<td><button data-url="${m.val}" class='btn2 tunnel'><i class="fa-solid fa-lock-open"></i> Make Public</button></td>`
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
html += "</tr>"
|
|
729
|
-
return html
|
|
730
|
-
}).join("")
|
|
711
|
+
// let url = "/pinokio/memory?filepath=<%=encodedFilePath%>"
|
|
712
|
+
// console.log("Url", url)
|
|
713
|
+
// let memory = await fetch(url).then((res) => {
|
|
714
|
+
// return res.json()
|
|
715
|
+
// })
|
|
716
|
+
// console.log("memory", memory)
|
|
717
|
+
// document.querySelector(".memory table").innerHTML = memory.map((m) => {
|
|
718
|
+
// let html = `<tr><td>local.${m.key}</td><td>${m.val}</td>`
|
|
719
|
+
// if (m.localhost) {
|
|
720
|
+
// if (m.tunnel) {
|
|
721
|
+
// html += `<td>${m.tunnel}</td>
|
|
722
|
+
// <td><a class='btn2' target="_blank" href="${m.tunnel}"><i class="fa-solid fa-arrow-up-right-from-square"></i> Open</a></td>
|
|
723
|
+
// <td><button data-url="${m.val}" class='btn2 tunnel-stop'><i class="fa-solid fa-lock-closed"></i> Make Private</button></td>`
|
|
724
|
+
// } else {
|
|
725
|
+
// html += `<td><button data-url="${m.val}" class='btn2 tunnel'><i class="fa-solid fa-lock-open"></i> Make Public</button></td>`
|
|
726
|
+
// }
|
|
727
|
+
// }
|
|
728
|
+
// html += "</tr>"
|
|
729
|
+
// return html
|
|
730
|
+
// }).join("")
|
|
731
731
|
}
|
|
732
732
|
|
|
733
733
|
</script>
|