clickgo 3.0.7-dev8 → 3.1.1-dev10

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.
Files changed (41) hide show
  1. package/README.md +1 -1
  2. package/dist/app/demo/app.js +93 -0
  3. package/dist/app/demo/form/control/dialog/dialog.js +10 -6
  4. package/dist/app/demo/form/control/form/form.js +21 -20
  5. package/dist/app/demo/form/control/form/form.xml +3 -3
  6. package/dist/app/demo/form/main.js +34 -10
  7. package/dist/app/demo/form/main.xml +4 -4
  8. package/dist/app/demo/form/method/form/form.js +103 -101
  9. package/dist/app/demo/form/method/form/form.xml +9 -10
  10. package/dist/app/task/app.js +46 -0
  11. package/dist/app/task/form/bar/bar.js +84 -88
  12. package/dist/app/task/form/bar/bar.xml +4 -5
  13. package/dist/clickgo.js +1 -10
  14. package/dist/clickgo.ts +0 -8
  15. package/dist/control/common.cgc +0 -0
  16. package/dist/control/form.cgc +0 -0
  17. package/dist/control/monaco.cgc +0 -0
  18. package/dist/control/property.cgc +0 -0
  19. package/dist/control/task.cgc +0 -0
  20. package/dist/index.js +105 -56
  21. package/dist/index.ts +164 -59
  22. package/dist/lib/control.js +363 -240
  23. package/dist/lib/control.ts +497 -284
  24. package/dist/lib/core.js +313 -228
  25. package/dist/lib/core.ts +400 -255
  26. package/dist/lib/dom.ts +1 -3
  27. package/dist/lib/form.js +447 -951
  28. package/dist/lib/form.ts +686 -1097
  29. package/dist/lib/fs.js +42 -39
  30. package/dist/lib/fs.ts +45 -41
  31. package/dist/lib/native.ts +3 -0
  32. package/dist/lib/task.js +708 -182
  33. package/dist/lib/task.ts +778 -200
  34. package/dist/lib/theme.ts +2 -2
  35. package/dist/lib/tool.js +58 -48
  36. package/dist/lib/tool.ts +80 -64
  37. package/dist/theme/familiar.cgt +0 -0
  38. package/package.json +5 -7
  39. package/types/index.d.ts +284 -335
  40. package/dist/app/demo/config.json +0 -106
  41. package/dist/app/task/config.json +0 -32
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const clickgo = require("clickgo");
13
+ const bar_1 = require("./form/bar/bar");
14
+ class default_1 extends clickgo.core.AbstractApp {
15
+ main() {
16
+ return __awaiter(this, void 0, void 0, function* () {
17
+ yield this.config({
18
+ 'name': 'Clickgo Task',
19
+ 'ver': 1,
20
+ 'version': '0.1',
21
+ 'author': 'clickgo',
22
+ 'controls': [
23
+ '/clickgo/control/common',
24
+ '/clickgo/control/form',
25
+ '/clickgo/control/task'
26
+ ],
27
+ 'locales': {
28
+ '/package/locale/sc': 'sc',
29
+ '/package/locale/tc': 'tc',
30
+ '/package/locale/en': 'en',
31
+ '/package/locale/ja': 'ja'
32
+ },
33
+ 'files': [
34
+ '/form/bar/bar.xml',
35
+ '/form/desktop/desktop.xml',
36
+ '/locale/en.json',
37
+ '/locale/ja.json',
38
+ '/locale/sc.json',
39
+ '/locale/tc.json'
40
+ ]
41
+ });
42
+ this.run(yield bar_1.default.create());
43
+ });
44
+ }
45
+ }
46
+ exports.default = default_1;
@@ -9,25 +9,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.mounted = exports.methods = exports.computed = exports.data = void 0;
13
12
  const clickgo = require("clickgo");
