richie-education 2.25.0-b2.dev63 → 2.25.0-b2.dev66
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/js/api/lms/dummy.ts
CHANGED
|
@@ -38,9 +38,11 @@ const JOANIE_DEV_DEMO_USER_JWT_TOKENS = {
|
|
|
38
38
|
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzMzOTI4MjE0LCJpYXQiOjE3MDIzOTIyMTQsImp0aSI6ImNkZjAyMGM4ODdjOTQxYzU5ZmExN2FkZGExNjNjMDIzIiwiZW1haWwiOiJqZWFuLWJhcHRpc3RlLnBlbnJhdGgrc3R1ZGVudF91c2VyQGZ1bi1tb29jLmZyIiwibGFuZ3VhZ2UiOiJmci1mciIsInVzZXJuYW1lIjoic3R1ZGVudF91c2VyIiwiZnVsbF9uYW1lIjoiXHUwMGM5dHVkaWFudCJ9.JMdnC2VXwq2VbNPrIYxj8PEq0oJJ4LZZT_ywWyE1lBM',
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
+
export type DevDemoUser = keyof typeof JOANIE_DEV_DEMO_USER_JWT_TOKENS;
|
|
42
|
+
|
|
41
43
|
export const RICHIE_DUMMY_IS_LOGGED_IN = 'RICHIE_DUMMY_IS_LOGGED_IN';
|
|
42
44
|
|
|
43
|
-
function getUserInfo(username:
|
|
45
|
+
function getUserInfo(username: DevDemoUser): Maybe<User> {
|
|
44
46
|
const accessToken = JOANIE_DEV_DEMO_USER_JWT_TOKENS[username];
|
|
45
47
|
const JWTPayload: JWTPayload = JSON.parse(base64Decode(accessToken.split('.')[1]));
|
|
46
48
|
|
package/js/settings.dev.dist.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* * user0
|
|
5
|
-
* * user1
|
|
6
|
-
* * user2
|
|
7
|
-
* * user3
|
|
8
|
-
* * user4
|
|
9
|
-
* * organization_owner
|
|
10
|
-
* * student_user
|
|
11
|
-
*/
|
|
12
|
-
export const CURRENT_JOANIE_DEV_DEMO_USER = 'admin';
|
|
1
|
+
import { DevDemoUser } from 'api/lms/dummy';
|
|
2
|
+
|
|
3
|
+
export const CURRENT_JOANIE_DEV_DEMO_USER: DevDemoUser = 'admin';
|
|
@@ -141,7 +141,7 @@ export const TEACHER_DASHBOARD_ROUTE_LABELS = defineMessages<TeacherDashboardPat
|
|
|
141
141
|
[TeacherDashboardPaths.ORGANIZATION_PRODUCT]: {
|
|
142
142
|
id: 'components.TeacherDashboard.TeacherDashboardRoutes.organization.course.product.label',
|
|
143
143
|
description: 'Label of the organization product view.',
|
|
144
|
-
defaultMessage: '
|
|
144
|
+
defaultMessage: 'General information',
|
|
145
145
|
},
|
|
146
146
|
[TeacherDashboardPaths.COURSE]: {
|
|
147
147
|
id: 'components.TeacherDashboard.TeacherDashboardRoutes.course.label',
|
|
@@ -156,7 +156,7 @@ export const TEACHER_DASHBOARD_ROUTE_LABELS = defineMessages<TeacherDashboardPat
|
|
|
156
156
|
[TeacherDashboardPaths.COURSE_PRODUCT]: {
|
|
157
157
|
id: 'components.TeacherDashboard.TeacherDashboardRoutes.course.product.label',
|
|
158
158
|
description: 'Label of the product view.',
|
|
159
|
-
defaultMessage: '
|
|
159
|
+
defaultMessage: 'General information',
|
|
160
160
|
},
|
|
161
161
|
[TeacherDashboardPaths.COURSE_CONTRACTS]: {
|
|
162
162
|
id: 'components.TeacherDashboard.TeacherDashboardRoutes.course.contracts.label',
|