-
-
Notifications
You must be signed in to change notification settings - Fork 72
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 #3 from anuraghazra/refactor
feat(*): major update / refactor.
- Loading branch information
Showing
151 changed files
with
10,162 additions
and
5,496 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,7 @@ | ||
NODE_ENV=development | ||
DB_CONNECT_ATLAS=mongodb_connection_url | ||
TOKEN_SECRET=secret | ||
GOOGLE_CLIENT_ID=google_client_id | ||
GOOGLE_CLIENT_SECRET=google_secret | ||
SENDGRID_API_KEY=sendgrid_api_key | ||
EXPIRATION_TIME=30 |
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 |
---|---|---|
|
@@ -26,4 +26,4 @@ before_script: | |
script: | ||
- set -e | ||
- npm run test | ||
- npm run ci:run | ||
- npm run test:e2e:ci |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,12 +21,12 @@ describe('Should Check Signup', () => { | |
.focus() | ||
.clear() | ||
.type('fakepassword123{enter}') | ||
cy.findByText(/Username \/ Email Already Exsist/i) | ||
cy.findByPlaceholderText(/example@gmail.com/i) | ||
.clear() | ||
.type('[email protected]') | ||
.findByText(/signup/i) | ||
.click(); | ||
// cy.findByText(/Username \/ Email Already Exsist/i) | ||
// cy.findByPlaceholderText(/[email protected]/i) | ||
// .clear() | ||
// .type('[email protected]') | ||
// .findByText(/signup/i) | ||
// .click(); | ||
cy.findByText(/Please Select An Image/i) | ||
}) | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
|
||
type variant = 'primary' | 'success' | 'danger' | 'secondary'; | ||
interface StyledCircleProps { | ||
variant: variant; | ||
size?: string | undefined; | ||
} | ||
export const StyledCircleIcon = styled.div<StyledCircleProps>` | ||
font-size: 14px; | ||
border-radius: 50px; | ||
min-width: ${p => p.size || '40px'}; | ||
min-height: ${p => p.size || '40px'}; | ||
line-height: 1; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
${p => (p.theme.variants as any)[p.variant as string]} | ||
`; | ||
|
||
interface CircleIconProps { | ||
variant?: variant; | ||
icon: any; | ||
size?: string; | ||
[x: string]: any; | ||
} | ||
export const CircleIcon: React.FC<CircleIconProps> = ({ | ||
icon, | ||
variant = 'secondary', | ||
size, | ||
...props | ||
}) => { | ||
return ( | ||
<StyledCircleIcon size={size} variant={variant} {...props}> | ||
<FontAwesomeIcon icon={icon} /> | ||
</StyledCircleIcon> | ||
); | ||
}; | ||
|
||
export default CircleIcon; |
Oops, something went wrong.