pinokiod 1.3.97 → 1.3.98

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.
@@ -16,6 +16,7 @@ class C {
16
16
  => cloudflared tunnel --url http://localhost:8080
17
17
  */
18
18
 
19
+ console.log("*tunnel", req.params)
19
20
 
20
21
  let pipe_uri
21
22
  if (req.params.passcode) {
@@ -64,6 +64,7 @@ class Local {
64
64
  */
65
65
 
66
66
  let current_env = await Environment.get2(req.parent.path, kernel)
67
+ console.log({ current_env })
67
68
 
68
69
  // if the key at current_env.PINOKIO_SHARE_VAR (by default it's 'url') is the variable being set, trigger the share logic
69
70
  if (current_env.PINOKIO_SHARE_VAR && current_env.PINOKIO_SHARE_VAR in req.params) {
@@ -293,10 +293,12 @@ const init_folders = async (homedir) => {
293
293
 
294
294
  // Get the actual environment variable at specific path
295
295
  const get2 = async (filepath, kernel) => {
296
+ console.log("Get2")
296
297
  let api_path = Util.api_path(filepath, kernel)
297
298
  let default_env = await get(kernel.homedir)
298
299
  let api_env = await get(api_path)
299
- let current_env = Object.assign(process.env, default_env, api_env)
300
+ console.log({ api_path, default_env, api_env, process_env: process.env })
301
+ let current_env = Object.assign({}, process.env, default_env, api_env)
300
302
  return current_env
301
303
  }
302
304
  const get = async (homedir) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.3.97",
3
+ "version": "1.3.98",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@ body {
15
15
  color: white;
16
16
  }
17
17
  main {
18
- max-width: 500px;
18
+ max-width: 300px;
19
19
  width: 100%;
20
20
  text-align: center;
21
21
  text-transform: lowercase;
@@ -35,8 +35,8 @@ main input {
35
35
  /*
36
36
  background: rgba(0,0,0,0.06);
37
37
  */
38
- font-size: 14px;
39
- border-radius: 0;
38
+ font-size: 16px;
39
+ border-radius: 10px 0 0 10px;
40
40
 
41
41
  }
42
42
  main button {
@@ -45,6 +45,8 @@ main button {
45
45
  padding: 10px;
46
46
  box-sizing: border-box;
47
47
  border: none;
48
+ font-size: 16px;
49
+ border-radius: 0 10px 10px 0;
48
50
  }
49
51
  .error {
50
52
  border-left: 3px solid red;
@@ -67,7 +69,7 @@ h1 {
67
69
  -->
68
70
  <h1>PINOKIO</h1>
69
71
  <form method="POST" action="/pinokio/login">
70
- <input autofocus placeholder="enter passcode" type="password" name="password" required>
72
+ <input autofocus placeholder="Enter passcode" type="password" name="password" required>
71
73
  <button type="submit">Login</button>
72
74
  </form>
73
75
  <% if (error) { %>
@@ -173,6 +173,7 @@ h1 {
173
173
  font-size: 50px;
174
174
  font-family: georgia;
175
175
  font-style: italic;
176
+ padding-bottom: 20px;
176
177
  }
177
178
  footer {
178
179
  background: none;
@@ -263,6 +264,7 @@ document.addEventListener("DOMContentLoaded", async () => {
263
264
  </header>
264
265
  <% } %>
265
266
  <div id='editor' class='<%=init ? "hidden" : ''%>'>
267
+ <h1>Configure</h1>
266
268
  <% items.forEach((item) => { %>
267
269
  <% if (item.type === "comment") { %>
268
270
  <div class='comment'><%=item.val.replaceAll(/^[ #]+/g, "")%></div>
@@ -74,9 +74,10 @@ td.key {
74
74
 
75
75
  }
76
76
  #editor {
77
+ margin: 0 auto;
77
78
  box-sizing: border-box;
78
79
  max-width: 800px;
79
- padding: 20px;
80
+ padding: 50px;
80
81
  }
81
82
  header .runner {
82
83
  padding: 10px 0 0;
@@ -203,6 +204,12 @@ body.dark .cloudflare-running {
203
204
  box-sizing: border-box;
204
205
  border: 1px solid rgba(0,0,0,0.1);
205
206
  }
207
+ h1 {
208
+ font-size: 50px;
209
+ font-family: georgia;
210
+ font-style: italic;
211
+ padding-bottom: 10px;
212
+ }
206
213
 
207
214
  </style>
208
215
  <script>