This file contains hidden or 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
export function fetchReposByUser(sources) { | |
const user$ = sources.ACTION | |
.filter(action => action.type === ActionTypes.REQUESTED_USER_REPOS) | |
.map(action => action.payload.user); | |
const request$ = user$ | |
.map(user => ({ | |
url: `https://api.github.com/users/${user}/repos`, | |
category: 'users' | |
})); |
This file contains hidden or 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
const props = { | |
theme: { | |
palette: { | |
link: 'blue', | |
button: { | |
primary: 'green', | |
secondary: 'grey', | |
}, | |
}, | |
}, |
This file contains hidden or 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
import styled from 'styled-components'; | |
import { Col } from 'react-styled-flexboxgrid'; | |
import { base as baseTheme } from '../../cl-themes/src'; | |
// raises Warning: Unknown prop `theme` on <div> tag. Remove this prop from the element | |
const ListingPanel = styled(Col).attrs({ | |
xs: 6, | |
sm: 5, | |
lg: 3, | |
})` |
This file contains hidden or 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
import React from 'react'; | |
import styled from 'styled-components'; | |
import { Row } from 'react-styled-flexboxgrid'; | |
import { base as baseTheme } from '../../cl-themes/src'; | |
const PanelHeader = styled(Row).attrs({ | |
between: 'xs', | |
middle: 'xs', | |
})` | |
background-color: ${(props) => props.theme.palette.panel}; |
This file contains hidden or 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
const StyledListingPanel = styled(ListingPanel)` | |
border-right: ${(props) => `1px solid ${props.theme.palette.border}`}; | |
`; | |
StyledListingPanel.defaultProps = { | |
theme: baseTheme, | |
}; | |
export default StyledListingPanel; |
This file contains hidden or 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
import React, { PropTypes } from 'react'; | |
import styled from 'styled-components'; | |
import { sizes } from '../constants/'; | |
const getHeight = ({ size }) => sizes.values[size]; | |
const Wrapper = styled.span` | |
display: inline-block; | |
color: black; | |
height: ${getHeight}; |
This file contains hidden or 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
lerna(info) Lerna v2.0.0-beta.38-40-g203f7eb | |
lerna(info) Independent Versioning Mode | |
lerna(verbose) GitUtilities.isInitialized () | |
lerna(verbose) GitUtilities.isInitialized () => true | |
lerna(verbose) FileSystemUtilities.existsSync("./VERSION") | |
lerna(verbose) FileSystemUtilities.existsSync("./VERSION") => false | |
lerna(verbose) FileSystemUtilities.existsSync("./packages/babel-preset-crowdlab/package.json") | |
lerna(verbose) FileSystemUtilities.existsSync("./packages/babel-preset-crowdlab/package.json") => true | |
lerna(verbose) FileSystemUtilities.existsSync("./packages/cl-component-block/package.json") | |
lerna(verbose) FileSystemUtilities.existsSync("./packages/cl-component-block/package.json") => true |
This file contains hidden or 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
import React, { PropTypes } from 'react'; | |
import styled from 'styled-components'; | |
import { base as baseTheme } from '../../../cl-themes/src'; | |
import { sizes, userRoles } from '../constants'; | |
import Image from '../Image'; | |
const getUserRoleColour = ({ user, theme }) => { | |
if (user.role === 'staff') { | |
return theme.palette.role.staff; | |
} |
This file contains hidden or 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
import React, { PropTypes } from 'react'; | |
import styled from 'styled-components'; | |
import { base as baseTheme } from '../../../cl-themes/src'; | |
import { sizes, userRoles } from '../constants'; | |
import Image from '../Image'; | |
const getUserRoleColour = ({ user, theme }) => { | |
if (user.role === 'staff') { | |
return theme.palette.role.staff; | |
} |
This file contains hidden or 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
❯ npm publish --loglevel=verbose | |
npm info it worked if it ends with ok | |
npm verb cli [ '/Users/aaron/.nvm/versions/node/v6.10.1/bin/node', | |
npm verb cli '/Users/aaron/.nvm/versions/node/v6.10.1/bin/npm', | |
npm verb cli 'publish', | |
npm verb cli '--loglevel=verbose' ] | |
npm info using [email protected] | |
npm info using [email protected] | |
npm verb publish [ '.' ] | |
npm verb cache add spec . |