clickgo 3.2.3 → 3.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/app/demo/config.json +7 -1
- package/dist/app/demo/form/control/iconview/iconview.js +167 -0
- package/dist/app/demo/form/control/iconview/iconview.xml +39 -0
- package/dist/app/demo/form/control/list/list.js +7 -12
- package/dist/app/demo/form/control/page/page.js +36 -0
- package/dist/app/demo/form/control/page/page.xml +9 -0
- package/dist/app/demo/form/main.js +10 -0
- package/dist/app/demo/form/main.xml +2 -0
- package/dist/app/demo/form/method/dom/dom.js +10 -4
- package/dist/app/demo/form/method/dom/dom.xml +1 -1
- package/dist/app/demo/form/method/fs/fs.js +3 -3
- package/dist/app/demo/form/method/fs/fs.xml +1 -1
- package/dist/app/demo/form/method/task/task.xml +1 -1
- package/dist/app/demo/form/method/zip/zip.js +3 -3
- package/dist/app/demo/form/method/zip/zip.xml +1 -1
- package/dist/app/demo/res/icon.svg +5 -1
- package/dist/app/demo/res/r-1.svg +32 -1
- package/dist/app/demo/res/r-2.svg +38 -1
- package/dist/app/demo/res/sql.svg +25 -1
- package/dist/app/demo/res/txt.svg +21 -1
- package/dist/app/demo/res/zip.svg +21 -1
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/control/box.cgc +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/desc.cgc +0 -0
- package/dist/control/form.cgc +0 -0
- package/dist/control/html.cgc +0 -0
- package/dist/control/iconview.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/lib/dom.js +85 -14
- package/dist/lib/dom.ts +115 -18
- package/dist/lib/form.js +63 -7
- package/dist/lib/form.ts +63 -7
- package/dist/lib/fs.js +26 -2
- package/dist/lib/fs.ts +26 -2
- package/dist/lib/task.js +121 -11
- package/dist/lib/task.ts +137 -14
- package/dist/theme/byterun.cgt +0 -0
- package/dist/theme/familiar.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.4.9/dist/loader.min.js?path=index&npm={'clickgo':'3.2.
|
|
31
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.4.9/dist/loader.min.js?path=index&npm={'clickgo':'3.2.5'}"></script>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
**index.js**
|
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
"/clickgo/control/property",
|
|
13
13
|
"/clickgo/control/table",
|
|
14
14
|
"/clickgo/control/nav",
|
|
15
|
+
"/clickgo/control/page",
|
|
15
16
|
"/clickgo/control/desc",
|
|
16
|
-
"/clickgo/control/html"
|
|
17
|
+
"/clickgo/control/html",
|
|
18
|
+
"/clickgo/control/iconview"
|
|
17
19
|
],
|
|
18
20
|
"style": "/package/global",
|
|
19
21
|
|
|
@@ -41,6 +43,8 @@
|
|
|
41
43
|
"/form/control/form/form.xml",
|
|
42
44
|
"/form/control/html/html.js",
|
|
43
45
|
"/form/control/html/html.xml",
|
|
46
|
+
"/form/control/iconview/iconview.js",
|
|
47
|
+
"/form/control/iconview/iconview.xml",
|
|
44
48
|
"/form/control/img/img.xml",
|
|
45
49
|
"/form/control/label/label.xml",
|
|
46
50
|
"/form/control/layout/layout.xml",
|
|
@@ -59,6 +63,8 @@
|
|
|
59
63
|
"/form/control/monaco/monaco.xml",
|
|
60
64
|
"/form/control/nav/nav.js",
|
|
61
65
|
"/form/control/nav/nav.xml",
|
|
66
|
+
"/form/control/page/page.js",
|
|
67
|
+
"/form/control/page/page.xml",
|
|
62
68
|
"/form/control/panel/panel.js",
|
|
63
69
|
"/form/control/panel/panel.xml",
|
|
64
70
|
"/form/control/panel/test1.js",
|
|
@@ -0,0 +1,167 @@
|
|
|
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 (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
const clickgo = __importStar(require("clickgo"));
|
|
36
|
+
class default_1 extends clickgo.form.AbstractForm {
|
|
37
|
+
constructor() {
|
|
38
|
+
super(...arguments);
|
|
39
|
+
this.list = [
|
|
40
|
+
{
|
|
41
|
+
'id': '1',
|
|
42
|
+
'type': 0,
|
|
43
|
+
'name': 'Folder',
|
|
44
|
+
'time': 1676636097
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
'id': '2',
|
|
48
|
+
'type': 0,
|
|
49
|
+
'name': 'Folder2',
|
|
50
|
+
'time': 1676636097
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
'id': '3',
|
|
54
|
+
'type': 1,
|
|
55
|
+
'name': 'File1',
|
|
56
|
+
'time': 1676600096
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
'id': '4',
|
|
60
|
+
'type': 1,
|
|
61
|
+
'name': 'db.sql',
|
|
62
|
+
'time': 1676600097,
|
|
63
|
+
'icon': '/package/res/sql.svg'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
'id': '5',
|
|
67
|
+
'type': 1,
|
|
68
|
+
'name': 'article.txt',
|
|
69
|
+
'time': 1676600098,
|
|
70
|
+
'icon': '/package/res/txt.svg'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
'id': '6',
|
|
74
|
+
'type': 1,
|
|
75
|
+
'name': 'pack.zip',
|
|
76
|
+
'time': 1676600099,
|
|
77
|
+
'icon': '/package/res/zip.svg'
|
|
78
|
+
}
|
|
79
|
+
];
|
|
80
|
+
this.select = [];
|
|
81
|
+
this.disabled = false;
|
|
82
|
+
this.must = false;
|
|
83
|
+
this.multi = true;
|
|
84
|
+
this.ctrl = true;
|
|
85
|
+
this.selection = true;
|
|
86
|
+
this.gesture = false;
|
|
87
|
+
this.selectionArea = {};
|
|
88
|
+
this.scroll = 'auto';
|
|
89
|
+
this.size = [100];
|
|
90
|
+
}
|
|
91
|
+
showIndex() {
|
|
92
|
+
clickgo.form.dialog('Index is ' + this.select.toString() + '.').catch((e) => { throw e; });
|
|
93
|
+
}
|
|
94
|
+
showType() {
|
|
95
|
+
if (this.select.length === 0) {
|
|
96
|
+
clickgo.form.dialog('There are currently no selected items.').catch((e) => { throw e; });
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
const types = [];
|
|
100
|
+
for (const item of this.select) {
|
|
101
|
+
types.push(this.list[item].type);
|
|
102
|
+
}
|
|
103
|
+
clickgo.form.dialog(`Type is ${types}.`).catch((e) => { throw e; });
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
add() {
|
|
107
|
+
if (clickgo.tool.rand(0, 1)) {
|
|
108
|
+
this.list.push({
|
|
109
|
+
'id': this.list.length.toString(),
|
|
110
|
+
'type': 1,
|
|
111
|
+
'name': 'File' + this.list.length.toString(),
|
|
112
|
+
'time': Math.floor(Date.now() / 1000)
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
this.list.unshift({
|
|
117
|
+
'id': this.list.length.toString(),
|
|
118
|
+
'type': 0,
|
|
119
|
+
'name': 'Folder' + this.list.length.toString(),
|
|
120
|
+
'time': Math.floor(Date.now() / 1000)
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
remove() {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
if (this.list.length === 3) {
|
|
127
|
+
yield clickgo.form.dialog('It cannot be removed at this time.');
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
this.list.splice(-1, 1);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
drop(data) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
yield clickgo.form.dialog(JSON.stringify(data));
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
onSelect(area) {
|
|
139
|
+
this.selectionArea = area;
|
|
140
|
+
}
|
|
141
|
+
onOpen(v) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
yield clickgo.form.dialog('onOpen: ' + v.toString());
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
scrollChange() {
|
|
147
|
+
switch (this.scroll) {
|
|
148
|
+
case 'auto': {
|
|
149
|
+
this.scroll = 'visible';
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
case 'visible': {
|
|
153
|
+
this.scroll = 'hidden';
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
default: {
|
|
157
|
+
this.scroll = 'auto';
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
onGesture(dir) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
yield clickgo.form.dialog('onGesture: ' + dir);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<form title="Iconview" width="400" height="500" padding="10">
|
|
2
|
+
<layout gutter="10" direction="v" style="flex: 1; width: 0;">
|
|
3
|
+
<label>select: {{select}}</label>
|
|
4
|
+
<iconview :data="list" v-model="select" :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" @gesture="onGesture" :scroll="scroll" :size="size[0] ? size[0] : undefined" style="flex: 1;" @drop="drop" @select="onSelect" @open="onOpen">
|
|
5
|
+
<template v-slot:pop>
|
|
6
|
+
<menulist>
|
|
7
|
+
<menulist-item alt="S">Some options</menulist-item>
|
|
8
|
+
</menulist>
|
|
9
|
+
</template>
|
|
10
|
+
<template v-slot:itempop>
|
|
11
|
+
<menulist>
|
|
12
|
+
<menulist-item alt="I" @click="showIndex">Show index</menulist-item>
|
|
13
|
+
<menulist-item alt="S" @click="showType">Show type</menulist-item>
|
|
14
|
+
</menulist>
|
|
15
|
+
</template>
|
|
16
|
+
</iconview>
|
|
17
|
+
<label>Area: {{selectionArea}}</label>
|
|
18
|
+
<layout gutter="10">
|
|
19
|
+
<button @click="add" style="padding: 10px; flex: 1;">Add</button>
|
|
20
|
+
<button @click="remove" style="padding: 10px; flex: 1;">Remove</button>
|
|
21
|
+
<button @click="scrollChange" style="padding: 10px; flex: 1;">Scroll {{scroll}}</button>
|
|
22
|
+
</layout>
|
|
23
|
+
<layout class="ctr" gutter="10">
|
|
24
|
+
<select v-model="size" :data="[0, 32, 64, 128, 256]" style="flex: 1;"></select>
|
|
25
|
+
<button @click="select=[1]" style="padding: 10px; flex: 1;">Select 2th</button>
|
|
26
|
+
<button v-if="multi" @click="select=[1,2]" style="padding: 10px; flex: 1;">Select two</button>
|
|
27
|
+
</layout>
|
|
28
|
+
<layout class="ctr" gutter="10">
|
|
29
|
+
<button @click="disabled = !disabled" style="padding: 10px; flex: 1;">{{disabled ? '' : '!'}}disabled</button>
|
|
30
|
+
<button @click="multi = !multi" style="padding: 10px; flex: 1;">{{multi ? '' : '!'}}multi</button>
|
|
31
|
+
<button @click="ctrl = !ctrl" style="padding: 10px; flex: 1;">{{ctrl ? '' : '!'}}ctrl</button>
|
|
32
|
+
</layout>
|
|
33
|
+
<layout class="ctr" gutter="10">
|
|
34
|
+
<button @click="must = !must" style="padding: 10px; flex: 1;">{{must ? '' : '!'}}must</button>
|
|
35
|
+
<button @click="selection = !selection" style="padding: 10px; flex: 1;">{{selection ? '' : '!'}}selection</button>
|
|
36
|
+
<button @click="gesture = !gesture" style="padding: 10px; flex: 1;">{{gesture ? '' : '!'}}gesture</button>
|
|
37
|
+
</layout>
|
|
38
|
+
</layout>
|
|
39
|
+
</form>
|
|
@@ -167,20 +167,15 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
167
167
|
clickgo.form.dialog('Index is ' + this.select2.toString() + '.').catch((e) => { throw e; });
|
|
168
168
|
}
|
|
169
169
|
showType() {
|
|
170
|
-
if (
|
|
171
|
-
|
|
172
|
-
clickgo.form.dialog('There are currently no selected items.').catch((e) => { throw e; });
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
const types = [];
|
|
176
|
-
for (const item of this.select) {
|
|
177
|
-
types.push(this.slist[item].type);
|
|
178
|
-
}
|
|
179
|
-
clickgo.form.dialog(`Type is ${types}.`).catch((e) => { throw e; });
|
|
180
|
-
}
|
|
170
|
+
if (this.select.length === 0) {
|
|
171
|
+
clickgo.form.dialog('There are currently no selected items.').catch((e) => { throw e; });
|
|
181
172
|
}
|
|
182
173
|
else {
|
|
183
|
-
|
|
174
|
+
const types = [];
|
|
175
|
+
for (const item of this.select) {
|
|
176
|
+
types.push(this.slist[item].type);
|
|
177
|
+
}
|
|
178
|
+
clickgo.form.dialog(`Type is ${types}.`).catch((e) => { throw e; });
|
|
184
179
|
}
|
|
185
180
|
}
|
|
186
181
|
selectButton() {
|
|
@@ -0,0 +1,36 @@
|
|
|
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 (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
const clickgo = __importStar(require("clickgo"));
|
|
27
|
+
class default_1 extends clickgo.form.AbstractForm {
|
|
28
|
+
constructor() {
|
|
29
|
+
super(...arguments);
|
|
30
|
+
this.p1 = 3;
|
|
31
|
+
this.p2 = 25;
|
|
32
|
+
this.p3 = 30;
|
|
33
|
+
this.p4 = 50;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<form width="650" height="400" title="Page">
|
|
2
|
+
<layout direction="v" gutter="10" style="flex: 1; padding: 10px;">
|
|
3
|
+
<page max="10" />
|
|
4
|
+
<page v-model="p1" max="10" />
|
|
5
|
+
<page v-model="p2" max="30" />
|
|
6
|
+
<page v-model="p3" total="1282" />
|
|
7
|
+
<page v-model="p4" total="1282" count="20" />
|
|
8
|
+
</layout>
|
|
9
|
+
</form>
|
|
@@ -43,6 +43,7 @@ const dialog_1 = __importDefault(require("./control/dialog/dialog"));
|
|
|
43
43
|
const file_1 = __importDefault(require("./control/file/file"));
|
|
44
44
|
const form_1 = __importDefault(require("./control/form/form"));
|
|
45
45
|
const html_1 = __importDefault(require("./control/html/html"));
|
|
46
|
+
const iconview_1 = __importDefault(require("./control/iconview/iconview"));
|
|
46
47
|
const link_1 = __importDefault(require("./control/link/link"));
|
|
47
48
|
const layout_1 = __importDefault(require("./control/layout/layout"));
|
|
48
49
|
const list_1 = __importDefault(require("./control/list/list"));
|
|
@@ -51,6 +52,7 @@ const menu_1 = __importDefault(require("./control/menu/menu"));
|
|
|
51
52
|
const monaco_1 = __importDefault(require("./control/monaco/monaco"));
|
|
52
53
|
const desc_1 = __importDefault(require("./control/desc/desc"));
|
|
53
54
|
const nav_1 = __importDefault(require("./control/nav/nav"));
|
|
55
|
+
const page_1 = __importDefault(require("./control/page/page"));
|
|
54
56
|
const panel_1 = __importDefault(require("./control/panel/panel"));
|
|
55
57
|
const flow_1 = __importDefault(require("./control/flow/flow"));
|
|
56
58
|
const property_1 = __importDefault(require("./control/property/property"));
|
|
@@ -124,6 +126,10 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
124
126
|
frm = yield clickgo.form.create(html_1.default);
|
|
125
127
|
break;
|
|
126
128
|
}
|
|
129
|
+
case 'ciconview': {
|
|
130
|
+
frm = yield clickgo.form.create(iconview_1.default);
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
127
133
|
case 'cvflow': {
|
|
128
134
|
frm = yield clickgo.form.create(vflow_1.default);
|
|
129
135
|
break;
|
|
@@ -174,6 +180,10 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
174
180
|
frm = yield clickgo.form.create(nav_1.default);
|
|
175
181
|
break;
|
|
176
182
|
}
|
|
183
|
+
case 'cpage': {
|
|
184
|
+
frm = yield clickgo.form.create(page_1.default);
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
177
187
|
case 'cpanel': {
|
|
178
188
|
frm = yield clickgo.form.create(panel_1.default);
|
|
179
189
|
break;
|
|
@@ -28,10 +28,12 @@
|
|
|
28
28
|
<button @click="openForm('cproperty')">Property</button>
|
|
29
29
|
<button @click="openForm('ctable')">Table</button>
|
|
30
30
|
<button @click="openForm('cnav')">Nav</button>
|
|
31
|
+
<button @click="openForm('cpage')">Page</button>
|
|
31
32
|
<button @click="openForm('cbox')">Box</button>
|
|
32
33
|
<button @click="openForm('cmonaco')">Monaco</button>
|
|
33
34
|
<button @click="openForm('cdesc')">Desc</button>
|
|
34
35
|
<button @click="openForm('chtml')">Html</button>
|
|
36
|
+
<button @click="openForm('ciconview')">Iconview</button>
|
|
35
37
|
</layout>
|
|
36
38
|
</flow>
|
|
37
39
|
<flow v-else-if="ntab === 'method'" class="inner" direction="v">
|
|
@@ -121,9 +121,9 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
121
121
|
bindGesture(e) {
|
|
122
122
|
clickgo.dom.bindGesture(e, (ne, dir) => {
|
|
123
123
|
if (['top', 'bottom'].includes(dir)) {
|
|
124
|
-
return
|
|
124
|
+
return 1;
|
|
125
125
|
}
|
|
126
|
-
return
|
|
126
|
+
return 0;
|
|
127
127
|
}, (dir) => __awaiter(this, void 0, void 0, function* () {
|
|
128
128
|
this.bindGestureText = dir.slice(0, 1).toUpperCase() + dir.slice(1);
|
|
129
129
|
yield clickgo.tool.sleep(500);
|
|
@@ -133,9 +133,9 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
133
133
|
bindGestureWheel(e) {
|
|
134
134
|
clickgo.dom.bindGesture(e, (ne, dir) => {
|
|
135
135
|
if (['top', 'bottom', 'left', 'right'].includes(dir)) {
|
|
136
|
-
return
|
|
136
|
+
return 1;
|
|
137
137
|
}
|
|
138
|
-
return
|
|
138
|
+
return 0;
|
|
139
139
|
}, (dir) => __awaiter(this, void 0, void 0, function* () {
|
|
140
140
|
this.bindGestureWheelText = dir.slice(0, 1).toUpperCase() + dir.slice(1);
|
|
141
141
|
yield clickgo.tool.sleep(500);
|
|
@@ -189,6 +189,12 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
+
moveDown(e) {
|
|
193
|
+
clickgo.dom.bindDblClick(e, () => {
|
|
194
|
+
this.moveWidth = this.moveWidth === 25 ? 50 : 25;
|
|
195
|
+
this.moveHeight = this.moveHeight === 25 ? 50 : 25;
|
|
196
|
+
});
|
|
197
|
+
}
|
|
192
198
|
fullscreen() {
|
|
193
199
|
clickgo.dom.fullscreen();
|
|
194
200
|
}
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
</block>
|
|
55
55
|
<block @mousedown="bindMoveDown" @touchstart="bindMoveDown" style="height: 50px; display: flex; justify-content: center; align-items: center; font-size: 14px; position: relative; background: var(--g-plain-background); border: solid 1px var(--g-plain-border-color);">
|
|
56
56
|
<label>bindMove(e, { ... })</label>
|
|
57
|
-
<block ref="move" style="background: #07c160; position: absolute;" :style="{'left': moveLeft + 'px', 'top': moveTop + 'px', 'width': moveWidth + 'px', 'height': moveHeight + 'px'}" @
|
|
57
|
+
<block ref="move" style="background: #07c160; position: absolute;" :style="{'left': moveLeft + 'px', 'top': moveTop + 'px', 'width': moveWidth + 'px', 'height': moveHeight + 'px'}" @touchstart="moveDown" @mousedown="moveDown"></block>
|
|
58
58
|
</block>
|
|
59
59
|
<button @click="fullscreen" style="height: 30px;">fullscreen()</button>
|
|
60
60
|
<label>clickgo.form.is.move: {{isMove ? 'true' : 'false'}}</label>
|
|
@@ -67,8 +67,8 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
67
67
|
yield clickgo.form.dialog(stats ? JSON.stringify(stats) : 'null');
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
dblclick() {
|
|
71
|
-
|
|
70
|
+
dblclick(e) {
|
|
71
|
+
clickgo.dom.bindDblClick(e, () => __awaiter(this, void 0, void 0, function* () {
|
|
72
72
|
const r = yield clickgo.fs.isFile(this.val[0]);
|
|
73
73
|
if (r) {
|
|
74
74
|
const extlio = this.val[0].lastIndexOf('.');
|
|
@@ -100,7 +100,7 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
102
|
yield this.open(this.val[0]);
|
|
103
|
-
});
|
|
103
|
+
}));
|
|
104
104
|
}
|
|
105
105
|
up() {
|
|
106
106
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<label>Double click the item below:</label>
|
|
4
4
|
<block style="background: #000; color: #FFF; padding: 5px;">{{ppath}}</block>
|
|
5
5
|
<label>{{val[0]}}</label>
|
|
6
|
-
<list v-model="val" :data="list" @dblclick="dblclick" style="flex: 1; height: 0;"></list>
|
|
6
|
+
<list v-model="val" :data="list" @mousedown="dblclick" @touchstart="dblclick" style="flex: 1; height: 0;"></list>
|
|
7
7
|
<layout gutter="10">
|
|
8
8
|
<button style="height: 30px; padding: 0 10px;" @click="open(ppath)">Refresh</button>
|
|
9
9
|
<button style="height: 30px; padding: 0 10px;" @click="stats">Stats</button>
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
<button @click="clearLocaleLang()" style="height: 30px;">clearLocaleLang()</button>
|
|
52
52
|
<label>Change global locale lang:</label>
|
|
53
53
|
<layout gutter="10">
|
|
54
|
-
<select v-model="select" :data="['sc', 'tc', '
|
|
54
|
+
<select v-model="select" :data="['en', 'sc', 'tc', 'ja', 'ko', 'th', 'es', 'de', 'fr', 'pt', 'ru', 'vi']" style="flex: 1; width: 0;"></select>
|
|
55
55
|
<button @click="changeLocaleLang" style="padding: 0 10px; height: 30px;">Change</button>
|
|
56
56
|
</layout>
|
|
57
57
|
<button @click="sleep" style="height: 30px;">{{sleeping ? 'Waiting...' : 'sleep(() => { ... }, 1000)'}}</button>
|
|
@@ -81,8 +81,8 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
81
81
|
}
|
|
82
82
|
this.ppath = path;
|
|
83
83
|
}
|
|
84
|
-
dblclick() {
|
|
85
|
-
|
|
84
|
+
dblclick(e) {
|
|
85
|
+
clickgo.dom.bindDblClick(e, () => __awaiter(this, void 0, void 0, function* () {
|
|
86
86
|
if (!this.access.zip) {
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
@@ -112,7 +112,7 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
114
|
this.open(this.val[0]);
|
|
115
|
-
});
|
|
115
|
+
}));
|
|
116
116
|
}
|
|
117
117
|
up() {
|
|
118
118
|
if (this.ppath === '/') {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</button>
|
|
7
7
|
<label>Double click the item below:</label>
|
|
8
8
|
<block style="background: #000; color: #FFF; padding: 5px;">{{ppath}}</block>
|
|
9
|
-
<list v-model="val" :data="list" @dblclick="dblclick" style="flex: 1; height: 0;"></list>
|
|
9
|
+
<list v-model="val" :data="list" @mousedown="dblclick" @touchstart="dblclick" style="flex: 1; height: 0;"></list>
|
|
10
10
|
<button style="height: 30px;" @click="up">Up</button>
|
|
11
11
|
</layout>
|
|
12
12
|
</form>
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
2
|
+
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path opacity="0.4" d="M2 12.8799V11.1199C2 10.0799 2.85 9.21994 3.9 9.21994C5.71 9.21994 6.45 7.93994 5.54 6.36994C5.02 5.46994 5.33 4.29994 6.24 3.77994L7.97 2.78994C8.76 2.31994 9.78 2.59994 10.25 3.38994L10.36 3.57994C11.26 5.14994 12.74 5.14994 13.65 3.57994L13.76 3.38994C14.23 2.59994 15.25 2.31994 16.04 2.78994L17.77 3.77994C18.68 4.29994 18.99 5.46994 18.47 6.36994C17.56 7.93994 18.3 9.21994 20.11 9.21994C21.15 9.21994 22.01 10.0699 22.01 11.1199V12.8799C22.01 13.9199 21.16 14.7799 20.11 14.7799C18.3 14.7799 17.56 16.0599 18.47 17.6299C18.99 18.5399 18.68 19.6999 17.77 20.2199L16.04 21.2099C15.25 21.6799 14.23 21.3999 13.76 20.6099L13.65 20.4199C12.75 18.8499 11.27 18.8499 10.36 20.4199L10.25 20.6099C9.78 21.3999 8.76 21.6799 7.97 21.2099L6.24 20.2199C5.33 19.6999 5.02 18.5299 5.54 17.6299C6.45 16.0599 5.71 14.7799 3.9 14.7799C2.85 14.7799 2 13.9199 2 12.8799Z" fill="#292D32"/>
|
|
4
|
+
<path d="M12 15.25C13.7949 15.25 15.25 13.7949 15.25 12C15.25 10.2051 13.7949 8.75 12 8.75C10.2051 8.75 8.75 10.2051 8.75 12C8.75 13.7949 10.2051 15.25 12 15.25Z" fill="#292D32"/>
|
|
5
|
+
</svg>
|
|
@@ -1 +1,32 @@
|
|
|
1
|
-
<?xml version="1.0"
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4
|
+
viewBox="0 0 297 297" xml:space="preserve">
|
|
5
|
+
<g>
|
|
6
|
+
<g>
|
|
7
|
+
<g>
|
|
8
|
+
<circle style="fill:#345065;" cx="148.5" cy="148.5" r="148.5"/>
|
|
9
|
+
</g>
|
|
10
|
+
</g>
|
|
11
|
+
<path style="fill:#2C3E50;" d="M216.895,109.734l-174.216,84.12l103.112,103.112c0.902,0.016,1.804,0.034,2.709,0.034
|
|
12
|
+
c69.329,0,127.557-47.51,143.913-111.748L216.895,109.734z"/>
|
|
13
|
+
<g>
|
|
14
|
+
<path style="fill:#CDD1D3;" d="M49,182c0-54.952,44.548-99.5,99.5-99.5S248,127.048,248,182H49z"/>
|
|
15
|
+
</g>
|
|
16
|
+
<g>
|
|
17
|
+
<path style="fill:#A3A7A8;" d="M148.5,82.5V182H248C248,127.048,203.452,82.5,148.5,82.5z"/>
|
|
18
|
+
</g>
|
|
19
|
+
<g>
|
|
20
|
+
<path style="fill:#99ABD5;" d="M54.5,198.5h188c9.941,0,18-8.059,18-18l0,0h-224l0,0C36.5,190.441,44.559,198.5,54.5,198.5z"/>
|
|
21
|
+
</g>
|
|
22
|
+
<g>
|
|
23
|
+
<circle style="fill:#99ABD5;" cx="148.5" cy="74.5" r="8.5"/>
|
|
24
|
+
</g>
|
|
25
|
+
<g>
|
|
26
|
+
<path style="fill:#8092B7;" d="M148.5,180.5v18h94c9.941,0,18-8.059,18-18H148.5z"/>
|
|
27
|
+
</g>
|
|
28
|
+
<g>
|
|
29
|
+
<path style="fill:#8092B7;" d="M157,74.5c0-4.694-3.806-8.5-8.5-8.5v17C153.194,83,157,79.194,157,74.5z"/>
|
|
30
|
+
</g>
|
|
31
|
+
</g>
|
|
32
|
+
</svg>
|
|
@@ -1 +1,38 @@
|
|
|
1
|
-
<?xml version="1.0"
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4
|
+
viewBox="0 0 297 297" xml:space="preserve">
|
|
5
|
+
<g>
|
|
6
|
+
<g>
|
|
7
|
+
<g>
|
|
8
|
+
<circle style="fill:#0EA6CB;" cx="148.5" cy="148.5" r="148.5"/>
|
|
9
|
+
</g>
|
|
10
|
+
</g>
|
|
11
|
+
<path style="fill:#3A6F81;" d="M296.89,143.057L231,77.167L93.736,251.474l45.212,45.212c3.159,0.201,6.342,0.314,9.552,0.314
|
|
12
|
+
c82.014,0,148.5-66.486,148.5-148.5C297,146.677,296.956,144.864,296.89,143.057z"/>
|
|
13
|
+
<g>
|
|
14
|
+
<path style="fill:#ECF0F1;" d="M105.916,256.5h86.39c8.693,0,16.039-6.446,17.168-15.065L231,77.167H66L88.765,241.56
|
|
15
|
+
C89.951,250.123,97.271,256.5,105.916,256.5z"/>
|
|
16
|
+
</g>
|
|
17
|
+
<g>
|
|
18
|
+
<path style="fill:#D2D7D8;" d="M149.667,77.167V256.5h42.639c8.693,0,16.039-6.446,17.168-15.065L231,77.167H149.667z"/>
|
|
19
|
+
</g>
|
|
20
|
+
<g>
|
|
21
|
+
<path style="fill:#CBE3E3;" d="M86.575,146l11.602,83.785c0.999,7.214,7.166,12.586,14.449,12.586h72.777
|
|
22
|
+
c7.323,0,13.511-5.43,14.463-12.691L210.832,146H86.575z"/>
|
|
23
|
+
</g>
|
|
24
|
+
<g>
|
|
25
|
+
<path style="fill:#B4CCCB;" d="M149.667,146v96.371h35.736c7.323,0,13.511-5.43,14.463-12.691L210.832,146H149.667z"/>
|
|
26
|
+
</g>
|
|
27
|
+
<g>
|
|
28
|
+
<path style="fill:#99ABD5;" d="M183.952,162.27l-19.299,4.571c-3.538,0.838-7.086-1.351-7.924-4.889l-4.571-19.299
|
|
29
|
+
c-0.838-3.538,1.351-7.086,4.889-7.924l19.299-4.571c3.538-0.838,7.086,1.351,7.924,4.889l4.571,19.299
|
|
30
|
+
C189.679,157.885,187.49,161.432,183.952,162.27z"/>
|
|
31
|
+
</g>
|
|
32
|
+
<g>
|
|
33
|
+
<path style="fill:#99ABD5;" d="M116.556,171.636l-14.412-13.626c-2.642-2.498-2.759-6.665-0.261-9.307l13.626-14.412
|
|
34
|
+
c2.498-2.642,6.665-2.759,9.307-0.261l14.412,13.626c2.642,2.498,2.759,6.665,0.261,9.307l-13.626,14.412
|
|
35
|
+
C123.365,174.017,119.198,174.134,116.556,171.636z"/>
|
|
36
|
+
</g>
|
|
37
|
+
</g>
|
|
38
|
+
</svg>
|
|
@@ -1 +1,25 @@
|
|
|
1
|
-
<?xml version="1.0"
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4
|
+
viewBox="0 0 512 512" xml:space="preserve">
|
|
5
|
+
<path style="fill:#E2E5E7;" d="M128,0c-17.6,0-32,14.4-32,32v448c0,17.6,14.4,32,32,32h320c17.6,0,32-14.4,32-32V128L352,0H128z"/>
|
|
6
|
+
<path style="fill:#B0B7BD;" d="M384,128h96L352,0v96C352,113.6,366.4,128,384,128z"/>
|
|
7
|
+
<polygon style="fill:#CAD1D8;" points="480,224 384,128 480,128 "/>
|
|
8
|
+
<path style="fill:#F15642;" d="M416,416c0,8.8-7.2,16-16,16H48c-8.8,0-16-7.2-16-16V256c0-8.8,7.2-16,16-16h352c8.8,0,16,7.2,16,16
|
|
9
|
+
V416z"/>
|
|
10
|
+
<g>
|
|
11
|
+
<path style="fill:#FFFFFF;" d="M98.128,314.672c2.944-24.832,40.416-29.296,58.064-15.728c8.704,7.024-0.496,18.16-8.192,12.528
|
|
12
|
+
c-9.456-6-30.96-8.816-33.648,4.464c-3.456,20.992,52.208,8.976,51.296,43.008c-0.896,32.496-47.968,33.248-65.632,18.672
|
|
13
|
+
c-4.224-3.456-4.096-9.072-1.776-12.544c3.312-3.312,7.024-4.464,11.376-0.88c10.496,7.152,37.488,12.528,39.408-5.648
|
|
14
|
+
C147.376,339.632,94.16,351.008,98.128,314.672z"/>
|
|
15
|
+
<path style="fill:#FFFFFF;" d="M265.488,369.424l2.048,2.416c8.432,7.68-2.56,20.224-11.136,12.16l-4.336-3.44
|
|
16
|
+
c-6.656,4.592-14.448,6.784-24.816,6.784c-22.512,0-48.24-15.504-48.24-46.976s25.584-47.456,48.24-47.456
|
|
17
|
+
c23.776,0,47.072,15.984,47.072,47.456C274.32,352.528,271.232,361.504,265.488,369.424z M257.792,340.368
|
|
18
|
+
c0-20.336-15.984-30.688-30.56-30.688c-15.728,0-31.216,10.336-31.216,30.688c0,15.504,13.168,30.208,31.216,30.208
|
|
19
|
+
c4.592,0,9.072-1.152,13.552-2.304l-14.576-13.44c-6.784-8.192,3.968-19.84,12.528-12.288l14.464,14.448
|
|
20
|
+
C256.384,352.528,257.792,347.024,257.792,340.368z"/>
|
|
21
|
+
<path style="fill:#FFFFFF;" d="M293.168,303.152c0-4.224,3.584-7.808,8.064-7.808c4.096,0,7.552,3.6,7.552,7.808v64.096h34.8
|
|
22
|
+
c12.528,0,12.8,16.752,0,16.752h-42.336c-4.48,0-8.064-3.184-8.064-7.792v-73.056H293.168z"/>
|
|
23
|
+
</g>
|
|
24
|
+
<path style="fill:#CAD1D8;" d="M400,432H96v16h304c8.8,0,16-7.2,16-16v-16C416,424.8,408.8,432,400,432z"/>
|
|
25
|
+
</svg>
|