-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #604 from Ignitus/develop
Release to Master ☘️. * Folder restructuring. Issue: #579, PR: #602 * Service worker fixes ★. * Common LogIn/SignUp UI. ★ Issue: #477, #565. PR: #548. * Navigator UI Added. Issue: #559, PR: #593 🚀 * UI for Error Boundary. Issue: #578, PR: #598 🎉
- Loading branch information
Showing
129 changed files
with
14,342 additions
and
22,094 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
jest: { | ||
verbose: true, | ||
transform: { | ||
'^.+\\.js$': 'babel-jest', | ||
'^.+\\.(css|scss|less)$': 'jest-css-modules', | ||
}, | ||
transformIgnorePatterns: ['/node_modules/'], | ||
globals: { | ||
NODE_ENV: 'test', | ||
}, | ||
moduleFileExtensions: ['js', 'jsx'], | ||
moduleDirectories: ['src'], | ||
}, | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...gnitus-Authentication/ignitus-Common-Auth-Student-Prof/Components/commonLoginRegister.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import { withErrorBoundary } from '../../../ignitus-Shared/Components/errorBoundary'; | ||
import * as t from './constants'; | ||
import '../Styles/style.scss'; | ||
|
||
interface Props { | ||
title: string; | ||
studentRoute: string; | ||
professorRoute: string; | ||
} | ||
|
||
function commonLoginRegister(props: Props): React.ComponentType { | ||
const {title, studentRoute, professorRoute} = props; | ||
|
||
const SignInPage = () => ( | ||
<div className="col-lg-12 col-sm-12 col-md-12 col-12 container-bg"> | ||
<div className="p-0 p-sm-5 pt-5"> | ||
<div className="col-lg-7 col-md-8 col-sm-12 col-12 mt-5 box-container"> | ||
<div className="login-signup m-top"> | ||
<h3>{title}</h3> | ||
<p> Who are you? </p> | ||
</div> | ||
<div className="row mt-5"> | ||
<div className="col-lg-5 col-md-5 ml-lg-5 ml-md-4 col-sm-5 col p-0 h-50 common-auth-ui-css"> | ||
<p className="mb-5 text-center common-ui-text">Student</p> | ||
<Link to={studentRoute}> | ||
<img | ||
alt="Student auth" | ||
className="img-fluid" | ||
src={t.studentAuth} | ||
/> | ||
</Link> | ||
</div> | ||
<div className="col-lg-5 col-md-5 ml-lg-4 ml-md-4 col-sm-5 ml-sm-4 col p-0 common-auth-ui-css"> | ||
<p className="mb-5 text-center common-ui-text">Professor</p> | ||
<Link to={professorRoute}> | ||
<img | ||
alt="Professor auth" | ||
className="img-fluid" | ||
src={t.professorAuth} | ||
/> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
|
||
return withErrorBoundary(SignInPage); | ||
} | ||
|
||
export const CommonLoginUI = commonLoginRegister({ | ||
title: 'Sign In', | ||
studentRoute: '/login/student', | ||
professorRoute: '/login/professor', | ||
}); | ||
|
||
export const CommonSignUpUI = commonLoginRegister({ | ||
title: 'Sign Up', | ||
studentRoute: '/signup/student', | ||
professorRoute: '/signup/professor', | ||
}); |
2 changes: 2 additions & 0 deletions
2
src/ignitus-Authentication/ignitus-Common-Auth-Student-Prof/Components/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const studentAuth: string = 'https://storage.googleapis.com/ignitus_assets/ig-assets/Assets_studentAuth.svg'; | ||
export const professorAuth: string = 'https://storage.googleapis.com/ignitus_assets/ig-assets/Assets_professorAuth.svg'; |
64 changes: 64 additions & 0 deletions
64
src/ignitus-Authentication/ignitus-Common-Auth-Student-Prof/Components/createSignInPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import { withErrorBoundary } from '../../../ignitus-Shared/Components/errorBoundary'; | ||
import * as t from './constants'; | ||
import '../Styles/style.scss'; | ||
|
||
interface Props { | ||
title: string; | ||
studentRoute: string; | ||
professorRoute: string; | ||
} | ||
|
||
function commonLoginRegister(props: Props): React.ComponentType { | ||
const {title, studentRoute, professorRoute} = props; | ||
|
||
const SignInPage = () => ( | ||
<div className="col-lg-12 col-sm-12 col-md-12 col-12 container-bg"> | ||
<div className="p-5"> | ||
<div className="col-lg-7 col-md-8 col-sm-12 col-8 box-container"> | ||
<div className="login-signup m-top"> | ||
<h3>{title}</h3> | ||
<p> Who are you? </p> | ||
</div> | ||
<div className="row mt-4"> | ||
<div className=" col-lg-5 col-md-5 ml-lg-5 ml-md-4 col-sm-5 p-0 common-auth-ui-css"> | ||
<p className="mb-5 text-center common-ui-text">Student</p> | ||
<Link to={studentRoute}> | ||
<img | ||
alt="Student auth" | ||
className="img-fluid" | ||
src={t.studentAuth} | ||
/> | ||
</Link> | ||
</div> | ||
<div className="col-lg-5 col-md-5 ml-lg-4 ml-md-4 col-sm-5 ml-sm-4 p-0 common-auth-ui-css"> | ||
<p className="mb-5 text-center common-ui-text">Professor</p> | ||
<Link to={professorRoute}> | ||
<img | ||
alt="Professor auth" | ||
className="img-fluid" | ||
src={t.professorAuth} | ||
/> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
|
||
return withErrorBoundary(SignInPage); | ||
} | ||
|
||
export const CommonLoginUI = commonLoginRegister({ | ||
title: 'Sign In', | ||
studentRoute: '/login/student', | ||
professorRoute: '/login/professor', | ||
}); | ||
|
||
export const CommonSignUpUI = commonLoginRegister({ | ||
title: 'Sign Up', | ||
studentRoute: '/signup/student', | ||
professorRoute: '/signup/professor', | ||
}); |
2 changes: 1 addition & 1 deletion
2
...ommon-Auth-Student-Prof/Styles/style.scss → ...ommon-Auth-Student-Prof/Styles/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 7 additions & 10 deletions
17
...gnitus-ProfessorLogin/Components/login.js → ...gnitus-ProfessorLogin/Components/login.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
src/ignitus-Authentication/ignitus-ProfessorLogin/Styles/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// import ignitus token variables | ||
@import './src/ignitus-Shared/styles/ignitus-components-common'; | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
src/ignitus-Authentication/ignitus-ProfessorSignUp/Styles/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// import ignitus token variables | ||
@import './src/ignitus-Shared/styles/ignitus-components-common'; | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
src/ignitus-Authentication/ignitus-StudentLogin/Styles/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// import ignitus token variables | ||
@import './src/ignitus-Shared/styles/ignitus-components-common'; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* eslint-disable import/prefer-default-export */ | ||
export const NAME = 'studentLoginReducer'; |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/ignitus-StudentLogin/sagas.js → ...hentication/ignitus-StudentLogin/sagas.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
src/ignitus-Authentication/ignitus-StudentSignUp/Styles/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import './src/ignitus-Shared/styles/ignitus-components-common'; | ||
|
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
src/ignitus-Authentication/ignitus-StudentSignUp/constants.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* eslint-disable import/prefer-default-export */ | ||
export const NAME = 'studentSignUpReducer'; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.
Oops, something went wrong.