efront 3.35.13 → 3.35.14
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/coms/compile/namelist.js +19 -11
- package/coms/zimoli/list.js +1 -0
- package/coms/zimoli/tree.js +7 -6
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/coms/compile/namelist.js
CHANGED
|
@@ -73,9 +73,9 @@ var keywords = [js_keywords, c_java_go_python, others].join("|").trim().split(/[
|
|
|
73
73
|
keywords = new RegExp(`^(${keywords})$`, 'i');
|
|
74
74
|
var source = `abcdefghijklmnopqrstuvwxyz`;
|
|
75
75
|
source += source.toUpperCase() + "_$";
|
|
76
|
-
var number =
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
var number = '0123456789' + source;
|
|
77
|
+
var counts;
|
|
78
|
+
var source_addition = function () {
|
|
79
79
|
var reg = /\xAA\xB5\xBA\xC0-\xD5\xD8-\xF2\xF8-\u02AF\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0523\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0621-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA/;
|
|
80
80
|
var dist = [];
|
|
81
81
|
reg.source.replace(/\\[xu]([0-9a-f]+)(?:\-\\[xu]([0-9a-f]+))?/ig, function (_, a, b) {
|
|
@@ -89,14 +89,18 @@ source += function () {
|
|
|
89
89
|
});
|
|
90
90
|
return String.fromCharCode.apply(String, dist);
|
|
91
91
|
}();
|
|
92
|
-
var
|
|
93
|
-
|
|
94
|
-
source_length
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
var makeSource = function (qjs) {
|
|
93
|
+
if (!qjs) source = number.slice(10) + source_addition;
|
|
94
|
+
var source_length = source.length;
|
|
95
|
+
counts = [
|
|
96
|
+
source_length,
|
|
97
|
+
source_length * 64,
|
|
98
|
+
source_length * 64 * 64,
|
|
99
|
+
source_length * 64 * 64 * 64,
|
|
100
|
+
source_length * 64 * 64 * 64 * 64
|
|
101
|
+
];
|
|
102
|
+
};
|
|
103
|
+
makeSource(true);
|
|
100
104
|
function create(n, length) {
|
|
101
105
|
var rest = [];
|
|
102
106
|
while (length > 0) {
|
|
@@ -151,4 +155,8 @@ function namelist(count, prevent, skip) {
|
|
|
151
155
|
dist.skip = skip0;
|
|
152
156
|
return dist;
|
|
153
157
|
}
|
|
158
|
+
namelist.makeSource = function (sciter = false) {
|
|
159
|
+
makeSource(sciter);
|
|
160
|
+
makeSource = function () { };
|
|
161
|
+
};
|
|
154
162
|
module.exports = namelist;
|
package/coms/zimoli/list.js
CHANGED
|
@@ -618,6 +618,7 @@ function list() {
|
|
|
618
618
|
}
|
|
619
619
|
var savedSrc = [];
|
|
620
620
|
if (bindSrc === true) care(container, function (src, old) {
|
|
621
|
+
if (container.refresh) return;
|
|
621
622
|
var index = container.index();
|
|
622
623
|
if (src !== old) container.clean(), index = 0;
|
|
623
624
|
else container.clean(src, savedSrc);
|
package/coms/zimoli/tree.js
CHANGED
|
@@ -184,6 +184,7 @@ function tree() {
|
|
|
184
184
|
};
|
|
185
185
|
com.forEach(z);
|
|
186
186
|
setState();
|
|
187
|
+
css(banner, { paddingBottom: '' });
|
|
187
188
|
};
|
|
188
189
|
var time = size => (Math.log(-size / 30 + 2) * 100 | 0) / 1000;
|
|
189
190
|
if (com.isClosed() && com.length) {
|
|
@@ -198,6 +199,7 @@ function tree() {
|
|
|
198
199
|
} else {
|
|
199
200
|
marginTop = top.offsetTop - bottom.offsetTop - bottom.offsetHeight;
|
|
200
201
|
}
|
|
202
|
+
css(banner, { paddingBottom: -marginTop });
|
|
201
203
|
var res = transition(top, {
|
|
202
204
|
transition: `margin-top ${time(marginTop)}s ease-out`,
|
|
203
205
|
marginTop: fromOffset(marginTop)
|
|
@@ -216,8 +218,10 @@ function tree() {
|
|
|
216
218
|
}
|
|
217
219
|
setState(false);
|
|
218
220
|
z0();
|
|
221
|
+
var paddingBottom = -margin_top;
|
|
222
|
+
css(banner, { paddingBottom });
|
|
219
223
|
var res = transition(change_elem, { transition: `margin-top ${time(margin_top)}s ease-out`, marginTop: fromOffset(margin_top) }, false);
|
|
220
|
-
timeout(z1, res);
|
|
224
|
+
timeout(z1, res + 60);
|
|
221
225
|
}
|
|
222
226
|
});
|
|
223
227
|
|
|
@@ -240,12 +244,9 @@ function tree() {
|
|
|
240
244
|
var index = banner.index();
|
|
241
245
|
var needremoves = dom.map(d => d.target).filter(d => !!d);
|
|
242
246
|
dom = getArrayFromTree(root, true);
|
|
243
|
-
needremoves
|
|
244
|
-
delete _div.initialStyle;
|
|
245
|
-
css(_div, "transition:;margin-top:;");
|
|
246
|
-
});
|
|
247
|
-
remove(needremoves);
|
|
247
|
+
remove(needremoves, false);
|
|
248
248
|
banner.go(index || 0);
|
|
249
|
+
css(banner, { paddingBottom: '' });
|
|
249
250
|
};
|
|
250
251
|
banner.refresh = refresh;
|
|
251
252
|
|