clickgo 3.16.28 → 4.0.0
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 +19 -8
- package/dist/app/{demo/res/video.mp4 → 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/ext/tums-player/audio.wasm +0 -0
- package/dist/ext/tums-player/decoder.worker.js +129 -0
- package/dist/ext/tums-player/libaudio.js +1 -0
- package/dist/ext/tums-player/libaudio.wasm +0 -0
- package/dist/ext/tums-player/libffmpeg.js +1 -0
- package/dist/ext/tums-player/libffmpeg.wasm +0 -0
- package/dist/ext/tums-player/libs.worker.js +92 -0
- package/dist/ext/tums-player/tums-player.umd.min.js +35 -0
- package/dist/ext/tums-player/webgl.js +2 -0
- package/dist/ext/tums-player/webgl.worker.js +42 -0
- package/dist/global.css +1 -1
- package/dist/index.js +1 -175
- package/dist/theme/dark.cgt +0 -0
- package/dist/theme/light.cgt +0 -0
- package/package.json +16 -10
- package/dist/app/demo/app.js +0 -48
- package/dist/app/demo/config.json +0 -252
- package/dist/app/demo/form/control/alayout2/alayout2.js +0 -43
- package/dist/app/demo/form/control/alayout2/alayout2.xml +0 -16
- package/dist/app/demo/form/control/alert/alert.js +0 -43
- package/dist/app/demo/form/control/alert/alert.xml +0 -32
- package/dist/app/demo/form/control/arteditor/arteditor.js +0 -64
- package/dist/app/demo/form/control/arteditor/arteditor.xml +0 -12
- package/dist/app/demo/form/control/arteditor/img.js +0 -61
- package/dist/app/demo/form/control/arteditor/img.xml +0 -6
- package/dist/app/demo/form/control/block/block.css +0 -1
- package/dist/app/demo/form/control/block/block.scss +0 -17
- package/dist/app/demo/form/control/block/block.xml +0 -7
- package/dist/app/demo/form/control/box/box.js +0 -87
- package/dist/app/demo/form/control/box/box.xml +0 -23
- package/dist/app/demo/form/control/button/button.css +0 -1
- package/dist/app/demo/form/control/button/button.js +0 -51
- package/dist/app/demo/form/control/button/button.scss +0 -18
- package/dist/app/demo/form/control/button/button.xml +0 -133
- package/dist/app/demo/form/control/calendar/calendar.js +0 -62
- package/dist/app/demo/form/control/calendar/calendar.xml +0 -34
- package/dist/app/demo/form/control/captcha/captcha.js +0 -60
- package/dist/app/demo/form/control/captcha/captcha.xml +0 -10
- package/dist/app/demo/form/control/check/check.js +0 -54
- package/dist/app/demo/form/control/check/check.xml +0 -17
- package/dist/app/demo/form/control/circle/circle.xml +0 -36
- package/dist/app/demo/form/control/content/content.js +0 -47
- package/dist/app/demo/form/control/content/content.xml +0 -16
- package/dist/app/demo/form/control/date/date.js +0 -56
- package/dist/app/demo/form/control/date/date.xml +0 -28
- package/dist/app/demo/form/control/datepanel/datepanel.js +0 -63
- package/dist/app/demo/form/control/datepanel/datepanel.xml +0 -32
- package/dist/app/demo/form/control/daterange/daterange.js +0 -54
- package/dist/app/demo/form/control/daterange/daterange.xml +0 -22
- package/dist/app/demo/form/control/delete/delete.js +0 -47
- package/dist/app/demo/form/control/delete/delete.xml +0 -20
- package/dist/app/demo/form/control/desc/desc.js +0 -82
- package/dist/app/demo/form/control/desc/desc.xml +0 -44
- package/dist/app/demo/form/control/dialog/dialog.js +0 -49
- package/dist/app/demo/form/control/dialog/dialog.xml +0 -46
- package/dist/app/demo/form/control/drawer/drawer.js +0 -45
- package/dist/app/demo/form/control/drawer/drawer.xml +0 -34
- package/dist/app/demo/form/control/echarts/echarts.js +0 -137
- package/dist/app/demo/form/control/echarts/echarts.xml +0 -12
- package/dist/app/demo/form/control/empty/empty.js +0 -44
- package/dist/app/demo/form/control/empty/empty.xml +0 -9
- package/dist/app/demo/form/control/file/file.js +0 -60
- package/dist/app/demo/form/control/file/file.xml +0 -25
- package/dist/app/demo/form/control/flow/flow.css +0 -1
- package/dist/app/demo/form/control/flow/flow.js +0 -86
- package/dist/app/demo/form/control/flow/flow.scss +0 -18
- package/dist/app/demo/form/control/flow/flow.xml +0 -101
- package/dist/app/demo/form/control/form/form.css +0 -1
- package/dist/app/demo/form/control/form/form.js +0 -66
- package/dist/app/demo/form/control/form/form.scss +0 -5
- package/dist/app/demo/form/control/form/form.xml +0 -29
- package/dist/app/demo/form/control/grid/grid.js +0 -45
- package/dist/app/demo/form/control/grid/grid.xml +0 -27
- package/dist/app/demo/form/control/group/group.js +0 -50
- package/dist/app/demo/form/control/group/group.xml +0 -46
- package/dist/app/demo/form/control/hske/hske.js +0 -44
- package/dist/app/demo/form/control/hske/hske.xml +0 -19
- package/dist/app/demo/form/control/html/html.js +0 -70
- package/dist/app/demo/form/control/html/html.xml +0 -18
- package/dist/app/demo/form/control/icon/icon.xml +0 -49
- package/dist/app/demo/form/control/iconview/iconview.js +0 -174
- package/dist/app/demo/form/control/iconview/iconview.xml +0 -45
- package/dist/app/demo/form/control/img/img.xml +0 -26
- package/dist/app/demo/form/control/imgviewer/imgviewer.js +0 -46
- package/dist/app/demo/form/control/imgviewer/imgviewer.xml +0 -9
- package/dist/app/demo/form/control/jodit/jodit.js +0 -64
- package/dist/app/demo/form/control/jodit/jodit.xml +0 -24
- package/dist/app/demo/form/control/label/label.js +0 -51
- package/dist/app/demo/form/control/label/label.xml +0 -34
- package/dist/app/demo/form/control/layout/layout.js +0 -45
- package/dist/app/demo/form/control/layout/layout.xml +0 -18
- package/dist/app/demo/form/control/link/link.js +0 -42
- package/dist/app/demo/form/control/link/link.xml +0 -30
- package/dist/app/demo/form/control/list/list.css +0 -1
- package/dist/app/demo/form/control/list/list.js +0 -375
- package/dist/app/demo/form/control/list/list.scss +0 -7
- package/dist/app/demo/form/control/list/list.xml +0 -150
- package/dist/app/demo/form/control/loading/loading.xml +0 -8
- package/dist/app/demo/form/control/map/map.js +0 -206
- package/dist/app/demo/form/control/map/map.xml +0 -44
- package/dist/app/demo/form/control/marquee/marquee.js +0 -64
- package/dist/app/demo/form/control/marquee/marquee.xml +0 -33
- package/dist/app/demo/form/control/menu/menu.js +0 -56
- package/dist/app/demo/form/control/menu/menu.xml +0 -125
- package/dist/app/demo/form/control/monaco/monaco.js +0 -136
- package/dist/app/demo/form/control/monaco/monaco.xml +0 -28
- package/dist/app/demo/form/control/mpegts/mpegts.js +0 -70
- package/dist/app/demo/form/control/mpegts/mpegts.xml +0 -11
- package/dist/app/demo/form/control/nav/nav.js +0 -60
- package/dist/app/demo/form/control/nav/nav.xml +0 -106
- package/dist/app/demo/form/control/novnc/novnc.js +0 -75
- package/dist/app/demo/form/control/novnc/novnc.xml +0 -13
- package/dist/app/demo/form/control/page/page.js +0 -51
- package/dist/app/demo/form/control/page/page.xml +0 -22
- package/dist/app/demo/form/control/palette/palette.js +0 -46
- package/dist/app/demo/form/control/palette/palette.xml +0 -16
- package/dist/app/demo/form/control/panel/panel.js +0 -106
- package/dist/app/demo/form/control/panel/panel.xml +0 -16
- package/dist/app/demo/form/control/panel/test1.js +0 -84
- package/dist/app/demo/form/control/panel/test1.xml +0 -22
- package/dist/app/demo/form/control/panel/test2.xml +0 -4
- package/dist/app/demo/form/control/pdf/pdf.js +0 -65
- package/dist/app/demo/form/control/pdf/pdf.xml +0 -12
- package/dist/app/demo/form/control/pdf/test.pdf +0 -0
- package/dist/app/demo/form/control/progress/progress.js +0 -54
- package/dist/app/demo/form/control/progress/progress.xml +0 -9
- package/dist/app/demo/form/control/property/property.js +0 -166
- package/dist/app/demo/form/control/property/property.xml +0 -6
- package/dist/app/demo/form/control/qrcode/qrcode.js +0 -45
- package/dist/app/demo/form/control/qrcode/qrcode.xml +0 -13
- package/dist/app/demo/form/control/radio/radio.js +0 -51
- package/dist/app/demo/form/control/radio/radio.xml +0 -15
- package/dist/app/demo/form/control/scroll/scroll.js +0 -52
- package/dist/app/demo/form/control/scroll/scroll.xml +0 -38
- package/dist/app/demo/form/control/select/select.js +0 -273
- package/dist/app/demo/form/control/select/select.xml +0 -141
- package/dist/app/demo/form/control/setting/setting.xml +0 -11
- package/dist/app/demo/form/control/sgroup/sgroup.xml +0 -28
- package/dist/app/demo/form/control/step/step.js +0 -61
- package/dist/app/demo/form/control/step/step.xml +0 -16
- package/dist/app/demo/form/control/svg/svg.js +0 -61
- package/dist/app/demo/form/control/svg/svg.xml +0 -24
- package/dist/app/demo/form/control/switch/switch.js +0 -53
- package/dist/app/demo/form/control/switch/switch.xml +0 -29
- package/dist/app/demo/form/control/tab/tab.js +0 -102
- package/dist/app/demo/form/control/tab/tab.xml +0 -22
- package/dist/app/demo/form/control/table/table.js +0 -218
- package/dist/app/demo/form/control/table/table.xml +0 -97
- package/dist/app/demo/form/control/tag/tag.js +0 -44
- package/dist/app/demo/form/control/tag/tag.xml +0 -52
- package/dist/app/demo/form/control/text/text.js +0 -116
- package/dist/app/demo/form/control/text/text.xml +0 -70
- package/dist/app/demo/form/control/timeline/timeline.js +0 -43
- package/dist/app/demo/form/control/timeline/timeline.xml +0 -19
- package/dist/app/demo/form/control/tip/tip.js +0 -43
- package/dist/app/demo/form/control/tip/tip.xml +0 -42
- package/dist/app/demo/form/control/tplink/tplink.js +0 -74
- package/dist/app/demo/form/control/tplink/tplink.xml +0 -13
- package/dist/app/demo/form/control/tuieditor/tuieditor.js +0 -62
- package/dist/app/demo/form/control/tuieditor/tuieditor.xml +0 -22
- package/dist/app/demo/form/control/tuiviewer/tuiviewer.js +0 -45
- package/dist/app/demo/form/control/tuiviewer/tuiviewer.xml +0 -14
- package/dist/app/demo/form/control/uploader/uploader.js +0 -80
- package/dist/app/demo/form/control/uploader/uploader.xml +0 -15
- package/dist/app/demo/form/control/vflow/vflow.css +0 -1
- package/dist/app/demo/form/control/vflow/vflow.js +0 -101
- package/dist/app/demo/form/control/vflow/vflow.scss +0 -22
- package/dist/app/demo/form/control/vflow/vflow.xml +0 -89
- package/dist/app/demo/form/control/video/video.js +0 -47
- package/dist/app/demo/form/control/video/video.xml +0 -14
- package/dist/app/demo/form/control/web/web.js +0 -43
- package/dist/app/demo/form/control/web/web.xml +0 -4
- package/dist/app/demo/form/control/xterm/xterm.js +0 -100
- package/dist/app/demo/form/control/xterm/xterm.xml +0 -6
- package/dist/app/demo/form/event/form/form.css +0 -1
- package/dist/app/demo/form/event/form/form.js +0 -169
- package/dist/app/demo/form/event/form/form.scss +0 -24
- package/dist/app/demo/form/event/form/form.xml +0 -16
- package/dist/app/demo/form/event/other/other.js +0 -78
- package/dist/app/demo/form/event/other/other.xml +0 -5
- package/dist/app/demo/form/event/screen/screen.js +0 -86
- package/dist/app/demo/form/event/screen/screen.xml +0 -9
- package/dist/app/demo/form/event/task/task.js +0 -96
- package/dist/app/demo/form/event/task/task.xml +0 -20
- package/dist/app/demo/form/main.css +0 -1
- package/dist/app/demo/form/main.js +0 -515
- package/dist/app/demo/form/main.scss +0 -9
- package/dist/app/demo/form/main.xml +0 -163
- package/dist/app/demo/form/method/acontrol/acontrol.js +0 -42
- package/dist/app/demo/form/method/acontrol/acontrol.xml +0 -5
- package/dist/app/demo/form/method/aform/aform.js +0 -104
- package/dist/app/demo/form/method/aform/aform.xml +0 -60
- package/dist/app/demo/form/method/aform/sd.js +0 -47
- package/dist/app/demo/form/method/aform/sd.xml +0 -7
- package/dist/app/demo/form/method/core/core.js +0 -86
- package/dist/app/demo/form/method/core/core.xml +0 -23
- package/dist/app/demo/form/method/dom/dom.css +0 -1
- package/dist/app/demo/form/method/dom/dom.js +0 -228
- package/dist/app/demo/form/method/dom/dom.scss +0 -10
- package/dist/app/demo/form/method/dom/dom.xml +0 -76
- package/dist/app/demo/form/method/form/form.js +0 -244
- package/dist/app/demo/form/method/form/form.xml +0 -74
- package/dist/app/demo/form/method/form/test.xml +0 -5
- package/dist/app/demo/form/method/fs/fs.js +0 -209
- package/dist/app/demo/form/method/fs/fs.xml +0 -18
- package/dist/app/demo/form/method/fs/text.js +0 -48
- package/dist/app/demo/form/method/fs/text.xml +0 -3
- package/dist/app/demo/form/method/native/native.js +0 -100
- package/dist/app/demo/form/method/native/native.xml +0 -22
- package/dist/app/demo/form/method/storage/storage.js +0 -77
- package/dist/app/demo/form/method/storage/storage.xml +0 -18
- package/dist/app/demo/form/method/system/system.js +0 -63
- package/dist/app/demo/form/method/system/system.xml +0 -14
- package/dist/app/demo/form/method/task/locale1.json +0 -3
- package/dist/app/demo/form/method/task/locale2.json +0 -3
- package/dist/app/demo/form/method/task/task.js +0 -177
- package/dist/app/demo/form/method/task/task.xml +0 -61
- package/dist/app/demo/form/method/theme/theme.js +0 -92
- package/dist/app/demo/form/method/theme/theme.xml +0 -12
- package/dist/app/demo/form/method/tool/tool.js +0 -122
- package/dist/app/demo/form/method/tool/tool.xml +0 -40
- package/dist/app/demo/form/method/zip/zip.js +0 -126
- package/dist/app/demo/form/method/zip/zip.xml +0 -12
- package/dist/app/demo/form/solution/backpanel/backpanel.js +0 -76
- package/dist/app/demo/form/solution/backpanel/backpanel.xml +0 -31
- package/dist/app/demo/global.css +0 -3
- package/dist/app/demo/res/custombtn.cgc +0 -0
- package/dist/app/demo/res/icon.svg +0 -5
- package/dist/app/demo/res/img.jpg +0 -0
- package/dist/app/demo/res/marker.svg +0 -5
- package/dist/app/demo/res/r-1.svg +0 -32
- package/dist/app/demo/res/r-2.svg +0 -38
- package/dist/app/demo/res/sql.svg +0 -25
- package/dist/app/demo/res/txt.svg +0 -21
- package/dist/app/demo/res/zip.svg +0 -21
- package/dist/app/task/app.js +0 -46
- package/dist/app/task/config.json +0 -29
- package/dist/app/task/form/bar/bar.js +0 -406
- package/dist/app/task/form/bar/bar.xml +0 -46
- package/dist/app/task/form/desktop/desktop.xml +0 -1
- package/dist/app/task/locale/en.json +0 -11
- package/dist/app/task/locale/ja.json +0 -11
- package/dist/app/task/locale/sc.json +0 -11
- package/dist/app/task/locale/tc.json +0 -11
- package/dist/clickgo.d.ts +0 -22
- package/dist/clickgo.js +0 -109
- package/dist/index.d.ts +0 -55
- package/dist/lib/control.d.ts +0 -53
- package/dist/lib/control.js +0 -584
- package/dist/lib/core.d.ts +0 -47
- package/dist/lib/core.js +0 -1005
- package/dist/lib/dom.d.ts +0 -75
- package/dist/lib/dom.js +0 -2147
- package/dist/lib/form.d.ts +0 -222
- package/dist/lib/form.js +0 -2961
- package/dist/lib/fs.d.ts +0 -35
- package/dist/lib/fs.js +0 -1183
- package/dist/lib/native.d.ts +0 -43
- package/dist/lib/native.js +0 -197
- package/dist/lib/storage.d.ts +0 -6
- package/dist/lib/storage.js +0 -215
- package/dist/lib/task.d.ts +0 -32
- package/dist/lib/task.js +0 -1831
- package/dist/lib/theme.d.ts +0 -8
- package/dist/lib/theme.js +0 -176
- package/dist/lib/tool.d.ts +0 -122
- package/dist/lib/tool.js +0 -1021
- package/dist/lib/zip.d.ts +0 -40
- package/dist/lib/zip.js +0 -382
- package/dist/theme/blue.cgt +0 -0
- package/dist/theme/byterun.cgt +0 -0
- package/types/index.d.ts +0 -1374
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<form width="700" height="500" title="Uploader">
|
|
2
|
-
<layout direction="v" gutter="10" style="flex: 1; padding: 10px;">
|
|
3
|
-
<label>value: {{list}}</label>
|
|
4
|
-
<uploader :disabled="disabled" v-model="list" :multi="multi" :drag="drag" :length="length[0]" @select="select" pre="/package/" :progress="progress"></uploader>
|
|
5
|
-
<layout gutter="10">
|
|
6
|
-
<button style="flex: 1" @click="disabled = !disabled">{{disabled ? '' : '!'}}disabled</button>
|
|
7
|
-
<button style="flex: 1" @click="multi = !multi">{{multi ? '' : '!'}}multi</button>
|
|
8
|
-
<button style="flex: 1" @click="drag = !drag">{{drag ? '' : '!'}}drag</button>
|
|
9
|
-
</layout>
|
|
10
|
-
<layout gutter="10">
|
|
11
|
-
<button style="flex: 1" @click="list.push({'title': 'main', 'src': 'res/img.jpg'})">Add title</button>
|
|
12
|
-
<select style="flex: 1" v-model="length" :data="['3', '5', '7', '10']"></select>
|
|
13
|
-
</layout>
|
|
14
|
-
</layout>
|
|
15
|
-
</form>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.border{border:1px solid var(--g-border-color)}.custom{margin:auto;background:#07c160;width:60%;height:30px;color:#fff;text-align:center;line-height:30px}.rightborder{border-right:1px solid var(--g-border-color)}.block{width:200px;height:200px;padding:0 10px 10px 0}.block block{background:#07c160;color:#fff;display:flex;align-items:center;justify-content:center;flex:1}.content{display:inline-block;padding:5px;background:var(--g-border-color);color:var(--face);margin-left:2px;margin-bottom:1px}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const clickgo = __importStar(require("clickgo"));
|
|
37
|
-
class default_1 extends clickgo.form.AbstractForm {
|
|
38
|
-
constructor() {
|
|
39
|
-
super(...arguments);
|
|
40
|
-
this.ntab = '';
|
|
41
|
-
this.lineValue = [100];
|
|
42
|
-
this.lineCount = 2;
|
|
43
|
-
this.sLeft1 = 0;
|
|
44
|
-
this.sTop1 = 0;
|
|
45
|
-
this.sWidth1 = 0;
|
|
46
|
-
this.sHeight1 = 0;
|
|
47
|
-
this.cWidth1 = 0;
|
|
48
|
-
this.cHeight1 = 0;
|
|
49
|
-
this.sLeft2 = 0;
|
|
50
|
-
this.sTop2 = 0;
|
|
51
|
-
this.sWidth2 = 0;
|
|
52
|
-
this.sHeight2 = 0;
|
|
53
|
-
this.cWidth2 = 0;
|
|
54
|
-
this.cHeight2 = 0;
|
|
55
|
-
this.sLeft3 = 0;
|
|
56
|
-
this.sTop3 = 0;
|
|
57
|
-
this.sWidth3 = 0;
|
|
58
|
-
this.sHeight3 = 0;
|
|
59
|
-
this.cWidth3 = 0;
|
|
60
|
-
this.cHeight3 = 0;
|
|
61
|
-
this.sLeft4 = 0;
|
|
62
|
-
this.sTop4 = 0;
|
|
63
|
-
this.sWidth4 = 0;
|
|
64
|
-
this.sHeight4 = 0;
|
|
65
|
-
this.cWidth4 = 0;
|
|
66
|
-
this.cHeight4 = 0;
|
|
67
|
-
this.direction = false;
|
|
68
|
-
this.dir5 = 'v';
|
|
69
|
-
this.sLeft5 = 0;
|
|
70
|
-
this.sTop5 = 0;
|
|
71
|
-
this.sWidth5 = 0;
|
|
72
|
-
this.sHeight5 = 0;
|
|
73
|
-
this.cWidth5 = 0;
|
|
74
|
-
this.cHeight5 = 0;
|
|
75
|
-
this.line5 = 10;
|
|
76
|
-
this.cWidth6 = 0;
|
|
77
|
-
this.is6 = {
|
|
78
|
-
'29': 50,
|
|
79
|
-
'39': 50
|
|
80
|
-
};
|
|
81
|
-
this.gesture = false;
|
|
82
|
-
this.style = false;
|
|
83
|
-
this.selection = false;
|
|
84
|
-
this.content = false;
|
|
85
|
-
this.area = {};
|
|
86
|
-
}
|
|
87
|
-
get is() {
|
|
88
|
-
const is = [];
|
|
89
|
-
for (let i = 0; i < this.lineCount; ++i) {
|
|
90
|
-
if (i > 0 && i % 10 === 0) {
|
|
91
|
-
is[i] = 30;
|
|
92
|
-
continue;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return is;
|
|
96
|
-
}
|
|
97
|
-
async onGesture(dir) {
|
|
98
|
-
await clickgo.form.dialog('onGesture: ' + dir);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
exports.default = default_1;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
.border {
|
|
2
|
-
border: 1px solid var(--g-border-color);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.custom {
|
|
6
|
-
margin: auto; background: #07c160; width: 60%; height: 30px; color: #FFF; text-align: center; line-height: 30px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.rightborder {
|
|
10
|
-
border-right: 1px solid var(--g-border-color);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.block {
|
|
14
|
-
width: 200px; height: 200px; padding: 0 10px 10px 0;
|
|
15
|
-
}
|
|
16
|
-
.block block {
|
|
17
|
-
background: #07c160; color: #FFF; display: flex; align-items: center; justify-content: center; flex: 1;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.content {
|
|
21
|
-
display: inline-block; padding: 5px; background: var(--g-border-color); color: var(--face); margin-left: 2px; margin-bottom: 1px;
|
|
22
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
<form title="Vflow" width="450" height="450" min-width="300" min-height="400" padding="10">
|
|
2
|
-
<tab v-model="ntab" :tabs="['normal', 'adaptation', 'beyond', 'nest']" style="flex: 1; width: 0;">
|
|
3
|
-
<!-- 默认 -->
|
|
4
|
-
<layout v-if="ntab === 'normal'" gutter="10" direction="v" style="flex: 1; width: 0; padding: 10px;">
|
|
5
|
-
<!-- v -->
|
|
6
|
-
<layout gutter="10" style="flex: 1; height: 0;">
|
|
7
|
-
<vflow v-model:scroll-left="sLeft1" v-model:scroll-top="sTop1" direction="v" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" @select="area = $event" @clientwidth="cWidth1 = $event" @clientheight="cHeight1 = $event" @scrollwidth="sWidth1 = $event" @scrollheight="sHeight1 = $event" :style="{'line-height': style ? '1.5' : undefined, 'padding': style ? '10px' : undefined}" class="border" style="flex: 1; width: 0;" :data="lineCount" v-slot="data" :sizes="is">
|
|
8
|
-
<button v-if="data.index > 0 && data.index % 10 === 0">test</button>
|
|
9
|
-
<block v-else>Line {{data.row}}, index: {{data.index}}<label v-if="content" class="content">ha</label>.</block>
|
|
10
|
-
</vflow>
|
|
11
|
-
<layout class="border" style="flex: 1; width: 0;">
|
|
12
|
-
<vflow v-model:scroll-left="sLeft2" v-model:scroll-top="sTop2" direction="v" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" @select="area = $event" @clientwidth="cWidth2 = $event" @clientheight="cHeight2 = $event" @scrollwidth="sWidth2 = $event" @scrollheight="sHeight2 = $event" :style="{'line-height': style ? '1.5' : undefined, 'padding': style ? '10px' : undefined}" style="flex: 1; width: 0;" :data="lineCount" v-slot="data" :sizes="is">
|
|
13
|
-
<block v-if="data.index > 0 && data.index % 10 === 0" class="custom">Custom</block>
|
|
14
|
-
<block v-else>Line {{data.row}}, index: {{data.index}}.</block>
|
|
15
|
-
</vflow>
|
|
16
|
-
<scroll :length="sHeight2" :client="cHeight2" v-model:offset="sTop2" style="width: 20px;"></scroll>
|
|
17
|
-
</layout>
|
|
18
|
-
</layout>
|
|
19
|
-
<label>Scroll Left / Top: {{sLeft1}} / {{sTop1}}, Client Width / Height: {{cWidth1}} / {{cHeight1}}, Scroll Width / Height: {{sWidth1}} / {{sHeight1}}.</label>
|
|
20
|
-
<label>Scroll Left / Top: {{sLeft2}} / {{sTop2}}, Client Width / Height: {{cWidth2}} / {{cHeight2}}, Scroll Width / Height: {{sWidth2}} / {{sHeight2}}.</label>
|
|
21
|
-
<!-- h -->
|
|
22
|
-
<vflow v-model:scroll-left="sLeft3" v-model:scroll-top="sTop3" :selection="selection" :gesture="gesture ? ['left', 'right'] : []" @gesture="onGesture" @select="area = $event" @clientwidth="cWidth3 = $event" @clientheight="cHeight3 = $event" @scrollwidth="sWidth3 = $event" @scrollheight="sHeight3 = $event" :style="{'line-height': style ? '1.5' : undefined, 'padding': style ? '10px' : undefined}" class="border" style="flex: 1; height: 0;" :data="lineCount" v-slot="data">
|
|
23
|
-
<layout align-v="center" align-h="center" direction="v" class="rightborder" style="width: 80px;">
|
|
24
|
-
<label>Col {{data.row}}.</label>
|
|
25
|
-
<label>index: {{data.index}}.</label>
|
|
26
|
-
</layout>
|
|
27
|
-
</vflow>
|
|
28
|
-
<label>Scroll Left / Top: {{sLeft3}} / {{sTop3}}, Client Width / Height: {{cWidth3}} / {{cHeight3}}, Scroll Width / Height: {{sWidth3}} / {{sHeight3}}.</label>
|
|
29
|
-
<label>Selection area: {{area}}</label>
|
|
30
|
-
<!-- button list -->
|
|
31
|
-
<layout gutter="10">
|
|
32
|
-
<select v-model="lineValue" :data="[100, 500, 1000, 10000]" style="flex: 1; width: 0;"></select>
|
|
33
|
-
<button @click="lineCount += parseInt(lineValue[0])">Add lines</button>
|
|
34
|
-
<button @click="lineCount -= parseInt(lineValue[0]);if(lineCount < 0) {lineCount = 0;}">Remove lines</button>
|
|
35
|
-
</layout>
|
|
36
|
-
<layout gutter="10">
|
|
37
|
-
<button @click="gesture = !gesture" style="flex: 1; width: 0;">{{gesture ? '' : '!'}}gesture</button>
|
|
38
|
-
<button @click="selection = !selection" style="flex: 1; width: 0;">{{selection ? '' : '!'}}selection</button>
|
|
39
|
-
<button @click="style = !style" style="flex: 1; width: 0;">{{style ? '' : '!'}}style</button>
|
|
40
|
-
<button @click="content = !content" style="flex: 1; width: 0;">{{content ? '' : '!'}}content</button>
|
|
41
|
-
</layout>
|
|
42
|
-
</layout>
|
|
43
|
-
<!-- 自适应 -->
|
|
44
|
-
<layout v-else-if="ntab === 'adaptation'" gutter="10" direction="v" style="flex: 1; width: 0; padding: 10px;">
|
|
45
|
-
<layout :direction="direction ? 'h' : 'v'" style="flex: 1; height: 0;">
|
|
46
|
-
<vflow class="border" v-model:scroll-left="sLeft4" v-model:scroll-top="sTop4" :selection="selection" :gesture="gesture ? (direction ? ['left', 'right'] : ['top', 'bottom']) : []" @gesture="onGesture" :direction="direction ? 'h' : 'v'" @clientwidth="cWidth4 = $event" @clientheight="cHeight4 = $event" @scrollwidth="sWidth4 = $event" @scrollheight="sHeight4 = $event" :data="lineCount" v-slot="data" :sizes="is">
|
|
47
|
-
<layout align-v="center" direction="v" :class="[direction && 'rightborder']" style="flex: 1;">
|
|
48
|
-
<button v-if="data.index > 0 && data.index % 10 === 0" :style="{'width': direction ? '30px' : undefined}">btn</button>
|
|
49
|
-
<block v-else :style="{'width': direction ? '80px' : undefined, 'text-align': direction ? 'center' : undefined}">Line {{data.row}}</block>
|
|
50
|
-
</layout>
|
|
51
|
-
</vflow>
|
|
52
|
-
</layout>
|
|
53
|
-
<label>Scroll Left / Top: {{sLeft4}} / {{sTop4}}, Client Width / Height: {{cWidth4}} / {{cHeight4}}, Scroll Width / Height: {{sWidth4}} / {{sHeight4}}.</label>
|
|
54
|
-
<layout gutter="10">
|
|
55
|
-
<button @click="lineCount += 10" style="flex: 1; width: 0;">Add 10 lines</button>
|
|
56
|
-
<button @click="lineCount -= 10;if(lineCount < 0) {lineCount = 0;}" style="flex: 1; width: 0;">Remove 10 lines</button>
|
|
57
|
-
<button @click="direction = !direction" style="flex: 1;">Direction</button>
|
|
58
|
-
</layout>
|
|
59
|
-
</layout>
|
|
60
|
-
<!-- 内容超出 -->
|
|
61
|
-
<layout v-else-if="ntab === 'beyond'" gutter="10" direction="v" style="flex: 1; width: 0; padding: 10px;">
|
|
62
|
-
<layout gutter="10" align-v="center">
|
|
63
|
-
<button @click="dir5 = (dir5 === 'h' ? 'v' : 'h')" style="flex: 1; width: 0;">Change direction</button>
|
|
64
|
-
<button @click="line5 = (line5 === 10 ? 1 : 10)" style="flex: 1; width: 0;">Change data</button>
|
|
65
|
-
<label>Direction: {{dir5}}</label>
|
|
66
|
-
</layout>
|
|
67
|
-
<vflow v-model:scroll-left="sLeft5" v-model:scroll-top="sTop5" :selection="selection" :gesture="gesture ? ['left', 'right', 'top', 'bottom'] : []" @gesture="onGesture" :direction="dir5" @clientwidth="cWidth5 = $event" @clientheight="cHeight5 = $event" @scrollwidth="sWidth5 = $event" @scrollheight="sHeight5 = $event" class="border" style="flex: 1; height: 0; padding: 10px 0 0 10px;" :data="line5" v-slot="data">
|
|
68
|
-
<layout :direction="dir5 === 'h' ? 'v' : 'h'">
|
|
69
|
-
<layout v-for="j of 10" class="block">
|
|
70
|
-
<block>{{data.row}}-{{j}}</block>
|
|
71
|
-
</layout>
|
|
72
|
-
</layout>
|
|
73
|
-
</vflow>
|
|
74
|
-
<label>Scroll Left / Top: {{sLeft5}} / {{sTop5}}, Client Width / Height: {{cWidth5}} / {{cHeight5}}, Scroll Width / Height: {{sWidth5}} / {{sHeight5}}.</label>
|
|
75
|
-
</layout>
|
|
76
|
-
<!-- 嵌套 -->
|
|
77
|
-
<layout v-else style="flex: 1; width: 0; padding: 10px;">
|
|
78
|
-
<vflow class="border" direction="v" style="flex: 1; width: 0;" :data="100" @clientwidth="cWidth6 = $event" v-slot="data" :sizes="is6">
|
|
79
|
-
<vflow v-if="data.row === 30" :data="50" v-slot="data" class="border" direction="v" style="height: 50px;">
|
|
80
|
-
<label>Line {{data.row}}</label>
|
|
81
|
-
</vflow>
|
|
82
|
-
<vflow v-else-if="data.row === 40" :data="50" v-slot="data" class="border" style="height: 50px;" :style="{'width': cWidth6 + 'px'}">
|
|
83
|
-
<label class="rightborder" style="width: 80px;">Line {{data.row}}</label>
|
|
84
|
-
</vflow>
|
|
85
|
-
<label v-else>Line {{data.row}}</label>
|
|
86
|
-
</vflow>
|
|
87
|
-
</layout>
|
|
88
|
-
</tab>
|
|
89
|
-
</form>
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const clickgo = __importStar(require("clickgo"));
|
|
37
|
-
class default_1 extends clickgo.form.AbstractForm {
|
|
38
|
-
constructor() {
|
|
39
|
-
super(...arguments);
|
|
40
|
-
this.controls = false;
|
|
41
|
-
this.loop = false;
|
|
42
|
-
this.muted = false;
|
|
43
|
-
this.play = false;
|
|
44
|
-
this.volume = 50;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.default = default_1;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<form width="450" height="500" title="Video" padding="10">
|
|
2
|
-
<layout direction="v" gutter="10" style="flex: 1;">
|
|
3
|
-
<label>volume: {{volume}}</label>
|
|
4
|
-
<video src="/package/res/video.mp4" :controls="controls" :loop="loop" :muted="muted" v-model:volume="volume" v-model:play="play" style="flex: 1; height: 0;"></video>
|
|
5
|
-
<layout gutter="10">
|
|
6
|
-
<button @click="controls = !controls" style="flex: 1;">{{controls ? '' : '!'}}controls</button>
|
|
7
|
-
<button @click="loop = !loop" style="flex: 1;">{{loop ? '' : '!'}}loop</button>
|
|
8
|
-
<button @click="muted = !muted" style="flex: 1;">{{muted ? '' : '!'}}muted</button>
|
|
9
|
-
</layout>
|
|
10
|
-
<layout gutter="10">
|
|
11
|
-
<button @click="play = !play" style="flex: 1;">{{play ? '' : '!'}}play</button>
|
|
12
|
-
</layout>
|
|
13
|
-
</layout>
|
|
14
|
-
</form>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const clickgo = __importStar(require("clickgo"));
|
|
37
|
-
class default_1 extends clickgo.form.AbstractForm {
|
|
38
|
-
constructor() {
|
|
39
|
-
super(...arguments);
|
|
40
|
-
this.src = 'https://www.maiyun.net';
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.default = default_1;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const clickgo = __importStar(require("clickgo"));
|
|
37
|
-
class default_1 extends clickgo.form.AbstractForm {
|
|
38
|
-
constructor() {
|
|
39
|
-
super(...arguments);
|
|
40
|
-
this.r = {
|
|
41
|
-
'cols': 0,
|
|
42
|
-
'rows': 0,
|
|
43
|
-
'width': 0,
|
|
44
|
-
'height': 0
|
|
45
|
-
};
|
|
46
|
-
this.access = {
|
|
47
|
-
'term': undefined
|
|
48
|
-
};
|
|
49
|
-
this.input = '';
|
|
50
|
-
}
|
|
51
|
-
onData(data) {
|
|
52
|
-
switch (data) {
|
|
53
|
-
case '\u0003': {
|
|
54
|
-
this.access.term.writeln('^C');
|
|
55
|
-
this.access.term.write('~$ ');
|
|
56
|
-
this.input = '';
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
59
|
-
case '\r': {
|
|
60
|
-
this.access.term.writeln('');
|
|
61
|
-
if (this.input.length > 0) {
|
|
62
|
-
this.access.term.writeln(`${this.input}: command not found`);
|
|
63
|
-
}
|
|
64
|
-
this.access.term.write('~$ ');
|
|
65
|
-
this.input = '';
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
case '\u007F': {
|
|
69
|
-
if (this.input.length === 0) {
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
this.input = this.input.slice(0, -1);
|
|
73
|
-
this.access.term.write('\b \b');
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
default: {
|
|
77
|
-
if ((data >= String.fromCharCode(0x20) && data <= String.fromCharCode(0x7E)) || (data === '\u00a0')) {
|
|
78
|
-
for (const item of data) {
|
|
79
|
-
if (this.input.length < 15) {
|
|
80
|
-
this.input += item;
|
|
81
|
-
this.access.term.write(item);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
console.log('data', data);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
onInit(term) {
|
|
92
|
-
this.access.term = term;
|
|
93
|
-
this.access.term.write('~$ ');
|
|
94
|
-
this.access.term.focus();
|
|
95
|
-
}
|
|
96
|
-
onResize(r) {
|
|
97
|
-
this.r = r;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
exports.default = default_1;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<form title="Xterm" width="500" height="450">
|
|
2
|
-
<layout direction="v" style="flex: 1;">
|
|
3
|
-
<xterm ref="xterm" style="flex: 1; height: 0;" @data="onData" @resize="onResize" @init="onInit"></xterm>
|
|
4
|
-
<label style="padding: 5px;">cols: {{r.cols}}, rows: {{r.rows}}, width: {{r.width}}, height: {{r.height}}</label>
|
|
5
|
-
</layout>
|
|
6
|
-
</form>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@keyframes flash{0%,50%{border:solid 1px rgba(0,0,0,.8);color:initial}51%,100%{border-color:#000;background-color:#333;color:#fff}}.item{border:solid 1px #333;padding:5px;min-height:30px;min-width:150px}.item.focus{background-color:#fff;color:#333}.item:hover{background-color:rgba(0,0,0,.1)}.item:active{background-color:#333;color:#fff}.item.flash{animation:flash .2s linear infinite}
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const clickgo = __importStar(require("clickgo"));
|
|
37
|
-
class default_1 extends clickgo.form.AbstractForm {
|
|
38
|
-
constructor() {
|
|
39
|
-
super(...arguments);
|
|
40
|
-
this.flist = {};
|
|
41
|
-
this.list = [];
|
|
42
|
-
}
|
|
43
|
-
pushConsole(name, text) {
|
|
44
|
-
const date = new Date();
|
|
45
|
-
this.list.unshift({
|
|
46
|
-
'time': date.getHours().toString() + ':' + date.getMinutes().toString() + ':' + date.getSeconds().toString(),
|
|
47
|
-
'name': name,
|
|
48
|
-
'text': text
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
changeFocus(fid) {
|
|
52
|
-
clickgo.form.changeFocus(parseInt(fid));
|
|
53
|
-
}
|
|
54
|
-
onMounted() {
|
|
55
|
-
const list = clickgo.task.getList();
|
|
56
|
-
for (const taskId in list) {
|
|
57
|
-
const flist = clickgo.form.getList(parseInt(taskId));
|
|
58
|
-
for (const fid in flist) {
|
|
59
|
-
this.flist[fid] = {
|
|
60
|
-
'title': flist[fid].title,
|
|
61
|
-
'icon': flist[fid].icon,
|
|
62
|
-
'stateMax': flist[fid].stateMax,
|
|
63
|
-
'stateMin': flist[fid].stateMin,
|
|
64
|
-
'show': flist[fid].show,
|
|
65
|
-
'focus': flist[fid].focus,
|
|
66
|
-
'flash': false,
|
|
67
|
-
'showInTask': flist[fid].showInSystemTask
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
onFormCreated(taskId, formId, title, icon, showInSystemTask) {
|
|
73
|
-
this.flist[formId] = {
|
|
74
|
-
'title': title,
|
|
75
|
-
'icon': icon,
|
|
76
|
-
'stateMax': false,
|
|
77
|
-
'stateMin': false,
|
|
78
|
-
'show': false,
|
|
79
|
-
'focus': false,
|
|
80
|
-
'flash': false,
|
|
81
|
-
'showInTask': true
|
|
82
|
-
};
|
|
83
|
-
this.pushConsole('formCreated', `taskId: ${taskId}, formId: ${formId}, title: ${title}, icon: ${icon ? icon.slice(0, 10) + '...' : 'null'}, sist: ${showInSystemTask ? 'true' : 'false'}`);
|
|
84
|
-
}
|
|
85
|
-
onFormRemoved(taskId, formId, title, icon) {
|
|
86
|
-
if (!this.flist[formId]) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
this.flist[formId] = undefined;
|
|
90
|
-
delete this.flist[formId];
|
|
91
|
-
this.pushConsole('formRemoved', `taskId: ${taskId}, formId: ${formId}, title: ${title}, icon: ${icon ? icon.slice(0, 10) + '...' : 'null'}`);
|
|
92
|
-
}
|
|
93
|
-
onFormTitleChanged(taskId, formId, title) {
|
|
94
|
-
if (!this.flist[formId]) {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
this.flist[formId].title = title;
|
|
98
|
-
this.pushConsole('formTitleChanged', `taskId: ${taskId}, formId: ${formId}, title: ${title}`);
|
|
99
|
-
}
|
|
100
|
-
onFormIconChanged(taskId, formId, icon) {
|
|
101
|
-
if (!this.flist[formId]) {
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
this.flist[formId].icon = icon;
|
|
105
|
-
this.pushConsole('formIconChanged', `taskId: ${taskId}, formId: ${formId}, icon: ${icon ? icon.slice(0, 10) + '...' : 'null'}`);
|
|
106
|
-
}
|
|
107
|
-
onFormStateMinChanged(taskId, formId, state) {
|
|
108
|
-
if (!this.flist[formId]) {
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
this.flist[formId].min = state;
|
|
112
|
-
this.pushConsole('formStateMinChanged', `taskId: ${taskId}, formId: ${formId}, state: ${state ? 'true' : 'false'}`);
|
|
113
|
-
}
|
|
114
|
-
onFormStateMaxChanged(taskId, formId, state) {
|
|
115
|
-
if (!this.flist[formId]) {
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
this.flist[formId].max = state;
|
|
119
|
-
this.pushConsole('formStateMaxChanged', `taskId: ${taskId}, formId: ${formId}, state: ${state ? 'true' : 'false'}`);
|
|
120
|
-
}
|
|
121
|
-
onFormShowChanged(taskId, formId, state) {
|
|
122
|
-
if (!this.flist[formId]) {
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
this.flist[formId].show = state;
|
|
126
|
-
this.pushConsole('formShowChanged', `taskId: ${taskId}, formId: ${formId}, state: ${state ? 'true' : 'false'}`);
|
|
127
|
-
}
|
|
128
|
-
onFormFocused(taskId, formId) {
|
|
129
|
-
if (!this.flist[formId]) {
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
this.flist[formId].focus = true;
|
|
133
|
-
this.pushConsole('formFocused', `taskId: ${taskId}, formId: ${formId}`);
|
|
134
|
-
}
|
|
135
|
-
onFormBlurred(taskId, formId) {
|
|
136
|
-
if (!this.flist[formId]) {
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
this.flist[formId].focus = false;
|
|
140
|
-
this.pushConsole('formBlurred', `taskId: ${taskId}, formId: ${formId}`);
|
|
141
|
-
}
|
|
142
|
-
async onFormFlash(taskId, formId) {
|
|
143
|
-
if (!this.flist[formId]) {
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
if (this.flist[formId].flash) {
|
|
147
|
-
clickgo.task.removeTimer(this.flist[formId].flash);
|
|
148
|
-
}
|
|
149
|
-
this.pushConsole('formFlash', `taskId: ${taskId}, formId: ${formId}`);
|
|
150
|
-
this.flist[formId].flash = true;
|
|
151
|
-
await clickgo.tool.sleep(1000);
|
|
152
|
-
this.flist[formId].flash = false;
|
|
153
|
-
}
|
|
154
|
-
onFormShowInSystemTaskChange(taskId, formId, value) {
|
|
155
|
-
if (!this.flist[formId]) {
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
this.flist[formId].title = value;
|
|
159
|
-
this.pushConsole('formShowInSystemTaskChange', `taskId: ${taskId}, formId: ${formId}, value: ${value}`);
|
|
160
|
-
}
|
|
161
|
-
onFormHashChange(taskId, formId, value, data) {
|
|
162
|
-
if (!this.flist[formId]) {
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
this.pushConsole('formHashChange', `taskId: ${taskId}, formId: ${formId}, value: ${value}, data: ${JSON.stringify(data).slice(0, 20)}...`);
|
|
166
|
-
return;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
exports.default = default_1;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
@keyframes flash {
|
|
2
|
-
0%, 50% {
|
|
3
|
-
border: solid 1px rgba(0, 0, 0, .8); color: initial;
|
|
4
|
-
}
|
|
5
|
-
51%, 100% {
|
|
6
|
-
border-color: rgba(0, 0, 0, 1); background-color: hsl(0, 0%, 20%); color: #FFF;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.item {
|
|
11
|
-
border: solid 1px hsl(0, 0%, 20%); padding: 5px; min-height: 30px; min-width: 150px;
|
|
12
|
-
&.focus {
|
|
13
|
-
background-color: #FFF; color: hsl(0, 0%, 20%);
|
|
14
|
-
}
|
|
15
|
-
&:hover {
|
|
16
|
-
background-color: rgba(0, 0, 0, .1);
|
|
17
|
-
}
|
|
18
|
-
&:active {
|
|
19
|
-
background-color: hsl(0, 0%, 20%); color: #FFF;
|
|
20
|
-
}
|
|
21
|
-
&.flash {
|
|
22
|
-
animation: flash .2s linear infinite;
|
|
23
|
-
}
|
|
24
|
-
}
|