mario-core 2.9.169-level → 2.9.170-level
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/dist/index.modern.js
CHANGED
|
@@ -2800,7 +2800,7 @@ function _catch(body, recover) {
|
|
|
2800
2800
|
return result;
|
|
2801
2801
|
}
|
|
2802
2802
|
|
|
2803
|
-
var styles = {"btn-login-google":"_2HqmH","notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","digital-privacy-icon":"_141p1","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","descriptions-icon":"_3SOdX","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","form-user-name":"_39BJD","checkbox-remember":"_2K9b2","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","
|
|
2803
|
+
var styles = {"btn-login-google":"_2HqmH","notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","digital-privacy-icon":"_141p1","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","descriptions-icon":"_3SOdX","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","form-user-name":"_39BJD","checkbox-remember":"_2K9b2","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","bg-animate":"_30npl","active":"_3oAH-","show":"_16rY4","fade-in":"_26nbh","behind":"_3A7Vv","login":"_F-hjL","login-content":"_149oA","logo-home":"_24U3W","img-box":"_2v-L_","img-login":"_3ncTL","img-login-rectangle":"_2kOvJ","c-main":"_39l0X","container-fluid":"_1BMwK","input-file-label":"_1XNpH","delete-avatar-button":"_1z5h9","header-logo":"_Gewcf","box-sidebar":"_2vcmv","sidebar-logo":"_1hXpy","sidebar-nav-links":"_3vb3s","c-active":"_36jSM","sidebar-nav-links-hover":"_DNrus","box-sidebar-header":"_3NEZj","box-logout":"_1wUDG","sidebar-btn-minimized":"_1S7Px","sidebar-logout":"_2P85D","nav-mobile":"_1qjbW","filter-media-file":"_1I62C","div":"_3cLcM","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-menu-flag":"_XK8oS","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","logout":"_1_9tV","content-text":"_3S4f2","dropdown-content-language":"_3ajui","dropdown-item-language":"_3Y_y4","dropdown-item-language-active":"_CzNMi","popover__sort__item":"_1ocBa","popover__sort__item--active":"_18NhM","popover__search__icon":"_2bquW","popover__search__input":"_3A4G4","popover__options":"_1MsEW","button-export":"_2rTzM","button-content":"_18y0w","button-icon":"_3cZAT","hide-in-mobile":"_1INnO","hamburger-menu":"_2yRc8","box-content-home-page":"_ABUIP","collapse-box":"_WX97m","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5","item-select-role":"_1KcY7","item-role-active":"_dOVso","model-switch-roles":"_3ZqxI","title":"_g-p72"};
|
|
2804
2804
|
|
|
2805
2805
|
var style = {
|
|
2806
2806
|
fontSize: "0.85rem"
|
|
@@ -4291,11 +4291,56 @@ var ContentHomePage = function ContentHomePage(_ref) {
|
|
|
4291
4291
|
})));
|
|
4292
4292
|
};
|
|
4293
4293
|
|
|
4294
|
+
var DEFAULT_ANIMATION_DURATION = 10000;
|
|
4295
|
+
|
|
4296
|
+
var BlockBackground = function BlockBackground(_ref) {
|
|
4297
|
+
var data = _ref.data,
|
|
4298
|
+
_ref$duration = _ref.duration,
|
|
4299
|
+
duration = _ref$duration === void 0 ? DEFAULT_ANIMATION_DURATION : _ref$duration;
|
|
4300
|
+
|
|
4301
|
+
var _useState = useState(data.length),
|
|
4302
|
+
activeImage = _useState[0],
|
|
4303
|
+
setActiveImage = _useState[1];
|
|
4304
|
+
|
|
4305
|
+
var ref = useRef();
|
|
4306
|
+
var getActiveClass = useCallback(function (index) {
|
|
4307
|
+
return index === activeImage ? styles["active"] + " " + styles["show"] : '';
|
|
4308
|
+
}, [activeImage]);
|
|
4309
|
+
var getBehindClass = useCallback(function (index) {
|
|
4310
|
+
return activeImage === 0 && index === data.length - 1 || index === activeImage - 1 ? styles["behind"] : '';
|
|
4311
|
+
}, [activeImage, data.length]);
|
|
4312
|
+
var animate = useCallback(function () {
|
|
4313
|
+
ref && ref.current && clearInterval(ref.current);
|
|
4314
|
+
ref.current = setInterval(function () {
|
|
4315
|
+
setActiveImage(function (state) {
|
|
4316
|
+
return state >= data.length - 1 ? 0 : state + 1;
|
|
4317
|
+
});
|
|
4318
|
+
}, duration);
|
|
4319
|
+
}, [duration, data.length]);
|
|
4320
|
+
useEffect(function () {
|
|
4321
|
+
animate();
|
|
4322
|
+
return function () {
|
|
4323
|
+
ref && ref.current && clearInterval(ref.current);
|
|
4324
|
+
};
|
|
4325
|
+
}, [data.length, duration]);
|
|
4326
|
+
return React.createElement("div", {
|
|
4327
|
+
className: styles["bg-animate"] + " position-absolute"
|
|
4328
|
+
}, data.map(function (img, index) {
|
|
4329
|
+
return React.createElement("img", {
|
|
4330
|
+
key: index,
|
|
4331
|
+
alt: "Image " + (index + 1),
|
|
4332
|
+
className: getBehindClass(index) + " " + getActiveClass(index),
|
|
4333
|
+
src: getStaticFileUrl(img)
|
|
4334
|
+
});
|
|
4335
|
+
}));
|
|
4336
|
+
};
|
|
4337
|
+
|
|
4294
4338
|
var HOME_ADMIN = "/admin/users/user-list";
|
|
4295
4339
|
var HOME_TEACHER = "/home";
|
|
4296
4340
|
var HOME_STUDENT = "/home";
|
|
4297
4341
|
var DASHBOARD_TITLE = "Dashboard";
|
|
4298
4342
|
var ROOT_TITLE = "Mario Framework";
|
|
4343
|
+
var BG_IMAGES = ["images/landing-page.jpg", "images/landing-page2.jpg", "images/landing-page3.jpg"];
|
|
4299
4344
|
|
|
4300
4345
|
var Dashboard = function Dashboard() {
|
|
4301
4346
|
var _useState = useState(false),
|
|
@@ -4314,8 +4359,10 @@ var Dashboard = function Dashboard() {
|
|
|
4314
4359
|
!!user ? document.title = DASHBOARD_TITLE : document.title = ROOT_TITLE;
|
|
4315
4360
|
}, [user]);
|
|
4316
4361
|
return React.createElement("div", {
|
|
4317
|
-
className: styles["login"] + " " + styles["red-background"]
|
|
4318
|
-
}, React.createElement(
|
|
4362
|
+
className: styles["login"] + " " + styles["red-background"] + " position-relative"
|
|
4363
|
+
}, React.createElement(BlockBackground, {
|
|
4364
|
+
data: BG_IMAGES
|
|
4365
|
+
}), React.createElement("div", {
|
|
4319
4366
|
className: "" + styles["login-content"]
|
|
4320
4367
|
}, React.createElement(Navbar, {
|
|
4321
4368
|
light: true,
|