clickgo 3.8.1 → 3.8.3
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 +3 -3
- package/dist/app/demo/form/control/flow/flow.xml +2 -2
- package/dist/app/demo/form/control/vflow/vflow.xml +2 -2
- package/dist/app/demo/form/method/core/core.js +3 -0
- package/dist/app/demo/form/method/core/core.xml +2 -1
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/control/common.cgc +0 -0
- package/dist/control/monaco.cgc +0 -0
- package/dist/index.js +1 -1
- package/dist/index.ts +1 -1
- package/dist/lib/core.js +6 -2
- package/dist/lib/core.ts +9 -1
- package/dist/lib/task.js +3 -0
- package/dist/lib/task.ts +3 -0
- package/dist/theme/light.cgt +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Load the module loader first, and then load it using the module loader.
|
|
|
28
28
|
**index.html**
|
|
29
29
|
|
|
30
30
|
```html
|
|
31
|
-
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.8.
|
|
31
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.8.3'}"></script>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
**index.js**
|
|
@@ -129,12 +129,12 @@ This library is published under [Apache-2.0](./LICENSE) license.
|
|
|
129
129
|
|
|
130
130
|
#### Iconview
|
|
131
131
|
|
|
132
|
-
[Folder SVG Vector](https://www.svgrepo.com/svg/474852/folder)
|
|
132
|
+
[Folder SVG Vector](https://www.svgrepo.com/svg/474852/folder)
|
|
133
133
|
[File SVG Vector](https://www.svgrepo.com/svg/474842/file)
|
|
134
134
|
|
|
135
135
|
### **LICENSE:** MIT License **AUTHOR:** instructure-ui
|
|
136
136
|
|
|
137
137
|
#### Arteditor
|
|
138
138
|
|
|
139
|
-
[Bold SVG Vector](https://www.svgrepo.com/svg/501109/bold)
|
|
139
|
+
[Bold SVG Vector](https://www.svgrepo.com/svg/501109/bold)
|
|
140
140
|
[Italic SVG Vector](https://www.svgrepo.com/svg/501238/italic)
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
<!-- button list -->
|
|
41
41
|
<layout gutter="10">
|
|
42
42
|
<select v-model="lineValue" :data="[10, 50, 500, 5000]" style="flex: 1; width: 0;"></select>
|
|
43
|
-
<button @click="lineCount += lineValue[0]" style="height: 30px;padding: 0 10px;">Add lines</button>
|
|
44
|
-
<button @click="lineCount -= lineValue[0];if(lineCount < 0) {lineCount = 0;}" style="height: 30px; padding: 0 10px;">Remove lines</button>
|
|
43
|
+
<button @click="lineCount += parseInt(lineValue[0])" style="height: 30px;padding: 0 10px;">Add lines</button>
|
|
44
|
+
<button @click="lineCount -= parseInt(lineValue[0]);if(lineCount < 0) {lineCount = 0;}" style="height: 30px; padding: 0 10px;">Remove lines</button>
|
|
45
45
|
</layout>
|
|
46
46
|
<layout gutter="10">
|
|
47
47
|
<button @click="gesture = !gesture" style="flex: 1; width: 0; height: 30px;">{{gesture ? '' : '!'}}gesture</button>
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
<!-- button list -->
|
|
31
31
|
<layout gutter="10">
|
|
32
32
|
<select v-model="lineValue" :data="[100, 500, 1000, 10000]" style="flex: 1; width: 0;"></select>
|
|
33
|
-
<button @click="lineCount += lineValue[0]" style="height: 30px; padding: 0 10px;">Add lines</button>
|
|
34
|
-
<button @click="lineCount -= lineValue[0];if(lineCount < 0) {lineCount = 0;}" style="height: 30px; padding: 0 10px;">Remove lines</button>
|
|
33
|
+
<button @click="lineCount += parseInt(lineValue[0])" style="height: 30px; padding: 0 10px;">Add lines</button>
|
|
34
|
+
<button @click="lineCount -= parseInt(lineValue[0]);if(lineCount < 0) {lineCount = 0;}" style="height: 30px; padding: 0 10px;">Remove lines</button>
|
|
35
35
|
</layout>
|
|
36
36
|
<layout gutter="10">
|
|
37
37
|
<button @click="gesture = !gesture" style="flex: 1; width: 0; height: 30px;">{{gesture ? '' : '!'}}gesture</button>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<form width="350" height="
|
|
1
|
+
<form width="350" height="500" title="Library task" padding="10">
|
|
2
2
|
<layout direction="v" gutter="10" style="flex: 1;">
|
|
3
3
|
<label>config:</label>
|
|
4
4
|
<text v-model="config" readonly multi style="flex: 1;"></text>
|
|
@@ -16,5 +16,6 @@
|
|
|
16
16
|
</layout>
|
|
17
17
|
<button @click="getLocation">getLocation()</button>
|
|
18
18
|
<button @click="back">back()</button>
|
|
19
|
+
<button @click="open">open('https://www.maiyun.net')</button>
|
|
19
20
|
</layout>
|
|
20
21
|
</form>
|
package/dist/clickgo.js
CHANGED
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.zip = exports.tool = exports.theme = exports.task = exports.storage = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = exports.hasFrame = exports.isImmersion = exports.getPlatform = exports.isNative = exports.getVersion = void 0;
|
|
27
|
-
const version = '3.8.
|
|
27
|
+
const version = '3.8.3';
|
|
28
28
|
function getVersion() {
|
|
29
29
|
return version;
|
|
30
30
|
}
|
package/dist/clickgo.ts
CHANGED
package/dist/control/common.cgc
CHANGED
|
Binary file
|
package/dist/control/monaco.cgc
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -101,7 +101,7 @@ function launcher(boot) {
|
|
|
101
101
|
var _a;
|
|
102
102
|
return __awaiter(this, void 0, void 0, function* () {
|
|
103
103
|
const paths = [
|
|
104
|
-
loader.cdn + '/npm/vue@3.3.
|
|
104
|
+
loader.cdn + '/npm/vue@3.3.13/dist/vue.global.prod.min.js'
|
|
105
105
|
];
|
|
106
106
|
let ro = true;
|
|
107
107
|
if (!(window.ResizeObserver)) {
|
package/dist/index.ts
CHANGED
|
@@ -176,7 +176,7 @@ export function launcher(boot: AbstractBoot): void {
|
|
|
176
176
|
(async function() {
|
|
177
177
|
// --- 通过标签加载库 ---
|
|
178
178
|
const paths: string[] = [
|
|
179
|
-
loader.cdn + '/npm/vue@3.3.
|
|
179
|
+
loader.cdn + '/npm/vue@3.3.13/dist/vue.global.prod.min.js'
|
|
180
180
|
];
|
|
181
181
|
// --- 判断 ResizeObserver 是否存在 ---
|
|
182
182
|
let ro = true;
|
package/dist/lib/core.js
CHANGED
|
@@ -32,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.back = exports.getLocation = exports.location = exports.getHost = exports.getHash = exports.hash = exports.getAvailArea = exports.fetchApp = exports.readApp = exports.trigger = exports.getModule = exports.regModule = exports.boot = exports.getCdn = exports.AbstractApp = exports.config = void 0;
|
|
35
|
+
exports.open = exports.back = exports.getLocation = exports.location = exports.getHost = exports.getHash = exports.hash = exports.getAvailArea = exports.fetchApp = exports.readApp = exports.trigger = exports.getModule = exports.regModule = exports.boot = exports.getCdn = exports.AbstractApp = exports.config = void 0;
|
|
36
36
|
const clickgo = __importStar(require("../clickgo"));
|
|
37
37
|
const fs = __importStar(require("./fs"));
|
|
38
38
|
const form = __importStar(require("./form"));
|
|
@@ -192,7 +192,7 @@ const modules = {
|
|
|
192
192
|
func: function () {
|
|
193
193
|
return __awaiter(this, void 0, void 0, function* () {
|
|
194
194
|
return new Promise(function (resolve, reject) {
|
|
195
|
-
fetch(loader.cdn + '/npm/monaco-editor@0.
|
|
195
|
+
fetch(loader.cdn + '/npm/monaco-editor@0.45.0/min/vs/loader.js').then(function (r) {
|
|
196
196
|
return r.blob();
|
|
197
197
|
}).then(function (b) {
|
|
198
198
|
return tool.blob2DataUrl(b);
|
|
@@ -849,6 +849,10 @@ function back(taskId) {
|
|
|
849
849
|
return true;
|
|
850
850
|
}
|
|
851
851
|
exports.back = back;
|
|
852
|
+
function open(url) {
|
|
853
|
+
window.open(url);
|
|
854
|
+
}
|
|
855
|
+
exports.open = open;
|
|
852
856
|
window.addEventListener('hashchange', function () {
|
|
853
857
|
trigger('hashChanged', window.location.hash ? decodeURIComponent(window.location.hash.slice(1)) : '');
|
|
854
858
|
});
|
package/dist/lib/core.ts
CHANGED
|
@@ -265,7 +265,7 @@ const modules: Record<string, {
|
|
|
265
265
|
'monaco': {
|
|
266
266
|
func: async function() {
|
|
267
267
|
return new Promise(function(resolve, reject) {
|
|
268
|
-
fetch(loader.cdn + '/npm/monaco-editor@0.
|
|
268
|
+
fetch(loader.cdn + '/npm/monaco-editor@0.45.0/min/vs/loader.js').then(function(r) {
|
|
269
269
|
return r.blob();
|
|
270
270
|
}).then(function(b) {
|
|
271
271
|
return tool.blob2DataUrl(b);
|
|
@@ -977,6 +977,14 @@ export function back(taskId?: number): boolean {
|
|
|
977
977
|
return true;
|
|
978
978
|
}
|
|
979
979
|
|
|
980
|
+
/**
|
|
981
|
+
* --- 打开新的标签页
|
|
982
|
+
* @param url 要访问的网址
|
|
983
|
+
*/
|
|
984
|
+
export function open(url: string): void {
|
|
985
|
+
window.open(url);
|
|
986
|
+
}
|
|
987
|
+
|
|
980
988
|
window.addEventListener('hashchange', function() {
|
|
981
989
|
trigger('hashChanged', window.location.hash ? decodeURIComponent(window.location.hash.slice(1)) : '');
|
|
982
990
|
});
|
package/dist/lib/task.js
CHANGED
package/dist/lib/task.ts
CHANGED
package/dist/theme/light.cgt
CHANGED
|
Binary file
|