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.
- package/.vscode/settings.json +3 -0
- package/README.md +1 -1
- package/dist/app/demo/form/control/tplink/tplink.js +5 -5
- package/dist/app/demo/form/method/tool/tool.js +9 -1
- package/dist/app/demo/form/method/tool/tool.xml +1 -1
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/control/arteditor.cgc +0 -0
- package/dist/control/box.cgc +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/desc.cgc +0 -0
- package/dist/control/drawer.cgc +0 -0
- package/dist/control/echarts.cgc +0 -0
- package/dist/control/form.cgc +0 -0
- package/dist/control/iconview.cgc +0 -0
- package/dist/control/jodit.cgc +0 -0
- package/dist/control/map.cgc +0 -0
- package/dist/control/monaco.cgc +0 -0
- package/dist/control/mpegts.cgc +0 -0
- package/dist/control/nav.cgc +0 -0
- package/dist/control/page.cgc +0 -0
- package/dist/control/pdf.cgc +0 -0
- package/dist/control/property.cgc +0 -0
- package/dist/control/qrcode.cgc +0 -0
- package/dist/control/table.cgc +0 -0
- package/dist/control/task.cgc +0 -0
- package/dist/control/tplink.cgc +0 -0
- package/dist/control/tuieditor.cgc +0 -0
- package/dist/control/tuiviewer.cgc +0 -0
- package/dist/control/xterm.cgc +0 -0
- package/dist/lib/tool.js +1 -1
- package/dist/lib/tool.ts +2 -2
- package/dist/theme/blue.cgt +0 -0
- package/dist/theme/byterun.cgt +0 -0
- package/dist/theme/light.cgt +0 -0
- package/package.json +5 -5
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.
|
|
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': '
|
|
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': '
|
|
52
|
+
'device': '',
|
|
53
53
|
'channel': 1,
|
|
54
54
|
'index': 0,
|
|
55
55
|
'mode': 2
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
'device': '
|
|
58
|
+
'device': '',
|
|
59
59
|
'channel': 6,
|
|
60
60
|
'index': 1,
|
|
61
61
|
'mode': 0
|
|
62
62
|
}
|
|
63
63
|
];
|
|
64
64
|
this.init = {
|
|
65
|
-
'sid': '
|
|
66
|
-
'skey': '
|
|
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
|
-
|
|
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}},
|
|
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
package/dist/clickgo.ts
CHANGED
|
Binary file
|
package/dist/control/box.cgc
CHANGED
|
Binary file
|
package/dist/control/common.cgc
CHANGED
|
Binary file
|
package/dist/control/desc.cgc
CHANGED
|
Binary file
|
package/dist/control/drawer.cgc
CHANGED
|
Binary file
|
package/dist/control/echarts.cgc
CHANGED
|
Binary file
|
package/dist/control/form.cgc
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/control/jodit.cgc
CHANGED
|
Binary file
|
package/dist/control/map.cgc
CHANGED
|
Binary file
|
package/dist/control/monaco.cgc
CHANGED
|
Binary file
|
package/dist/control/mpegts.cgc
CHANGED
|
Binary file
|
package/dist/control/nav.cgc
CHANGED
|
Binary file
|
package/dist/control/page.cgc
CHANGED
|
Binary file
|
package/dist/control/pdf.cgc
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/control/qrcode.cgc
CHANGED
|
Binary file
|
package/dist/control/table.cgc
CHANGED
|
Binary file
|
package/dist/control/task.cgc
CHANGED
|
Binary file
|
package/dist/control/tplink.cgc
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/control/xterm.cgc
CHANGED
|
Binary file
|
package/dist/lib/tool.js
CHANGED
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,最大
|
|
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 >
|
|
223
|
+
if (ms > 30_000) {
|
|
224
224
|
resolve(false);
|
|
225
225
|
return;
|
|
226
226
|
}
|
package/dist/theme/blue.cgt
CHANGED
|
Binary file
|
package/dist/theme/byterun.cgt
CHANGED
|
Binary file
|
package/dist/theme/light.cgt
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clickgo",
|
|
3
|
-
"version": "3.16.
|
|
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.
|
|
24
|
-
"electron": "^
|
|
23
|
+
"@types/node": "^22.13.5",
|
|
24
|
+
"electron": "^34.2.0",
|
|
25
25
|
"jszip": "^3.10.1",
|
|
26
|
-
"terser": "^5.
|
|
27
|
-
"typescript": "^5.7.
|
|
26
|
+
"terser": "^5.39.0",
|
|
27
|
+
"typescript": "^5.7.3"
|
|
28
28
|
}
|
|
29
29
|
}
|