From 33eddbbf6046328b173381d73d2c81e21b894ba8 Mon Sep 17 00:00:00 2001 From: Gil Barbara Date: Sun, 12 Jul 2015 14:46:28 -0300 Subject: [PATCH] initial React views --- .eslintrc | 57 ++-- {assets => app}/CNAME | 0 .../index.handlebars => app/index.html | 35 +-- {assets => app}/logos.json | 0 {assets => app}/media/og-image.png | Bin {assets => app}/media/svg-porn.svg | 0 app/scripts/App.jsx | 48 ++++ app/scripts/components/Footer.jsx | 17 ++ app/scripts/components/Header.jsx | 24 ++ app/scripts/components/Loader.jsx | 21 ++ app/scripts/components/Logo.jsx | 25 ++ {assets => app}/scripts/main.js | 16 +- {assets => app}/styles/base/_utils.scss | 0 {assets => app}/styles/base/_variables.scss | 0 {assets => app}/styles/main.scss | 0 {assets => app}/templates/README.handlebars | 0 assets/.scss-lint.yml | 172 ------------ assets/templates/item.handlebars | 6 - bower.json | 9 + gulpfile.js | 244 ++++++++++++++---- package.json | 34 ++- 21 files changed, 413 insertions(+), 295 deletions(-) rename {assets => app}/CNAME (100%) rename assets/templates/index.handlebars => app/index.html (50%) rename {assets => app}/logos.json (100%) rename {assets => app}/media/og-image.png (100%) rename {assets => app}/media/svg-porn.svg (100%) create mode 100644 app/scripts/App.jsx create mode 100644 app/scripts/components/Footer.jsx create mode 100644 app/scripts/components/Header.jsx create mode 100644 app/scripts/components/Loader.jsx create mode 100644 app/scripts/components/Logo.jsx rename {assets => app}/scripts/main.js (70%) rename {assets => app}/styles/base/_utils.scss (100%) rename {assets => app}/styles/base/_variables.scss (100%) rename {assets => app}/styles/main.scss (100%) rename {assets => app}/templates/README.handlebars (100%) delete mode 100644 assets/.scss-lint.yml delete mode 100644 assets/templates/item.handlebars create mode 100644 bower.json diff --git a/.eslintrc b/.eslintrc index ae60eeb..129da98 100644 --- a/.eslintrc +++ b/.eslintrc @@ -27,8 +27,12 @@ "Modernizr": false, "module": false }, + "plugins": [ + "react" + ], "rules": { "strict": 0, + // Possible Errors "comma-dangle": 2, "no-cond-assign": 0, @@ -60,14 +64,12 @@ } ], "valid-typeof": 2, + // Best Practices "block-scoped-var": 1, "curly": 1, "default-case": 1, - "dot-location": [ - 1, - "property" - ], + "dot-location": [1, "property"], "dot-notation": 1, "eqeqeq": 1, "guard-for-in": 1, @@ -105,13 +107,8 @@ "radix": 2, "vars-on-top": 0, "wrap-iife": 2, - "yoda": [ - 2, - "never", - { - "exceptRange": true - } - ], + "yoda": [2, "never", { "exceptRange": true }], + // Variables "no-shadow": 1, "no-undef": 1, @@ -124,6 +121,7 @@ } ], "no-use-before-define": 2, + // Stylistic Issues "brace-style": [ 1, @@ -138,20 +136,11 @@ 1, "last" ], - "consistent-this": [ - 1, - "self" - ], + "consistent-this": [1, "self"], "eol-last": 1, "key-spacing": 1, - "linebreak-style": [ - 1, - "unix" - ], - "max-nested-callbacks": [ - 2, - 4 - ], + "linebreak-style": [1, "unix"], + "max-nested-callbacks": [2, 4], "new-cap": 2, "new-parens": 2, "newline-after-var": 0, @@ -206,7 +195,27 @@ "space-infix-ops": 1, "space-return-throw-case": 1, "space-unary-ops": 1, + // Node - "no-mixed-requires": 0 + "no-mixed-requires": 0, + + // React + "react/jsx-quotes": [ + 1, + "double" + ], + "react/jsx-no-undef": 1, + "react/jsx-sort-props": 0, + "react/jsx-sort-prop-types": 1, + "react/jsx-uses-react": 1, + "react/jsx-uses-vars": 1, + "react/no-did-mount-set-state": 0, + "react/no-did-update-set-state": 1, + "react/no-multi-comp": 1, + "react/no-unknown-property": 1, + "react/prop-types": 1, + "react/react-in-jsx-scope": 1, + "react/self-closing-comp": 1, + "react/wrap-multilines": 1 } } diff --git a/assets/CNAME b/app/CNAME similarity index 100% rename from assets/CNAME rename to app/CNAME diff --git a/assets/templates/index.handlebars b/app/index.html similarity index 50% rename from assets/templates/index.handlebars rename to app/index.html index d141c01..8bd4bd8 100644 --- a/assets/templates/index.handlebars +++ b/app/index.html @@ -4,44 +4,31 @@ SVG PORN - + - - + + + + + -
-
- -

A collection of svg logos for developers.

-
- -
- - -
- -
- - - +
+ +