mario-core 2.9.239-release → 2.9.241-release

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.
@@ -24,3 +24,7 @@ export declare enum LoginType {
24
24
  Google = 1,
25
25
  Impersonate = 2
26
26
  }
27
+ export interface ISchool {
28
+ schoolName: string;
29
+ schoolLogo: string;
30
+ }
@@ -1,10 +1,11 @@
1
1
  /// <reference types="react" />
2
- import { TypeLogin } from "../constant/types";
2
+ import { TypeLogin, ISchool } from "../constant/types";
3
3
  declare type LoginInfo = {
4
4
  email: string;
5
5
  password: string;
6
6
  captcha: string;
7
7
  rememberMe: boolean;
8
+ isSessionUserBrowser?: boolean;
8
9
  };
9
10
  declare const useLogin: () => {
10
11
  defaultInfo: LoginInfo;
@@ -22,5 +23,6 @@ declare const useLogin: () => {
22
23
  handleCancelModelAssign: () => void;
23
24
  openModelAssign: boolean;
24
25
  fnLoginSSO: (clickHandler?: any) => Promise<void>;
26
+ school: ISchool;
25
27
  };
26
28
  export default useLogin;
@@ -1,3 +1,7 @@
1
1
  /// <reference types="react" />
2
- declare const BlockForgetPassword: () => JSX.Element;
2
+ import { ISchool } from "../../constant/types";
3
+ interface Props {
4
+ school: ISchool;
5
+ }
6
+ declare const BlockForgetPassword: ({ school }: Props) => JSX.Element;
3
7
  export default BlockForgetPassword;
@@ -1,9 +1,11 @@
1
1
  import { FC } from "react";
2
+ import { ISchool } from "../../constant/types";
2
3
  interface Props {
3
4
  defaultInfo?: any;
4
5
  userLogin?: any;
5
6
  onCancelModelAssign: Function;
6
7
  openModelAssign: boolean;
8
+ school: ISchool;
7
9
  }
8
10
  declare const BlockLogin: FC<Props>;
9
11
  export default BlockLogin;
package/dist/index.css CHANGED
@@ -10,9 +10,34 @@
10
10
 
11
11
  ._2HqmH {
12
12
  width: 100%;
13
- justify-content: center; }
13
+ justify-content: center;
14
+ border-radius: 50px !important;
15
+ border: none !important;
16
+ box-shadow: none !important;
17
+ background-color: #EFF3FC !important; }
14
18
  ._2HqmH > span {
15
- font-family: "Poppins-Regular" !important; }
19
+ font-family: "Poppins-Regular" !important;
20
+ color: #316CD9 !important;
21
+ line-height: 27px !important;
22
+ font-size: 18px !important;
23
+ font-weight: 700 !important; }
24
+ @media (max-width: 768px) {
25
+ ._2HqmH > span {
26
+ font-size: 14px !important;
27
+ line-height: 21px !important; } }
28
+ ._2HqmH > div {
29
+ padding: 0 !important; }
30
+ ._2HqmH > div > svg {
31
+ background: #EFF3FC !important;
32
+ transform: scale(1.5);
33
+ margin-right: 3px; }
34
+
35
+ ._2HqmH:hover {
36
+ background-color: #316CD9 !important; }
37
+ ._2HqmH:hover > span {
38
+ color: #ffffff !important; }
39
+ ._2HqmH:hover > div > svg {
40
+ background: #316CD9 !important; }
16
41
 
17
42
  ._2sew7 {
18
43
  top: -4px;
@@ -79,7 +104,7 @@
79
104
  opacity: 0.8; }
80
105
 
81
106
  ._38Lo1 {
82
- width: 826px; }
107
+ max-width: 524px; }
83
108
 
84
109
  ._1OzGy {
85
110
  width: 50%;
@@ -88,17 +113,18 @@
88
113
 
89
114
  ._wWIyO {
90
115
  width: 100%;
91
- height: 100%;
92
- background-color: #ffffff;
93
- border-radius: 5px 0 0 5px;
94
- box-shadow: 0 3px 6px #00000029; }
116
+ height: 100%; }
95
117
 
96
118
  ._3nuns {
97
- font-size: 24px;
119
+ font-size: 48px;
98
120
  font-weight: bold;
99
- line-height: 28px;
100
- margin-bottom: 30px;
121
+ line-height: 56px;
122
+ margin-bottom: 15px;
101
123
  font-family: "Montserrat-Bold" !important; }
124
+ @media (max-width: 768px) {
125
+ ._3nuns {
126
+ font-size: 32px;
127
+ line-height: 40px; } }
102
128
 
103
129
  ._21qb6 {
104
130
  margin-bottom: 5px; }
@@ -127,6 +153,30 @@
127
153
  outline: none;
128
154
  width: 100%;
129
155
  font-family: "Poppins-Regular" !important; }
156
+ @media (max-width: 768px) {
157
+ ._3IL10 {
158
+ padding: 10px 27px; } }
159
+
160
+ ._2OUwW {
161
+ height: 56px; }
162
+
163
+ ._2Owso {
164
+ font-size: 16px;
165
+ font-family: "Poppins-Regular" !important;
166
+ line-height: 24px; }
167
+ @media (max-width: 768px) {
168
+ ._2Owso {
169
+ font-size: 14px; } }
170
+
171
+ ._fx-kA {
172
+ font-size: 16px;
173
+ font-weight: 400;
174
+ line-height: 24px;
175
+ text-align: left;
176
+ opacity: 0.6; }
177
+ @media (max-width: 768px) {
178
+ ._fx-kA {
179
+ font-size: 14px; } }
130
180
 
131
181
  ._141p1 {
132
182
  bottom: 20px;
@@ -150,11 +200,30 @@
150
200
  font-size: 16px;
151
201
  display: inline-block;
152
202
  font-weight: 500;
153
- font-family: "Poppins-Regular" !important; }
203
+ font-family: "Poppins-Regular" !important;
204
+ -webkit-text-decoration: revert;
205
+ text-decoration: revert; }
154
206
  ._3bDsd:hover {
155
- color: #336dda;
156
- -webkit-text-decoration: revert;
157
- text-decoration: revert; }
207
+ color: #336dda; }
208
+ @media (max-width: 768px) {
209
+ ._3bDsd {
210
+ font-size: 14px; } }
211
+
212
+ ._I4SVu {
213
+ color: #336dda;
214
+ font-size: 16px;
215
+ display: inline-block;
216
+ font-weight: 500;
217
+ font-family: "Poppins-Regular" !important;
218
+ -webkit-text-decoration: revert;
219
+ text-decoration: revert;
220
+ bottom: 20px;
221
+ position: absolute; }
222
+ ._I4SVu:hover {
223
+ color: #336dda; }
224
+ @media (max-width: 768px) {
225
+ ._I4SVu {
226
+ font-size: 14px; } }
158
227
 
159
228
  ._11FZt {
160
229
  font-weight: 500; }
@@ -228,49 +297,97 @@
228
297
  ._32V6L ._3OgWF {
229
298
  width: 70%; }
230
299
 
231
- ._wWIyO {
232
- padding: 60px 50px;
233
- position: relative; }
234
- ._wWIyO label:not(._11FZt) {
235
- color: #8f9bb3;
236
- text-transform: uppercase; }
237
- ._wWIyO input[type="text"],
238
- ._wWIyO input[type="password"] {
239
- width: 100%;
240
- border-radius: 4px;
241
- background-color: #f7f9fc;
242
- height: 50px;
243
- margin-bottom: 5px;
244
- padding: 4px; }
245
- ._wWIyO ._39BJD {
246
- margin-bottom: 30px; }
247
- ._wWIyO ._39BJD ._ozRAq:disabled {
248
- background: #E5E5E5; }
249
- ._wWIyO input[type="checkbox"]._2K9b2 {
250
- margin-left: 0; }
251
- ._wWIyO ._11FZt {
252
- padding-left: 20px; }
253
- ._wWIyO ._3IL10 {
254
- margin: 30px 0;
255
- color: rgba(0, 0, 0, 0.36);
256
- font-weight: 500;
257
- font-family: "Poppins-Regular" !important; }
258
- ._wWIyO ._3IL10:hover {
259
- background-color: #2196f3;
260
- color: #ffffff; }
261
- ._wWIyO ._2VvIr {
262
- border-radius: 50px; }
263
- ._wWIyO ._2A0HF {
264
- background: #316CD9;
265
- color: #FFFFFF; }
266
- ._wWIyO ._3LXoI {
267
- position: absolute;
268
- margin-left: auto;
269
- margin-right: auto;
270
- left: 0;
271
- right: 0;
272
- bottom: 0;
273
- text-align: center; }
300
+ ._wWIyO label:not(._11FZt) {
301
+ color: #8f9bb3;
302
+ text-transform: uppercase; }
303
+
304
+ ._wWIyO input[type="text"],
305
+ ._wWIyO input[type="password"] {
306
+ width: 100%;
307
+ border-radius: 8px;
308
+ border: 1px solid #D3D3D3;
309
+ height: 50px;
310
+ margin-bottom: 5px;
311
+ padding: 5px 15px; }
312
+
313
+ ._wWIyO input[type="text"]::-moz-placeholder, ._wWIyO input[type="password"]::-moz-placeholder {
314
+ color: #D3D3D3;
315
+ font-size: 16px;
316
+ font-weight: 400; }
317
+
318
+ ._wWIyO input[type="text"]:-ms-input-placeholder, ._wWIyO input[type="password"]:-ms-input-placeholder {
319
+ color: #D3D3D3;
320
+ font-size: 16px;
321
+ font-weight: 400; }
322
+
323
+ ._wWIyO input[type="text"]::placeholder,
324
+ ._wWIyO input[type="password"]::placeholder {
325
+ color: #D3D3D3;
326
+ font-size: 16px;
327
+ font-weight: 400; }
328
+
329
+ ._wWIyO ._1AiX0 {
330
+ transform: scale(1.3);
331
+ margin-left: 2px; }
332
+
333
+ ._wWIyO ._2uNvW {
334
+ font-size: 16px;
335
+ line-height: 27px; }
336
+ @media (max-width: 768px) {
337
+ ._wWIyO ._2uNvW {
338
+ font-size: 14px; } }
339
+
340
+ ._wWIyO ._pqn4y {
341
+ font-size: 18px;
342
+ opacity: 0.56; }
343
+ @media (max-width: 768px) {
344
+ ._wWIyO ._pqn4y {
345
+ font-size: 14px; } }
346
+
347
+ ._wWIyO ._39BJD {
348
+ margin-bottom: 30px; }
349
+ ._wWIyO ._39BJD ._ozRAq:disabled {
350
+ background: #E5E5E5; }
351
+
352
+ ._wWIyO input[type="checkbox"]._2K9b2 {
353
+ margin-left: 0; }
354
+
355
+ ._wWIyO ._11FZt {
356
+ padding-left: 20px; }
357
+
358
+ ._wWIyO ._3IL10 {
359
+ margin-top: 30px;
360
+ color: #ffffff;
361
+ font-weight: 500;
362
+ font-family: "Poppins-Regular" !important;
363
+ font-size: 18px;
364
+ font-weight: 700;
365
+ border-radius: 100px;
366
+ background-color: #316CD9;
367
+ line-height: 27px; }
368
+ ._wWIyO ._3IL10:hover {
369
+ background-color: #2196f3;
370
+ color: #ffffff; }
371
+ @media (max-width: 768px) {
372
+ ._wWIyO ._3IL10 {
373
+ font-size: 14px;
374
+ line-height: 21px; } }
375
+
376
+ ._wWIyO ._2VvIr {
377
+ border-radius: 50px; }
378
+
379
+ ._wWIyO ._2A0HF {
380
+ background: #316CD9;
381
+ color: #FFFFFF; }
382
+
383
+ ._wWIyO ._3LXoI {
384
+ position: absolute;
385
+ margin-left: auto;
386
+ margin-right: auto;
387
+ left: 0;
388
+ right: 0;
389
+ bottom: 0;
390
+ text-align: center; }
274
391
 
275
392
  ._23Sua {
276
393
  min-height: 40vh; }
@@ -334,7 +451,6 @@
334
451
  opacity: 1; } }
335
452
 
336
453
  ._F-hjL {
337
- background-color: #336dda;
338
454
  background-repeat: no-repeat;
339
455
  background-size: cover;
340
456
  width: 100%;
@@ -342,7 +458,6 @@
342
458
  background-position: center; }
343
459
  @media (max-width: 768px) {
344
460
  ._F-hjL {
345
- background-color: #336dda;
346
461
  overflow: hidden; } }
347
462
  ._F-hjL ._149oA {
348
463
  position: relative;
@@ -604,6 +719,9 @@
604
719
  width: 358px; }
605
720
  ._wWIyO {
606
721
  padding: 50px 20px !important; } }
722
+ @media (max-width: 575px) and (max-width: 768px) {
723
+ ._wWIyO {
724
+ padding-top: 30px !important; } }
607
725
 
608
726
  @media (max-width: 768px) {
609
727
  ._2v-L_ {
@@ -713,15 +831,35 @@
713
831
  padding: 10px 20px; }
714
832
 
715
833
  ._DrSlA {
716
- text-align: center;
717
- background: #e5e5e5;
834
+ background: #EFF3FC;
718
835
  font-size: 15px;
719
836
  color: #ad9292;
720
- border-radius: 8px;
721
- cursor: pointer; }
837
+ border-radius: 50px;
838
+ cursor: pointer;
839
+ display: flex;
840
+ align-items: center;
841
+ justify-content: center;
842
+ padding: 10px 0; }
722
843
  ._DrSlA img {
723
- width: 65px;
724
- height: auto; }
844
+ width: 26px;
845
+ height: auto;
846
+ margin-right: 10px; }
847
+ ._DrSlA p {
848
+ margin-bottom: 0;
849
+ font-size: 18px;
850
+ font-weight: 700;
851
+ line-height: 27px;
852
+ text-align: left;
853
+ color: #316CD9; }
854
+ @media (max-width: 768px) {
855
+ ._DrSlA p {
856
+ font-size: 14px;
857
+ line-height: 21px; } }
858
+
859
+ ._DrSlA:hover {
860
+ background: #316CD9; }
861
+ ._DrSlA:hover p {
862
+ color: #ffffff; }
725
863
 
726
864
  ._3Vgah {
727
865
  padding-top: 108px;
package/dist/index.d.ts CHANGED
@@ -51,7 +51,7 @@ import useGalleryList from "./containers/Gallery/hooks/useGalleryList";
51
51
  import QuitPrompt from "./components/Others/QuitPrompt";
52
52
  import AcademicClassSelector from "./components/Selectors/AcademicClassSelector";
53
53
  import SchoolList from "./containers/DistrictSchools/views/SchoolList";
54
- import { INIT_AMPLITUDE_KEY_STAGE, INIT_AMPLITUDE_KEY_PROD, isLocalhost } from "./utils/constants";
54
+ import { INIT_AMPLITUDE_KEY_STAGE, INIT_AMPLITUDE_KEY_PROD, isLocalhost, IS_USER_SESSION_BROWSER } from "./utils/constants";
55
55
  import store from "./store";
56
56
  import { api, apiUpload } from "./services/api";
57
57
  import editorConfig from "./configs/editorConfig";
@@ -114,4 +114,4 @@ import useFilters from "./hooks/useFilters";
114
114
  import amplitude from "amplitude-js";
115
115
  import { setWeeklyQuestList, setOpenModelCongratulation } from "./redux/weeklyQuests/action";
116
116
  declare const amplitudeClient: amplitude.AmplitudeClient;
117
- 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, getCookieValue };
117
+ 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, IS_USER_SESSION_BROWSER, getCookieValue };