mario-teacher-student-client 3.0.3-admin → 3.0.6-admin
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/ActionPoint/components/DashBoardView/hooks/useActionPointsDB.d.ts +1 -0
- package/dist/containers/ActionPoint/constants/function.d.ts +2 -0
- package/dist/containers/ActionPoint/constants/types.d.ts +11 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/ApiClient/{Conference.d.ts → conference.d.ts} +0 -0
- package/dist/index.css +3 -3
- package/dist/index.js +64 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +64 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/Button/SwitchComponent.d.ts +0 -9
- package/dist/components/Tabs/CustomTabNote.d.ts +0 -3
- package/dist/containers/ConductSurvey/components/ConductTop/ConductTop.d.ts +0 -17
- package/dist/containers/ConductSurvey/hooks/useConductOne.d.ts +0 -21
- package/dist/containers/ConductSurvey/hooks/useCountDown.d.ts +0 -8
- package/dist/containers/ConductSurvey/hooks/useIsMounted.d.ts +0 -2
- package/dist/containers/ConductSurvey/views/SessionResultComponent.d.ts +0 -3
- package/dist/containers/ExternalSurvey/components/IBLearnerComponent.d.ts +0 -12
- package/dist/containers/ExternalSurvey/hooks/useConductSurvey.d.ts +0 -21
- package/dist/containers/GoalPage/apiClient/apiGoals.d.ts +0 -6
- package/dist/containers/GoalPage/components/CardGoalItem.d.ts +0 -3
- package/dist/containers/GoalPage/components/CardItem/CardGoalItem.d.ts +0 -4
- package/dist/containers/GoalPage/components/CardItem/StatusTargetComponent.d.ts +0 -4
- package/dist/containers/GoalPage/components/CardItem/TargetItem.d.ts +0 -4
- package/dist/containers/GoalPage/components/CreateGoalModel.d.ts +0 -4
- package/dist/containers/GoalPage/components/CustomInputDatePicker.d.ts +0 -4
- package/dist/containers/GoalPage/components/FilterGoalPage.d.ts +0 -3
- package/dist/containers/GoalPage/components/Steps/BaseLine.d.ts +0 -4
- package/dist/containers/GoalPage/components/Steps/ChooseArea.d.ts +0 -4
- package/dist/containers/GoalPage/components/Steps/DetailFormCreate.d.ts +0 -4
- package/dist/containers/GoalPage/components/Steps/ModelPickTarget.d.ts +0 -4
- package/dist/containers/GoalPage/components/Steps/ModelSelectCategory.d.ts +0 -4
- package/dist/containers/GoalPage/constants/constants.d.ts +0 -205
- package/dist/containers/GoalPage/hook/useGoals.d.ts +0 -19
- package/dist/containers/GoalPage/services/goalService.d.ts +0 -3
- package/dist/containers/GoalPage/styles/makeStyles.d.ts +0 -1
- package/dist/containers/GoalPage/types/types.d.ts +0 -71
- package/dist/containers/GoalPage/views/MyGoals.d.ts +0 -3
- package/dist/containers/Home/components/mutipleSelectBox/mutipleSelectBox.d.ts +0 -8
- package/dist/containers/LearningStrategies/hook/useEditaLearningStrategies.d.ts +0 -5
- package/dist/containers/MyConferences/components/Tabs/CustomTabNote.d.ts +0 -3
- package/dist/containers/MyConferences/components/dialog/DialogNodes.d.ts +0 -3
- package/dist/containers/MyOneToOne/components/dialog/DialogNodes.d.ts +0 -3
- package/dist/containers/MyStudent/components/ClassReflectionTable.d.ts +0 -3
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useChartConference.d.ts +0 -19
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/services/ConferenceChart.d.ts +0 -1
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/view/ConferenceChart.d.ts +0 -6
- package/dist/containers/MyStudent/hooks/useOverviewToPDF.d.ts +0 -7
- package/dist/containers/MySurvey/styles/makeStyles.d.ts +0 -2
- package/dist/containers/MySurvey/views/MySurvey.d.ts +0 -3
- package/dist/containers/ScaffoldingExample/components/OneToOne.d.ts +0 -3
- package/dist/containers/ScaffoldingExample/components/PicChat.d.ts +0 -2
- package/dist/containers/ScaffoldingExample/components/RightPicChatScreenFour.d.ts +0 -8
- package/dist/containers/ScaffoldingExample/components/RightPicChatScreenOne.d.ts +0 -8
- package/dist/containers/ScaffoldingExample/components/RightPicChatScreenThree.d.ts +0 -8
- package/dist/containers/ScaffoldingExample/components/RightPicChatScreenTwo.d.ts +0 -8
- package/dist/containers/ScaffoldingExample/components/ScaffoldingFloatTab/MineNotes/views/ScaffoldingNote.d.ts +0 -10
- package/dist/containers/ScaffoldingExample/components/ScreenTab.d.ts +0 -3
- package/dist/containers/ScaffoldingExample/components/SliderRange.d.ts +0 -2
- package/dist/containers/ScaffoldingExample/components/TeacherView/PrivateNotes/view/PrivateNote.d.ts +0 -3
- package/dist/containers/ScaffoldingExample/components/TeacherView/StudentNotes/view/StudentNote.d.ts +0 -3
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/hooks/useTeacherNotes.d.ts +0 -23
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/services/index.d.ts +0 -12
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingFirstScreen.d.ts +0 -12
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingQuestionAndAnswer.d.ts +0 -12
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/ScaffoldingSecondScreen.d.ts +0 -3
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherNotes/views/TeacherScreen.d.ts +0 -7
- package/dist/containers/ScaffoldingExample/components/TeacherView/TeacherTab.d.ts +0 -8
- package/dist/containers/SettingPageV1/contants/contants.d.ts +0 -19
- package/dist/containers/SettingPageV1/contants/type.d.ts +0 -17
- package/dist/containers/StageDebug/hooks/useStageDebug.d.ts +0 -4
- package/dist/containers/StageDebug/views/StageDebugPage.d.ts +0 -3
- package/dist/containers/Surveys/apiClient/survey.d.ts +0 -2
- package/dist/containers/Surveys/components/ChartOverview/BarChart.d.ts +0 -9
- package/dist/containers/Surveys/components/SurveyDetail.d.ts +0 -3
- package/dist/containers/Surveys/components/SurveyStudentCompleted.d.ts +0 -3
- package/dist/containers/Surveys/components/SurveyStudentMissed.d.ts +0 -3
- package/dist/containers/Surveys/components/SurveyStudentPending.d.ts +0 -3
- package/dist/containers/Surveys/hook/useActionNeededSurvey.d.ts +0 -9
- package/dist/containers/Surveys/hook/useAllSurvey.d.ts +0 -10
- package/dist/containers/Surveys/hook/usePendingSurvey.d.ts +0 -10
- package/dist/containers/Surveys/hook/useRepliedSurvey.d.ts +0 -9
- package/dist/containers/Surveys/views/ViewSurveyStudent.d.ts +0 -3
- package/dist/hooks/useUploadFile.d.ts +0 -4
- package/dist/services/File.d.ts +0 -1
- package/dist/utils/function.d.ts +0 -1
|
@@ -21,3 +21,14 @@ export interface FORM_REQUEST {
|
|
|
21
21
|
notiDuration?: string;
|
|
22
22
|
isDone?: boolean;
|
|
23
23
|
}
|
|
24
|
+
export interface IActionPoint {
|
|
25
|
+
deadline: number;
|
|
26
|
+
deadlineDate: string;
|
|
27
|
+
id: number;
|
|
28
|
+
isDone: boolean;
|
|
29
|
+
notiCount: number;
|
|
30
|
+
notiDuration: string;
|
|
31
|
+
reflectionId: number;
|
|
32
|
+
title: string;
|
|
33
|
+
class: any;
|
|
34
|
+
}
|
|
File without changes
|
package/dist/index.css
CHANGED
|
@@ -15748,7 +15748,7 @@ h4._3lNz0 {
|
|
|
15748
15748
|
font-size: 35px; }
|
|
15749
15749
|
|
|
15750
15750
|
._vaSYb {
|
|
15751
|
-
color: #
|
|
15751
|
+
color: #C54140;
|
|
15752
15752
|
font-family: 'Montserrat-Bold' !important;
|
|
15753
15753
|
font-size: 90px;
|
|
15754
15754
|
margin-bottom: 18px; }
|
|
@@ -15770,14 +15770,14 @@ h4._3lNz0 {
|
|
|
15770
15770
|
font-family: 'Poppins-Regular' !important;
|
|
15771
15771
|
padding: 10px 60px;
|
|
15772
15772
|
color: white;
|
|
15773
|
-
background-color: #
|
|
15773
|
+
background-color: #C54140;
|
|
15774
15774
|
border-radius: 20px;
|
|
15775
15775
|
border: none;
|
|
15776
15776
|
box-shadow: #b96666 0px 5px 10px, #b96666 0px 3px 12px; }
|
|
15777
15777
|
|
|
15778
15778
|
._YOepY {
|
|
15779
15779
|
padding: 25px;
|
|
15780
|
-
background-color: #
|
|
15780
|
+
background-color: #336DDA; }
|
|
15781
15781
|
|
|
15782
15782
|
._1jZkl {
|
|
15783
15783
|
color: #8ab0ff; }
|
package/dist/index.js
CHANGED
|
@@ -3284,7 +3284,7 @@ var Card = function Card(props) {
|
|
|
3284
3284
|
handleGetNewActionPoint: handleGetNewActionPoint
|
|
3285
3285
|
}), React__default.createElement(core.Typography, {
|
|
3286
3286
|
className: "" + styles$1["date"]
|
|
3287
|
-
},
|
|
3287
|
+
}, date), !!actionPointsList && actionPointsList.map(function (i) {
|
|
3288
3288
|
return React__default.createElement("div", {
|
|
3289
3289
|
className: "" + styles$1["card-content"]
|
|
3290
3290
|
}, React__default.createElement("div", {
|
|
@@ -3305,7 +3305,7 @@ var Card = function Card(props) {
|
|
|
3305
3305
|
} : {
|
|
3306
3306
|
root: classes.title
|
|
3307
3307
|
}
|
|
3308
|
-
}, marioCore.utcToLocalTime(i.
|
|
3308
|
+
}, marioCore.utcToLocalTime(new Date(i.deadline).toString(), "hh:mm A")), !!i["class"] && React__default.createElement(core.Typography, {
|
|
3309
3309
|
className: "" + styles$1["class"],
|
|
3310
3310
|
classes: i.isDone ? {
|
|
3311
3311
|
root: classes.titleOverLine
|
|
@@ -3333,6 +3333,8 @@ var Card = function Card(props) {
|
|
|
3333
3333
|
};
|
|
3334
3334
|
|
|
3335
3335
|
var ActionPointsDashboard = function ActionPointsDashboard(_ref) {
|
|
3336
|
+
var _listData$actionPoint;
|
|
3337
|
+
|
|
3336
3338
|
var handleGetNewActionPoint = _ref.handleGetNewActionPoint,
|
|
3337
3339
|
listData = _ref.listData,
|
|
3338
3340
|
openDialog = _ref.openDialog,
|
|
@@ -3375,7 +3377,7 @@ var ActionPointsDashboard = function ActionPointsDashboard(_ref) {
|
|
|
3375
3377
|
className: "" + styles$1["body-header-link"]
|
|
3376
3378
|
}, t("see_all_action_points"))), React__default.createElement("div", {
|
|
3377
3379
|
className: "" + styles$1["body-content"]
|
|
3378
|
-
}, !!listData && (listData === null || listData === void 0 ? void 0 : listData.actionPointList.map(function (item) {
|
|
3380
|
+
}, !!listData && (listData === null || listData === void 0 ? void 0 : (_listData$actionPoint = listData.actionPointList) === null || _listData$actionPoint === void 0 ? void 0 : _listData$actionPoint.map(function (item) {
|
|
3379
3381
|
return React__default.createElement(Card, {
|
|
3380
3382
|
date: item.date,
|
|
3381
3383
|
actionPointsList: item.actionPoints,
|
|
@@ -3416,6 +3418,13 @@ var getDataActionPoint = function getDataActionPoint(dispatch, filter) {
|
|
|
3416
3418
|
}
|
|
3417
3419
|
};
|
|
3418
3420
|
|
|
3421
|
+
var groupBy = function groupBy(xs) {
|
|
3422
|
+
return xs.reduce(function (rv, x) {
|
|
3423
|
+
(rv[x.deadlineDate] = rv[x.deadlineDate] || []).push(x);
|
|
3424
|
+
return rv;
|
|
3425
|
+
}, {});
|
|
3426
|
+
};
|
|
3427
|
+
|
|
3419
3428
|
var defaultFontLarge$4 = 20;
|
|
3420
3429
|
var defaultFontSmall$4 = 12;
|
|
3421
3430
|
|
|
@@ -3467,7 +3476,21 @@ var useActionPointsDB = function useActionPointsDB() {
|
|
|
3467
3476
|
var getData = function getData() {
|
|
3468
3477
|
try {
|
|
3469
3478
|
return Promise.resolve(getDataActionPoint(dispatch, queryRequest)).then(function (data) {
|
|
3470
|
-
|
|
3479
|
+
var dataGroup = groupBy(data.map(function (r) {
|
|
3480
|
+
return _extends({}, r, {
|
|
3481
|
+
deadlineDate: marioCore.utcToLocalTime(r.deadlineDate, "Do MMMM yyyy")
|
|
3482
|
+
});
|
|
3483
|
+
}));
|
|
3484
|
+
var listKeyData = Object.keys(dataGroup);
|
|
3485
|
+
var result = {
|
|
3486
|
+
actionPointList: listKeyData.map(function (r) {
|
|
3487
|
+
return {
|
|
3488
|
+
date: r,
|
|
3489
|
+
actionPoints: dataGroup[r]
|
|
3490
|
+
};
|
|
3491
|
+
})
|
|
3492
|
+
};
|
|
3493
|
+
setListData(result);
|
|
3471
3494
|
});
|
|
3472
3495
|
} catch (e) {
|
|
3473
3496
|
return Promise.reject(e);
|
|
@@ -3483,7 +3506,8 @@ var useActionPointsDB = function useActionPointsDB() {
|
|
|
3483
3506
|
clickOpenModal: clickOpenModal,
|
|
3484
3507
|
onReloading: onReloading,
|
|
3485
3508
|
classFontSize: classFontSize,
|
|
3486
|
-
getData: getData
|
|
3509
|
+
getData: getData,
|
|
3510
|
+
setListData: setListData
|
|
3487
3511
|
};
|
|
3488
3512
|
};
|
|
3489
3513
|
|
|
@@ -56998,7 +57022,7 @@ var CardItem$1 = function CardItem(props) {
|
|
|
56998
57022
|
reloadRef: reloadRef
|
|
56999
57023
|
}), React__default.createElement(core.Typography, {
|
|
57000
57024
|
className: "" + styles$D["milestones"]
|
|
57001
|
-
},
|
|
57025
|
+
}, date), !!copyData && copyData.map(function (i) {
|
|
57002
57026
|
return React__default.createElement("div", {
|
|
57003
57027
|
className: "" + styles$D["card-content"]
|
|
57004
57028
|
}, React__default.createElement("div", {
|
|
@@ -57022,7 +57046,7 @@ var CardItem$1 = function CardItem(props) {
|
|
|
57022
57046
|
} : {
|
|
57023
57047
|
root: classes.title
|
|
57024
57048
|
}
|
|
57025
|
-
}, marioCore.utcToLocalTime(i.
|
|
57049
|
+
}, marioCore.utcToLocalTime(new Date(i.deadline).toString(), "hh:mm A")), !!i["class"] && React__default.createElement(core.Typography, {
|
|
57026
57050
|
className: "" + styles$D["grade"],
|
|
57027
57051
|
classes: i.isDone ? {
|
|
57028
57052
|
root: classes.titleOverLine
|
|
@@ -57036,7 +57060,7 @@ var CardItem$1 = function CardItem(props) {
|
|
|
57036
57060
|
classes: {
|
|
57037
57061
|
root: classes.title
|
|
57038
57062
|
}
|
|
57039
|
-
}, marioCore.utcToLocalTime(i.
|
|
57063
|
+
}, marioCore.utcToLocalTime(new Date(i.deadline).toString(), "hh:mm A")), !!i["class"] && React__default.createElement(core.Typography, {
|
|
57040
57064
|
className: "" + styles$D["grade"],
|
|
57041
57065
|
classes: {
|
|
57042
57066
|
root: classes.title
|
|
@@ -57275,7 +57299,21 @@ var useTodoList = function useTodoList() {
|
|
|
57275
57299
|
var getActionPointList = function getActionPointList() {
|
|
57276
57300
|
try {
|
|
57277
57301
|
return Promise.resolve(getDataActionPoints(dispatch, filters)).then(function (data) {
|
|
57278
|
-
|
|
57302
|
+
var dataGroup = groupBy(data.map(function (r) {
|
|
57303
|
+
return _extends({}, r, {
|
|
57304
|
+
deadlineDate: marioCore.utcToLocalTime(r.deadlineDate, "Do MMMM yyyy")
|
|
57305
|
+
});
|
|
57306
|
+
}));
|
|
57307
|
+
var listKeyData = Object.keys(dataGroup);
|
|
57308
|
+
var result = {
|
|
57309
|
+
actionPointList: listKeyData.map(function (r) {
|
|
57310
|
+
return {
|
|
57311
|
+
date: r,
|
|
57312
|
+
actionPoints: dataGroup[r]
|
|
57313
|
+
};
|
|
57314
|
+
})
|
|
57315
|
+
};
|
|
57316
|
+
setDataActionPoint(result);
|
|
57279
57317
|
});
|
|
57280
57318
|
} catch (e) {
|
|
57281
57319
|
return Promise.reject(e);
|
|
@@ -57574,7 +57612,21 @@ var useDoneList = function useDoneList() {
|
|
|
57574
57612
|
var getListActionPoint = function getListActionPoint() {
|
|
57575
57613
|
try {
|
|
57576
57614
|
return Promise.resolve(getDataDoneList(dispatch, filters)).then(function (data) {
|
|
57577
|
-
|
|
57615
|
+
var dataGroup = groupBy(data.map(function (r) {
|
|
57616
|
+
return _extends({}, r, {
|
|
57617
|
+
deadlineDate: marioCore.utcToLocalTime(r.deadlineDate, "Do MMMM yyyy")
|
|
57618
|
+
});
|
|
57619
|
+
}));
|
|
57620
|
+
var listKeyData = Object.keys(dataGroup);
|
|
57621
|
+
var result = {
|
|
57622
|
+
actionPointList: listKeyData.map(function (r) {
|
|
57623
|
+
return {
|
|
57624
|
+
date: r,
|
|
57625
|
+
actionPoints: dataGroup[r]
|
|
57626
|
+
};
|
|
57627
|
+
})
|
|
57628
|
+
};
|
|
57629
|
+
setDataDoneList(result);
|
|
57578
57630
|
});
|
|
57579
57631
|
} catch (e) {
|
|
57580
57632
|
return Promise.reject(e);
|
|
@@ -64465,7 +64517,7 @@ var ThankYouCard = function ThankYouCard() {
|
|
|
64465
64517
|
className: styles$M["box-image"]
|
|
64466
64518
|
}, React__default.createElement("img", {
|
|
64467
64519
|
className: styles$M["logo-card"],
|
|
64468
|
-
src: "/images/
|
|
64520
|
+
src: "/images/main-logo-blue.png",
|
|
64469
64521
|
alt: ""
|
|
64470
64522
|
})), React__default.createElement("div", {
|
|
64471
64523
|
className: styles$M["content-card"]
|
|
@@ -69625,7 +69677,7 @@ var ThankYouError = function ThankYouError() {
|
|
|
69625
69677
|
className: styles$M["box-image"]
|
|
69626
69678
|
}, React__default.createElement("img", {
|
|
69627
69679
|
className: styles$M["logo-card"],
|
|
69628
|
-
src: "/images/
|
|
69680
|
+
src: "/images/main-logo-blue.png",
|
|
69629
69681
|
alt: ""
|
|
69630
69682
|
})), React__default.createElement("div", {
|
|
69631
69683
|
className: styles$M["content-card"]
|