touchstudy-core 0.1.192 → 0.1.194
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/Chats/components/InputChat.d.ts +1 -2
- package/dist/components/Chats/hooks/useChatContainer.d.ts +1 -1
- package/dist/components/List/hooks/useVirtualListView.d.ts +2 -1
- package/dist/index.js +157 -111
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +159 -113
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/hooks/useVirtualList.d.ts +2 -0
- package/package.json +9 -7
- package/dist/add-ts-nocheck.js +0 -33
- package/dist/alert-circle-fill~CSSkoNUz.svg +0 -3
- package/dist/calendar_fill~zEgxFwDs.svg +0 -4
- package/dist/check-circle_fill~bbGHfKpz.svg +0 -3
- package/dist/checked-circle_fill~KLGxfRpW.svg +0 -3
- package/dist/clock_fill~mcRclYYO.svg +0 -3
- package/dist/close-circle_fill~PRVaHJUQ.svg +0 -3
- package/dist/components/CkEditor/CkEditor.d.ts +0 -10
- package/dist/components/CkEditor/config.d.ts +0 -19
- package/dist/components/CkEditor/index.d.ts +0 -2
- package/dist/components/Print/hooks/useDeviceType.d.ts +0 -4
- package/dist/containers/ExamResult/components/GradesByTerritory/Textbook.d.ts +0 -12
- package/dist/containers/ExamResult/components/GradesByTerritory/index.d.ts +0 -12
- package/dist/containers/ExamResult/components/ProtractedProblem/index.d.ts +0 -10
- package/dist/containers/ExamResult/components/TrickyProblem/Textbook.d.ts +0 -10
- package/dist/containers/ExamResult/components/TrickyProblem/index.d.ts +0 -11
- package/dist/containers/ExamResult/components/Vulnerable/Textbook.d.ts +0 -11
- package/dist/containers/ExamResult/components/Vulnerable/index.d.ts +0 -12
- package/dist/containers/Exams/components/ArticleBlock.d.ts +0 -20
- package/dist/containers/Exams/components/ArticleGroupView.d.ts +0 -33
- package/dist/containers/Exams/components/QuestionBlock.d.ts +0 -19
- package/dist/containers/Exams/components/QuestionCompareType.d.ts +0 -9
- package/dist/containers/Exams/components/QuestionGroupBlock.d.ts +0 -28
- package/dist/containers/Exams/components/QuestionGroupBlockBody.d.ts +0 -23
- package/dist/containers/Exams/components/QuestionOrderName.d.ts +0 -9
- package/dist/containers/Exams/components/QuestionShortInput.d.ts +0 -13
- package/dist/containers/Exams/components/QuestionView.d.ts +0 -20
- package/dist/containers/Exams/hooks/useOverallChartContainer.d.ts +0 -9
- package/dist/containers/Exams/styles/styles.d.ts +0 -6
- package/dist/containers/Notes/components/TeacherAdminNoteDialog.d.ts +0 -4
- package/dist/containers/PreparedTextbook/components/Article.d.ts +0 -20
- package/dist/containers/PreparedTextbook/components/ArticleBlock.d.ts +0 -20
- package/dist/containers/PreparedTextbook/components/Chapter.d.ts +0 -19
- package/dist/containers/PreparedTextbook/components/QuestionBlock.d.ts +0 -19
- package/dist/containers/PreparedTextbook/components/QuestionCompareType.d.ts +0 -8
- package/dist/containers/PreparedTextbook/components/QuestionGroupBlock.d.ts +0 -28
- package/dist/containers/PreparedTextbook/components/QuestionGroupBlockBody.d.ts +0 -24
- package/dist/containers/PreparedTextbook/components/QuestionOrderName.d.ts +0 -9
- package/dist/containers/PreparedTextbook/components/QuestionScore.d.ts +0 -9
- package/dist/containers/PreparedTextbook/components/QuestionShortInput.d.ts +0 -12
- package/dist/containers/PreparedTextbook/components/QuestionTypeFilter.d.ts +0 -10
- package/dist/containers/PreparedTextbook/components/SubChapter.d.ts +0 -18
- package/dist/containers/PreparedTextbook/components/TextbookOwners.d.ts +0 -13
- package/dist/containers/PreparedTextbook/hooks/useExamDetailView.d.ts +0 -30
- package/dist/containers/PreparedTextbook/hooks/useTextbookOptions.d.ts +0 -15
- package/dist/containers/PreparedTextbook/styles/styles.d.ts +0 -6
- package/dist/containers/PreparedTextbook/views/PreparedTextbook.d.ts +0 -8
- package/dist/containers/StudentInfoDrawer/components/Attendance/AttedanceFormDialog.d.ts +0 -13
- package/dist/containers/StudentInfoDrawer/components/AttendanceCourseTable.d.ts +0 -15
- package/dist/containers/StudentInfoDrawer/components/CourseAttendanceItem.d.ts +0 -10
- package/dist/containers/StudentInfoDrawer/components/CourseAttendanceList.d.ts +0 -4
- package/dist/containers/StudentInfoDrawer/components/DrawerAttendanceTab.d.ts +0 -4
- package/dist/containers/StudentInfoDrawer/components/DrawerExamResultTab.d.ts +0 -9
- package/dist/containers/StudentInfoDrawer/components/DrawerNoteTab.d.ts +0 -8
- package/dist/containers/StudentInfoDrawer/components/DrawerTextbookResultTab.d.ts +0 -7
- package/dist/containers/StudentInfoDrawer/components/Exam/ExanResultList.d.ts +0 -4
- package/dist/containers/StudentInfoDrawer/components/ExamResultDrawer.d.ts +0 -13
- package/dist/containers/StudentInfoDrawer/components/ExamResultItem.d.ts +0 -10
- package/dist/containers/StudentInfoDrawer/components/ExanResultList.d.ts +0 -4
- package/dist/containers/StudentInfoDrawer/components/LessonTooltip.d.ts +0 -8
- package/dist/containers/StudentInfoDrawer/components/NoteDrawer.d.ts +0 -13
- package/dist/containers/StudentInfoDrawer/components/TextbookResultItem.d.ts +0 -10
- package/dist/containers/StudentInfoDrawer/components/TextbookResultList.d.ts +0 -4
- package/dist/containers/Textbooks/components/ChapterBox.d.ts +0 -4
- package/dist/containers/Textbooks/configs/interfaces.d.ts +0 -21
- package/dist/containers/Textbooks/hooks/useExam.d.ts +0 -16
- package/dist/containers/Textbooks/hooks/useTextbookDetail.d.ts +0 -55
- package/dist/containers/Textbooks/views/TextbookDetail.d.ts +0 -15
- package/dist/iconPerson~bfprHOKm.svg +0 -4
- package/dist/layouts/HeaderLink.d.ts +0 -8
- package/dist/layouts/TimerCountItem.d.ts +0 -10
- package/dist/layouts/TimerDialog.d.ts +0 -9
- package/dist/layouts/TimerDropdown.d.ts +0 -3
- package/dist/layouts/TimerItem.d.ts +0 -11
- package/dist/layouts/configs/constants.d.ts +0 -12
- package/dist/layouts/hooks/useCountDownTimer.d.ts +0 -9
- package/dist/layouts/partials/AlarmClock.d.ts +0 -10
- package/dist/layouts/partials/AlarmClockPanel.d.ts +0 -10
- package/dist/layouts/partials/AlarmClockTab.d.ts +0 -10
- package/dist/layouts/partials/CircularTimer/index.d.ts +0 -11
- package/dist/layouts/partials/CircularTimer/tick.d.ts +0 -9
- package/dist/layouts/partials/CircularTimer.d.ts +0 -11
- package/dist/layouts/partials/StudyTimerTab.d.ts +0 -12
- package/dist/layouts/partials/TimerCountItem.d.ts +0 -10
- package/dist/layouts/partials/TimerItem.d.ts +0 -11
- package/dist/layouts/partials/TimerTabPanel.d.ts +0 -8
- package/dist/layouts/partials/TimerTabs.d.ts +0 -7
- package/dist/utils/enums/subject.d.ts +0 -6
- package/dist/utils/functions/checkSuperUrl.d.ts +0 -1
- package/dist/utils/functions/isRealTabletOrMobileDevice.d.ts +0 -1
- package/dist/utils/types/subjects.d.ts +0 -19
- /package/dist/utils/types/{QuestionTypeFilter.d.ts → questionTypeFilter.d.ts} +0 -0
@@ -1,12 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import { FormikErrors } from "formik";
|
3
|
-
import { TextbookRequest } from "../configs/types";
|
4
|
-
interface Props {
|
5
|
-
name: string;
|
6
|
-
value: string;
|
7
|
-
deletable?: boolean;
|
8
|
-
errors: FormikErrors<TextbookRequest>;
|
9
|
-
onDelete: () => void;
|
10
|
-
}
|
11
|
-
declare const _default: React.NamedExoticComponent<Props>;
|
12
|
-
export default _default;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import React, { Dispatch, FC, RefObject } from "react";
|
2
|
-
import { TextbookFilter } from "../configs/types";
|
3
|
-
interface Props {
|
4
|
-
inputRef: RefObject<HTMLInputElement>;
|
5
|
-
fixedRef: RefObject<HTMLInputElement>;
|
6
|
-
filter: TextbookFilter;
|
7
|
-
setFilter: Dispatch<React.SetStateAction<TextbookFilter>>;
|
8
|
-
}
|
9
|
-
declare const QuestionTypeFilter: FC<Props>;
|
10
|
-
export default QuestionTypeFilter;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import { Theme } from "@mui/material";
|
3
|
-
import { ArticleResponse, ChapterResponse, TextbookState } from "../configs/types";
|
4
|
-
declare type Props = {
|
5
|
-
t: any;
|
6
|
-
articles?: ArticleResponse[];
|
7
|
-
theme: Theme;
|
8
|
-
errors: any;
|
9
|
-
handleRedirect: (type: TextbookState) => void;
|
10
|
-
handleSetArticleSection: (index: number) => void;
|
11
|
-
chapterIndex: number;
|
12
|
-
subChapterIndex: number;
|
13
|
-
onChangeFieldValue: any;
|
14
|
-
subChapter?: ChapterResponse;
|
15
|
-
chapter?: ChapterResponse;
|
16
|
-
};
|
17
|
-
declare const SubChapter: ({ t, errors, handleRedirect, onChangeFieldValue, handleSetArticleSection, articles, chapter, subChapter, chapterIndex, subChapterIndex }: Props) => React.JSX.Element;
|
18
|
-
export default SubChapter;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import { Theme } from "@mui/material";
|
3
|
-
import { TextbookOwner } from "../configs/types";
|
4
|
-
declare type Props = {
|
5
|
-
t: any;
|
6
|
-
theme: Theme;
|
7
|
-
onChangeFieldValue: any;
|
8
|
-
textbookOwners?: TextbookOwner[];
|
9
|
-
errors: any;
|
10
|
-
values: any;
|
11
|
-
};
|
12
|
-
declare const TextbookOwners: ({ t, errors, values, onChangeFieldValue, textbookOwners }: Props) => React.JSX.Element;
|
13
|
-
export default TextbookOwners;
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import { ArticleResponse, Category } from "../configs/types";
|
2
|
-
interface Props {
|
3
|
-
article?: ArticleResponse;
|
4
|
-
onChangeFieldValue: any;
|
5
|
-
articleIndex: number;
|
6
|
-
subChapterIndex: number;
|
7
|
-
textbookState: any;
|
8
|
-
values: any;
|
9
|
-
chapterIndex: number;
|
10
|
-
subjectId?: number | string;
|
11
|
-
}
|
12
|
-
declare const useExamDetailView: (props: Props) => {
|
13
|
-
t: any;
|
14
|
-
categoryList: Category[];
|
15
|
-
handleChangeScoreAnswer: (article: number, index: number, score: number) => void;
|
16
|
-
handleChangeCorrectAnswers: (article: number, index: number, answer: number) => void;
|
17
|
-
handleChangeAnswerCount: (article: number, newAnswerCount: number, answerCount: number) => void;
|
18
|
-
handleChangeQuestionCount: (article: number, questionCount: number, answerCount: number) => void;
|
19
|
-
handleChangeCategory: (_: number, values: any) => void;
|
20
|
-
handleChangeTitle: (article: number, index: number, title: string) => void;
|
21
|
-
handleChangeAuthor: (article: number, index: number, author: string) => void;
|
22
|
-
handleChangeSubject: (article: number, index: number, subject: string) => void;
|
23
|
-
handleChangeType: (article: number, index: number, type: number) => void;
|
24
|
-
subCategoryOptions: ({
|
25
|
-
label: string;
|
26
|
-
value: number | undefined;
|
27
|
-
} | undefined)[];
|
28
|
-
handleDeleteArticle: (article: number) => void;
|
29
|
-
};
|
30
|
-
export default useExamDetailView;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { RefObject } from "react";
|
2
|
-
import { TextbookFilter } from "../configs/types";
|
3
|
-
declare const useTextbookOptions: (subjectId: number, isMath: boolean, filter: TextbookFilter, inputRef: RefObject<HTMLInputElement>) => {
|
4
|
-
isSuperAdmin: boolean;
|
5
|
-
categories: any[];
|
6
|
-
questionTypes: any[];
|
7
|
-
isLoadingCategories: boolean;
|
8
|
-
isLoadingQuestionTypes: boolean;
|
9
|
-
getCategories: () => Promise<void>;
|
10
|
-
getSubCategories: (categoryId?: number | undefined) => Promise<void>;
|
11
|
-
getQuestionTypes: (categoryId?: number | undefined, subCategoryId?: number | undefined) => Promise<void>;
|
12
|
-
resetCategories: () => void;
|
13
|
-
resetQuestionTypes: () => void;
|
14
|
-
};
|
15
|
-
export default useTextbookOptions;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { Attendance, AttendanceRequest, LessonResponse } from "../../configs/types";
|
3
|
-
interface Props {
|
4
|
-
lesson: LessonResponse;
|
5
|
-
open: boolean;
|
6
|
-
studentId: number;
|
7
|
-
attendance?: Attendance;
|
8
|
-
onSearchTeachers: (text: string) => void;
|
9
|
-
onClose: () => void;
|
10
|
-
onSubmit: (attendance: AttendanceRequest) => void;
|
11
|
-
}
|
12
|
-
declare const LessonFormDialog: FC<Props>;
|
13
|
-
export default LessonFormDialog;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { LessonAttendance, LessonResponse } from "../configs/types";
|
3
|
-
interface AttendanceCourseTableProps {
|
4
|
-
data: LessonAttendance[];
|
5
|
-
containerProps?: any;
|
6
|
-
listHeight?: number;
|
7
|
-
listWidth?: number;
|
8
|
-
mainTeacherName: string;
|
9
|
-
courseName: string;
|
10
|
-
courseId: number;
|
11
|
-
studentId: number;
|
12
|
-
onCheckInLesson: (lesson: LessonResponse, studentId: number) => void;
|
13
|
-
}
|
14
|
-
declare const AttendanceCourseTable: FC<AttendanceCourseTableProps>;
|
15
|
-
export default AttendanceCourseTable;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { CourseAttendanceResponse, LessonResponse } from "../configs/types";
|
3
|
-
interface Props {
|
4
|
-
studentId: number;
|
5
|
-
data: CourseAttendanceResponse;
|
6
|
-
onCheckInLesson: (lesson: LessonResponse, studentId: number) => void;
|
7
|
-
onLoad?: () => void;
|
8
|
-
}
|
9
|
-
declare const CourseAttendanceItem: FC<Props>;
|
10
|
-
export default CourseAttendanceItem;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { TabContentProps } from "../configs/interfaces";
|
3
|
-
import { StudentInfo } from "../configs/types";
|
4
|
-
interface Props extends TabContentProps {
|
5
|
-
history: any;
|
6
|
-
student?: StudentInfo;
|
7
|
-
}
|
8
|
-
declare const DrawerExamResultTab: FC<Props>;
|
9
|
-
export default DrawerExamResultTab;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { TabContentProps } from "../configs/interfaces";
|
3
|
-
import { StudentInfo } from "../configs/types";
|
4
|
-
interface Props extends TabContentProps {
|
5
|
-
student?: StudentInfo;
|
6
|
-
}
|
7
|
-
declare const DrawerNoteTab: FC<Props>;
|
8
|
-
export default DrawerNoteTab;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { ExamSessionResponse, StudentInfo } from "../configs/types";
|
3
|
-
interface Props {
|
4
|
-
open?: boolean;
|
5
|
-
student?: StudentInfo;
|
6
|
-
anchor?: "left" | "top" | "right" | "bottom";
|
7
|
-
onClose?: () => void;
|
8
|
-
width?: number | string;
|
9
|
-
data?: ExamSessionResponse;
|
10
|
-
history: any;
|
11
|
-
}
|
12
|
-
declare const ExamResultDrawer: FC<Props>;
|
13
|
-
export default ExamResultDrawer;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { ExamSessionResponse } from "../configs/types";
|
2
|
-
import { FC } from "react";
|
3
|
-
interface Props {
|
4
|
-
studentId: number;
|
5
|
-
data: ExamSessionResponse;
|
6
|
-
onItemClick: (data: ExamSessionResponse) => void;
|
7
|
-
onLoad?: () => void;
|
8
|
-
}
|
9
|
-
declare const ExamResultItem: FC<Props>;
|
10
|
-
export default ExamResultItem;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import { Attendance, LessonResponse } from "../configs/types";
|
3
|
-
declare type Props = {
|
4
|
-
lesson: LessonResponse;
|
5
|
-
lessonAttendance?: Attendance;
|
6
|
-
};
|
7
|
-
declare const LessonTooltip: ({ lesson, lessonAttendance }: Props) => React.JSX.Element;
|
8
|
-
export default LessonTooltip;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { NoteResponse } from "../../../utils";
|
3
|
-
import { StudentInfo } from "../configs/types";
|
4
|
-
interface Props {
|
5
|
-
open: boolean;
|
6
|
-
onClose: () => void;
|
7
|
-
student?: StudentInfo;
|
8
|
-
data?: NoteResponse;
|
9
|
-
anchor?: "left" | "top" | "right" | "bottom";
|
10
|
-
width?: number | string;
|
11
|
-
}
|
12
|
-
declare const NoteDrawer: FC<Props>;
|
13
|
-
export default NoteDrawer;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { TextbookResponse } from "../configs/types";
|
3
|
-
interface Props {
|
4
|
-
studentId: number;
|
5
|
-
data: TextbookResponse;
|
6
|
-
onItemClick: (data: TextbookResponse) => void;
|
7
|
-
onLoad?: () => void;
|
8
|
-
}
|
9
|
-
declare const TextbookResultItem: FC<Props>;
|
10
|
-
export default TextbookResultItem;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { ChapterResponse, SubjectResponse, ChapterOption, ArticleResponse } from "./types";
|
3
|
-
export interface ChapterBoxProps {
|
4
|
-
parentChapterId?: number;
|
5
|
-
data: ChapterResponse;
|
6
|
-
subject: SubjectResponse;
|
7
|
-
categoryOptions: any[];
|
8
|
-
isReadonly?: boolean;
|
9
|
-
onClickAddSubchapter?: (chapter: ChapterOption) => void;
|
10
|
-
onChangeName?: (text: string, chapterId: number, parentChapterId?: number) => void;
|
11
|
-
onChangePageFrom?: (value: number, chapterId: number, parentChapterId?: number) => void;
|
12
|
-
onChangePageTo?: (value: number, chapterId: number, parentChapterId?: number) => void;
|
13
|
-
onAddArticle?: (chapter: ChapterResponse, callback?: Function) => void;
|
14
|
-
handleCheckArticle: (e: React.ChangeEvent<HTMLInputElement>, article: ArticleResponse) => void;
|
15
|
-
onRemoveArticle?: (articleNumber: number, chapterName: string, articles: ArticleResponse[], chapterId: number, parentChapterId?: number, callback?: Function) => void;
|
16
|
-
onUpdateArticleQuestionCount?: (articleNumber: number, questionCount: number, answerCount: number, articles: ArticleResponse[], chapterId: number, parentChapterId?: number, callback?: Function) => void;
|
17
|
-
onUpdateArticleCategory?: (articleNumber: number, categoryId: number, articles: ArticleResponse[], chapterId: number, parentChapterId?: number, callback?: Function) => void;
|
18
|
-
onUpdateArticleQuestionAnswerCount?: (articleNumber: number, newAnswerCount: number, answerCount: number, articles: ArticleResponse[], chapterId: number, parentChapterId?: number, callback?: Function) => void;
|
19
|
-
onUpdateArticleQuestion?: (articleNumber: number, index: number, value: number | number[], key: string, articles: ArticleResponse[], chapterId: number, parentChapterId?: number, callback?: Function) => void;
|
20
|
-
onRemoveChapter?: (chapterName: string, chapterId: number, parentChapterId?: number) => void;
|
21
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { Exam } from "../../../utils/types";
|
2
|
-
interface Props {
|
3
|
-
keep?: boolean;
|
4
|
-
callback?: () => Promise<void>;
|
5
|
-
navigate?: any;
|
6
|
-
}
|
7
|
-
declare const useExam: (props: Props) => {
|
8
|
-
isOpenDialog: boolean;
|
9
|
-
examRequest: Exam;
|
10
|
-
handleChangeExamRequest: (value: Exam) => void;
|
11
|
-
handleOpenCreateExamDialog: () => void;
|
12
|
-
handleSaveExam: () => Promise<void>;
|
13
|
-
handleCloseDialog: () => void;
|
14
|
-
handleCreateExam: () => Promise<void>;
|
15
|
-
};
|
16
|
-
export default useExam;
|
@@ -1,55 +0,0 @@
|
|
1
|
-
import { ChangeEvent } from "react";
|
2
|
-
import { ArticleCreateRequest, ArticleResponse, ChapterOption, ChapterResponse, DeleteItem, TextbookDetailResponse } from "../configs/types";
|
3
|
-
import { TextbookDetailProps } from "../views/TextbookDetail";
|
4
|
-
import { Category } from "../../Select/Category/configs/types";
|
5
|
-
declare const useTextbookDetail: (props: TextbookDetailProps) => {
|
6
|
-
id: string;
|
7
|
-
t: any;
|
8
|
-
textbook: TextbookDetailResponse;
|
9
|
-
textbookSubject: {
|
10
|
-
label: string;
|
11
|
-
value: number;
|
12
|
-
} | undefined;
|
13
|
-
isReadonly: boolean;
|
14
|
-
isNotFound: boolean;
|
15
|
-
textbookId: number | undefined;
|
16
|
-
parentChapter: ChapterOption | undefined;
|
17
|
-
selectedChapter: ChapterResponse | undefined;
|
18
|
-
selectedDeleteItem: DeleteItem | undefined;
|
19
|
-
isEditedTitle: boolean;
|
20
|
-
isReadonlyParam: boolean | undefined;
|
21
|
-
articlesSelected: number[];
|
22
|
-
isOpenDialog: boolean;
|
23
|
-
examRequest: import("../../../utils").Exam;
|
24
|
-
categoryList: Category[];
|
25
|
-
handleChangeExamRequest: (value: import("../../../utils").Exam) => void;
|
26
|
-
handleCheckArticle: (e: React.ChangeEvent<HTMLInputElement>, article: ArticleResponse) => void;
|
27
|
-
handleOpenCreateExamDialog: () => void;
|
28
|
-
handleSaveExam: () => Promise<void>;
|
29
|
-
handleCloseDialog: () => void;
|
30
|
-
handleCreateExam: () => Promise<void>;
|
31
|
-
handleChangeTextbookTitle: (e: ChangeEvent<HTMLInputElement>) => void;
|
32
|
-
handleCreateOrUpdateTextbook: () => Promise<void>;
|
33
|
-
handleChangeTextbookSubject: (val: any) => void;
|
34
|
-
handleGoToTextbookList: () => void;
|
35
|
-
handleCloseChapterNameDialog: () => void;
|
36
|
-
handleCreateChapter: (chapterName: string) => Promise<void>;
|
37
|
-
handleAddChapterToTextbook: () => void;
|
38
|
-
handleAddChapterToParentSubchapter: (chapter: ChapterOption) => void;
|
39
|
-
handleChangeChapterName: (name: string, chapterId: number, parentChapterId?: number | undefined, callback?: Function | undefined) => void;
|
40
|
-
handleUpdateChapter: (chapterId: number, chapter: ChapterResponse, callback?: Function | undefined) => Promise<void>;
|
41
|
-
handleChangeChapterPageFrom: (value: number, chapterId: number, parentChapterId?: number | undefined, callback?: Function | undefined) => void;
|
42
|
-
handleChangeChapterPageTo: (value: number, chapterId: number, parentChapterId?: number | undefined, callback?: Function | undefined) => void;
|
43
|
-
handleAddArticleToChapter: (article: ArticleCreateRequest) => Promise<void>;
|
44
|
-
handleUpdateArticleQuestionCountFromChapter: (articleNumber: number, questionCount: number, answerCount: number, articles: ArticleResponse[], chapterId: number, parentChapterId?: number | undefined) => void;
|
45
|
-
handleUpdateArticleCategory: (articleNumber: number, categoryId: number, articles: ArticleResponse[], chapterId: number, parentChapterId?: number | undefined) => void;
|
46
|
-
handleUpdateArticleAnswerCount: (articleNumber: number, newAnswerCount: number, answerCount: number, articles: ArticleResponse[], chapterId: number, parentChapterId?: number | undefined) => void;
|
47
|
-
handleUpdateArticleQuestion: (articleNumber: number, index: number, value: number | number[], key: string, articles: ArticleResponse[], chapterId: number, parentChapterId?: number | undefined) => void;
|
48
|
-
handleOpenAddArticleDialog: (chapter: ChapterResponse) => void;
|
49
|
-
handleCloseArticleDialog: () => void;
|
50
|
-
handleOpenRemoveArticleConfirmDialog: (articleNumber: number, chapterName: string, articles: ArticleResponse[], chapterId: number, parentChapterId?: number | undefined) => void;
|
51
|
-
handleCloseConfirmDeleteDialog: () => void;
|
52
|
-
handleRemoveSelectedItem: () => void;
|
53
|
-
handleOpenRemoveChapterConfirmDialog: (chapterName: string, chapterId: number, parentChapterId?: number | undefined) => void;
|
54
|
-
};
|
55
|
-
export default useTextbookDetail;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { Role } from "../../../utils/constants";
|
3
|
-
export interface TextbookDetailProps {
|
4
|
-
role: Role;
|
5
|
-
isReadonlyParam?: boolean;
|
6
|
-
navigate: any;
|
7
|
-
id: string;
|
8
|
-
isSuperAdmin: any;
|
9
|
-
as?: any;
|
10
|
-
onNavigateDetail?: (data: any, readOnly?: boolean, replace?: boolean) => void;
|
11
|
-
onNavigateList: (replace?: boolean) => void;
|
12
|
-
className?: string;
|
13
|
-
}
|
14
|
-
declare const TextbookViewDetail: FC<TextbookDetailProps>;
|
15
|
-
export default TextbookViewDetail;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M10.395 2.01813C9.78691 1.36156 8.93753 1 8.00003 1C7.05753 1 6.20534 1.35937 5.60003 2.01187C4.98815 2.67156 4.69003 3.56813 4.76003 4.53625C4.89878 6.44625 6.35222 8 8.00003 8C9.64784 8 11.0988 6.44656 11.2397 4.53687C11.3107 3.5775 11.0107 2.68281 10.395 2.01813Z" fill="#97A1AF"/>
|
3
|
-
<path d="M13.4999 15H2.49993C2.35595 15.0019 2.21337 14.9716 2.08255 14.9115C1.95173 14.8513 1.83597 14.7627 1.74368 14.6522C1.54056 14.4094 1.45868 14.0778 1.51931 13.7425C1.78306 12.2794 2.60618 11.0503 3.89993 10.1875C5.04931 9.42156 6.50525 9 7.99993 9C9.49462 9 10.9506 9.42188 12.0999 10.1875C13.3937 11.05 14.2168 12.2791 14.4806 13.7422C14.5412 14.0775 14.4593 14.4091 14.2562 14.6519C14.1639 14.7625 14.0482 14.8511 13.9174 14.9113C13.7865 14.9715 13.6439 15.0018 13.4999 15Z" fill="#97A1AF"/>
|
4
|
-
</svg>
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { FC, ReactElement } from "react";
|
2
|
-
import { TabType } from "../utils/types/tab";
|
3
|
-
interface HeaderLinkProps {
|
4
|
-
data: TabType;
|
5
|
-
render: (data: TabType, active: boolean) => ReactElement;
|
6
|
-
}
|
7
|
-
declare const HeaderLink: FC<HeaderLinkProps>;
|
8
|
-
export default HeaderLink;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { SubjectTimerResponse } from "../utils/types/subjects";
|
3
|
-
interface Props {
|
4
|
-
data: SubjectTimerResponse;
|
5
|
-
loading: boolean;
|
6
|
-
activeTimerId?: number;
|
7
|
-
onChangeTime: (data: SubjectTimerResponse, time?: number) => void;
|
8
|
-
}
|
9
|
-
declare const TimerCountItem: FC<Props>;
|
10
|
-
export default TimerCountItem;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { StudyTimerTabProps } from "./partials/StudyTimerTab";
|
3
|
-
interface Props {
|
4
|
-
studyTimerProps: StudyTimerTabProps;
|
5
|
-
open: boolean;
|
6
|
-
onTogge: () => void;
|
7
|
-
}
|
8
|
-
declare const TimerDialog: FC<Props>;
|
9
|
-
export default TimerDialog;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { SubjectTimerResponse } from "../utils/types/subjects";
|
3
|
-
interface Props {
|
4
|
-
data: SubjectTimerResponse;
|
5
|
-
seconds?: number;
|
6
|
-
loading: boolean;
|
7
|
-
activeTimerId?: number;
|
8
|
-
onStartOrPauseTimer: (data: SubjectTimerResponse) => void;
|
9
|
-
}
|
10
|
-
declare const TimerItem: FC<Props>;
|
11
|
-
export default TimerItem;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
export declare const QUICK_START_OPTIONS: number[];
|
2
|
-
export declare const SUBJECT_OPTIONS: {
|
3
|
-
label: string;
|
4
|
-
value: number;
|
5
|
-
}[];
|
6
|
-
export declare const INNER_OFFSET = 24;
|
7
|
-
export declare const TICK_WIDTH = 1;
|
8
|
-
export declare const ACTIVE_TICK_WIDTH = 2;
|
9
|
-
export declare const TICK_SPACING: number;
|
10
|
-
export declare const STROKE_WIDTH = 4;
|
11
|
-
export declare const DEFAULT_CIRCULAR_TIMER_SIZE = 160;
|
12
|
-
export declare const MAX_TIME_CIRCULAR_TIMER = 999;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { TimerStatus } from "../../utils";
|
2
|
-
interface Props {
|
3
|
-
startTime?: string;
|
4
|
-
status?: TimerStatus;
|
5
|
-
duration: number;
|
6
|
-
onFinish?: () => void;
|
7
|
-
}
|
8
|
-
declare const useCountDownTimer: (props: Props) => number | undefined;
|
9
|
-
export default useCountDownTimer;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
export interface AlarmClockProps {
|
3
|
-
totalMinutes: number;
|
4
|
-
isPlaying: boolean;
|
5
|
-
onTerminate: () => void;
|
6
|
-
onPause: () => void;
|
7
|
-
onResume: () => void;
|
8
|
-
}
|
9
|
-
declare const AlarmClock: FC<AlarmClockProps>;
|
10
|
-
export default AlarmClock;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
export interface AlarmClockPanelProps {
|
3
|
-
value: number;
|
4
|
-
max?: number;
|
5
|
-
onStart: () => void;
|
6
|
-
onChange: (val: number) => void;
|
7
|
-
onIncrease: (val: number) => void;
|
8
|
-
}
|
9
|
-
declare const AlarmClockPanel: FC<AlarmClockPanelProps>;
|
10
|
-
export default AlarmClockPanel;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { AlarmClockPanelProps } from "./AlarmClockPanel";
|
3
|
-
import { AlarmClockProps } from "./AlarmClock";
|
4
|
-
interface Props {
|
5
|
-
isStarted: boolean;
|
6
|
-
panelProps: AlarmClockPanelProps;
|
7
|
-
alarmProps: AlarmClockProps;
|
8
|
-
}
|
9
|
-
declare const AlarmClockTab: FC<Props>;
|
10
|
-
export default AlarmClockTab;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
interface CircularTimerProps {
|
3
|
-
edit: boolean;
|
4
|
-
value?: number;
|
5
|
-
remainSeconds?: number;
|
6
|
-
onChange?: (val: number) => void;
|
7
|
-
maxMinutes: number;
|
8
|
-
size?: number;
|
9
|
-
}
|
10
|
-
declare const CircularTimer: React.FC<CircularTimerProps>;
|
11
|
-
export default CircularTimer;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
interface CircularTimerProps {
|
3
|
-
edit: boolean;
|
4
|
-
value?: number;
|
5
|
-
passedSeconds?: number;
|
6
|
-
onChange?: (val: number) => void;
|
7
|
-
maxMinutes?: number;
|
8
|
-
size?: number;
|
9
|
-
}
|
10
|
-
declare const CircularTimer: React.FC<CircularTimerProps>;
|
11
|
-
export default CircularTimer;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { SubjectTimerResponse } from "../../utils/types";
|
3
|
-
export interface StudyTimerTabProps {
|
4
|
-
subjects: SubjectTimerResponse[];
|
5
|
-
isFetching: boolean;
|
6
|
-
loadingItem: boolean;
|
7
|
-
activeTimerId?: number;
|
8
|
-
time?: number;
|
9
|
-
onStartOrPause: (data: SubjectTimerResponse) => void;
|
10
|
-
}
|
11
|
-
declare const StudyTimerTab: FC<StudyTimerTabProps>;
|
12
|
-
export default StudyTimerTab;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { SubjectTimerResponse } from "../../utils/types/subjects";
|
3
|
-
interface Props {
|
4
|
-
data: SubjectTimerResponse;
|
5
|
-
loading: boolean;
|
6
|
-
activeTimerId?: number;
|
7
|
-
onChangeTime: (data: SubjectTimerResponse, time?: number) => void;
|
8
|
-
}
|
9
|
-
declare const TimerCountItem: FC<Props>;
|
10
|
-
export default TimerCountItem;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { FC } from "react";
|
2
|
-
import { SubjectTimerResponse } from "../../utils/types/subjects";
|
3
|
-
interface Props {
|
4
|
-
data: SubjectTimerResponse;
|
5
|
-
seconds?: number;
|
6
|
-
loading: boolean;
|
7
|
-
activeTimerId?: number;
|
8
|
-
onStartOrPauseTimer: (data: SubjectTimerResponse) => void;
|
9
|
-
}
|
10
|
-
declare const TimerItem: FC<Props>;
|
11
|
-
export default TimerItem;
|