clickgo 5.6.1 → 5.6.2
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/dist/control/map.cgc +0 -0
- package/dist/index.js +1 -1
- package/dist/lib/tool.d.ts +11 -5
- package/doc/clickgo-rag.md +140 -104
- package/package.json +1 -1
package/doc/clickgo-rag.md
CHANGED
|
@@ -27189,7 +27189,7 @@ lib/tool/enumerations/ESTATE.md
|
|
|
27189
27189
|
|
|
27190
27190
|
# Enumeration: ESTATE
|
|
27191
27191
|
|
|
27192
|
-
Defined in: [dist/lib/tool.ts:
|
|
27192
|
+
Defined in: [dist/lib/tool.ts:1765](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1765)
|
|
27193
27193
|
|
|
27194
27194
|
状态机状态
|
|
27195
27195
|
|
|
@@ -27199,7 +27199,7 @@ Defined in: [dist/lib/tool.ts:1741](https://github.com/maiyun/clickgo/blob/maste
|
|
|
27199
27199
|
|
|
27200
27200
|
> **COMMENT**: `4`
|
|
27201
27201
|
|
|
27202
|
-
Defined in: [dist/lib/tool.ts:
|
|
27202
|
+
Defined in: [dist/lib/tool.ts:1775](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1775)
|
|
27203
27203
|
|
|
27204
27204
|
注释
|
|
27205
27205
|
|
|
@@ -27209,7 +27209,7 @@ Defined in: [dist/lib/tool.ts:1751](https://github.com/maiyun/clickgo/blob/maste
|
|
|
27209
27209
|
|
|
27210
27210
|
> **NORMAL**: `0`
|
|
27211
27211
|
|
|
27212
|
-
Defined in: [dist/lib/tool.ts:
|
|
27212
|
+
Defined in: [dist/lib/tool.ts:1767](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1767)
|
|
27213
27213
|
|
|
27214
27214
|
普通
|
|
27215
27215
|
|
|
@@ -27219,7 +27219,7 @@ Defined in: [dist/lib/tool.ts:1743](https://github.com/maiyun/clickgo/blob/maste
|
|
|
27219
27219
|
|
|
27220
27220
|
> **REG**: `3`
|
|
27221
27221
|
|
|
27222
|
-
Defined in: [dist/lib/tool.ts:
|
|
27222
|
+
Defined in: [dist/lib/tool.ts:1773](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1773)
|
|
27223
27223
|
|
|
27224
27224
|
正则
|
|
27225
27225
|
|
|
@@ -27229,7 +27229,7 @@ Defined in: [dist/lib/tool.ts:1749](https://github.com/maiyun/clickgo/blob/maste
|
|
|
27229
27229
|
|
|
27230
27230
|
> **STRING**: `2`
|
|
27231
27231
|
|
|
27232
|
-
Defined in: [dist/lib/tool.ts:
|
|
27232
|
+
Defined in: [dist/lib/tool.ts:1771](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1771)
|
|
27233
27233
|
|
|
27234
27234
|
字符串
|
|
27235
27235
|
|
|
@@ -27239,7 +27239,7 @@ Defined in: [dist/lib/tool.ts:1747](https://github.com/maiyun/clickgo/blob/maste
|
|
|
27239
27239
|
|
|
27240
27240
|
> **WORD**: `1`
|
|
27241
27241
|
|
|
27242
|
-
Defined in: [dist/lib/tool.ts:
|
|
27242
|
+
Defined in: [dist/lib/tool.ts:1769](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1769)
|
|
27243
27243
|
|
|
27244
27244
|
单词
|
|
27245
27245
|
|
|
@@ -27285,7 +27285,7 @@ lib/tool/functions/blob2DataUrl.md
|
|
|
27285
27285
|
|
|
27286
27286
|
> **blob2DataUrl**(`blob`): `Promise`\<`string`\>
|
|
27287
27287
|
|
|
27288
|
-
Defined in: [dist/lib/tool.ts:
|
|
27288
|
+
Defined in: [dist/lib/tool.ts:1509](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1509)
|
|
27289
27289
|
|
|
27290
27290
|
将 blob 对象转换为 base64 url
|
|
27291
27291
|
|
|
@@ -27314,7 +27314,7 @@ lib/tool/functions/blob2Text.md
|
|
|
27314
27314
|
|
|
27315
27315
|
> **blob2Text**(`blob`): `Promise`\<`string`\>
|
|
27316
27316
|
|
|
27317
|
-
Defined in: [dist/lib/tool.ts:
|
|
27317
|
+
Defined in: [dist/lib/tool.ts:1490](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1490)
|
|
27318
27318
|
|
|
27319
27319
|
将 blob 对象转换为 text
|
|
27320
27320
|
|
|
@@ -27343,7 +27343,7 @@ lib/tool/functions/clone.md
|
|
|
27343
27343
|
|
|
27344
27344
|
> **clone**\<`T`\>(`obj`): `T`
|
|
27345
27345
|
|
|
27346
|
-
Defined in: [dist/lib/tool.ts:
|
|
27346
|
+
Defined in: [dist/lib/tool.ts:191](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L191)
|
|
27347
27347
|
|
|
27348
27348
|
完整的克隆一份数组/对象
|
|
27349
27349
|
|
|
@@ -27378,7 +27378,7 @@ lib/tool/functions/compar.md
|
|
|
27378
27378
|
|
|
27379
27379
|
> **compar**(`before`, `after`): `object`
|
|
27380
27380
|
|
|
27381
|
-
Defined in: [dist/lib/tool.ts:
|
|
27381
|
+
Defined in: [dist/lib/tool.ts:1537](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1537)
|
|
27382
27382
|
|
|
27383
27383
|
- 对比老值和新值,看看新值中哪些移除了,哪些新增了
|
|
27384
27384
|
|
|
@@ -27490,7 +27490,7 @@ lib/tool/functions/escapeHTML.md
|
|
|
27490
27490
|
|
|
27491
27491
|
> **escapeHTML**(`html`): `string`
|
|
27492
27492
|
|
|
27493
|
-
Defined in: [dist/lib/tool.ts:
|
|
27493
|
+
Defined in: [dist/lib/tool.ts:756](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L756)
|
|
27494
27494
|
|
|
27495
27495
|
转义 HTML
|
|
27496
27496
|
|
|
@@ -27519,7 +27519,7 @@ lib/tool/functions/eventsAttrWrap.md
|
|
|
27519
27519
|
|
|
27520
27520
|
> **eventsAttrWrap**(`layout`): `string`
|
|
27521
27521
|
|
|
27522
|
-
Defined in: [dist/lib/tool.ts:
|
|
27522
|
+
Defined in: [dist/lib/tool.ts:519](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L519)
|
|
27523
27523
|
|
|
27524
27524
|
对 layout 的 events 事件进行包裹
|
|
27525
27525
|
|
|
@@ -27548,7 +27548,7 @@ lib/tool/functions/execCommand.md
|
|
|
27548
27548
|
|
|
27549
27549
|
> **execCommand**(`ac`): `void`
|
|
27550
27550
|
|
|
27551
|
-
Defined in: [dist/lib/tool.ts:
|
|
27551
|
+
Defined in: [dist/lib/tool.ts:1524](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1524)
|
|
27552
27552
|
|
|
27553
27553
|
## Parameters
|
|
27554
27554
|
|
|
@@ -27573,7 +27573,7 @@ lib/tool/functions/fetch.md
|
|
|
27573
27573
|
|
|
27574
27574
|
> **fetch**(`url`, `init?`): `Promise`\<`string` \| `Blob` \| `null`\>
|
|
27575
27575
|
|
|
27576
|
-
Defined in: [dist/lib/tool.ts:
|
|
27576
|
+
Defined in: [dist/lib/tool.ts:1127](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1127)
|
|
27577
27577
|
|
|
27578
27578
|
发起 fetch 请求
|
|
27579
27579
|
|
|
@@ -27610,7 +27610,7 @@ lib/tool/functions/formatColor.md
|
|
|
27610
27610
|
|
|
27611
27611
|
> **formatColor**(`color`): `number`[]
|
|
27612
27612
|
|
|
27613
|
-
Defined in: [dist/lib/tool.ts:
|
|
27613
|
+
Defined in: [dist/lib/tool.ts:782](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L782)
|
|
27614
27614
|
|
|
27615
27615
|
将 rgb 或 hsl 等颜色转换为数字数组
|
|
27616
27616
|
|
|
@@ -27639,7 +27639,7 @@ lib/tool/functions/formatSecond.md
|
|
|
27639
27639
|
|
|
27640
27640
|
> **formatSecond**(`second`): `string`
|
|
27641
27641
|
|
|
27642
|
-
Defined in: [dist/lib/tool.ts:
|
|
27642
|
+
Defined in: [dist/lib/tool.ts:1580](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1580)
|
|
27643
27643
|
|
|
27644
27644
|
将秒数格式化为 0:0:0 的字符串
|
|
27645
27645
|
|
|
@@ -27666,7 +27666,7 @@ lib/tool/functions/formatTime.md
|
|
|
27666
27666
|
|
|
27667
27667
|
> **formatTime**(`ts`, `tz?`): `object`
|
|
27668
27668
|
|
|
27669
|
-
Defined in: [dist/lib/tool.ts:
|
|
27669
|
+
Defined in: [dist/lib/tool.ts:1593](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1593)
|
|
27670
27670
|
|
|
27671
27671
|
将日期对象或毫秒级时间戳转换为字符串
|
|
27672
27672
|
|
|
@@ -27713,7 +27713,7 @@ lib/tool/functions/get.md
|
|
|
27713
27713
|
|
|
27714
27714
|
> **get**(`url`, `init?`, `opt?`): `Promise`\<`string` \| `Blob` \| `null`\>
|
|
27715
27715
|
|
|
27716
|
-
Defined in: [dist/lib/tool.ts:
|
|
27716
|
+
Defined in: [dist/lib/tool.ts:1153](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1153)
|
|
27717
27717
|
|
|
27718
27718
|
发起 GET 请求
|
|
27719
27719
|
|
|
@@ -27760,7 +27760,7 @@ lib/tool/functions/getArray.md
|
|
|
27760
27760
|
|
|
27761
27761
|
> **getArray**(`param`): `any`[]
|
|
27762
27762
|
|
|
27763
|
-
Defined in: [dist/lib/tool.ts:
|
|
27763
|
+
Defined in: [dist/lib/tool.ts:731](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L731)
|
|
27764
27764
|
|
|
27765
27765
|
根据参数获取最终的数组型,可传入类似 [1,2,3] 或 1,2,3
|
|
27766
27766
|
|
|
@@ -27789,7 +27789,7 @@ lib/tool/functions/getBoolean.md
|
|
|
27789
27789
|
|
|
27790
27790
|
> **getBoolean**(`param`): `boolean`
|
|
27791
27791
|
|
|
27792
|
-
Defined in: [dist/lib/tool.ts:
|
|
27792
|
+
Defined in: [dist/lib/tool.ts:705](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L705)
|
|
27793
27793
|
|
|
27794
27794
|
根据参数获取最终的布尔值
|
|
27795
27795
|
|
|
@@ -27859,7 +27859,7 @@ lib/tool/functions/getMimeByPath.md
|
|
|
27859
27859
|
|
|
27860
27860
|
> **getMimeByPath**(`path`): `object`
|
|
27861
27861
|
|
|
27862
|
-
Defined in: [dist/lib/tool.ts:
|
|
27862
|
+
Defined in: [dist/lib/tool.ts:627](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L627)
|
|
27863
27863
|
|
|
27864
27864
|
根据后缀、文件名或路径获取 mime 类型(简单版,完整版请使用 @litert/mime.js)
|
|
27865
27865
|
|
|
@@ -27896,7 +27896,7 @@ lib/tool/functions/getNumber.md
|
|
|
27896
27896
|
|
|
27897
27897
|
> **getNumber**(`param`): `number`
|
|
27898
27898
|
|
|
27899
|
-
Defined in: [dist/lib/tool.ts:
|
|
27899
|
+
Defined in: [dist/lib/tool.ts:720](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L720)
|
|
27900
27900
|
|
|
27901
27901
|
根据参数获取最终的数字型
|
|
27902
27902
|
|
|
@@ -27925,7 +27925,7 @@ lib/tool/functions/getResponseJson.md
|
|
|
27925
27925
|
|
|
27926
27926
|
> **getResponseJson**(`url`, `init?`): `Promise`\<`any`\>
|
|
27927
27927
|
|
|
27928
|
-
Defined in: [dist/lib/tool.ts:
|
|
27928
|
+
Defined in: [dist/lib/tool.ts:1205](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1205)
|
|
27929
27929
|
|
|
27930
27930
|
发起 GET 请求并解析 JSON 响应
|
|
27931
27931
|
|
|
@@ -27962,7 +27962,7 @@ lib/tool/functions/hex2rgb.md
|
|
|
27962
27962
|
|
|
27963
27963
|
> **hex2rgb**(`hex`): `object`
|
|
27964
27964
|
|
|
27965
|
-
Defined in: [dist/lib/tool.ts:
|
|
27965
|
+
Defined in: [dist/lib/tool.ts:831](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L831)
|
|
27966
27966
|
|
|
27967
27967
|
hex 转换为 rgba,#27ae60ff, 27ae60 #fff
|
|
27968
27968
|
|
|
@@ -28011,7 +28011,7 @@ lib/tool/functions/hsl2rgb.md
|
|
|
28011
28011
|
|
|
28012
28012
|
> **hsl2rgb**(`h`, `s?`, `l?`, `a?`, `decimal?`): `object`
|
|
28013
28013
|
|
|
28014
|
-
Defined in: [dist/lib/tool.ts:
|
|
28014
|
+
Defined in: [dist/lib/tool.ts:975](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L975)
|
|
28015
28015
|
|
|
28016
28016
|
hsl 字符串转 rgb 数组
|
|
28017
28017
|
|
|
@@ -28084,7 +28084,7 @@ lib/tool/functions/isEscapeChar.md
|
|
|
28084
28084
|
|
|
28085
28085
|
> **isEscapeChar**(`code`, `index`): `boolean`
|
|
28086
28086
|
|
|
28087
|
-
Defined in: [dist/lib/tool.ts:
|
|
28087
|
+
Defined in: [dist/lib/tool.ts:1755](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1755)
|
|
28088
28088
|
|
|
28089
28089
|
判断字符是否是转义字符
|
|
28090
28090
|
|
|
@@ -28121,7 +28121,7 @@ lib/tool/functions/isEscaped.md
|
|
|
28121
28121
|
|
|
28122
28122
|
> **isEscaped**(`str`, `pos`): `boolean`
|
|
28123
28123
|
|
|
28124
|
-
Defined in: [dist/lib/tool.ts:
|
|
28124
|
+
Defined in: [dist/lib/tool.ts:1684](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1684)
|
|
28125
28125
|
|
|
28126
28126
|
转义字符检查
|
|
28127
28127
|
检查指定位置的字符是否被转义
|
|
@@ -28159,7 +28159,7 @@ lib/tool/functions/isFalsy.md
|
|
|
28159
28159
|
|
|
28160
28160
|
> **isFalsy**(`val`): `val is TFalsy`
|
|
28161
28161
|
|
|
28162
|
-
Defined in: [dist/lib/tool.ts:
|
|
28162
|
+
Defined in: [dist/lib/tool.ts:2518](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2518)
|
|
28163
28163
|
|
|
28164
28164
|
判断一个值是否是虚假的(为 null/undefined/空字符串/false/0)
|
|
28165
28165
|
|
|
@@ -28188,7 +28188,7 @@ lib/tool/functions/isMs.md
|
|
|
28188
28188
|
|
|
28189
28189
|
> **isMs**(`time`): `boolean`
|
|
28190
28190
|
|
|
28191
|
-
Defined in: [dist/lib/tool.ts:
|
|
28191
|
+
Defined in: [dist/lib/tool.ts:1620](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1620)
|
|
28192
28192
|
|
|
28193
28193
|
是否是毫秒
|
|
28194
28194
|
|
|
@@ -28217,7 +28217,7 @@ lib/tool/functions/isTruthy.md
|
|
|
28217
28217
|
|
|
28218
28218
|
> **isTruthy**(`val`): `val is any`
|
|
28219
28219
|
|
|
28220
|
-
Defined in: [dist/lib/tool.ts:
|
|
28220
|
+
Defined in: [dist/lib/tool.ts:2526](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2526)
|
|
28221
28221
|
|
|
28222
28222
|
判断一个值是否是真实的(不为 null/undefined/空字符串/false/0)
|
|
28223
28223
|
|
|
@@ -28246,7 +28246,7 @@ lib/tool/functions/layoutAddTagClassAndReTagName.md
|
|
|
28246
28246
|
|
|
28247
28247
|
> **layoutAddTagClassAndReTagName**(`layout`, `retagname`): `string`
|
|
28248
28248
|
|
|
28249
|
-
Defined in: [dist/lib/tool.ts:
|
|
28249
|
+
Defined in: [dist/lib/tool.ts:353](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L353)
|
|
28250
28250
|
|
|
28251
28251
|
给标签增加 tag-tagname 的 class,同时给标签增加 cg- 前导(仅字符串,不是操作真实 dom)
|
|
28252
28252
|
|
|
@@ -28281,7 +28281,7 @@ lib/tool/functions/layoutClassPrepend.md
|
|
|
28281
28281
|
|
|
28282
28282
|
> **layoutClassPrepend**(`layout`, `preps`): `string`
|
|
28283
28283
|
|
|
28284
|
-
Defined in: [dist/lib/tool.ts:
|
|
28284
|
+
Defined in: [dist/lib/tool.ts:468](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L468)
|
|
28285
28285
|
|
|
28286
28286
|
给 class 增加 scope 的随机前缀,给 id 新增前缀
|
|
28287
28287
|
|
|
@@ -28316,7 +28316,7 @@ lib/tool/functions/layoutInsertAttr.md
|
|
|
28316
28316
|
|
|
28317
28317
|
> **layoutInsertAttr**(`layout`, `insert`, `opt`): `string`
|
|
28318
28318
|
|
|
28319
|
-
Defined in: [dist/lib/tool.ts:
|
|
28319
|
+
Defined in: [dist/lib/tool.ts:409](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L409)
|
|
28320
28320
|
|
|
28321
28321
|
给标签追加 attr,即使 attr 存在也会追加上一个新的(非真实 DOM 操作,仅仅是对字符串进行处理)
|
|
28322
28322
|
|
|
@@ -28363,7 +28363,7 @@ lib/tool/functions/loadLink.md
|
|
|
28363
28363
|
|
|
28364
28364
|
> **loadLink**(`url`, `pos`): `Promise`\<`boolean`\>
|
|
28365
28365
|
|
|
28366
|
-
Defined in: [dist/lib/tool.ts:
|
|
28366
|
+
Defined in: [dist/lib/tool.ts:2469](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2469)
|
|
28367
28367
|
|
|
28368
28368
|
加载 css 文件
|
|
28369
28369
|
|
|
@@ -28398,7 +28398,7 @@ lib/tool/functions/loadLinks.md
|
|
|
28398
28398
|
|
|
28399
28399
|
> **loadLinks**(`urls`, `opt`): `Promise`\<`void`\>
|
|
28400
28400
|
|
|
28401
|
-
Defined in: [dist/lib/tool.ts:
|
|
28401
|
+
Defined in: [dist/lib/tool.ts:2495](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2495)
|
|
28402
28402
|
|
|
28403
28403
|
批量加载 css 文件
|
|
28404
28404
|
|
|
@@ -28435,7 +28435,7 @@ lib/tool/functions/loadScript.md
|
|
|
28435
28435
|
|
|
28436
28436
|
> **loadScript**(`url`): `Promise`\<`boolean`\>
|
|
28437
28437
|
|
|
28438
|
-
Defined in: [dist/lib/tool.ts:
|
|
28438
|
+
Defined in: [dist/lib/tool.ts:2436](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2436)
|
|
28439
28439
|
|
|
28440
28440
|
加载脚本
|
|
28441
28441
|
|
|
@@ -28464,7 +28464,7 @@ lib/tool/functions/loadScripts.md
|
|
|
28464
28464
|
|
|
28465
28465
|
> **loadScripts**(`urls`, `opt`): `Promise`\<`void`\>
|
|
28466
28466
|
|
|
28467
|
-
Defined in: [dist/lib/tool.ts:
|
|
28467
|
+
Defined in: [dist/lib/tool.ts:2455](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2455)
|
|
28468
28468
|
|
|
28469
28469
|
批量加载 js 文件
|
|
28470
28470
|
|
|
@@ -28501,7 +28501,7 @@ lib/tool/functions/loadStyle.md
|
|
|
28501
28501
|
|
|
28502
28502
|
> **loadStyle**(`style`): `void`
|
|
28503
28503
|
|
|
28504
|
-
Defined in: [dist/lib/tool.ts:
|
|
28504
|
+
Defined in: [dist/lib/tool.ts:2508](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2508)
|
|
28505
28505
|
|
|
28506
28506
|
加载 css 字符串
|
|
28507
28507
|
|
|
@@ -28530,7 +28530,7 @@ lib/tool/functions/logicalOr.md
|
|
|
28530
28530
|
|
|
28531
28531
|
> **logicalOr**\<`T`, `T2`\>(`v1`, `v2`): \[`T`\] *extends* \[[`TFalsy`](../type-aliases/TFalsy.md)\] ? `T2` : `T`
|
|
28532
28532
|
|
|
28533
|
-
Defined in: [dist/lib/tool.ts:
|
|
28533
|
+
Defined in: [dist/lib/tool.ts:2535](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2535)
|
|
28534
28534
|
|
|
28535
28535
|
类似 || 运算符的效果
|
|
28536
28536
|
|
|
@@ -28575,7 +28575,7 @@ lib/tool/functions/match.md
|
|
|
28575
28575
|
|
|
28576
28576
|
> **match**(`str`, `regs`): `boolean`
|
|
28577
28577
|
|
|
28578
|
-
Defined in: [dist/lib/tool.ts:
|
|
28578
|
+
Defined in: [dist/lib/tool.ts:310](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L310)
|
|
28579
28579
|
|
|
28580
28580
|
传入正则进行匹配 str 是否有一项满足
|
|
28581
28581
|
|
|
@@ -28610,7 +28610,7 @@ lib/tool/functions/nextFrame.md
|
|
|
28610
28610
|
|
|
28611
28611
|
> **nextFrame**(): `Promise`\<`void`\>
|
|
28612
28612
|
|
|
28613
|
-
Defined in: [dist/lib/tool.ts:
|
|
28613
|
+
Defined in: [dist/lib/tool.ts:264](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L264)
|
|
28614
28614
|
|
|
28615
28615
|
等待浏览器帧
|
|
28616
28616
|
|
|
@@ -28631,7 +28631,7 @@ lib/tool/functions/parseArrayString.md
|
|
|
28631
28631
|
|
|
28632
28632
|
> **parseArrayString**(`arrayStr`): `string`[]
|
|
28633
28633
|
|
|
28634
|
-
Defined in: [dist/lib/tool.ts:
|
|
28634
|
+
Defined in: [dist/lib/tool.ts:1699](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1699)
|
|
28635
28635
|
|
|
28636
28636
|
数组字符串解析器
|
|
28637
28637
|
解析数组字符串为各元素组成的字符串数组
|
|
@@ -28663,7 +28663,7 @@ lib/tool/functions/parseUrl.md
|
|
|
28663
28663
|
|
|
28664
28664
|
> **parseUrl**(`url`): [`IUrl`](../interfaces/IUrl.md)
|
|
28665
28665
|
|
|
28666
|
-
Defined in: [dist/lib/tool.ts:
|
|
28666
|
+
Defined in: [dist/lib/tool.ts:1331](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1331)
|
|
28667
28667
|
|
|
28668
28668
|
传输 url 并解析为 IUrl 对象
|
|
28669
28669
|
|
|
@@ -28692,7 +28692,7 @@ lib/tool/functions/post.md
|
|
|
28692
28692
|
|
|
28693
28693
|
> **post**(`url`, `data`, `init?`): `Promise`\<`string` \| `Blob` \| `null`\>
|
|
28694
28694
|
|
|
28695
|
-
Defined in: [dist/lib/tool.ts:
|
|
28695
|
+
Defined in: [dist/lib/tool.ts:1180](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1180)
|
|
28696
28696
|
|
|
28697
28697
|
发起 POST 请求(除 FormData 外都会转换为 JSON 提交)
|
|
28698
28698
|
|
|
@@ -28735,7 +28735,7 @@ lib/tool/functions/postResponseEventStream.md
|
|
|
28735
28735
|
|
|
28736
28736
|
> **postResponseEventStream**(`url`, `data`, `opts`): `AbortController`
|
|
28737
28737
|
|
|
28738
|
-
Defined in: [dist/lib/tool.ts:
|
|
28738
|
+
Defined in: [dist/lib/tool.ts:1228](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1228)
|
|
28739
28739
|
|
|
28740
28740
|
发起 JSON 请求并获得文本 SSE 响应
|
|
28741
28741
|
|
|
@@ -28810,7 +28810,7 @@ lib/tool/functions/postResponseJson.md
|
|
|
28810
28810
|
|
|
28811
28811
|
> **postResponseJson**(`url`, `data`, `init?`): `Promise`\<`any`\>
|
|
28812
28812
|
|
|
28813
|
-
Defined in: [dist/lib/tool.ts:
|
|
28813
|
+
Defined in: [dist/lib/tool.ts:1309](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1309)
|
|
28814
28814
|
|
|
28815
28815
|
发起 POST 请求并解析 JSON 响应
|
|
28816
28816
|
|
|
@@ -28853,7 +28853,7 @@ lib/tool/functions/purify.md
|
|
|
28853
28853
|
|
|
28854
28854
|
> **purify**(`text`): `string`
|
|
28855
28855
|
|
|
28856
|
-
Defined in: [dist/lib/tool.ts:
|
|
28856
|
+
Defined in: [dist/lib/tool.ts:289](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L289)
|
|
28857
28857
|
|
|
28858
28858
|
去除 html 的空白符、换行以及注释
|
|
28859
28859
|
|
|
@@ -28882,7 +28882,7 @@ lib/tool/functions/queryParse.md
|
|
|
28882
28882
|
|
|
28883
28883
|
> **queryParse**(`query`): `Record`\<`string`, `string` \| `string`[]\>
|
|
28884
28884
|
|
|
28885
|
-
Defined in: [dist/lib/tool.ts:
|
|
28885
|
+
Defined in: [dist/lib/tool.ts:1650](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1650)
|
|
28886
28886
|
|
|
28887
28887
|
将 query string 转换为对象
|
|
28888
28888
|
|
|
@@ -28911,7 +28911,7 @@ lib/tool/functions/queryStringify.md
|
|
|
28911
28911
|
|
|
28912
28912
|
> **queryStringify**(`query`, `encode`): `string`
|
|
28913
28913
|
|
|
28914
|
-
Defined in: [dist/lib/tool.ts:
|
|
28914
|
+
Defined in: [dist/lib/tool.ts:1629](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1629)
|
|
28915
28915
|
|
|
28916
28916
|
将对象转换为 query string
|
|
28917
28917
|
|
|
@@ -28944,9 +28944,9 @@ lib/tool/functions/rand.md
|
|
|
28944
28944
|
|
|
28945
28945
|
# Function: rand()
|
|
28946
28946
|
|
|
28947
|
-
> **rand**(`min`, `max`): `number`
|
|
28947
|
+
> **rand**(`min`, `max`, `prec`): `number`
|
|
28948
28948
|
|
|
28949
|
-
Defined in: [dist/lib/tool.ts:
|
|
28949
|
+
Defined in: [dist/lib/tool.ts:653](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L653)
|
|
28950
28950
|
|
|
28951
28951
|
生成范围内的随机数
|
|
28952
28952
|
|
|
@@ -28956,13 +28956,19 @@ Defined in: [dist/lib/tool.ts:651](https://github.com/maiyun/clickgo/blob/master
|
|
|
28956
28956
|
|
|
28957
28957
|
`number`
|
|
28958
28958
|
|
|
28959
|
-
|
|
28959
|
+
>= 最小值
|
|
28960
28960
|
|
|
28961
28961
|
### max
|
|
28962
28962
|
|
|
28963
28963
|
`number`
|
|
28964
28964
|
|
|
28965
|
-
|
|
28965
|
+
<= 最大值
|
|
28966
|
+
|
|
28967
|
+
### prec
|
|
28968
|
+
|
|
28969
|
+
`number` = `0`
|
|
28970
|
+
|
|
28971
|
+
保留几位小数
|
|
28966
28972
|
|
|
28967
28973
|
## Returns
|
|
28968
28974
|
|
|
@@ -28981,7 +28987,7 @@ lib/tool/functions/random.md
|
|
|
28981
28987
|
|
|
28982
28988
|
> **random**(`length`, `source`, `block`): `string`
|
|
28983
28989
|
|
|
28984
|
-
Defined in: [dist/lib/tool.ts:
|
|
28990
|
+
Defined in: [dist/lib/tool.ts:682](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L682)
|
|
28985
28991
|
|
|
28986
28992
|
生成随机字符串
|
|
28987
28993
|
|
|
@@ -29024,7 +29030,7 @@ lib/tool/functions/request.md
|
|
|
29024
29030
|
|
|
29025
29031
|
> **request**(`url`, `opt`): `Promise`\<`any`\>
|
|
29026
29032
|
|
|
29027
|
-
Defined in: [dist/lib/tool.ts:
|
|
29033
|
+
Defined in: [dist/lib/tool.ts:1040](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1040)
|
|
29028
29034
|
|
|
29029
29035
|
发起一个网络请求,若是返回值是 JSON 则自动解析,否则直接返回字符串
|
|
29030
29036
|
|
|
@@ -29059,7 +29065,7 @@ lib/tool/functions/rgb2hex.md
|
|
|
29059
29065
|
|
|
29060
29066
|
> **rgb2hex**(`r`, `g?`, `b?`, `a?`): `string`
|
|
29061
29067
|
|
|
29062
|
-
Defined in: [dist/lib/tool.ts:
|
|
29068
|
+
Defined in: [dist/lib/tool.ts:799](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L799)
|
|
29063
29069
|
|
|
29064
29070
|
将 r, g, b 转换为 hex 字符串,不含 #
|
|
29065
29071
|
|
|
@@ -29104,7 +29110,7 @@ lib/tool/functions/rgb2hsl.md
|
|
|
29104
29110
|
|
|
29105
29111
|
> **rgb2hsl**(`r`, `g?`, `b?`, `a?`, `decimal?`): `object`
|
|
29106
29112
|
|
|
29107
|
-
Defined in: [dist/lib/tool.ts:
|
|
29113
|
+
Defined in: [dist/lib/tool.ts:872](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L872)
|
|
29108
29114
|
|
|
29109
29115
|
rgb 字符串转 hsl 数组
|
|
29110
29116
|
|
|
@@ -29243,7 +29249,7 @@ lib/tool/functions/sleep.md
|
|
|
29243
29249
|
|
|
29244
29250
|
> **sleep**(`ms`): `Promise`\<`boolean`\>
|
|
29245
29251
|
|
|
29246
|
-
Defined in: [dist/lib/tool.ts:
|
|
29252
|
+
Defined in: [dist/lib/tool.ts:249](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L249)
|
|
29247
29253
|
|
|
29248
29254
|
等待毫秒
|
|
29249
29255
|
|
|
@@ -29272,7 +29278,7 @@ lib/tool/functions/sleepFrame.md
|
|
|
29272
29278
|
|
|
29273
29279
|
> **sleepFrame**(`count`): `Promise`\<`void`\>
|
|
29274
29280
|
|
|
29275
|
-
Defined in: [dist/lib/tool.ts:
|
|
29281
|
+
Defined in: [dist/lib/tool.ts:276](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L276)
|
|
29276
29282
|
|
|
29277
29283
|
等待浏览器帧
|
|
29278
29284
|
|
|
@@ -29301,7 +29307,7 @@ lib/tool/functions/stateMachine.md
|
|
|
29301
29307
|
|
|
29302
29308
|
> **stateMachine**(`code`, `start`, `process`): `void`
|
|
29303
29309
|
|
|
29304
|
-
Defined in: [dist/lib/tool.ts:
|
|
29310
|
+
Defined in: [dist/lib/tool.ts:1785](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1785)
|
|
29305
29311
|
|
|
29306
29312
|
状态机
|
|
29307
29313
|
|
|
@@ -29344,7 +29350,7 @@ lib/tool/functions/stylePrepend.md
|
|
|
29344
29350
|
|
|
29345
29351
|
> **stylePrepend**(`style`, `prep`): `object`
|
|
29346
29352
|
|
|
29347
|
-
Defined in: [dist/lib/tool.ts:
|
|
29353
|
+
Defined in: [dist/lib/tool.ts:550](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L550)
|
|
29348
29354
|
|
|
29349
29355
|
给 class 前部增加唯一标识符
|
|
29350
29356
|
|
|
@@ -29387,7 +29393,7 @@ lib/tool/functions/styleUrl2DataUrl.md
|
|
|
29387
29393
|
|
|
29388
29394
|
> **styleUrl2DataUrl**(`path`, `style`, `files`): `Promise`\<`string`\>
|
|
29389
29395
|
|
|
29390
|
-
Defined in: [dist/lib/tool.ts:
|
|
29396
|
+
Defined in: [dist/lib/tool.ts:325](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L325)
|
|
29391
29397
|
|
|
29392
29398
|
将 style 中的 url 转换成 base64 data url
|
|
29393
29399
|
|
|
@@ -29428,7 +29434,7 @@ lib/tool/functions/teleportGlue.md
|
|
|
29428
29434
|
|
|
29429
29435
|
> **teleportGlue**(`layout`, `formId`): `string`
|
|
29430
29436
|
|
|
29431
|
-
Defined in: [dist/lib/tool.ts:
|
|
29437
|
+
Defined in: [dist/lib/tool.ts:535](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L535)
|
|
29432
29438
|
|
|
29433
29439
|
对 layout 的 teleport 做转义处理为 vue 识别的内容
|
|
29434
29440
|
|
|
@@ -29450,6 +29456,35 @@ Defined in: [dist/lib/tool.ts:534](https://github.com/maiyun/clickgo/blob/master
|
|
|
29450
29456
|
|
|
29451
29457
|
`string`
|
|
29452
29458
|
|
|
29459
|
+
lib/tool/functions/unescapeHTML.md
|
|
29460
|
+
---
|
|
29461
|
+
|
|
29462
|
+
[**Documents for clickgo**](../../../index.md)
|
|
29463
|
+
|
|
29464
|
+
***
|
|
29465
|
+
|
|
29466
|
+
[Documents for clickgo](../../../index.md) / [lib/tool](../index.md) / unescapeHTML
|
|
29467
|
+
|
|
29468
|
+
# Function: unescapeHTML()
|
|
29469
|
+
|
|
29470
|
+
> **unescapeHTML**(`html`): `string`
|
|
29471
|
+
|
|
29472
|
+
Defined in: [dist/lib/tool.ts:768](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L768)
|
|
29473
|
+
|
|
29474
|
+
还原转义后的 HTML
|
|
29475
|
+
|
|
29476
|
+
## Parameters
|
|
29477
|
+
|
|
29478
|
+
### html
|
|
29479
|
+
|
|
29480
|
+
`string`
|
|
29481
|
+
|
|
29482
|
+
已转义的 HTML 字符
|
|
29483
|
+
|
|
29484
|
+
## Returns
|
|
29485
|
+
|
|
29486
|
+
`string`
|
|
29487
|
+
|
|
29453
29488
|
lib/tool/functions/urlAtom.md
|
|
29454
29489
|
---
|
|
29455
29490
|
|
|
@@ -29463,7 +29498,7 @@ lib/tool/functions/urlAtom.md
|
|
|
29463
29498
|
|
|
29464
29499
|
> **urlAtom**(`url`): `string`
|
|
29465
29500
|
|
|
29466
|
-
Defined in: [dist/lib/tool.ts:
|
|
29501
|
+
Defined in: [dist/lib/tool.ts:1473](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1473)
|
|
29467
29502
|
|
|
29468
29503
|
处理 URL 中的 .. / . 等
|
|
29469
29504
|
|
|
@@ -29490,7 +29525,7 @@ lib/tool/functions/urlResolve.md
|
|
|
29490
29525
|
|
|
29491
29526
|
> **urlResolve**(`from`, `to`): `string`
|
|
29492
29527
|
|
|
29493
|
-
Defined in: [dist/lib/tool.ts:
|
|
29528
|
+
Defined in: [dist/lib/tool.ts:1414](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L1414)
|
|
29494
29529
|
|
|
29495
29530
|
将相对路径根据基准路径进行转换
|
|
29496
29531
|
|
|
@@ -29525,7 +29560,7 @@ lib/tool/functions/weightFormat.md
|
|
|
29525
29560
|
|
|
29526
29561
|
> **weightFormat**(`weight`, `spliter`): `string`
|
|
29527
29562
|
|
|
29528
|
-
Defined in: [dist/lib/tool.ts:
|
|
29563
|
+
Defined in: [dist/lib/tool.ts:178](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L178)
|
|
29529
29564
|
|
|
29530
29565
|
将毫克重量格式化为带单位的字符串
|
|
29531
29566
|
|
|
@@ -29646,6 +29681,7 @@ lib/tool/index.md
|
|
|
29646
29681
|
- [stylePrepend](functions/stylePrepend.md)
|
|
29647
29682
|
- [styleUrl2DataUrl](functions/styleUrl2DataUrl.md)
|
|
29648
29683
|
- [teleportGlue](functions/teleportGlue.md)
|
|
29684
|
+
- [unescapeHTML](functions/unescapeHTML.md)
|
|
29649
29685
|
- [urlAtom](functions/urlAtom.md)
|
|
29650
29686
|
- [urlResolve](functions/urlResolve.md)
|
|
29651
29687
|
- [weightFormat](functions/weightFormat.md)
|
|
@@ -29696,7 +29732,7 @@ lib/tool/interfaces/IRequestOptions.md
|
|
|
29696
29732
|
|
|
29697
29733
|
# Interface: IRequestOptions
|
|
29698
29734
|
|
|
29699
|
-
Defined in: [dist/lib/tool.ts:
|
|
29735
|
+
Defined in: [dist/lib/tool.ts:2613](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2613)
|
|
29700
29736
|
|
|
29701
29737
|
请求选项
|
|
29702
29738
|
|
|
@@ -29706,7 +29742,7 @@ Defined in: [dist/lib/tool.ts:2627](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29706
29742
|
|
|
29707
29743
|
> `optional` **body**: `FormData`
|
|
29708
29744
|
|
|
29709
|
-
Defined in: [dist/lib/tool.ts:
|
|
29745
|
+
Defined in: [dist/lib/tool.ts:2616](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2616)
|
|
29710
29746
|
|
|
29711
29747
|
***
|
|
29712
29748
|
|
|
@@ -29714,7 +29750,7 @@ Defined in: [dist/lib/tool.ts:2630](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29714
29750
|
|
|
29715
29751
|
> `optional` **credentials**: `boolean`
|
|
29716
29752
|
|
|
29717
|
-
Defined in: [dist/lib/tool.ts:
|
|
29753
|
+
Defined in: [dist/lib/tool.ts:2614](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2614)
|
|
29718
29754
|
|
|
29719
29755
|
***
|
|
29720
29756
|
|
|
@@ -29722,7 +29758,7 @@ Defined in: [dist/lib/tool.ts:2628](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29722
29758
|
|
|
29723
29759
|
> `optional` **end**: () => `void` \| `Promise`\<`void`\>
|
|
29724
29760
|
|
|
29725
|
-
Defined in: [dist/lib/tool.ts:
|
|
29761
|
+
Defined in: [dist/lib/tool.ts:2625](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2625)
|
|
29726
29762
|
|
|
29727
29763
|
#### Returns
|
|
29728
29764
|
|
|
@@ -29734,7 +29770,7 @@ Defined in: [dist/lib/tool.ts:2639](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29734
29770
|
|
|
29735
29771
|
> `optional` **error**: () => `void` \| `Promise`\<`void`\>
|
|
29736
29772
|
|
|
29737
|
-
Defined in: [dist/lib/tool.ts:
|
|
29773
|
+
Defined in: [dist/lib/tool.ts:2628](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2628)
|
|
29738
29774
|
|
|
29739
29775
|
#### Returns
|
|
29740
29776
|
|
|
@@ -29746,7 +29782,7 @@ Defined in: [dist/lib/tool.ts:2642](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29746
29782
|
|
|
29747
29783
|
> `optional` **headers**: `HeadersInit`
|
|
29748
29784
|
|
|
29749
|
-
Defined in: [dist/lib/tool.ts:
|
|
29785
|
+
Defined in: [dist/lib/tool.ts:2619](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2619)
|
|
29750
29786
|
|
|
29751
29787
|
***
|
|
29752
29788
|
|
|
@@ -29754,7 +29790,7 @@ Defined in: [dist/lib/tool.ts:2633](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29754
29790
|
|
|
29755
29791
|
> `optional` **load**: (`res`) => `void` \| `Promise`\<`void`\>
|
|
29756
29792
|
|
|
29757
|
-
Defined in: [dist/lib/tool.ts:
|
|
29793
|
+
Defined in: [dist/lib/tool.ts:2627](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2627)
|
|
29758
29794
|
|
|
29759
29795
|
#### Parameters
|
|
29760
29796
|
|
|
@@ -29772,7 +29808,7 @@ Defined in: [dist/lib/tool.ts:2641](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29772
29808
|
|
|
29773
29809
|
> `optional` **method**: `"GET"` \| `"POST"`
|
|
29774
29810
|
|
|
29775
|
-
Defined in: [dist/lib/tool.ts:
|
|
29811
|
+
Defined in: [dist/lib/tool.ts:2615](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2615)
|
|
29776
29812
|
|
|
29777
29813
|
***
|
|
29778
29814
|
|
|
@@ -29780,7 +29816,7 @@ Defined in: [dist/lib/tool.ts:2629](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29780
29816
|
|
|
29781
29817
|
> `optional` **progress**: (`loaded`, `total`) => `void` \| `Promise`\<`void`\>
|
|
29782
29818
|
|
|
29783
|
-
Defined in: [dist/lib/tool.ts:
|
|
29819
|
+
Defined in: [dist/lib/tool.ts:2626](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2626)
|
|
29784
29820
|
|
|
29785
29821
|
#### Parameters
|
|
29786
29822
|
|
|
@@ -29802,7 +29838,7 @@ Defined in: [dist/lib/tool.ts:2640](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29802
29838
|
|
|
29803
29839
|
> `optional` **responseType**: `XMLHttpRequestResponseType`
|
|
29804
29840
|
|
|
29805
|
-
Defined in: [dist/lib/tool.ts:
|
|
29841
|
+
Defined in: [dist/lib/tool.ts:2618](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2618)
|
|
29806
29842
|
|
|
29807
29843
|
***
|
|
29808
29844
|
|
|
@@ -29810,7 +29846,7 @@ Defined in: [dist/lib/tool.ts:2632](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29810
29846
|
|
|
29811
29847
|
> `optional` **start**: (`total`) => `void` \| `Promise`\<`void`\>
|
|
29812
29848
|
|
|
29813
|
-
Defined in: [dist/lib/tool.ts:
|
|
29849
|
+
Defined in: [dist/lib/tool.ts:2624](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2624)
|
|
29814
29850
|
|
|
29815
29851
|
#### Parameters
|
|
29816
29852
|
|
|
@@ -29828,7 +29864,7 @@ Defined in: [dist/lib/tool.ts:2638](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29828
29864
|
|
|
29829
29865
|
> `optional` **timeout**: `number`
|
|
29830
29866
|
|
|
29831
|
-
Defined in: [dist/lib/tool.ts:
|
|
29867
|
+
Defined in: [dist/lib/tool.ts:2617](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2617)
|
|
29832
29868
|
|
|
29833
29869
|
***
|
|
29834
29870
|
|
|
@@ -29836,7 +29872,7 @@ Defined in: [dist/lib/tool.ts:2631](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29836
29872
|
|
|
29837
29873
|
> `optional` **uploadEnd**: () => `void` \| `Promise`\<`void`\>
|
|
29838
29874
|
|
|
29839
|
-
Defined in: [dist/lib/tool.ts:
|
|
29875
|
+
Defined in: [dist/lib/tool.ts:2623](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2623)
|
|
29840
29876
|
|
|
29841
29877
|
#### Returns
|
|
29842
29878
|
|
|
@@ -29848,7 +29884,7 @@ Defined in: [dist/lib/tool.ts:2637](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29848
29884
|
|
|
29849
29885
|
> `optional` **uploadProgress**: (`loaded`, `total`) => `void` \| `Promise`\<`void`\>
|
|
29850
29886
|
|
|
29851
|
-
Defined in: [dist/lib/tool.ts:
|
|
29887
|
+
Defined in: [dist/lib/tool.ts:2622](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2622)
|
|
29852
29888
|
|
|
29853
29889
|
#### Parameters
|
|
29854
29890
|
|
|
@@ -29870,7 +29906,7 @@ Defined in: [dist/lib/tool.ts:2636](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29870
29906
|
|
|
29871
29907
|
> `optional` **uploadStart**: (`total`) => `void` \| `Promise`\<`void`\>
|
|
29872
29908
|
|
|
29873
|
-
Defined in: [dist/lib/tool.ts:
|
|
29909
|
+
Defined in: [dist/lib/tool.ts:2621](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2621)
|
|
29874
29910
|
|
|
29875
29911
|
#### Parameters
|
|
29876
29912
|
|
|
@@ -29893,7 +29929,7 @@ lib/tool/interfaces/IUrl.md
|
|
|
29893
29929
|
|
|
29894
29930
|
# Interface: IUrl
|
|
29895
29931
|
|
|
29896
|
-
Defined in: [dist/lib/tool.ts:
|
|
29932
|
+
Defined in: [dist/lib/tool.ts:2598](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2598)
|
|
29897
29933
|
|
|
29898
29934
|
网址对象
|
|
29899
29935
|
|
|
@@ -29903,7 +29939,7 @@ Defined in: [dist/lib/tool.ts:2612](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29903
29939
|
|
|
29904
29940
|
> **auth**: `string` \| `null`
|
|
29905
29941
|
|
|
29906
|
-
Defined in: [dist/lib/tool.ts:
|
|
29942
|
+
Defined in: [dist/lib/tool.ts:2599](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2599)
|
|
29907
29943
|
|
|
29908
29944
|
***
|
|
29909
29945
|
|
|
@@ -29911,7 +29947,7 @@ Defined in: [dist/lib/tool.ts:2613](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29911
29947
|
|
|
29912
29948
|
> **hash**: `string` \| `null`
|
|
29913
29949
|
|
|
29914
|
-
Defined in: [dist/lib/tool.ts:
|
|
29950
|
+
Defined in: [dist/lib/tool.ts:2600](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2600)
|
|
29915
29951
|
|
|
29916
29952
|
***
|
|
29917
29953
|
|
|
@@ -29919,7 +29955,7 @@ Defined in: [dist/lib/tool.ts:2614](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29919
29955
|
|
|
29920
29956
|
> **host**: `string` \| `null`
|
|
29921
29957
|
|
|
29922
|
-
Defined in: [dist/lib/tool.ts:
|
|
29958
|
+
Defined in: [dist/lib/tool.ts:2601](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2601)
|
|
29923
29959
|
|
|
29924
29960
|
***
|
|
29925
29961
|
|
|
@@ -29927,7 +29963,7 @@ Defined in: [dist/lib/tool.ts:2615](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29927
29963
|
|
|
29928
29964
|
> **hostname**: `string` \| `null`
|
|
29929
29965
|
|
|
29930
|
-
Defined in: [dist/lib/tool.ts:
|
|
29966
|
+
Defined in: [dist/lib/tool.ts:2602](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2602)
|
|
29931
29967
|
|
|
29932
29968
|
***
|
|
29933
29969
|
|
|
@@ -29935,7 +29971,7 @@ Defined in: [dist/lib/tool.ts:2616](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29935
29971
|
|
|
29936
29972
|
> **pass**: `string` \| `null`
|
|
29937
29973
|
|
|
29938
|
-
Defined in: [dist/lib/tool.ts:
|
|
29974
|
+
Defined in: [dist/lib/tool.ts:2603](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2603)
|
|
29939
29975
|
|
|
29940
29976
|
***
|
|
29941
29977
|
|
|
@@ -29943,7 +29979,7 @@ Defined in: [dist/lib/tool.ts:2617](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29943
29979
|
|
|
29944
29980
|
> **path**: `string` \| `null`
|
|
29945
29981
|
|
|
29946
|
-
Defined in: [dist/lib/tool.ts:
|
|
29982
|
+
Defined in: [dist/lib/tool.ts:2604](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2604)
|
|
29947
29983
|
|
|
29948
29984
|
***
|
|
29949
29985
|
|
|
@@ -29951,7 +29987,7 @@ Defined in: [dist/lib/tool.ts:2618](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29951
29987
|
|
|
29952
29988
|
> **pathname**: `string`
|
|
29953
29989
|
|
|
29954
|
-
Defined in: [dist/lib/tool.ts:
|
|
29990
|
+
Defined in: [dist/lib/tool.ts:2605](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2605)
|
|
29955
29991
|
|
|
29956
29992
|
***
|
|
29957
29993
|
|
|
@@ -29959,7 +29995,7 @@ Defined in: [dist/lib/tool.ts:2619](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29959
29995
|
|
|
29960
29996
|
> **port**: `string` \| `null`
|
|
29961
29997
|
|
|
29962
|
-
Defined in: [dist/lib/tool.ts:
|
|
29998
|
+
Defined in: [dist/lib/tool.ts:2607](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2607)
|
|
29963
29999
|
|
|
29964
30000
|
***
|
|
29965
30001
|
|
|
@@ -29967,7 +30003,7 @@ Defined in: [dist/lib/tool.ts:2621](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29967
30003
|
|
|
29968
30004
|
> **protocol**: `string` \| `null`
|
|
29969
30005
|
|
|
29970
|
-
Defined in: [dist/lib/tool.ts:
|
|
30006
|
+
Defined in: [dist/lib/tool.ts:2606](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2606)
|
|
29971
30007
|
|
|
29972
30008
|
***
|
|
29973
30009
|
|
|
@@ -29975,7 +30011,7 @@ Defined in: [dist/lib/tool.ts:2620](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29975
30011
|
|
|
29976
30012
|
> **query**: `string` \| `null`
|
|
29977
30013
|
|
|
29978
|
-
Defined in: [dist/lib/tool.ts:
|
|
30014
|
+
Defined in: [dist/lib/tool.ts:2608](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2608)
|
|
29979
30015
|
|
|
29980
30016
|
***
|
|
29981
30017
|
|
|
@@ -29983,7 +30019,7 @@ Defined in: [dist/lib/tool.ts:2622](https://github.com/maiyun/clickgo/blob/maste
|
|
|
29983
30019
|
|
|
29984
30020
|
> **user**: `string` \| `null`
|
|
29985
30021
|
|
|
29986
|
-
Defined in: [dist/lib/tool.ts:
|
|
30022
|
+
Defined in: [dist/lib/tool.ts:2609](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2609)
|
|
29987
30023
|
|
|
29988
30024
|
lib/tool/type-aliases/TFalsy.md
|
|
29989
30025
|
---
|
|
@@ -29998,7 +30034,7 @@ lib/tool/type-aliases/TFalsy.md
|
|
|
29998
30034
|
|
|
29999
30035
|
> **TFalsy** = `false` \| `""` \| `0` \| `null` \| `undefined` \| *typeof* `NaN`
|
|
30000
30036
|
|
|
30001
|
-
Defined in: [dist/lib/tool.ts:
|
|
30037
|
+
Defined in: [dist/lib/tool.ts:2632](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2632)
|
|
30002
30038
|
|
|
30003
30039
|
虚假值类型
|
|
30004
30040
|
|
|
@@ -30015,7 +30051,7 @@ lib/tool/variables/lang.md
|
|
|
30015
30051
|
|
|
30016
30052
|
> `const` **lang**: `object`
|
|
30017
30053
|
|
|
30018
|
-
Defined in: [dist/lib/tool.ts:
|
|
30054
|
+
Defined in: [dist/lib/tool.ts:2540](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L2540)
|
|
30019
30055
|
|
|
30020
30056
|
语言相关
|
|
30021
30057
|
|
|
@@ -30070,7 +30106,7 @@ lib/tool/variables/RANDOM_L.md
|
|
|
30070
30106
|
|
|
30071
30107
|
> `const` **RANDOM\_L**: `"abcdefghijklmnopqrstuvwxyz"` = `'abcdefghijklmnopqrstuvwxyz'`
|
|
30072
30108
|
|
|
30073
|
-
Defined in: [dist/lib/tool.ts:
|
|
30109
|
+
Defined in: [dist/lib/tool.ts:666](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L666)
|
|
30074
30110
|
|
|
30075
30111
|
lib/tool/variables/RANDOM_LN.md
|
|
30076
30112
|
---
|
|
@@ -30085,7 +30121,7 @@ lib/tool/variables/RANDOM_LN.md
|
|
|
30085
30121
|
|
|
30086
30122
|
> `const` **RANDOM\_LN**: `string`
|
|
30087
30123
|
|
|
30088
|
-
Defined in: [dist/lib/tool.ts:
|
|
30124
|
+
Defined in: [dist/lib/tool.ts:669](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L669)
|
|
30089
30125
|
|
|
30090
30126
|
lib/tool/variables/RANDOM_LU.md
|
|
30091
30127
|
---
|
|
@@ -30100,7 +30136,7 @@ lib/tool/variables/RANDOM_LU.md
|
|
|
30100
30136
|
|
|
30101
30137
|
> `const` **RANDOM\_LU**: `string`
|
|
30102
30138
|
|
|
30103
|
-
Defined in: [dist/lib/tool.ts:
|
|
30139
|
+
Defined in: [dist/lib/tool.ts:670](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L670)
|
|
30104
30140
|
|
|
30105
30141
|
lib/tool/variables/RANDOM_LUN.md
|
|
30106
30142
|
---
|
|
@@ -30115,7 +30151,7 @@ lib/tool/variables/RANDOM_LUN.md
|
|
|
30115
30151
|
|
|
30116
30152
|
> `const` **RANDOM\_LUN**: `string`
|
|
30117
30153
|
|
|
30118
|
-
Defined in: [dist/lib/tool.ts:
|
|
30154
|
+
Defined in: [dist/lib/tool.ts:671](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L671)
|
|
30119
30155
|
|
|
30120
30156
|
lib/tool/variables/RANDOM_LUNS.md
|
|
30121
30157
|
---
|
|
@@ -30130,7 +30166,7 @@ lib/tool/variables/RANDOM_LUNS.md
|
|
|
30130
30166
|
|
|
30131
30167
|
> `const` **RANDOM\_LUNS**: `string`
|
|
30132
30168
|
|
|
30133
|
-
Defined in: [dist/lib/tool.ts:
|
|
30169
|
+
Defined in: [dist/lib/tool.ts:673](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L673)
|
|
30134
30170
|
|
|
30135
30171
|
lib/tool/variables/RANDOM_N.md
|
|
30136
30172
|
---
|
|
@@ -30145,7 +30181,7 @@ lib/tool/variables/RANDOM_N.md
|
|
|
30145
30181
|
|
|
30146
30182
|
> `const` **RANDOM\_N**: `"0123456789"` = `'0123456789'`
|
|
30147
30183
|
|
|
30148
|
-
Defined in: [dist/lib/tool.ts:
|
|
30184
|
+
Defined in: [dist/lib/tool.ts:664](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L664)
|
|
30149
30185
|
|
|
30150
30186
|
lib/tool/variables/RANDOM_U.md
|
|
30151
30187
|
---
|
|
@@ -30160,7 +30196,7 @@ lib/tool/variables/RANDOM_U.md
|
|
|
30160
30196
|
|
|
30161
30197
|
> `const` **RANDOM\_U**: `"ABCDEFGHIJKLMNOPQRSTUVWXYZ"` = `'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
30162
30198
|
|
|
30163
|
-
Defined in: [dist/lib/tool.ts:
|
|
30199
|
+
Defined in: [dist/lib/tool.ts:665](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L665)
|
|
30164
30200
|
|
|
30165
30201
|
lib/tool/variables/RANDOM_UN.md
|
|
30166
30202
|
---
|
|
@@ -30175,7 +30211,7 @@ lib/tool/variables/RANDOM_UN.md
|
|
|
30175
30211
|
|
|
30176
30212
|
> `const` **RANDOM\_UN**: `string`
|
|
30177
30213
|
|
|
30178
|
-
Defined in: [dist/lib/tool.ts:
|
|
30214
|
+
Defined in: [dist/lib/tool.ts:668](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L668)
|
|
30179
30215
|
|
|
30180
30216
|
lib/tool/variables/RANDOM_V.md
|
|
30181
30217
|
---
|
|
@@ -30190,7 +30226,7 @@ lib/tool/variables/RANDOM_V.md
|
|
|
30190
30226
|
|
|
30191
30227
|
> `const` **RANDOM\_V**: `"ACEFGHJKLMNPRSTWXY34567"` = `'ACEFGHJKLMNPRSTWXY34567'`
|
|
30192
30228
|
|
|
30193
|
-
Defined in: [dist/lib/tool.ts:
|
|
30229
|
+
Defined in: [dist/lib/tool.ts:672](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L672)
|
|
30194
30230
|
|
|
30195
30231
|
lib/zip/classes/Zip.md
|
|
30196
30232
|
---
|