isite 2022.8.3 → 2022.8.6

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 (53) hide show
  1. package/README.md +7 -7
  2. package/apps/client-side/app.js +255 -182
  3. package/apps/client-side/site_files/css/bootstrap5-addon.css +87 -4
  4. package/apps/client-side/site_files/css/bootstrap5.css +1 -1
  5. package/apps/client-side/site_files/css/bootstrap5.css.map +1 -0
  6. package/apps/client-side/site_files/css/dropdown.css +22 -4
  7. package/apps/client-side/site_files/css/effect.css +342 -283
  8. package/apps/client-side/site_files/css/images.css +10 -7
  9. package/apps/client-side/site_files/css/layout.css +37 -44
  10. package/apps/client-side/site_files/css/modal.css +1 -1
  11. package/apps/client-side/site_files/css/normalize.css +146 -0
  12. package/apps/client-side/site_files/css/scrollbar.css +9 -5
  13. package/apps/client-side/site_files/css/table.css +3 -3
  14. package/apps/client-side/site_files/html/directive/i-button.html +5 -0
  15. package/apps/client-side/site_files/html/directive/i-checkbox.html +4 -0
  16. package/apps/client-side/site_files/html/directive/i-checklist.html +6 -0
  17. package/apps/client-side/site_files/html/directive/i-control.html +5 -0
  18. package/apps/client-side/site_files/html/directive/i-date.html +24 -0
  19. package/apps/client-side/site_files/html/directive/i-datetime.html +31 -0
  20. package/apps/client-side/site_files/html/{sub/i-file.content.html → directive/i-file.html} +3 -5
  21. package/apps/client-side/site_files/html/directive/i-image.html +7 -0
  22. package/apps/client-side/site_files/html/directive/i-list.html +20 -0
  23. package/apps/client-side/site_files/html/directive/i-radio.html +4 -0
  24. package/apps/client-side/site_files/html/directive/i-textarea.html +4 -0
  25. package/apps/client-side/site_files/html/directive/i-treenode.html +20 -0
  26. package/apps/client-side/site_files/html/directive/i-treeview.html +13 -0
  27. package/apps/client-side/site_files/html/directive/i-upload.html +5 -0
  28. package/apps/client-side/site_files/html/directive-core/i-date.html +64 -0
  29. package/apps/client-side/site_files/html/directive-core/i-list.html +22 -0
  30. package/apps/client-side/site_files/images/no.jpg +0 -0
  31. package/apps/client-side/site_files/js/bootstrap-5-directive.js +278 -998
  32. package/apps/client-side/site_files/js/bootstrap.js.map +1 -0
  33. package/apps/client-side/site_files/js/directive.js +1865 -2044
  34. package/apps/client-side/site_files/js/directive.min.js +2 -2
  35. package/apps/client-side/site_files/js/site.js +19 -3
  36. package/apps/security/site_files/html/login_modal.html +18 -26
  37. package/index.js +277 -278
  38. package/isite_files/images/no.jpg +0 -0
  39. package/lib/cookie.js +3 -5
  40. package/lib/email.js +108 -0
  41. package/lib/integrated.js +10 -26
  42. package/lib/parser.js +519 -509
  43. package/lib/routing.js +23 -15
  44. package/lib/security.js +1109 -1081
  45. package/lib/sessions.js +182 -247
  46. package/object-options/index.js +24 -4
  47. package/object-options/lib/fn.js +6 -3
  48. package/package.json +5 -3
  49. package/pull.bat +3 -0
  50. package/push.bat +2 -5
  51. package/apps/client-side/site_files/html/sub/i-date2.content.html +0 -64
  52. package/apps/client-side/site_files/html/sub/i-list.content.html +0 -31
  53. package/apps/client-side/site_files/html/sub/i-list2.content.html +0 -22
package/lib/routing.js CHANGED
@@ -354,7 +354,7 @@ module.exports = function init(____0) {
354
354
  permissions: [],
355
355
  };
356
356
  } else {
357
- route.require = ____0.options.requires;
357
+ route.require = ____0.options.require;
358
358
  route.default = ____0.options.defaults;
359
359
  }
360
360
  } else {
@@ -381,9 +381,9 @@ module.exports = function init(____0) {
381
381
  permissions: [],
382
382
  };
383
383
  } else {
384
- route.require = r.require ?? ____0.options.requires;
385
- route.require.features = route.require.features ?? ____0.options.requires.features;
386
- route.require.permissions = route.require.permissions ?? ____0.options.requires.permissions;
384
+ route.require = r.require ?? ____0.options.require;
385
+ route.require.features = route.require.features ?? ____0.options.require.features;
386
+ route.require.permissions = route.require.permissions ?? ____0.options.require.permissions;
387
387
 
388
388
  route.default = r.default ?? ____0.options.defaults;
389
389
  route.default.features = route.default.features ?? ____0.options.defaults.features;
@@ -595,24 +595,30 @@ module.exports = function init(____0) {
595
595
  }
596
596
  });
597
597
  if (!ok) {
598
- res.status(401);
598
+
599
599
  if (route.name.contains(____0.strings[16])) {
600
+ res.status(401);
600
601
  return res.json({
601
602
  done: !1,
602
603
  error: ____0.strings[14],
603
604
  permissions: route.require.permissions,
604
605
  });
605
606
  } else {
606
- return res.render(
607
- ____0.strings[12],
608
- {
609
- permissions: route.require.permissions.join(','),
610
- html: `${____0.strings[14]} : ${route.require.permissions.join(',')}`,
611
- },
612
- {
613
- parser: ____0.strings[17],
614
- }
615
- );
607
+ if (route.require.permissions.includes('login')) {
608
+ return res.redirect(____0.options.security.login_url);
609
+ } else {
610
+ res.status(401);
611
+ return res.render(
612
+ ____0.strings[12],
613
+ {
614
+ permissions: route.require.permissions.join(','),
615
+ html: `${____0.strings[14]} : ${route.require.permissions.join(',')}`,
616
+ },
617
+ {
618
+ parser: ____0.strings[17],
619
+ }
620
+ );
621
+ }
616
622
  }
617
623
  }
618
624
  }
@@ -1188,6 +1194,8 @@ module.exports = function init(____0) {
1188
1194
  ____0.server = null;
1189
1195
 
1190
1196
  _0xrrxo.start = function (_ports, callback) {
1197
+ ____0.startTime = Date.now();
1198
+
1191
1199
  const ports = [];
1192
1200
 
1193
1201
  if (_ports && ____0.typeof(_ports) !== 'Array') {