14
- exports.data = {
15
- 'left': 0,
16
- 'top': 0,
17
- 'width': undefined,
18
- 'height': undefined,
19
- 'apps': []
20
- };
21
- exports.computed = {
22
- 'position': function () {
13
+ class default_1 extends clickgo.form.AbstractForm {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.apps = [];
17
+ }
18
+ get position() {
23
19
  return clickgo.core.config['task.position'];
24
20
  }
25
- };
26
- exports.methods = {
27
- showLauncher: function () {
21
+ showLauncher() {
28
22
  clickgo.form.showLauncher();
29
- },
30
- itemClick: function (appIndex) {
23
+ }
24
+ itemClick(appIndex) {
31
25
  return __awaiter(this, void 0, void 0, function* () {
32
26
  if (this.apps[appIndex].formCount === 0) {
33
27
  try {
@@ -54,8 +48,8 @@ exports.methods = {
54
48
  else {
55
49
  }
56
50
  });
57
- },
58
- run: function (path) {
51
+ }
52
+ run(path) {
59
53
  return __awaiter(this, void 0, void 0, function* () {
60
54
  try {
61
55
  yield clickgo.task.run(path);
@@ -64,8 +58,8 @@ exports.methods = {
64
58
  return;
65
59
  }
66
60
  });
67
- },
68
- pin: function (index) {
61
+ }
62
+ pin(index) {
69
63
  const app = this.apps[index];
70
64
  if (!app) {
71
65
  return;
@@ -80,8 +74,8 @@ exports.methods = {
80
74
  'icon': app.icon
81
75
  };
82
76
  }
83
- },
84
- close: function (index) {
77
+ }
78
+ close(index) {
85
79
  const app = this.apps[index];
86
80
  if (!app) {
87
81
  return;
@@ -89,14 +83,14 @@ exports.methods = {
89
83
  for (const formId in app.forms) {
90
84
  clickgo.form.remove(parseInt(formId));
91
85
  }
92
- },
93
- changeFocus: function (formId) {
86
+ }
87
+ changeFocus(formId) {
94
88
  clickgo.form.changeFocus(parseInt(formId));
95
- },
96
- updatePosition: function (position) {
89
+ }
90
+ updatePosition(position) {
97
91
  clickgo.core.config['task.position'] = position;
98
- },
99
- getAppIndexByPath: function (path) {
92
+ }
93
+ getAppIndexByPath(path) {
100
94
  for (let i = 0; i < this.apps.length; ++i) {
101
95
  const app = this.apps[i];
102
96
  if (app.path !== path) {
@@ -106,56 +100,56 @@ exports.methods = {
106
100
  }
107
101
  return -1;
108
102
  }
109
- };
110
- const mounted = function () {
111
- clickgo.form.setTopMost(true);
112
- clickgo.task.setSystem();
113
- for (const path in clickgo.core.config['task.pin']) {
114
- this.apps.push({
115
- 'name': clickgo.core.config['task.pin'][path].name,
116
- 'path': path,
117
- 'icon': clickgo.core.config['task.pin'][path].icon,
118
- 'selected': false,
119
- 'opened': false,
120
- 'forms': {},
121
- 'formCount': 0,
122
- 'pin': true
123
- });
124
- }
125
- const tasks = clickgo.task.getList();
126
- for (const taskId in tasks) {
127
- if (parseInt(taskId) === this.taskId) {
128
- continue;
129
- }
130
- const task = tasks[taskId];
131
- let appIndex = this.getAppIndexByPath(task.path);
132
- if (appIndex >= 0) {
133
- this.apps[appIndex].opened = true;
134
- }
135
- else {
103
+ onMounted() {
104
+ this.topMost = true;
105
+ clickgo.task.setSystem(this.formId);
106
+ for (const path in clickgo.core.config['task.pin']) {
136
107
  this.apps.push({
137
- 'name': task.name,
138
- 'path': task.path,
139
- 'icon': task.icon,
108
+ 'name': clickgo.core.config['task.pin'][path].name,
109
+ 'path': path,
110
+ 'icon': clickgo.core.config['task.pin'][path].icon,
140
111
  'selected': false,
141
- 'opened': true,
112
+ 'opened': false,
142
113
  'forms': {},
143
114
  'formCount': 0,
144
- 'pin': false
115
+ 'pin': true
145
116
  });
146
- appIndex = this.apps.length - 1;
147
117
  }
148
- const forms = clickgo.form.getList(parseInt(taskId));
149
- for (const formId in forms) {
150
- const form = forms[formId];
151
- this.apps[appIndex].forms[formId] = {
152
- 'title': form.title,
153
- 'icon': form.icon || this.apps[appIndex].icon
154
- };
118
+ const tasks = clickgo.task.getList();
119
+ for (const taskId in tasks) {
120
+ if (parseInt(taskId) === this.taskId) {
121
+ continue;
122
+ }
123
+ const task = tasks[taskId];
124
+ let appIndex = this.getAppIndexByPath(task.path);
125
+ if (appIndex >= 0) {
126
+ this.apps[appIndex].opened = true;
127
+ }
128
+ else {
129
+ this.apps.push({
130
+ 'name': task.name,
131
+ 'path': task.path,
132
+ 'icon': task.icon,
133
+ 'selected': false,
134
+ 'opened': true,
135
+ 'forms': {},
136
+ 'formCount': 0,
137
+ 'pin': false
138
+ });
139
+ appIndex = this.apps.length - 1;
140
+ }
141
+ const forms = clickgo.form.getList(parseInt(taskId));
142
+ for (const formId in forms) {
143
+ const form = forms[formId];
144
+ this.apps[appIndex].forms[formId] = {
145
+ 'title': form.title,
146
+ 'icon': form.icon || this.apps[appIndex].icon
147
+ };
148
+ }
149
+ this.apps[appIndex].formCount = Object.keys(this.apps[appIndex].forms).length;
155
150
  }
156
- this.apps[appIndex].formCount = Object.keys(this.apps[appIndex].forms).length;
157
151
  }
158
- clickgo.core.setSystemEventListener('formCreated', (taskId, formId, title, icon) => {
152
+ onFormCreated(taskId, formId, title, icon) {
159
153
  if (taskId === this.taskId) {
160
154
  return;
161
155
  }
@@ -185,8 +179,8 @@ const mounted = function () {
185
179
  'icon': icon || this.apps[appIndex].icon
186
180
  };
187
181
  ++this.apps[appIndex].formCount;
188
- });
189
- clickgo.core.setSystemEventListener('formRemoved', (taskId, formId) => {
182
+ }
183
+ onFormRemoved(taskId, formId) {
190
184
  const task = clickgo.task.get(taskId);
191
185
  if (!task) {
192
186
  return;
@@ -207,8 +201,8 @@ const mounted = function () {
207
201
  else {
208
202
  this.apps.splice(appIndex, 1);
209
203
  }
210
- });
211
- clickgo.core.setSystemEventListener('formFocused', (taskId) => {
204
+ }
205
+ onFormFocused(taskId) {
212
206
  const task = clickgo.task.get(taskId);
213
207
  if (!task) {
214
208
  return;
@@ -218,8 +212,8 @@ const mounted = function () {
218
212
  return;
219
213
  }
220
214
  this.apps[appIndex].selected = true;
221
- });
222
- clickgo.core.setSystemEventListener('formBlurred', (taskId) => {
215
+ }
216
+ onFormBlurred(taskId) {
223
217
  const task = clickgo.task.get(taskId);
224
218
  if (!task) {
225
219
  return;
@@ -229,8 +223,8 @@ const mounted = function () {
229
223
  return;
230
224
  }
231
225
  this.apps[appIndex].selected = false;
232
- });
233
- clickgo.core.setSystemEventListener('formTitleChanged', (taskId, formId, title) => {
226
+ }
227
+ onFormTitleChanged(taskId, formId, title) {
234
228
  const task = clickgo.task.get(taskId);
235
229
  if (!task) {
236
230
  return;
@@ -243,8 +237,8 @@ const mounted = function () {
243
237
  return;
244
238
  }
245
239
  this.apps[appIndex].forms[formId].title = title;
246
- });
247
- clickgo.core.setSystemEventListener('formIconChanged', (taskId, formId, icon) => {
240
+ }
241
+ onFormIconChanged(taskId, formId, icon) {
248
242
  const task = clickgo.task.get(taskId);
249
243
  if (!task) {
250
244
  return;
@@ -257,18 +251,20 @@ const mounted = function () {
257
251
  return;
258
252
  }
259
253
  this.apps[appIndex].forms[formId].icon = icon || this.apps[appIndex].icon;
260
- });
261
- clickgo.core.setSystemEventListener('configChanged', (n, v) => {
254
+ }
255
+ onConfigChanged(n, v) {
262
256
  if (n !== 'task.pin') {
263
257
  return;
264
258
  }
265
- for (const path in v) {
259
+ const val = v;
260
+ for (const path in val) {
261
+ const item = val[path];
266
262
  const appIndex = this.getAppIndexByPath(path);
267
263
  if (appIndex < 0) {
268
264
  this.apps.unshift({
269
- 'name': v[path].name,
265
+ 'name': item.name,
270
266
  'path': path,
271
- 'icon': v[path].icon,
267
+ 'icon': item.icon,
272
268
  'selected': false,
273
269
  'opened': false,
274
270
  'forms': {},
@@ -287,7 +283,7 @@ const mounted = function () {
287
283
  if (!app.pin) {
288
284
  continue;
289
285
  }
290
- if (v[app.path]) {
286
+ if (val[app.path]) {
291
287
  continue;
292
288
  }
293
289
  if (app.formCount === 0) {
@@ -297,6 +293,6 @@ const mounted = function () {
297
293
  app.pin = false;
298
294
  }
299
295
  }
300
- });
301
- };
302
- exports.mounted = mounted;
296
+ }
297
+ }
298
+ exports.default = default_1;
@@ -1,22 +1,21 @@
1
-
2
- <form v-model:width="width" v-model:height="height" v-model:left="left" v-model:top="top" title="Bar" border="none" :resize="false" background="transparent">
1
+ <form title="Bar" border="none" :resize="false" background="transparent">
3
2
  <task :position="position">
4
3
  <task-item @click="showLauncher">
5
4
  <img src="/clickgo/icon.png" style="width: 16px; height: 16px;" />
6
5
  </task-item>
7
6
  <task-item v-for="(app, appIndex) of apps" :selected="app.selected" :opened="app.opened" :multi="app.formCount > 1" @click="itemClick(appIndex)" @mousedown="$event.stopPropagation()" @touchstart="$event.stopPropagation()">
8
- <img :src="app.icon" style="width: 16px; height: 16px;" />
7
+ <img :src="app.icon || '/clickgo/icon.png'" style="width: 16px; height: 16px;" />
9
8
  <template v-if="app.formCount > 1" v-slot:pop>
10
9
  <menulist>
11
10
  <menulist-item v-for="(form, formId) of app.forms" @click="changeFocus(formId)">
12
- <img :src="form.icon" style="width: 16px; height: 16px;" /><label style="margin-left: 10px;">{{form.title}}</label>
11
+ <img :src="form.icon || app.icon" style="width: 16px; height: 16px;" /><label style="margin-left: 10px;">{{form.title}}</label>
13
12
  </menulist-item>
14
13
  </menulist>
15
14
  </template>
16
15
  <template v-slot:contextmenu>
17
16
  <menulist>
18
17
  <menulist-item @click="run(app.path)">
19
- <img :src="app.icon" style="width: 16px; height: 16px;" /><label style="margin-left: 10px;">{{app.name}}</label>
18
+ <img :src="app.icon || '/clickgo/icon.png'" style="width: 16px; height: 16px;" /><label style="margin-left: 10px;">{{app.name}}</label>
20
19
  </menulist-item>
21
20
  <menulist-split v-if="app.formCount > 0"></menulist-split>
22
21
  <menulist-item @click="pin(appIndex)">
package/dist/clickgo.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zip = exports.tool = exports.theme = exports.task = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = exports.getSafe = exports.setSafe = exports.getPlatform = exports.getNative = exports.getVersion = void 0;
3
+ exports.zip = exports.tool = exports.theme = exports.task = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = exports.getPlatform = exports.getNative = exports.getVersion = void 0;
4
4
  const version = '3.0.0';
5
5
  function getVersion() {
6
6
  return version;
@@ -22,15 +22,6 @@ function getPlatform() {
22
22
  return platform;
23
23
  }
24
24
  exports.getPlatform = getPlatform;
25
- let safe = true;
26
- function setSafe(val) {
27
- safe = val;
28
- }
29
- exports.setSafe = setSafe;
30
- function getSafe() {
31
- return safe;
32
- }
33
- exports.getSafe = getSafe;
34
25
  exports.vue = window.Vue;
35
26
  exports.control = require("./lib/control");
36
27
  exports.core = require("./lib/core");
package/dist/clickgo.ts CHANGED
@@ -34,14 +34,6 @@ export function getPlatform(): NodeJS.Platform | 'web' {
34
34
  return platform;
35
35
  }
36
36
 
37
- let safe = true;
38
- export function setSafe(val: boolean): void {
39
- safe = val;
40
- }
41
- export function getSafe(): boolean {
42
- return safe;
43
- }
44
-
45
37
  export const vue: import('../types/index').IVueObject = (window as any).Vue;
46
38
 
47
39
  export * as control from './lib/control';
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.init = exports.getSafe = exports.setSafe = exports.getPlatform = exports.getNative = exports.getVersion = exports.vue = exports.zip = exports.tool = exports.theme = exports.task = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.clickgo = void 0;
12
+ exports.launcher = exports.AbstractBoot = exports.getPlatform = exports.getNative = exports.getVersion = exports.vue = exports.zip = exports.tool = exports.theme = exports.task = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.clickgo = void 0;
13
13
  function getVersion() {
14
14
  return exports.clickgo.getVersion();
15
15
  }
@@ -22,62 +22,111 @@ function getPlatform() {
22
22
  return exports.clickgo.getPlatform();
23
23
  }
24
24
  exports.getPlatform = getPlatform;
25
- function setSafe(val) {
26
- exports.clickgo.setSafe(val);
25
+ class AbstractBoot {
26
+ onError() {
27
+ return;
28
+ }
29
+ onScreenResize() {
30
+ return;
31
+ }
32
+ onConfigChanged() {
33
+ return;
34
+ }
35
+ onFormCreated() {
36
+ return;
37
+ }
38
+ onFormRemoved() {
39
+ return;
40
+ }
41
+ onFormTitleChanged() {
42
+ return;
43
+ }
44
+ onFormIconChanged() {
45
+ return;
46
+ }
47
+ onFormStateMinChanged() {
48
+ return;
49
+ }
50
+ onFormStateMaxChanged() {
51
+ return;
52
+ }
53
+ onFormShowChanged() {
54
+ return;
55
+ }
56
+ onFormFocused() {
57
+ return;
58
+ }
59
+ onFormBlurred() {
60
+ return;
61
+ }
62
+ onFormFlash() {
63
+ return;
64
+ }
65
+ onTaskStarted() {
66
+ return;
67
+ }
68
+ onTaskEnded() {
69
+ return;
70
+ }
71
+ onLauncherFolderNameChanged() {
72
+ return;
73
+ }
27
74
  }
28
- exports.setSafe = setSafe;
29
- function getSafe() {
30
- return exports.clickgo.getSafe();
31
- }
32
- exports.getSafe = getSafe;
33
- function init() {
34
- var _a;
35
- return __awaiter(this, void 0, void 0, function* () {
36
- const paths = [
37
- loader.cdn + '/npm/vue@3.2.31/dist/vue.global.min.js'
38
- ];
39
- let ro = true;
40
- if (!(window.ResizeObserver)) {
41
- ro = false;
42
- paths.push(loader.cdn + '/npm/@juggle/resize-observer@3.3.1/lib/exports/resize-observer.umd.min.js');
43
- }
44
- yield loader.loadScripts(paths);
45
- if (!ro) {
46
- window.ResizeObserverEntry = window.ResizeObserver.ResizeObserverEntry;
47
- window.ResizeObserver = window.ResizeObserver.ResizeObserver;
48
- }
49
- const map = {
50
- 'jszip': loader.cdn + '/npm/jszip@3.10.0/dist/jszip.min'
51
- };
52
- const after = '?' + Math.random().toString();
53
- const files = yield loader.sniffFiles('clickgo.js', {
54
- 'dir': __dirname + '/',
55
- 'after': after,
56
- 'afterIgnore': new RegExp('^' + loader.cdn.replace(/\./g, '\\.')),
57
- 'map': map
75
+ exports.AbstractBoot = AbstractBoot;
76
+ function launcher(boot) {
77
+ (function () {
78
+ var _a;
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ const paths = [
81
+ loader.cdn + '/npm/vue@3.2.40/dist/vue.global.prod.min.js'
82
+ ];
83
+ let ro = true;
84
+ if (!(window.ResizeObserver)) {
85
+ ro = false;
86
+ paths.push(loader.cdn + '/npm/@juggle/resize-observer@3.4.0/lib/exports/resize-observer.umd.min.js');
87
+ }
88
+ yield loader.loadScripts(paths);
89
+ if (!ro) {
90
+ window.ResizeObserverEntry = window.ResizeObserver.ResizeObserverEntry;
91
+ window.ResizeObserver = window.ResizeObserver.ResizeObserver;
92
+ }
93
+ const map = {
94
+ 'jszip': loader.cdn + '/npm/jszip@3.10.0/dist/jszip.min'
95
+ };
96
+ const after = '?' + Math.random().toString();
97
+ const files = yield loader.sniffFiles('clickgo.js', {
98
+ 'dir': __dirname + '/',
99
+ 'after': after,
100
+ 'afterIgnore': new RegExp('^' + loader.cdn.replace(/\./g, '\\.')),
101
+ 'map': map
102
+ });
103
+ const cg = loader.require('clickgo', files, {
104
+ 'dir': __dirname + '/',
105
+ 'map': map
106
+ })[0];
107
+ try {
108
+ const style = yield (yield fetch(__dirname + '/global.css' + (!__dirname.startsWith(loader.cdn) ? after : ''))).text();
109
+ (_a = document.getElementById('cg-global')) === null || _a === void 0 ? void 0 : _a.insertAdjacentHTML('afterbegin', style);
110
+ }
111
+ catch (_b) {
112
+ alert(`ClickGo: "${__dirname}/global.css'" failed.`);
113
+ }
114
+ exports.clickgo = cg;
115
+ exports.control = cg.control;
116
+ exports.core = cg.core;
117
+ exports.dom = cg.dom;
118
+ exports.form = cg.form;
119
+ exports.fs = cg.fs;
120
+ exports.native = cg.native;
121
+ exports.task = cg.task;
122
+ exports.theme = cg.theme;
123
+ exports.tool = cg.tool;
124
+ exports.zip = cg.zip;
125
+ exports.core.boot = boot;
126
+ yield boot.main();
58
127
  });
59
- const cg = loader.require('clickgo', files, {
60
- 'dir': __dirname + '/',
61
- 'map': map
62
- })[0];
63
- try {
64
- const style = yield (yield fetch(__dirname + '/global.css' + (!__dirname.startsWith(loader.cdn) ? after : ''))).text();
65
- (_a = document.getElementById('cg-global')) === null || _a === void 0 ? void 0 : _a.insertAdjacentHTML('afterbegin', style);
66
- }
67
- catch (_b) {
68
- alert(`ClickGo: "${__dirname}/global.css'" failed.`);
69
- }
70
- exports.clickgo = cg;
71
- exports.control = cg.control;
72
- exports.core = cg.core;
73
- exports.dom = cg.dom;
74
- exports.form = cg.form;
75
- exports.fs = cg.fs;
76
- exports.native = cg.native;
77
- exports.task = cg.task;
78
- exports.theme = cg.theme;
79
- exports.tool = cg.tool;
80
- exports.zip = cg.zip;
128
+ })().catch(function () {
129
+ return;
81
130
  });
82
131
  }
83
- exports.init = init;
132
+ exports.launcher = launcher;