mario-core 2.9.164-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 +10 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3657,9 +3657,14 @@ var BlockSelectTeacher = function BlockSelectTeacher(_ref) {
|
|
|
3657
3657
|
var BlockSelectTeacher$1 = React.forwardRef(BlockSelectTeacher);
|
|
3658
3658
|
|
|
3659
3659
|
var getStaticFileUrl = function getStaticFileUrl(url) {
|
|
3660
|
+
console.log({
|
|
3661
|
+
url: url
|
|
3662
|
+
});
|
|
3663
|
+
var STAGE_DOMAIN = "https://localhost:5001";
|
|
3664
|
+
var isStage = STAGE_DOMAIN === location.origin;
|
|
3660
3665
|
if (!url) return "";
|
|
3661
|
-
if (url.startsWith("http")) return url;
|
|
3662
|
-
if (url.startsWith("/")) return "" + MARIO_SUCCESS_BASE_URL + url;else return MARIO_SUCCESS_BASE_URL + "/" + url;
|
|
3666
|
+
if (isLocalhost && !isStage || url.startsWith("http")) return url;
|
|
3667
|
+
if (url.startsWith("/")) return "" + (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + url;else return (isStage ? STAGE_DOMAIN : MARIO_SUCCESS_BASE_URL) + "/" + url;
|
|
3663
3668
|
};
|
|
3664
3669
|
|
|
3665
3670
|
var schema = yup.object({
|
|
@@ -4073,7 +4078,7 @@ var BlockForgetPassword = function BlockForgetPassword() {
|
|
|
4073
4078
|
md: 4,
|
|
4074
4079
|
className: "" + styles["img-box"]
|
|
4075
4080
|
}, React__default.createElement("img", {
|
|
4076
|
-
src: "/images/img-login.jpg",
|
|
4081
|
+
src: getStaticFileUrl("/images/img-login.jpg"),
|
|
4077
4082
|
className: "" + styles["img-login"]
|
|
4078
4083
|
})));
|
|
4079
4084
|
});
|
|
@@ -4185,7 +4190,7 @@ var BlockResetPassword = function BlockResetPassword() {
|
|
|
4185
4190
|
md: 4,
|
|
4186
4191
|
className: "" + styles["img-box"]
|
|
4187
4192
|
}, React__default.createElement("img", {
|
|
4188
|
-
src: "/images/img-login.jpg",
|
|
4193
|
+
src: getStaticFileUrl("/images/img-login.jpg"),
|
|
4189
4194
|
className: "" + styles["img-login"]
|
|
4190
4195
|
})));
|
|
4191
4196
|
});
|
|
@@ -4252,7 +4257,7 @@ var IconContent = function IconContent(_ref) {
|
|
|
4252
4257
|
}, React__default.createElement("div", {
|
|
4253
4258
|
className: "" + styles["title-icon"]
|
|
4254
4259
|
}, React__default.createElement("img", {
|
|
4255
|
-
src: srcIcon,
|
|
4260
|
+
src: getStaticFileUrl(srcIcon),
|
|
4256
4261
|
alt: "icon"
|
|
4257
4262
|
})), React__default.createElement("div", {
|
|
4258
4263
|
className: "" + styles["descriptions-icon"],
|