touchstudy-core 0.1.140 → 0.1.142
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/README.md +46 -46
- package/dist/StudyTouch_Character_v1_Question~jLFvuYmI.png +0 -0
- package/dist/components/Chats/ChatHeader.d.ts +25 -0
- package/dist/components/Chats/ChatItem.d.ts +31 -0
- package/dist/components/Chats/ChatLeftItem.d.ts +4 -0
- package/dist/components/Chats/ChatList.d.ts +14 -0
- package/dist/components/Chats/ChatRightItem.d.ts +4 -0
- package/dist/components/Chats/InputChat.d.ts +16 -0
- package/dist/components/Chats/components/CustomTooltip.d.ts +2 -0
- package/dist/components/CkEditor/CkEditor.d.ts +19 -0
- package/dist/components/CkEditor/config.d.ts +19 -0
- package/dist/components/CkEditor/index.d.ts +2 -0
- package/dist/components/ErrorHandler.d.ts +6 -0
- package/dist/components/LabelRequired.d.ts +8 -0
- package/dist/components/List/configs/interfaces.d.ts +1 -1
- package/dist/components/List/partials/VirtualListItem.d.ts +1 -1
- package/dist/components/Selectors/InActiveAcademySelector.d.ts +16 -0
- package/dist/components/Selects/CustomSelect.d.ts +1 -1
- package/dist/components/Tables/VirtualTableRowItem.d.ts +6 -5
- package/dist/components/Tables/VirtualTableView.d.ts +1 -1
- package/dist/components/Tables/configs/interfaces.d.ts +11 -4
- package/dist/components/Tables/hooks/useVirtualTableView.d.ts +7 -0
- package/dist/containers/Academies/hooks/usePassCodeDialog.d.ts +10 -0
- package/dist/containers/ExamResult/components/MyAnswer/components/CreateNewQuestion.d.ts +15 -0
- package/dist/containers/Exams/configs/types.d.ts +22 -0
- package/dist/containers/Notes/components/NoteItem.d.ts +1 -0
- package/dist/containers/PreparedTextbook/apiClients/academyService.d.ts +1 -0
- package/dist/containers/PreparedTextbook/apiClients/textbookService.d.ts +1 -1
- package/dist/containers/PreparedTextbook/components/AcademySelector.d.ts +1 -1
- package/dist/containers/PreparedTextbook/components/Article.d.ts +2 -3
- package/dist/containers/PreparedTextbook/components/ArticleBlock.d.ts +1 -0
- package/dist/containers/PreparedTextbook/components/ChapterBlock.d.ts +1 -0
- package/dist/containers/PreparedTextbook/components/ChapterBlockBody.d.ts +1 -0
- package/dist/containers/PreparedTextbook/components/CourseSelector.d.ts +1 -1
- package/dist/containers/PreparedTextbook/components/OwnerSelector.d.ts +3 -2
- package/dist/containers/PreparedTextbook/components/PreparedTextbookForm.d.ts +5 -0
- package/dist/containers/PreparedTextbook/components/QuestionBlock.d.ts +1 -1
- package/dist/containers/PreparedTextbook/components/QuestionGroupBlock.d.ts +1 -1
- package/dist/containers/PreparedTextbook/components/QuestionGroupBlockBody.d.ts +1 -0
- package/dist/containers/PreparedTextbook/components/TextbookContentsTab.d.ts +1 -0
- package/dist/containers/PreparedTextbook/components/TextbookInfoTab.d.ts +3 -1
- package/dist/containers/PreparedTextbook/components/TextbookOwners.d.ts +13 -0
- package/dist/containers/PreparedTextbook/components/TextbookOwnersTab.d.ts +2 -1
- package/dist/containers/PreparedTextbook/configs/constants.d.ts +2 -0
- package/dist/containers/PreparedTextbook/configs/enums.d.ts +5 -0
- package/dist/containers/PreparedTextbook/configs/functions.d.ts +17 -3
- package/dist/containers/PreparedTextbook/configs/interfaces.d.ts +2 -0
- package/dist/containers/PreparedTextbook/configs/types.d.ts +5 -3
- package/dist/containers/PreparedTextbook/hooks/useSelect.d.ts +8 -10
- package/dist/containers/PreparedTextbook/hooks/useTextbookManagement.d.ts +8 -1
- package/dist/containers/Textbooks/components/TextbookRow.d.ts +17 -0
- package/dist/containers/Textbooks/configs/types.d.ts +2 -0
- package/dist/containers/Textbooks/hooks/useTextbookList.d.ts +5 -2
- package/dist/containers/Textbooks/hooks/useTextbookShare.d.ts +0 -2
- 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/index.css +12 -12
- package/dist/index.js +1342 -749
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1345 -761
- package/dist/index.modern.js.map +1 -1
- package/dist/tests/performances/do-exam-session-list-student.d.ts +19 -0
- package/dist/tests/performances/do-exam-session-request-answer-one-time.d.ts +19 -0
- package/dist/tests/performances/do-exam-session-skip-answer.d.ts +19 -0
- package/dist/tests/performances/do-exam-session2.d.ts +19 -0
- package/dist/utils/canAccessRoute.d.ts +2 -0
- package/dist/utils/constants.d.ts +2 -10
- package/dist/utils/diffFromNow.d.ts +3 -0
- package/dist/utils/encodeParams.d.ts +2 -0
- package/dist/utils/formatTime.d.ts +4 -0
- package/dist/utils/getAcademyDomain.d.ts +2 -0
- package/dist/utils/getAccessToken.d.ts +2 -0
- package/dist/utils/getErrorMessage.d.ts +1 -0
- package/dist/utils/getLanguage.d.ts +2 -0
- package/dist/utils/getLearningSpace.d.ts +2 -0
- package/dist/utils/getRedirectUrl.d.ts +2 -0
- package/dist/utils/helpers.d.ts +22 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/isLocalHost.d.ts +2 -0
- package/dist/utils/minutesToTimeSpan.d.ts +2 -0
- package/dist/utils/pusherTo.d.ts +1 -0
- package/dist/utils/times.d.ts +6 -0
- package/dist/utils/toISOString.d.ts +2 -0
- package/dist/utils/toLocalTime.d.ts +1 -0
- package/dist/utils/types/checkSuperUrl.d.ts +1 -0
- package/dist/utils/types.d.ts +9 -0
- package/dist/utils/utcToLocalTime.d.ts +2 -0
- package/package.json +102 -102
- package/dist/.DS_Store +0 -0
- package/dist/components/.DS_Store +0 -0
- package/dist/containers/.DS_Store +0 -0
- package/dist/redux/.DS_Store +0 -0
- package/dist/utils/.DS_Store +0 -0
@@ -1,4 +1,5 @@
|
|
1
1
|
import { TextbookDetailResponse } from "./types";
|
2
|
+
import { QuestionAnswerType } from "../../../utils";
|
2
3
|
export declare const reduceToMathArticles: (textbook: any, isMath?: number | undefined) => any;
|
3
4
|
export declare const resetAllCategoriesAndQuestionTypesBySubject: (textbook: any, subject?: any) => any;
|
4
5
|
export declare const convertResponseToRequest: (selectedTextbook?: TextbookDetailResponse | undefined) => import("./types").TextbookRequest | {
|
@@ -14,7 +15,19 @@ export declare const convertResponseToRequest: (selectedTextbook?: TextbookDetai
|
|
14
15
|
publisher: string;
|
15
16
|
isbn: string;
|
16
17
|
coverImage: string;
|
17
|
-
textbookOwners:
|
18
|
+
textbookOwners: {
|
19
|
+
academy: {
|
20
|
+
label: any;
|
21
|
+
value: any;
|
22
|
+
} | null;
|
23
|
+
course: {
|
24
|
+
label: any;
|
25
|
+
value: any;
|
26
|
+
} | null;
|
27
|
+
email: string;
|
28
|
+
academyId: number;
|
29
|
+
courseId: number;
|
30
|
+
}[];
|
18
31
|
isPublic: boolean;
|
19
32
|
isShared: boolean;
|
20
33
|
isPrepared: boolean;
|
@@ -39,7 +52,7 @@ export declare const convertResponseToRequest: (selectedTextbook?: TextbookDetai
|
|
39
52
|
score: number;
|
40
53
|
questionOrder: number;
|
41
54
|
textualAnswer: string;
|
42
|
-
questionAnswerType:
|
55
|
+
questionAnswerType: QuestionAnswerType;
|
43
56
|
questionTypeName?: string | undefined;
|
44
57
|
}[];
|
45
58
|
articles: {
|
@@ -77,7 +90,7 @@ export declare const convertResponseToRequest: (selectedTextbook?: TextbookDetai
|
|
77
90
|
score: number;
|
78
91
|
questionOrder: number;
|
79
92
|
textualAnswer: string;
|
80
|
-
questionAnswerType:
|
93
|
+
questionAnswerType: QuestionAnswerType;
|
81
94
|
questionTypeName?: string | undefined;
|
82
95
|
}[];
|
83
96
|
articles: {
|
@@ -99,3 +112,4 @@ export declare const convertResponseToRequest: (selectedTextbook?: TextbookDetai
|
|
99
112
|
}[];
|
100
113
|
}[];
|
101
114
|
};
|
115
|
+
export declare const handleKeyDown: (e: any) => void;
|
@@ -102,21 +102,23 @@ export declare type TextbookDetailResponse = {
|
|
102
102
|
textbookOwners: TextbookOwner[];
|
103
103
|
isPrepared?: boolean;
|
104
104
|
type: number;
|
105
|
+
createdBy?: any;
|
106
|
+
isCreatedByAdmin?: boolean;
|
105
107
|
};
|
106
108
|
export declare type Academy = {
|
107
109
|
id: number;
|
108
110
|
name: string;
|
109
|
-
courses: Course[];
|
110
111
|
};
|
111
112
|
export declare type Course = {
|
112
|
-
id:
|
113
|
+
id: number;
|
113
114
|
name: string;
|
114
|
-
teacherEmails: string[];
|
115
115
|
};
|
116
116
|
export declare type TextbookOwner = {
|
117
117
|
email: string;
|
118
118
|
academyId: number;
|
119
119
|
courseId: number;
|
120
|
+
academy: any;
|
121
|
+
course: any;
|
120
122
|
};
|
121
123
|
export declare type TextbookResponse = {
|
122
124
|
id: number;
|
@@ -1,18 +1,16 @@
|
|
1
1
|
declare type Props = {
|
2
|
-
|
3
|
-
handleChangeEmail: any;
|
2
|
+
email: string;
|
4
3
|
};
|
5
|
-
declare const useSelect: ({
|
4
|
+
declare const useSelect: ({ email }: Props) => {
|
6
5
|
t: any;
|
7
|
-
loadData: any;
|
8
6
|
isLoading: boolean;
|
9
|
-
|
10
|
-
label:
|
11
|
-
value:
|
7
|
+
academies: {
|
8
|
+
label: any;
|
9
|
+
value: any;
|
12
10
|
}[];
|
13
|
-
|
11
|
+
courses: {
|
14
12
|
label: string;
|
15
|
-
value:
|
16
|
-
}[]
|
13
|
+
value: any;
|
14
|
+
}[];
|
17
15
|
};
|
18
16
|
export default useSelect;
|
@@ -1,16 +1,23 @@
|
|
1
1
|
import { ChapterResponse, TextbookRequest, TextbookDetailResponse } from "../configs/types";
|
2
|
+
import { Role } from "../../../utils";
|
2
3
|
import { FormikHelpers } from "formik";
|
3
4
|
declare type Props = {
|
5
|
+
role: Role;
|
4
6
|
textbookId?: string;
|
5
7
|
onNavigateList: () => void;
|
6
8
|
};
|
7
|
-
declare const useTextbookManagement: ({ textbookId, onNavigateList }: Props) => {
|
9
|
+
declare const useTextbookManagement: ({ textbookId, role, onNavigateList }: Props) => {
|
8
10
|
t: any;
|
11
|
+
isAdminSite: boolean;
|
12
|
+
disabledTextbookOwners: any;
|
13
|
+
isReadonly: boolean;
|
14
|
+
isEditable: any;
|
9
15
|
isAdmin: any;
|
10
16
|
theme: import("@mui/material").Theme;
|
11
17
|
history: History;
|
12
18
|
coverImage: string | undefined;
|
13
19
|
isSuperAdmin: boolean;
|
20
|
+
isSuperAdminUser: any;
|
14
21
|
openDialog: boolean;
|
15
22
|
handleSubmit: (values: TextbookRequest, _formikHelpers: FormikHelpers<TextbookRequest>) => Promise<void>;
|
16
23
|
selectedTextbook: TextbookDetailResponse | undefined;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
import { TextbookResponse } from "../configs/types";
|
3
|
+
import { Role } from "../../../utils";
|
4
|
+
interface Props {
|
5
|
+
index: number;
|
6
|
+
data: TextbookResponse;
|
7
|
+
role: Role;
|
8
|
+
isSuperAdmin: boolean;
|
9
|
+
calcOrderNumber: (index: number) => number;
|
10
|
+
onUpdateTextbook: (data: TextbookResponse) => void;
|
11
|
+
onDeleteTextbook: (data: TextbookResponse) => void;
|
12
|
+
onViewTextbook: (data: TextbookResponse) => void;
|
13
|
+
onShareTextbook: (data: TextbookResponse) => void;
|
14
|
+
onUpdateShareTextbook: (data: TextbookResponse) => void;
|
15
|
+
}
|
16
|
+
declare const TextbookRow: FC<Props>;
|
17
|
+
export default TextbookRow;
|
@@ -2,10 +2,13 @@
|
|
2
2
|
import { TextbookResponse } from "../configs/types";
|
3
3
|
import { TextbookListProps } from "../views/TextbookList";
|
4
4
|
declare const useTextbookList: (props: TextbookListProps) => {
|
5
|
-
|
5
|
+
user: any;
|
6
|
+
isTeacherSite: boolean;
|
7
|
+
isTeacher: boolean;
|
8
|
+
filter: import("../../../utils").SearchQuery;
|
6
9
|
textSearchRef: import("react").RefObject<HTMLInputElement>;
|
7
10
|
getData: (isLoading?: boolean) => Promise<void>;
|
8
|
-
paging: import("
|
11
|
+
paging: import("../../../utils").PagingResponse;
|
9
12
|
textbooks: TextbookResponse[];
|
10
13
|
selectedTextbook: TextbookResponse | undefined;
|
11
14
|
handleSort: (sortColumnName: string) => void;
|
@@ -30,8 +30,6 @@ declare const useTextbookShare: (props: TextbookShareProps) => {
|
|
30
30
|
isUpdate: boolean;
|
31
31
|
handleUpdateSharedTextbook: (teacherIds: number[], textbookId: number) => Promise<void>;
|
32
32
|
currentModel: TextbookResponse | undefined;
|
33
|
-
enabledSave: (textbook: TextbookResponse) => any;
|
34
|
-
enabledShare: (textbook: TextbookResponse) => any;
|
35
33
|
isAdmin: any;
|
36
34
|
isAdminSite: boolean;
|
37
35
|
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
interface Props {
|
3
|
+
open: boolean;
|
4
|
+
file?: File;
|
5
|
+
onChangeFile: (file?: File) => void;
|
6
|
+
onClose: () => void;
|
7
|
+
onSubmit: () => Promise<boolean>;
|
8
|
+
}
|
9
|
+
declare const DeleteUserCsvDialog: FC<Props>;
|
10
|
+
export default DeleteUserCsvDialog;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
import { Types } from "../../../..";
|
3
|
+
interface Props {
|
4
|
+
open: boolean;
|
5
|
+
onClose: () => void;
|
6
|
+
recentUserActions?: Types.RecentUserActionResponse[];
|
7
|
+
}
|
8
|
+
declare const RecentUserActionDialog: FC<Props>;
|
9
|
+
export default RecentUserActionDialog;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
import { UserForm } from "../../configs/types";
|
3
|
+
import { User } from "../../../../utils/types/users";
|
4
|
+
interface Props {
|
5
|
+
open: boolean;
|
6
|
+
data?: User;
|
7
|
+
disabled?: boolean;
|
8
|
+
onClose: () => void;
|
9
|
+
onSubmitForm: (data: UserForm) => void;
|
10
|
+
}
|
11
|
+
declare const UserDialog: FC<Props>;
|
12
|
+
export default UserDialog;
|
package/dist/index.css
CHANGED
@@ -353,7 +353,7 @@
|
|
353
353
|
background-clip: padding-box;
|
354
354
|
border: 1px solid #dee2e6;
|
355
355
|
border-radius: 0.375rem;
|
356
|
-
transition: border-color 0.15s ease-in-out,
|
356
|
+
transition: border-color 0.15s ease-in-out,
|
357
357
|
box-shadow 0.15s ease-in-out; }
|
358
358
|
|
359
359
|
._2PWdX {
|
360
360
|
display: inline-block;
|
@@ -372,7 +372,7 @@
|
|
372
372
|
border: 1px solid #0d6efd;
|
373
373
|
border-radius: 0.375rem;
|
374
374
|
background-color: transparent;
|
375
|
-
transition: color 0.15s ease-in-out,
|
375
|
+
transition: color 0.15s ease-in-out,
|
376
376
|
background-color 0.15s ease-in-out,
|
377
377
|
border-color 0.15s ease-in-out,
|
378
378
|
box-shadow 0.15s ease-in-out; }
|
379
379
|
._2PWdX:hover {
|
380
380
|
color: #fff !important;
|
381
381
|
background-color: #0d6efd;
|
@@ -406,7 +406,7 @@
|
|
406
406
|
background-size: 10px 7px;
|
407
407
|
border: 1px solid #dee2e6;
|
408
408
|
border-radius: 0.375rem;
|
409
|
-
transition: border-color 0.15s ease-in-out,
|
409
|
+
transition: border-color 0.15s ease-in-out,
|
410
410
|
box-shadow 0.15s ease-in-out; }
|
411
411
|
|
412
412
|
._3NJzN {
|
413
413
|
overflow: hidden;
|
@@ -1409,7 +1409,7 @@
|
|
1409
1409
|
|
1410
1410
|
._11aYm {
|
1411
1411
|
width: 70vw;
|
1412
|
-
height: calc(
|
1412
|
+
height: calc(100dvh - 78px);
|
1413
1413
|
position: fixed;
|
1414
1414
|
right: -100%;
|
1415
1415
|
bottom: 0;
|
@@ -1582,7 +1582,7 @@
|
|
1582
1582
|
@charset "UTF-8";
|
1583
1583
|
._1k4kj {
|
1584
1584
|
width: 70vw;
|
1585
|
-
height: calc(
|
1585
|
+
height: calc(100dvh - 78px);
|
1586
1586
|
position: fixed;
|
1587
1587
|
right: -100%;
|
1588
1588
|
bottom: 0;
|
@@ -1593,7 +1593,7 @@
|
|
1593
1593
|
|
1594
1594
|
._xnHGE {
|
1595
1595
|
width: 100vw;
|
1596
|
-
height:
|
1596
|
+
height: 100dvh;
|
1597
1597
|
background-color: rgba(0, 0, 0, 0);
|
1598
1598
|
position: fixed;
|
1599
1599
|
right: 0;
|
@@ -1839,7 +1839,7 @@ h3 {
|
|
1839
1839
|
._24wBH, ._2LXBj {
|
1840
1840
|
background-color: var(--docusaurus-collapse-button-bg); }
|
1841
1841
|
:root {
|
1842
|
-
--docusaurus-announcement-bar-height: 30px
|
1842
|
+
--docusaurus-announcement-bar-height: 30px
|
1843
1843
|
; }
|
1844
1844
|
._32uEE, ._2PagL {
|
1845
1845
|
flex-basis: 50px; }
|
@@ -1944,7 +1944,7 @@ h3 {
|
|
1944
1944
|
flex-basis: var(--ifm-col-width);
|
1945
1945
|
margin-left: 0; }
|
1946
1946
|
._gceZJ {
|
1947
|
-
--ifm-footer-padding-horizontal: 0
|
1947
|
+
--ifm-footer-padding-horizontal: 0
|
1948
1948
|
; }
|
1949
1949
|
._OawS_, ._3fzLh, ._1wyV6, ._3tGM4 {
|
1950
1950
|
display: none; }
|
@@ -1991,13 +1991,13 @@ h3 {
|
|
1991
1991
|
|
1992
1992
|
@media (max-width: 576px) {
|
1993
1993
|
._2xZt0 h1:first-child {
|
1994
|
-
--ifm-h1-font-size:2rem
|
1994
|
+
--ifm-h1-font-size:2rem
|
1995
1995
|
; }
|
1996
1996
|
._2xZt0 > h2 {
|
1997
|
-
--ifm-h2-font-size: 1.5rem
|
1997
|
+
--ifm-h2-font-size: 1.5rem
|
1998
1998
|
; }
|
1999
1999
|
._2xZt0 > h3 {
|
2000
|
-
--ifm-h3-font-size: 1.25rem
|
2000
|
+
--ifm-h3-font-size: 1.25rem
|
2001
2001
|
; } }
|
2002
2002
|
|
2003
2003
|
@media (hover: hover) {
|
@@ -2022,7 +2022,7 @@ h3 {
|
|
2022
2022
|
@media (prefers-reduced-motion: reduce) {
|
2023
2023
|
:root {
|
2024
2024
|
--ifm-transition-fast: 0ms;
|
2025
|
-
--ifm-transition-slow: 0ms
|
2025
|
+
--ifm-transition-slow: 0ms
|
2026
2026
|
; } }
|
2027
2027
|
|
2028
2028
|
@media print {
|