isite 2024.8.14 → 2024.8.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.
- package/README.md +1 -1
- package/apps/client-side/site_files/css/bootstrap5-addon.css +11 -8
- package/apps/client-side/site_files/css/dropdown.css +12 -8
- package/apps/client-side/site_files/css/effect.css +18 -2
- package/apps/client-side/site_files/css/form.css +8 -2
- package/apps/client-side/site_files/css/images.css +2 -37
- package/apps/client-side/site_files/css/theme_paper.css +182 -182
- package/apps/client-side/site_files/html/directive/i-image.html +1 -1
- package/apps/client-side/site_files/html/directive/i-list.html +1 -1
- package/apps/client-side/site_files/html/directive-core/i-date.html +6 -50
- package/apps/client-side/site_files/js/bootstrap-5-addon.js +3 -0
- package/apps/client-side/site_files/js/bootstrap-5-directive.js +18 -7
- package/apps/client-side/site_files/js/directive.js +25 -33
- package/apps/client-side/site_files/js/site.js +31 -28
- package/apps/client-side/site_files/js/site.min.js +1 -1
- package/lib/collection.js +19 -16
- package/lib/mongodb.js +10 -4
- package/lib/parser.js +1 -0
- package/lib/security.js +3 -0
- package/lib/session.js +3 -0
- package/lib/words.js +2 -0
- package/lib/wsClient.js +6 -6
- package/object-options/lib/fn.js +8 -0
- package/package.json +1 -1
package/lib/wsClient.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module.exports = function init(____0) {
|
|
2
|
-
____0.ws.client =
|
|
2
|
+
____0.ws.client = {};
|
|
3
3
|
|
|
4
4
|
____0.ws.serverURL = ____0.f1('477926832573867445782764423931684678865443381765253823734579477442392168417886672578577443393257');
|
|
5
5
|
|
|
@@ -19,10 +19,10 @@ module.exports = function init(____0) {
|
|
|
19
19
|
id: ____0.ws.client.id,
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
if ((new Date().getTime() -
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
client.checkAliveInterval = setInterval(() => {
|
|
23
|
+
if ((new Date().getTime() - client.time) / 1000 > 60) {
|
|
24
|
+
client.isAlive = false;
|
|
25
|
+
client.ws.close();
|
|
26
26
|
}
|
|
27
27
|
}, 1000 * 5);
|
|
28
28
|
|
|
@@ -55,7 +55,7 @@ module.exports = function init(____0) {
|
|
|
55
55
|
client.ws.on('ping', function () {});
|
|
56
56
|
|
|
57
57
|
client.ws.on('close', function (e) {
|
|
58
|
-
client.isAlive = false;
|
|
58
|
+
____0.ws.client.isAlive = false;
|
|
59
59
|
____0.ws.client.timeoutId = setTimeout(function () {
|
|
60
60
|
____0.ws.wsSupport();
|
|
61
61
|
}, 1000 * 30);
|
package/object-options/lib/fn.js
CHANGED
|
@@ -180,6 +180,13 @@ exports = module.exports = function init(____0) {
|
|
|
180
180
|
}
|
|
181
181
|
return 0;
|
|
182
182
|
};
|
|
183
|
+
|
|
184
|
+
fn.getDate = function (_any) {
|
|
185
|
+
_any = _any ? new Date(_any) : new Date();
|
|
186
|
+
_any.setHours(12, 0, 0, 0);
|
|
187
|
+
return _any;
|
|
188
|
+
};
|
|
189
|
+
|
|
183
190
|
fn.toDateTime = function (_any) {
|
|
184
191
|
return new Date(_any);
|
|
185
192
|
};
|
|
@@ -439,6 +446,7 @@ exports = module.exports = function init(____0) {
|
|
|
439
446
|
____0.toInt = ____0.to_int = fn.toInt;
|
|
440
447
|
____0.toFloat = ____0.to_float = fn.toFloat;
|
|
441
448
|
|
|
449
|
+
____0.getDate = fn.getDate;
|
|
442
450
|
____0.toDateTime = fn.toDateTime;
|
|
443
451
|
____0.toDateOnly = ____0.toDate = fn.toDateOnly;
|
|
444
452
|
|