mario-core 2.9.139-up → 2.9.141-level
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/Alerts/ReactNotification.d.ts +2 -2
- package/dist/components/Image/UploadImage.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 +2 -2
- package/dist/components/Pagination/CustomPagination.d.ts +2 -2
- package/dist/components/Selectors/AcademicClassSelector.d.ts +2 -2
- package/dist/components/Selectors/CategorySelector.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/containers/Login/constant/type.d.ts +5 -0
- package/dist/containers/Login/views/Dashboard.d.ts +2 -2
- package/dist/containers/Login/views/Login.d.ts +2 -2
- package/dist/containers/Login/views/ModelSelectRole.d.ts +4 -0
- package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +2 -2
- package/dist/containers/Login/views/block/BlockResetPassword.d.ts +2 -2
- 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/views/NotificationList.d.ts +2 -2
- package/dist/containers/Skill/components/SkillSelector.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 +3 -3
- package/dist/index.js +45 -79
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +45 -79
- 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 +2 -2
- package/dist/redux/assignment/reducer.d.ts +1 -1
- package/dist/redux/assistants/reducer.d.ts +1 -1
- package/dist/redux/badges/reducer.d.ts +1 -1
- package/dist/redux/bandScores/reducer.d.ts +1 -1
- package/dist/redux/certificate/reducer.d.ts +1 -1
- package/dist/redux/classes/reducer.d.ts +1 -1
- package/dist/redux/commons/reducer.d.ts +1 -1
- package/dist/redux/conferenceRubrics/reducer.d.ts +1 -1
- package/dist/redux/customAlert/reducer.d.ts +1 -1
- package/dist/redux/dashboard/reducer.d.ts +1 -1
- package/dist/redux/dataPlayer/reducer.d.ts +1 -1
- package/dist/redux/emailTemplates/reducer.d.ts +1 -1
- package/dist/redux/faqs/reducer.d.ts +1 -1
- package/dist/redux/feedback/reducer.d.ts +1 -1
- package/dist/redux/gallery/reducer.d.ts +1 -1
- package/dist/redux/goalExamples/reducer.d.ts +1 -1
- package/dist/redux/improveMyClass/reducer.d.ts +1 -1
- package/dist/redux/learningStrategies/reducer.d.ts +1 -1
- package/dist/redux/learningSupportCategories/reducer.d.ts +1 -1
- package/dist/redux/mailCategories/reducer.d.ts +1 -1
- package/dist/redux/navMobile/reducer.d.ts +1 -1
- package/dist/redux/notifications/reducer.d.ts +1 -1
- package/dist/redux/questionBanks/reducer.d.ts +1 -1
- package/dist/redux/questionByCategory/reducer.d.ts +1 -1
- package/dist/redux/questionCategory/reducer.d.ts +1 -1
- package/dist/redux/reflectionForms/reducer.d.ts +1 -1
- package/dist/redux/reflectionResults/reducer.d.ts +1 -1
- package/dist/redux/schoolBlankDays/reducer.d.ts +1 -1
- package/dist/redux/semester/reducer.d.ts +1 -1
- package/dist/redux/sessionPlayers/reducer.d.ts +1 -1
- package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +1 -1
- package/dist/redux/sessionTemplates/reducer.d.ts +1 -1
- package/dist/redux/skills/reducer.d.ts +1 -1
- package/dist/redux/subjects/reducer.d.ts +1 -1
- package/dist/redux/suggestionBanks/reducer.d.ts +1 -1
- package/dist/redux/teacher/myStudent/reducer.d.ts +1 -1
- package/dist/redux/tutorialScreen/reducer.d.ts +2 -2
- package/dist/redux/users/reducer.d.ts +1 -1
- package/dist/redux/widget/reducer.d.ts +1 -1
- package/dist/utils/amplitude.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const UploadImage: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const UploadImage: () => JSX.Element;
|
|
3
3
|
export default UploadImage;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const NotificationLogoutModal: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const NotificationLogoutModal: () => JSX.Element;
|
|
3
3
|
export default NotificationLogoutModal;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const NotificationModal: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const NotificationModal: () => JSX.Element;
|
|
3
3
|
export default NotificationModal;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function QuitPrompt(props: any):
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export default function QuitPrompt(props: any): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomPagination: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const CustomPagination: (props: any) => JSX.Element;
|
|
3
3
|
export default CustomPagination;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const AcademicClassSelector: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const AcademicClassSelector: (props: any) => JSX.Element;
|
|
3
3
|
export default AcademicClassSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CategorySelector: ({ value, ...rest }: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const CategorySelector: ({ value, ...rest }: any) => JSX.Element;
|
|
3
3
|
export default CategorySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CreatableSelector: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const CreatableSelector: (props: any) => JSX.Element;
|
|
3
3
|
export default CreatableSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomSelector: ({ defaultValue, options, isDisabled, scrollBottom, ...rest }: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const CustomSelector: ({ defaultValue, options, isDisabled, scrollBottom, ...rest }: any) => JSX.Element;
|
|
3
3
|
export default CustomSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const MailCategorySelector: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const MailCategorySelector: (props: any) => JSX.Element;
|
|
3
3
|
export default MailCategorySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const QuestionCategorySelector: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const QuestionCategorySelector: (props: any) => JSX.Element;
|
|
3
3
|
export default QuestionCategorySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const QuestionTypeSelector: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const QuestionTypeSelector: (props: any) => JSX.Element;
|
|
3
3
|
export default QuestionTypeSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const StarRatingSelector: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const StarRatingSelector: (props: any) => JSX.Element;
|
|
3
3
|
export default StarRatingSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SuggestionCategorySelector: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const SuggestionCategorySelector: (props: any) => JSX.Element;
|
|
3
3
|
export default SuggestionCategorySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomTabs: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const CustomTabs: (props: any) => JSX.Element;
|
|
3
3
|
export default CustomTabs;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Dashboard: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Dashboard: () => JSX.Element;
|
|
3
3
|
export default Dashboard;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface loginProps {
|
|
3
3
|
isLogin?: boolean;
|
|
4
4
|
isForgotPassword?: boolean;
|
|
5
5
|
isResetPassword?: boolean;
|
|
6
6
|
isLoginTwoFactor?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const Login: (props: loginProps) =>
|
|
8
|
+
declare const Login: (props: loginProps) => JSX.Element;
|
|
9
9
|
export default Login;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const BlockForgetPassword: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const BlockForgetPassword: () => JSX.Element;
|
|
3
3
|
export default BlockForgetPassword;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const BlockResetPassword: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const BlockResetPassword: () => JSX.Element;
|
|
3
3
|
export default BlockResetPassword;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const BlockTwoFactorLogin: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const BlockTwoFactorLogin: () => JSX.Element;
|
|
3
3
|
export default BlockTwoFactorLogin;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const QuoteContent: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const QuoteContent: () => JSX.Element;
|
|
3
3
|
export default QuoteContent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const NotificationList: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const NotificationList: () => JSX.Element;
|
|
3
3
|
export default NotificationList;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SkillSelector: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const SkillSelector: (props: any) => JSX.Element;
|
|
3
3
|
export default SkillSelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const UserDetail: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const UserDetail: () => JSX.Element;
|
|
3
3
|
export default UserDetail;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const UserList: () =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const UserList: () => JSX.Element;
|
|
3
3
|
export default UserList;
|
package/dist/index.css
CHANGED
|
@@ -299,13 +299,13 @@
|
|
|
299
299
|
@keyframes _wnn2_ {
|
|
300
300
|
0% {
|
|
301
301
|
opacity: 0;
|
|
302
|
-
background-image: url("
|
|
302
|
+
background-image: url("/images/landing-page.jpg"); }
|
|
303
303
|
50% {
|
|
304
304
|
opacity: 1;
|
|
305
|
-
background-image: url("
|
|
305
|
+
background-image: url("/images/landing-page2.jpg"); }
|
|
306
306
|
100% {
|
|
307
307
|
opacity: 2;
|
|
308
|
-
background-image: url("
|
|
308
|
+
background-image: url("/images/landing-page3.jpg"); } }
|
|
309
309
|
|
|
310
310
|
._F-hjL {
|
|
311
311
|
background-color: #336dda;
|
package/dist/index.js
CHANGED
|
@@ -34,6 +34,7 @@ var Creatable = _interopDefault(require('react-select/creatable'));
|
|
|
34
34
|
var ReactNotification$1 = _interopDefault(require('react-notifications-component'));
|
|
35
35
|
require('react-notifications-component/dist/theme.css');
|
|
36
36
|
var ai = require('react-icons/ai');
|
|
37
|
+
require('symbol-observable');
|
|
37
38
|
|
|
38
39
|
var dashboard = "Dashboard";
|
|
39
40
|
var user = "User";
|
|
@@ -695,6 +696,10 @@ var students_who_are_not_feeling_safe = "Students who are not feeling safe";
|
|
|
695
696
|
var students_missing_a_weekly_check_in = "Students missing a weekly check-in";
|
|
696
697
|
var student_stress_by_zone = "Student Stress by Zone";
|
|
697
698
|
var student_distribution = "Student Distribution";
|
|
699
|
+
var surveys_flags = "Survey's flags";
|
|
700
|
+
var yellow_flags = "Yellow flags";
|
|
701
|
+
var green_flags = "Green flags";
|
|
702
|
+
var red_flags = "Red flags";
|
|
698
703
|
var lang_us = {
|
|
699
704
|
dashboard: dashboard,
|
|
700
705
|
user: user,
|
|
@@ -1367,7 +1372,11 @@ var lang_us = {
|
|
|
1367
1372
|
students_who_are_not_feeling_safe: students_who_are_not_feeling_safe,
|
|
1368
1373
|
students_missing_a_weekly_check_in: students_missing_a_weekly_check_in,
|
|
1369
1374
|
student_stress_by_zone: student_stress_by_zone,
|
|
1370
|
-
student_distribution: student_distribution
|
|
1375
|
+
student_distribution: student_distribution,
|
|
1376
|
+
surveys_flags: surveys_flags,
|
|
1377
|
+
yellow_flags: yellow_flags,
|
|
1378
|
+
green_flags: green_flags,
|
|
1379
|
+
red_flags: red_flags
|
|
1371
1380
|
};
|
|
1372
1381
|
|
|
1373
1382
|
var dashboard$1 = "Dashboard";
|
|
@@ -2032,6 +2041,10 @@ var students_who_are_not_feeling_safe$1 = "Students who are not feeling safe";
|
|
|
2032
2041
|
var students_missing_a_weekly_check_in$1 = "Students missing a weekly check-in";
|
|
2033
2042
|
var student_stress_by_zone$1 = "Student Stress by Zone";
|
|
2034
2043
|
var student_distribution$1 = "Student Distribution";
|
|
2044
|
+
var surveys_flags$1 = "Survey's flags";
|
|
2045
|
+
var yellow_flags$1 = "Yellow flags";
|
|
2046
|
+
var green_flags$1 = "Green flags";
|
|
2047
|
+
var red_flags$1 = "Red flags";
|
|
2035
2048
|
var lang_uk = {
|
|
2036
2049
|
dashboard: dashboard$1,
|
|
2037
2050
|
user: user$1,
|
|
@@ -2704,7 +2717,11 @@ var lang_uk = {
|
|
|
2704
2717
|
students_who_are_not_feeling_safe: students_who_are_not_feeling_safe$1,
|
|
2705
2718
|
students_missing_a_weekly_check_in: students_missing_a_weekly_check_in$1,
|
|
2706
2719
|
student_stress_by_zone: student_stress_by_zone$1,
|
|
2707
|
-
student_distribution: student_distribution$1
|
|
2720
|
+
student_distribution: student_distribution$1,
|
|
2721
|
+
surveys_flags: surveys_flags$1,
|
|
2722
|
+
yellow_flags: yellow_flags$1,
|
|
2723
|
+
green_flags: green_flags$1,
|
|
2724
|
+
red_flags: red_flags$1
|
|
2708
2725
|
};
|
|
2709
2726
|
|
|
2710
2727
|
var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
|
|
@@ -7286,7 +7303,7 @@ var UserDetail = function UserDetail() {
|
|
|
7286
7303
|
}, React__default.createElement(reactstrap.CustomInput, {
|
|
7287
7304
|
type: "checkbox",
|
|
7288
7305
|
id: "role-checkbox-" + role,
|
|
7289
|
-
label: role,
|
|
7306
|
+
label: role === "SecondaryTeacher" ? "SupportTeacher" : "" + role,
|
|
7290
7307
|
checked: values.roles.includes(role),
|
|
7291
7308
|
onChange: function onChange() {
|
|
7292
7309
|
toggleRoles(role);
|
|
@@ -9194,17 +9211,6 @@ var reduxLogger = createCommonjsModule(function (module, exports) {
|
|
|
9194
9211
|
|
|
9195
9212
|
var logger = unwrapExports(reduxLogger);
|
|
9196
9213
|
|
|
9197
|
-
/**
|
|
9198
|
-
* Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
|
|
9199
|
-
*
|
|
9200
|
-
* Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
|
|
9201
|
-
* during build.
|
|
9202
|
-
* @param {number} code
|
|
9203
|
-
*/
|
|
9204
|
-
function formatProdErrorMessage(code) {
|
|
9205
|
-
return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. ';
|
|
9206
|
-
}
|
|
9207
|
-
|
|
9208
9214
|
/**
|
|
9209
9215
|
* These are private action types reserved by Redux.
|
|
9210
9216
|
* For any unknown actions, you must return the current state.
|
|
@@ -9238,65 +9244,6 @@ function isPlainObject(obj) {
|
|
|
9238
9244
|
return Object.getPrototypeOf(obj) === proto;
|
|
9239
9245
|
}
|
|
9240
9246
|
|
|
9241
|
-
// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
|
|
9242
|
-
function miniKindOf(val) {
|
|
9243
|
-
if (val === void 0) return 'undefined';
|
|
9244
|
-
if (val === null) return 'null';
|
|
9245
|
-
var type = typeof val;
|
|
9246
|
-
|
|
9247
|
-
switch (type) {
|
|
9248
|
-
case 'boolean':
|
|
9249
|
-
case 'string':
|
|
9250
|
-
case 'number':
|
|
9251
|
-
case 'symbol':
|
|
9252
|
-
case 'function':
|
|
9253
|
-
{
|
|
9254
|
-
return type;
|
|
9255
|
-
}
|
|
9256
|
-
}
|
|
9257
|
-
|
|
9258
|
-
if (Array.isArray(val)) return 'array';
|
|
9259
|
-
if (isDate(val)) return 'date';
|
|
9260
|
-
if (isError(val)) return 'error';
|
|
9261
|
-
var constructorName = ctorName(val);
|
|
9262
|
-
|
|
9263
|
-
switch (constructorName) {
|
|
9264
|
-
case 'Symbol':
|
|
9265
|
-
case 'Promise':
|
|
9266
|
-
case 'WeakMap':
|
|
9267
|
-
case 'WeakSet':
|
|
9268
|
-
case 'Map':
|
|
9269
|
-
case 'Set':
|
|
9270
|
-
return constructorName;
|
|
9271
|
-
} // other
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
|
|
9275
|
-
}
|
|
9276
|
-
|
|
9277
|
-
function ctorName(val) {
|
|
9278
|
-
return typeof val.constructor === 'function' ? val.constructor.name : null;
|
|
9279
|
-
}
|
|
9280
|
-
|
|
9281
|
-
function isError(val) {
|
|
9282
|
-
return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
|
|
9283
|
-
}
|
|
9284
|
-
|
|
9285
|
-
function isDate(val) {
|
|
9286
|
-
if (val instanceof Date) return true;
|
|
9287
|
-
return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
|
|
9288
|
-
}
|
|
9289
|
-
|
|
9290
|
-
function kindOf(val) {
|
|
9291
|
-
var typeOfVal = typeof val;
|
|
9292
|
-
|
|
9293
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
9294
|
-
typeOfVal = miniKindOf(val);
|
|
9295
|
-
}
|
|
9296
|
-
|
|
9297
|
-
return typeOfVal;
|
|
9298
|
-
}
|
|
9299
|
-
|
|
9300
9247
|
/**
|
|
9301
9248
|
* Prints a warning in the console if it exists.
|
|
9302
9249
|
*
|
|
@@ -9320,6 +9267,12 @@ function warning(message) {
|
|
|
9320
9267
|
|
|
9321
9268
|
}
|
|
9322
9269
|
|
|
9270
|
+
function getUndefinedStateErrorMessage(key, action) {
|
|
9271
|
+
var actionType = action && action.type;
|
|
9272
|
+
var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action';
|
|
9273
|
+
return "Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.";
|
|
9274
|
+
}
|
|
9275
|
+
|
|
9323
9276
|
function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
|
|
9324
9277
|
var reducerKeys = Object.keys(reducers);
|
|
9325
9278
|
var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
|
|
@@ -9329,7 +9282,7 @@ function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, une
|
|
|
9329
9282
|
}
|
|
9330
9283
|
|
|
9331
9284
|
if (!isPlainObject(inputState)) {
|
|
9332
|
-
return "The " + argumentName + " has unexpected type of \"" +
|
|
9285
|
+
return "The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
|
|
9333
9286
|
}
|
|
9334
9287
|
|
|
9335
9288
|
var unexpectedKeys = Object.keys(inputState).filter(function (key) {
|
|
@@ -9353,13 +9306,13 @@ function assertReducerShape(reducers) {
|
|
|
9353
9306
|
});
|
|
9354
9307
|
|
|
9355
9308
|
if (typeof initialState === 'undefined') {
|
|
9356
|
-
throw new Error(
|
|
9309
|
+
throw new Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
|
|
9357
9310
|
}
|
|
9358
9311
|
|
|
9359
9312
|
if (typeof reducer(undefined, {
|
|
9360
9313
|
type: ActionTypes.PROBE_UNKNOWN_ACTION()
|
|
9361
9314
|
}) === 'undefined') {
|
|
9362
|
-
throw new Error(
|
|
9315
|
+
throw new Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
|
|
9363
9316
|
}
|
|
9364
9317
|
});
|
|
9365
9318
|
}
|
|
@@ -9443,8 +9396,8 @@ function combineReducers(reducers) {
|
|
|
9443
9396
|
var nextStateForKey = reducer(previousStateForKey, action);
|
|
9444
9397
|
|
|
9445
9398
|
if (typeof nextStateForKey === 'undefined') {
|
|
9446
|
-
var
|
|
9447
|
-
throw new Error(
|
|
9399
|
+
var errorMessage = getUndefinedStateErrorMessage(_key, action);
|
|
9400
|
+
throw new Error(errorMessage);
|
|
9448
9401
|
}
|
|
9449
9402
|
|
|
9450
9403
|
nextState[_key] = nextStateForKey;
|
|
@@ -9456,6 +9409,17 @@ function combineReducers(reducers) {
|
|
|
9456
9409
|
};
|
|
9457
9410
|
}
|
|
9458
9411
|
|
|
9412
|
+
/*
|
|
9413
|
+
* This is a dummy function to check if the function name has been altered by minification.
|
|
9414
|
+
* If the function has been minified and NODE_ENV !== 'production', warn the user.
|
|
9415
|
+
*/
|
|
9416
|
+
|
|
9417
|
+
function isCrushed() {}
|
|
9418
|
+
|
|
9419
|
+
if (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
|
|
9420
|
+
warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
|
|
9421
|
+
}
|
|
9422
|
+
|
|
9459
9423
|
var _localStorage$getItem;
|
|
9460
9424
|
var initialState = {
|
|
9461
9425
|
sidebarShow: "responsive",
|
|
@@ -10725,7 +10689,9 @@ var UserList = function UserList() {
|
|
|
10725
10689
|
className: "align-middle"
|
|
10726
10690
|
}, differenceInCalendarYears(new Date(), new Date(record.dateOfBirth))), React__default.createElement("td", {
|
|
10727
10691
|
className: "align-middle"
|
|
10728
|
-
}, !!record.roles && record.roles.
|
|
10692
|
+
}, !!record.roles && record.roles.map(function (role) {
|
|
10693
|
+
return role === "SecondaryTeacher" ? "SupportTeacher" : role;
|
|
10694
|
+
}).join(", ")), React__default.createElement("td", {
|
|
10729
10695
|
className: "align-middle"
|
|
10730
10696
|
}, record.isActive ? t("active") : t("inactive")), React__default.createElement("td", {
|
|
10731
10697
|
className: "align-middle"
|