pinokiod 1.1.26 → 1.1.28

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.1.26",
3
+ "version": "1.1.28",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,6 +8,7 @@ const SimpleModal = async (params) => {
8
8
  }).join("")
9
9
  await Swal.fire({
10
10
  title: params.title,
11
+ confirmButtonText: 'Done',
11
12
  html: `<div class='simple-modal-desc'>
12
13
  ${params.description}
13
14
  </div>
@@ -82,7 +82,7 @@ footer pre {
82
82
  background: none !important;
83
83
  }
84
84
  .simple-modal-desc {
85
- padding-bottom: 10px;
85
+ padding-bottom: 15px;
86
86
  text-align: left;
87
87
  font-size: 14px;
88
88
  }
@@ -91,8 +91,14 @@ footer pre {
91
91
  width: 100%;
92
92
  box-sizing: border-box;
93
93
  }
94
+ body.dark .simple-modal-content .btn {
95
+ border: 1px solid rgba(255,255,255,0.4);
96
+ }
94
97
  .simple-modal-content .btn {
95
- margin-right: 5px;
98
+ margin-right: 10px;
99
+ border: 1px solid rgba(0,0,0,0.8);
100
+ color: rgba(0,0,0,0.8);
101
+ background: none;
96
102
  }
97
103
  .simple-modal-footer {
98
104
  display: flex;
@@ -290,6 +290,10 @@ document.addEventListener("DOMContentLoaded", async () => {
290
290
  // }
291
291
  } else if (packet.type === "modal") {
292
292
  await SimpleModal(packet.data)
293
+ this.socket.respond({
294
+ response: {},
295
+ uri: "~" + location.pathname,
296
+ })
293
297
  } else if (packet.type === "input") {
294
298
  let params = packet.data
295
299
  let type = (params.type ? params.type : "modal")