clickgo 4.0.4 → 4.0.5
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/app/demo.cga +0 -0
- package/dist/app/task.cga +0 -0
- package/dist/control/arteditor.cgc +0 -0
- package/dist/control/box.cgc +0 -0
- package/dist/control/captcha.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/novnc.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/tums.cgc +0 -0
- package/dist/control/xterm.cgc +0 -0
- package/dist/index.js +1 -1
- package/dist/lib/fs.d.ts +2 -2
- package/dist/lib/theme.d.ts +3 -2
- package/dist/theme/dark.cgt +0 -0
- package/dist/theme/light.cgt +0 -0
- package/package.json +1 -1
package/dist/lib/fs.d.ts
CHANGED
|
@@ -16,14 +16,14 @@ export declare function mount(current: lCore.TCurrent, name: string, handler: IM
|
|
|
16
16
|
* @param name 目录名
|
|
17
17
|
*/
|
|
18
18
|
export declare function unmount(name: string): Promise<boolean>;
|
|
19
|
-
export declare function getContent(current: lCore.TCurrent, path: string, options?: {
|
|
19
|
+
export declare function getContent(current: lCore.TCurrent | null, path: string, options?: {
|
|
20
20
|
'start'?: number;
|
|
21
21
|
'end'?: number;
|
|
22
22
|
'progress'?: (loaded: number, total: number) => void | Promise<void>;
|
|
23
23
|
/** --- 网络模式下携带后缀,如 ?123 --- */
|
|
24
24
|
'after'?: string;
|
|
25
25
|
}): Promise<string | Blob | null>;
|
|
26
|
-
export declare function getContent(current: lCore.TCurrent, path: string, options: BufferEncoding | {
|
|
26
|
+
export declare function getContent(current: lCore.TCurrent | null, path: string, options: BufferEncoding | {
|
|
27
27
|
'encoding': BufferEncoding;
|
|
28
28
|
'start'?: number;
|
|
29
29
|
'end'?: number;
|
package/dist/lib/theme.d.ts
CHANGED
|
@@ -30,9 +30,10 @@ export declare function remove(taskId: lCore.TCurrent, name: string): Promise<vo
|
|
|
30
30
|
export declare function clear(taskId: lCore.TCurrent): Promise<void>;
|
|
31
31
|
/**
|
|
32
32
|
* --- 将 cgt 主题设置到全局所有任务 ---
|
|
33
|
-
* @param theme
|
|
33
|
+
* @param theme 主题对象或路径
|
|
34
|
+
* @param current 如果要读包内对象,则要传当前任务
|
|
34
35
|
*/
|
|
35
|
-
export declare function setGlobal(theme: ITheme): Promise<void>;
|
|
36
|
+
export declare function setGlobal(theme: ITheme | string, current?: lCore.TCurrent | null): Promise<void>;
|
|
36
37
|
/**
|
|
37
38
|
* --- 清除全局主题 ---
|
|
38
39
|
*/
|
package/dist/theme/dark.cgt
CHANGED
|
Binary file
|
package/dist/theme/light.cgt
CHANGED
|
Binary file
|