touchstudy-core 0.1.136 → 0.1.137

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.
Files changed (73) hide show
  1. package/README.md +46 -46
  2. package/dist/.DS_Store +0 -0
  3. package/dist/components/.DS_Store +0 -0
  4. package/dist/components/Commons/NotFound.d.ts +1 -4
  5. package/dist/components/Print/PrintExamView2.d.ts +1 -2
  6. package/dist/containers/.DS_Store +0 -0
  7. package/dist/containers/Classes/configs/constants.d.ts +8 -1
  8. package/dist/containers/Classes/configs/types.d.ts +2 -0
  9. package/dist/containers/PreparedTextbook/components/Article.d.ts +3 -2
  10. package/dist/containers/PreparedTextbook/configs/enums.d.ts +1 -1
  11. package/dist/containers/PreparedTextbook/configs/functions.d.ts +2 -1
  12. package/dist/containers/PreparedTextbook/configs/types.d.ts +1 -0
  13. package/dist/containers/Users/configs/types.d.ts +2 -2
  14. package/dist/index.css +9 -9
  15. package/dist/index.js +1194 -1032
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.modern.js +1209 -1050
  18. package/dist/index.modern.js.map +1 -1
  19. package/dist/redux/.DS_Store +0 -0
  20. package/dist/rootReducer.d.ts +2 -2
  21. package/dist/utils/.DS_Store +0 -0
  22. package/dist/utils/constants.d.ts +16 -0
  23. package/dist/utils/enums/academy.d.ts +6 -0
  24. package/dist/utils/enums/index.d.ts +1 -0
  25. package/dist/utils/hooks/useLanguage.d.ts +1 -0
  26. package/dist/utils/types/index.d.ts +1 -0
  27. package/package.json +102 -102
  28. package/dist/StudyTouch_Character_v1_Question~jLFvuYmI.png +0 -0
  29. package/dist/components/Chats/ChatHeader.d.ts +0 -25
  30. package/dist/components/Chats/ChatItem.d.ts +0 -31
  31. package/dist/components/Chats/ChatLeftItem.d.ts +0 -4
  32. package/dist/components/Chats/ChatList.d.ts +0 -14
  33. package/dist/components/Chats/ChatRightItem.d.ts +0 -4
  34. package/dist/components/Chats/InputChat.d.ts +0 -16
  35. package/dist/components/Chats/components/CustomTooltip.d.ts +0 -2
  36. package/dist/components/CkEditor/CkEditor.d.ts +0 -19
  37. package/dist/components/CkEditor/config.d.ts +0 -19
  38. package/dist/components/CkEditor/index.d.ts +0 -2
  39. package/dist/components/ErrorHandler.d.ts +0 -6
  40. package/dist/components/LabelRequired.d.ts +0 -8
  41. package/dist/components/Selectors/InActiveAcademySelector.d.ts +0 -16
  42. package/dist/containers/Academies/hooks/usePassCodeDialog.d.ts +0 -10
  43. package/dist/containers/ExamResult/components/MyAnswer/components/CreateNewQuestion.d.ts +0 -15
  44. package/dist/containers/Exams/configs/types.d.ts +0 -22
  45. package/dist/containers/PreparedTextbook/apiClients/academyService.d.ts +0 -1
  46. package/dist/containers/PreparedTextbook/components/TextbookOwners.d.ts +0 -13
  47. package/dist/containers/Users/components/Dialogs/DeleteUserCsvDialog.d.ts +0 -10
  48. package/dist/containers/Users/components/Dialogs/RecentUserActionDialog.d.ts +0 -9
  49. package/dist/containers/Users/components/Dialogs/UserDialog.d.ts +0 -12
  50. package/dist/tests/performances/do-exam-session-list-student.d.ts +0 -19
  51. package/dist/tests/performances/do-exam-session-request-answer-one-time.d.ts +0 -19
  52. package/dist/tests/performances/do-exam-session-skip-answer.d.ts +0 -19
  53. package/dist/tests/performances/do-exam-session2.d.ts +0 -19
  54. package/dist/utils/canAccessRoute.d.ts +0 -2
  55. package/dist/utils/diffFromNow.d.ts +0 -3
  56. package/dist/utils/encodeParams.d.ts +0 -2
  57. package/dist/utils/formatTime.d.ts +0 -4
  58. package/dist/utils/getAcademyDomain.d.ts +0 -2
  59. package/dist/utils/getAccessToken.d.ts +0 -2
  60. package/dist/utils/getErrorMessage.d.ts +0 -1
  61. package/dist/utils/getLanguage.d.ts +0 -2
  62. package/dist/utils/getLearningSpace.d.ts +0 -2
  63. package/dist/utils/getRedirectUrl.d.ts +0 -2
  64. package/dist/utils/helpers.d.ts +0 -22
  65. package/dist/utils/isLocalHost.d.ts +0 -2
  66. package/dist/utils/minutesToTimeSpan.d.ts +0 -2
  67. package/dist/utils/pusherTo.d.ts +0 -1
  68. package/dist/utils/times.d.ts +0 -6
  69. package/dist/utils/toISOString.d.ts +0 -2
  70. package/dist/utils/toLocalTime.d.ts +0 -1
  71. package/dist/utils/types/checkSuperUrl.d.ts +0 -1
  72. package/dist/utils/types.d.ts +0 -9
  73. package/dist/utils/utcToLocalTime.d.ts +0 -2
