mario-core 2.9.163-level → 2.9.165-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.js +19 -16
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -16
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -3654,6 +3654,17 @@ var BlockSelectTeacher = function BlockSelectTeacher(_ref) {
|
|
|
3654
3654
|
|
|
3655
3655
|
var BlockSelectTeacher$1 = forwardRef(BlockSelectTeacher);
|
|
3656
3656
|
|
|
3657
|
+
var getStaticFileUrl = function getStaticFileUrl(url) {
|
|
3658
|
+
console.log({
|
|
3659
|
+
url: url
|
|
3660
|
+
});
|
|
3661
|
+
var STAGE_DOMAIN = "https://localhost:5001";
|
|
3662
|
+
var isStage = STAGE_DOMAIN === location.origin;
|
|
3663
|
+
if (!url) return "";
|
|
3664
|
+
if (isLocalhost && !isStage || url.startsWith("http")) return url;
|
|
3665
|
+
if (url.startsWith("/")) return "" + (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + url;else return (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + "/" + url;
|
|
3666
|
+
};
|
|
3667
|
+
|
|
3657
3668
|
var schema = object({
|
|
3658
3669
|
email: string().email("Email is invalid").required("Email is required"),
|
|
3659
3670
|
password: string().required("Password is required"),
|
|
@@ -3761,7 +3772,7 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
3761
3772
|
}, React.createElement("div", {
|
|
3762
3773
|
className: "" + styles["block-form"]
|
|
3763
3774
|
}, React.createElement("img", {
|
|
3764
|
-
src: "/images/horizontal-logo-blue.svg",
|
|
3775
|
+
src: "" + getStaticFileUrl("/images/horizontal-logo-blue.svg"),
|
|
3765
3776
|
className: "" + styles["img-login-rectangle"]
|
|
3766
3777
|
}), React.createElement("p", {
|
|
3767
3778
|
className: "" + styles["title-login"]
|
|
@@ -3816,7 +3827,7 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
3816
3827
|
md: 4,
|
|
3817
3828
|
className: "" + styles["img-box"]
|
|
3818
3829
|
}, React.createElement("img", {
|
|
3819
|
-
src: "/images/img-login.jpg",
|
|
3830
|
+
src: "" + getStaticFileUrl("/images/img-login.jpg"),
|
|
3820
3831
|
className: "" + styles["img-login"]
|
|
3821
3832
|
})));
|
|
3822
3833
|
}), isLoginGoogle && React.createElement(BlockSelectTeacher$1, {
|
|
@@ -4065,7 +4076,7 @@ var BlockForgetPassword = function BlockForgetPassword() {
|
|
|
4065
4076
|
md: 4,
|
|
4066
4077
|
className: "" + styles["img-box"]
|
|
4067
4078
|
}, React.createElement("img", {
|
|
4068
|
-
src: "/images/img-login.jpg",
|
|
4079
|
+
src: getStaticFileUrl("/images/img-login.jpg"),
|
|
4069
4080
|
className: "" + styles["img-login"]
|
|
4070
4081
|
})));
|
|
4071
4082
|
});
|
|
@@ -4177,7 +4188,7 @@ var BlockResetPassword = function BlockResetPassword() {
|
|
|
4177
4188
|
md: 4,
|
|
4178
4189
|
className: "" + styles["img-box"]
|
|
4179
4190
|
}, React.createElement("img", {
|
|
4180
|
-
src: "/images/img-login.jpg",
|
|
4191
|
+
src: getStaticFileUrl("/images/img-login.jpg"),
|
|
4181
4192
|
className: "" + styles["img-login"]
|
|
4182
4193
|
})));
|
|
4183
4194
|
});
|
|
@@ -4244,7 +4255,7 @@ var IconContent = function IconContent(_ref) {
|
|
|
4244
4255
|
}, React.createElement("div", {
|
|
4245
4256
|
className: "" + styles["title-icon"]
|
|
4246
4257
|
}, React.createElement("img", {
|
|
4247
|
-
src: srcIcon,
|
|
4258
|
+
src: getStaticFileUrl(srcIcon),
|
|
4248
4259
|
alt: "icon"
|
|
4249
4260
|
})), React.createElement("div", {
|
|
4250
4261
|
className: "" + styles["descriptions-icon"],
|
|
@@ -4674,11 +4685,11 @@ var TheLanguageDropdown = function TheLanguageDropdown() {
|
|
|
4674
4685
|
var displayCurrentLang = {
|
|
4675
4686
|
uk: React.createElement(React.Fragment, null, React.createElement("img", {
|
|
4676
4687
|
className: "mr-2 " + styles['dropdown-menu-flag'],
|
|
4677
|
-
src: "/images/united-kingdom.png"
|
|
4688
|
+
src: "" + getStaticFileUrl("/images/united-kingdom.png")
|
|
4678
4689
|
}), " English, UK"),
|
|
4679
4690
|
us: React.createElement(React.Fragment, null, React.createElement("img", {
|
|
4680
4691
|
className: "mr-2 " + styles['dropdown-menu-flag'],
|
|
4681
|
-
src: "/images/usa.png"
|
|
4692
|
+
src: "" + getStaticFileUrl("/images/usa.png")
|
|
4682
4693
|
}), " English, US")
|
|
4683
4694
|
};
|
|
4684
4695
|
return React.createElement(Dropdown, {
|
|
@@ -4714,7 +4725,7 @@ var TheLanguageDropdown = function TheLanguageDropdown() {
|
|
|
4714
4725
|
style: {
|
|
4715
4726
|
width: "30px"
|
|
4716
4727
|
},
|
|
4717
|
-
src: "/images/usa.png"
|
|
4728
|
+
src: "" + getStaticFileUrl("/images/usa.png")
|
|
4718
4729
|
})), "United States"))));
|
|
4719
4730
|
};
|
|
4720
4731
|
|
|
@@ -12402,14 +12413,6 @@ var getTextFromHTML = function getTextFromHTML(htmlString) {
|
|
|
12402
12413
|
return text;
|
|
12403
12414
|
};
|
|
12404
12415
|
|
|
12405
|
-
var getStaticFileUrl = function getStaticFileUrl(url) {
|
|
12406
|
-
var STAGE_DOMAIN = "https://stage.marioforme.com";
|
|
12407
|
-
var isStage = STAGE_DOMAIN === location.origin;
|
|
12408
|
-
if (!url) return "";
|
|
12409
|
-
if (isLocalhost && !isStage || url.startsWith("http")) return url;
|
|
12410
|
-
if (url.startsWith("/")) return "" + (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + url;else return (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + "/" + url;
|
|
12411
|
-
};
|
|
12412
|
-
|
|
12413
12416
|
var generateRandomString = (function () {
|
|
12414
12417
|
return (Math.random() + 1).toString(36).substring(7);
|
|
12415
12418
|
});
|