Skip to content

Commit

Permalink
Merge pull request #842 from Ignitus/develop
Browse files Browse the repository at this point in the history
Master > Develop
  • Loading branch information
divyanshu-rawat authored May 24, 2020
2 parents 4bb7bf7 + f690aa8 commit 7dfe7e7
Show file tree
Hide file tree
Showing 42 changed files with 2,377 additions and 99 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
- [Redis](https://redislabs.com/) - Redis is an open source (BSD licensed), in-memory data structure store.


👋 Please refer our [doumentation](https://ignitus-docs.gitbook.io/ignitus/) to get insights on contributing & conventions guidelines.
👋 Please refer our [documentation](https://ignitus-docs.gitbook.io/ignitus/) to get insights on contributing & conventions guidelines.

<div align="center">
<br>
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
"dependencies": {
"@emotion/core": "^10.0.22",
"@emotion/styled": "^10.0.23",
"@types/react": "16.9.23",
"axios": "^0.18.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-prettier": "3.1.3",
"idb": "^4.0.3",
"react": "^16.8.6",
"react-dom": "^16.8.6",
Expand All @@ -28,8 +25,7 @@
"redux": "^4.0.1",
"redux-logger": "^3.0.6",
"redux-saga": "^0.16.0",
"reselect": "^4.0.0",
"typescript": "^3.1.6"
"reselect": "^4.0.0"
},
"scripts": {
"start": "react-scripts start",
Expand All @@ -47,6 +43,7 @@
"@types/jest": "^25.1.3",
"@types/node": "^13.7.4",
"@types/react-dom": "^16.8.2",
"@types/react": "16.9.23",
"@types/react-redux": "^7.1.7",
"@types/react-router-dom": "5.1.3",
"@types/redux-logger": "3.0.7",
Expand All @@ -69,7 +66,10 @@
"jest-emotion": "10.0.32",
"jest-localstorage-mock": "^2.2.0",
"prettier": "1.17.0",
"sw-precache": "^5.2.1"
"sw-precache": "^5.2.1",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-prettier": "3.1.3",
"typescript": "^3.1.6"
},
"jest": {
"collectCoverageFrom": [
Expand Down
6 changes: 4 additions & 2 deletions src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { InterfaceSideNavigation } from '../../ignitus-UserInterfaceBook/Interfa
import { interfaceDropDown } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceDropDown/Components';
import { interfaceCheckBox } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceCheckBox/Components';
import { interfaceInput } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceInput/Components';
import { interfaceOpportunity } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunity/Components';
import { interfaceOpportunityList } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunityList/Components';
import { interfaceSavedOpportunity } from '../../ignitus-UserInterfaceBook/Components/Layouts/interfaceSavedOpportunity/Components';
import { interfaceSearchInput } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceSearchInput/Components';
import { interfaceSeparator } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceSeparator/Components';
Expand All @@ -30,6 +30,7 @@ import { InterfaceAvatar } from '../../ignitus-UserInterfaceBook/Components/Orga
import { interfaceSideProfile } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceSideProfile/Components/index';
import { InterfaceProgress } from '../../ignitus-UserInterfaceBook/Components/Molecules/interfaceProgress/index';
import { interfaceSecondaryDropDown } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceSecondaryDropdown/Components';
import { interfaceScrollBar } from '../../ignitus-UserInterfaceBook/Components/Molecules/interfaceScrollBar/Components';
import { interfaceToggleButtons } from '../../ignitus-UserInterfaceBook/Components/Molecules/interfaceToggleButtons/Components';

const Container = styled.div`
Expand Down Expand Up @@ -83,7 +84,7 @@ export const UserInterfaceBookRoutes: React.FunctionComponent = () => (
<Route path="/interface/cards" component={interfaceCards} />
<Route
path="/interface/opportunityPosted"
component={interfaceOpportunity}
component={interfaceOpportunityList}
/>
<Route path="/interface/notFound" component={interfaceNotFound} />
<Route
Expand Down Expand Up @@ -128,6 +129,7 @@ export const UserInterfaceBookRoutes: React.FunctionComponent = () => (
<Route path="/interface/filters" component={interfaceFilters} />
<Route path="/interface/userProfile" component={interfaceUserProfile} />
<Route path="/interface/overlay" component={interfaceOverlay} />
<Route path="/interface/scrollBar" component={interfaceScrollBar} />
<Route
path="/interface/toggleButtons"
component={interfaceToggleButtons}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<Notfound /> should render 1`] = `
<Router
history={
Object {
"action": "POP",
"block": [Function],
"createHref": [Function],
"go": [Function],
"goBack": [Function],
"goForward": [Function],
"length": 1,
"listen": [Function],
"location": Object {
"hash": "",
"pathname": "/",
"search": "",
"state": undefined,
},
"push": [Function],
"replace": [Function],
}
}
>
<Notfound />
</Router>
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react';
import { shallow } from 'enzyme';
import { BrowserRouter as Router } from 'react-router-dom';
import emotionSerializer from 'jest-emotion';
import { Notfound } from './index';

expect.addSnapshotSerializer(emotionSerializer);

describe('<Notfound />', () => {
it('should render', () => {
const wrapper = shallow(
<Router>
<Notfound />
</Router>,
);
expect(wrapper).toMatchSnapshot();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const MessageContainer = styled.div`
margin-bottom: 6rem;
`;

export const Message = styled.p`
export const Message = styled.div`
color: ${C.IgnitusBlue};
`;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<WebsiteUnderConstruction /> should render 1`] = `
.emotion-5 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
margin-top: 6rem;
margin-bottom: 6rem;
}
.emotion-4 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
margin-top: 2rem;
}
.emotion-1 {
font-weight: 500;
font-size: 22px;
color: #000066;
}
.emotion-2 {
font-size: 16px;
font-weight: 400;
color: #2D2D2D;
margin: 0;
}
<div
class="emotion-5"
>
<img
alt="Site Under Build"
class="emotion-0"
src="https://storage.googleapis.com/ignitus_assets/ig-assets/underContruction.png"
/>
<div
class="emotion-4"
>
<h3
class="emotion-1"
>
Our site is under maintenance
</h3>
<p
class="emotion-2"
>
We are working on making better experiences for you.
<span
aria-label="hammer"
role="img"
>
🔨
</span>
</p>
<p
class="emotion-2"
>
We should be back shortly, Thank you for the patience.
<span
aria-label="flake"
role="img"
>
☘️
</span>
</p>
</div>
</div>
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
import { render } from 'enzyme';
import emotionSerializer from 'jest-emotion';
import { WebsiteUnderConstruction } from './index';

expect.addSnapshotSerializer(emotionSerializer);

describe('<WebsiteUnderConstruction />', () => {
it('should render', () => {
const wrapper = render(<WebsiteUnderConstruction />);
expect(wrapper).toMatchSnapshot();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<ScrollBar /> should render 1`] = `
.emotion-1 {
margin: 30px;
float: left;
height: 300px;
width: 65px;
background: #f5f5f5;
overflow-y: scroll;
margin-bottom: 25px;
}
.emotion-1::-webkit-scrollbar {
width: 12px;
background: #f5f5f5;
}
.emotion-1::-webkit-scrollbar-track {
box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
background-color: #f5f5f5;
}
.emotion-1::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #f90;
}
.emotion-0 {
min-height: 450px;
}
<div
class="emotion-1"
>
<div
class="emotion-0"
/>
</div>
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
import { render } from 'enzyme';
import emotionSerializer from 'jest-emotion';
import ScrollBar from './index';

expect.addSnapshotSerializer(emotionSerializer);

describe('<ScrollBar />', () => {
it('should render', () => {
const wrapper = render(<ScrollBar />);
expect(wrapper).toMatchSnapshot();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import * as S from '../styles';

const ScrollBar = () => (
<React.Fragment>
<S.Scroll>
<S.Overflow />
</S.Scroll>
</React.Fragment>
);

export default ScrollBar;
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import styled from '@emotion/styled';

export const Scroll = styled.div`
margin: 30px;
float: left;
height: 300px;
width: 65px;
background: #f5f5f5;
overflow-y: scroll;
margin-bottom: 25px;
::-webkit-scrollbar {
width: 12px;
background: #f5f5f5;
}
::-webkit-scrollbar-track {
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px;
background-color: #f5f5f5;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #f90;
}
`;

export const Overflow = styled.div`
min-height: 450px;
`;
Loading

0 comments on commit 7dfe7e7

Please sign in to comment.