clickgo 3.15.8 → 3.15.10
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 +1 -1
- package/dist/app/demo/config.json +2 -0
- package/dist/app/demo/form/control/hske/hske.js +34 -0
- package/dist/app/demo/form/control/hske/hske.xml +19 -0
- package/dist/app/demo/form/control/label/label.xml +4 -1
- package/dist/app/demo/form/control/layout/layout.js +0 -23
- package/dist/app/demo/form/control/layout/layout.xml +1 -1
- package/dist/app/demo/form/control/text/text.js +1 -0
- package/dist/app/demo/form/control/text/text.xml +1 -1
- package/dist/app/demo/form/main.js +5 -0
- package/dist/app/demo/form/main.xml +2 -1
- package/dist/clickgo.js +7 -7
- package/dist/clickgo.ts +1 -1
- package/dist/control/arteditor.cgc +0 -0
- package/dist/control/box.cgc +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/desc.cgc +0 -0
- package/dist/control/drawer.cgc +0 -0
- package/dist/control/echarts.cgc +0 -0
- package/dist/control/form.cgc +0 -0
- package/dist/control/iconview.cgc +0 -0
- package/dist/control/jodit.cgc +0 -0
- package/dist/control/map.cgc +0 -0
- package/dist/control/monaco.cgc +0 -0
- package/dist/control/nav.cgc +0 -0
- package/dist/control/page.cgc +0 -0
- package/dist/control/property.cgc +0 -0
- package/dist/control/table.cgc +0 -0
- package/dist/control/task.cgc +0 -0
- package/dist/control/tuieditor.cgc +0 -0
- package/dist/control/tuiviewer.cgc +0 -0
- package/dist/control/xterm.cgc +0 -0
- package/dist/global.css +1 -1
- package/dist/index.js +7 -7
- package/dist/lib/control.js +4 -4
- package/dist/lib/core.js +15 -15
- package/dist/lib/dom.js +49 -49
- package/dist/lib/form.js +48 -49
- package/dist/lib/fs.js +19 -20
- package/dist/lib/fs.ts +1 -1
- package/dist/lib/native.js +14 -15
- package/dist/lib/storage.js +6 -7
- package/dist/lib/task.js +23 -23
- package/dist/lib/theme.js +7 -7
- package/dist/lib/tool.js +42 -42
- package/dist/lib/zip.js +2 -2
- package/dist/theme/byterun.cgt +0 -0
- package/dist/theme/familiar.cgt +0 -0
- package/dist/theme/light.cgt +0 -0
- package/package.json +1 -1
package/dist/lib/form.js
CHANGED
|
@@ -32,8 +32,54 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
35
|
+
exports.activePanels = exports.elements = exports.launcherRoot = exports.simpleSystemTaskRoot = exports.AbstractForm = exports.AbstractPanel = void 0;
|
|
36
|
+
exports.superConfirm = superConfirm;
|
|
37
|
+
exports.min = min;
|
|
38
|
+
exports.max = max;
|
|
39
|
+
exports.close = close;
|
|
40
|
+
exports.bindResize = bindResize;
|
|
41
|
+
exports.bindDrag = bindDrag;
|
|
42
|
+
exports.refreshMaxPosition = refreshMaxPosition;
|
|
43
|
+
exports.getTaskId = getTaskId;
|
|
44
|
+
exports.get = get;
|
|
45
|
+
exports.send = send;
|
|
46
|
+
exports.getList = getList;
|
|
47
|
+
exports.getFocus = getFocus;
|
|
48
|
+
exports.getActivePanel = getActivePanel;
|
|
49
|
+
exports.removeActivePanel = removeActivePanel;
|
|
50
|
+
exports.setActivePanel = setActivePanel;
|
|
51
|
+
exports.hash = hash;
|
|
52
|
+
exports.getHash = getHash;
|
|
53
|
+
exports.hashBack = hashBack;
|
|
54
|
+
exports.changeFocus = changeFocus;
|
|
55
|
+
exports.getMaxZIndexID = getMaxZIndexID;
|
|
56
|
+
exports.getRectByBorder = getRectByBorder;
|
|
57
|
+
exports.showCircular = showCircular;
|
|
58
|
+
exports.moveRectangle = moveRectangle;
|
|
59
|
+
exports.showRectangle = showRectangle;
|
|
60
|
+
exports.hideRectangle = hideRectangle;
|
|
61
|
+
exports.showDrag = showDrag;
|
|
62
|
+
exports.moveDrag = moveDrag;
|
|
63
|
+
exports.hideDrag = hideDrag;
|
|
64
|
+
exports.notify = notify;
|
|
65
|
+
exports.notifyProgress = notifyProgress;
|
|
66
|
+
exports.hideNotify = hideNotify;
|
|
67
|
+
exports.appendToPop = appendToPop;
|
|
68
|
+
exports.removeFromPop = removeFromPop;
|
|
69
|
+
exports.showPop = showPop;
|
|
70
|
+
exports.hidePop = hidePop;
|
|
71
|
+
exports.isJustPop = isJustPop;
|
|
72
|
+
exports.doFocusAndPopEvent = doFocusAndPopEvent;
|
|
73
|
+
exports.remove = remove;
|
|
74
|
+
exports.removePanel = removePanel;
|
|
75
|
+
exports.createPanel = createPanel;
|
|
76
|
+
exports.create = create;
|
|
77
|
+
exports.dialog = dialog;
|
|
78
|
+
exports.confirm = confirm;
|
|
79
|
+
exports.prompt = prompt;
|
|
80
|
+
exports.flash = flash;
|
|
81
|
+
exports.showLauncher = showLauncher;
|
|
82
|
+
exports.hideLauncher = hideLauncher;
|
|
37
83
|
const clickgo = __importStar(require("../clickgo"));
|
|
38
84
|
const core = __importStar(require("./core"));
|
|
39
85
|
const task = __importStar(require("./task"));
|
|
@@ -900,7 +946,6 @@ function superConfirm(html) {
|
|
|
900
946
|
};
|
|
901
947
|
});
|
|
902
948
|
}
|
|
903
|
-
exports.superConfirm = superConfirm;
|
|
904
949
|
function changeState(state, formId) {
|
|
905
950
|
const tid = getTaskId(formId);
|
|
906
951
|
const t = task.list[tid];
|
|
@@ -925,15 +970,12 @@ function changeState(state, formId) {
|
|
|
925
970
|
function min(formId) {
|
|
926
971
|
return changeState('min', formId);
|
|
927
972
|
}
|
|
928
|
-
exports.min = min;
|
|
929
973
|
function max(formId) {
|
|
930
974
|
return changeState('max', formId);
|
|
931
975
|
}
|
|
932
|
-
exports.max = max;
|
|
933
976
|
function close(formId) {
|
|
934
977
|
return changeState('close', formId);
|
|
935
978
|
}
|
|
936
|
-
exports.close = close;
|
|
937
979
|
function bindResize(e, border) {
|
|
938
980
|
const formWrap = dom.findParentByClass(e.target, 'cg-form-wrap');
|
|
939
981
|
if (!formWrap) {
|
|
@@ -951,7 +993,6 @@ function bindResize(e, border) {
|
|
|
951
993
|
}
|
|
952
994
|
t.forms[fid].vroot.$refs.form.resizeMethod(e, border);
|
|
953
995
|
}
|
|
954
|
-
exports.bindResize = bindResize;
|
|
955
996
|
function bindDrag(e) {
|
|
956
997
|
const formWrap = dom.findParentByClass(e.target, 'cg-form-wrap');
|
|
957
998
|
if (!formWrap) {
|
|
@@ -969,7 +1010,6 @@ function bindDrag(e) {
|
|
|
969
1010
|
}
|
|
970
1011
|
t.forms[fid].vroot.$refs.form.moveMethod(e, true);
|
|
971
1012
|
}
|
|
972
|
-
exports.bindDrag = bindDrag;
|
|
973
1013
|
function refreshMaxPosition() {
|
|
974
1014
|
const area = core.getAvailArea();
|
|
975
1015
|
for (let i = 0; i < exports.elements.list.children.length; ++i) {
|
|
@@ -996,7 +1036,6 @@ function refreshMaxPosition() {
|
|
|
996
1036
|
}
|
|
997
1037
|
}
|
|
998
1038
|
}
|
|
999
|
-
exports.refreshMaxPosition = refreshMaxPosition;
|
|
1000
1039
|
function getTaskId(formId) {
|
|
1001
1040
|
const formElement = exports.elements.list.querySelector(`[data-form-id='${formId}']`);
|
|
1002
1041
|
if (!formElement) {
|
|
@@ -1008,7 +1047,6 @@ function getTaskId(formId) {
|
|
|
1008
1047
|
}
|
|
1009
1048
|
return parseInt(taskIdAttr);
|
|
1010
1049
|
}
|
|
1011
|
-
exports.getTaskId = getTaskId;
|
|
1012
1050
|
function get(formId) {
|
|
1013
1051
|
const taskId = getTaskId(formId);
|
|
1014
1052
|
if (taskId === 0) {
|
|
@@ -1029,7 +1067,6 @@ function get(formId) {
|
|
|
1029
1067
|
'showInSystemTask': item.vroot.showInSystemTask
|
|
1030
1068
|
};
|
|
1031
1069
|
}
|
|
1032
|
-
exports.get = get;
|
|
1033
1070
|
function send(formId, obj) {
|
|
1034
1071
|
const taskId = getTaskId(formId);
|
|
1035
1072
|
if (taskId === 0) {
|
|
@@ -1038,7 +1075,6 @@ function send(formId, obj) {
|
|
|
1038
1075
|
const item = task.list[taskId].forms[formId];
|
|
1039
1076
|
item.vroot.onReceive(obj);
|
|
1040
1077
|
}
|
|
1041
|
-
exports.send = send;
|
|
1042
1078
|
function getList(taskId) {
|
|
1043
1079
|
if (!task.list[taskId]) {
|
|
1044
1080
|
return {};
|
|
@@ -1059,17 +1095,14 @@ function getList(taskId) {
|
|
|
1059
1095
|
}
|
|
1060
1096
|
return list;
|
|
1061
1097
|
}
|
|
1062
|
-
exports.getList = getList;
|
|
1063
1098
|
function getFocus() {
|
|
1064
1099
|
return focusId;
|
|
1065
1100
|
}
|
|
1066
|
-
exports.getFocus = getFocus;
|
|
1067
1101
|
exports.activePanels = {};
|
|
1068
1102
|
function getActivePanel(formId) {
|
|
1069
1103
|
var _a;
|
|
1070
1104
|
return (_a = exports.activePanels[formId]) !== null && _a !== void 0 ? _a : [];
|
|
1071
1105
|
}
|
|
1072
|
-
exports.getActivePanel = getActivePanel;
|
|
1073
1106
|
function removeActivePanel(panelId, formId, taskId) {
|
|
1074
1107
|
if (!taskId) {
|
|
1075
1108
|
return false;
|
|
@@ -1093,7 +1126,6 @@ function removeActivePanel(panelId, formId, taskId) {
|
|
|
1093
1126
|
}
|
|
1094
1127
|
return true;
|
|
1095
1128
|
}
|
|
1096
|
-
exports.removeActivePanel = removeActivePanel;
|
|
1097
1129
|
function setActivePanel(panelId, formId, taskId) {
|
|
1098
1130
|
if (!taskId) {
|
|
1099
1131
|
return false;
|
|
@@ -1114,7 +1146,6 @@ function setActivePanel(panelId, formId, taskId) {
|
|
|
1114
1146
|
exports.activePanels[formId].push(panelId);
|
|
1115
1147
|
return true;
|
|
1116
1148
|
}
|
|
1117
|
-
exports.setActivePanel = setActivePanel;
|
|
1118
1149
|
function hash(hash, formId) {
|
|
1119
1150
|
const taskId = getTaskId(formId);
|
|
1120
1151
|
if (taskId === 0) {
|
|
@@ -1131,7 +1162,6 @@ function hash(hash, formId) {
|
|
|
1131
1162
|
item.vroot.formHash = hash;
|
|
1132
1163
|
return true;
|
|
1133
1164
|
}
|
|
1134
|
-
exports.hash = hash;
|
|
1135
1165
|
function getHash(formId) {
|
|
1136
1166
|
const taskId = getTaskId(formId);
|
|
1137
1167
|
if (taskId === 0) {
|
|
@@ -1147,7 +1177,6 @@ function getHash(formId) {
|
|
|
1147
1177
|
}
|
|
1148
1178
|
return item.vroot.$data._formHash;
|
|
1149
1179
|
}
|
|
1150
|
-
exports.getHash = getHash;
|
|
1151
1180
|
function hashBack(formId) {
|
|
1152
1181
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1153
1182
|
const taskId = getTaskId(formId);
|
|
@@ -1166,7 +1195,6 @@ function hashBack(formId) {
|
|
|
1166
1195
|
return true;
|
|
1167
1196
|
});
|
|
1168
1197
|
}
|
|
1169
|
-
exports.hashBack = hashBack;
|
|
1170
1198
|
function changeFocus(formId = 0) {
|
|
1171
1199
|
var _a;
|
|
1172
1200
|
if (typeof formId === 'string') {
|
|
@@ -1238,7 +1266,6 @@ function changeFocus(formId = 0) {
|
|
|
1238
1266
|
core.trigger('formFocused', taskId, formId);
|
|
1239
1267
|
}
|
|
1240
1268
|
}
|
|
1241
|
-
exports.changeFocus = changeFocus;
|
|
1242
1269
|
function getMaxZIndexID(out = {}) {
|
|
1243
1270
|
var _a, _b;
|
|
1244
1271
|
let zIndex = 0;
|
|
@@ -1274,7 +1301,6 @@ function getMaxZIndexID(out = {}) {
|
|
|
1274
1301
|
}
|
|
1275
1302
|
return formId;
|
|
1276
1303
|
}
|
|
1277
|
-
exports.getMaxZIndexID = getMaxZIndexID;
|
|
1278
1304
|
function getRectByBorder(border) {
|
|
1279
1305
|
var _a, _b, _c, _d;
|
|
1280
1306
|
const area = core.getAvailArea();
|
|
@@ -1355,7 +1381,6 @@ function getRectByBorder(border) {
|
|
|
1355
1381
|
'top': top
|
|
1356
1382
|
};
|
|
1357
1383
|
}
|
|
1358
|
-
exports.getRectByBorder = getRectByBorder;
|
|
1359
1384
|
function showCircular(x, y) {
|
|
1360
1385
|
exports.elements.circular.style.transition = 'none';
|
|
1361
1386
|
requestAnimationFrame(function () {
|
|
@@ -1376,7 +1401,6 @@ function showCircular(x, y) {
|
|
|
1376
1401
|
});
|
|
1377
1402
|
});
|
|
1378
1403
|
}
|
|
1379
|
-
exports.showCircular = showCircular;
|
|
1380
1404
|
function moveRectangle(border) {
|
|
1381
1405
|
var _a, _b, _c, _d;
|
|
1382
1406
|
const dataReady = (_a = exports.elements.rectangle.getAttribute('data-ready')) !== null && _a !== void 0 ? _a : '0';
|
|
@@ -1401,7 +1425,6 @@ function moveRectangle(border) {
|
|
|
1401
1425
|
exports.elements.rectangle.style.top = top.toString() + 'px';
|
|
1402
1426
|
}
|
|
1403
1427
|
}
|
|
1404
|
-
exports.moveRectangle = moveRectangle;
|
|
1405
1428
|
function showRectangle(x, y, border) {
|
|
1406
1429
|
exports.elements.rectangle.style.transition = 'none';
|
|
1407
1430
|
requestAnimationFrame(function () {
|
|
@@ -1421,11 +1444,9 @@ function showRectangle(x, y, border) {
|
|
|
1421
1444
|
});
|
|
1422
1445
|
});
|
|
1423
1446
|
}
|
|
1424
|
-
exports.showRectangle = showRectangle;
|
|
1425
1447
|
function hideRectangle() {
|
|
1426
1448
|
exports.elements.rectangle.style.opacity = '0';
|
|
1427
1449
|
}
|
|
1428
|
-
exports.hideRectangle = hideRectangle;
|
|
1429
1450
|
let dragTimeOut = 0;
|
|
1430
1451
|
function showDrag() {
|
|
1431
1452
|
if (dragTimeOut) {
|
|
@@ -1436,7 +1457,6 @@ function showDrag() {
|
|
|
1436
1457
|
exports.elements.drag.style.transform = 'perspective(100px) rotateX(15deg) translateZ(15px)';
|
|
1437
1458
|
exports.elements.drag.style.borderBottomWidth = '2px';
|
|
1438
1459
|
}
|
|
1439
|
-
exports.showDrag = showDrag;
|
|
1440
1460
|
function moveDrag(opt) {
|
|
1441
1461
|
if (opt.top) {
|
|
1442
1462
|
exports.elements.drag.style.top = opt.top.toString() + 'px';
|
|
@@ -1467,7 +1487,6 @@ function moveDrag(opt) {
|
|
|
1467
1487
|
exports.elements.drag.childNodes[0].style.display = 'none';
|
|
1468
1488
|
}
|
|
1469
1489
|
}
|
|
1470
|
-
exports.moveDrag = moveDrag;
|
|
1471
1490
|
function hideDrag() {
|
|
1472
1491
|
exports.elements.drag.style.transform = 'initial';
|
|
1473
1492
|
exports.elements.drag.style.borderBottomWidth = '1px';
|
|
@@ -1476,7 +1495,6 @@ function hideDrag() {
|
|
|
1476
1495
|
exports.elements.drag.style.opacity = '0';
|
|
1477
1496
|
}, 300);
|
|
1478
1497
|
}
|
|
1479
|
-
exports.hideDrag = hideDrag;
|
|
1480
1498
|
let notifyTop = 10;
|
|
1481
1499
|
let notifyId = 0;
|
|
1482
1500
|
function notify(opt) {
|
|
@@ -1522,7 +1540,6 @@ function notify(opt) {
|
|
|
1522
1540
|
});
|
|
1523
1541
|
return nid;
|
|
1524
1542
|
}
|
|
1525
|
-
exports.notify = notify;
|
|
1526
1543
|
function notifyProgress(notifyId, per) {
|
|
1527
1544
|
const el = exports.elements.notify.querySelector(`[data-notifyid="${notifyId}"]`);
|
|
1528
1545
|
if (!el) {
|
|
@@ -1546,7 +1563,6 @@ function notifyProgress(notifyId, per) {
|
|
|
1546
1563
|
}
|
|
1547
1564
|
progress.style.width = (per < 1 ? per * 100 : per).toString() + '%';
|
|
1548
1565
|
}
|
|
1549
|
-
exports.notifyProgress = notifyProgress;
|
|
1550
1566
|
function hideNotify(notifyId) {
|
|
1551
1567
|
const el = exports.elements.notify.querySelector(`[data-notifyid="${notifyId}"]`);
|
|
1552
1568
|
if (!el) {
|
|
@@ -1573,15 +1589,12 @@ function hideNotify(notifyId) {
|
|
|
1573
1589
|
el.remove();
|
|
1574
1590
|
}, 100);
|
|
1575
1591
|
}
|
|
1576
|
-
exports.hideNotify = hideNotify;
|
|
1577
1592
|
function appendToPop(el) {
|
|
1578
1593
|
exports.elements.popList.appendChild(el);
|
|
1579
1594
|
}
|
|
1580
|
-
exports.appendToPop = appendToPop;
|
|
1581
1595
|
function removeFromPop(el) {
|
|
1582
1596
|
exports.elements.popList.removeChild(el);
|
|
1583
1597
|
}
|
|
1584
|
-
exports.removeFromPop = removeFromPop;
|
|
1585
1598
|
function refreshPopPosition(el, pop, direction, size = {}) {
|
|
1586
1599
|
var _a, _b;
|
|
1587
1600
|
const width = (_a = size.width) !== null && _a !== void 0 ? _a : pop.offsetWidth;
|
|
@@ -1764,7 +1777,6 @@ function showPop(el, pop, direction, opt = {}) {
|
|
|
1764
1777
|
}).catch(() => {
|
|
1765
1778
|
});
|
|
1766
1779
|
}
|
|
1767
|
-
exports.showPop = showPop;
|
|
1768
1780
|
function hidePop(pop) {
|
|
1769
1781
|
if (pop && !(pop instanceof HTMLElement)) {
|
|
1770
1782
|
if (!pop.$el) {
|
|
@@ -1841,7 +1853,6 @@ function hidePop(pop) {
|
|
|
1841
1853
|
popInfo.wayList.splice(level);
|
|
1842
1854
|
popInfo.time.splice(level);
|
|
1843
1855
|
}
|
|
1844
|
-
exports.hidePop = hidePop;
|
|
1845
1856
|
function isJustPop(el) {
|
|
1846
1857
|
if (el instanceof HTMLElement) {
|
|
1847
1858
|
const level = el.dataset.cgLevel;
|
|
@@ -1856,7 +1867,6 @@ function isJustPop(el) {
|
|
|
1856
1867
|
}
|
|
1857
1868
|
return true;
|
|
1858
1869
|
}
|
|
1859
|
-
exports.isJustPop = isJustPop;
|
|
1860
1870
|
function doFocusAndPopEvent(e) {
|
|
1861
1871
|
var _a, _b;
|
|
1862
1872
|
if (dom.hasTouchButMouse(e)) {
|
|
@@ -1913,7 +1923,6 @@ function doFocusAndPopEvent(e) {
|
|
|
1913
1923
|
hidePop();
|
|
1914
1924
|
changeFocus();
|
|
1915
1925
|
}
|
|
1916
|
-
exports.doFocusAndPopEvent = doFocusAndPopEvent;
|
|
1917
1926
|
window.addEventListener('touchstart', doFocusAndPopEvent, {
|
|
1918
1927
|
'passive': true
|
|
1919
1928
|
});
|
|
@@ -1968,7 +1977,6 @@ function remove(formId) {
|
|
|
1968
1977
|
}, 300);
|
|
1969
1978
|
return true;
|
|
1970
1979
|
}
|
|
1971
|
-
exports.remove = remove;
|
|
1972
1980
|
function removePanel(id, vapp, el) {
|
|
1973
1981
|
var _a;
|
|
1974
1982
|
const formWrap = dom.findParentByClass(el, 'cg-form-wrap');
|
|
@@ -2002,7 +2010,6 @@ function removePanel(id, vapp, el) {
|
|
|
2002
2010
|
}
|
|
2003
2011
|
return true;
|
|
2004
2012
|
}
|
|
2005
|
-
exports.removePanel = removePanel;
|
|
2006
2013
|
function getForm(taskId, formId) {
|
|
2007
2014
|
const t = task.list[taskId];
|
|
2008
2015
|
if (!t) {
|
|
@@ -2320,7 +2327,6 @@ function createPanel(rootPanel_1, cls_1) {
|
|
|
2320
2327
|
};
|
|
2321
2328
|
});
|
|
2322
2329
|
}
|
|
2323
|
-
exports.createPanel = createPanel;
|
|
2324
2330
|
function create(cls_1, data_1) {
|
|
2325
2331
|
return __awaiter(this, arguments, void 0, function* (cls, data, opt = {}, taskId) {
|
|
2326
2332
|
var _a, _b;
|
|
@@ -2718,7 +2724,6 @@ function create(cls_1, data_1) {
|
|
|
2718
2724
|
return rtn.vroot;
|
|
2719
2725
|
});
|
|
2720
2726
|
}
|
|
2721
|
-
exports.create = create;
|
|
2722
2727
|
function dialog(opt) {
|
|
2723
2728
|
return new Promise(function (resolve) {
|
|
2724
2729
|
var _a, _b, _c, _d;
|
|
@@ -2793,7 +2798,6 @@ function dialog(opt) {
|
|
|
2793
2798
|
});
|
|
2794
2799
|
});
|
|
2795
2800
|
}
|
|
2796
|
-
exports.dialog = dialog;
|
|
2797
2801
|
function confirm(opt) {
|
|
2798
2802
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2799
2803
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -2830,7 +2834,6 @@ function confirm(opt) {
|
|
|
2830
2834
|
return false;
|
|
2831
2835
|
});
|
|
2832
2836
|
}
|
|
2833
|
-
exports.confirm = confirm;
|
|
2834
2837
|
function prompt(opt) {
|
|
2835
2838
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2836
2839
|
var _a, _b, _c;
|
|
@@ -2866,7 +2869,6 @@ function prompt(opt) {
|
|
|
2866
2869
|
return res;
|
|
2867
2870
|
});
|
|
2868
2871
|
}
|
|
2869
|
-
exports.prompt = prompt;
|
|
2870
2872
|
function flash(formId, taskId) {
|
|
2871
2873
|
if (!taskId) {
|
|
2872
2874
|
return;
|
|
@@ -2889,14 +2891,12 @@ function flash(formId, taskId) {
|
|
|
2889
2891
|
}, 1000);
|
|
2890
2892
|
core.trigger('formFlash', taskId, formId);
|
|
2891
2893
|
}
|
|
2892
|
-
exports.flash = flash;
|
|
2893
2894
|
function showLauncher() {
|
|
2894
2895
|
exports.elements.launcher.style.display = 'flex';
|
|
2895
2896
|
requestAnimationFrame(function () {
|
|
2896
2897
|
exports.elements.launcher.classList.add('cg-show');
|
|
2897
2898
|
});
|
|
2898
2899
|
}
|
|
2899
|
-
exports.showLauncher = showLauncher;
|
|
2900
2900
|
function hideLauncher() {
|
|
2901
2901
|
exports.elements.launcher.classList.remove('cg-show');
|
|
2902
2902
|
setTimeout(function () {
|
|
@@ -2907,7 +2907,6 @@ function hideLauncher() {
|
|
|
2907
2907
|
exports.elements.launcher.style.display = 'none';
|
|
2908
2908
|
}, 300);
|
|
2909
2909
|
}
|
|
2910
|
-
exports.hideLauncher = hideLauncher;
|
|
2911
2910
|
window.addEventListener('resize', function () {
|
|
2912
2911
|
task.refreshSystemPosition();
|
|
2913
2912
|
});
|
package/dist/lib/fs.js
CHANGED
|
@@ -32,13 +32,30 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.
|
|
35
|
+
exports.mount = mount;
|
|
36
|
+
exports.unmount = unmount;
|
|
37
|
+
exports.getContent = getContent;
|
|
38
|
+
exports.putContent = putContent;
|
|
39
|
+
exports.readLink = readLink;
|
|
40
|
+
exports.symlink = symlink;
|
|
41
|
+
exports.unlink = unlink;
|
|
42
|
+
exports.stats = stats;
|
|
43
|
+
exports.isDir = isDir;
|
|
44
|
+
exports.isFile = isFile;
|
|
45
|
+
exports.mkdir = mkdir;
|
|
46
|
+
exports.rmdir = rmdir;
|
|
47
|
+
exports.rmdirDeep = rmdirDeep;
|
|
48
|
+
exports.chmod = chmod;
|
|
49
|
+
exports.rename = rename;
|
|
50
|
+
exports.readDir = readDir;
|
|
51
|
+
exports.copyFolder = copyFolder;
|
|
52
|
+
exports.copyFile = copyFile;
|
|
36
53
|
const tool = __importStar(require("./tool"));
|
|
37
54
|
const task = __importStar(require("./task"));
|
|
38
55
|
const form = __importStar(require("./form"));
|
|
39
56
|
const core = __importStar(require("./core"));
|
|
40
57
|
const native = __importStar(require("./native"));
|
|
41
|
-
const clickgoFiles = ['/app/', '/app/demo/', '/app/demo/app.js', '/app/demo/config.json', '/app/demo/form/', '/app/demo/form/control/', '/app/demo/form/control/alayout/', '/app/demo/form/control/alayout/alayout.css', '/app/demo/form/control/alayout/alayout.js', '/app/demo/form/control/alayout/alayout.xml', '/app/demo/form/control/arteditor/', '/app/demo/form/control/arteditor/arteditor.js', '/app/demo/form/control/arteditor/arteditor.xml', '/app/demo/form/control/arteditor/img.js', '/app/demo/form/control/arteditor/img.xml', '/app/demo/form/control/block/', '/app/demo/form/control/block/block.css', '/app/demo/form/control/block/block.xml', '/app/demo/form/control/box/', '/app/demo/form/control/box/box.js', '/app/demo/form/control/box/box.xml', '/app/demo/form/control/button/', '/app/demo/form/control/button/button.css', '/app/demo/form/control/button/button.js', '/app/demo/form/control/button/button.xml', '/app/demo/form/control/check/', '/app/demo/form/control/check/check.js', '/app/demo/form/control/check/check.xml', '/app/demo/form/control/date/', '/app/demo/form/control/date/date.js', '/app/demo/form/control/date/date.xml', '/app/demo/form/control/datepanel/', '/app/demo/form/control/datepanel/datepanel.js', '/app/demo/form/control/datepanel/datepanel.xml', '/app/demo/form/control/daterange/', '/app/demo/form/control/daterange/daterange.js', '/app/demo/form/control/daterange/daterange.xml', '/app/demo/form/control/desc/', '/app/demo/form/control/desc/desc.js', '/app/demo/form/control/desc/desc.xml', '/app/demo/form/control/dialog/', '/app/demo/form/control/dialog/dialog.js', '/app/demo/form/control/dialog/dialog.xml', '/app/demo/form/control/drawer/', '/app/demo/form/control/drawer/drawer.js', '/app/demo/form/control/drawer/drawer.xml', '/app/demo/form/control/echarts/', '/app/demo/form/control/echarts/echarts.js', '/app/demo/form/control/echarts/echarts.xml', '/app/demo/form/control/empty/', '/app/demo/form/control/empty/empty.js', '/app/demo/form/control/empty/empty.xml', '/app/demo/form/control/file/', '/app/demo/form/control/file/file.js', '/app/demo/form/control/file/file.xml', '/app/demo/form/control/flow/', '/app/demo/form/control/flow/flow.css', '/app/demo/form/control/flow/flow.js', '/app/demo/form/control/flow/flow.xml', '/app/demo/form/control/form/', '/app/demo/form/control/form/form.css', '/app/demo/form/control/form/form.js', '/app/demo/form/control/form/form.xml', '/app/demo/form/control/grid/', '/app/demo/form/control/grid/grid.js', '/app/demo/form/control/grid/grid.xml', '/app/demo/form/control/group/', '/app/demo/form/control/group/group.js', '/app/demo/form/control/group/group.xml', '/app/demo/form/control/html/', '/app/demo/form/control/html/html.js', '/app/demo/form/control/html/html.xml', '/app/demo/form/control/iconview/', '/app/demo/form/control/iconview/iconview.js', '/app/demo/form/control/iconview/iconview.xml', '/app/demo/form/control/img/', '/app/demo/form/control/img/img.xml', '/app/demo/form/control/jodit/', '/app/demo/form/control/jodit/jodit.js', '/app/demo/form/control/jodit/jodit.xml', '/app/demo/form/control/label/', '/app/demo/form/control/label/label.js', '/app/demo/form/control/label/label.xml', '/app/demo/form/control/layout/', '/app/demo/form/control/layout/layout.js', '/app/demo/form/control/layout/layout.xml', '/app/demo/form/control/link/', '/app/demo/form/control/link/link.js', '/app/demo/form/control/link/link.xml', '/app/demo/form/control/list/', '/app/demo/form/control/list/list.css', '/app/demo/form/control/list/list.js', '/app/demo/form/control/list/list.xml', '/app/demo/form/control/loading/', '/app/demo/form/control/loading/loading.xml', '/app/demo/form/control/map/', '/app/demo/form/control/map/map.js', '/app/demo/form/control/map/map.xml', '/app/demo/form/control/marquee/', '/app/demo/form/control/marquee/marquee.js', '/app/demo/form/control/marquee/marquee.xml', '/app/demo/form/control/menu/', '/app/demo/form/control/menu/menu.js', '/app/demo/form/control/menu/menu.xml', '/app/demo/form/control/monaco/', '/app/demo/form/control/monaco/monaco.js', '/app/demo/form/control/monaco/monaco.xml', '/app/demo/form/control/nav/', '/app/demo/form/control/nav/nav.js', '/app/demo/form/control/nav/nav.xml', '/app/demo/form/control/page/', '/app/demo/form/control/page/page.js', '/app/demo/form/control/page/page.xml', '/app/demo/form/control/panel/', '/app/demo/form/control/panel/panel.js', '/app/demo/form/control/panel/panel.xml', '/app/demo/form/control/panel/test1.js', '/app/demo/form/control/panel/test1.xml', '/app/demo/form/control/panel/test2.xml', '/app/demo/form/control/progress/', '/app/demo/form/control/progress/progress.js', '/app/demo/form/control/progress/progress.xml', '/app/demo/form/control/property/', '/app/demo/form/control/property/property.js', '/app/demo/form/control/property/property.xml', '/app/demo/form/control/radio/', '/app/demo/form/control/radio/radio.js', '/app/demo/form/control/radio/radio.xml', '/app/demo/form/control/scroll/', '/app/demo/form/control/scroll/scroll.js', '/app/demo/form/control/scroll/scroll.xml', '/app/demo/form/control/select/', '/app/demo/form/control/select/select.js', '/app/demo/form/control/select/select.xml', '/app/demo/form/control/sgroup/', '/app/demo/form/control/sgroup/sgroup.xml', '/app/demo/form/control/step/', '/app/demo/form/control/step/step.js', '/app/demo/form/control/step/step.xml', '/app/demo/form/control/svg/', '/app/demo/form/control/svg/svg.js', '/app/demo/form/control/svg/svg.xml', '/app/demo/form/control/switch/', '/app/demo/form/control/switch/switch.js', '/app/demo/form/control/switch/switch.xml', '/app/demo/form/control/tab/', '/app/demo/form/control/tab/tab.js', '/app/demo/form/control/tab/tab.xml', '/app/demo/form/control/table/', '/app/demo/form/control/table/table.js', '/app/demo/form/control/table/table.xml', '/app/demo/form/control/tag/', '/app/demo/form/control/tag/tag.js', '/app/demo/form/control/tag/tag.xml', '/app/demo/form/control/text/', '/app/demo/form/control/text/text.js', '/app/demo/form/control/text/text.xml', '/app/demo/form/control/tip/', '/app/demo/form/control/tip/tip.xml', '/app/demo/form/control/tuieditor/', '/app/demo/form/control/tuieditor/tuieditor.js', '/app/demo/form/control/tuieditor/tuieditor.xml', '/app/demo/form/control/tuiviewer/', '/app/demo/form/control/tuiviewer/tuiviewer.js', '/app/demo/form/control/tuiviewer/tuiviewer.xml', '/app/demo/form/control/vflow/', '/app/demo/form/control/vflow/vflow.css', '/app/demo/form/control/vflow/vflow.js', '/app/demo/form/control/vflow/vflow.xml', '/app/demo/form/control/video/', '/app/demo/form/control/video/video.js', '/app/demo/form/control/video/video.xml', '/app/demo/form/control/xterm/', '/app/demo/form/control/xterm/xterm.js', '/app/demo/form/control/xterm/xterm.xml', '/app/demo/form/event/', '/app/demo/form/event/form/', '/app/demo/form/event/form/form.css', '/app/demo/form/event/form/form.js', '/app/demo/form/event/form/form.xml', '/app/demo/form/event/other/', '/app/demo/form/event/other/other.js', '/app/demo/form/event/other/other.xml', '/app/demo/form/event/screen/', '/app/demo/form/event/screen/screen.js', '/app/demo/form/event/screen/screen.xml', '/app/demo/form/event/task/', '/app/demo/form/event/task/task.js', '/app/demo/form/event/task/task.xml', '/app/demo/form/main.css', '/app/demo/form/main.js', '/app/demo/form/main.xml', '/app/demo/form/method/', '/app/demo/form/method/acontrol/', '/app/demo/form/method/acontrol/acontrol.js', '/app/demo/form/method/acontrol/acontrol.xml', '/app/demo/form/method/aform/', '/app/demo/form/method/aform/aform.js', '/app/demo/form/method/aform/aform.xml', '/app/demo/form/method/aform/sd.js', '/app/demo/form/method/aform/sd.xml', '/app/demo/form/method/core/', '/app/demo/form/method/core/core.js', '/app/demo/form/method/core/core.xml', '/app/demo/form/method/dom/', '/app/demo/form/method/dom/dom.css', '/app/demo/form/method/dom/dom.js', '/app/demo/form/method/dom/dom.xml', '/app/demo/form/method/form/', '/app/demo/form/method/form/form.js', '/app/demo/form/method/form/form.xml', '/app/demo/form/method/form/test.xml', '/app/demo/form/method/fs/', '/app/demo/form/method/fs/fs.js', '/app/demo/form/method/fs/fs.xml', '/app/demo/form/method/fs/text.js', '/app/demo/form/method/fs/text.xml', '/app/demo/form/method/native/', '/app/demo/form/method/native/native.js', '/app/demo/form/method/native/native.xml', '/app/demo/form/method/storage/', '/app/demo/form/method/storage/storage.js', '/app/demo/form/method/storage/storage.xml', '/app/demo/form/method/system/', '/app/demo/form/method/system/system.js', '/app/demo/form/method/system/system.xml', '/app/demo/form/method/task/', '/app/demo/form/method/task/locale1.json', '/app/demo/form/method/task/locale2.json', '/app/demo/form/method/task/task.js', '/app/demo/form/method/task/task.xml', '/app/demo/form/method/theme/', '/app/demo/form/method/theme/theme.js', '/app/demo/form/method/theme/theme.xml', '/app/demo/form/method/tool/', '/app/demo/form/method/tool/tool.js', '/app/demo/form/method/tool/tool.xml', '/app/demo/form/method/zip/', '/app/demo/form/method/zip/zip.js', '/app/demo/form/method/zip/zip.xml', '/app/demo/form/solution/', '/app/demo/form/solution/backpanel/', '/app/demo/form/solution/backpanel/backpanel.js', '/app/demo/form/solution/backpanel/backpanel.xml', '/app/demo/global.css', '/app/demo/res/', '/app/demo/res/custombtn.cgc', '/app/demo/res/icon.svg', '/app/demo/res/img.jpg', '/app/demo/res/marker.svg', '/app/demo/res/r-1.svg', '/app/demo/res/r-2.svg', '/app/demo/res/sql.svg', '/app/demo/res/txt.svg', '/app/demo/res/video.mp4', '/app/demo/res/zip.svg', '/app/task/', '/app/task/app.js', '/app/task/config.json', '/app/task/form/', '/app/task/form/bar/', '/app/task/form/bar/bar.js', '/app/task/form/bar/bar.xml', '/app/task/form/desktop/', '/app/task/form/desktop/desktop.xml', '/app/task/locale/', '/app/task/locale/en.json', '/app/task/locale/ja.json', '/app/task/locale/sc.json', '/app/task/locale/tc.json', '/clickgo.js', '/clickgo.ts', '/control/', '/control/arteditor.cgc', '/control/box.cgc', '/control/common.cgc', '/control/desc.cgc', '/control/drawer.cgc', '/control/echarts.cgc', '/control/form.cgc', '/control/iconview.cgc', '/control/jodit.cgc', '/control/map.cgc', '/control/monaco.cgc', '/control/nav.cgc', '/control/page.cgc', '/control/property.cgc', '/control/table.cgc', '/control/task.cgc', '/control/tuieditor.cgc', '/control/tuiviewer.cgc', '/control/xterm.cgc', '/ext/', '/ext/toastui-editor-all.min.js', '/global.css', '/icon.png', '/index.js', '/index.ts', '/lib/', '/lib/control.js', '/lib/control.ts', '/lib/core.js', '/lib/core.ts', '/lib/dom.js', '/lib/dom.ts', '/lib/form.js', '/lib/form.ts', '/lib/fs.js', '/lib/fs.ts', '/lib/native.js', '/lib/native.ts', '/lib/storage.js', '/lib/storage.ts', '/lib/task.js', '/lib/task.ts', '/lib/theme.js', '/lib/theme.ts', '/lib/tool.js', '/lib/tool.ts', '/lib/zip.js', '/lib/zip.ts', '/theme/', '/theme/byterun.cgt', '/theme/familiar.cgt', '/theme/light.cgt'];
|
|
58
|
+
const clickgoFiles = ['/app/', '/app/demo/', '/app/demo/app.js', '/app/demo/config.json', '/app/demo/form/', '/app/demo/form/control/', '/app/demo/form/control/alayout/', '/app/demo/form/control/alayout/alayout.css', '/app/demo/form/control/alayout/alayout.js', '/app/demo/form/control/alayout/alayout.xml', '/app/demo/form/control/arteditor/', '/app/demo/form/control/arteditor/arteditor.js', '/app/demo/form/control/arteditor/arteditor.xml', '/app/demo/form/control/arteditor/img.js', '/app/demo/form/control/arteditor/img.xml', '/app/demo/form/control/block/', '/app/demo/form/control/block/block.css', '/app/demo/form/control/block/block.xml', '/app/demo/form/control/box/', '/app/demo/form/control/box/box.js', '/app/demo/form/control/box/box.xml', '/app/demo/form/control/button/', '/app/demo/form/control/button/button.css', '/app/demo/form/control/button/button.js', '/app/demo/form/control/button/button.xml', '/app/demo/form/control/check/', '/app/demo/form/control/check/check.js', '/app/demo/form/control/check/check.xml', '/app/demo/form/control/date/', '/app/demo/form/control/date/date.js', '/app/demo/form/control/date/date.xml', '/app/demo/form/control/datepanel/', '/app/demo/form/control/datepanel/datepanel.js', '/app/demo/form/control/datepanel/datepanel.xml', '/app/demo/form/control/daterange/', '/app/demo/form/control/daterange/daterange.js', '/app/demo/form/control/daterange/daterange.xml', '/app/demo/form/control/desc/', '/app/demo/form/control/desc/desc.js', '/app/demo/form/control/desc/desc.xml', '/app/demo/form/control/dialog/', '/app/demo/form/control/dialog/dialog.js', '/app/demo/form/control/dialog/dialog.xml', '/app/demo/form/control/drawer/', '/app/demo/form/control/drawer/drawer.js', '/app/demo/form/control/drawer/drawer.xml', '/app/demo/form/control/echarts/', '/app/demo/form/control/echarts/echarts.js', '/app/demo/form/control/echarts/echarts.xml', '/app/demo/form/control/empty/', '/app/demo/form/control/empty/empty.js', '/app/demo/form/control/empty/empty.xml', '/app/demo/form/control/file/', '/app/demo/form/control/file/file.js', '/app/demo/form/control/file/file.xml', '/app/demo/form/control/flow/', '/app/demo/form/control/flow/flow.css', '/app/demo/form/control/flow/flow.js', '/app/demo/form/control/flow/flow.xml', '/app/demo/form/control/form/', '/app/demo/form/control/form/form.css', '/app/demo/form/control/form/form.js', '/app/demo/form/control/form/form.xml', '/app/demo/form/control/grid/', '/app/demo/form/control/grid/grid.js', '/app/demo/form/control/grid/grid.xml', '/app/demo/form/control/group/', '/app/demo/form/control/group/group.js', '/app/demo/form/control/group/group.xml', '/app/demo/form/control/hske/', '/app/demo/form/control/hske/hske.js', '/app/demo/form/control/hske/hske.xml', '/app/demo/form/control/html/', '/app/demo/form/control/html/html.js', '/app/demo/form/control/html/html.xml', '/app/demo/form/control/iconview/', '/app/demo/form/control/iconview/iconview.js', '/app/demo/form/control/iconview/iconview.xml', '/app/demo/form/control/img/', '/app/demo/form/control/img/img.xml', '/app/demo/form/control/jodit/', '/app/demo/form/control/jodit/jodit.js', '/app/demo/form/control/jodit/jodit.xml', '/app/demo/form/control/label/', '/app/demo/form/control/label/label.js', '/app/demo/form/control/label/label.xml', '/app/demo/form/control/layout/', '/app/demo/form/control/layout/layout.js', '/app/demo/form/control/layout/layout.xml', '/app/demo/form/control/link/', '/app/demo/form/control/link/link.js', '/app/demo/form/control/link/link.xml', '/app/demo/form/control/list/', '/app/demo/form/control/list/list.css', '/app/demo/form/control/list/list.js', '/app/demo/form/control/list/list.xml', '/app/demo/form/control/loading/', '/app/demo/form/control/loading/loading.xml', '/app/demo/form/control/map/', '/app/demo/form/control/map/map.js', '/app/demo/form/control/map/map.xml', '/app/demo/form/control/marquee/', '/app/demo/form/control/marquee/marquee.js', '/app/demo/form/control/marquee/marquee.xml', '/app/demo/form/control/menu/', '/app/demo/form/control/menu/menu.js', '/app/demo/form/control/menu/menu.xml', '/app/demo/form/control/monaco/', '/app/demo/form/control/monaco/monaco.js', '/app/demo/form/control/monaco/monaco.xml', '/app/demo/form/control/nav/', '/app/demo/form/control/nav/nav.js', '/app/demo/form/control/nav/nav.xml', '/app/demo/form/control/page/', '/app/demo/form/control/page/page.js', '/app/demo/form/control/page/page.xml', '/app/demo/form/control/panel/', '/app/demo/form/control/panel/panel.js', '/app/demo/form/control/panel/panel.xml', '/app/demo/form/control/panel/test1.js', '/app/demo/form/control/panel/test1.xml', '/app/demo/form/control/panel/test2.xml', '/app/demo/form/control/progress/', '/app/demo/form/control/progress/progress.js', '/app/demo/form/control/progress/progress.xml', '/app/demo/form/control/property/', '/app/demo/form/control/property/property.js', '/app/demo/form/control/property/property.xml', '/app/demo/form/control/radio/', '/app/demo/form/control/radio/radio.js', '/app/demo/form/control/radio/radio.xml', '/app/demo/form/control/scroll/', '/app/demo/form/control/scroll/scroll.js', '/app/demo/form/control/scroll/scroll.xml', '/app/demo/form/control/select/', '/app/demo/form/control/select/select.js', '/app/demo/form/control/select/select.xml', '/app/demo/form/control/sgroup/', '/app/demo/form/control/sgroup/sgroup.xml', '/app/demo/form/control/step/', '/app/demo/form/control/step/step.js', '/app/demo/form/control/step/step.xml', '/app/demo/form/control/svg/', '/app/demo/form/control/svg/svg.js', '/app/demo/form/control/svg/svg.xml', '/app/demo/form/control/switch/', '/app/demo/form/control/switch/switch.js', '/app/demo/form/control/switch/switch.xml', '/app/demo/form/control/tab/', '/app/demo/form/control/tab/tab.js', '/app/demo/form/control/tab/tab.xml', '/app/demo/form/control/table/', '/app/demo/form/control/table/table.js', '/app/demo/form/control/table/table.xml', '/app/demo/form/control/tag/', '/app/demo/form/control/tag/tag.js', '/app/demo/form/control/tag/tag.xml', '/app/demo/form/control/text/', '/app/demo/form/control/text/text.js', '/app/demo/form/control/text/text.xml', '/app/demo/form/control/tip/', '/app/demo/form/control/tip/tip.xml', '/app/demo/form/control/tuieditor/', '/app/demo/form/control/tuieditor/tuieditor.js', '/app/demo/form/control/tuieditor/tuieditor.xml', '/app/demo/form/control/tuiviewer/', '/app/demo/form/control/tuiviewer/tuiviewer.js', '/app/demo/form/control/tuiviewer/tuiviewer.xml', '/app/demo/form/control/vflow/', '/app/demo/form/control/vflow/vflow.css', '/app/demo/form/control/vflow/vflow.js', '/app/demo/form/control/vflow/vflow.xml', '/app/demo/form/control/video/', '/app/demo/form/control/video/video.js', '/app/demo/form/control/video/video.xml', '/app/demo/form/control/xterm/', '/app/demo/form/control/xterm/xterm.js', '/app/demo/form/control/xterm/xterm.xml', '/app/demo/form/event/', '/app/demo/form/event/form/', '/app/demo/form/event/form/form.css', '/app/demo/form/event/form/form.js', '/app/demo/form/event/form/form.xml', '/app/demo/form/event/other/', '/app/demo/form/event/other/other.js', '/app/demo/form/event/other/other.xml', '/app/demo/form/event/screen/', '/app/demo/form/event/screen/screen.js', '/app/demo/form/event/screen/screen.xml', '/app/demo/form/event/task/', '/app/demo/form/event/task/task.js', '/app/demo/form/event/task/task.xml', '/app/demo/form/main.css', '/app/demo/form/main.js', '/app/demo/form/main.xml', '/app/demo/form/method/', '/app/demo/form/method/acontrol/', '/app/demo/form/method/acontrol/acontrol.js', '/app/demo/form/method/acontrol/acontrol.xml', '/app/demo/form/method/aform/', '/app/demo/form/method/aform/aform.js', '/app/demo/form/method/aform/aform.xml', '/app/demo/form/method/aform/sd.js', '/app/demo/form/method/aform/sd.xml', '/app/demo/form/method/core/', '/app/demo/form/method/core/core.js', '/app/demo/form/method/core/core.xml', '/app/demo/form/method/dom/', '/app/demo/form/method/dom/dom.css', '/app/demo/form/method/dom/dom.js', '/app/demo/form/method/dom/dom.xml', '/app/demo/form/method/form/', '/app/demo/form/method/form/form.js', '/app/demo/form/method/form/form.xml', '/app/demo/form/method/form/test.xml', '/app/demo/form/method/fs/', '/app/demo/form/method/fs/fs.js', '/app/demo/form/method/fs/fs.xml', '/app/demo/form/method/fs/text.js', '/app/demo/form/method/fs/text.xml', '/app/demo/form/method/native/', '/app/demo/form/method/native/native.js', '/app/demo/form/method/native/native.xml', '/app/demo/form/method/storage/', '/app/demo/form/method/storage/storage.js', '/app/demo/form/method/storage/storage.xml', '/app/demo/form/method/system/', '/app/demo/form/method/system/system.js', '/app/demo/form/method/system/system.xml', '/app/demo/form/method/task/', '/app/demo/form/method/task/locale1.json', '/app/demo/form/method/task/locale2.json', '/app/demo/form/method/task/task.js', '/app/demo/form/method/task/task.xml', '/app/demo/form/method/theme/', '/app/demo/form/method/theme/theme.js', '/app/demo/form/method/theme/theme.xml', '/app/demo/form/method/tool/', '/app/demo/form/method/tool/tool.js', '/app/demo/form/method/tool/tool.xml', '/app/demo/form/method/zip/', '/app/demo/form/method/zip/zip.js', '/app/demo/form/method/zip/zip.xml', '/app/demo/form/solution/', '/app/demo/form/solution/backpanel/', '/app/demo/form/solution/backpanel/backpanel.js', '/app/demo/form/solution/backpanel/backpanel.xml', '/app/demo/global.css', '/app/demo/res/', '/app/demo/res/custombtn.cgc', '/app/demo/res/icon.svg', '/app/demo/res/img.jpg', '/app/demo/res/marker.svg', '/app/demo/res/r-1.svg', '/app/demo/res/r-2.svg', '/app/demo/res/sql.svg', '/app/demo/res/txt.svg', '/app/demo/res/video.mp4', '/app/demo/res/zip.svg', '/app/task/', '/app/task/app.js', '/app/task/config.json', '/app/task/form/', '/app/task/form/bar/', '/app/task/form/bar/bar.js', '/app/task/form/bar/bar.xml', '/app/task/form/desktop/', '/app/task/form/desktop/desktop.xml', '/app/task/locale/', '/app/task/locale/en.json', '/app/task/locale/ja.json', '/app/task/locale/sc.json', '/app/task/locale/tc.json', '/clickgo.js', '/clickgo.ts', '/control/', '/control/arteditor.cgc', '/control/box.cgc', '/control/common.cgc', '/control/desc.cgc', '/control/drawer.cgc', '/control/echarts.cgc', '/control/form.cgc', '/control/iconview.cgc', '/control/jodit.cgc', '/control/map.cgc', '/control/monaco.cgc', '/control/nav.cgc', '/control/page.cgc', '/control/property.cgc', '/control/table.cgc', '/control/task.cgc', '/control/tuieditor.cgc', '/control/tuiviewer.cgc', '/control/xterm.cgc', '/ext/', '/ext/toastui-editor-all.min.js', '/global.css', '/icon.png', '/index.js', '/index.ts', '/lib/', '/lib/control.js', '/lib/control.ts', '/lib/core.js', '/lib/core.ts', '/lib/dom.js', '/lib/dom.ts', '/lib/form.js', '/lib/form.ts', '/lib/fs.js', '/lib/fs.ts', '/lib/native.js', '/lib/native.ts', '/lib/storage.js', '/lib/storage.ts', '/lib/task.js', '/lib/task.ts', '/lib/theme.js', '/lib/theme.ts', '/lib/tool.js', '/lib/tool.ts', '/lib/zip.js', '/lib/zip.ts', '/theme/', '/theme/byterun.cgt', '/theme/familiar.cgt', '/theme/light.cgt'];
|
|
42
59
|
const localeData = {
|
|
43
60
|
'en': {
|
|
44
61
|
'apply-unmount': 'Are you sure to unmount the "?" mount point?',
|
|
@@ -102,7 +119,6 @@ function mount(name, handler, taskId) {
|
|
|
102
119
|
mounts[name] = handler;
|
|
103
120
|
return true;
|
|
104
121
|
}
|
|
105
|
-
exports.mount = mount;
|
|
106
122
|
function unmount(name) {
|
|
107
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
124
|
var _a, _b;
|
|
@@ -117,7 +133,6 @@ function unmount(name) {
|
|
|
117
133
|
return true;
|
|
118
134
|
});
|
|
119
135
|
}
|
|
120
|
-
exports.unmount = unmount;
|
|
121
136
|
function getContent(path, options, taskId) {
|
|
122
137
|
return __awaiter(this, void 0, void 0, function* () {
|
|
123
138
|
var _a, _b, _c;
|
|
@@ -243,7 +258,6 @@ function getContent(path, options, taskId) {
|
|
|
243
258
|
}
|
|
244
259
|
});
|
|
245
260
|
}
|
|
246
|
-
exports.getContent = getContent;
|
|
247
261
|
function putContent(path_1, data_1) {
|
|
248
262
|
return __awaiter(this, arguments, void 0, function* (path, data, options = {}, taskId) {
|
|
249
263
|
var _a, _b;
|
|
@@ -285,7 +299,6 @@ function putContent(path_1, data_1) {
|
|
|
285
299
|
}
|
|
286
300
|
});
|
|
287
301
|
}
|
|
288
|
-
exports.putContent = putContent;
|
|
289
302
|
function readLink(path, encoding, taskId) {
|
|
290
303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
291
304
|
var _a, _b;
|
|
@@ -323,7 +336,6 @@ function readLink(path, encoding, taskId) {
|
|
|
323
336
|
}
|
|
324
337
|
});
|
|
325
338
|
}
|
|
326
|
-
exports.readLink = readLink;
|
|
327
339
|
function symlink(filePath, linkPath, type, taskId) {
|
|
328
340
|
return __awaiter(this, void 0, void 0, function* () {
|
|
329
341
|
var _a, _b;
|
|
@@ -368,7 +380,6 @@ function symlink(filePath, linkPath, type, taskId) {
|
|
|
368
380
|
}
|
|
369
381
|
});
|
|
370
382
|
}
|
|
371
|
-
exports.symlink = symlink;
|
|
372
383
|
function unlink(path, taskId) {
|
|
373
384
|
return __awaiter(this, void 0, void 0, function* () {
|
|
374
385
|
var _a, _b;
|
|
@@ -406,7 +417,6 @@ function unlink(path, taskId) {
|
|
|
406
417
|
}
|
|
407
418
|
});
|
|
408
419
|
}
|
|
409
|
-
exports.unlink = unlink;
|
|
410
420
|
function getClickGoStats(path) {
|
|
411
421
|
return __awaiter(this, void 0, void 0, function* () {
|
|
412
422
|
if (path.endsWith('/')) {
|
|
@@ -698,7 +708,6 @@ function stats(path, taskId) {
|
|
|
698
708
|
}
|
|
699
709
|
});
|
|
700
710
|
}
|
|
701
|
-
exports.stats = stats;
|
|
702
711
|
function isDir(path, taskId) {
|
|
703
712
|
return __awaiter(this, void 0, void 0, function* () {
|
|
704
713
|
const pstats = yield stats(path, taskId);
|
|
@@ -708,7 +717,6 @@ function isDir(path, taskId) {
|
|
|
708
717
|
return pstats;
|
|
709
718
|
});
|
|
710
719
|
}
|
|
711
|
-
exports.isDir = isDir;
|
|
712
720
|
function isFile(path, taskId) {
|
|
713
721
|
return __awaiter(this, void 0, void 0, function* () {
|
|
714
722
|
const pstats = yield stats(path, taskId);
|
|
@@ -718,7 +726,6 @@ function isFile(path, taskId) {
|
|
|
718
726
|
return pstats;
|
|
719
727
|
});
|
|
720
728
|
}
|
|
721
|
-
exports.isFile = isFile;
|
|
722
729
|
function mkdir(path_1) {
|
|
723
730
|
return __awaiter(this, arguments, void 0, function* (path, mode = 0o755, taskId) {
|
|
724
731
|
var _a, _b;
|
|
@@ -759,7 +766,6 @@ function mkdir(path_1) {
|
|
|
759
766
|
}
|
|
760
767
|
});
|
|
761
768
|
}
|
|
762
|
-
exports.mkdir = mkdir;
|
|
763
769
|
function rmdir(path, taskId) {
|
|
764
770
|
return __awaiter(this, void 0, void 0, function* () {
|
|
765
771
|
var _a, _b;
|
|
@@ -797,7 +803,6 @@ function rmdir(path, taskId) {
|
|
|
797
803
|
}
|
|
798
804
|
});
|
|
799
805
|
}
|
|
800
|
-
exports.rmdir = rmdir;
|
|
801
806
|
function rmdirDeep(path, taskId) {
|
|
802
807
|
return __awaiter(this, void 0, void 0, function* () {
|
|
803
808
|
path = tool.urlResolve('/', path);
|
|
@@ -826,7 +831,6 @@ function rmdirDeep(path, taskId) {
|
|
|
826
831
|
return rmdir(path, taskId);
|
|
827
832
|
});
|
|
828
833
|
}
|
|
829
|
-
exports.rmdirDeep = rmdirDeep;
|
|
830
834
|
function chmod(path, mod, taskId) {
|
|
831
835
|
return __awaiter(this, void 0, void 0, function* () {
|
|
832
836
|
var _a, _b;
|
|
@@ -864,7 +868,6 @@ function chmod(path, mod, taskId) {
|
|
|
864
868
|
}
|
|
865
869
|
});
|
|
866
870
|
}
|
|
867
|
-
exports.chmod = chmod;
|
|
868
871
|
function rename(oldPath, newPath, taskId) {
|
|
869
872
|
return __awaiter(this, void 0, void 0, function* () {
|
|
870
873
|
var _a, _b;
|
|
@@ -915,7 +918,6 @@ function rename(oldPath, newPath, taskId) {
|
|
|
915
918
|
}
|
|
916
919
|
});
|
|
917
920
|
}
|
|
918
|
-
exports.rename = rename;
|
|
919
921
|
function readDir(path, encoding, taskId) {
|
|
920
922
|
return __awaiter(this, void 0, void 0, function* () {
|
|
921
923
|
var _a, _b;
|
|
@@ -1140,7 +1142,6 @@ function readDir(path, encoding, taskId) {
|
|
|
1140
1142
|
}
|
|
1141
1143
|
});
|
|
1142
1144
|
}
|
|
1143
|
-
exports.readDir = readDir;
|
|
1144
1145
|
function copyFolder(from_1, to_1) {
|
|
1145
1146
|
return __awaiter(this, arguments, void 0, function* (from, to, ignore = [], taskId) {
|
|
1146
1147
|
let num = 0;
|
|
@@ -1178,7 +1179,6 @@ function copyFolder(from_1, to_1) {
|
|
|
1178
1179
|
return num;
|
|
1179
1180
|
});
|
|
1180
1181
|
}
|
|
1181
|
-
exports.copyFolder = copyFolder;
|
|
1182
1182
|
function copyFile(src, dest, taskId) {
|
|
1183
1183
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1184
1184
|
var _a, _b;
|
|
@@ -1229,4 +1229,3 @@ function copyFile(src, dest, taskId) {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
});
|
|
1231
1231
|
}
|
|
1232
|
-
exports.copyFile = copyFile;
|