clickgo 4.0.3 → 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/README.md +6 -7
- 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/core.d.ts +4 -4
- package/dist/lib/dom.d.ts +1 -0
- package/dist/lib/fs.d.ts +2 -2
- package/dist/lib/task.d.ts +38 -0
- 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/README.md
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
Build web and native apps using HTML + CSS.
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
The app compiles into a single `.cga` file, running in the web or natively via [ClickGo Native](https://github.com/maiyun/clickgo-native). Build image editors, database tools, file browsers, or admin dashboards—all with ease.
|
|
24
24
|
|
|
25
25
|
<p align="center">
|
|
26
26
|
<img src="./doc/pic3.jpg" alt="ClickGo">
|
|
@@ -30,12 +30,12 @@ Apps compile into a single `.cga` file — run it in the browser or locally via
|
|
|
30
30
|
|
|
31
31
|
## Usage
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
You'll need the [ClickGo Compiler](https://github.com/maiyun/clickgo-compiler) to compile the "app" folder into a .cga file. Then compile the entry file and reference it in the browser.
|
|
34
34
|
|
|
35
35
|
**index.html**
|
|
36
36
|
|
|
37
37
|
```html
|
|
38
|
-
<script src="
|
|
38
|
+
<script type="module" src="index.pack.js"></script>
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
**index.js**
|
|
@@ -44,7 +44,7 @@ First, load the module loader, then load your app with it.
|
|
|
44
44
|
import * as clickgo from 'clickgo';
|
|
45
45
|
class Boot extends clickgo.AbstractBoot {
|
|
46
46
|
public async main(): Promise<void> {
|
|
47
|
-
await clickgo.task.run('xxx');
|
|
47
|
+
await clickgo.task.run(this._sysId, 'xxx.cga');
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
clickgo.launcher(new Boot());
|
|
@@ -56,14 +56,13 @@ Use TypeScript? Install via NPM for full IntelliSense support.
|
|
|
56
56
|
|
|
57
57
|
```sh
|
|
58
58
|
$ npm i clickgo --save-dev
|
|
59
|
-
$ npm i @litert/loader --save-dev
|
|
60
59
|
$ npm i jszip --save-dev
|
|
60
|
+
$ npm i vue --save-dev
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
## Notes
|
|
64
64
|
|
|
65
|
-
ClickGo auto-loads Vue, jszip
|
|
66
|
-
**Don't** include them manually — just import the `ClickGo` module.
|
|
65
|
+
ClickGo auto-loads Vue, jszip. **Don't** include them manually.
|
|
67
66
|
|
|
68
67
|
## Demo
|
|
69
68
|
|
package/dist/app/demo.cga
CHANGED
|
Binary file
|
package/dist/app/task.cga
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/control/box.cgc
CHANGED
|
Binary file
|
package/dist/control/captcha.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/novnc.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/tums.cgc
CHANGED
|
Binary file
|
package/dist/control/xterm.cgc
CHANGED
|
Binary file
|