@@ -1,19 +0,0 @@
1
- export function setup(): {
2
- id: number;
3
- code: string;
4
- teacherAuthorizeHeaders: {
5
- Authorization: string;
6
- } & {
7
- "Academy-Headers": string;
8
- "Content-Type": string;
9
- "Accept-Language": string;
10
- };
11
- }[];
12
- export default function _default(data: any): void;
13
- export namespace options {
14
- export { MAX_DEMO_STUDENTS as vus };
15
- export { MAX_DEMO_STUDENTS as iterations };
16
- }
17
- declare const AcademyHeaders: "Academy-Headers";
18
- declare const MAX_DEMO_STUDENTS: 400;
19
- export {};
@@ -1,2 +0,0 @@
1
- declare const canAccess: (userRoles: any[], componentRoles: any[]) => boolean;
2
- export default canAccess;
@@ -1,3 +0,0 @@
1
- import { unitOfTime } from "moment";
2
- declare const _default: (time: string, unitOfTime: unitOfTime.Diff, targetTime?: string | undefined) => number | "";
3
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: (params: any) => string;
2
- export default _default;
@@ -1,4 +0,0 @@
1
- import moment from "moment";
2
- declare const _default: (time: string, ORIGINAL_FORMAT: string, FORMAT?: string | undefined) => string;
3
- export default _default;
4
- export declare const compareTimeSpanFromMoment: (time1: moment.Moment, time2: moment.Moment) => 0 | 1 | -1;
@@ -1,2 +0,0 @@
1
- declare const getAcademyDomain: () => string | null;
2
- export default getAcademyDomain;
@@ -1,2 +0,0 @@
1
- declare const _default: () => string | null;
2
- export default _default;
@@ -1 +0,0 @@
1
- export declare const getErrorMessage: (t: any, error: any, defaultErrorMessage?: string | undefined) => string;
@@ -1,2 +0,0 @@
1
- declare const _default: () => string | null;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const getLearningSpace: () => boolean;
2
- export default getLearningSpace;
@@ -1,2 +0,0 @@
1
- declare const getRedirectUrl: () => string | null | undefined;
2
- export default getRedirectUrl;
@@ -1,22 +0,0 @@
1
- import { Category, CategoryResponse, ExamResult, Question } from "../containers/ExamResult/configs/types";
2
- import { Role } from "./constants";
3
- export declare const formatDateTime: (inputDate: string) => string;
4
- export declare type FormatDataMyAnswer = {
5
- category: Category;
6
- questions: Question[];
7
- };
8
- export declare const ellipsisText: (text: string, maxLength: number) => string;
9
- export declare const getOrdinalSuffix: (number: number, lang: string) => string;
10
- export declare const formatDataMyAnswer: (inputData: ExamResult, categories: CategoryResponse[]) => FormatDataMyAnswer[];
11
- export declare const totalSolveTimeCategories: (inputData: ExamResult, categories: CategoryResponse[]) => {
12
- totalSolveTime: any;
13
- id: number;
14
- name: string;
15
- totalQuestions: number;
16
- totalCorrectQuestions: number;
17
- totalAnsweredQuestions: number;
18
- percentageAmongStudents: number;
19
- }[];
20
- export declare const formatTimeSecond: (duration: number, t: any) => string;
21
- export declare const formatRole: (roles: string[], t: any) => any;
22
- export declare const getRole: (roles: string[]) => Role.Student | Role.Teacher | Role.Admin | Role.AcademyAdmin | null;
@@ -1,2 +0,0 @@
1
- declare const isLocalHost: boolean;
2
- export default isLocalHost;
@@ -1,2 +0,0 @@
1
- declare const _default: (time: number) => string;
2
- export default _default;
@@ -1 +0,0 @@
1
- export declare const pushTo: (history: any, data: any, isReplace?: boolean) => void;
@@ -1,6 +0,0 @@
1
- import moment from "moment";
2
- export declare const getLocalDayOfWeek: (utcDateTime: string, dayOfWeek: number) => number;
3
- export declare const getUtcDayOfWeek: (localDateTime: moment.Moment, dayOfWeek: number) => number;
4
- export declare const timeSpanToLocalMoment: (time: string, date?: string | undefined) => moment.Moment | null;
5
- export declare const convertHHMMSStoSeconds: (time: string) => number;
6
- export declare const getRemainTime: (startTime: string, duration: string) => number | null;
@@ -1,2 +0,0 @@
1
- declare const _default: (time?: string | undefined) => string;
2
- export default _default;
@@ -1 +0,0 @@
1
- export declare const toLocalTime: (time?: string | undefined, FORMAT?: string | undefined) => string;
@@ -1 +0,0 @@
1
- export declare const checkSuperUrl: (superUrls: string[], pathname: string) => boolean;
@@ -1,9 +0,0 @@
1
- export interface INavigateProps {
2
- history: any;
3
- }
4
- export declare enum ExamEvent {
5
- StartExam = "start-exam",
6
- TerminateExam = "terminate-exam",
7
- AddExtraDuration = "add-extra-duration-exam",
8
- TeacherKickOutStudent = "teacher-kick-out-student"
9
- }
@@ -1,2 +0,0 @@
1
- declare const _default: (time?: string | undefined, FORMAT?: string | undefined) => string;
2
- export default _default;