touchstudy-core 0.1.86 → 0.1.88
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/components/CkEditor/CkEditor.d.ts +10 -0
- package/dist/components/CkEditor/config.d.ts +19 -0
- package/dist/components/ErrorHandler.d.ts +6 -0
- package/dist/components/LabelRequired.d.ts +8 -0
- package/dist/components/Selectors/ClassSelector.d.ts +10 -0
- package/dist/components/Selectors/StudentSelector.d.ts +10 -0
- package/dist/containers/Classes/apiClients/classService.d.ts +16 -0
- package/dist/containers/Classes/apiClients/teacherService.d.ts +2 -0
- package/dist/containers/Classes/components/ClassForm.d.ts +4 -0
- package/dist/containers/Classes/components/CorrectAnswerSelector.d.ts +7 -0
- package/dist/containers/Classes/components/LessonFormBody.d.ts +4 -0
- package/dist/containers/Classes/components/LessonFormDialog.d.ts +14 -0
- package/dist/containers/Classes/components/LessonList.d.ts +27 -0
- package/dist/containers/Classes/components/SelectDialog.d.ts +30 -0
- package/dist/containers/Classes/components/StudentList.d.ts +21 -0
- package/dist/containers/Classes/components/TeacherList.d.ts +21 -0
- package/dist/containers/Classes/components/TeacherSelector.d.ts +11 -0
- package/dist/containers/Classes/configs/constants.d.ts +70 -0
- package/dist/containers/Classes/configs/interfaces.d.ts +23 -0
- package/dist/containers/Classes/configs/types.d.ts +215 -0
- package/dist/containers/Classes/hooks/useClassDetail.d.ts +105 -0
- package/dist/containers/Classes/hooks/useClassList.d.ts +20 -0
- package/dist/containers/Classes/hooks/useLessonClassList.d.ts +20 -0
- package/dist/containers/Classes/hooks/useStudentClassList.d.ts +22 -0
- package/dist/containers/Classes/hooks/useTab.d.ts +5 -0
- package/dist/containers/Classes/hooks/useTeacherClassList.d.ts +22 -0
- package/dist/containers/Classes/hooks/useTeacherList.d.ts +6 -0
- package/dist/containers/Classes/views/ClassDetail.d.ts +10 -0
- package/dist/containers/Classes/views/ClassList.d.ts +10 -0
- package/dist/containers/Login/apiClient/index.d.ts +2 -5
- package/dist/containers/Login/hooks/useLogin.d.ts +2 -4
- package/dist/containers/Notifications/apiClients/notificationService.d.ts +6 -0
- package/dist/containers/Notifications/components/NotificationForm.d.ts +4 -0
- package/dist/containers/Notifications/components/SelectFilterType.d.ts +13 -0
- package/dist/containers/Notifications/components/TypeSelector.d.ts +13 -0
- package/dist/containers/Notifications/configs/constants.d.ts +14 -0
- package/dist/containers/Notifications/configs/interfaces.d.ts +10 -0
- package/dist/containers/Notifications/configs/types.d.ts +60 -0
- package/dist/containers/Notifications/hooks/useNotificationDetail.d.ts +23 -0
- package/dist/containers/Notifications/hooks/useNotificationList.d.ts +29 -0
- package/dist/containers/Notifications/views/NotificationDetail.d.ts +9 -0
- package/dist/containers/Notifications/views/NotificationList.d.ts +8 -0
- package/dist/containers/Users/apiClient/userService.d.ts +9 -0
- package/dist/containers/Users/components/Dialogs/DeleteUserCsvDialog.d.ts +10 -0
- package/dist/containers/Users/components/Dialogs/RecentUserActionDialog.d.ts +9 -0
- package/dist/containers/Users/components/Dialogs/UserDialog.d.ts +12 -0
- package/dist/containers/Users/configs/constants.d.ts +37 -0
- package/dist/containers/Users/configs/types.d.ts +11 -0
- package/dist/containers/Users/hooks/useExportUsersCsv.d.ts +5 -0
- package/dist/containers/Users/hooks/useRecentUserAction.d.ts +10 -0
- package/dist/containers/Users/hooks/useUserList.d.ts +40 -0
- package/dist/containers/Users/views/UserList.d.ts +7 -0
- package/dist/index.css +48 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +5133 -59
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5123 -56
- package/dist/index.modern.js.map +1 -1
- package/dist/services/classService.d.ts +4 -0
- package/dist/services/studentService.d.ts +1 -0
- package/dist/utils/enums/index.d.ts +2 -1
- package/dist/utils/enums/userSortColumn.d.ts +11 -0
- package/dist/utils/formatTime.d.ts +2 -0
- package/dist/utils/helpers.d.ts +3 -0
- package/dist/utils/hooks/useCountDownTimer.d.ts +0 -1
- package/dist/utils/toLocalTime.d.ts +1 -0
- package/dist/utils/types/index.d.ts +2 -1
- package/dist/utils/types/searchQuery.d.ts +7 -0
- package/dist/utils/types/users.d.ts +17 -0
- package/package.json +7 -3
@@ -0,0 +1,4 @@
|
|
1
|
+
export declare const getClassesApi: (textSearch: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
2
|
+
export declare const getClassesByTeacherIdApi: (teacherId: number, textSearch: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
3
|
+
export declare const getTeacherByClassApi: (classId: number, textSearch: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
4
|
+
export declare const getLessonApi: (classId: number) => Promise<import("axios").AxiosResponse<any, any>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const getStudentsApi: (textSearch: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ExamStatus } from "./examStatus";
|
2
2
|
import { OrderType } from "./order";
|
3
3
|
import { RecentUserAction } from "./recentUserAction";
|
4
|
-
|
4
|
+
import { UserSortColumn } from "./userSortColumn";
|
5
|
+
export { OrderType, ExamStatus, RecentUserAction, UserSortColumn };
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare enum UserSortColumn {
|
2
|
+
CreatedAt = "CreatedAt",
|
3
|
+
FullName = "FullName",
|
4
|
+
PhoneNumber = "PhoneNumber",
|
5
|
+
Email = "Email",
|
6
|
+
SchoolName = "SchoolName",
|
7
|
+
Major = "Major",
|
8
|
+
ParentName = "ParentName",
|
9
|
+
ParentPhoneNumber = "ParentPhoneNumber",
|
10
|
+
Grade = "Grade"
|
11
|
+
}
|
package/dist/utils/helpers.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Category, CategoryResponse, ExamResult, Question } from "../containers/ExamResult/configs/types";
|
2
|
+
import { Role } from "./constants";
|
2
3
|
export declare const formatDateTime: (inputDate: string) => string;
|
3
4
|
export declare type FormatDataMyAnswer = {
|
4
5
|
category: Category;
|
@@ -17,3 +18,5 @@ export declare const totalSolveTimeCategories: (inputData: ExamResult, categorie
|
|
17
18
|
percentageAmongStudents: number;
|
18
19
|
}[];
|
19
20
|
export declare const formatTimeSecond: (duration: number, t: any) => string;
|
21
|
+
export declare const formatRole: (roles: string[], t: any) => any;
|
22
|
+
export declare const getRole: (roles: string[]) => Role | null;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const toLocalTime: (time?: string | undefined, FORMAT?: string | undefined) => string;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { RecentUserActionSortBy, RecentUserActionQuery, OrderBy, RecentUserActionResponse } from "./recentUserAction";
|
2
2
|
import { SearchQuery } from "./searchQuery";
|
3
3
|
import { TableHeaderType } from "./tableHeaderType";
|
4
|
-
|
4
|
+
import * as Users from "./users";
|
5
|
+
export { OrderBy, SearchQuery, TableHeaderType, RecentUserActionSortBy, RecentUserActionQuery, RecentUserActionResponse, Users };
|
@@ -6,3 +6,10 @@ export declare type SearchQuery = {
|
|
6
6
|
sortColumnDirection?: OrderType;
|
7
7
|
sortColumnName?: string;
|
8
8
|
};
|
9
|
+
export declare type BaseSearchQuery<T> = {
|
10
|
+
textSearch?: string;
|
11
|
+
currentPage?: number;
|
12
|
+
pageSize?: number;
|
13
|
+
sortColumnDirection?: OrderType;
|
14
|
+
sortColumnName?: T;
|
15
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { UserSortColumn } from "../enums";
|
2
|
+
import { BaseSearchQuery } from "./searchQuery";
|
3
|
+
export declare type UserSearchQuery = BaseSearchQuery<UserSortColumn>;
|
4
|
+
export declare type User = {
|
5
|
+
id: number;
|
6
|
+
fullName: string;
|
7
|
+
email: string;
|
8
|
+
phoneNumber: string;
|
9
|
+
schoolName: string;
|
10
|
+
grade?: number;
|
11
|
+
classes?: string[];
|
12
|
+
major?: string;
|
13
|
+
parentName?: string;
|
14
|
+
parentPhoneNumber?: string;
|
15
|
+
roles?: string[];
|
16
|
+
createdAt?: string;
|
17
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "touchstudy-core",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.88",
|
4
4
|
"description": "Contains core components && functions for TouchStudy project",
|
5
5
|
"author": "brss",
|
6
6
|
"license": "MIT",
|
@@ -12,13 +12,15 @@
|
|
12
12
|
"node": ">=10"
|
13
13
|
},
|
14
14
|
"dependencies": {
|
15
|
+
"@hookform/resolvers": "^3.3.3",
|
15
16
|
"@leecheuk/react-google-login": "^5.4.1",
|
16
17
|
"@mui/material": "^5.14.12",
|
18
|
+
"@mui/x-date-pickers": "^6.19.6",
|
17
19
|
"@reduxjs/toolkit": "^2.0.1",
|
18
20
|
"axios": "^1.6.2",
|
21
|
+
"ckeditor4-react": "5.2.0",
|
19
22
|
"formik": "^2.4.5",
|
20
23
|
"gapi-script": "^1.2.0",
|
21
|
-
"html2canvas": "1.4.1",
|
22
24
|
"html2pdf.js": "^0.10.2",
|
23
25
|
"i18next": "^23.7.16",
|
24
26
|
"link": "^2.1.0",
|
@@ -27,6 +29,7 @@
|
|
27
29
|
"node-sass": "^7.0.3",
|
28
30
|
"pusher-js": "^8.4.0-rc2",
|
29
31
|
"react-google-recaptcha-v3": "^1.10.1",
|
32
|
+
"react-hook-form": "^7.49.2",
|
30
33
|
"react-i18next": "^14.0.0",
|
31
34
|
"react-icons": "^4.12.0",
|
32
35
|
"react-select": "^5.8.0",
|
@@ -87,6 +90,7 @@
|
|
87
90
|
"react-apexcharts": "1.3.6",
|
88
91
|
"react-scripts": "5.0.1",
|
89
92
|
"redux-logger": "^3.0.6",
|
90
|
-
"typescript": "^4.9.5"
|
93
|
+
"typescript": "^4.9.5",
|
94
|
+
"@types/ckeditor4": "4.20.7"
|
91
95
|
}
|
92
96
|
}
|