-
Notifications
You must be signed in to change notification settings - Fork 902
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 #18 from mldangelo/private-cv
User Authentication + Private CV
- Loading branch information
Showing
65 changed files
with
1,767 additions
and
893 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
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 |
---|---|---|
@@ -1,29 +1,28 @@ | ||
sudo: false | ||
language: node_js | ||
|
||
services: mongodb | ||
cache: | ||
yarn: true | ||
|
||
env: | ||
global: | ||
- secure: RMzwEd88VFWIw8R5j2RMkpFeiLGUM6tpoVooi30SOu/AkC0YxYNcxskIxDo0lfSuckvvggBxDq30WSXLrGaxCegCM5N5EyCdt/J67hnoD5C0x+hGFOrzp+nps/xfNerc47MLxVjG+Nglc8wk+gJNohG+l5AbEf33zwrVxARWqAPsqiUFyYGRcCSNMdFbUQnQtYrHFfxVpKU/MQMvsVPDvR8jNKjllIgCHHupYPtvfNP1/e33iWduJmEwP2k2kY7kJuEjy15RClrdW0y8k+uUibyKrjJQ0UhnAom0vwwIKbOZw8hBKRhvaGlJmvNRWBtsetpD60/xHo8s0POHMM12pfD7YQ2NZdriDXDdpArontMw5V0u6zUzWPV92yS99WXk/ufZIvCQl03nHEb6dK+8NPKquUmqZWWQYJylZc/tjzJJNliX03erDwNhYl2S4u+o5Br6iMMtxfIv1j7rBUk0sCHQwERWsYFm1HegvW2rwdOKBOcn2fOMBvKHZPSbLfDbJtJPSTetsT5MWyGIOPx8C+JIhobUNq5VpynOw+EInPfqG+qAV8HXJrZxoss/48o8IyjTBz0MTxNKrZD3v4R/pZrerq/+Jx/meCi6xHuMg4MEUnzj2o1DdSJB8C1vFindq2QrMah8u0wDscSNr2ihZg6treAnKCM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2MQN1fbpvqOzllsBwHkQiND2lpztDXDn95UjW3SK8Fhb8+1TVfwR4HXXW4XV3nYQhGYXkPcJ1kTVtTLqkp4WCmXulkQ1WqQT1zGPmvu73Mj6QgowTGaHf0DrbfQQouQyt+ji1bn1RLwvaZuNmgoYw1N/8NVssQEeJqb0X8cK2cQv3iGk0lnTXc+k4nWTa+IOLBHbmCyRMoVRBt2CnIKc9SuG3dZRi6g7FIhlBEF21oyxC7vYOw7Hvgr4T6dLfZaArAd+th1RiKl1trXtz6es+KofWo/Fzw3NcSxrknA3HzDr+LjRUgWj+Bi0WF3o6G5EdUbaIZgolVy76xj4P9ZN4mDKIvrtS6ZoiPssT3zM3eNSzrqkvCZAgRO198oepUDG/9RGxnQrCZCJxIRWcCl5NybiKd+3Nk9hRT2ZdTDeskhH7h2as73IkVN9+Um0TszvaJMzZbyOAOFInJwZfcpS0uWX+3+bpahx3UDLqhDltSLV5O/THzhDoP2TselXZ5ZFzQ/U4MHxwesuRfEE37e0Uc2adoyzuVFtFNL+6S3G1kzJFO7kyAkJ4u5Sg+Qsw1r/WTZbvFvmnPr4wE9Mu4r1/AbHzcG1MJu8MfTRbRYTsKnA= | ||
matrix: | ||
include: | ||
- os: linux | ||
node_js: "7" | ||
env: NODE_ENV=development | ||
- os: linux | ||
node_js: "7" | ||
env: NODE_ENV=production | ||
- os: linux | ||
node_js: '7' | ||
env: NODE_ENV=development | ||
- os: linux | ||
node_js: '7' | ||
env: NODE_ENV=production | ||
fast_finish: true | ||
|
||
addons: | ||
code_climate: | ||
repo_token: 321ece2c9941bf30bb07f0555343ad772bdbbc6235c866478afc7af46558a8b4 | ||
|
||
apt: | ||
packages: | ||
- xvfb | ||
before_install: | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash | ||
- export PATH=$HOME/.yarn/bin:$PATH | ||
|
@@ -32,29 +31,19 @@ before_install: | |
- npm --version | ||
- gcc --version | ||
- g++ --version | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- xvfb | ||
|
||
install: | ||
- export DISPLAY=':99.0' | ||
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | ||
- NODE_ENV=development yarn | ||
|
||
- export DISPLAY=':99.0' | ||
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | ||
- NODE_ENV=development yarn | ||
before_script: | ||
- npm run lint | ||
- sleep 5 | ||
|
||
script: | ||
- npm run build-dev | ||
- npm run build | ||
- npm test | ||
|
||
notifications: | ||
email: | ||
- [email protected] | ||
|
||
git: | ||
depth: 10 |
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 |
---|---|---|
@@ -1,23 +1,36 @@ | ||
import React from 'react'; | ||
import React, { PropTypes } from 'react'; | ||
|
||
import Degree from './Education/Degree'; | ||
import degrees from '../../data/degrees'; | ||
|
||
const getRows = () => degrees.map(degree => ( | ||
const getRows = degrees => degrees.map(degree => ( | ||
<Degree | ||
data={degree} | ||
key={degree.school} | ||
/> | ||
)); | ||
|
||
const Education = () => ( | ||
const Education = props => ( | ||
<div className="education"> | ||
<div className="link-to" id="education" /> | ||
<div className="title"> | ||
<h3>Education</h3> | ||
</div> | ||
{getRows()} | ||
{getRows(props.data)} | ||
</div> | ||
); | ||
|
||
Education.propTypes = { | ||
data: PropTypes.arrayOf(PropTypes.shape({ | ||
school: PropTypes.string, | ||
degree: PropTypes.string, | ||
link: PropTypes.string, | ||
year: PropTypes.number, | ||
})), | ||
}; | ||
|
||
Education.defaultProps = { | ||
data: [], | ||
}; | ||
|
||
|
||
export default Education; |
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 |
---|---|---|
@@ -1,23 +1,37 @@ | ||
import React from 'react'; | ||
import React, { PropTypes } from 'react'; | ||
|
||
import Job from './Experience/Job'; | ||
import positions from '../../data/positions'; | ||
|
||
const getRows = () => positions.map(job => ( | ||
const getRows = positions => positions.map(job => ( | ||
<Job | ||
data={job} | ||
key={job.company} | ||
/> | ||
)); | ||
|
||
const Experience = () => ( | ||
const Experience = props => ( | ||
<div className="experience"> | ||
<div className="link-to" id="experience" /> | ||
<div className="title"> | ||
<h3>Experience</h3> | ||
</div> | ||
{getRows()} | ||
{getRows(props.data)} | ||
</div> | ||
); | ||
|
||
Experience.propTypes = { | ||
data: PropTypes.arrayOf(PropTypes.shape({ | ||
company: PropTypes.string, | ||
position: PropTypes.string, | ||
link: PropTypes.string, | ||
daterange: PropTypes.string, | ||
points: PropTypes.arrayOf(PropTypes.string), | ||
})), | ||
}; | ||
|
||
Experience.defaultProps = { | ||
data: [], | ||
}; | ||
|
||
|
||
export default Experience; |
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 |
---|---|---|
@@ -1,35 +1,54 @@ | ||
import React, { PropTypes } from 'react'; | ||
import React, { Component, PropTypes } from 'react'; | ||
|
||
import { categories } from '../../../data/skills'; | ||
class SkillBar extends Component { | ||
|
||
// TODO: Consider averaging colors | ||
const getColor = types => Object.keys(categories) | ||
.filter(key => types.includes(key)) | ||
.map(key => categories[key])[0]; | ||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
data: props.data, | ||
categories: props.categories, | ||
}; | ||
} | ||
|
||
const SkillBar = (props) => { | ||
const titleStyle = { | ||
background: getColor(props.data.category), | ||
}; | ||
const barStyle = { | ||
background: getColor(props.data.category), | ||
width: `${String(Math.min(100, Math.max((props.data.compentency / 5.0) * 100.0, 0)))}%`, | ||
}; | ||
return ( | ||
<div className="skillbar clearfix"> | ||
<div className="skillbar-title" style={titleStyle}><span>{props.data.title}</span></div> | ||
<div className="skillbar-bar" style={barStyle} /> | ||
<div className="skill-bar-percent">{props.data.compentency} / 5</div> | ||
</div> | ||
); | ||
}; | ||
// TODO: Consider averaging colors | ||
getColor() { | ||
return this.state.categories | ||
.filter(cat => this.state.data.category.includes(cat.name)) | ||
.map(cat => cat.color)[0]; | ||
} | ||
|
||
render() { | ||
const titleStyle = { | ||
background: this.getColor(), | ||
}; | ||
const barStyle = { | ||
...titleStyle, | ||
width: `${String(Math.min(100, Math.max((this.state.data.compentency / 5.0) * 100.0, 0)))}%`, | ||
}; | ||
return ( | ||
<div className="skillbar clearfix"> | ||
<div className="skillbar-title" style={titleStyle}><span>{this.state.data.title}</span></div> | ||
<div className="skillbar-bar" style={barStyle} /> | ||
<div className="skill-bar-percent">{this.state.data.compentency} / 5</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
SkillBar.propTypes = { | ||
data: PropTypes.shape({ | ||
category: PropTypes.arrayOf(PropTypes.string).isRequired, | ||
compentency: PropTypes.number.isRequired, | ||
title: PropTypes.string.isRequired, | ||
}).isRequired, | ||
categories: PropTypes.arrayOf(PropTypes.shape({ | ||
name: PropTypes.string, | ||
color: PropTypes.string, | ||
})), | ||
}; | ||
|
||
SkillBar.defaultProps = { | ||
categories: [], | ||
}; | ||
|
||
export default SkillBar; |
Oops, something went wrong.