CLASSROOMIO-T-36: Student authentication flow

Co-authored-by: Rotimi Best <[email protected]>

Merge-request: CLASSROOMIO-MR-12
Merged-by: Digdippa Team <[email protected]>
This commit is contained in:
Rotimi Best
2023-05-16 04:31:45 +00:00
committed by Space Cloud
co-authored by Rotimi Best
parent 8d0f1e4de1
commit 68e1dbb1b5
12 changed files with 387 additions and 38 deletions
+16
View File
@@ -5,3 +5,19 @@ export function toggleBodyByTheme(isDark) {
document.body.className = document.body.className.replace(' dark', '');
}
}
export function isCoursesPage(path) {
return /courses\/[a-z 0-9 -]/.test(path);
}
export function isCoursePage(path) {
return /course\/[a-z 0-9 -]/.test(path);
}
export function isOrgPage(path) {
return /org\/[a-z 0-9 -]/.test(path);
}
export function isLMSPage(path) {
return /lms[\/a-z 0-9 -]*/.test(path);
}