mario-education 2.4.162-level → 2.4.163-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/MarioFramework.Education/ClientApp/src/containers/FixData/hooks/useFixData.d.ts +4 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/FixData/views/FixDataStudent.d.ts +3 -0
- package/dist/MarioFramework.Education/ClientApp/src/index.d.ts +2 -1
- package/dist/MarioFramework.Education/ClientApp/src/services/fixDataUser.d.ts +1 -0
- package/dist/index.js +56 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +56 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -37,4 +37,5 @@ import LoadLanguage from "./components/Loading/LoadLanguage";
|
|
|
37
37
|
import AdminTraining from "./containers/AdminTraining/views/AdminTraining";
|
|
38
38
|
import SurveyDashboard from "./containers/SurveyDashboard/views/SurveyDashboard";
|
|
39
39
|
import RevertUser from "./containers/UserRevert/views/RevertUser";
|
|
40
|
-
|
|
40
|
+
import FixDataStudent from "./containers/FixData/views/FixDataStudent";
|
|
41
|
+
export { ClassList, ConferenceRubricList, ConferenceRubricDetail, SuggestionList, LearningStrategyList, SetupContainer, QuestionBankList, ReflectionFormList, ReflectionContainer, QuestionDetail, SubjectList, LearningSupportCategoryList, BadgeList, GoalExampleList, TutorialScreenContainer, FeedbackList, AssessmentList, QuestionBankContainer, SurveyQuestionContainer, QuestionCategoryList, AssignmentList, AssessmentAssignmentContainer, SessionTemplateContainer, SessionTemplateDetail, SessionTemplateGeneralClassDetail, CustomAlertList, CertificateContainer, CompareTeacher, AssetLog, SessionTemplateList, SessionTemplateGeneralClassList, Dashboard, LoadLanguage, AdminTraining, TemplateContainer, TemplateBuilderPage, TemplateStartBuild, SurveyDashboard, RevertUser, FixDataStudent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fixAllStudent: () => Promise<import("axios").AxiosResponse<any>>;
|
package/dist/index.js
CHANGED
|
@@ -35453,6 +35453,61 @@ var RevertUser = function RevertUser() {
|
|
|
35453
35453
|
}, "Merge Session, Conference"))));
|
|
35454
35454
|
};
|
|
35455
35455
|
|
|
35456
|
+
var USER_URL$5 = marioCore.BASE_URL + "/api/User";
|
|
35457
|
+
var fixAllStudent = function fixAllStudent() {
|
|
35458
|
+
return marioCore.api.put(USER_URL$5 + "/fix-all-teacher-student");
|
|
35459
|
+
};
|
|
35460
|
+
|
|
35461
|
+
var useFixData = function useFixData() {
|
|
35462
|
+
var dispatch = reactRedux.useDispatch();
|
|
35463
|
+
|
|
35464
|
+
var handelFixAllStudent = function handelFixAllStudent() {
|
|
35465
|
+
try {
|
|
35466
|
+
var _temp3 = function _temp3() {
|
|
35467
|
+
dispatch(marioCore.setLoading(false));
|
|
35468
|
+
};
|
|
35469
|
+
|
|
35470
|
+
dispatch(marioCore.setLoading(true));
|
|
35471
|
+
|
|
35472
|
+
var _temp4 = _catch(function () {
|
|
35473
|
+
return Promise.resolve(fixAllStudent()).then(function () {
|
|
35474
|
+
dispatch(marioCore.setAlert({
|
|
35475
|
+
type: "success",
|
|
35476
|
+
message: "Success"
|
|
35477
|
+
}));
|
|
35478
|
+
});
|
|
35479
|
+
}, function (err) {
|
|
35480
|
+
var _err$response, _err$response$data;
|
|
35481
|
+
|
|
35482
|
+
dispatch(marioCore.setAlert({
|
|
35483
|
+
type: "danger",
|
|
35484
|
+
message: ((_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.title) || err.message
|
|
35485
|
+
}));
|
|
35486
|
+
});
|
|
35487
|
+
|
|
35488
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
35489
|
+
} catch (e) {
|
|
35490
|
+
return Promise.reject(e);
|
|
35491
|
+
}
|
|
35492
|
+
};
|
|
35493
|
+
|
|
35494
|
+
return {
|
|
35495
|
+
handelFixAllStudent: handelFixAllStudent
|
|
35496
|
+
};
|
|
35497
|
+
};
|
|
35498
|
+
|
|
35499
|
+
var FixDataStudent = function FixDataStudent() {
|
|
35500
|
+
var _useFixData = useFixData(),
|
|
35501
|
+
handelFixAllStudent = _useFixData.handelFixAllStudent;
|
|
35502
|
+
|
|
35503
|
+
return React__default.createElement(reactstrap.Button, {
|
|
35504
|
+
className: "m-2",
|
|
35505
|
+
onClick: function onClick() {
|
|
35506
|
+
return handelFixAllStudent();
|
|
35507
|
+
}
|
|
35508
|
+
}, "Fix all student");
|
|
35509
|
+
};
|
|
35510
|
+
|
|
35456
35511
|
core.LicenseManager.setLicenseKey(marioCore.LICENSE_AGGRID);
|
|
35457
35512
|
|
|
35458
35513
|
exports.AdminTraining = AdminTraining;
|
|
@@ -35469,6 +35524,7 @@ exports.ConferenceRubricList = ConferenceRubricList;
|
|
|
35469
35524
|
exports.CustomAlertList = CustomAlertList;
|
|
35470
35525
|
exports.Dashboard = Dashboard;
|
|
35471
35526
|
exports.FeedbackList = FeedbackList;
|
|
35527
|
+
exports.FixDataStudent = FixDataStudent;
|
|
35472
35528
|
exports.GoalExampleList = GoalExampleList;
|
|
35473
35529
|
exports.LearningStrategyList = LearningStrategyList;
|
|
35474
35530
|
exports.LearningSupportCategoryList = LearningSupportCategoryList;
|