clickgo 3.16.11 → 3.16.12

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "editor.wordWrap": "on"
3
+ }
package/README.md CHANGED
@@ -25,7 +25,7 @@ Load the module loader first, and then load it using the module loader.
25
25
  **index.html**
26
26
 
27
27
  ```html
28
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.8/dist/loader.min.js?path=index&npm={'clickgo':'3.16.11'}"></script>
28
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.8/dist/loader.min.js?path=index&npm={'clickgo':'3.16.12'}"></script>
29
29
  ```
30
30
 
31
31
  **index.js**
@@ -41,7 +41,7 @@ class default_1 extends clickgo.form.AbstractForm {
41
41
  this.list = true;
42
42
  this.list1 = [
43
43
  {
44
- 'device': '80-AE-54-DA-45-FA',
44
+ 'device': '',
45
45
  'channel': 1,
46
46
  'index': 0,
47
47
  'mode': 0
@@ -49,21 +49,21 @@ class default_1 extends clickgo.form.AbstractForm {
49
49
  ];
50
50
  this.list2 = [
51
51
  {
52
- 'device': '4C-10-D5-8D-99-D5',
52
+ 'device': '',
53
53
  'channel': 1,
54
54
  'index': 0,
55
55
  'mode': 2
56
56
  },
57
57
  {
58
- 'device': '80-AE-54-DA-45-FA',
58
+ 'device': '',
59
59
  'channel': 6,
60
60
  'index': 1,
61
61
  'mode': 0
62
62
  }
63
63
  ];
64
64
  this.init = {
65
- 'sid': 'YTc4YmY5ODY2MjAxYWE0',
66
- 'skey': '6c5b04bcb5d1434c834ba4b69db26a08'
65
+ 'sid': '',
66
+ 'skey': ''
67
67
  };
68
68
  this.range = false;
69
69
  }
@@ -97,7 +97,15 @@ class default_1 extends clickgo.form.AbstractForm {
97
97
  clickgo.form.dialog(clickgo.tool.rand(parseInt(this.min), parseInt(this.max)).toString()).catch((e) => { throw e; });
98
98
  }
99
99
  random() {
100
- clickgo.form.dialog(clickgo.tool.random(parseInt(this.length), clickgo.tool.RANDOM_LN, this.block)).catch((e) => { throw e; });
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ yield clickgo.form.dialog({
102
+ 'direction': 'v',
103
+ 'content': '<text modelValue="' + clickgo.tool.random(parseInt(this.length), clickgo.tool.RANDOM_LUN, this.block) + '" readonly />',
104
+ 'data': {
105
+ 'txt': 'Text\nLine 2.'
106
+ }
107
+ });
108
+ });
101
109
  }
102
110
  escapeHTML() {
103
111
  clickgo.form.dialog(clickgo.tool.escapeHTML(this.purifyTxt)).catch((e) => { throw e; });
@@ -12,7 +12,7 @@
12
12
  <layout gutter="10">
13
13
  <text v-model="length" style="width: 30px;"></text>
14
14
  <text v-model="block" style="flex: 1;"></text>
15
- <button @click="random">random({{length}}, RANDOM_LN, '{{block}}')</button>
15
+ <button @click="random">random({{length}}, RANDOM_LUN, '{{block}}')</button>
16
16
  </layout>
17
17
  <button @click="escapeHTML">escapeHTML('{{purifyTxt.slice(0, 5).replace("'", "\\'")}}...')</button>
18
18
  <button @click="rgb2hsl">rgb2hsl('9,105,218')</button>
package/dist/clickgo.js CHANGED
@@ -39,7 +39,7 @@ exports.isNative = isNative;
39
39
  exports.getPlatform = getPlatform;
40
40
  exports.isImmersion = isImmersion;
41
41
  exports.hasFrame = hasFrame;
42
- const version = '3.16.11';
42
+ const version = '3.16.12';
43
43
  function getVersion() {
44
44
  return version;
45
45
  }
package/dist/clickgo.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- const version = '3.16.11';
16
+ const version = '3.16.12';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/lib/tool.js CHANGED
@@ -241,7 +241,7 @@ function clone(obj) {
241
241
  }
242
242
  function sleep(ms = 0) {
243
243
  return new Promise(function (resolve) {
244
- if (ms > 1000 * 3) {
244
+ if (ms > 30000) {
245
245
  resolve(false);
246
246
  return;
247
247
  }
package/dist/lib/tool.ts CHANGED
@@ -216,11 +216,11 @@ export function clone(obj: Record<string, any> | any[]): any[] | any {
216
216
 
217
217
  /**
218
218
  * --- 等待毫秒 ---
219
- * @param ms 等待的毫秒,默认 0,最大 3
219
+ * @param ms 等待的毫秒,默认 0,最大 30
220
220
  */
221
221
  export function sleep(ms: number = 0): Promise<boolean> {
222
222
  return new Promise(function(resolve) {
223
- if (ms > 1000 * 3) {
223
+ if (ms > 30_000) {
224
224
  resolve(false);
225
225
  return;
226
226
  }
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.16.11",
3
+ "version": "3.16.12",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",
@@ -20,10 +20,10 @@
20
20
  "devDependencies": {
21
21
  "@litert/eslint-plugin-rules": "^0.2.5",
22
22
  "@litert/loader": "^3.5.8",
23
- "@types/node": "^22.10.2",
24
- "electron": "^33.2.1",
23
+ "@types/node": "^22.13.5",
24
+ "electron": "^34.2.0",
25
25
  "jszip": "^3.10.1",
26
- "terser": "^5.37.0",
27
- "typescript": "^5.7.2"
26
+ "terser": "^5.39.0",
27
+ "typescript": "^5.7.3"
28
28
  }
29
29
  }