pinokiod 3.9.31 → 3.9.33

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": "3.9.31",
3
+ "version": "3.9.33",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -3616,7 +3616,6 @@ class Server {
3616
3616
  })
3617
3617
  }))
3618
3618
  this.app.post("/prototype", this.upload.any(), ex(async (req, res) => {
3619
- console.log("POST /prototype")
3620
3619
  try {
3621
3620
  /*
3622
3621
  {
@@ -4358,7 +4357,6 @@ class Server {
4358
4357
  res.redirect(webpath)
4359
4358
  }))
4360
4359
  this.app.post("/pinokio/upload", this.upload.any(), ex(async (req, res) => {
4361
- console.log("POST /pinokio/upload")
4362
4360
  try {
4363
4361
 
4364
4362
 
@@ -4376,7 +4374,6 @@ class Server {
4376
4374
  let file = req.files[key]
4377
4375
  formData[file.fieldname] = file.buffer
4378
4376
  }
4379
- console.log({ formData })
4380
4377
 
4381
4378
  if (formData.edit) {
4382
4379
  if (formData.copy) {
@@ -4386,7 +4383,6 @@ class Server {
4386
4383
  let old_path = this.kernel.path("api", formData.old_path)
4387
4384
  let new_path = this.kernel.path("api", formData.new_path)
4388
4385
 
4389
- console.log({ old_path, new_path })
4390
4386
  await fs.promises.cp(old_path, new_path, { recursive: true })
4391
4387
 
4392
4388
  // 2. edit meta in the new_path
@@ -4399,7 +4395,6 @@ class Server {
4399
4395
  if (formData.old_path !== formData.new_path) {
4400
4396
  let old_path = this.kernel.path("api", formData.old_path)
4401
4397
  let new_path = this.kernel.path("api", formData.new_path)
4402
- console.log({ old_path, new_path })
4403
4398
  await fs.promises.rename(old_path, new_path)
4404
4399
  }
4405
4400
 
@@ -4416,13 +4411,11 @@ class Server {
4416
4411
  // 1. copy only
4417
4412
  let old_path = this.kernel.path("api", formData.old_path)
4418
4413
  let new_path = this.kernel.path("api", formData.new_path)
4419
- console.log({ old_path, new_path })
4420
4414
  await fs.promises.cp(old_path, new_path, { recursive: true })
4421
4415
  } else if (formData.move) {
4422
4416
  // 2. move only
4423
4417
  let old_path = this.kernel.path("api", formData.old_path)
4424
4418
  let new_path = this.kernel.path("api", formData.new_path)
4425
- console.log({ old_path, new_path })
4426
4419
  await fs.promises.rename(old_path, new_path)
4427
4420
  } else {
4428
4421
  // nothing
@@ -4435,7 +4428,6 @@ class Server {
4435
4428
  })
4436
4429
  } catch (e) {
4437
4430
  console.log("e", e)
4438
- console.log("e.message", e.message)
4439
4431
  res.status(500).json({ error: e.message })
4440
4432
  }
4441
4433
 
@@ -53,6 +53,41 @@
53
53
  */
54
54
  --dark-btn-color: whitesmoke;
55
55
  }
56
+
57
+
58
+
59
+
60
+ /* Firefox */
61
+ * {
62
+ scrollbar-width: auto;
63
+ scrollbar-color: black transparent;
64
+ }
65
+
66
+ /* Chrome, Edge, and Safari */
67
+ *::-webkit-scrollbar {
68
+ width: 12px;
69
+ }
70
+
71
+ *::-webkit-scrollbar-track {
72
+ background: white;
73
+ }
74
+
75
+ *::-webkit-scrollbar-thumb {
76
+ background-color: silver;
77
+ border-radius: 30px;
78
+ border: 3px solid transparent;
79
+ }
80
+
81
+ body.dark * {
82
+ scrollbar-color: silver transparent;
83
+ }
84
+ body.dark *::-webkit-scrollbar-track {
85
+ background: black;
86
+ }
87
+ body.dark *::-webkit-scrollbar-thumb {
88
+ background-color: black;
89
+ }
90
+
56
91
  @font-face {
57
92
  font-family: 'SpaceMono';
58
93
  src: url('./SpaceMono-Regular.ttf') format(truetype);
@@ -378,19 +378,23 @@ body.dark .open-menu, body.dark .browse {
378
378
  <div class='title'><%=item.name%></div>
379
379
  <div class='description'><%=item.description%></div>
380
380
  <div class='menu-btns'>
381
- <div>
382
- <button class='btn browse' data-src="<%=item.browser_url%>/browse">
383
- <i class='fa-solid fa-code'></i> Dev
384
- </button>
385
- <button class='btn open-menu'>
386
- <i class="fa-solid fa-bars"></i><span> Menu</span>
387
- </button>
388
- <div class='context-menu collapsed'>
389
- <div class='context-menu-wrapper'>
390
- <button class='btn copy-menu' data-src="<%=item.browser_url%>/browse">
391
- <i class='fa-solid fa-copy'></i> Copy
392
- </button>
393
- </div>
381
+ <button class='btn browse' data-src="<%=item.browser_url%>/browse">
382
+ <i class='fa-solid fa-code'></i> Dev
383
+ </button>
384
+ <button class='btn open-menu'>
385
+ <i class="fa-solid fa-bars"></i><span> Menu</span>
386
+ </button>
387
+ <div class='context-menu collapsed'>
388
+ <div class='context-menu-wrapper'>
389
+ <button class='btn' data-filepath="<%=item.filepath%>">
390
+ <i class="fa-solid fa-folder-open"></i> Open</button>
391
+ </button>
392
+ <button class='btn copy-menu' data-src="<%=item.browser_url%>/browse">
393
+ <i class='fa-solid fa-copy'></i> Copy
394
+ </button>
395
+ <button class='btn edit-menu' data-src="<%=item.browser_url%>/browse">
396
+ <i class='fa-solid fa-pen-to-square'></i> Edit
397
+ </button>
394
398
  </div>
395
399
  </div>
396
400
  <% if (item.running_scripts) { %>