mario-core 1.0.1-arabic-layout → 1.0.1-es-alpha
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 +91 -0
- package/dist/components/Alerts/EmptyDataAlert.d.ts +2 -2
- package/dist/components/Alerts/ReactNotification.d.ts +2 -2
- package/dist/components/Buttons/AddButton.d.ts +1 -0
- package/dist/components/Buttons/DetailActionButtons.d.ts +1 -0
- package/dist/components/Buttons/LinkEditButton.d.ts +1 -0
- package/dist/components/Image/UploadImage.d.ts +2 -2
- package/dist/components/Inputs/FileInput.d.ts +2 -2
- package/dist/components/Inputs/PasswordInput.d.ts +0 -1
- package/dist/components/Inputs/SearchBoxContainer.d.ts +2 -2
- package/dist/components/Labels/RequiredLabel.d.ts +1 -0
- package/dist/components/Modals/ModelSelectRole.d.ts +2 -2
- package/dist/components/Modals/NotificationLogoutModal.d.ts +2 -2
- package/dist/components/Modals/NotificationModal.d.ts +2 -2
- package/dist/components/Others/QuitPrompt.d.ts +5 -2
- package/dist/components/Pagination/CustomPagination.d.ts +2 -2
- package/dist/components/Selectors/AcademicClassSelector.d.ts +2 -2
- package/dist/components/Selectors/CreatableSelector.d.ts +2 -2
- package/dist/components/Selectors/CustomSelector.d.ts +2 -2
- package/dist/components/Selectors/MailCategorySelectors.d.ts +2 -2
- package/dist/components/Selectors/QuestionCategorySelector.d.ts +2 -2
- package/dist/components/Selectors/QuestionTypeSelector.d.ts +2 -2
- package/dist/components/Selectors/StarRatingSelector.d.ts +2 -2
- package/dist/components/Selectors/SuggestionCategorySelector.d.ts +2 -2
- package/dist/components/Tabs/CustomTab.d.ts +2 -2
- package/dist/configs/i18n.d.ts +9 -0
- package/dist/containers/EmailTemplate/components/AttachmentFile.d.ts +1 -0
- package/dist/containers/EmailTemplate/components/MailParam.d.ts +1 -0
- package/dist/containers/EmailTemplate/configs/emailTemplateSchema.d.ts +11 -11
- package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +0 -1
- package/dist/containers/Gallery/components/Filter.d.ts +1 -0
- package/dist/containers/Gallery/components/Media.d.ts +1 -0
- package/dist/containers/Gallery/components/MediaNav.d.ts +1 -0
- package/dist/containers/Login/constant/types.d.ts +3 -7
- package/dist/containers/Login/hooks/useForgotPassword.d.ts +1 -3
- package/dist/containers/Login/hooks/useLogin.d.ts +7 -7
- package/dist/containers/Login/views/Dashboard.d.ts +3 -2
- package/dist/containers/Login/views/Login.d.ts +2 -3
- package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +2 -2
- package/dist/containers/Login/views/block/BlockLogin.d.ts +0 -12
- package/dist/containers/Login/views/block/BlockResetPassword.d.ts +2 -2
- package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +1 -0
- package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +2 -2
- package/dist/containers/Login/views/block/QuoteContent.d.ts +2 -2
- package/dist/containers/Notifications/hooks/useNotificationList.d.ts +1 -1
- package/dist/containers/Notifications/views/NotificationList.d.ts +2 -2
- package/dist/containers/Skill/components/SkillSelector.d.ts +2 -2
- package/dist/containers/Skill/hooks/useSkillList.d.ts +1 -0
- package/dist/containers/User/components/FilterPopover.d.ts +1 -1
- package/dist/containers/User/components/HeaderCell.d.ts +1 -2
- package/dist/containers/User/components/TableHeader.d.ts +1 -2
- package/dist/containers/User/components/TeacherSelector.d.ts +2 -2
- package/dist/containers/User/configs/changePasswordSchema.d.ts +10 -9
- package/dist/containers/User/{constants → configs}/constants.d.ts +9 -12
- package/dist/containers/User/{constants/types.d.ts → configs/type.d.ts} +45 -98
- package/dist/containers/User/configs/userSchema.d.ts +13 -13
- package/dist/containers/User/hooks/useAssignStudent.d.ts +1 -11
- package/dist/containers/User/hooks/useAssignStudentList.d.ts +2 -2
- package/dist/containers/User/hooks/useAssistantList.d.ts +2 -2
- package/dist/containers/User/hooks/useCounselorList.d.ts +2 -2
- package/dist/containers/User/hooks/useFilterPopover.d.ts +3 -3
- package/dist/containers/User/hooks/useTableHeader.d.ts +1 -2
- package/dist/containers/User/hooks/useTeacherList.d.ts +3 -3
- package/dist/containers/User/hooks/useUserDetail.d.ts +4 -5
- package/dist/containers/User/hooks/useUserList.d.ts +4 -5
- package/dist/containers/User/hooks/userFilters.d.ts +1 -1
- package/dist/containers/User/views/AssignStudentList.d.ts +2 -2
- package/dist/containers/User/views/UserContainer.d.ts +2 -2
- package/dist/containers/User/views/UserDetail.d.ts +2 -2
- package/dist/containers/User/views/UserList.d.ts +2 -2
- package/dist/index.css +696 -500
- package/dist/index.d.ts +10 -16
- package/dist/index.js +10623 -28975
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10630 -28970
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/TheContent.d.ts +1 -1
- package/dist/layouts/TheFooter.d.ts +1 -1
- package/dist/layouts/TheHeader.d.ts +2 -2
- package/dist/layouts/TheHeaderDropdown.d.ts +2 -2
- package/dist/layouts/TheLanguageDropdown.d.ts +2 -2
- package/dist/layouts/TheLayout.d.ts +2 -2
- package/dist/layouts/TheSidebar.d.ts +2 -2
- package/dist/redux/assessments/reducer.d.ts +9 -1
- package/dist/redux/assignment/reducer.d.ts +3 -1
- package/dist/redux/assistants/reducer.d.ts +3 -1
- package/dist/redux/badges/reducer.d.ts +3 -1
- package/dist/redux/bandScores/reducer.d.ts +3 -1
- package/dist/redux/certificate/reducer.d.ts +3 -1
- package/dist/redux/classes/reducer.d.ts +3 -1
- package/dist/redux/commons/action.d.ts +2 -5
- package/dist/redux/commons/reducer.d.ts +3 -1
- package/dist/redux/conferenceRubrics/reducer.d.ts +3 -1
- package/dist/redux/customAlert/reducer.d.ts +3 -1
- package/dist/redux/dashboard/reducer.d.ts +3 -1
- package/dist/redux/dataPlayer/reducer.d.ts +3 -1
- package/dist/redux/emailTemplates/reducer.d.ts +3 -1
- package/dist/redux/faqs/reducer.d.ts +3 -1
- package/dist/redux/feedback/reducer.d.ts +3 -1
- package/dist/redux/gallery/reducer.d.ts +3 -1
- package/dist/redux/goalExamples/reducer.d.ts +3 -1
- package/dist/redux/improveMyClass/reducer.d.ts +3 -1
- package/dist/redux/learningStrategies/reducer.d.ts +3 -1
- package/dist/redux/learningSupportCategories/reducer.d.ts +3 -1
- package/dist/redux/mailCategories/reducer.d.ts +3 -1
- package/dist/redux/navMobile/reducer.d.ts +3 -1
- package/dist/redux/notifications/reducer.d.ts +3 -1
- package/dist/redux/questionBanks/reducer.d.ts +3 -1
- package/dist/redux/questionByCategory/reducer.d.ts +3 -1
- package/dist/redux/questionCategory/reducer.d.ts +3 -1
- package/dist/redux/reflectionForms/reducer.d.ts +3 -1
- package/dist/redux/reflectionResults/reducer.d.ts +3 -1
- package/dist/redux/schoolBlankDays/reducer.d.ts +3 -1
- package/dist/redux/semester/reducer.d.ts +3 -1
- package/dist/redux/sessionPlayers/reducer.d.ts +3 -1
- package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +3 -1
- package/dist/redux/sessionTemplates/reducer.d.ts +3 -1
- package/dist/redux/skills/reducer.d.ts +3 -1
- package/dist/redux/subjects/reducer.d.ts +3 -1
- package/dist/redux/suggestionBanks/reducer.d.ts +3 -1
- package/dist/redux/teacher/myStudent/reducer.d.ts +3 -1
- package/dist/redux/tutorialScreen/reducer.d.ts +9 -1
- package/dist/redux/users/reducer.d.ts +3 -1
- package/dist/redux/widget/reducer.d.ts +3 -1
- package/dist/rootReducer.d.ts +49 -7
- package/dist/services/accountService.d.ts +13 -18
- package/dist/services/classService.d.ts +1 -1
- package/dist/services/emailTemplateService.d.ts +5 -6
- package/dist/services/faqService.d.ts +5 -5
- package/dist/services/fileServices.d.ts +13 -13
- package/dist/services/galleryService.d.ts +1 -1
- package/dist/services/languageService.d.ts +1 -0
- package/dist/services/mailCategoryService.d.ts +1 -1
- package/dist/services/notificationService.d.ts +7 -7
- package/dist/services/questionCategoryService.d.ts +1 -3
- package/dist/services/schoolService.d.ts +1 -2
- package/dist/services/skillService.d.ts +5 -5
- package/dist/services/suggestionCategoryService.d.ts +1 -1
- package/dist/services/userService.d.ts +18 -27
- package/dist/types/Filter.d.ts +0 -6
- package/dist/utils/constants.d.ts +5 -9
- package/package.json +54 -72
- package/dist/components/Alerts/SandboxAlert.d.ts +0 -3
- package/dist/components/Buttons/SyncButton.d.ts +0 -8
- package/dist/components/Selectors/CategorySelector.d.ts +0 -3
- package/dist/components/Selectors/constants/constant.d.ts +0 -10
- package/dist/components/Selectors/hooks/useCategorySelector.d.ts +0 -5
- package/dist/containers/Login/hooks/useCreatePassword.d.ts +0 -13
- package/dist/containers/Login/views/block/BlockAssignTeacherByCode.d.ts +0 -8
- package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +0 -3
- package/dist/containers/User/hooks/useExportUsersCsv.d.ts +0 -5
- package/dist/containers/User/hooks/useRosterUserSelector.d.ts +0 -8
- package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +0 -10
- package/dist/containers/User/views/RosterUserSelector.d.ts +0 -8
- package/dist/index.test.d.ts +0 -1
- package/dist/redux/weeklyQuests/action.d.ts +0 -2
- package/dist/redux/weeklyQuests/reducer.d.ts +0 -6
- package/dist/types/Payload.d.ts +0 -16
- package/dist/types/user.d.ts +0 -3
package/README.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# mario-core
|
|
2
|
+
|
|
3
|
+
> Core library for Mario Framework - migrated components from ClientApp
|
|
4
|
+
|
|
5
|
+
## About
|
|
6
|
+
|
|
7
|
+
This is an npm library containing shared components, hooks, utilities, and Redux logic for the Mario Framework ecosystem. It is designed to be imported and used across multiple Mario applications.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install mario-core
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Or with yarn:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
yarn add mario-core
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { greet } from 'mario-core';
|
|
25
|
+
|
|
26
|
+
console.log(greet('Mario')); // Hello, Mario from mario-core-client!
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Development
|
|
30
|
+
|
|
31
|
+
### Setup
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npm install
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Build
|
|
38
|
+
|
|
39
|
+
Build the library for production:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm run build
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
This will generate the distributable files in the `dist/` directory:
|
|
46
|
+
- `dist/index.es.js` - ES module format
|
|
47
|
+
- `dist/index.cjs.js` - CommonJS format
|
|
48
|
+
- `dist/index.d.ts` - TypeScript type definitions
|
|
49
|
+
|
|
50
|
+
### Development Mode
|
|
51
|
+
|
|
52
|
+
Run the build in watch mode for development:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npm run dev
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Linting
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
npm run lint
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Publishing
|
|
65
|
+
|
|
66
|
+
Before publishing, make sure you have:
|
|
67
|
+
1. Updated the version in `package.json`
|
|
68
|
+
2. Built the library (`npm run build`)
|
|
69
|
+
3. Logged in to npm (`npm login`)
|
|
70
|
+
|
|
71
|
+
Then publish:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npm publish
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Or use dry-run to test:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npm pack --dry-run
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Peer Dependencies
|
|
84
|
+
|
|
85
|
+
This library requires the following peer dependencies:
|
|
86
|
+
- `react` >= 16.0.0
|
|
87
|
+
- `react-dom` >= 16.0.0
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
|
|
91
|
+
MIT
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CSSProperties
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
2
|
interface Props {
|
|
3
3
|
label: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
style?: CSSProperties;
|
|
6
6
|
}
|
|
7
|
-
declare const EmptyDataAlert:
|
|
7
|
+
declare const EmptyDataAlert: ({ label, className, style }: Props) => React.JSX.Element;
|
|
8
8
|
export default EmptyDataAlert;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const UploadImage: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const UploadImage: () => React.JSX.Element;
|
|
3
3
|
export default UploadImage;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
interface Props {
|
|
3
3
|
icon: React.ReactNode;
|
|
4
4
|
accept?: string | undefined;
|
|
5
5
|
callback: (fileName: string, filePath: string, fileType: string) => void;
|
|
6
6
|
}
|
|
7
|
-
declare const InputFile:
|
|
7
|
+
declare const InputFile: ({ icon, accept, callback }: Props) => React.JSX.Element;
|
|
8
8
|
export default InputFile;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
interface Props {
|
|
3
3
|
text: string;
|
|
4
4
|
onClick: () => void;
|
|
@@ -6,5 +6,5 @@ interface Props {
|
|
|
6
6
|
onSearch: (searchString?: string) => void;
|
|
7
7
|
placeholder: string;
|
|
8
8
|
}
|
|
9
|
-
declare const SearchBoxContainer:
|
|
9
|
+
declare const SearchBoxContainer: ({ text, initValue, onClick, onSearch, placeholder }: Props) => React.JSX.Element;
|
|
10
10
|
export default SearchBoxContainer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
export interface IModelSelectRole {
|
|
3
3
|
open: boolean;
|
|
4
4
|
onToggleModel: Function;
|
|
5
5
|
}
|
|
6
|
-
declare const ModelSelectRole: ({ open, onToggleModel }: IModelSelectRole) => JSX.Element;
|
|
6
|
+
declare const ModelSelectRole: ({ open, onToggleModel }: IModelSelectRole) => React.JSX.Element;
|
|
7
7
|
export default ModelSelectRole;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const NotificationLogoutModal: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const NotificationLogoutModal: () => React.JSX.Element;
|
|
3
3
|
export default NotificationLogoutModal;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const NotificationModal: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const NotificationModal: () => React.JSX.Element;
|
|
3
3
|
export default NotificationModal;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomPagination: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const CustomPagination: (props: any) => React.JSX.Element;
|
|
3
3
|
export default CustomPagination;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const AcademicClassSelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const AcademicClassSelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default AcademicClassSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CreatableSelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const CreatableSelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default CreatableSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomSelector: ({ defaultValue, options, isDisabled, scrollBottom, ...rest }: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const CustomSelector: ({ defaultValue, options, isDisabled, scrollBottom, className, ...rest }: any) => React.JSX.Element;
|
|
3
3
|
export default CustomSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const MailCategorySelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const MailCategorySelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default MailCategorySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const QuestionCategorySelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const QuestionCategorySelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default QuestionCategorySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const QuestionTypeSelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const QuestionTypeSelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default QuestionTypeSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const StarRatingSelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const StarRatingSelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default StarRatingSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SuggestionCategorySelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const SuggestionCategorySelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default SuggestionCategorySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomTabs: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const CustomTabs: (props: any) => React.JSX.Element;
|
|
3
3
|
export default CustomTabs;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as yup from "yup";
|
|
2
|
-
declare const schema:
|
|
3
|
-
subject:
|
|
4
|
-
categoryId:
|
|
5
|
-
comment:
|
|
6
|
-
body:
|
|
7
|
-
},
|
|
8
|
-
subject:
|
|
9
|
-
categoryId:
|
|
10
|
-
comment:
|
|
11
|
-
body:
|
|
12
|
-
}
|
|
2
|
+
declare const schema: yup.ObjectSchema<{
|
|
3
|
+
subject: string;
|
|
4
|
+
categoryId: number;
|
|
5
|
+
comment: string | undefined;
|
|
6
|
+
body: string;
|
|
7
|
+
}, yup.AnyObject, {
|
|
8
|
+
subject: undefined;
|
|
9
|
+
categoryId: undefined;
|
|
10
|
+
comment: undefined;
|
|
11
|
+
body: undefined;
|
|
12
|
+
}, "">;
|
|
13
13
|
export default schema;
|
|
@@ -13,6 +13,7 @@ interface MediaNavInterface {
|
|
|
13
13
|
handleDownloadMedia: () => void;
|
|
14
14
|
handleDeleteMediaOrFolder: () => void;
|
|
15
15
|
showErrorAlert: (message: string) => void;
|
|
16
|
+
className?: string;
|
|
16
17
|
}
|
|
17
18
|
declare const _default: React.NamedExoticComponent<MediaNavInterface>;
|
|
18
19
|
export default _default;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
export interface ICreatePassword {
|
|
2
|
-
password: string;
|
|
3
|
-
reEnterPassword: string;
|
|
4
|
-
email: string;
|
|
5
|
-
userId: string;
|
|
6
|
-
token: string;
|
|
7
|
-
}
|
|
8
1
|
export declare enum TypeLogin {
|
|
9
2
|
Google = 0,
|
|
10
3
|
ClassLink = 1,
|
|
@@ -29,3 +22,6 @@ export interface ISchool {
|
|
|
29
22
|
schoolLogo: string;
|
|
30
23
|
schoolId: number;
|
|
31
24
|
}
|
|
25
|
+
export interface IDashboard {
|
|
26
|
+
version?: string;
|
|
27
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ICreatePassword } from "../constant/types";
|
|
3
2
|
declare type ForgotPasswordInfo = {
|
|
4
3
|
email: string;
|
|
5
4
|
captcha: string;
|
|
@@ -7,7 +6,7 @@ declare type ForgotPasswordInfo = {
|
|
|
7
6
|
declare const useForgotPassword: () => {
|
|
8
7
|
defaultInfo: ForgotPasswordInfo;
|
|
9
8
|
forgotPasswordRequest: (data: any) => Promise<void>;
|
|
10
|
-
checkResetTokenRequest: (token: string
|
|
9
|
+
checkResetTokenRequest: (token: string) => Promise<void>;
|
|
11
10
|
validLink: boolean;
|
|
12
11
|
resetPasswordRequest: (data: any) => Promise<void>;
|
|
13
12
|
openLogin: boolean;
|
|
@@ -18,6 +17,5 @@ declare const useForgotPassword: () => {
|
|
|
18
17
|
setIsShowReTypePassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
19
18
|
clickHandler: () => Promise<any>;
|
|
20
19
|
handleVerify: () => void;
|
|
21
|
-
initialValues: ICreatePassword;
|
|
22
20
|
};
|
|
23
21
|
export default useForgotPassword;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { ISchool, TypeLogin } from "../constant/types";
|
|
3
3
|
declare type LoginInfo = {
|
|
4
4
|
email: string;
|
|
5
5
|
password: string;
|
|
@@ -14,17 +14,17 @@ declare const useLogin: () => {
|
|
|
14
14
|
toggle: () => void;
|
|
15
15
|
isShowPassword: boolean;
|
|
16
16
|
setIsShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
|
-
fnIsCheckLogin: (type: TypeLogin, data: any, token: string, clickHandler
|
|
18
|
-
isLoginGoogle:
|
|
17
|
+
fnIsCheckLogin: (type: TypeLogin, data: any, token: string, clickHandler: any) => Promise<void>;
|
|
18
|
+
isLoginGoogle: boolean;
|
|
19
19
|
infoUser: any;
|
|
20
|
+
setInfoUser: import("react").Dispatch<any>;
|
|
20
21
|
submitLogin: (teacherId: number, clickHandler: any) => Promise<void>;
|
|
22
|
+
setIsLoginGoogle: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
21
23
|
googleClientId: string;
|
|
22
24
|
googleRecaptchaId: string;
|
|
23
|
-
handleCancelModelAssign: () => void;
|
|
24
|
-
openModelAssign: boolean;
|
|
25
|
-
fnLoginSSO: (clickHandler?: any) => Promise<void>;
|
|
26
25
|
school: ISchool;
|
|
27
|
-
|
|
26
|
+
fnLoginSSO: (clickHandler?: any) => Promise<void>;
|
|
28
27
|
handleLoginWidthClever: () => void;
|
|
28
|
+
extensionEmail: string;
|
|
29
29
|
};
|
|
30
30
|
export default useLogin;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
interface loginProps {
|
|
3
3
|
isLogin?: boolean;
|
|
4
4
|
isForgotPassword?: boolean;
|
|
5
5
|
isResetPassword?: boolean;
|
|
6
6
|
isLoginTwoFactor?: boolean;
|
|
7
|
-
isCreatePassword?: boolean;
|
|
8
7
|
}
|
|
9
|
-
declare const Login: (props: loginProps) => JSX.Element;
|
|
8
|
+
declare const Login: (props: loginProps) => React.JSX.Element;
|
|
10
9
|
export default Login;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ISchool } from "../../constant/types";
|
|
3
3
|
interface Props {
|
|
4
4
|
school: ISchool;
|
|
5
5
|
}
|
|
6
|
-
declare const BlockForgetPassword: ({ school }: Props) => JSX.Element;
|
|
6
|
+
declare const BlockForgetPassword: ({ school }: Props) => React.JSX.Element;
|
|
7
7
|
export default BlockForgetPassword;
|
|
@@ -3,19 +3,7 @@ import { ISchool } from "../../constant/types";
|
|
|
3
3
|
interface Props {
|
|
4
4
|
defaultInfo?: any;
|
|
5
5
|
userLogin?: any;
|
|
6
|
-
onCancelModelAssign: Function;
|
|
7
|
-
openModelAssign: boolean;
|
|
8
6
|
school: ISchool;
|
|
9
|
-
isShowPassword: boolean;
|
|
10
|
-
setIsShowPassword: Function;
|
|
11
|
-
fnIsCheckLogin: Function;
|
|
12
|
-
isLoginGoogle: boolean;
|
|
13
|
-
submitLogin: Function;
|
|
14
|
-
infoUser: any;
|
|
15
|
-
googleClientId: string;
|
|
16
|
-
fnLoginSSO: Function;
|
|
17
|
-
extensionEmail: string;
|
|
18
|
-
onLoginWidthClever: Function;
|
|
19
7
|
}
|
|
20
8
|
declare const BlockLogin: FC<Props>;
|
|
21
9
|
export default BlockLogin;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const BlockResetPassword: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const BlockResetPassword: () => React.JSX.Element;
|
|
3
3
|
export default BlockResetPassword;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const BlockTwoFactorLogin: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const BlockTwoFactorLogin: () => React.JSX.Element;
|
|
3
3
|
export default BlockTwoFactorLogin;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const QuoteContent: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const QuoteContent: () => React.JSX.Element;
|
|
3
3
|
export default QuoteContent;
|
|
@@ -9,7 +9,7 @@ declare const useNotificationList: () => {
|
|
|
9
9
|
isRead: boolean;
|
|
10
10
|
};
|
|
11
11
|
changeFilters: (objectValue: any) => void;
|
|
12
|
-
updateNotification: (id:
|
|
12
|
+
updateNotification: (id: number, isRead: boolean) => void;
|
|
13
13
|
viewNotification: (notification: any) => void;
|
|
14
14
|
updateAll: () => Promise<void>;
|
|
15
15
|
toggleUpdateAllStatus: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const NotificationList: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const NotificationList: () => React.JSX.Element;
|
|
3
3
|
export default NotificationList;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SkillSelector: (props: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const SkillSelector: (props: any) => React.JSX.Element;
|
|
3
3
|
export default SkillSelector;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { PopoverProps } from "reactstrap";
|
|
3
|
-
import { FilterOption, SearchBy, UserFilter, UserOrder } from "../
|
|
3
|
+
import { FilterOption, SearchBy, UserFilter, UserOrder } from "../configs/type";
|
|
4
4
|
interface Props extends PopoverProps {
|
|
5
5
|
filters?: UserFilter;
|
|
6
6
|
sortBy: UserOrder;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { SearchBy, UserColumn, UserFilter, UserOrder } from "../
|
|
2
|
+
import { SearchBy, UserColumn, UserFilter, UserOrder } from "../configs/type";
|
|
3
3
|
interface Props {
|
|
4
4
|
data: UserColumn;
|
|
5
5
|
popoverId?: string;
|
|
@@ -12,7 +12,6 @@ interface Props {
|
|
|
12
12
|
onOpenFilter?: (id: string, searchBy?: SearchBy, searchStringBy?: string, sortBy?: UserOrder) => void;
|
|
13
13
|
onClose?: () => void;
|
|
14
14
|
onChangeFilters?: (filter: UserFilter) => void;
|
|
15
|
-
isCenter?: boolean;
|
|
16
15
|
}
|
|
17
16
|
declare const HeaderCell: FC<Props>;
|
|
18
17
|
export default HeaderCell;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { UserColumn, UserFilter } from "../
|
|
2
|
+
import { UserColumn, UserFilter } from "../configs/type";
|
|
3
3
|
interface Props {
|
|
4
4
|
headers: UserColumn[];
|
|
5
5
|
filters: UserFilter;
|
|
6
6
|
fullName?: string;
|
|
7
7
|
onChangeFilters?: (filter: UserFilter) => void;
|
|
8
|
-
isStudentFilter?: boolean;
|
|
9
8
|
}
|
|
10
9
|
declare const TableHeader: FC<Props>;
|
|
11
10
|
export default TableHeader;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const TeacherSelector: ({ options, isDisabled, scrollBottom, onCreateOption, ...rest }: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const TeacherSelector: ({ options, isDisabled, scrollBottom, onCreateOption, ...rest }: any) => React.JSX.Element;
|
|
3
3
|
export default TeacherSelector;
|