mario-core 2.9.202-release → 2.9.203-plp
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/Selectors/constants/constant.d.ts +1 -1
- package/dist/containers/Login/constant/authConfig.d.ts +38 -0
- package/dist/containers/Login/constant/types.d.ts +14 -0
- package/dist/containers/Login/hooks/useLogin.d.ts +7 -4
- package/dist/containers/Login/views/block/BlockAssignTeacherByCode.d.ts +8 -0
- package/dist/containers/Login/views/block/BlockLogin.d.ts +3 -0
- package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +0 -1
- package/dist/containers/User/constants/types.d.ts +1 -0
- package/dist/index.css +46 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8698 -382
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8697 -383
- package/dist/index.modern.js.map +1 -1
- package/dist/redux/commons/action.d.ts +2 -0
- package/dist/redux/weeklyQuests/action.d.ts +2 -0
- package/dist/redux/weeklyQuests/reducer.d.ts +6 -0
- package/dist/rootReducer.d.ts +5 -0
- package/dist/services/accountService.d.ts +4 -1
- package/dist/services/weeklyQuestService.d.ts +1 -0
- package/dist/types/WeeklyQuest.d.ts +37 -0
- package/package.json +4 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LogLevel } from "@azure/msal-browser";
|
|
2
|
+
/**
|
|
3
|
+
* Configuration object to be passed to MSAL instance on creation.
|
|
4
|
+
* For a full list of MSAL.js configuration parameters, visit:
|
|
5
|
+
* https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md
|
|
6
|
+
*/
|
|
7
|
+
export declare const msalConfig: {
|
|
8
|
+
auth: {
|
|
9
|
+
clientId: string;
|
|
10
|
+
authority: string;
|
|
11
|
+
redirectUri: string;
|
|
12
|
+
};
|
|
13
|
+
cache: {
|
|
14
|
+
cacheLocation: string;
|
|
15
|
+
storeAuthStateInCookie: boolean;
|
|
16
|
+
};
|
|
17
|
+
system: {
|
|
18
|
+
loggerOptions: {
|
|
19
|
+
loggerCallback: (level: LogLevel, message: string, containsPii: any) => void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Scopes you add here will be prompted for user consent during sign-in.
|
|
25
|
+
* By default, MSAL.js will add OIDC scopes (openid, profile, email) to any login request.
|
|
26
|
+
* For more information about OIDC scopes, visit:
|
|
27
|
+
* https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent#openid-connect-scopes
|
|
28
|
+
*/
|
|
29
|
+
export declare const loginRequest: {
|
|
30
|
+
scopes: string[];
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Add here the scopes to request when obtaining an access token for MS Graph API. For more information, see:
|
|
34
|
+
* https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/resources-and-scopes.md
|
|
35
|
+
*/
|
|
36
|
+
export declare const graphConfig: {
|
|
37
|
+
graphMeEndpoint: string;
|
|
38
|
+
};
|
|
@@ -5,3 +5,17 @@ export interface ICreatePassword {
|
|
|
5
5
|
userId: string;
|
|
6
6
|
token: string;
|
|
7
7
|
}
|
|
8
|
+
export declare enum TypeLogin {
|
|
9
|
+
Google = 0,
|
|
10
|
+
ClassLink = 1,
|
|
11
|
+
MicrosoftSSO = 2
|
|
12
|
+
}
|
|
13
|
+
export interface IInformationUser {
|
|
14
|
+
firstName: string;
|
|
15
|
+
lastName: string;
|
|
16
|
+
fullName: string;
|
|
17
|
+
imageUrl: string | null;
|
|
18
|
+
email: string;
|
|
19
|
+
accessToken: string;
|
|
20
|
+
googleId: string;
|
|
21
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { TypeLogin } from "../constant/types";
|
|
2
3
|
declare type LoginInfo = {
|
|
3
4
|
email: string;
|
|
4
5
|
password: string;
|
|
@@ -12,13 +13,15 @@ declare const useLogin: () => {
|
|
|
12
13
|
toggle: () => void;
|
|
13
14
|
isShowPassword: boolean;
|
|
14
15
|
setIsShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
15
|
-
fnIsCheckLogin: (data: any, token: string, clickHandler
|
|
16
|
-
isLoginGoogle:
|
|
16
|
+
fnIsCheckLogin: (type: TypeLogin, data: any, token: string, clickHandler?: any) => Promise<void>;
|
|
17
|
+
isLoginGoogle: any;
|
|
17
18
|
infoUser: any;
|
|
18
|
-
setInfoUser: import("react").Dispatch<any>;
|
|
19
19
|
submitLogin: (teacherId: number, clickHandler: any) => Promise<void>;
|
|
20
|
-
setIsLoginGoogle: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
21
20
|
googleClientId: string;
|
|
22
21
|
googleRecaptchaId: string;
|
|
22
|
+
handleCancelModelAssign: () => void;
|
|
23
|
+
openModelAssign: boolean;
|
|
24
|
+
handleAssignTeacherByCode: (teacherCode: string, setIsError: Function) => Promise<void>;
|
|
25
|
+
fnLoginSSO: (clickHandler?: any) => Promise<void>;
|
|
23
26
|
};
|
|
24
27
|
export default useLogin;
|
package/dist/index.css
CHANGED
|
@@ -712,6 +712,52 @@
|
|
|
712
712
|
font-size: 20px;
|
|
713
713
|
padding: 10px 20px; }
|
|
714
714
|
|
|
715
|
+
._DrSlA {
|
|
716
|
+
text-align: center;
|
|
717
|
+
background: #e5e5e5;
|
|
718
|
+
font-size: 15px;
|
|
719
|
+
color: #ad9292;
|
|
720
|
+
border-radius: 8px;
|
|
721
|
+
cursor: pointer; }
|
|
722
|
+
._DrSlA img {
|
|
723
|
+
width: 65px;
|
|
724
|
+
height: auto; }
|
|
725
|
+
|
|
726
|
+
._3Vgah {
|
|
727
|
+
padding-top: 108px;
|
|
728
|
+
padding-right: 16px; }
|
|
729
|
+
._3Vgah > div {
|
|
730
|
+
display: flex;
|
|
731
|
+
align-items: center;
|
|
732
|
+
justify-content: center;
|
|
733
|
+
font-weight: 600;
|
|
734
|
+
font-size: 16px;
|
|
735
|
+
line-height: 24px;
|
|
736
|
+
color: #242424;
|
|
737
|
+
padding: 12px 20px;
|
|
738
|
+
border: none;
|
|
739
|
+
border-radius: 8px; }
|
|
740
|
+
._1jraB > div {
|
|
741
|
+
background-color: #d9eee4; }
|
|
742
|
+
|
|
743
|
+
@media (max-width: 599.95px) {
|
|
744
|
+
._3Vgah {
|
|
745
|
+
padding-right: 8px;
|
|
746
|
+
padding-top: 72px;
|
|
747
|
+
max-width: 250px;
|
|
748
|
+
width: -webkit-fit-content;
|
|
749
|
+
width: -moz-fit-content;
|
|
750
|
+
width: fit-content; }
|
|
751
|
+
._3Vgah > div {
|
|
752
|
+
align-items: self-start;
|
|
753
|
+
font-size: 14px;
|
|
754
|
+
line-height: 20px; } }
|
|
755
|
+
|
|
756
|
+
@media (min-width: 599.95px) and (max-width: 1279.95px) {
|
|
757
|
+
._3Vgah {
|
|
758
|
+
padding-right: 8px;
|
|
759
|
+
padding-top: 88px; } }
|
|
760
|
+
|
|
715
761
|
._297lu {
|
|
716
762
|
width: 100%;
|
|
717
763
|
height: 100%; }
|
package/dist/index.d.ts
CHANGED
|
@@ -111,5 +111,6 @@ import { setStudentIdSelectedByTeacher } from "./redux/navMobile/action";
|
|
|
111
111
|
import { setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, setSandboxMode } from "./redux/commons/action";
|
|
112
112
|
import useFilters from "./hooks/useFilters";
|
|
113
113
|
import amplitude from "amplitude-js";
|
|
114
|
+
import { setWeeklyQuestList, setOpenModelCongratulation } from "./redux/weeklyQuests/action";
|
|
114
115
|
declare const amplitudeClient: amplitude.AmplitudeClient;
|
|
115
|
-
export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserContainer, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, NotificationLogoutModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, SandboxAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, CategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, setSandboxMode, i18n, useTranslation, I18nextProvider, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, NOTIFICATION_ALERT_KEY, GOOGLE_RECAPTCHA_KEY, DEFAULT_LANGUAGE_CODE, LANGUAGES, SUPPORTED_LANGUAGES_CODE, EMOTIONS, TAB_COLORS, SANDBOX_NOTIFICATION, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop, initAmplitude, amplitudeClient, INIT_AMPLITUDE_KEY_STAGE, INIT_AMPLITUDE_KEY_PROD, isLocalhost, getStaticFileUrl };
|
|
116
|
+
export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserList, UserContainer, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, NotificationLogoutModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, SandboxAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, CategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, setEnableSurvey, setConversationOneToOne, setLanguage, setWeeklyQuestList, setOpenModelCongratulation, setSandboxMode, i18n, useTranslation, I18nextProvider, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, NOTIFICATION_ALERT_KEY, GOOGLE_RECAPTCHA_KEY, DEFAULT_LANGUAGE_CODE, LANGUAGES, SUPPORTED_LANGUAGES_CODE, EMOTIONS, TAB_COLORS, SANDBOX_NOTIFICATION, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop, initAmplitude, amplitudeClient, INIT_AMPLITUDE_KEY_STAGE, INIT_AMPLITUDE_KEY_PROD, isLocalhost, getStaticFileUrl };
|