pinokiod 1.0.12 → 1.0.14

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": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -265,6 +265,7 @@ class Server {
265
265
  if (pathComponents.length === 0 && req.query.mode === "explore") {
266
266
  res.render("explore", {
267
267
  version: this.version,
268
+ schema: this.kernel.schema,
268
269
  logo: this.logo,
269
270
  theme: this.theme,
270
271
  agent: this.agent,
@@ -53,7 +53,6 @@ const install = async (name, url, term, socket, options) => {
53
53
  url = url + ".git"
54
54
  }
55
55
 
56
- console.log({ url , branch })
57
56
  let cmd
58
57
  if (branch) {
59
58
  cmd = `git clone -b ${branch} ${url} ${name}`
@@ -145,9 +145,12 @@ body main iframe {
145
145
  </header>
146
146
  <main>
147
147
  <% if (theme === "dark") { %>
148
- <iframe name="<%=version.pinokiod%>" src="https://pinokio.computer/dark"></iframe>
148
+ <iframe name="<%=schema%>" src="https://pinokio.computer/dark"></iframe>
149
149
  <% } else { %>
150
- <iframe name="<%=version.pinokiod%>" src="https://pinokio.computer/app"></iframe>
150
+ <!--
151
+ <iframe name="<%=schema%>" src="https://pinokio.computer/app"></iframe>
152
+ -->
153
+ <iframe name="<%=schema%>" src="http://127.0.0.1:3000/app"></iframe>
151
154
  <% } %>
152
155
  </main>
153
156
  <link href="/xterm.min.css" rel="stylesheet" />
@@ -251,6 +251,7 @@ document.addEventListener("DOMContentLoaded", async () => {
251
251
  let val = document.querySelector(`[name=home]`).value
252
252
  if (/.*\s+.*/.test(val)) {
253
253
  alert("Please use a home path that does NOT include a space")
254
+ document.querySelector(".homepath").focus()
254
255
  } else {
255
256
  document.querySelector(".loading").classList.remove("hidden")
256
257
  document.querySelector("#save").classList.add("hidden")