mario-core 2.6.6 → 2.7.0
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/containers/User/hooks/useUserDetail.d.ts +1 -1
- package/dist/containers/User/hooks/useUserList.d.ts +1 -0
- package/dist/index.css +1 -5
- package/dist/index.js +49 -19
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +49 -19
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ declare type UserDetail = {
|
|
|
11
11
|
};
|
|
12
12
|
declare const useUserDetail: (id?: string | undefined) => {
|
|
13
13
|
userDetail: UserDetail;
|
|
14
|
-
backToList: () => void;
|
|
14
|
+
backToList: (user?: string | undefined) => void;
|
|
15
15
|
confirmData: (data: any) => Promise<void>;
|
|
16
16
|
file: any;
|
|
17
17
|
setFile: import("react").Dispatch<any>;
|
package/dist/index.css
CHANGED
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
width: 70%; }
|
|
213
213
|
|
|
214
214
|
._wWIyO {
|
|
215
|
-
padding:
|
|
215
|
+
padding: 60px 50px;
|
|
216
216
|
position: relative; }
|
|
217
217
|
._wWIyO label:not(._11FZt) {
|
|
218
218
|
color: #8f9bb3;
|
|
@@ -490,10 +490,6 @@
|
|
|
490
490
|
._1INnO {
|
|
491
491
|
display: none; } }
|
|
492
492
|
|
|
493
|
-
@media (min-width: 992px) {
|
|
494
|
-
._2e7fZ {
|
|
495
|
-
width: 80%; } }
|
|
496
|
-
|
|
497
493
|
@media (min-width: 992px) and (max-width: 1199px) {
|
|
498
494
|
._2LIqK {
|
|
499
495
|
display: none; } }
|
package/dist/index.js
CHANGED
|
@@ -46,7 +46,7 @@ function _catch(body, recover) {
|
|
|
46
46
|
return result;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
var styles = {"notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","descriptions-icon":"_3SOdX","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","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","red-background":"_jOY7o","login":"_F-hjL","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","sidebar-logo":"_1hXpy","nav-mobile":"_1qjbW","filter-media-file":"_1I62C","div":"_3cLcM","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","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","hide-in-mobile":"_1INnO","
|
|
49
|
+
var styles = {"notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","descriptions-icon":"_3SOdX","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","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","red-background":"_jOY7o","login":"_F-hjL","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","sidebar-logo":"_1hXpy","nav-mobile":"_1qjbW","filter-media-file":"_1I62C","div":"_3cLcM","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","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","hide-in-mobile":"_1INnO","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5"};
|
|
50
50
|
|
|
51
51
|
var style = {
|
|
52
52
|
fontSize: "0.85rem"
|
|
@@ -536,16 +536,20 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
536
536
|
className: "" + styles["btn-login"],
|
|
537
537
|
type: "submit"
|
|
538
538
|
}, "LOGIN")), React__default.createElement("div", {
|
|
539
|
-
className: "d-flex justify-content-
|
|
539
|
+
className: "d-flex justify-content-between"
|
|
540
540
|
}, React__default.createElement(reactRouterDom.Link, {
|
|
541
541
|
to: "/forgot-password",
|
|
542
542
|
className: "" + styles["link-to-login"]
|
|
543
|
-
}, "Forgot password
|
|
543
|
+
}, "Forgot password?"), React__default.createElement("a", {
|
|
544
|
+
href: "https://marioframework.com/privacy-policy/",
|
|
545
|
+
target: "blank",
|
|
546
|
+
className: "" + styles["link-to-login"]
|
|
547
|
+
}, "Privacy Policy"))))), React__default.createElement(reactstrap.Col, {
|
|
544
548
|
lg: 4,
|
|
545
549
|
md: 4,
|
|
546
550
|
className: "" + styles["img-box"]
|
|
547
551
|
}, React__default.createElement("img", {
|
|
548
|
-
src: "/images/img-login.
|
|
552
|
+
src: "/images/img-login.jpg",
|
|
549
553
|
className: "" + styles["img-login"]
|
|
550
554
|
})));
|
|
551
555
|
});
|
|
@@ -773,16 +777,20 @@ var BlockForgetPassword = function BlockForgetPassword() {
|
|
|
773
777
|
return handleSubmit();
|
|
774
778
|
}
|
|
775
779
|
}, "Continue")), React__default.createElement("p", {
|
|
776
|
-
className: "d-flex justify-content-
|
|
780
|
+
className: "d-flex justify-content-between"
|
|
777
781
|
}, React__default.createElement(reactRouterDom.Link, {
|
|
778
782
|
to: "/login",
|
|
779
783
|
className: "" + styles["link-to-login"]
|
|
780
|
-
}, "Return to login")
|
|
784
|
+
}, "Return to login"), React__default.createElement("a", {
|
|
785
|
+
href: "https://marioframework.com/privacy-policy/",
|
|
786
|
+
target: "blank",
|
|
787
|
+
className: "" + styles["link-to-login"]
|
|
788
|
+
}, "Privacy Policy"))))), React__default.createElement(reactstrap.Col, {
|
|
781
789
|
lg: 4,
|
|
782
790
|
md: 4,
|
|
783
791
|
className: "" + styles["img-box"]
|
|
784
792
|
}, React__default.createElement("img", {
|
|
785
|
-
src: "/images/img-login.
|
|
793
|
+
src: "/images/img-login.jpg",
|
|
786
794
|
className: "" + styles["img-login"]
|
|
787
795
|
})));
|
|
788
796
|
});
|
|
@@ -879,16 +887,20 @@ var BlockResetPassword = function BlockResetPassword() {
|
|
|
879
887
|
return handleSubmit();
|
|
880
888
|
}
|
|
881
889
|
}, "Confirm")), React__default.createElement("p", {
|
|
882
|
-
className: "d-flex justify-content-
|
|
890
|
+
className: "d-flex justify-content-between"
|
|
883
891
|
}, React__default.createElement(reactRouterDom.Link, {
|
|
884
892
|
to: "/login",
|
|
885
893
|
className: "" + styles["link-to-login"]
|
|
886
|
-
}, "Return to login")
|
|
894
|
+
}, "Return to login"), React__default.createElement("a", {
|
|
895
|
+
href: "https://marioframework.com/privacy-policy/",
|
|
896
|
+
target: "blank",
|
|
897
|
+
className: "" + styles["link-to-login"]
|
|
898
|
+
}, "Privacy Policy"))))), React__default.createElement(reactstrap.Col, {
|
|
887
899
|
lg: 4,
|
|
888
900
|
md: 4,
|
|
889
901
|
className: "" + styles["img-box"]
|
|
890
902
|
}, React__default.createElement("img", {
|
|
891
|
-
src: "/images/img-login.
|
|
903
|
+
src: "/images/img-login.jpg",
|
|
892
904
|
className: "" + styles["img-login"]
|
|
893
905
|
})));
|
|
894
906
|
});
|
|
@@ -1116,16 +1128,20 @@ var BlockTwoFactorLogin = function BlockTwoFactorLogin() {
|
|
|
1116
1128
|
return handleSubmit();
|
|
1117
1129
|
}
|
|
1118
1130
|
}, "Confirm")), React__default.createElement("p", {
|
|
1119
|
-
className: "d-flex justify-content-
|
|
1131
|
+
className: "d-flex justify-content-between"
|
|
1120
1132
|
}, React__default.createElement(reactRouterDom.Link, {
|
|
1121
1133
|
to: "/login",
|
|
1122
1134
|
className: "" + styles["link-to-login"]
|
|
1123
|
-
}, "Return to login")
|
|
1135
|
+
}, "Return to login"), React__default.createElement("a", {
|
|
1136
|
+
href: "https://marioframework.com/privacy-policy/",
|
|
1137
|
+
target: "blank",
|
|
1138
|
+
className: "" + styles["link-to-login"]
|
|
1139
|
+
}, "Privacy Policy"))))), React__default.createElement(reactstrap.Col, {
|
|
1124
1140
|
lg: 4,
|
|
1125
1141
|
md: 4,
|
|
1126
1142
|
className: "" + styles["img-box"]
|
|
1127
1143
|
}, React__default.createElement("img", {
|
|
1128
|
-
src: "/images/img-login.
|
|
1144
|
+
src: "/images/img-login.jpg",
|
|
1129
1145
|
className: "" + styles["img-login"]
|
|
1130
1146
|
})));
|
|
1131
1147
|
});
|
|
@@ -1213,7 +1229,7 @@ var data = {
|
|
|
1213
1229
|
content: "Understand yourself better through helpful feedback."
|
|
1214
1230
|
}, {
|
|
1215
1231
|
scrIcon: "/images/177_9_Brain.svg",
|
|
1216
|
-
content: "
|
|
1232
|
+
content: "Create, explore, and share exciting personalized learning journeys."
|
|
1217
1233
|
}, {
|
|
1218
1234
|
scrIcon: "/images/177_6_Goal.svg",
|
|
1219
1235
|
content: "Set, monitor, and achieve your goals."
|
|
@@ -4063,6 +4079,8 @@ var TITLE$8 = "User list";
|
|
|
4063
4079
|
|
|
4064
4080
|
var useUserList = function useUserList() {
|
|
4065
4081
|
var history = reactRouterDom.useHistory();
|
|
4082
|
+
var query = new URLSearchParams(location.search);
|
|
4083
|
+
var fullName = query.get("query");
|
|
4066
4084
|
var userList = reactRedux.useSelector(function (state) {
|
|
4067
4085
|
return state.users.userList;
|
|
4068
4086
|
});
|
|
@@ -4113,6 +4131,11 @@ var useUserList = function useUserList() {
|
|
|
4113
4131
|
React.useEffect(function () {
|
|
4114
4132
|
getData();
|
|
4115
4133
|
}, [filters]);
|
|
4134
|
+
React.useEffect(function () {
|
|
4135
|
+
changeFilters({
|
|
4136
|
+
searchString: fullName
|
|
4137
|
+
});
|
|
4138
|
+
}, [fullName]);
|
|
4116
4139
|
var removeData = React.useCallback(function (id) {
|
|
4117
4140
|
dispatch(setLoading(true));
|
|
4118
4141
|
|
|
@@ -4158,6 +4181,7 @@ var useUserList = function useUserList() {
|
|
|
4158
4181
|
userList: userList,
|
|
4159
4182
|
totalItems: totalItems,
|
|
4160
4183
|
filters: filters,
|
|
4184
|
+
fullName: fullName,
|
|
4161
4185
|
getData: getData,
|
|
4162
4186
|
removeData: removeData,
|
|
4163
4187
|
changeFilters: changeFilters,
|
|
@@ -4234,6 +4258,7 @@ var header$2 = "User";
|
|
|
4234
4258
|
|
|
4235
4259
|
var UserList = function UserList() {
|
|
4236
4260
|
var _useUserList = useUserList(),
|
|
4261
|
+
fullName = _useUserList.fullName,
|
|
4237
4262
|
userList = _useUserList.userList,
|
|
4238
4263
|
totalItems = _useUserList.totalItems,
|
|
4239
4264
|
filters = _useUserList.filters,
|
|
@@ -4254,7 +4279,7 @@ var UserList = function UserList() {
|
|
|
4254
4279
|
onClick: function onClick() {
|
|
4255
4280
|
return reDirectDetailPage();
|
|
4256
4281
|
},
|
|
4257
|
-
initValue:
|
|
4282
|
+
initValue: !!fullName ? fullName : '',
|
|
4258
4283
|
onSearch: function onSearch(searchString) {
|
|
4259
4284
|
return changeFilters({
|
|
4260
4285
|
searchString: searchString
|
|
@@ -4493,8 +4518,8 @@ var useUserDetail = function useUserDetail(id) {
|
|
|
4493
4518
|
return Promise.reject(e);
|
|
4494
4519
|
}
|
|
4495
4520
|
}, [id]);
|
|
4496
|
-
var backToList = React.useCallback(function () {
|
|
4497
|
-
history.push(USER_LIST_URL);
|
|
4521
|
+
var backToList = React.useCallback(function (user) {
|
|
4522
|
+
!!user ? history.push(USER_LIST_URL + ("?query=" + user)) : history.push(USER_LIST_URL);
|
|
4498
4523
|
}, []);
|
|
4499
4524
|
var confirmData = React.useCallback(function (data) {
|
|
4500
4525
|
try {
|
|
@@ -4508,12 +4533,17 @@ var useUserDetail = function useUserDetail(id) {
|
|
|
4508
4533
|
function _temp6() {
|
|
4509
4534
|
var next = !!id ? update$3 : create$3;
|
|
4510
4535
|
!id && delete data.id;
|
|
4511
|
-
return Promise.resolve(next(data)).then(function () {
|
|
4536
|
+
return Promise.resolve(next(data)).then(function (result) {
|
|
4537
|
+
if (!!result) {
|
|
4538
|
+
getById$3(result.data.id).then(function (e) {
|
|
4539
|
+
backToList(e.data.fullName);
|
|
4540
|
+
});
|
|
4541
|
+
}
|
|
4542
|
+
|
|
4512
4543
|
dispatch(setAlert({
|
|
4513
4544
|
type: "success",
|
|
4514
4545
|
message: (!!id ? "Update" : "Create") + " user successfully"
|
|
4515
4546
|
}));
|
|
4516
|
-
backToList();
|
|
4517
4547
|
});
|
|
4518
4548
|
}
|
|
4519
4549
|
|