From c84893a12325ec07b9b2fb12b2460ed946b0cc49 Mon Sep 17 00:00:00 2001 From: Lucas dos Santos Abreu Date: Sun, 25 Feb 2018 13:29:51 -0300 Subject: [PATCH 1/4] colour-proximity --- package.json | 1 + yarn.lock | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/package.json b/package.json index 5b04471..9aa5904 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "babel-runtime": "6.26.0", "case-sensitive-paths-webpack-plugin": "2.1.1", "chalk": "1.1.3", + "colour-proximity": "^0.0.2", "css-loader": "0.28.7", "dotenv": "4.0.0", "dotenv-expand": "4.0.1", diff --git a/yarn.lock b/yarn.lock index 78decca..9f82adf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1389,6 +1389,10 @@ code-point-at@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" +color-convert@0.2.x: + version "0.2.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-0.2.1.tgz#363cab23c94b31a0d64db71048b8c6a940f8c68c" + color-convert@^1.3.0, color-convert@^1.9.0: version "1.9.1" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed" @@ -1405,6 +1409,12 @@ color-string@^0.3.0: dependencies: color-name "^1.0.0" +color-string@~0.1.2: + version "0.1.3" + resolved "https://registry.yarnpkg.com/color-string/-/color-string-0.1.3.tgz#e865d2e3e59f665c3af0de14383f6bf0705685f3" + dependencies: + color-convert "0.2.x" + color@^0.11.0: version "0.11.4" resolved "https://registry.yarnpkg.com/color/-/color-0.11.4.tgz#6d7b5c74fb65e841cd48792ad1ed5e07b904d764" @@ -1425,6 +1435,12 @@ colors@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63" +colour-proximity@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/colour-proximity/-/colour-proximity-0.0.2.tgz#139ad3afecf301bc803b8da698f32c972974769c" + dependencies: + color-string "~0.1.2" + combined-stream@^1.0.5, combined-stream@~1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" From c7671f5e3907e9566be7e4ad506613b1f31219df Mon Sep 17 00:00:00 2001 From: Lucas dos Santos Abreu Date: Sun, 25 Feb 2018 13:30:16 -0300 Subject: [PATCH 2/4] support custom labels to add --- src/Components/ProjectListApplyer.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/Components/ProjectListApplyer.js b/src/Components/ProjectListApplyer.js index 379b555..a79329a 100644 --- a/src/Components/ProjectListApplyer.js +++ b/src/Components/ProjectListApplyer.js @@ -35,6 +35,7 @@ const ProjectListApplyer = ({ applyedLabels, applyingStatus, onApply, + labelsToAdd, labelsToRemove, alert }) => ( @@ -61,7 +62,7 @@ const ProjectListApplyer = ({ {labelsToRemove.length === 0 ? null : @@ -76,6 +77,11 @@ const ProjectListApplyer = ({ ); +const labelShape = PropTypes.shape({ + name: PropTypes.string.isRequired, + color: PropTypes.string.isRequired, +}); + ProjectListApplyer.propTypes = { className: PropTypes.string, @@ -91,10 +97,8 @@ ProjectListApplyer.propTypes = { projects: PropTypes.arrayOf(projectShape).isRequired, selectedPreject: projectShape, - labelsToRemove: PropTypes.arrayOf(PropTypes.shape({ - name: PropTypes.string.isRequired, - color: PropTypes.string.isRequired, - })).isRequired, + labelsToAdd: PropTypes.arrayOf(labelShape), + labelsToRemove: PropTypes.arrayOf(labelShape).isRequired, } ProjectListApplyer.defaultProps = { @@ -102,6 +106,7 @@ ProjectListApplyer.defaultProps = { applying: false, applyedLabels: [], labelsToRemove: [], + labelsToAdd: LABELS_TO_ADD, } export default ProjectListApplyer \ No newline at end of file From 85feefc004fea1dc4799ca10ad62e604747c9ef0 Mon Sep 17 00:00:00 2001 From: Lucas dos Santos Abreu Date: Sun, 25 Feb 2018 13:30:31 -0300 Subject: [PATCH 3/4] trello origin --- src/App.js | 2 + src/Home.js | 9 +- src/Origins/Trello.js | 209 +++++++++++++++++++++++++++++++++ src/Origins/trelloConstants.js | 1 + src/assets/images/trello.svg | 2 +- 5 files changed, 219 insertions(+), 4 deletions(-) create mode 100644 src/Origins/Trello.js create mode 100644 src/Origins/trelloConstants.js diff --git a/src/App.js b/src/App.js index 41e1a86..a263740 100644 --- a/src/App.js +++ b/src/App.js @@ -7,6 +7,7 @@ import Home from './Home' import Footer from './Footer'; import GitHub from './Origins/GitHub'; import GitLab from './Origins/GitLab'; +import Trello from './Origins/Trello'; const App = () => (
@@ -21,6 +22,7 @@ const App = () => ( +