touchstudy-core 0.1.176 → 0.1.177
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/components/TeacherSelector.d.ts +1 -1
- package/dist/containers/Classes/configs/types.d.ts +4 -0
- package/dist/containers/Notes/components/NoteItemList.d.ts +1 -0
- package/dist/containers/Notes/views/NoteList.d.ts +1 -0
- package/dist/containers/Notes/views/NoteTabs.d.ts +1 -0
- package/dist/containers/PreparedTextbook/components/PreparedTextbookForm.d.ts +1 -3
- package/dist/containers/PreparedTextbook/configs/constants.d.ts +0 -2
- package/dist/containers/PreparedTextbook/configs/enums.d.ts +0 -5
- package/dist/containers/PreparedTextbook/hooks/useTextbookManagement.d.ts +1 -2
- package/dist/index.css +0 -13
- package/dist/index.js +124 -823
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +127 -826
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/Header.d.ts +1 -1
- package/dist/services/subjectService.d.ts +0 -4
- package/dist/theme/palette.d.ts +0 -1
- package/dist/utils/enums/index.d.ts +0 -1
- package/dist/utils/functions/times.d.ts +0 -1
- package/dist/utils/types/index.d.ts +0 -1
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import { FC } from "react";
|
|
2
2
|
import { Option, TeacherSimpleResponse } from "../configs/types";
|
3
3
|
interface Props {
|
4
4
|
teachers: TeacherSimpleResponse[];
|
5
|
-
value?:
|
5
|
+
value?: any;
|
6
6
|
onChange: (val: Option | null) => void;
|
7
7
|
onInputChange: (inputText: string) => void;
|
8
8
|
isDisabled?: boolean;
|
@@ -7,6 +7,8 @@ export declare type ClassResponse = {
|
|
7
7
|
totalTeachers: number;
|
8
8
|
totalLessons: number;
|
9
9
|
mainTeacherId: number;
|
10
|
+
mainTeacherName?: string;
|
11
|
+
mainTeacherEmail?: string;
|
10
12
|
courseWeeklyDays: WeeklyDayResponse[];
|
11
13
|
hidden: boolean;
|
12
14
|
};
|
@@ -51,6 +53,7 @@ export declare type ClassRequest = {
|
|
51
53
|
endDate: moment.Moment | null;
|
52
54
|
mainTeacherId: number | null;
|
53
55
|
courseWeeklyDays: WeeklyDayRequest[];
|
56
|
+
mainTeacher?: Option | null;
|
54
57
|
};
|
55
58
|
export declare type ClassRequestBody = {
|
56
59
|
name: string;
|
@@ -91,6 +94,7 @@ export declare type LessonRequest = {
|
|
91
94
|
mainTeacherId: number | null;
|
92
95
|
date: moment.Moment | null;
|
93
96
|
isCancelled: boolean;
|
97
|
+
mainTeacher?: Option | null;
|
94
98
|
};
|
95
99
|
export declare type LessonRequestBody = {
|
96
100
|
startTime: string;
|
@@ -9,6 +9,7 @@ interface Props {
|
|
9
9
|
onDelete: (data: NoteResponse) => void;
|
10
10
|
onUpdate: (data: NoteResponse) => void;
|
11
11
|
onView: (data: NoteResponse) => void;
|
12
|
+
onViewStudentInfo: (note: NoteResponse) => void;
|
12
13
|
}
|
13
14
|
declare const NoteItemList: FC<Props>;
|
14
15
|
export default NoteItemList;
|
@@ -2,6 +2,7 @@ import { FC } from "react";
|
|
2
2
|
import { Role } from "../../../utils";
|
3
3
|
interface Props {
|
4
4
|
role: Role;
|
5
|
+
onViewQA?: (studentId: number, sessionId?: number, questionId?: number, isTextbook?: boolean) => void;
|
5
6
|
}
|
6
7
|
declare const NoteTabs: FC<Props>;
|
7
8
|
export default NoteTabs;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FormikProps } from "formik";
|
2
2
|
import React, { FC } from "react";
|
3
|
-
import {
|
3
|
+
import { TextbookRequest } from "../configs/types";
|
4
4
|
interface Props extends FormikProps<TextbookRequest> {
|
5
5
|
isCreatedByAdmin?: boolean;
|
6
6
|
isSuperAdminUser: boolean;
|
@@ -11,8 +11,6 @@ interface Props extends FormikProps<TextbookRequest> {
|
|
11
11
|
coverImage?: string;
|
12
12
|
disabled?: boolean;
|
13
13
|
ownersDisabled?: boolean;
|
14
|
-
handleSaveData: (values: TextbookRequest) => Promise<void>;
|
15
|
-
selectedTextbook?: TextbookDetailResponse;
|
16
14
|
onUploadImage: (event: React.ChangeEvent<HTMLInputElement>) => Promise<void>;
|
17
15
|
onChangeTab: (_: React.SyntheticEvent, newValue: number) => void;
|
18
16
|
}
|
@@ -11,7 +11,7 @@ declare const useTextbookManagement: ({ textbookId, role, onNavigateList }: Prop
|
|
11
11
|
isAdminSite: boolean;
|
12
12
|
disabledTextbookOwners: boolean;
|
13
13
|
isReadonly: boolean;
|
14
|
-
isEditable:
|
14
|
+
isEditable: boolean;
|
15
15
|
isAdmin: any;
|
16
16
|
theme: import("@mui/material").Theme;
|
17
17
|
history: History;
|
@@ -20,7 +20,6 @@ declare const useTextbookManagement: ({ textbookId, role, onNavigateList }: Prop
|
|
20
20
|
isSuperAdminUser: any;
|
21
21
|
openDialog: boolean;
|
22
22
|
handleSubmit: (values: TextbookRequest, _formikHelpers: FormikHelpers<TextbookRequest>) => Promise<void>;
|
23
|
-
handleSaveData: (values: TextbookRequest) => Promise<void>;
|
24
23
|
selectedTextbook: TextbookDetailResponse | undefined;
|
25
24
|
handleOpenDialog: (item?: any) => void;
|
26
25
|
handleCloseDialog: () => void;
|
package/dist/index.css
CHANGED
@@ -501,19 +501,6 @@
|
|
501
501
|
text-overflow: ellipsis;
|
502
502
|
word-wrap: break-word; }
|
503
503
|
|
504
|
-
._3bvVg ._z624V {
|
505
|
-
transition: background-color 0.3s ease; }
|
506
|
-
._3bvVg ._z624V:hover {
|
507
|
-
background-color: #3DC674; }
|
508
|
-
._3bvVg ._z624V:hover ._2KJX4 {
|
509
|
-
color: #F0FFF6; }
|
510
|
-
._3bvVg ._z624V:hover ._1mwlk {
|
511
|
-
color: #F0FFF6; }
|
512
|
-
._3bvVg ._z624V:hover ._maff_ {
|
513
|
-
color: #F0FFF6; }
|
514
|
-
._3bvVg ._z624V ._maff_ {
|
515
|
-
color: #3DC674; }
|
516
|
-
|
517
504
|
._2mYOt ._1H9qR:nth-child(1) {
|
518
505
|
font-family: "Pretendard";
|
519
506
|
font-size: 20px;
|