@itutoring/itutoring_application_js_api 1.4.2 → 1.4.4
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/modules/TeacherPortal.js +5 -14
- package/objects/Teacher.js +0 -3
- package/package.json +1 -1
- package/toolkit/Toolkit.jsx +0 -13
package/modules/TeacherPortal.js
CHANGED
|
@@ -128,20 +128,11 @@ class TeacherPortal
|
|
|
128
128
|
var teacherArray = JSON.parse(data);
|
|
129
129
|
|
|
130
130
|
var teacher = new Teacher();
|
|
131
|
-
teacher.Email = teacherArray['
|
|
132
|
-
teacher.Name = teacherArray['
|
|
133
|
-
teacher.ZoomMeeting = teacherArray['
|
|
134
|
-
teacher.ID = teacherArray['
|
|
135
|
-
teacher.TeachedLessons = teacherArray['
|
|
136
|
-
teacher.Admin = teacherArray['Admin'];
|
|
137
|
-
teacher.BitmojiURL = decodeURIComponent(teacherArray['BitmojiURL']);
|
|
138
|
-
|
|
139
|
-
var teacherProfile = new TeacherProfile();
|
|
140
|
-
teacherProfile.Bio = teacherArray['Profile']['Bio'];
|
|
141
|
-
teacherProfile.Name = teacherArray['Profile']['Name'];
|
|
142
|
-
teacherProfile.PhotoPath = teacherArray['Profile']['PhotoPath'];
|
|
143
|
-
|
|
144
|
-
teacher.TeacherProfile = teacherProfile;
|
|
131
|
+
teacher.Email = teacherArray['email'];
|
|
132
|
+
teacher.Name = teacherArray['name'];
|
|
133
|
+
teacher.ZoomMeeting = teacherArray['zoomMeeting'];
|
|
134
|
+
teacher.ID = teacherArray['id'];
|
|
135
|
+
teacher.TeachedLessons = teacherArray['taughtLessons'];
|
|
145
136
|
|
|
146
137
|
return teacher;
|
|
147
138
|
}
|
package/objects/Teacher.js
CHANGED
package/package.json
CHANGED
package/toolkit/Toolkit.jsx
CHANGED
|
@@ -32,8 +32,6 @@ class Toolkit
|
|
|
32
32
|
var data = await APIController.Post(this.#MODULE, this.#REQUEST_ACCESS, {
|
|
33
33
|
'uid': moduleUid
|
|
34
34
|
});
|
|
35
|
-
|
|
36
|
-
this.CheckForError(data);
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
/**
|
|
@@ -47,19 +45,8 @@ class Toolkit
|
|
|
47
45
|
'uid': moduleUid
|
|
48
46
|
});
|
|
49
47
|
|
|
50
|
-
this.CheckForError(info);
|
|
51
|
-
|
|
52
48
|
return JSON.parse(info);
|
|
53
49
|
}
|
|
54
|
-
|
|
55
|
-
static async CheckForError(data)
|
|
56
|
-
{
|
|
57
|
-
if (data.includes("error: "))
|
|
58
|
-
{
|
|
59
|
-
data = data.replace("error: ", "");
|
|
60
|
-
location.href = data
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
50
|
}
|
|
64
51
|
|
|
65
52
|
export default Toolkit;
|