touchstudy-core 0.1.142 → 0.1.144
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/add-ts-nocheck.js +33 -0
- package/dist/components/CkEditor/CkEditor.d.ts +2 -11
- package/dist/containers/PreparedTextbook/hooks/useExamDetailView.d.ts +1 -3
- package/dist/index.css +9 -9
- package/dist/index.js +22 -34
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +22 -34
- package/dist/index.modern.js.map +1 -1
- 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/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/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/).
|
@@ -0,0 +1,33 @@
|
|
1
|
+
const fs = require('fs');
|
2
|
+
const path = require('path');
|
3
|
+
|
4
|
+
// Recursively find all .ts and .tsx files in the src directory
|
5
|
+
const directoryPath = path.join(__dirname, 'src'); // Adjust to your src directory
|
6
|
+
|
7
|
+
function addTsNoCheck(filePath) {
|
8
|
+
const fileContent = fs.readFileSync(filePath, 'utf-8');
|
9
|
+
|
10
|
+
// Add // @ts-nocheck only if it's not already added
|
11
|
+
if (!fileContent.startsWith('// @ts-nocheck')) {
|
12
|
+
const newContent = `// @ts-nocheck\n${fileContent}`;
|
13
|
+
fs.writeFileSync(filePath, newContent, 'utf-8');
|
14
|
+
console.log(`Added // @ts-nocheck to ${filePath}`);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
function walkDirectory(dir) {
|
19
|
+
const files = fs.readdirSync(dir);
|
20
|
+
|
21
|
+
files.forEach(file => {
|
22
|
+
const fullPath = path.join(dir, file);
|
23
|
+
const stat = fs.statSync(fullPath);
|
24
|
+
|
25
|
+
if (stat.isDirectory()) {
|
26
|
+
walkDirectory(fullPath); // Recursively walk directories
|
27
|
+
} else if (fullPath.endsWith('.ts') || fullPath.endsWith('.tsx')) {
|
28
|
+
addTsNoCheck(fullPath); // Add // @ts-nocheck to each TypeScript file
|
29
|
+
}
|
30
|
+
});
|
31
|
+
}
|
32
|
+
|
33
|
+
walkDirectory(directoryPath);
|
@@ -1,19 +1,10 @@
|
|
1
|
-
import React from
|
1
|
+
import React from 'react';
|
2
2
|
interface Props {
|
3
3
|
ref?: any;
|
4
4
|
value: string;
|
5
5
|
onChange: any;
|
6
6
|
option?: any;
|
7
|
-
onBlur?: any;
|
8
|
-
onFocus?: any;
|
9
|
-
onAfterInsertHtml?: any;
|
10
|
-
onInsertElement?: any;
|
11
|
-
onInsertHtml?: any;
|
12
|
-
onInsertText?: any;
|
13
|
-
onDataReady?: any;
|
14
|
-
onSelectionChange?: any;
|
15
|
-
action?: any;
|
16
7
|
disabled: boolean;
|
17
8
|
}
|
18
|
-
declare const CkEditor: ({ ref, value,
|
9
|
+
declare const CkEditor: ({ ref, value, onChange, option, disabled }: Props) => React.JSX.Element;
|
19
10
|
export default CkEditor;
|
@@ -12,10 +12,8 @@ interface Props {
|
|
12
12
|
declare const useExamDetailView: (props: Props) => {
|
13
13
|
t: any;
|
14
14
|
categoryList: Category[];
|
15
|
-
handleChangeTextualAnswer: (article: number, index: number, value: string) => void;
|
16
|
-
handleChangeQuestionAnswerType: (article: number, index: number, value: number) => void;
|
17
15
|
handleChangeScoreAnswer: (article: number, index: number, score: number) => void;
|
18
|
-
handleChangeCorrectAnswers: (article: number, index: number, answer: number
|
16
|
+
handleChangeCorrectAnswers: (article: number, index: number, answer: number) => void;
|
19
17
|
handleChangeAnswerCount: (article: number, newAnswerCount: number, answerCount: number) => void;
|
20
18
|
handleChangeQuestionCount: (article: number, questionCount: number, answerCount: number) => void;
|
21
19
|
handleChangeCategory: (_: number, values: any) => void;
|
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 {
|
package/dist/index.js
CHANGED
@@ -1300,7 +1300,7 @@ var my_study_schedule = "나의 공부 스케줄";
|
|
1300
1300
|
var create_a_new_schedule = "새 스케줄 생성";
|
1301
1301
|
var schedule_name = "스케줄 이름";
|
1302
1302
|
var learning = "이어풀기";
|
1303
|
-
var unravel_from_page = "
|
1303
|
+
var unravel_from_page = "페이지 찾아 풀기";
|
1304
1304
|
var incorrect_answer_note = "오답노트";
|
1305
1305
|
var write_a_note_of_incorrect_answers = "오답노트 작성하기";
|
1306
1306
|
var delete_note = "노트 삭제";
|
@@ -28997,7 +28997,7 @@ var QuestionGroupBlockBody = function QuestionGroupBlockBody(_ref) {
|
|
28997
28997
|
gap: 2
|
28998
28998
|
}, !isMath && React__default.createElement(material.Stack, {
|
28999
28999
|
sx: {
|
29000
|
-
border: "
|
29000
|
+
border: "1.5px solid " + (blockErrors ? open ? error.main : error.light : open ? theme.palette.secondary.main : theme.palette.secondary.light),
|
29001
29001
|
borderRadius: 2
|
29002
29002
|
},
|
29003
29003
|
gap: 1,
|
@@ -29194,7 +29194,7 @@ var QuestionGroupBlock = function QuestionGroupBlock(_ref) {
|
|
29194
29194
|
expanded: open,
|
29195
29195
|
onChange: handleToggle,
|
29196
29196
|
sx: {
|
29197
|
-
border: "
|
29197
|
+
border: "1.5px solid " + (blockErrors ? open ? error.main : error.light : open ? colors.yellow[900] : colors.yellow[500])
|
29198
29198
|
}
|
29199
29199
|
}, React__default.createElement(material.AccordionSummary, {
|
29200
29200
|
expandIcon: React__default.createElement(md.MdExpandMore, {
|
@@ -29651,7 +29651,7 @@ var ChapterBlock = function ChapterBlock(_ref) {
|
|
29651
29651
|
expanded: open,
|
29652
29652
|
onChange: handleToggle,
|
29653
29653
|
sx: {
|
29654
|
-
border: "
|
29654
|
+
border: "1.5px solid " + (blockErrors ? open ? error.main : error.light : open ? (paths === null || paths === void 0 ? void 0 : paths.length) > 1 ? theme.palette.success.main : theme.palette.info.main : (paths === null || paths === void 0 ? void 0 : paths.length) > 1 ? theme.palette.success.light : theme.palette.info.light)
|
29655
29655
|
}
|
29656
29656
|
}, React__default.createElement(material.AccordionSummary, {
|
29657
29657
|
expandIcon: React__default.createElement(md.MdExpandMore, {
|
@@ -34060,29 +34060,9 @@ var TheAcademyDropdown = function TheAcademyDropdown(_ref) {
|
|
34060
34060
|
var _useState = React.useState(null),
|
34061
34061
|
open = _useState[0],
|
34062
34062
|
setOpen = _useState[1];
|
34063
|
-
var _useState2 = React.useState(
|
34064
|
-
|
34065
|
-
|
34066
|
-
var _useState3 = React.useState(""),
|
34067
|
-
avatarImageUrl = _useState3[0],
|
34068
|
-
setAvatarImageUrl = _useState3[1];
|
34069
|
-
var checkImage = function checkImage(imageUrl, onSet) {
|
34070
|
-
try {
|
34071
|
-
if (!imageUrl) return Promise.resolve(onSet(""));
|
34072
|
-
return Promise.resolve(_catch(function () {
|
34073
|
-
return Promise.resolve(api.get(imageUrl)).then(function (res) {
|
34074
|
-
return res.data ? onSet(imageUrl) : onSet("");
|
34075
|
-
});
|
34076
|
-
}, function () {
|
34077
|
-
return onSet("");
|
34078
|
-
}));
|
34079
|
-
} catch (e) {
|
34080
|
-
return Promise.reject(e);
|
34081
|
-
}
|
34082
|
-
};
|
34083
|
-
React.useEffect(function () {
|
34084
|
-
selectedAcademy !== null && selectedAcademy !== void 0 && selectedAcademy.image ? checkImage(selectedAcademy === null || selectedAcademy === void 0 ? void 0 : selectedAcademy.image, setImageUrl) : checkImage(user.avatar, setAvatarImageUrl);
|
34085
|
-
}, [selectedAcademy === null || selectedAcademy === void 0 ? void 0 : selectedAcademy.image, user.avatar]);
|
34063
|
+
var _useState2 = React.useState(false),
|
34064
|
+
isImageError = _useState2[0],
|
34065
|
+
setImageError = _useState2[1];
|
34086
34066
|
var handleOpen = function handleOpen(event) {
|
34087
34067
|
event.preventDefault();
|
34088
34068
|
event.stopPropagation();
|
@@ -34108,6 +34088,12 @@ var TheAcademyDropdown = function TheAcademyDropdown(_ref) {
|
|
34108
34088
|
var mainUrl = !isAcademy ? homeAcademyUrl : homeUrl;
|
34109
34089
|
pushTo(history, mainUrl);
|
34110
34090
|
};
|
34091
|
+
var handleImageError = function handleImageError() {
|
34092
|
+
setImageError(true);
|
34093
|
+
};
|
34094
|
+
React.useEffect(function () {
|
34095
|
+
setImageError(false);
|
34096
|
+
}, [selectedAcademy === null || selectedAcademy === void 0 ? void 0 : selectedAcademy.image, user === null || user === void 0 ? void 0 : user.avatar]);
|
34111
34097
|
return React__default.createElement(React.Fragment, null, React__default.createElement(material.Button, {
|
34112
34098
|
onClick: handleGoToMainPage,
|
34113
34099
|
className: styles["academy-btn"] + " pointer",
|
@@ -34121,15 +34107,17 @@ var TheAcademyDropdown = function TheAcademyDropdown(_ref) {
|
|
34121
34107
|
xs: 6,
|
34122
34108
|
lg: 2,
|
34123
34109
|
className: "" + styles["image-academy"]
|
34124
|
-
},
|
34110
|
+
}, !isImageError ? React__default.createElement(React.Fragment, null, selectedAcademy ? React__default.createElement(material.CardMedia, {
|
34125
34111
|
component: "img",
|
34126
|
-
image:
|
34127
|
-
alt: selectedAcademy === null || selectedAcademy === void 0 ? void 0 : selectedAcademy.name
|
34128
|
-
|
34112
|
+
image: selectedAcademy === null || selectedAcademy === void 0 ? void 0 : selectedAcademy.image,
|
34113
|
+
alt: selectedAcademy === null || selectedAcademy === void 0 ? void 0 : selectedAcademy.name,
|
34114
|
+
onError: handleImageError
|
34115
|
+
}) : isLearningSpace ? React__default.createElement(material.CardMedia, {
|
34129
34116
|
component: "img",
|
34130
|
-
src:
|
34131
|
-
alt: user === null || user === void 0 ? void 0 : user.fullName
|
34132
|
-
|
34117
|
+
src: user === null || user === void 0 ? void 0 : user.avatar,
|
34118
|
+
alt: user === null || user === void 0 ? void 0 : user.fullName,
|
34119
|
+
onError: handleImageError
|
34120
|
+
}) : React__default.createElement("span", null)) : React__default.createElement("span", null)), isLargerThanLg && React__default.createElement(material.Grid, {
|
34133
34121
|
item: true,
|
34134
34122
|
xs: 0,
|
34135
34123
|
lg: 8
|