isite 2022.1.11 → 2022.1.16
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.
|
@@ -104,9 +104,12 @@ body.print-mode .small {
|
|
|
104
104
|
--legend-color: #000;
|
|
105
105
|
--legend-text-shadow: none;
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
html,
|
|
108
|
+
body,
|
|
109
|
+
.page {
|
|
110
|
+
margin: 0;
|
|
111
|
+
}
|
|
108
112
|
.page {
|
|
109
|
-
/* this section always occupies it's own page or pages. */
|
|
110
113
|
page-break-before: always;
|
|
111
114
|
page-break-after: always;
|
|
112
115
|
page-break-inside: avoid !important;
|
|
@@ -117,7 +120,6 @@ body.print-mode .small {
|
|
|
117
120
|
}
|
|
118
121
|
|
|
119
122
|
.print-start {
|
|
120
|
-
/* elements always start on the top of a new page. */
|
|
121
123
|
page-break-before: always;
|
|
122
124
|
}
|
|
123
125
|
|
|
@@ -125,51 +127,6 @@ body.print-mode .small {
|
|
|
125
127
|
page-break-inside: avoid;
|
|
126
128
|
}
|
|
127
129
|
|
|
128
|
-
h1,
|
|
129
|
-
h2,
|
|
130
|
-
h3,
|
|
131
|
-
h4,
|
|
132
|
-
h5 {
|
|
133
|
-
page-break-after: avoid;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/* @page: first {
|
|
137
|
-
margin: 0;
|
|
138
|
-
}
|
|
139
|
-
@page: blank {
|
|
140
|
-
@top-center {
|
|
141
|
-
content: "This page is intentionally left blank.";
|
|
142
|
-
}
|
|
143
|
-
} */
|
|
144
|
-
|
|
145
|
-
@page {
|
|
146
|
-
size: A4;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
@page: right {
|
|
150
|
-
@top-right {
|
|
151
|
-
content: '';
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
@page: right {
|
|
156
|
-
@bottom-right {
|
|
157
|
-
content: '';
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
@page: left {
|
|
162
|
-
@top-left {
|
|
163
|
-
content: '';
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
@page: left {
|
|
168
|
-
@bottom-left {
|
|
169
|
-
content: 'Page ' counter(page) ' of ' counter(pages);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
130
|
a {
|
|
174
131
|
font-weight: bolder;
|
|
175
132
|
text-decoration: none;
|
|
@@ -406,15 +406,15 @@
|
|
|
406
406
|
return parseFloat(n);
|
|
407
407
|
};
|
|
408
408
|
|
|
409
|
-
site.to_money = site.toMoney = function (_num,
|
|
409
|
+
site.to_money = site.toMoney = function (_num, float = true) {
|
|
410
410
|
let n = 0;
|
|
411
411
|
if (_num) {
|
|
412
412
|
_num = _num.toFixed(2).split('.');
|
|
413
413
|
let n1 = _num[0];
|
|
414
|
-
let n2 = _num[1];
|
|
414
|
+
let n2 = _num[1] || '00';
|
|
415
415
|
if (n2) {
|
|
416
|
-
let n3 = n2[0];
|
|
417
|
-
let n4 = n2[1];
|
|
416
|
+
let n3 = n2[0] || '0';
|
|
417
|
+
let n4 = n2[1] || '0';
|
|
418
418
|
if (n4 && parseInt(n4) > 5) {
|
|
419
419
|
n3 = parseInt(n3) + 1;
|
|
420
420
|
n3 = n3 * 10;
|
|
@@ -431,12 +431,16 @@
|
|
|
431
431
|
n4 = 5;
|
|
432
432
|
_num[1] = n3 + n4;
|
|
433
433
|
} else {
|
|
434
|
-
_num[1] = n3;
|
|
434
|
+
_num[1] = n3 + '0';
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
n = _num.join('.');
|
|
438
438
|
}
|
|
439
|
-
|
|
439
|
+
if (!float) {
|
|
440
|
+
return n;
|
|
441
|
+
} else {
|
|
442
|
+
return site.to_float(n);
|
|
443
|
+
}
|
|
440
444
|
};
|
|
441
445
|
|
|
442
446
|
site.to_float = site.toFloat = function (_num) {
|
package/lib/parser.js
CHANGED
|
@@ -229,7 +229,12 @@ module.exports = function init(req, res, ____0, route) {
|
|
|
229
229
|
return req.session[v[0]];
|
|
230
230
|
}
|
|
231
231
|
if (v.length === 2) {
|
|
232
|
-
|
|
232
|
+
let s1 = req.session[v[0]];
|
|
233
|
+
if (s1) {
|
|
234
|
+
return s1[v[1]];
|
|
235
|
+
} else {
|
|
236
|
+
return '';
|
|
237
|
+
}
|
|
233
238
|
}
|
|
234
239
|
}
|
|
235
240
|
}
|
package/lib/storage.js
CHANGED
|
@@ -41,18 +41,21 @@ module.exports = function init(____0) {
|
|
|
41
41
|
storage.fn = function (key, value) {
|
|
42
42
|
if (key && value !== undefined) {
|
|
43
43
|
value = value;
|
|
44
|
+
let exists = false;
|
|
44
45
|
for (let i = 0; i < storage.list.length; i++) {
|
|
45
46
|
if (key === storage.list[i].key) {
|
|
47
|
+
exists = true;
|
|
46
48
|
storage.list[i].value = value;
|
|
47
49
|
storage.save();
|
|
48
|
-
return;
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
if (!exists) {
|
|
53
|
+
storage.list.push({
|
|
54
|
+
key: key,
|
|
55
|
+
value: value,
|
|
56
|
+
});
|
|
57
|
+
storage.save();
|
|
58
|
+
}
|
|
56
59
|
} else if (key && value === undefined) {
|
|
57
60
|
for (let i = 0; i < storage.list.length; i++) {
|
|
58
61
|
if (key === storage.list[i].key) {
|
|
@@ -95,6 +98,10 @@ module.exports = function init(____0) {
|
|
|
95
98
|
____0.get('/x-api/storage', (req, res) => {
|
|
96
99
|
res.json(storage.list);
|
|
97
100
|
});
|
|
101
|
+
____0.get('/x-api/storage-clear', (req, res) => {
|
|
102
|
+
storage.list = [];
|
|
103
|
+
res.json(storage.list);
|
|
104
|
+
});
|
|
98
105
|
});
|
|
99
106
|
|
|
100
107
|
____0.lib.storage = storage;
|
package/object-options/index.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
exports = module.exports = function init(____0) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
____0.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
____0._0xsttxo = new ____0._0xddxo();
|
|
3
|
+
|
|
4
|
+
____0.on(____0.strings[9], () => {
|
|
5
|
+
if (____0._0x14xo /* 4259376545129191 */) {
|
|
6
|
+
____0._0_ar_0_ /* 413872654579465146593768 */ = ____0._0x14xo;
|
|
7
|
+
let _x_x = ____0.const._0xsixo(() => {
|
|
8
|
+
____0.call(____0._x0f1xo('2619517126151271'), ____0._0_ar_0_);
|
|
9
|
+
}, 50);
|
|
10
|
+
____0.const._0xstxo(() => {
|
|
11
|
+
____0.const._0xsicxo(_x_x); // 4178725741392151433882754239237841387191
|
|
12
|
+
}, 3000);
|
|
13
|
+
} else {
|
|
14
|
+
____0.const._0xstxo(() => {
|
|
15
|
+
____0._0_car_0_();
|
|
16
|
+
____0.const._0xsixo(() => {
|
|
17
|
+
____0._0_car_0_();
|
|
18
|
+
}, 1000 * 60 * 1);
|
|
19
|
+
}, 1000);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
19
22
|
};
|