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.
- package/README.md +7 -7
- package/apps/client-side/app.js +255 -182
- package/apps/client-side/site_files/css/bootstrap5-addon.css +87 -4
- package/apps/client-side/site_files/css/bootstrap5.css +1 -1
- package/apps/client-side/site_files/css/bootstrap5.css.map +1 -0
- package/apps/client-side/site_files/css/dropdown.css +22 -4
- package/apps/client-side/site_files/css/effect.css +342 -283
- package/apps/client-side/site_files/css/images.css +10 -7
- package/apps/client-side/site_files/css/layout.css +37 -44
- package/apps/client-side/site_files/css/modal.css +1 -1
- package/apps/client-side/site_files/css/normalize.css +146 -0
- package/apps/client-side/site_files/css/scrollbar.css +9 -5
- package/apps/client-side/site_files/css/table.css +3 -3
- package/apps/client-side/site_files/html/directive/i-button.html +5 -0
- package/apps/client-side/site_files/html/directive/i-checkbox.html +4 -0
- package/apps/client-side/site_files/html/directive/i-checklist.html +6 -0
- package/apps/client-side/site_files/html/directive/i-control.html +5 -0
- package/apps/client-side/site_files/html/directive/i-date.html +24 -0
- package/apps/client-side/site_files/html/directive/i-datetime.html +31 -0
- package/apps/client-side/site_files/html/{sub/i-file.content.html → directive/i-file.html} +3 -5
- package/apps/client-side/site_files/html/directive/i-image.html +7 -0
- package/apps/client-side/site_files/html/directive/i-list.html +20 -0
- package/apps/client-side/site_files/html/directive/i-radio.html +4 -0
- package/apps/client-side/site_files/html/directive/i-textarea.html +4 -0
- package/apps/client-side/site_files/html/directive/i-treenode.html +20 -0
- package/apps/client-side/site_files/html/directive/i-treeview.html +13 -0
- package/apps/client-side/site_files/html/directive/i-upload.html +5 -0
- package/apps/client-side/site_files/html/directive-core/i-date.html +64 -0
- package/apps/client-side/site_files/html/directive-core/i-list.html +22 -0
- package/apps/client-side/site_files/images/no.jpg +0 -0
- package/apps/client-side/site_files/js/bootstrap-5-directive.js +278 -998
- package/apps/client-side/site_files/js/bootstrap.js.map +1 -0
- package/apps/client-side/site_files/js/directive.js +1865 -2044
- package/apps/client-side/site_files/js/directive.min.js +2 -2
- package/apps/client-side/site_files/js/site.js +19 -3
- package/apps/security/site_files/html/login_modal.html +18 -26
- package/index.js +277 -278
- package/isite_files/images/no.jpg +0 -0
- package/lib/cookie.js +3 -5
- package/lib/email.js +108 -0
- package/lib/integrated.js +10 -26
- package/lib/parser.js +519 -509
- package/lib/routing.js +23 -15
- package/lib/security.js +1109 -1081
- package/lib/sessions.js +182 -247
- package/object-options/index.js +24 -4
- package/object-options/lib/fn.js +6 -3
- package/package.json +5 -3
- package/pull.bat +3 -0
- package/push.bat +2 -5
- package/apps/client-side/site_files/html/sub/i-date2.content.html +0 -64
- package/apps/client-side/site_files/html/sub/i-list.content.html +0 -31
- 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.
|
|
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.
|
|
385
|
-
route.require.features = route.require.features ?? ____0.options.
|
|
386
|
-
route.require.permissions = route.require.permissions ?? ____0.options.
|
|
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
|
-
|
|
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
|
-
|
|
607
|
-
____0.
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
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') {
|