pinokiod 1.3.36 → 1.3.37

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.36",
3
+ "version": "1.3.37",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,7 +20,9 @@ class N {
20
20
  this.queue.push(notification)
21
21
  notification.show();
22
22
 
23
- this.audio.play()
23
+ if (!o.silent) {
24
+ this.audio.play()
25
+ }
24
26
 
25
27
  // Check if the queue exceeds the maximum limit
26
28
  if (this.queue.length > this.options.maxVisible) {
@@ -17,6 +17,8 @@
17
17
  <script src="/report.js"></script>
18
18
  <script src="/normalize.js"></script>
19
19
  <script src="/Socket.js"></script>
20
+ <script src="/noty.js"></script>
21
+ <script src="/notyq.js"></script>
20
22
  <% if (agent === "electron") { %>
21
23
  <link href="/electron.css" rel="stylesheet"/>
22
24
  <% } %>
@@ -88,6 +90,7 @@ aside {
88
90
  }
89
91
  main {
90
92
  flex-grow: 1;
93
+ min-height: 0;
91
94
  /*
92
95
  height: 100%;
93
96
  */
@@ -619,6 +622,7 @@ body.dark .loader-container {
619
622
  <script>
620
623
  let loaded = {}
621
624
  let cursorIndex = 0;
625
+ const n = new N()
622
626
  const getTarget = (href) => {
623
627
  let u
624
628
  if (href.startsWith("http")) {
@@ -1257,6 +1261,10 @@ document.querySelector("aside").addEventListener("click", async (e) => {
1257
1261
  console.log("packet", packet)
1258
1262
  if (packet.type === "result") {
1259
1263
  socket.close()
1264
+ n.Noty({
1265
+ text: `stopped ${src}`,
1266
+ silent: true
1267
+ })
1260
1268
  refresh(true)
1261
1269
  }
1262
1270
  })
@@ -132,7 +132,7 @@ body {
132
132
  <a class='btn2' href='https://discord.gg/TQdNwadtE4' target="_blank"><div><i class="fa-brands fa-discord"></i></div><div>Discord</div></a>
133
133
  <a class='btn2' href='https://twitter.com/cocktailpeanut' target="_blank"><div><i class="fa-brands fa-twitter"></i></div><div>Twitter</div></a>
134
134
  <a class='btn2' href="/?mode=settings"><div><i class="fa-solid fa-gear"></i></div><div>Settings</div></a>
135
- <button id='new-window' title='open a new window'><i class="fa-solid fa-plus"></i></button>
135
+ <button id='new-window' title='open a new window' class='btn2'><i class="fa-solid fa-plus"></i></button>
136
136
  </div>
137
137
  </h1>
138
138
  </h1>
@@ -140,7 +140,7 @@ body main iframe {
140
140
  <a class='btn2' href='https://twitter.com/cocktailpeanut' target="_blank"><div><i class="fa-brands fa-twitter"></i></div><div>Twitter</div></a>
141
141
  <a class='btn2' href="/?mode=settings"><div><i class="fa-solid fa-gear"></i></div><div>Settings</div></a>
142
142
  </div>
143
- <button id='new-window' title='open a new window'><i class="fa-solid fa-plus"></i></button>
143
+ <button id='new-window' title='open a new window' class='btn2'><i class="fa-solid fa-plus"></i></button>
144
144
  </h1>
145
145
  </header>
146
146
  <main>
@@ -641,7 +641,13 @@ document.addEventListener("click", (e) => {
641
641
  console.log("packet", packet)
642
642
  if (packet.type === "result") {
643
643
  socket.close()
644
- location.href = location.href
644
+ n.Noty({
645
+ text: `stopped ${src}`,
646
+ silent: true
647
+ })
648
+ setTimeout(() => {
649
+ location.href = location.href
650
+ }, 1000)
645
651
  }
646
652
  })
647
653
 
@@ -225,12 +225,14 @@ hr {
225
225
  <% } %>
226
226
  <% }) %>
227
227
  <div class='flexible'></div>
228
+ <!--
228
229
  <div class='nav-btns'>
229
230
  <button class='btn2' id='report'><div><i class="fa-solid fa-bug"></i></div><div>Report Bug</div></button>
230
231
  <a class='btn2' href='https://discord.gg/TQdNwadtE4' target="_blank"><div><i class="fa-brands fa-discord"></i></div><div>Discord</div></a>
231
232
  <a class='btn2' href='https://twitter.com/cocktailpeanut' target="_blank"><div><i class="fa-brands fa-twitter"></i></div><div>Twitter</div></a>
232
- <button id='new-window' title='open a new window'><i class="fa-solid fa-plus"></i></button>
233
+ <button id='new-window' title='open a new window' class='btn2'><i class="fa-solid fa-plus"></i></button>
233
234
  </div>
235
+ -->
234
236
  </h1>
235
237
  </header>
236
238
  <main>
@@ -342,7 +344,7 @@ hr {
342
344
  </main>
343
345
  <script>
344
346
  document.addEventListener("DOMContentLoaded", async () => {
345
- Reporter()
347
+ //Reporter()
346
348
  const n = new N()
347
349
  <% if (locals.bin) { %>
348
350
  document.querySelector("#del-bin").addEventListener("click", async (e) => {