isite 2022.8.4 → 2022.8.7

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 (50) hide show
  1. package/README.md +7 -7
  2. package/apps/client-side/app.js +8 -3
  3. package/apps/client-side/site_files/css/bootstrap5-addon.css +55 -7
  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 +3 -0
  7. package/apps/client-side/site_files/css/effect.css +136 -77
  8. package/apps/client-side/site_files/css/images.css +0 -3
  9. package/apps/client-side/site_files/css/layout.css +45 -51
  10. package/apps/client-side/site_files/css/modal.css +5 -6
  11. package/apps/client-side/site_files/css/normalize.css +146 -0
  12. package/apps/client-side/site_files/css/scrollbar.css +5 -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 +21 -16
  19. package/apps/client-side/site_files/html/directive/i-datetime.html +32 -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/{sub/i-list2.content.html → directive/i-list.html} +2 -2
  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/js/bootstrap-5-addon.js +1 -0
  31. package/apps/client-side/site_files/js/bootstrap-5-directive.js +171 -862
  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 +26 -3
  36. package/apps/client-side/site_files/js/site.min.js +1 -1
  37. package/apps/security/site_files/html/login_modal.html +18 -26
  38. package/index.js +277 -278
  39. package/lib/email.js +108 -0
  40. package/lib/integrated.js +10 -26
  41. package/lib/parser.js +538 -514
  42. package/lib/routing.js +21 -15
  43. package/lib/security.js +1109 -1081
  44. package/lib/sessions.js +182 -247
  45. package/object-options/index.js +24 -4
  46. package/object-options/lib/fn.js +9 -3
  47. package/package.json +5 -3
  48. package/pull.bat +3 -0
  49. package/push.bat +2 -5
  50. package/apps/client-side/site_files/html/sub/i-list.content.html +0 -31
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
  }