-
-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release to Master ☘️ #604
Release to Master ☘️ #604
Changes from 71 commits
8c9f395
ad679d3
bf78651
61b58be
9f8ba5e
4746b50
c0aaf76
eddcf3d
64b0258
c524390
239533b
ef685c9
198d785
6039304
67d0a34
04d742b
43a9d1d
5a0dbe4
9bcdc78
2ae5d69
e0d7d70
88f17fa
2c25119
ded6d9a
32e0a13
172cd6f
6e9f8a5
9ce70dc
18b817c
3192aaa
2c2767d
b19f740
4edcbe7
395099a
2861935
ebbf9a3
d80064f
760903f
e0dc26f
b8868a2
982aeb2
021d6c1
d85787d
efc5df1
01b6500
6357e05
1b6befe
db6d47a
09e4d82
c680da1
0f784dc
94ae8ae
043dae0
d57b50b
547aef8
717144b
6051e23
fe11d00
7377159
6ba602b
9f21d2c
727d8e2
6f66b1e
af50f60
29bf5b9
1218896
bf158a3
74ef20f
60d5f9f
34ab97e
1f7e1f7
91cc000
50f89ed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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.
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', | ||
}); |
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'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Parsing error: Unexpected token : |
||
export const professorAuth: string = 'https://storage.googleapis.com/ignitus_assets/ig-assets/Assets_professorAuth.svg'; |
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 { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Parsing error: The keyword 'interface' is reserved |
||
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', | ||
}); |
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'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer double-quoted strings |
||
|
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'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer double-quoted strings |
||
|
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'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Files should end with a trailing newline |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* eslint-disable import/prefer-default-export */ | ||
export const NAME = 'studentLoginReducer'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import './src/ignitus-Shared/styles/ignitus-components-common'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer double-quoted strings |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* eslint-disable import/prefer-default-export */ | ||
export const NAME = 'studentSignUpReducer'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Newline required at end of file but not found eol-last |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing error: The keyword 'interface' is reserved