isite 2024.8.15 → 2024.8.17

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.
Files changed (31) hide show
  1. package/README.md +1 -1
  2. package/apps/client-side/site_files/css/bootstrap5-addon.css +21 -13
  3. package/apps/client-side/site_files/css/dropdown.css +12 -8
  4. package/apps/client-side/site_files/css/effect.css +32 -11
  5. package/apps/client-side/site_files/css/form.css +8 -2
  6. package/apps/client-side/site_files/css/images.css +3 -38
  7. package/apps/client-side/site_files/css/layout.css +7 -2
  8. package/apps/client-side/site_files/css/table.css +4 -2
  9. package/apps/client-side/site_files/css/theme_paper.css +182 -182
  10. package/apps/client-side/site_files/html/directive/i-image.html +1 -1
  11. package/apps/client-side/site_files/html/directive/i-list.html +1 -1
  12. package/apps/client-side/site_files/html/directive-core/i-date.html +6 -50
  13. package/apps/client-side/site_files/js/bootstrap-5-addon.js +3 -0
  14. package/apps/client-side/site_files/js/bootstrap-5-directive.js +18 -7
  15. package/apps/client-side/site_files/js/directive.js +25 -33
  16. package/apps/client-side/site_files/js/ref.js +12 -12
  17. package/apps/client-side/site_files/js/ref.min.js +1 -1
  18. package/apps/client-side/site_files/js/site.js +49 -47
  19. package/apps/client-side/site_files/js/site.min.js +1 -1
  20. package/apps/security/site_files/html/login_modal.html +1 -1
  21. package/apps/security/site_files/html/register_modal.html +1 -1
  22. package/isite_files/html/login.html +1 -1
  23. package/isite_files/html/navbar.html +61 -52
  24. package/lib/collection.js +19 -16
  25. package/lib/mongodb.js +10 -4
  26. package/lib/parser.js +1 -0
  27. package/lib/security.js +3 -0
  28. package/lib/session.js +3 -0
  29. package/lib/words.js +2 -0
  30. package/object-options/lib/fn.js +8 -0
  31. package/package.json +1 -1
package/lib/security.js CHANGED
@@ -95,6 +95,7 @@ module.exports = function init(____0) {
95
95
  security.roles = [];
96
96
  security.permissions = [];
97
97
  security.users = [];
98
+
98
99
  security.addKey = function (key) {
99
100
  security.users.push({
100
101
  id: key,
@@ -121,12 +122,14 @@ module.exports = function init(____0) {
121
122
  ],
122
123
  });
123
124
  };
125
+
124
126
  ____0.options.security.keys.forEach((key) => {
125
127
  if (!key) {
126
128
  return;
127
129
  }
128
130
  security.addKey(key);
129
131
  });
132
+
130
133
  ____0.options.security.users.forEach((user, i) => {
131
134
  if (!user.id) {
132
135
  user.id = security.users.length + 1;
package/lib/session.js CHANGED
@@ -1,5 +1,8 @@
1
1
  module.exports = function init(req, res, ____0, callback) {
2
2
  ____0.getSession({ accessToken: req.headers['Access-Token'] || req.headers['access-token'] || req.query['access-token'] || req.cookie('access_token') }, (session) => {
3
+ session.$save = function () {
4
+ ____0.saveSession(session);
5
+ };
3
6
  if (!session.accessToken) {
4
7
  session.accessToken = req.host + new Date().getTime().toString() + '_' + Math.random();
5
8
  session.accessToken = ____0.x0md50x(session.accessToken);
package/lib/words.js CHANGED
@@ -42,6 +42,7 @@ module.exports = function init(____0) {
42
42
  }
43
43
  return word;
44
44
  };
45
+
45
46
  app.set = function (word) {
46
47
  let index = app.list.findIndex((w) => w.name === word.name);
47
48
  if (index === -1) {
@@ -51,6 +52,7 @@ module.exports = function init(____0) {
51
52
  }
52
53
  return word;
53
54
  };
55
+
54
56
  app.addList = function (list) {
55
57
  if (Array.isArray(list)) {
56
58
  list.forEach((doc) => {
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2024.08.15",
3
+ "version": "2024.08.17",
4
4
  "description": "Create High Level Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {