touchstudy-core 0.1.136 → 0.1.138
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/.DS_Store +0 -0
- package/dist/components/.DS_Store +0 -0
- package/dist/components/Commons/NotFound.d.ts +1 -4
- package/dist/components/Print/PrintExamView2.d.ts +1 -2
- package/dist/containers/.DS_Store +0 -0
- package/dist/containers/Classes/configs/constants.d.ts +8 -1
- package/dist/containers/Classes/configs/types.d.ts +2 -0
- package/dist/containers/PreparedTextbook/components/Article.d.ts +3 -2
- package/dist/containers/PreparedTextbook/configs/enums.d.ts +1 -1
- package/dist/containers/PreparedTextbook/configs/functions.d.ts +2 -1
- package/dist/containers/PreparedTextbook/configs/types.d.ts +1 -0
- package/dist/containers/Users/configs/types.d.ts +2 -2
- package/dist/index.css +9 -9
- package/dist/index.js +1131 -978
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1206 -1056
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/TheLanguageDropdown.d.ts +1 -4
- package/dist/redux/.DS_Store +0 -0
- package/dist/rootReducer.d.ts +2 -2
- package/dist/utils/.DS_Store +0 -0
- package/dist/utils/constants.d.ts +16 -0
- package/dist/utils/enums/academy.d.ts +6 -0
- package/dist/utils/enums/index.d.ts +1 -0
- package/dist/utils/hooks/useLanguage.d.ts +2 -5
- package/dist/utils/types/index.d.ts +1 -0
- package/package.json +102 -102
- package/dist/StudyTouch_Character_v1_Question~jLFvuYmI.png +0 -0
- package/dist/components/Chats/ChatHeader.d.ts +0 -25
- package/dist/components/Chats/ChatItem.d.ts +0 -31
- package/dist/components/Chats/ChatLeftItem.d.ts +0 -4
- package/dist/components/Chats/ChatList.d.ts +0 -14
- package/dist/components/Chats/ChatRightItem.d.ts +0 -4
- package/dist/components/Chats/InputChat.d.ts +0 -16
- package/dist/components/Chats/components/CustomTooltip.d.ts +0 -2
- package/dist/components/CkEditor/CkEditor.d.ts +0 -19
- package/dist/components/CkEditor/config.d.ts +0 -19
- package/dist/components/CkEditor/index.d.ts +0 -2
- package/dist/components/ErrorHandler.d.ts +0 -6
- package/dist/components/LabelRequired.d.ts +0 -8
- package/dist/components/Selectors/InActiveAcademySelector.d.ts +0 -16
- package/dist/containers/Academies/hooks/usePassCodeDialog.d.ts +0 -10
- package/dist/containers/ExamResult/components/MyAnswer/components/CreateNewQuestion.d.ts +0 -15
- package/dist/containers/Exams/configs/types.d.ts +0 -22
- package/dist/containers/PreparedTextbook/apiClients/academyService.d.ts +0 -1
- package/dist/containers/PreparedTextbook/components/TextbookOwners.d.ts +0 -13
- package/dist/containers/Users/components/Dialogs/DeleteUserCsvDialog.d.ts +0 -10
- package/dist/containers/Users/components/Dialogs/RecentUserActionDialog.d.ts +0 -9
- package/dist/containers/Users/components/Dialogs/UserDialog.d.ts +0 -12
- package/dist/tests/performances/do-exam-session-list-student.d.ts +0 -19
- package/dist/tests/performances/do-exam-session-request-answer-one-time.d.ts +0 -19
- package/dist/tests/performances/do-exam-session-skip-answer.d.ts +0 -19
- package/dist/tests/performances/do-exam-session2.d.ts +0 -19
- package/dist/utils/canAccessRoute.d.ts +0 -2
- package/dist/utils/diffFromNow.d.ts +0 -3
- package/dist/utils/encodeParams.d.ts +0 -2
- package/dist/utils/formatTime.d.ts +0 -4
- package/dist/utils/getAcademyDomain.d.ts +0 -2
- package/dist/utils/getAccessToken.d.ts +0 -2
- package/dist/utils/getErrorMessage.d.ts +0 -1
- package/dist/utils/getLanguage.d.ts +0 -2
- package/dist/utils/getLearningSpace.d.ts +0 -2
- package/dist/utils/getRedirectUrl.d.ts +0 -2
- package/dist/utils/helpers.d.ts +0 -22
- package/dist/utils/isLocalHost.d.ts +0 -2
- package/dist/utils/minutesToTimeSpan.d.ts +0 -2
- package/dist/utils/pusherTo.d.ts +0 -1
- package/dist/utils/times.d.ts +0 -6
- package/dist/utils/toISOString.d.ts +0 -2
- package/dist/utils/toLocalTime.d.ts +0 -1
- package/dist/utils/types/checkSuperUrl.d.ts +0 -1
- package/dist/utils/types.d.ts +0 -9
- package/dist/utils/utcToLocalTime.d.ts +0 -2
package/README.md
CHANGED
@@ -1,46 +1,46 @@
|
|
1
|
-
# Getting Started with Create React App
|
2
|
-
|
3
|
-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
4
|
-
|
5
|
-
## Available Scripts
|
6
|
-
|
7
|
-
In the project directory, you can run:
|
8
|
-
|
9
|
-
### `npm start`
|
10
|
-
|
11
|
-
Runs the app in the development mode.\
|
12
|
-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
13
|
-
|
14
|
-
The page will reload if you make edits.\
|
15
|
-
You will also see any lint errors in the console.
|
16
|
-
|
17
|
-
### `npm test`
|
18
|
-
|
19
|
-
Launches the test runner in the interactive watch mode.\
|
20
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
21
|
-
|
22
|
-
### `npm run build`
|
23
|
-
|
24
|
-
Builds the app for production to the `build` folder.\
|
25
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
26
|
-
|
27
|
-
The build is minified and the filenames include the hashes.\
|
28
|
-
Your app is ready to be deployed!
|
29
|
-
|
30
|
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
31
|
-
|
32
|
-
### `npm run eject`
|
33
|
-
|
34
|
-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
35
|
-
|
36
|
-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
37
|
-
|
38
|
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
39
|
-
|
40
|
-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
41
|
-
|
42
|
-
## Learn More
|
43
|
-
|
44
|
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
45
|
-
|
46
|
-
To learn React, check out the [React documentation](https://reactjs.org/).
|
1
|
+
# Getting Started with Create React App
|
2
|
+
|
3
|
+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
4
|
+
|
5
|
+
## Available Scripts
|
6
|
+
|
7
|
+
In the project directory, you can run:
|
8
|
+
|
9
|
+
### `npm start`
|
10
|
+
|
11
|
+
Runs the app in the development mode.\
|
12
|
+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
13
|
+
|
14
|
+
The page will reload if you make edits.\
|
15
|
+
You will also see any lint errors in the console.
|
16
|
+
|
17
|
+
### `npm test`
|
18
|
+
|
19
|
+
Launches the test runner in the interactive watch mode.\
|
20
|
+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
21
|
+
|
22
|
+
### `npm run build`
|
23
|
+
|
24
|
+
Builds the app for production to the `build` folder.\
|
25
|
+
It correctly bundles React in production mode and optimizes the build for the best performance.
|
26
|
+
|
27
|
+
The build is minified and the filenames include the hashes.\
|
28
|
+
Your app is ready to be deployed!
|
29
|
+
|
30
|
+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
31
|
+
|
32
|
+
### `npm run eject`
|
33
|
+
|
34
|
+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
35
|
+
|
36
|
+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
37
|
+
|
38
|
+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
39
|
+
|
40
|
+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
41
|
+
|
42
|
+
## Learn More
|
43
|
+
|
44
|
+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
45
|
+
|
46
|
+
To learn React, check out the [React documentation](https://reactjs.org/).
|
package/dist/.DS_Store
ADDED
Binary file
|
Binary file
|
@@ -2,8 +2,7 @@ import React from "react";
|
|
2
2
|
import { Role } from "../../utils/constants";
|
3
3
|
declare type Props = {
|
4
4
|
role: Role;
|
5
|
-
history: any;
|
6
5
|
dataExamSession?: any;
|
7
6
|
};
|
8
|
-
declare const PrintExamView2: ({
|
7
|
+
declare const PrintExamView2: ({ role, dataExamSession }: Props) => React.JSX.Element;
|
9
8
|
export default PrintExamView2;
|
Binary file
|
@@ -3,7 +3,14 @@ import { ClassHeaderTable, ClassQuery, ClassRequest, QuestionColumn, StudentClas
|
|
3
3
|
import { UserSortColumn } from "../../../utils/enums";
|
4
4
|
import { UserSearchQuery } from "../../../utils/types/users";
|
5
5
|
export declare const CLASS_HEADERS: ClassHeaderTable[];
|
6
|
-
export declare const
|
6
|
+
export declare const TEACHER_USER_HEADERS: ({
|
7
|
+
title: string;
|
8
|
+
sortKey?: undefined;
|
9
|
+
} | {
|
10
|
+
title: string;
|
11
|
+
sortKey: UserSortColumn;
|
12
|
+
})[];
|
13
|
+
export declare const STUDENT_USER_HEADERS: ({
|
7
14
|
title: string;
|
8
15
|
sortKey?: undefined;
|
9
16
|
} | {
|
@@ -15,6 +15,7 @@ export declare type StudentClassResponse = {
|
|
15
15
|
studentName: string;
|
16
16
|
studentEmail: string;
|
17
17
|
studentPhoneNumber?: string;
|
18
|
+
studentParentPhoneNumber?: string;
|
18
19
|
roles: Array<string>;
|
19
20
|
paymentTime?: string;
|
20
21
|
createdAt?: string;
|
@@ -177,6 +178,7 @@ export declare enum ClassSortBy {
|
|
177
178
|
export declare enum UserClassSortBy {
|
178
179
|
CreatedAt = "CreatedAt",
|
179
180
|
PhoneNumber = "PhoneNumber",
|
181
|
+
ParentPhoneNumber = "ParentPhoneNumber",
|
180
182
|
FullName = "FullName",
|
181
183
|
Email = "Email"
|
182
184
|
}
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import React from
|
1
|
+
import React from "react";
|
2
2
|
import { Theme } from "@mui/material";
|
3
3
|
import { ArticleResponse, ChapterResponse, TextbookState } from "../configs/types";
|
4
4
|
declare type Props = {
|
5
5
|
t: any;
|
6
|
+
errors: any;
|
6
7
|
theme: Theme;
|
7
8
|
articleIndex: number;
|
8
9
|
textbookState: any;
|
@@ -16,5 +17,5 @@ declare type Props = {
|
|
16
17
|
subChapter?: ChapterResponse;
|
17
18
|
chapter?: ChapterResponse;
|
18
19
|
};
|
19
|
-
declare const Article: ({ t, articleIndex, subChapterIndex, chapterIndex, article, values, textbookState, subChapter, chapter, subjectId, handleRedirect, onChangeFieldValue }: Props) => React.JSX.Element;
|
20
|
+
declare const Article: ({ t, errors, articleIndex, subChapterIndex, chapterIndex, article, values, textbookState, subChapter, chapter, subjectId, handleRedirect, onChangeFieldValue }: Props) => React.JSX.Element;
|
20
21
|
export default Article;
|
@@ -16,6 +16,7 @@ export declare const convertResponseToRequest: (selectedTextbook?: TextbookDetai
|
|
16
16
|
coverImage: string;
|
17
17
|
textbookOwners: import("./types").TextbookOwner[];
|
18
18
|
isPublic: boolean;
|
19
|
+
isShared: boolean;
|
19
20
|
isPrepared: boolean;
|
20
21
|
type: number;
|
21
22
|
chapters: {
|
@@ -65,7 +66,7 @@ export declare const convertResponseToRequest: (selectedTextbook?: TextbookDetai
|
|
65
66
|
id: number;
|
66
67
|
chapterId: number;
|
67
68
|
questions: {
|
68
|
-
questionTypeId:
|
69
|
+
questionTypeId: any;
|
69
70
|
questionType: {
|
70
71
|
label: any;
|
71
72
|
value: any;
|
@@ -2,7 +2,7 @@ export declare type UserForm = {
|
|
2
2
|
fullName: string;
|
3
3
|
email?: string;
|
4
4
|
phoneNumber?: string;
|
5
|
-
schoolName
|
5
|
+
schoolName: string;
|
6
6
|
grade?: number | null;
|
7
7
|
major?: string;
|
8
8
|
parentName?: string;
|
@@ -14,7 +14,7 @@ export declare type UserFormSubmit = {
|
|
14
14
|
fullName: string;
|
15
15
|
email?: string;
|
16
16
|
phoneNumber?: string;
|
17
|
-
schoolName
|
17
|
+
schoolName: string;
|
18
18
|
grade?: number | null;
|
19
19
|
major?: string;
|
20
20
|
parentName?: string;
|
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,
|
357
356
|
box-shadow 0.15s ease-in-out; }
|
357
|
+
transition: border-color 0.15s ease-in-out, 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,
|
376
375
|
background-color 0.15s ease-in-out,
|
377
376
|
border-color 0.15s ease-in-out,
|
378
377
|
box-shadow 0.15s ease-in-out; }
|
378
|
+
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, 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,
|
410
409
|
box-shadow 0.15s ease-in-out; }
|
410
|
+
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
|
411
411
|
|
412
412
|
._3NJzN {
|
413
413
|
overflow: hidden;
|
@@ -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 {
|