mario-core 2.9.36-admin → 2.9.37-lang
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/i18n.d.ts +2 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +637 -54
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +638 -68
- package/dist/index.modern.js.map +1 -1
- package/dist/lang/de.d.ts +4 -0
- package/dist/lang/en.d.ts +4 -0
- package/dist/layouts/TheLanguageDropdown.d.ts +3 -0
- package/dist/layouts/TheLayout.d.ts +1 -0
- package/dist/redux/commons/action.d.ts +1 -0
- package/dist/utils/getTranslations.d.ts +2 -0
- package/dist/utils/translations.d.ts +3 -0
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
2
2
|
|
|
3
3
|
require('bootstrap/dist/css/bootstrap.min.css');
|
|
4
|
+
var i18n = _interopDefault(require('i18next'));
|
|
5
|
+
var reactI18next = require('react-i18next');
|
|
4
6
|
var React = require('react');
|
|
5
7
|
var React__default = _interopDefault(React);
|
|
6
8
|
var reactstrap = require('reactstrap');
|
|
@@ -31,6 +33,479 @@ require('react-notifications-component/dist/theme.css');
|
|
|
31
33
|
var ai = require('react-icons/ai');
|
|
32
34
|
var moment = _interopDefault(require('moment'));
|
|
33
35
|
|
|
36
|
+
var Dashboard = "Dashboard us";
|
|
37
|
+
var User = "User us";
|
|
38
|
+
var Cancel = "Cancel";
|
|
39
|
+
var Hey = "Hey";
|
|
40
|
+
var Reflection = "Reflection";
|
|
41
|
+
var Conferences = "Conferences";
|
|
42
|
+
var Safety = "Safety";
|
|
43
|
+
var Calendar = "Calendar";
|
|
44
|
+
var Gender = "Gender";
|
|
45
|
+
var Grade = "Grade";
|
|
46
|
+
var Name = "Name";
|
|
47
|
+
var Email = "Email";
|
|
48
|
+
var Age = "Age";
|
|
49
|
+
var Role = "Role";
|
|
50
|
+
var Action = "Action";
|
|
51
|
+
var Active = "Active";
|
|
52
|
+
var Inactive = "Inactive";
|
|
53
|
+
var Create = "Create";
|
|
54
|
+
var Update = "Update";
|
|
55
|
+
var Roles = "Roles";
|
|
56
|
+
var Status = "Status";
|
|
57
|
+
var Save = "Save";
|
|
58
|
+
var Category = "Category";
|
|
59
|
+
var Students = "Students";
|
|
60
|
+
var Description = "Description";
|
|
61
|
+
var skill = "skill";
|
|
62
|
+
var Color = "Color";
|
|
63
|
+
var subject = "subject";
|
|
64
|
+
var Question = "Question";
|
|
65
|
+
var Detail = "Detail";
|
|
66
|
+
var strategy = "strategy";
|
|
67
|
+
var Icon = "Icon";
|
|
68
|
+
var badge = "badge";
|
|
69
|
+
var semester = "semester";
|
|
70
|
+
var Label = "Label";
|
|
71
|
+
var Value = "Value";
|
|
72
|
+
var Level = "Level";
|
|
73
|
+
var Destinations = "Destinations";
|
|
74
|
+
var Confirm = "Confirm";
|
|
75
|
+
var lang_us = {
|
|
76
|
+
Dashboard: Dashboard,
|
|
77
|
+
User: User,
|
|
78
|
+
"Question bank": "Question bank",
|
|
79
|
+
"Email template": "Email template",
|
|
80
|
+
"Custom alert": "Custom alert",
|
|
81
|
+
"Set up": "Set up",
|
|
82
|
+
"Media Gallery": "Media Gallery",
|
|
83
|
+
"District school list": "District school list",
|
|
84
|
+
"Export to PDF": "Export to PDF us",
|
|
85
|
+
"The data is taken from the home screen.": "The data is taken from the home screen. us",
|
|
86
|
+
"Make sure everything is set correctly before exporting.": "Make sure everything is set correctly before exporting.",
|
|
87
|
+
Cancel: Cancel,
|
|
88
|
+
Hey: Hey,
|
|
89
|
+
"Readiness to Learn": "Readiness to Learn",
|
|
90
|
+
"High Impact Learning Strategies": "High Impact Learning Strategies",
|
|
91
|
+
"1 To 1": "1 To 1",
|
|
92
|
+
Reflection: Reflection,
|
|
93
|
+
Conferences: Conferences,
|
|
94
|
+
Safety: Safety,
|
|
95
|
+
"Student by Age": "Student by Age",
|
|
96
|
+
"Students by Designation": "Students by Designation",
|
|
97
|
+
Calendar: Calendar,
|
|
98
|
+
Gender: Gender,
|
|
99
|
+
Grade: Grade,
|
|
100
|
+
"Current Grade": "Current Grade",
|
|
101
|
+
"Student name": "Student name",
|
|
102
|
+
"Teacher name": "Teacher name",
|
|
103
|
+
"Start Date": "Start Date",
|
|
104
|
+
"End Date": "End Date",
|
|
105
|
+
"The represenation of individual student responses to their own feelings of Energy, Focus, Happiness, Safety, and Stress at the time administered. Note that scores are set on a 1-100 scale with the exception of Stress which optimum stress is set at '0' to get a sense of High Stress vs Low Stress.": "The represenation of individual student responses to their own feelings of Energy, Focus, Happiness, Safety, and Stress at the time administered. Note that scores are set on a 1-100 scale with the exception of Stress which optimum stress is set at '0' to get a sense of High Stress vs Low Stress.",
|
|
106
|
+
"Both the composite of individual students reporting their perceived use of John Hattie's High Impact Learning Strategies measured against the actual application with a teacher in total.": "Both the composite of individual students reporting their perceived use of John Hattie's High Impact Learning Strategies measured against the actual application with a teacher in total.",
|
|
107
|
+
"The composite results of the survey completed by individual students assessing their own perception of performance in the 6 key areas followed by 3 specific areas of well being over time.": "The composite results of the survey completed by individual students assessing their own perception of performance in the 6 key areas followed by 3 specific areas of well being over time.",
|
|
108
|
+
"The result of surveys sent to any individual (external or internal) that connects with the student to assist in measuring the individual student's: Productivity, Happiness, Energy, Focus, and Stress over time.": "The result of surveys sent to any individual (external or internal) that connects with the student to assist in measuring the individual student's: Productivity, Happiness, Energy, Focus, and Stress over time.",
|
|
109
|
+
"The composite representation of individual aggregate scores located at the bottom of individual Conferences conducted between Teachers and Students over time. Note that scores of 'Not Applicable' do not get measured.": "The composite representation of individual aggregate scores located at the bottom of individual Conferences conducted between Teachers and Students over time. Note that scores of 'Not Applicable' do not get measured.",
|
|
110
|
+
"The visual represenation of all the responses from the question asking students to rate their perceived level of safety for themselves at your school over time.": "The visual represenation of all the responses from the question asking students to rate their perceived level of safety for themselves at your school over time.",
|
|
111
|
+
"The specific representation of students by gender and grade level at your school.": "The specific representation of students by gender and grade level at your school.",
|
|
112
|
+
"The composite representation of students by individual grades in your school with specific designations.": "The composite representation of students by individual grades in your school with specific designations.",
|
|
113
|
+
"Total 1-to-1": "Total 1-to-1",
|
|
114
|
+
"Total 1-to-1 Time": "Total 1-to-1 Time",
|
|
115
|
+
"Total Conferences": "Total Conferences",
|
|
116
|
+
"Total Conferences Time": "Total Conferences Time",
|
|
117
|
+
"Total Class Reflection Check-ins": "Total Class Reflection Check-ins",
|
|
118
|
+
"Create user": "Create user us",
|
|
119
|
+
"Edit user": "Edit user",
|
|
120
|
+
"Change password": "Change password",
|
|
121
|
+
"Type something to search by user name": "Type something to search by user name",
|
|
122
|
+
"Total of users": "Total of users",
|
|
123
|
+
Name: Name,
|
|
124
|
+
Email: Email,
|
|
125
|
+
Age: Age,
|
|
126
|
+
Role: Role,
|
|
127
|
+
"Active status": "Active status",
|
|
128
|
+
Action: Action,
|
|
129
|
+
Active: Active,
|
|
130
|
+
Inactive: Inactive,
|
|
131
|
+
Create: Create,
|
|
132
|
+
Update: Update,
|
|
133
|
+
"First name": "First name",
|
|
134
|
+
"Date of birth": "Date of birth",
|
|
135
|
+
"Last name": "Last name",
|
|
136
|
+
Roles: Roles,
|
|
137
|
+
Status: Status,
|
|
138
|
+
"Send forgot password link": "Send forgot password link",
|
|
139
|
+
"Download user data": "Download user data",
|
|
140
|
+
"Current password": "Current password",
|
|
141
|
+
"New password": "New password",
|
|
142
|
+
"Confirm password": "Confirm password",
|
|
143
|
+
Save: Save,
|
|
144
|
+
"Type something to Search question": "Type something to Search question",
|
|
145
|
+
"Total of questions": "Total of questions",
|
|
146
|
+
"Create question": "Create question us",
|
|
147
|
+
"Edit question": "Edit question us",
|
|
148
|
+
"Question Type": "Question Type",
|
|
149
|
+
Category: Category,
|
|
150
|
+
"Question text": "Question text",
|
|
151
|
+
"Is default question for one-to-one": "Is default question for one-to-one",
|
|
152
|
+
"Default question for students or teachers": "Default question for students or teachers",
|
|
153
|
+
"Is default question general class": "Is default question general class",
|
|
154
|
+
"Default question general for students or teachers": "Default question general for students or teachers",
|
|
155
|
+
"Before session": "Before session",
|
|
156
|
+
"Edit custom alert": "Edit custom alert",
|
|
157
|
+
"Create custom alert": "Create custom alert us",
|
|
158
|
+
"Total of custom alert": "Total of custom alert",
|
|
159
|
+
"Number of sessions": "Number of sessions",
|
|
160
|
+
"Number of students": "Number of students",
|
|
161
|
+
"Begin date": "Begin date",
|
|
162
|
+
"Duration (days)": "Duration (days)",
|
|
163
|
+
Students: Students,
|
|
164
|
+
"Create skill": "Create skill us",
|
|
165
|
+
"Edit skill": "Edit skill",
|
|
166
|
+
"Total of skills": "Total of skills",
|
|
167
|
+
Description: Description,
|
|
168
|
+
skill: skill,
|
|
169
|
+
"Parent category": "Parent category us",
|
|
170
|
+
"Edit subject": "Edit subject us",
|
|
171
|
+
"Create subject": "Create subject us",
|
|
172
|
+
"Total of subjects": "Total of subjects",
|
|
173
|
+
Color: Color,
|
|
174
|
+
subject: subject,
|
|
175
|
+
"Create learning support category": "Create learning support category us",
|
|
176
|
+
"Edit learning support category": "Edit learning support category us",
|
|
177
|
+
"Create category": "Create category",
|
|
178
|
+
"Total of learning support categories": "Total of learning support categories",
|
|
179
|
+
"Default Color": "Default Color",
|
|
180
|
+
"Edit strategy": "Edit strategy",
|
|
181
|
+
"Create strategy": "Create strategy",
|
|
182
|
+
"Create learning strategy": "Create learning strategy",
|
|
183
|
+
"Total of strategies": "Total of strategies",
|
|
184
|
+
"Strategy name": "Strategy name",
|
|
185
|
+
Question: Question,
|
|
186
|
+
Detail: Detail,
|
|
187
|
+
strategy: strategy,
|
|
188
|
+
"Best fit": "Best fit",
|
|
189
|
+
"Create goal example": "Create goal example",
|
|
190
|
+
"Edit goal example": "Edit goal example",
|
|
191
|
+
"Total of goal examples": "Total of goal examples",
|
|
192
|
+
"Short term target examples": "Short term target examples",
|
|
193
|
+
"goal example": "goal example",
|
|
194
|
+
"Edit badge": "Edit badge",
|
|
195
|
+
"Create badge": "Create badge",
|
|
196
|
+
"Total of badges": "Total of badges",
|
|
197
|
+
Icon: Icon,
|
|
198
|
+
badge: badge,
|
|
199
|
+
"Badge image": "Badge image",
|
|
200
|
+
"Edit semester": "Edit semester",
|
|
201
|
+
"Create semester": "Create semester",
|
|
202
|
+
"Update school break month": "Update school break month",
|
|
203
|
+
"Total of semesters": "Total of semesters",
|
|
204
|
+
semester: semester,
|
|
205
|
+
"Breaking month": "Breaking month",
|
|
206
|
+
"Change breaking month": "Change breaking month",
|
|
207
|
+
"School year break month": "School year break month",
|
|
208
|
+
"Start date": "Start date",
|
|
209
|
+
"End date": "End date",
|
|
210
|
+
"Edit blank day": "Edit blank day",
|
|
211
|
+
"Create blank day": "Create blank day",
|
|
212
|
+
"Total of blank days": "Total of blank days",
|
|
213
|
+
"Start time": "Start time",
|
|
214
|
+
"End time": "End time",
|
|
215
|
+
"school blank day": "school blank day",
|
|
216
|
+
"Edit point": "Edit point",
|
|
217
|
+
"Create new point": "Create new point",
|
|
218
|
+
"Total of point": "Total of point",
|
|
219
|
+
Label: Label,
|
|
220
|
+
Value: Value,
|
|
221
|
+
"Break point": "Break point",
|
|
222
|
+
"Update break point": "Update break point",
|
|
223
|
+
"Maximum number of admins": "Maximum number of admins",
|
|
224
|
+
"Maximum number of assistants": "Maximum number of assistants",
|
|
225
|
+
"Maximum number of students": "Maximum number of students",
|
|
226
|
+
"Maximum number of teachers": "Maximum number of teachers",
|
|
227
|
+
"Request to this plan": "Request to this plan",
|
|
228
|
+
"Type something to search reflection result": "Type something to search reflection result",
|
|
229
|
+
"User deleted": "User deleted",
|
|
230
|
+
"Export user data": "Export user data",
|
|
231
|
+
"Download user's data": "Download user's data",
|
|
232
|
+
"All data of this user will be permanently deleted from the system. Please export before continuing": "All data of this user will be permanently deleted from the system. Please export before continuing",
|
|
233
|
+
"Delete user": "Delete user",
|
|
234
|
+
"A teacher must be selected before deleting this teacher. We will transfer the entire class and students to this teacher before deleting all of this teacher's data.": "A teacher must be selected before deleting this teacher. We will transfer the entire class and students to this teacher before deleting all of this teacher's data.",
|
|
235
|
+
"List Students": "List Students",
|
|
236
|
+
"Student Name": "Student Name",
|
|
237
|
+
"Student Email": "Student Email",
|
|
238
|
+
"Current Teacher Name": "Current Teacher Name",
|
|
239
|
+
"Current Teacher Email": "Current Teacher Email",
|
|
240
|
+
"Change Save": "Change Save",
|
|
241
|
+
"Select teacher change": "Select teacher change",
|
|
242
|
+
"Current Assistant Name": "Current Assistant Name",
|
|
243
|
+
"Current Assistant Email": "Current Assistant Email",
|
|
244
|
+
"Remove Assistant": "Remove Assistant",
|
|
245
|
+
"Switch Assistant": "Switch Assistant",
|
|
246
|
+
"Select Assistant change": "Select Assistant change",
|
|
247
|
+
"Welcome Email Re-send": "Welcome Email Re-send",
|
|
248
|
+
"Send for selected users": "Send for selected users",
|
|
249
|
+
"User Name": "User Name",
|
|
250
|
+
"User Email": "User Email",
|
|
251
|
+
Level: Level,
|
|
252
|
+
"Use for": "Use for",
|
|
253
|
+
"Teacher training": "Teacher training",
|
|
254
|
+
"Student training": "Student training",
|
|
255
|
+
"Create Destination": "Create Destination",
|
|
256
|
+
"Total of Designation": "Total of Designation",
|
|
257
|
+
Destinations: Destinations,
|
|
258
|
+
"Edit Destination": "Edit Destination",
|
|
259
|
+
Confirm: Confirm
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
var Dashboard$1 = "Dashboard uk";
|
|
263
|
+
var User$1 = "User";
|
|
264
|
+
var Cancel$1 = "Cancel";
|
|
265
|
+
var Hey$1 = "Hey";
|
|
266
|
+
var Reflection$1 = "Reflection";
|
|
267
|
+
var Conferences$1 = "Conferences";
|
|
268
|
+
var Safety$1 = "Safety";
|
|
269
|
+
var Calendar$1 = "Calendar";
|
|
270
|
+
var Gender$1 = "Gender";
|
|
271
|
+
var Grade$1 = "Grade";
|
|
272
|
+
var Name$1 = "Name";
|
|
273
|
+
var Email$1 = "Email";
|
|
274
|
+
var Age$1 = "Age";
|
|
275
|
+
var Role$1 = "Role";
|
|
276
|
+
var Action$1 = "Action";
|
|
277
|
+
var Active$1 = "Active";
|
|
278
|
+
var Inactive$1 = "Inactive";
|
|
279
|
+
var Create$1 = "Create";
|
|
280
|
+
var Update$1 = "Update";
|
|
281
|
+
var Roles$1 = "Roles";
|
|
282
|
+
var Status$1 = "Status";
|
|
283
|
+
var Save$1 = "Save";
|
|
284
|
+
var Category$1 = "Category";
|
|
285
|
+
var Students$1 = "Students";
|
|
286
|
+
var Description$1 = "Description";
|
|
287
|
+
var skill$1 = "skill";
|
|
288
|
+
var Color$1 = "Color";
|
|
289
|
+
var subject$1 = "subject";
|
|
290
|
+
var Question$1 = "Question";
|
|
291
|
+
var Detail$1 = "Detail";
|
|
292
|
+
var strategy$1 = "strategy";
|
|
293
|
+
var Icon$1 = "Icon";
|
|
294
|
+
var badge$1 = "badge";
|
|
295
|
+
var semester$1 = "semester";
|
|
296
|
+
var Label$1 = "Label";
|
|
297
|
+
var Value$1 = "Value";
|
|
298
|
+
var Level$1 = "Level";
|
|
299
|
+
var Destinations$1 = "Destinations";
|
|
300
|
+
var Confirm$1 = "Confirm";
|
|
301
|
+
var lang_uk = {
|
|
302
|
+
Dashboard: Dashboard$1,
|
|
303
|
+
User: User$1,
|
|
304
|
+
"Question bank": "Question bank",
|
|
305
|
+
"Email template": "Email template",
|
|
306
|
+
"Custom alert": "Custom alert",
|
|
307
|
+
"Set up": "Set up",
|
|
308
|
+
"Media Gallery": "Media Gallery",
|
|
309
|
+
"District school list": "District school list",
|
|
310
|
+
"Export to PDF": "Export to PDF uk",
|
|
311
|
+
"The data is taken from the home screen.": "The data is taken from the home screen. uk",
|
|
312
|
+
"Make sure everything is set correctly before exporting.": "Make sure everything is set correctly before exporting.",
|
|
313
|
+
Cancel: Cancel$1,
|
|
314
|
+
Hey: Hey$1,
|
|
315
|
+
"Readiness to Learn": "Readiness to Learn",
|
|
316
|
+
"High Impact Learning Strategies": "High Impact Learning Strategies",
|
|
317
|
+
"1 To 1": "1 To 1",
|
|
318
|
+
Reflection: Reflection$1,
|
|
319
|
+
Conferences: Conferences$1,
|
|
320
|
+
Safety: Safety$1,
|
|
321
|
+
"Student by Age": "Student by Age",
|
|
322
|
+
"Students by Designation": "Students by Designation",
|
|
323
|
+
Calendar: Calendar$1,
|
|
324
|
+
Gender: Gender$1,
|
|
325
|
+
Grade: Grade$1,
|
|
326
|
+
"Current Grade": "Current Grade",
|
|
327
|
+
"Student name": "Student name",
|
|
328
|
+
"Teacher name": "Teacher name",
|
|
329
|
+
"Start Date": "Start Date",
|
|
330
|
+
"End Date": "End Date",
|
|
331
|
+
"The represenation of individual student responses to their own feelings of Energy, Focus, Happiness, Safety, and Stress at the time administered. Note that scores are set on a 1-100 scale with the exception of Stress which optimum stress is set at '0' to get a sense of High Stress vs Low Stress.": "The represenation of individual student responses to their own feelings of Energy, Focus, Happiness, Safety, and Stress at the time administered. Note that scores are set on a 1-100 scale with the exception of Stress which optimum stress is set at '0' to get a sense of High Stress vs Low Stress.",
|
|
332
|
+
"Both the composite of individual students reporting their perceived use of John Hattie's High Impact Learning Strategies measured against the actual application with a teacher in total.": "Both the composite of individual students reporting their perceived use of John Hattie's High Impact Learning Strategies measured against the actual application with a teacher in total.",
|
|
333
|
+
"The composite results of the survey completed by individual students assessing their own perception of performance in the 6 key areas followed by 3 specific areas of well being over time.": "The composite results of the survey completed by individual students assessing their own perception of performance in the 6 key areas followed by 3 specific areas of well being over time.",
|
|
334
|
+
"The result of surveys sent to any individual (external or internal) that connects with the student to assist in measuring the individual student's: Productivity, Happiness, Energy, Focus, and Stress over time.": "The result of surveys sent to any individual (external or internal) that connects with the student to assist in measuring the individual student's: Productivity, Happiness, Energy, Focus, and Stress over time.",
|
|
335
|
+
"The composite representation of individual aggregate scores located at the bottom of individual Conferences conducted between Teachers and Students over time. Note that scores of 'Not Applicable' do not get measured.": "The composite representation of individual aggregate scores located at the bottom of individual Conferences conducted between Teachers and Students over time. Note that scores of 'Not Applicable' do not get measured.",
|
|
336
|
+
"The visual represenation of all the responses from the question asking students to rate their perceived level of safety for themselves at your school over time.": "The visual represenation of all the responses from the question asking students to rate their perceived level of safety for themselves at your school over time.",
|
|
337
|
+
"The specific representation of students by gender and grade level at your school.": "The specific representation of students by gender and grade level at your school.",
|
|
338
|
+
"The composite representation of students by individual grades in your school with specific designations.": "The composite representation of students by individual grades in your school with specific designations.",
|
|
339
|
+
"Total 1-to-1": "Total 1-to-1",
|
|
340
|
+
"Total 1-to-1 Time": "Total 1-to-1 Time",
|
|
341
|
+
"Total Conferences": "Total Conferences",
|
|
342
|
+
"Total Conferences Time": "Total Conferences Time",
|
|
343
|
+
"Total Class Reflection Check-ins": "Total Class Reflection Check-ins",
|
|
344
|
+
"Create user": "Create user",
|
|
345
|
+
"Edit user": "Edit user",
|
|
346
|
+
"Change password": "Change password",
|
|
347
|
+
"Type something to search by user name": "Type something to search by user name",
|
|
348
|
+
"Total of users": "Total of users",
|
|
349
|
+
Name: Name$1,
|
|
350
|
+
Email: Email$1,
|
|
351
|
+
Age: Age$1,
|
|
352
|
+
Role: Role$1,
|
|
353
|
+
"Active status": "Active status",
|
|
354
|
+
Action: Action$1,
|
|
355
|
+
Active: Active$1,
|
|
356
|
+
Inactive: Inactive$1,
|
|
357
|
+
Create: Create$1,
|
|
358
|
+
Update: Update$1,
|
|
359
|
+
"First name": "First name",
|
|
360
|
+
"Date of birth": "Date of birth",
|
|
361
|
+
"Last name": "Last name",
|
|
362
|
+
Roles: Roles$1,
|
|
363
|
+
Status: Status$1,
|
|
364
|
+
"Send forgot password link": "Send forgot password link",
|
|
365
|
+
"Download user data": "Download user data",
|
|
366
|
+
"Current password": "Current password",
|
|
367
|
+
"New password": "New password",
|
|
368
|
+
"Confirm password": "Confirm password",
|
|
369
|
+
Save: Save$1,
|
|
370
|
+
"Type something to Search question": "Type something to Search question",
|
|
371
|
+
"Total of questions": "Total of questions",
|
|
372
|
+
"Create question": "Create question uk",
|
|
373
|
+
"Edit question": "Edit question uk",
|
|
374
|
+
"Question Type": "Question Type",
|
|
375
|
+
Category: Category$1,
|
|
376
|
+
"Question text": "Question text",
|
|
377
|
+
"Is default question for one-to-one": "Is default question for one-to-one",
|
|
378
|
+
"Default question for students or teachers": "Default question for students or teachers",
|
|
379
|
+
"Is default question general class": "Is default question general class",
|
|
380
|
+
"Default question general for students or teachers": "Default question general for students or teachers",
|
|
381
|
+
"Before session": "Before session",
|
|
382
|
+
"Edit custom alert": "Edit custom alert",
|
|
383
|
+
"Create custom alert": "Create custom alert uk",
|
|
384
|
+
"Total of custom alert": "Total of custom alert",
|
|
385
|
+
"Number of sessions": "Number of sessions",
|
|
386
|
+
"Number of students": "Number of students",
|
|
387
|
+
"Begin date": "Begin date",
|
|
388
|
+
"Duration (days)": "Duration (days)",
|
|
389
|
+
Students: Students$1,
|
|
390
|
+
"Create skill": "Create skill uk",
|
|
391
|
+
"Edit skill": "Edit skill",
|
|
392
|
+
"Total of skills": "Total of skills",
|
|
393
|
+
Description: Description$1,
|
|
394
|
+
skill: skill$1,
|
|
395
|
+
"Parent category": "Parent category uk",
|
|
396
|
+
"Edit subject": "Edit subject uk",
|
|
397
|
+
"Create subject": "Create subject uk",
|
|
398
|
+
"Total of subjects": "Total of subjects",
|
|
399
|
+
Color: Color$1,
|
|
400
|
+
subject: subject$1,
|
|
401
|
+
"Create learning support category": "Create learning support category us",
|
|
402
|
+
"Edit learning support category": "Edit learning support category us",
|
|
403
|
+
"Create category": "Create category",
|
|
404
|
+
"Total of learning support categories": "Total of learning support categories",
|
|
405
|
+
"Default Color": "Default Color",
|
|
406
|
+
"Edit strategy": "Edit strategy",
|
|
407
|
+
"Create strategy": "Create strategy",
|
|
408
|
+
"Create learning strategy": "Create learning strategy",
|
|
409
|
+
"Total of strategies": "Total of strategies",
|
|
410
|
+
"Strategy name": "Strategy name",
|
|
411
|
+
Question: Question$1,
|
|
412
|
+
Detail: Detail$1,
|
|
413
|
+
strategy: strategy$1,
|
|
414
|
+
"Best fit": "Best fit",
|
|
415
|
+
"Create goal example": "Create goal example",
|
|
416
|
+
"Edit goal example": "Edit goal example",
|
|
417
|
+
"Total of goal examples": "Total of goal examples",
|
|
418
|
+
"Short term target examples": "Short term target examples",
|
|
419
|
+
"goal example": "goal example",
|
|
420
|
+
"Edit badge": "Edit badge",
|
|
421
|
+
"Create badge": "Create badge",
|
|
422
|
+
"Total of badges": "Total of badges",
|
|
423
|
+
Icon: Icon$1,
|
|
424
|
+
badge: badge$1,
|
|
425
|
+
"Badge image": "Badge image",
|
|
426
|
+
"Edit semester": "Edit semester",
|
|
427
|
+
"Create semester": "Create semester",
|
|
428
|
+
"Update school break month": "Update school break month",
|
|
429
|
+
"Total of semesters": "Total of semesters",
|
|
430
|
+
semester: semester$1,
|
|
431
|
+
"Breaking month": "Breaking month",
|
|
432
|
+
"Change breaking month": "Change breaking month",
|
|
433
|
+
"School year break month": "School year break month",
|
|
434
|
+
"Start date": "Start date",
|
|
435
|
+
"End date": "End date",
|
|
436
|
+
"Edit blank day": "Edit blank day",
|
|
437
|
+
"Create blank day": "Create blank day",
|
|
438
|
+
"Total of blank days": "Total of blank days",
|
|
439
|
+
"Start time": "Start time",
|
|
440
|
+
"End time": "End time",
|
|
441
|
+
"school blank day": "school blank day",
|
|
442
|
+
"Edit point": "Edit point",
|
|
443
|
+
"Create new point": "Create new point",
|
|
444
|
+
"Total of point": "Total of point",
|
|
445
|
+
Label: Label$1,
|
|
446
|
+
Value: Value$1,
|
|
447
|
+
"Break point": "Break point",
|
|
448
|
+
"Update break point": "Update break point",
|
|
449
|
+
"Maximum number of admins": "Maximum number of admins",
|
|
450
|
+
"Maximum number of assistants": "Maximum number of assistants",
|
|
451
|
+
"Maximum number of students": "Maximum number of students",
|
|
452
|
+
"Maximum number of teachers": "Maximum number of teachers",
|
|
453
|
+
"Request to this plan": "Request to this plan",
|
|
454
|
+
"Type something to search reflection result": "Type something to search reflection result",
|
|
455
|
+
"User deleted": "User deleted",
|
|
456
|
+
"Export user data": "Export user data",
|
|
457
|
+
"Download user's data": "Download user's data",
|
|
458
|
+
"All data of this user will be permanently deleted from the system. Please export before continuing": "All data of this user will be permanently deleted from the system. Please export before continuing",
|
|
459
|
+
"Delete user": "Delete user",
|
|
460
|
+
"A teacher must be selected before deleting this teacher. We will transfer the entire class and students to this teacher before deleting all of this teacher's data.": "A teacher must be selected before deleting this teacher. We will transfer the entire class and students to this teacher before deleting all of this teacher's data.",
|
|
461
|
+
"List Students": "List Students",
|
|
462
|
+
"Student Name": "Student Name",
|
|
463
|
+
"Student Email": "Student Email",
|
|
464
|
+
"Current Teacher Name": "Current Teacher Name",
|
|
465
|
+
"Current Teacher Email": "Current Teacher Email",
|
|
466
|
+
"Change Save": "Change Save",
|
|
467
|
+
"Select teacher change": "Select teacher change",
|
|
468
|
+
"Current Assistant Name": "Current Assistant Name",
|
|
469
|
+
"Current Assistant Email": "Current Assistant Email",
|
|
470
|
+
"Remove Assistant": "Remove Assistant",
|
|
471
|
+
"Switch Assistant": "Switch Assistant",
|
|
472
|
+
"Select Assistant change": "Select Assistant change",
|
|
473
|
+
"Welcome Email Re-send": "Welcome Email Re-send",
|
|
474
|
+
"Send for selected users": "Send for selected users",
|
|
475
|
+
"User Name": "User Name",
|
|
476
|
+
"User Email": "User Email",
|
|
477
|
+
Level: Level$1,
|
|
478
|
+
"Use for": "Use for",
|
|
479
|
+
"Teacher training": "Teacher training",
|
|
480
|
+
"Student training": "Student training",
|
|
481
|
+
"Create Destination": "Create Destination",
|
|
482
|
+
"Total of Designation": "Total of Designation",
|
|
483
|
+
Destinations: Destinations$1,
|
|
484
|
+
"Edit Destination": "Edit Destination",
|
|
485
|
+
Confirm: Confirm$1
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "en";
|
|
489
|
+
console.log({
|
|
490
|
+
lang: localStorage.getItem("language")
|
|
491
|
+
});
|
|
492
|
+
i18n.use(reactI18next.initReactI18next).init({
|
|
493
|
+
resources: {
|
|
494
|
+
en: {
|
|
495
|
+
translation: lang_us
|
|
496
|
+
},
|
|
497
|
+
es: {
|
|
498
|
+
translation: lang_uk
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
lng: DEFAULT_LANGUAGE,
|
|
502
|
+
fallbackLng: DEFAULT_LANGUAGE,
|
|
503
|
+
keySeparator: false,
|
|
504
|
+
interpolation: {
|
|
505
|
+
escapeValue: false
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
|
|
34
509
|
// A type of promise-like that resolves synchronously and supports only one observer
|
|
35
510
|
|
|
36
511
|
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
@@ -246,6 +721,7 @@ var showMenuBar = toolkit.createAction("common/showMenuBar");
|
|
|
246
721
|
var showFontSize = toolkit.createAction("common/showFontSize");
|
|
247
722
|
var setEnableIEP = toolkit.createAction("common/setEnableIEP");
|
|
248
723
|
var setConversationOneToOne = toolkit.createAction("common/setConversationOneToOne");
|
|
724
|
+
var setLanguage = toolkit.createAction("common/setLanguage");
|
|
249
725
|
var setCurrentStudentId = toolkit.createAction("common/setCurrentStudentId");
|
|
250
726
|
var setCurrentStudentUserId = toolkit.createAction("common/setCurrentStudentUserId");
|
|
251
727
|
var setCurrentStudentName = toolkit.createAction("common/setCurrentStudentName");
|
|
@@ -1512,7 +1988,7 @@ var HOME_STUDENT = "/home";
|
|
|
1512
1988
|
var DASHBOARD_TITLE = "Dashboard";
|
|
1513
1989
|
var ROOT_TITLE = "Mario Framework";
|
|
1514
1990
|
|
|
1515
|
-
var Dashboard = function Dashboard() {
|
|
1991
|
+
var Dashboard$2 = function Dashboard() {
|
|
1516
1992
|
var user = reactRedux.useSelector(function (state) {
|
|
1517
1993
|
return state.common.user;
|
|
1518
1994
|
});
|
|
@@ -1828,6 +2304,75 @@ var TheHeaderDropdown = function TheHeaderDropdown() {
|
|
|
1828
2304
|
})), "LOGOUT"))));
|
|
1829
2305
|
};
|
|
1830
2306
|
|
|
2307
|
+
var TheLanguageDropdown = function TheLanguageDropdown() {
|
|
2308
|
+
var defaultLanguage = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "en";
|
|
2309
|
+
var dispatch = reactRedux.useDispatch();
|
|
2310
|
+
|
|
2311
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
2312
|
+
i18n = _useTranslation.i18n;
|
|
2313
|
+
|
|
2314
|
+
var _useState = React.useState(false),
|
|
2315
|
+
dropdownOpen = _useState[0],
|
|
2316
|
+
setDropdownOpen = _useState[1];
|
|
2317
|
+
|
|
2318
|
+
var _useState2 = React.useState(defaultLanguage),
|
|
2319
|
+
language = _useState2[0],
|
|
2320
|
+
setItemLanguage = _useState2[1];
|
|
2321
|
+
|
|
2322
|
+
var toggle = function toggle() {
|
|
2323
|
+
return setDropdownOpen(function (prevState) {
|
|
2324
|
+
return !prevState;
|
|
2325
|
+
});
|
|
2326
|
+
};
|
|
2327
|
+
|
|
2328
|
+
var changeLanguageApp = function changeLanguageApp(lang) {
|
|
2329
|
+
i18n.changeLanguage(lang);
|
|
2330
|
+
localStorage.setItem("language", lang);
|
|
2331
|
+
setItemLanguage(lang);
|
|
2332
|
+
dispatch(setLanguage(lang));
|
|
2333
|
+
location.reload();
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
return React__default.createElement(reactstrap.Dropdown, {
|
|
2337
|
+
isOpen: dropdownOpen,
|
|
2338
|
+
toggle: toggle,
|
|
2339
|
+
className: "" + styles["dropdown-menu"]
|
|
2340
|
+
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
2341
|
+
className: styles["header-avatar"] + " "
|
|
2342
|
+
}, React__default.createElement("i", {
|
|
2343
|
+
className: "fas fa-language"
|
|
2344
|
+
}), React__default.createElement("span", {
|
|
2345
|
+
style: {
|
|
2346
|
+
color: "#000",
|
|
2347
|
+
textTransform: "capitalize"
|
|
2348
|
+
}
|
|
2349
|
+
}, language)), React__default.createElement(reactstrap.DropdownMenu, {
|
|
2350
|
+
className: styles["dropdown-content"]
|
|
2351
|
+
}, React__default.createElement(reactstrap.DropdownItem, {
|
|
2352
|
+
className: styles["dropdown-change"] + " px-0 " + (language == 'en' ? 'active' : ''),
|
|
2353
|
+
onClick: function onClick() {
|
|
2354
|
+
return changeLanguageApp('en');
|
|
2355
|
+
}
|
|
2356
|
+
}, React__default.createElement("div", {
|
|
2357
|
+
className: styles["item-address"] + " " + styles["item-logout"] + " d-flex align-items-center w-100"
|
|
2358
|
+
}, React__default.createElement("span", {
|
|
2359
|
+
className: "mr-2 d-flex hover-opacity"
|
|
2360
|
+
}, React__default.createElement("i", {
|
|
2361
|
+
className: "fas fa-power-off h6 mb-0"
|
|
2362
|
+
})), "Language EN")), React__default.createElement(reactstrap.DropdownItem, {
|
|
2363
|
+
className: styles["dropdown-change"] + " px-0 " + (language == 'es' ? 'active' : ''),
|
|
2364
|
+
onClick: function onClick() {
|
|
2365
|
+
return changeLanguageApp('es');
|
|
2366
|
+
}
|
|
2367
|
+
}, React__default.createElement("div", {
|
|
2368
|
+
className: styles["item-address"] + " " + styles["item-logout"] + " d-flex align-items-center w-100"
|
|
2369
|
+
}, React__default.createElement("span", {
|
|
2370
|
+
className: "mr-2 d-flex hover-opacity"
|
|
2371
|
+
}, React__default.createElement("i", {
|
|
2372
|
+
className: "fas fa-power-off h6 mb-0"
|
|
2373
|
+
})), "Language ES"))));
|
|
2374
|
+
};
|
|
2375
|
+
|
|
1831
2376
|
var TheHeader = function TheHeader() {
|
|
1832
2377
|
var isDistrict = window.location.host.includes("-district");
|
|
1833
2378
|
return React__default.createElement(react.CHeader, {
|
|
@@ -1848,7 +2393,7 @@ var TheHeader = function TheHeader() {
|
|
|
1848
2393
|
},
|
|
1849
2394
|
href: '/privacy-policy',
|
|
1850
2395
|
target: "blank"
|
|
1851
|
-
}, "Privacy Policy"), !isDistrict && React__default.createElement(NotificationButton, null), React__default.createElement(TheHeaderDropdown, null)));
|
|
2396
|
+
}, "Privacy Policy"), !isDistrict && React__default.createElement(NotificationButton, null), React__default.createElement(TheLanguageDropdown, null), React__default.createElement(TheHeaderDropdown, null)));
|
|
1852
2397
|
};
|
|
1853
2398
|
|
|
1854
2399
|
var TITLE$2 = "Not found";
|
|
@@ -1968,6 +2513,10 @@ var TheLayout = function TheLayout(_ref) {
|
|
|
1968
2513
|
var user = reactRedux.useSelector(function (state) {
|
|
1969
2514
|
return state.common.user;
|
|
1970
2515
|
});
|
|
2516
|
+
|
|
2517
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
2518
|
+
t = _useTranslation.t;
|
|
2519
|
+
|
|
1971
2520
|
var location = reactRouterDom.useLocation();
|
|
1972
2521
|
var isNotification = location.pathname.includes("notifications");
|
|
1973
2522
|
var isDistrict = window.location.host.includes("-district");
|
|
@@ -1979,7 +2528,11 @@ var TheLayout = function TheLayout(_ref) {
|
|
|
1979
2528
|
});
|
|
1980
2529
|
}, [user]);
|
|
1981
2530
|
var authNavigations = React.useMemo(function () {
|
|
1982
|
-
return navigation.
|
|
2531
|
+
return navigation.map(function (item) {
|
|
2532
|
+
return _extends({}, item, {
|
|
2533
|
+
name: t(item.name)
|
|
2534
|
+
});
|
|
2535
|
+
}).filter(function (nav) {
|
|
1983
2536
|
return canAccess(user === null || user === void 0 ? void 0 : user.roles, nav.roles);
|
|
1984
2537
|
}).filter(function (nav) {
|
|
1985
2538
|
return !!nav.isDistrict === isDistrict;
|
|
@@ -3854,6 +4407,10 @@ var SkillDetailModal = function SkillDetailModal(props, ref) {
|
|
|
3854
4407
|
setEditedTrue = props.setEditedTrue,
|
|
3855
4408
|
setEditedFalse = props.setEditedFalse,
|
|
3856
4409
|
isDisabled = props.isDisabled;
|
|
4410
|
+
|
|
4411
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
4412
|
+
t = _useTranslation.t;
|
|
4413
|
+
|
|
3857
4414
|
return React__default.createElement(formik.Formik, {
|
|
3858
4415
|
initialValues: skillDetail,
|
|
3859
4416
|
enableReinitialize: true,
|
|
@@ -3887,10 +4444,10 @@ var SkillDetailModal = function SkillDetailModal(props, ref) {
|
|
|
3887
4444
|
md: 12,
|
|
3888
4445
|
className: "mb-2"
|
|
3889
4446
|
}, React__default.createElement(RequiredLabel$1, {
|
|
3890
|
-
text: "Name"
|
|
4447
|
+
text: t("Name")
|
|
3891
4448
|
}), React__default.createElement(reactstrap.Input, {
|
|
3892
4449
|
name: "name",
|
|
3893
|
-
placeholder: "Name",
|
|
4450
|
+
placeholder: t("Name"),
|
|
3894
4451
|
value: values.name,
|
|
3895
4452
|
onChange: function onChange(e) {
|
|
3896
4453
|
handleChange(e);
|
|
@@ -3902,11 +4459,11 @@ var SkillDetailModal = function SkillDetailModal(props, ref) {
|
|
|
3902
4459
|
})), React__default.createElement(reactstrap.Col, {
|
|
3903
4460
|
md: 12,
|
|
3904
4461
|
className: "mb-2"
|
|
3905
|
-
}, React__default.createElement(reactstrap.Label, null, "Description"), React__default.createElement(reactstrap.Input, {
|
|
4462
|
+
}, React__default.createElement(reactstrap.Label, null, t("Description")), React__default.createElement(reactstrap.Input, {
|
|
3906
4463
|
type: "textarea",
|
|
3907
4464
|
rows: 5,
|
|
3908
4465
|
name: "description",
|
|
3909
|
-
placeholder: "Description",
|
|
4466
|
+
placeholder: t("Description"),
|
|
3910
4467
|
value: values.description,
|
|
3911
4468
|
onChange: function onChange(e) {
|
|
3912
4469
|
handleChange(e);
|
|
@@ -3916,7 +4473,7 @@ var SkillDetailModal = function SkillDetailModal(props, ref) {
|
|
|
3916
4473
|
})), React__default.createElement(reactstrap.Col, {
|
|
3917
4474
|
md: 12,
|
|
3918
4475
|
className: "mb-2"
|
|
3919
|
-
}, React__default.createElement(reactstrap.Label, null, "Parent category"), React__default.createElement(SkillSelector, {
|
|
4476
|
+
}, React__default.createElement(reactstrap.Label, null, t("Parent category")), React__default.createElement(SkillSelector, {
|
|
3920
4477
|
isDisabled: isDisabled,
|
|
3921
4478
|
onChange: function onChange(e) {
|
|
3922
4479
|
formikProps.setFieldValue("parentSkillId", e.value);
|
|
@@ -4169,6 +4726,9 @@ var useSkillDetail = function useSkillDetail() {
|
|
|
4169
4726
|
var SkillList = function SkillList() {
|
|
4170
4727
|
var modal = React.useRef();
|
|
4171
4728
|
|
|
4729
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
4730
|
+
t = _useTranslation.t;
|
|
4731
|
+
|
|
4172
4732
|
var _useSkillList = useSkillList(),
|
|
4173
4733
|
skillList = _useSkillList.skillList,
|
|
4174
4734
|
totalItems = _useSkillList.totalItems,
|
|
@@ -4213,8 +4773,8 @@ var SkillList = function SkillList() {
|
|
|
4213
4773
|
className: "fadeIn animated"
|
|
4214
4774
|
}, React__default.createElement(SkillDetailModal$1, {
|
|
4215
4775
|
ref: modal,
|
|
4216
|
-
header: !!id ? "Edit skill" : "Create skill",
|
|
4217
|
-
confirmText: !!id ? "Update" : "Create",
|
|
4776
|
+
header: !!id ? t("Edit skill") : t("Create skill"),
|
|
4777
|
+
confirmText: !!id ? t("Update") : t("Create"),
|
|
4218
4778
|
onCancel: onCancel,
|
|
4219
4779
|
onConfirm: onConfirm,
|
|
4220
4780
|
skillDetail: skillDetail,
|
|
@@ -4230,14 +4790,14 @@ var SkillList = function SkillList() {
|
|
|
4230
4790
|
}, React__default.createElement(reactstrap.Col, {
|
|
4231
4791
|
md: 4
|
|
4232
4792
|
}, React__default.createElement(AddButton, {
|
|
4233
|
-
text: "Create skill",
|
|
4793
|
+
text: t("Create skill"),
|
|
4234
4794
|
onClick: function onClick() {
|
|
4235
4795
|
return openModal();
|
|
4236
4796
|
}
|
|
4237
4797
|
})), React__default.createElement(reactstrap.Col, {
|
|
4238
4798
|
md: 4,
|
|
4239
4799
|
className: "d-flex align-items-center justify-content-end"
|
|
4240
|
-
}, "Total of skills: ", totalItems)), React__default.createElement(reactstrap.Row, {
|
|
4800
|
+
}, t("Total of skills"), ": ", totalItems)), React__default.createElement(reactstrap.Row, {
|
|
4241
4801
|
className: "mb-2"
|
|
4242
4802
|
}, React__default.createElement(reactstrap.Col, {
|
|
4243
4803
|
md: 8
|
|
@@ -4249,11 +4809,11 @@ var SkillList = function SkillList() {
|
|
|
4249
4809
|
size: "sm"
|
|
4250
4810
|
}, React__default.createElement("thead", null, React__default.createElement("tr", null, React__default.createElement("th", {
|
|
4251
4811
|
className: "align-top"
|
|
4252
|
-
},
|
|
4812
|
+
}, t('Name')), React__default.createElement("th", {
|
|
4253
4813
|
className: "align-top"
|
|
4254
|
-
},
|
|
4814
|
+
}, t('Description')), React__default.createElement("th", {
|
|
4255
4815
|
className: "text-center"
|
|
4256
|
-
},
|
|
4816
|
+
}, t('Action')))), React__default.createElement("tbody", null, skillList.map(function (record) {
|
|
4257
4817
|
return React__default.createElement("tr", {
|
|
4258
4818
|
key: record.id
|
|
4259
4819
|
}, React__default.createElement("td", {
|
|
@@ -4275,7 +4835,7 @@ var SkillList = function SkillList() {
|
|
|
4275
4835
|
}
|
|
4276
4836
|
})));
|
|
4277
4837
|
}))) : React__default.createElement(EmptyDataAlert, {
|
|
4278
|
-
label: "skill"
|
|
4838
|
+
label: t("skill")
|
|
4279
4839
|
})), React__default.createElement(reactstrap.Col, {
|
|
4280
4840
|
md: 8,
|
|
4281
4841
|
className: "text-right"
|
|
@@ -4530,16 +5090,19 @@ var UserList = function UserList() {
|
|
|
4530
5090
|
changeFilters = _useUserList.changeFilters,
|
|
4531
5091
|
reDirectDetailPage = _useUserList.reDirectDetailPage;
|
|
4532
5092
|
|
|
5093
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
5094
|
+
t = _useTranslation.t;
|
|
5095
|
+
|
|
4533
5096
|
return React__default.createElement("div", {
|
|
4534
5097
|
className: "fadeIn animated"
|
|
4535
5098
|
}, React__default.createElement("h5", {
|
|
4536
5099
|
className: "mb-2"
|
|
4537
|
-
}, header$2), React__default.createElement(reactstrap.Row, {
|
|
5100
|
+
}, t("" + header$2)), React__default.createElement(reactstrap.Row, {
|
|
4538
5101
|
className: "my-2"
|
|
4539
5102
|
}, React__default.createElement(reactstrap.Col, {
|
|
4540
5103
|
md: 8
|
|
4541
5104
|
}, React__default.createElement(SearchBoxContainer, {
|
|
4542
|
-
text: "Create user",
|
|
5105
|
+
text: t("Create user"),
|
|
4543
5106
|
onClick: function onClick() {
|
|
4544
5107
|
return reDirectDetailPage();
|
|
4545
5108
|
},
|
|
@@ -4549,11 +5112,11 @@ var UserList = function UserList() {
|
|
|
4549
5112
|
searchString: searchString
|
|
4550
5113
|
});
|
|
4551
5114
|
},
|
|
4552
|
-
placeholder: "Type something to search by user name"
|
|
5115
|
+
placeholder: t("Type something to search by user name")
|
|
4553
5116
|
})), React__default.createElement(reactstrap.Col, {
|
|
4554
5117
|
md: 4,
|
|
4555
5118
|
className: "d-flex justify-content-end align-items-center"
|
|
4556
|
-
}, "Total of users: ", totalItems)), React__default.createElement(reactstrap.Row, {
|
|
5119
|
+
}, t("Total of users"), " : ", totalItems)), React__default.createElement(reactstrap.Row, {
|
|
4557
5120
|
className: "mb-2"
|
|
4558
5121
|
}, React__default.createElement(reactstrap.Col, {
|
|
4559
5122
|
md: 12
|
|
@@ -4565,17 +5128,17 @@ var UserList = function UserList() {
|
|
|
4565
5128
|
size: "sm"
|
|
4566
5129
|
}, React__default.createElement("thead", null, React__default.createElement("tr", null, React__default.createElement("th", {
|
|
4567
5130
|
className: "align-top"
|
|
4568
|
-
}, "Name"), React__default.createElement("th", {
|
|
5131
|
+
}, t("Name")), React__default.createElement("th", {
|
|
4569
5132
|
className: "align-top"
|
|
4570
|
-
}, "Email"), React__default.createElement("th", {
|
|
5133
|
+
}, t("Email")), React__default.createElement("th", {
|
|
4571
5134
|
className: "align-top"
|
|
4572
|
-
}, "Age"), React__default.createElement("th", {
|
|
5135
|
+
}, t("Age")), React__default.createElement("th", {
|
|
4573
5136
|
className: "align-top"
|
|
4574
|
-
}, "Role"), React__default.createElement("th", {
|
|
5137
|
+
}, t("Role")), React__default.createElement("th", {
|
|
4575
5138
|
className: "align-top"
|
|
4576
|
-
}, "Active status"), React__default.createElement("th", {
|
|
5139
|
+
}, t("Active status")), React__default.createElement("th", {
|
|
4577
5140
|
className: "text-center"
|
|
4578
|
-
}, "Action"))), React__default.createElement("tbody", null, userList.map(function (record) {
|
|
5141
|
+
}, t("Action")))), React__default.createElement("tbody", null, userList.map(function (record) {
|
|
4579
5142
|
return React__default.createElement("tr", {
|
|
4580
5143
|
key: record.id
|
|
4581
5144
|
}, React__default.createElement("td", {
|
|
@@ -4593,7 +5156,7 @@ var UserList = function UserList() {
|
|
|
4593
5156
|
className: "align-middle"
|
|
4594
5157
|
}, !!record.roles && record.roles.join(", ")), React__default.createElement("td", {
|
|
4595
5158
|
className: "align-middle"
|
|
4596
|
-
}, record.isActive ? "Active" : "Inactive"), React__default.createElement("td", {
|
|
5159
|
+
}, record.isActive ? t("Active") : t("Inactive")), React__default.createElement("td", {
|
|
4597
5160
|
className: "text-center align-middle"
|
|
4598
5161
|
}, React__default.createElement(DeleteButtonIcon, {
|
|
4599
5162
|
onClick: function onClick() {
|
|
@@ -4601,7 +5164,7 @@ var UserList = function UserList() {
|
|
|
4601
5164
|
}
|
|
4602
5165
|
})));
|
|
4603
5166
|
})))) : React__default.createElement(EmptyDataAlert, {
|
|
4604
|
-
label: "user"
|
|
5167
|
+
label: t("user")
|
|
4605
5168
|
})), React__default.createElement(reactstrap.Col, {
|
|
4606
5169
|
md: 12
|
|
4607
5170
|
}, React__default.createElement(CustomPagination, {
|
|
@@ -4945,6 +5508,9 @@ var UserDetail = function UserDetail() {
|
|
|
4945
5508
|
return state.common.user;
|
|
4946
5509
|
});
|
|
4947
5510
|
|
|
5511
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
5512
|
+
t = _useTranslation.t;
|
|
5513
|
+
|
|
4948
5514
|
var _useUserDetail = useUserDetail(id),
|
|
4949
5515
|
userDetail = _useUserDetail.userDetail,
|
|
4950
5516
|
backToList = _useUserDetail.backToList,
|
|
@@ -4962,8 +5528,8 @@ var UserDetail = function UserDetail() {
|
|
|
4962
5528
|
newPassword: "",
|
|
4963
5529
|
confirmedNewPassword: ""
|
|
4964
5530
|
};
|
|
4965
|
-
var header = !!id ? EDIT_USER_HEADER : CREATE_USER;
|
|
4966
|
-
var confirmText = !!id ? "Update" : "Create";
|
|
5531
|
+
var header = !!id ? t("" + EDIT_USER_HEADER) : t("" + CREATE_USER);
|
|
5532
|
+
var confirmText = !!id ? t("Update") : t("Create");
|
|
4967
5533
|
|
|
4968
5534
|
var getFile = function getFile() {
|
|
4969
5535
|
var url = window.location.origin + "/api/ExportDataUser/" + id;
|
|
@@ -5032,7 +5598,7 @@ var UserDetail = function UserDetail() {
|
|
|
5032
5598
|
}, React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
5033
5599
|
md: 6
|
|
5034
5600
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5035
|
-
text: "First name"
|
|
5601
|
+
text: t("First name")
|
|
5036
5602
|
}), React__default.createElement(reactstrap.Input, {
|
|
5037
5603
|
name: "firstName",
|
|
5038
5604
|
value: values.firstName,
|
|
@@ -5041,13 +5607,13 @@ var UserDetail = function UserDetail() {
|
|
|
5041
5607
|
setEditedTrue();
|
|
5042
5608
|
},
|
|
5043
5609
|
onBlur: handleBlur("subject"),
|
|
5044
|
-
placeholder: "First name"
|
|
5610
|
+
placeholder: t("First name")
|
|
5045
5611
|
}), touched.firstName && errors.firstName && React__default.createElement(ErrorHandler, {
|
|
5046
5612
|
text: errors.firstName
|
|
5047
5613
|
}))), React__default.createElement(reactstrap.Col, {
|
|
5048
5614
|
md: 6
|
|
5049
5615
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5050
|
-
text: "Date of birth"
|
|
5616
|
+
text: t("Date of birth")
|
|
5051
5617
|
}), React__default.createElement("div", null, React__default.createElement(DatePicker, {
|
|
5052
5618
|
value: values.dateOfBirth,
|
|
5053
5619
|
todayButton: "Today",
|
|
@@ -5060,20 +5626,20 @@ var UserDetail = function UserDetail() {
|
|
|
5060
5626
|
formProps.setFieldValue("dateOfBirth", dateFns.format(e, DATE_FORMAT));
|
|
5061
5627
|
setEditedTrue();
|
|
5062
5628
|
},
|
|
5063
|
-
placeholderText: "Date of birth",
|
|
5629
|
+
placeholderText: t("Date of birth"),
|
|
5064
5630
|
customInput: React__default.createElement(reactstrap.Input, {
|
|
5065
5631
|
type: "text",
|
|
5066
5632
|
style: {
|
|
5067
5633
|
width: "maxContent"
|
|
5068
5634
|
},
|
|
5069
|
-
placeholder: "Date of birth"
|
|
5635
|
+
placeholder: t("Date of birth")
|
|
5070
5636
|
})
|
|
5071
5637
|
})), touched.dateOfBirth && errors.dateOfBirth && React__default.createElement(ErrorHandler, {
|
|
5072
5638
|
text: errors.dateOfBirth
|
|
5073
5639
|
})))), React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
5074
5640
|
md: 6
|
|
5075
5641
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5076
|
-
text: "Last name"
|
|
5642
|
+
text: t("Last name")
|
|
5077
5643
|
}), React__default.createElement(reactstrap.Input, {
|
|
5078
5644
|
name: "lastName",
|
|
5079
5645
|
value: values.lastName,
|
|
@@ -5082,13 +5648,13 @@ var UserDetail = function UserDetail() {
|
|
|
5082
5648
|
setEditedTrue();
|
|
5083
5649
|
},
|
|
5084
5650
|
onBlur: handleBlur("lastName"),
|
|
5085
|
-
placeholder: "Last name"
|
|
5651
|
+
placeholder: t("Last name")
|
|
5086
5652
|
}), touched.lastName && errors.lastName && React__default.createElement(ErrorHandler, {
|
|
5087
5653
|
text: errors.lastName
|
|
5088
5654
|
}))), React__default.createElement(reactstrap.Col, {
|
|
5089
5655
|
md: 6
|
|
5090
5656
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5091
|
-
text: "Roles"
|
|
5657
|
+
text: t("Roles")
|
|
5092
5658
|
}), React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
5093
5659
|
md: 12,
|
|
5094
5660
|
className: "d-flex flex-wrap align-items-center"
|
|
@@ -5112,7 +5678,7 @@ var UserDetail = function UserDetail() {
|
|
|
5112
5678
|
})))), React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
5113
5679
|
md: 6
|
|
5114
5680
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5115
|
-
text: "Email"
|
|
5681
|
+
text: t("Email")
|
|
5116
5682
|
}), React__default.createElement(reactstrap.Input, {
|
|
5117
5683
|
name: "email",
|
|
5118
5684
|
value: values.email,
|
|
@@ -5121,20 +5687,20 @@ var UserDetail = function UserDetail() {
|
|
|
5121
5687
|
setEditedTrue();
|
|
5122
5688
|
},
|
|
5123
5689
|
onBlur: handleBlur("email"),
|
|
5124
|
-
placeholder: "Email"
|
|
5690
|
+
placeholder: t("Email")
|
|
5125
5691
|
}), touched.email && errors.email && React__default.createElement(ErrorHandler, {
|
|
5126
5692
|
text: errors.email
|
|
5127
5693
|
}))), React__default.createElement(reactstrap.Col, {
|
|
5128
5694
|
md: 6
|
|
5129
5695
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5130
|
-
text: "Status"
|
|
5696
|
+
text: t("Status")
|
|
5131
5697
|
}), React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
5132
5698
|
md: 3
|
|
5133
5699
|
}, React__default.createElement(reactstrap.CustomInput, {
|
|
5134
5700
|
id: "role-checkbox-active",
|
|
5135
5701
|
type: "radio",
|
|
5136
5702
|
name: "active",
|
|
5137
|
-
label: "Active",
|
|
5703
|
+
label: t("Active"),
|
|
5138
5704
|
checked: !!values && !!values.isActive,
|
|
5139
5705
|
onChange: function onChange() {
|
|
5140
5706
|
setFieldValue("isActive", true);
|
|
@@ -5146,7 +5712,7 @@ var UserDetail = function UserDetail() {
|
|
|
5146
5712
|
id: "role-checkbox-inActive",
|
|
5147
5713
|
type: "radio",
|
|
5148
5714
|
name: "active",
|
|
5149
|
-
label: "Inactive",
|
|
5715
|
+
label: t("Inactive"),
|
|
5150
5716
|
checked: !!values && !values.isActive,
|
|
5151
5717
|
onChange: function onChange() {
|
|
5152
5718
|
return setFieldValue("isActive", false);
|
|
@@ -5160,13 +5726,13 @@ var UserDetail = function UserDetail() {
|
|
|
5160
5726
|
onClick: function onClick() {
|
|
5161
5727
|
onResetPw(values.email || "");
|
|
5162
5728
|
}
|
|
5163
|
-
},
|
|
5729
|
+
}, t('Send forgot password link')), React__default.createElement(reactstrap.Button, {
|
|
5164
5730
|
color: "success",
|
|
5165
5731
|
onClick: function onClick() {
|
|
5166
5732
|
getFile();
|
|
5167
5733
|
},
|
|
5168
5734
|
className: "ml-4"
|
|
5169
|
-
},
|
|
5735
|
+
}, t('Download user data'))))), React__default.createElement(reactstrap.Col, {
|
|
5170
5736
|
md: 4
|
|
5171
5737
|
}, React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
5172
5738
|
md: 8
|
|
@@ -5187,7 +5753,7 @@ var UserDetail = function UserDetail() {
|
|
|
5187
5753
|
}
|
|
5188
5754
|
}))))), user.id === id ? React__default.createElement("div", null, React__default.createElement("h5", {
|
|
5189
5755
|
className: "mt-3"
|
|
5190
|
-
}, CHANGE_PASSWORD$1), React__default.createElement(formik.Formik, {
|
|
5756
|
+
}, t("" + CHANGE_PASSWORD$1)), React__default.createElement(formik.Formik, {
|
|
5191
5757
|
initialValues: initialValueForm,
|
|
5192
5758
|
enableReinitialize: true,
|
|
5193
5759
|
validationSchema: changePasswordSchema,
|
|
@@ -5205,7 +5771,7 @@ var UserDetail = function UserDetail() {
|
|
|
5205
5771
|
}, React__default.createElement(reactstrap.Col, {
|
|
5206
5772
|
md: 7
|
|
5207
5773
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5208
|
-
text: "Current password"
|
|
5774
|
+
text: t("Current password")
|
|
5209
5775
|
}), React__default.createElement(reactstrap.Input, {
|
|
5210
5776
|
name: "oldPassword",
|
|
5211
5777
|
type: "password",
|
|
@@ -5215,13 +5781,13 @@ var UserDetail = function UserDetail() {
|
|
|
5215
5781
|
setEditedTrue();
|
|
5216
5782
|
},
|
|
5217
5783
|
onBlur: handleBlur("subject"),
|
|
5218
|
-
placeholder: "Current password"
|
|
5784
|
+
placeholder: t("Current password")
|
|
5219
5785
|
}), touched.oldPassword && errors.oldPassword && React__default.createElement(ErrorHandler, {
|
|
5220
5786
|
text: errors.oldPassword
|
|
5221
5787
|
}))), React__default.createElement(reactstrap.Col, {
|
|
5222
5788
|
md: 7
|
|
5223
5789
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5224
|
-
text: "New password"
|
|
5790
|
+
text: t("New password")
|
|
5225
5791
|
}), React__default.createElement(reactstrap.Input, {
|
|
5226
5792
|
name: "newPassword",
|
|
5227
5793
|
type: "password",
|
|
@@ -5231,13 +5797,13 @@ var UserDetail = function UserDetail() {
|
|
|
5231
5797
|
setEditedTrue();
|
|
5232
5798
|
},
|
|
5233
5799
|
onBlur: handleBlur("subject"),
|
|
5234
|
-
placeholder: "New password"
|
|
5800
|
+
placeholder: t("New password")
|
|
5235
5801
|
}), touched.newPassword && errors.newPassword && React__default.createElement(ErrorHandler, {
|
|
5236
5802
|
text: errors.newPassword
|
|
5237
5803
|
}))), React__default.createElement(reactstrap.Col, {
|
|
5238
5804
|
md: 7
|
|
5239
5805
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5240
|
-
text: "Confirm password"
|
|
5806
|
+
text: t("Confirm password")
|
|
5241
5807
|
}), React__default.createElement(reactstrap.Input, {
|
|
5242
5808
|
name: "confirmedNewPassword",
|
|
5243
5809
|
type: "password",
|
|
@@ -5247,7 +5813,7 @@ var UserDetail = function UserDetail() {
|
|
|
5247
5813
|
setEditedTrue();
|
|
5248
5814
|
},
|
|
5249
5815
|
onBlur: handleBlur("subject"),
|
|
5250
|
-
placeholder: "Confirm password"
|
|
5816
|
+
placeholder: t("Confirm password")
|
|
5251
5817
|
}), touched.confirmedNewPassword && errors.confirmedNewPassword && React__default.createElement(ErrorHandler, {
|
|
5252
5818
|
text: errors.confirmedNewPassword
|
|
5253
5819
|
}))), React__default.createElement(reactstrap.Col, {
|
|
@@ -5259,7 +5825,7 @@ var UserDetail = function UserDetail() {
|
|
|
5259
5825
|
onClick: function onClick() {
|
|
5260
5826
|
return handleSubmit();
|
|
5261
5827
|
}
|
|
5262
|
-
}, "Save")));
|
|
5828
|
+
}, t("Save"))));
|
|
5263
5829
|
})) : null, React__default.createElement(DetailActionButtons, {
|
|
5264
5830
|
confirmText: confirmText,
|
|
5265
5831
|
onConfirm: handleSubmit,
|
|
@@ -7135,6 +7701,7 @@ var initialState = {
|
|
|
7135
7701
|
defaultFontSize: 16,
|
|
7136
7702
|
isEnableIEP: true,
|
|
7137
7703
|
isConversationOneToOne: false,
|
|
7704
|
+
language: "en",
|
|
7138
7705
|
amplitude: {
|
|
7139
7706
|
user_id: "",
|
|
7140
7707
|
status: "",
|
|
@@ -7179,6 +7746,8 @@ var commonReducer = toolkit.createReducer(initialState, function (builder) {
|
|
|
7179
7746
|
state.isEnableIEP = action.payload;
|
|
7180
7747
|
}).addCase(setConversationOneToOne, function (state, action) {
|
|
7181
7748
|
state.isConversationOneToOne = action.payload;
|
|
7749
|
+
}).addCase(setLanguage, function (state, action) {
|
|
7750
|
+
state.language = action.payload;
|
|
7182
7751
|
}).addCase(showFontSize, function (state, action) {
|
|
7183
7752
|
state.defaultFontSize = action.payload;
|
|
7184
7753
|
}).addCase(initAmplitude, function (state, action) {
|
|
@@ -8112,6 +8681,18 @@ var generateRandomString = (function () {
|
|
|
8112
8681
|
|
|
8113
8682
|
var amplitudeClient = amplitude.getInstance();
|
|
8114
8683
|
|
|
8684
|
+
Object.defineProperty(exports, 'I18nextProvider', {
|
|
8685
|
+
enumerable: true,
|
|
8686
|
+
get: function () {
|
|
8687
|
+
return reactI18next.I18nextProvider;
|
|
8688
|
+
}
|
|
8689
|
+
});
|
|
8690
|
+
Object.defineProperty(exports, 'useTranslation', {
|
|
8691
|
+
enumerable: true,
|
|
8692
|
+
get: function () {
|
|
8693
|
+
return reactI18next.useTranslation;
|
|
8694
|
+
}
|
|
8695
|
+
});
|
|
8115
8696
|
exports.ACCESS_TOKEN = ACCESS_TOKEN;
|
|
8116
8697
|
exports.ANSWER_EDITOR_HEIGHT = ANSWER_EDITOR_HEIGHT;
|
|
8117
8698
|
exports.AcademicClassSelector = AcademicClassSelector;
|
|
@@ -8128,7 +8709,7 @@ exports.CustomTab = CustomTabs;
|
|
|
8128
8709
|
exports.DATE_FORMAT = DATE_FORMAT;
|
|
8129
8710
|
exports.DATE_RESULT = DATE_RESULT;
|
|
8130
8711
|
exports.DEFAULT_FILTER = DEFAULT_FILTER;
|
|
8131
|
-
exports.Dashboard = Dashboard;
|
|
8712
|
+
exports.Dashboard = Dashboard$2;
|
|
8132
8713
|
exports.DeleteButtonIcon = DeleteButtonIcon;
|
|
8133
8714
|
exports.DetailActionButtons = DetailActionButtons;
|
|
8134
8715
|
exports.EMOTIONS = EMOTIONS;
|
|
@@ -8194,6 +8775,7 @@ exports.generateRandomString = generateRandomString;
|
|
|
8194
8775
|
exports.getFileUrl = getFileUrl;
|
|
8195
8776
|
exports.getInfo = getInfo;
|
|
8196
8777
|
exports.getTextFromHTML = getTextFromHTML;
|
|
8778
|
+
exports.i18n = i18n;
|
|
8197
8779
|
exports.initAmplitude = initAmplitude;
|
|
8198
8780
|
exports.isInViewport = isInViewport;
|
|
8199
8781
|
exports.reset = reset;
|
|
@@ -8218,6 +8800,7 @@ exports.setFeedbackList = setFeedbackList;
|
|
|
8218
8800
|
exports.setFilterWidget = setFilterWidget;
|
|
8219
8801
|
exports.setGoalExampleList = setGoalExampleList;
|
|
8220
8802
|
exports.setImproveMyClass = setImproveMyClass;
|
|
8803
|
+
exports.setLanguage = setLanguage;
|
|
8221
8804
|
exports.setLearningSupportCategoryList = setLearningSupportCategoryList;
|
|
8222
8805
|
exports.setLoading = setLoading;
|
|
8223
8806
|
exports.setMailCategory = setMailCategory;
|