touchstudy-core 0.1.87 → 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/containers/Classes/hooks/useClassDetail.d.ts +1 -1
- package/dist/containers/Classes/hooks/useLessonClassList.d.ts +1 -1
- package/dist/containers/Login/apiClient/index.d.ts +2 -5
- package/dist/containers/Login/hooks/useLogin.d.ts +2 -4
- package/dist/index.css +48 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +5092 -58
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5082 -55
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/enums/index.d.ts +2 -1
- 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/types/index.d.ts +2 -1
- package/dist/utils/types/searchQuery.d.ts +7 -0
- package/package.json +7 -3
@@ -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 };
|
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;
|
@@ -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
|
+
};
|
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
|
}
|