mario-core 2.9.37-beta → 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 +640 -55
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +641 -69
- 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");
|
|
@@ -305,10 +781,12 @@ var apiUpload = axios.create({
|
|
|
305
781
|
if (!key.includes('learning-plan')) delete localStorage[key];
|
|
306
782
|
});
|
|
307
783
|
var userEmail = localStorage.getItem("USER_EMAIL");
|
|
784
|
+
var hostName = window.location.hostname;
|
|
308
785
|
|
|
309
786
|
if (userEmail) {
|
|
310
787
|
amplitude.getInstance().logEvent("general: session end", {
|
|
311
|
-
user_id: userEmail
|
|
788
|
+
user_id: userEmail,
|
|
789
|
+
domain: hostName
|
|
312
790
|
});
|
|
313
791
|
amplitude.getInstance().resetSessionId();
|
|
314
792
|
}
|
|
@@ -1510,7 +1988,7 @@ var HOME_STUDENT = "/home";
|
|
|
1510
1988
|
var DASHBOARD_TITLE = "Dashboard";
|
|
1511
1989
|
var ROOT_TITLE = "Mario Framework";
|
|
1512
1990
|
|
|
1513
|
-
var Dashboard = function Dashboard() {
|
|
1991
|
+
var Dashboard$2 = function Dashboard() {
|
|
1514
1992
|
var user = reactRedux.useSelector(function (state) {
|
|
1515
1993
|
return state.common.user;
|
|
1516
1994
|
});
|
|
@@ -1826,6 +2304,75 @@ var TheHeaderDropdown = function TheHeaderDropdown() {
|
|
|
1826
2304
|
})), "LOGOUT"))));
|
|
1827
2305
|
};
|
|
1828
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
|
+
|
|
1829
2376
|
var TheHeader = function TheHeader() {
|
|
1830
2377
|
var isDistrict = window.location.host.includes("-district");
|
|
1831
2378
|
return React__default.createElement(react.CHeader, {
|
|
@@ -1846,7 +2393,7 @@ var TheHeader = function TheHeader() {
|
|
|
1846
2393
|
},
|
|
1847
2394
|
href: '/privacy-policy',
|
|
1848
2395
|
target: "blank"
|
|
1849
|
-
}, "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)));
|
|
1850
2397
|
};
|
|
1851
2398
|
|
|
1852
2399
|
var TITLE$2 = "Not found";
|
|
@@ -1966,6 +2513,10 @@ var TheLayout = function TheLayout(_ref) {
|
|
|
1966
2513
|
var user = reactRedux.useSelector(function (state) {
|
|
1967
2514
|
return state.common.user;
|
|
1968
2515
|
});
|
|
2516
|
+
|
|
2517
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
2518
|
+
t = _useTranslation.t;
|
|
2519
|
+
|
|
1969
2520
|
var location = reactRouterDom.useLocation();
|
|
1970
2521
|
var isNotification = location.pathname.includes("notifications");
|
|
1971
2522
|
var isDistrict = window.location.host.includes("-district");
|
|
@@ -1977,7 +2528,11 @@ var TheLayout = function TheLayout(_ref) {
|
|
|
1977
2528
|
});
|
|
1978
2529
|
}, [user]);
|
|
1979
2530
|
var authNavigations = React.useMemo(function () {
|
|
1980
|
-
return navigation.
|
|
2531
|
+
return navigation.map(function (item) {
|
|
2532
|
+
return _extends({}, item, {
|
|
2533
|
+
name: t(item.name)
|
|
2534
|
+
});
|
|
2535
|
+
}).filter(function (nav) {
|
|
1981
2536
|
return canAccess(user === null || user === void 0 ? void 0 : user.roles, nav.roles);
|
|
1982
2537
|
}).filter(function (nav) {
|
|
1983
2538
|
return !!nav.isDistrict === isDistrict;
|
|
@@ -3852,6 +4407,10 @@ var SkillDetailModal = function SkillDetailModal(props, ref) {
|
|
|
3852
4407
|
setEditedTrue = props.setEditedTrue,
|
|
3853
4408
|
setEditedFalse = props.setEditedFalse,
|
|
3854
4409
|
isDisabled = props.isDisabled;
|
|
4410
|
+
|
|
4411
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
4412
|
+
t = _useTranslation.t;
|
|
4413
|
+
|
|
3855
4414
|
return React__default.createElement(formik.Formik, {
|
|
3856
4415
|
initialValues: skillDetail,
|
|
3857
4416
|
enableReinitialize: true,
|
|
@@ -3885,10 +4444,10 @@ var SkillDetailModal = function SkillDetailModal(props, ref) {
|
|
|
3885
4444
|
md: 12,
|
|
3886
4445
|
className: "mb-2"
|
|
3887
4446
|
}, React__default.createElement(RequiredLabel$1, {
|
|
3888
|
-
text: "Name"
|
|
4447
|
+
text: t("Name")
|
|
3889
4448
|
}), React__default.createElement(reactstrap.Input, {
|
|
3890
4449
|
name: "name",
|
|
3891
|
-
placeholder: "Name",
|
|
4450
|
+
placeholder: t("Name"),
|
|
3892
4451
|
value: values.name,
|
|
3893
4452
|
onChange: function onChange(e) {
|
|
3894
4453
|
handleChange(e);
|
|
@@ -3900,11 +4459,11 @@ var SkillDetailModal = function SkillDetailModal(props, ref) {
|
|
|
3900
4459
|
})), React__default.createElement(reactstrap.Col, {
|
|
3901
4460
|
md: 12,
|
|
3902
4461
|
className: "mb-2"
|
|
3903
|
-
}, 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, {
|
|
3904
4463
|
type: "textarea",
|
|
3905
4464
|
rows: 5,
|
|
3906
4465
|
name: "description",
|
|
3907
|
-
placeholder: "Description",
|
|
4466
|
+
placeholder: t("Description"),
|
|
3908
4467
|
value: values.description,
|
|
3909
4468
|
onChange: function onChange(e) {
|
|
3910
4469
|
handleChange(e);
|
|
@@ -3914,7 +4473,7 @@ var SkillDetailModal = function SkillDetailModal(props, ref) {
|
|
|
3914
4473
|
})), React__default.createElement(reactstrap.Col, {
|
|
3915
4474
|
md: 12,
|
|
3916
4475
|
className: "mb-2"
|
|
3917
|
-
}, 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, {
|
|
3918
4477
|
isDisabled: isDisabled,
|
|
3919
4478
|
onChange: function onChange(e) {
|
|
3920
4479
|
formikProps.setFieldValue("parentSkillId", e.value);
|
|
@@ -4167,6 +4726,9 @@ var useSkillDetail = function useSkillDetail() {
|
|
|
4167
4726
|
var SkillList = function SkillList() {
|
|
4168
4727
|
var modal = React.useRef();
|
|
4169
4728
|
|
|
4729
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
4730
|
+
t = _useTranslation.t;
|
|
4731
|
+
|
|
4170
4732
|
var _useSkillList = useSkillList(),
|
|
4171
4733
|
skillList = _useSkillList.skillList,
|
|
4172
4734
|
totalItems = _useSkillList.totalItems,
|
|
@@ -4211,8 +4773,8 @@ var SkillList = function SkillList() {
|
|
|
4211
4773
|
className: "fadeIn animated"
|
|
4212
4774
|
}, React__default.createElement(SkillDetailModal$1, {
|
|
4213
4775
|
ref: modal,
|
|
4214
|
-
header: !!id ? "Edit skill" : "Create skill",
|
|
4215
|
-
confirmText: !!id ? "Update" : "Create",
|
|
4776
|
+
header: !!id ? t("Edit skill") : t("Create skill"),
|
|
4777
|
+
confirmText: !!id ? t("Update") : t("Create"),
|
|
4216
4778
|
onCancel: onCancel,
|
|
4217
4779
|
onConfirm: onConfirm,
|
|
4218
4780
|
skillDetail: skillDetail,
|
|
@@ -4228,14 +4790,14 @@ var SkillList = function SkillList() {
|
|
|
4228
4790
|
}, React__default.createElement(reactstrap.Col, {
|
|
4229
4791
|
md: 4
|
|
4230
4792
|
}, React__default.createElement(AddButton, {
|
|
4231
|
-
text: "Create skill",
|
|
4793
|
+
text: t("Create skill"),
|
|
4232
4794
|
onClick: function onClick() {
|
|
4233
4795
|
return openModal();
|
|
4234
4796
|
}
|
|
4235
4797
|
})), React__default.createElement(reactstrap.Col, {
|
|
4236
4798
|
md: 4,
|
|
4237
4799
|
className: "d-flex align-items-center justify-content-end"
|
|
4238
|
-
}, "Total of skills: ", totalItems)), React__default.createElement(reactstrap.Row, {
|
|
4800
|
+
}, t("Total of skills"), ": ", totalItems)), React__default.createElement(reactstrap.Row, {
|
|
4239
4801
|
className: "mb-2"
|
|
4240
4802
|
}, React__default.createElement(reactstrap.Col, {
|
|
4241
4803
|
md: 8
|
|
@@ -4247,11 +4809,11 @@ var SkillList = function SkillList() {
|
|
|
4247
4809
|
size: "sm"
|
|
4248
4810
|
}, React__default.createElement("thead", null, React__default.createElement("tr", null, React__default.createElement("th", {
|
|
4249
4811
|
className: "align-top"
|
|
4250
|
-
},
|
|
4812
|
+
}, t('Name')), React__default.createElement("th", {
|
|
4251
4813
|
className: "align-top"
|
|
4252
|
-
},
|
|
4814
|
+
}, t('Description')), React__default.createElement("th", {
|
|
4253
4815
|
className: "text-center"
|
|
4254
|
-
},
|
|
4816
|
+
}, t('Action')))), React__default.createElement("tbody", null, skillList.map(function (record) {
|
|
4255
4817
|
return React__default.createElement("tr", {
|
|
4256
4818
|
key: record.id
|
|
4257
4819
|
}, React__default.createElement("td", {
|
|
@@ -4273,7 +4835,7 @@ var SkillList = function SkillList() {
|
|
|
4273
4835
|
}
|
|
4274
4836
|
})));
|
|
4275
4837
|
}))) : React__default.createElement(EmptyDataAlert, {
|
|
4276
|
-
label: "skill"
|
|
4838
|
+
label: t("skill")
|
|
4277
4839
|
})), React__default.createElement(reactstrap.Col, {
|
|
4278
4840
|
md: 8,
|
|
4279
4841
|
className: "text-right"
|
|
@@ -4528,16 +5090,19 @@ var UserList = function UserList() {
|
|
|
4528
5090
|
changeFilters = _useUserList.changeFilters,
|
|
4529
5091
|
reDirectDetailPage = _useUserList.reDirectDetailPage;
|
|
4530
5092
|
|
|
5093
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
5094
|
+
t = _useTranslation.t;
|
|
5095
|
+
|
|
4531
5096
|
return React__default.createElement("div", {
|
|
4532
5097
|
className: "fadeIn animated"
|
|
4533
5098
|
}, React__default.createElement("h5", {
|
|
4534
5099
|
className: "mb-2"
|
|
4535
|
-
}, header$2), React__default.createElement(reactstrap.Row, {
|
|
5100
|
+
}, t("" + header$2)), React__default.createElement(reactstrap.Row, {
|
|
4536
5101
|
className: "my-2"
|
|
4537
5102
|
}, React__default.createElement(reactstrap.Col, {
|
|
4538
5103
|
md: 8
|
|
4539
5104
|
}, React__default.createElement(SearchBoxContainer, {
|
|
4540
|
-
text: "Create user",
|
|
5105
|
+
text: t("Create user"),
|
|
4541
5106
|
onClick: function onClick() {
|
|
4542
5107
|
return reDirectDetailPage();
|
|
4543
5108
|
},
|
|
@@ -4547,11 +5112,11 @@ var UserList = function UserList() {
|
|
|
4547
5112
|
searchString: searchString
|
|
4548
5113
|
});
|
|
4549
5114
|
},
|
|
4550
|
-
placeholder: "Type something to search by user name"
|
|
5115
|
+
placeholder: t("Type something to search by user name")
|
|
4551
5116
|
})), React__default.createElement(reactstrap.Col, {
|
|
4552
5117
|
md: 4,
|
|
4553
5118
|
className: "d-flex justify-content-end align-items-center"
|
|
4554
|
-
}, "Total of users: ", totalItems)), React__default.createElement(reactstrap.Row, {
|
|
5119
|
+
}, t("Total of users"), " : ", totalItems)), React__default.createElement(reactstrap.Row, {
|
|
4555
5120
|
className: "mb-2"
|
|
4556
5121
|
}, React__default.createElement(reactstrap.Col, {
|
|
4557
5122
|
md: 12
|
|
@@ -4563,17 +5128,17 @@ var UserList = function UserList() {
|
|
|
4563
5128
|
size: "sm"
|
|
4564
5129
|
}, React__default.createElement("thead", null, React__default.createElement("tr", null, React__default.createElement("th", {
|
|
4565
5130
|
className: "align-top"
|
|
4566
|
-
}, "Name"), React__default.createElement("th", {
|
|
5131
|
+
}, t("Name")), React__default.createElement("th", {
|
|
4567
5132
|
className: "align-top"
|
|
4568
|
-
}, "Email"), React__default.createElement("th", {
|
|
5133
|
+
}, t("Email")), React__default.createElement("th", {
|
|
4569
5134
|
className: "align-top"
|
|
4570
|
-
}, "Age"), React__default.createElement("th", {
|
|
5135
|
+
}, t("Age")), React__default.createElement("th", {
|
|
4571
5136
|
className: "align-top"
|
|
4572
|
-
}, "Role"), React__default.createElement("th", {
|
|
5137
|
+
}, t("Role")), React__default.createElement("th", {
|
|
4573
5138
|
className: "align-top"
|
|
4574
|
-
}, "Active status"), React__default.createElement("th", {
|
|
5139
|
+
}, t("Active status")), React__default.createElement("th", {
|
|
4575
5140
|
className: "text-center"
|
|
4576
|
-
}, "Action"))), React__default.createElement("tbody", null, userList.map(function (record) {
|
|
5141
|
+
}, t("Action")))), React__default.createElement("tbody", null, userList.map(function (record) {
|
|
4577
5142
|
return React__default.createElement("tr", {
|
|
4578
5143
|
key: record.id
|
|
4579
5144
|
}, React__default.createElement("td", {
|
|
@@ -4591,7 +5156,7 @@ var UserList = function UserList() {
|
|
|
4591
5156
|
className: "align-middle"
|
|
4592
5157
|
}, !!record.roles && record.roles.join(", ")), React__default.createElement("td", {
|
|
4593
5158
|
className: "align-middle"
|
|
4594
|
-
}, record.isActive ? "Active" : "Inactive"), React__default.createElement("td", {
|
|
5159
|
+
}, record.isActive ? t("Active") : t("Inactive")), React__default.createElement("td", {
|
|
4595
5160
|
className: "text-center align-middle"
|
|
4596
5161
|
}, React__default.createElement(DeleteButtonIcon, {
|
|
4597
5162
|
onClick: function onClick() {
|
|
@@ -4599,7 +5164,7 @@ var UserList = function UserList() {
|
|
|
4599
5164
|
}
|
|
4600
5165
|
})));
|
|
4601
5166
|
})))) : React__default.createElement(EmptyDataAlert, {
|
|
4602
|
-
label: "user"
|
|
5167
|
+
label: t("user")
|
|
4603
5168
|
})), React__default.createElement(reactstrap.Col, {
|
|
4604
5169
|
md: 12
|
|
4605
5170
|
}, React__default.createElement(CustomPagination, {
|
|
@@ -4943,6 +5508,9 @@ var UserDetail = function UserDetail() {
|
|
|
4943
5508
|
return state.common.user;
|
|
4944
5509
|
});
|
|
4945
5510
|
|
|
5511
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
5512
|
+
t = _useTranslation.t;
|
|
5513
|
+
|
|
4946
5514
|
var _useUserDetail = useUserDetail(id),
|
|
4947
5515
|
userDetail = _useUserDetail.userDetail,
|
|
4948
5516
|
backToList = _useUserDetail.backToList,
|
|
@@ -4960,8 +5528,8 @@ var UserDetail = function UserDetail() {
|
|
|
4960
5528
|
newPassword: "",
|
|
4961
5529
|
confirmedNewPassword: ""
|
|
4962
5530
|
};
|
|
4963
|
-
var header = !!id ? EDIT_USER_HEADER : CREATE_USER;
|
|
4964
|
-
var confirmText = !!id ? "Update" : "Create";
|
|
5531
|
+
var header = !!id ? t("" + EDIT_USER_HEADER) : t("" + CREATE_USER);
|
|
5532
|
+
var confirmText = !!id ? t("Update") : t("Create");
|
|
4965
5533
|
|
|
4966
5534
|
var getFile = function getFile() {
|
|
4967
5535
|
var url = window.location.origin + "/api/ExportDataUser/" + id;
|
|
@@ -5030,7 +5598,7 @@ var UserDetail = function UserDetail() {
|
|
|
5030
5598
|
}, React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
5031
5599
|
md: 6
|
|
5032
5600
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5033
|
-
text: "First name"
|
|
5601
|
+
text: t("First name")
|
|
5034
5602
|
}), React__default.createElement(reactstrap.Input, {
|
|
5035
5603
|
name: "firstName",
|
|
5036
5604
|
value: values.firstName,
|
|
@@ -5039,13 +5607,13 @@ var UserDetail = function UserDetail() {
|
|
|
5039
5607
|
setEditedTrue();
|
|
5040
5608
|
},
|
|
5041
5609
|
onBlur: handleBlur("subject"),
|
|
5042
|
-
placeholder: "First name"
|
|
5610
|
+
placeholder: t("First name")
|
|
5043
5611
|
}), touched.firstName && errors.firstName && React__default.createElement(ErrorHandler, {
|
|
5044
5612
|
text: errors.firstName
|
|
5045
5613
|
}))), React__default.createElement(reactstrap.Col, {
|
|
5046
5614
|
md: 6
|
|
5047
5615
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5048
|
-
text: "Date of birth"
|
|
5616
|
+
text: t("Date of birth")
|
|
5049
5617
|
}), React__default.createElement("div", null, React__default.createElement(DatePicker, {
|
|
5050
5618
|
value: values.dateOfBirth,
|
|
5051
5619
|
todayButton: "Today",
|
|
@@ -5058,20 +5626,20 @@ var UserDetail = function UserDetail() {
|
|
|
5058
5626
|
formProps.setFieldValue("dateOfBirth", dateFns.format(e, DATE_FORMAT));
|
|
5059
5627
|
setEditedTrue();
|
|
5060
5628
|
},
|
|
5061
|
-
placeholderText: "Date of birth",
|
|
5629
|
+
placeholderText: t("Date of birth"),
|
|
5062
5630
|
customInput: React__default.createElement(reactstrap.Input, {
|
|
5063
5631
|
type: "text",
|
|
5064
5632
|
style: {
|
|
5065
5633
|
width: "maxContent"
|
|
5066
5634
|
},
|
|
5067
|
-
placeholder: "Date of birth"
|
|
5635
|
+
placeholder: t("Date of birth")
|
|
5068
5636
|
})
|
|
5069
5637
|
})), touched.dateOfBirth && errors.dateOfBirth && React__default.createElement(ErrorHandler, {
|
|
5070
5638
|
text: errors.dateOfBirth
|
|
5071
5639
|
})))), React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
5072
5640
|
md: 6
|
|
5073
5641
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5074
|
-
text: "Last name"
|
|
5642
|
+
text: t("Last name")
|
|
5075
5643
|
}), React__default.createElement(reactstrap.Input, {
|
|
5076
5644
|
name: "lastName",
|
|
5077
5645
|
value: values.lastName,
|
|
@@ -5080,13 +5648,13 @@ var UserDetail = function UserDetail() {
|
|
|
5080
5648
|
setEditedTrue();
|
|
5081
5649
|
},
|
|
5082
5650
|
onBlur: handleBlur("lastName"),
|
|
5083
|
-
placeholder: "Last name"
|
|
5651
|
+
placeholder: t("Last name")
|
|
5084
5652
|
}), touched.lastName && errors.lastName && React__default.createElement(ErrorHandler, {
|
|
5085
5653
|
text: errors.lastName
|
|
5086
5654
|
}))), React__default.createElement(reactstrap.Col, {
|
|
5087
5655
|
md: 6
|
|
5088
5656
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5089
|
-
text: "Roles"
|
|
5657
|
+
text: t("Roles")
|
|
5090
5658
|
}), React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
5091
5659
|
md: 12,
|
|
5092
5660
|
className: "d-flex flex-wrap align-items-center"
|
|
@@ -5110,7 +5678,7 @@ var UserDetail = function UserDetail() {
|
|
|
5110
5678
|
})))), React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
5111
5679
|
md: 6
|
|
5112
5680
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5113
|
-
text: "Email"
|
|
5681
|
+
text: t("Email")
|
|
5114
5682
|
}), React__default.createElement(reactstrap.Input, {
|
|
5115
5683
|
name: "email",
|
|
5116
5684
|
value: values.email,
|
|
@@ -5119,20 +5687,20 @@ var UserDetail = function UserDetail() {
|
|
|
5119
5687
|
setEditedTrue();
|
|
5120
5688
|
},
|
|
5121
5689
|
onBlur: handleBlur("email"),
|
|
5122
|
-
placeholder: "Email"
|
|
5690
|
+
placeholder: t("Email")
|
|
5123
5691
|
}), touched.email && errors.email && React__default.createElement(ErrorHandler, {
|
|
5124
5692
|
text: errors.email
|
|
5125
5693
|
}))), React__default.createElement(reactstrap.Col, {
|
|
5126
5694
|
md: 6
|
|
5127
5695
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5128
|
-
text: "Status"
|
|
5696
|
+
text: t("Status")
|
|
5129
5697
|
}), React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
5130
5698
|
md: 3
|
|
5131
5699
|
}, React__default.createElement(reactstrap.CustomInput, {
|
|
5132
5700
|
id: "role-checkbox-active",
|
|
5133
5701
|
type: "radio",
|
|
5134
5702
|
name: "active",
|
|
5135
|
-
label: "Active",
|
|
5703
|
+
label: t("Active"),
|
|
5136
5704
|
checked: !!values && !!values.isActive,
|
|
5137
5705
|
onChange: function onChange() {
|
|
5138
5706
|
setFieldValue("isActive", true);
|
|
@@ -5144,7 +5712,7 @@ var UserDetail = function UserDetail() {
|
|
|
5144
5712
|
id: "role-checkbox-inActive",
|
|
5145
5713
|
type: "radio",
|
|
5146
5714
|
name: "active",
|
|
5147
|
-
label: "Inactive",
|
|
5715
|
+
label: t("Inactive"),
|
|
5148
5716
|
checked: !!values && !values.isActive,
|
|
5149
5717
|
onChange: function onChange() {
|
|
5150
5718
|
return setFieldValue("isActive", false);
|
|
@@ -5158,13 +5726,13 @@ var UserDetail = function UserDetail() {
|
|
|
5158
5726
|
onClick: function onClick() {
|
|
5159
5727
|
onResetPw(values.email || "");
|
|
5160
5728
|
}
|
|
5161
|
-
},
|
|
5729
|
+
}, t('Send forgot password link')), React__default.createElement(reactstrap.Button, {
|
|
5162
5730
|
color: "success",
|
|
5163
5731
|
onClick: function onClick() {
|
|
5164
5732
|
getFile();
|
|
5165
5733
|
},
|
|
5166
5734
|
className: "ml-4"
|
|
5167
|
-
},
|
|
5735
|
+
}, t('Download user data'))))), React__default.createElement(reactstrap.Col, {
|
|
5168
5736
|
md: 4
|
|
5169
5737
|
}, React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
5170
5738
|
md: 8
|
|
@@ -5185,7 +5753,7 @@ var UserDetail = function UserDetail() {
|
|
|
5185
5753
|
}
|
|
5186
5754
|
}))))), user.id === id ? React__default.createElement("div", null, React__default.createElement("h5", {
|
|
5187
5755
|
className: "mt-3"
|
|
5188
|
-
}, CHANGE_PASSWORD$1), React__default.createElement(formik.Formik, {
|
|
5756
|
+
}, t("" + CHANGE_PASSWORD$1)), React__default.createElement(formik.Formik, {
|
|
5189
5757
|
initialValues: initialValueForm,
|
|
5190
5758
|
enableReinitialize: true,
|
|
5191
5759
|
validationSchema: changePasswordSchema,
|
|
@@ -5203,7 +5771,7 @@ var UserDetail = function UserDetail() {
|
|
|
5203
5771
|
}, React__default.createElement(reactstrap.Col, {
|
|
5204
5772
|
md: 7
|
|
5205
5773
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5206
|
-
text: "Current password"
|
|
5774
|
+
text: t("Current password")
|
|
5207
5775
|
}), React__default.createElement(reactstrap.Input, {
|
|
5208
5776
|
name: "oldPassword",
|
|
5209
5777
|
type: "password",
|
|
@@ -5213,13 +5781,13 @@ var UserDetail = function UserDetail() {
|
|
|
5213
5781
|
setEditedTrue();
|
|
5214
5782
|
},
|
|
5215
5783
|
onBlur: handleBlur("subject"),
|
|
5216
|
-
placeholder: "Current password"
|
|
5784
|
+
placeholder: t("Current password")
|
|
5217
5785
|
}), touched.oldPassword && errors.oldPassword && React__default.createElement(ErrorHandler, {
|
|
5218
5786
|
text: errors.oldPassword
|
|
5219
5787
|
}))), React__default.createElement(reactstrap.Col, {
|
|
5220
5788
|
md: 7
|
|
5221
5789
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5222
|
-
text: "New password"
|
|
5790
|
+
text: t("New password")
|
|
5223
5791
|
}), React__default.createElement(reactstrap.Input, {
|
|
5224
5792
|
name: "newPassword",
|
|
5225
5793
|
type: "password",
|
|
@@ -5229,13 +5797,13 @@ var UserDetail = function UserDetail() {
|
|
|
5229
5797
|
setEditedTrue();
|
|
5230
5798
|
},
|
|
5231
5799
|
onBlur: handleBlur("subject"),
|
|
5232
|
-
placeholder: "New password"
|
|
5800
|
+
placeholder: t("New password")
|
|
5233
5801
|
}), touched.newPassword && errors.newPassword && React__default.createElement(ErrorHandler, {
|
|
5234
5802
|
text: errors.newPassword
|
|
5235
5803
|
}))), React__default.createElement(reactstrap.Col, {
|
|
5236
5804
|
md: 7
|
|
5237
5805
|
}, React__default.createElement(reactstrap.FormGroup, null, React__default.createElement(RequiredLabel$1, {
|
|
5238
|
-
text: "Confirm password"
|
|
5806
|
+
text: t("Confirm password")
|
|
5239
5807
|
}), React__default.createElement(reactstrap.Input, {
|
|
5240
5808
|
name: "confirmedNewPassword",
|
|
5241
5809
|
type: "password",
|
|
@@ -5245,7 +5813,7 @@ var UserDetail = function UserDetail() {
|
|
|
5245
5813
|
setEditedTrue();
|
|
5246
5814
|
},
|
|
5247
5815
|
onBlur: handleBlur("subject"),
|
|
5248
|
-
placeholder: "Confirm password"
|
|
5816
|
+
placeholder: t("Confirm password")
|
|
5249
5817
|
}), touched.confirmedNewPassword && errors.confirmedNewPassword && React__default.createElement(ErrorHandler, {
|
|
5250
5818
|
text: errors.confirmedNewPassword
|
|
5251
5819
|
}))), React__default.createElement(reactstrap.Col, {
|
|
@@ -5257,7 +5825,7 @@ var UserDetail = function UserDetail() {
|
|
|
5257
5825
|
onClick: function onClick() {
|
|
5258
5826
|
return handleSubmit();
|
|
5259
5827
|
}
|
|
5260
|
-
}, "Save")));
|
|
5828
|
+
}, t("Save"))));
|
|
5261
5829
|
})) : null, React__default.createElement(DetailActionButtons, {
|
|
5262
5830
|
confirmText: confirmText,
|
|
5263
5831
|
onConfirm: handleSubmit,
|
|
@@ -7133,6 +7701,7 @@ var initialState = {
|
|
|
7133
7701
|
defaultFontSize: 16,
|
|
7134
7702
|
isEnableIEP: true,
|
|
7135
7703
|
isConversationOneToOne: false,
|
|
7704
|
+
language: "en",
|
|
7136
7705
|
amplitude: {
|
|
7137
7706
|
user_id: "",
|
|
7138
7707
|
status: "",
|
|
@@ -7177,6 +7746,8 @@ var commonReducer = toolkit.createReducer(initialState, function (builder) {
|
|
|
7177
7746
|
state.isEnableIEP = action.payload;
|
|
7178
7747
|
}).addCase(setConversationOneToOne, function (state, action) {
|
|
7179
7748
|
state.isConversationOneToOne = action.payload;
|
|
7749
|
+
}).addCase(setLanguage, function (state, action) {
|
|
7750
|
+
state.language = action.payload;
|
|
7180
7751
|
}).addCase(showFontSize, function (state, action) {
|
|
7181
7752
|
state.defaultFontSize = action.payload;
|
|
7182
7753
|
}).addCase(initAmplitude, function (state, action) {
|
|
@@ -8110,6 +8681,18 @@ var generateRandomString = (function () {
|
|
|
8110
8681
|
|
|
8111
8682
|
var amplitudeClient = amplitude.getInstance();
|
|
8112
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
|
+
});
|
|
8113
8696
|
exports.ACCESS_TOKEN = ACCESS_TOKEN;
|
|
8114
8697
|
exports.ANSWER_EDITOR_HEIGHT = ANSWER_EDITOR_HEIGHT;
|
|
8115
8698
|
exports.AcademicClassSelector = AcademicClassSelector;
|
|
@@ -8126,7 +8709,7 @@ exports.CustomTab = CustomTabs;
|
|
|
8126
8709
|
exports.DATE_FORMAT = DATE_FORMAT;
|
|
8127
8710
|
exports.DATE_RESULT = DATE_RESULT;
|
|
8128
8711
|
exports.DEFAULT_FILTER = DEFAULT_FILTER;
|
|
8129
|
-
exports.Dashboard = Dashboard;
|
|
8712
|
+
exports.Dashboard = Dashboard$2;
|
|
8130
8713
|
exports.DeleteButtonIcon = DeleteButtonIcon;
|
|
8131
8714
|
exports.DetailActionButtons = DetailActionButtons;
|
|
8132
8715
|
exports.EMOTIONS = EMOTIONS;
|
|
@@ -8192,6 +8775,7 @@ exports.generateRandomString = generateRandomString;
|
|
|
8192
8775
|
exports.getFileUrl = getFileUrl;
|
|
8193
8776
|
exports.getInfo = getInfo;
|
|
8194
8777
|
exports.getTextFromHTML = getTextFromHTML;
|
|
8778
|
+
exports.i18n = i18n;
|
|
8195
8779
|
exports.initAmplitude = initAmplitude;
|
|
8196
8780
|
exports.isInViewport = isInViewport;
|
|
8197
8781
|
exports.reset = reset;
|
|
@@ -8216,6 +8800,7 @@ exports.setFeedbackList = setFeedbackList;
|
|
|
8216
8800
|
exports.setFilterWidget = setFilterWidget;
|
|
8217
8801
|
exports.setGoalExampleList = setGoalExampleList;
|
|
8218
8802
|
exports.setImproveMyClass = setImproveMyClass;
|
|
8803
|
+
exports.setLanguage = setLanguage;
|
|
8219
8804
|
exports.setLearningSupportCategoryList = setLearningSupportCategoryList;
|
|
8220
8805
|
exports.setLoading = setLoading;
|
|
8221
8806
|
exports.setMailCategory = setMailCategory;
|