pinokiod 1.3.70 → 1.3.72

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.3.70",
3
+ "version": "1.3.72",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -1288,7 +1288,8 @@ class Server {
1288
1288
  base: "/",
1289
1289
  text: "Configure",
1290
1290
  href: `env/api/${name}/ENVIRONMENT`,
1291
- icon: "fa-solid fa-gear"
1291
+ icon: "fa-solid fa-gear",
1292
+ mode: "refresh"
1292
1293
  // }, {
1293
1294
  // base: "/",
1294
1295
  // text: "Public Share",
@@ -2120,13 +2121,13 @@ class Server {
2120
2121
  if (req.body.type) {
2121
2122
  if (req.body.type === "local") {
2122
2123
  await this.kernel.api.stopProxy({
2123
- uri: `http://127.0.0.1:${this.port}`
2124
+ uri: `http://localhost:${this.port}`
2124
2125
  })
2125
2126
  } else if (req.body.type === "cloudflare") {
2126
2127
  console.log("STOP CLOUDFLARE")
2127
2128
  await this.cf.stop({
2128
2129
  params: {
2129
- uri: `http://127.0.0.1:${this.port}`
2130
+ uri: `http://localhost:${this.port}`
2130
2131
  }
2131
2132
  }, (e) => {
2132
2133
  process.stdout.write(e.raw)
@@ -2146,11 +2147,11 @@ class Server {
2146
2147
  */
2147
2148
  if (req.body.type) {
2148
2149
  if (req.body.type === "local") {
2149
- await this.kernel.api.startProxy("/", `http://127.0.0.1:${this.port}`, "/")
2150
+ await this.kernel.api.startProxy("/", `http://localhost:${this.port}`, "/")
2150
2151
  } else if (req.body.type === "cloudflare") {
2151
2152
  let { uri } = await this.cf.tunnel({
2152
2153
  params: {
2153
- uri: `http://127.0.0.1:${this.port}`
2154
+ uri: `http://localhost:${this.port}`
2154
2155
  }
2155
2156
  }, (e) => {
2156
2157
  process.stdout.write(e.raw)
@@ -551,7 +551,7 @@ body.dark .loader-container {
551
551
  <a target="<%=src%>" href="<%=src%>" class='btn header-item frame-link' data-index="0">
552
552
  <div class='tab'><i class="fa-regular fa-folder-open"></i> Files</div>
553
553
  </a>
554
- <a target="/share/<%=name%>" href="/share/<%=name%>", class="btn header-item frame-link" data-index="1">
554
+ <a target="/share/<%=name%>" href="/share/<%=name%>", class="btn header-item frame-link" data-index="1" data-mode="refresh">
555
555
  <div class='tab'><i class="fa-solid fa-wifi"></i> Share</div>
556
556
  </a>
557
557
  </div>