This repository has been archived by the owner on Jun 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
395 additions
and
373 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,6 +1,6 @@ | ||
{ | ||
"name": "react-starter-kit", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Build project using ReactJS, Redux, Webpack and Babel", | ||
"scripts": { | ||
"postinstall": "bower install", | ||
|
@@ -16,7 +16,6 @@ | |
"switch-dist": "npm run remove-dist && mv dist2 dist", | ||
"check-dist": "babel-node utils/checkDist.js", | ||
"create-dist2": "mkdir ./dist2", | ||
"remove-dist": "rimraf ./dist", | ||
"prebuild": "npm-run-all lint check-dist create-dist2 build:html check-dotenv", | ||
"build": "babel-node utils/build.js", | ||
"postbuild": "npm-run-all switch-dist post:message", | ||
|
@@ -26,59 +25,63 @@ | |
"author": "June Domingo <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"autoprefixer": "^6.3.7", | ||
"autoprefixer": "^6.5.2", | ||
"axios": "^0.12.0", | ||
"babel-cli": "6.8.0", | ||
"babel-core": "6.8.0", | ||
"babel-loader": "6.2.4", | ||
"babel-plugin-react-display-name": "2.0.0", | ||
"babel-polyfill": "^6.8.0", | ||
"babel-preset-es2015": "6.6.0", | ||
"babel-preset-react": "6.5.0", | ||
"babel-preset-react-hmre": "1.1.1", | ||
"babel-register": "6.8.0", | ||
"colors": "1.1.2", | ||
"compression": "^1.6.1", | ||
"css-loader": "0.23.1", | ||
"enzyme": "2.2.0", | ||
"eslint": "2.9.0", | ||
"eslint-plugin-import": "1.6.1", | ||
"eslint-plugin-react": "5.0.1", | ||
"eslint-watch": "2.1.11", | ||
"expect": "1.19.0", | ||
"express": "4.13.4", | ||
"extract-text-webpack-plugin": "1.0.1", | ||
"file-loader": "0.8.5", | ||
"jquery": "^3.0.0", | ||
"mocha": "2.4.5", | ||
"npm-run-all": "1.8.0", | ||
"babel-cli": "^6.8.0", | ||
"babel-core": "^6.8.0", | ||
"babel-loader": "^6.2.4", | ||
"babel-plugin-react-display-name": "^2.0.0", | ||
"babel-polyfill": "^6.16.0", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-react": "^6.5.0", | ||
"babel-preset-react-hmre": "^1.1.1", | ||
"babel-register": "^6.8.0", | ||
"colors": "^1.1.2", | ||
"compression": "^1.6.2", | ||
"css-loader": "^0.23.1", | ||
"enzyme": "^2.2.0", | ||
"eslint": "^3.9.1", | ||
"eslint-config-airbnb": "^13.0.0", | ||
"eslint-plugin-import": "^2.1.0", | ||
"eslint-plugin-jsx-a11y": "^2.2.3", | ||
"eslint-plugin-react": "^6.6.0", | ||
"eslint-watch": "^2.1.14", | ||
"expect": "^1.19.0", | ||
"express": "^4.13.4", | ||
"extract-text-webpack-plugin": "^1.0.1", | ||
"file-loader": "^0.8.5", | ||
"jquery": "^3.1.1", | ||
"lodash": "^4.16.6", | ||
"mocha": "^2.4.5", | ||
"npm-run-all": "^1.8.0", | ||
"open": "0.0.5", | ||
"poststylus": "^0.2.3", | ||
"progress-bar-webpack-plugin": "^1.9.0", | ||
"react": "^15.0.2", | ||
"react-addons-test-utils": "15.0.2", | ||
"react": "^15.3.2", | ||
"react-addons-test-utils": "^15.0.2", | ||
"react-document-title": "^2.0.2", | ||
"react-dom": "^15.0.2", | ||
"react-dom": "^15.3.2", | ||
"react-redux": "^4.4.5", | ||
"react-router": "^2.4.0", | ||
"react-router-redux": "4.0.4", | ||
"redux": "^3.5.2", | ||
"redux-logger": "^2.6.1", | ||
"redux-thunk": "^2.0.1", | ||
"rimraf": "2.5.2", | ||
"style-loader": "0.13.1", | ||
"react-router": "^2.8.1", | ||
"react-router-redux": "^4.0.4", | ||
"redux": "^3.6.0", | ||
"redux-logger": "^2.7.4", | ||
"redux-thunk": "^2.1.0", | ||
"rimraf": "^2.5.2", | ||
"style-loader": "^0.13.1", | ||
"stylus": "^0.54.5", | ||
"stylus-loader": "^2.1.1", | ||
"stylus-loader": "^2.3.1", | ||
"toaster": "^0.1.2", | ||
"toastr": "^2.1.2", | ||
"url-loader": "0.5.7", | ||
"webpack": "1.13.0", | ||
"webpack-dotenv-plugin": "^1.3.2" | ||
"url-loader": "^0.5.7", | ||
"webpack": "^1.13.0", | ||
"webpack-dotenv-plugin": "^1.4.0" | ||
}, | ||
"devDependencies": { | ||
"eventsource-polyfill": "0.9.6", | ||
"redux-immutable-state-invariant": "1.2.3", | ||
"webpack-dev-middleware": "1.6.1", | ||
"webpack-hot-middleware": "2.10.0" | ||
"eventsource-polyfill": "^0.9.6", | ||
"redux-immutable-state-invariant": "^1.2.3", | ||
"webpack-dev-middleware": "^1.6.1", | ||
"webpack-hot-middleware": "^2.10.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
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 +1,2 @@ | ||
export const URL = process.env.API_URL; | ||
/* eslint-disable import/prefer-default-export */ // remove this line if you have more than 2 variables | ||
export const URL = process.env.API_URL; |
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,31 +1,29 @@ | ||
import React, {PropTypes} from 'react'; | ||
import {Link, IndexLink} from 'react-router'; | ||
/* eslint-disable jsx-a11y/no-static-element-interactions */ | ||
import React, { PropTypes } from 'react'; | ||
import { Link, IndexLink } from 'react-router'; | ||
|
||
const Header = ({redirectToIndex}) => { | ||
return ( | ||
<div className="header"> | ||
<div className="header__logo"> | ||
<i onClick={redirectToIndex} className="ion-ios-bolt-outline"></i> | ||
</div> | ||
<ul className="header__nav-list"> | ||
<li className="header__nav-item"> | ||
<IndexLink to="/" className="header__nav-link" activeClassName="active-nav"> Home </IndexLink> | ||
</li> | ||
<li className="header__nav-item"> | ||
<Link to="/posts" className="header__nav-link" activeClassName="active-nav"> Example</Link> | ||
</li> | ||
<li className="header__nav-item"> | ||
<a href="https://github.com/JuneDomingo/react-starterkit" className="header__nav-link"> Github</a> | ||
</li> | ||
</ul> | ||
const Header = ({ redirectToIndex }) => ( | ||
<div className="header"> | ||
<div className="header__logo"> | ||
<i onClick={redirectToIndex} className="ion-ios-bolt-outline" /> | ||
</div> | ||
); | ||
}; | ||
|
||
<ul className="header__nav-list"> | ||
<li className="header__nav-item"> | ||
<IndexLink to="/" className="header__nav-link" activeClassName="active-nav"> Home </IndexLink> | ||
</li> | ||
<li className="header__nav-item"> | ||
<Link to="/posts" className="header__nav-link" activeClassName="active-nav"> Example</Link> | ||
</li> | ||
<li className="header__nav-item"> | ||
<a href="https://github.com/JuneDomingo/react-starterkit" className="header__nav-link"> Github</a> | ||
</li> | ||
</ul> | ||
</div> | ||
); | ||
|
||
Header.propTypes = { | ||
redirectToIndex: PropTypes.func.isRequired | ||
}; | ||
|
||
|
||
export default Header; | ||
export default Header; |
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,15 +1,14 @@ | ||
/* eslint-disable global-require */ | ||
import React from 'react'; | ||
|
||
const PageNotFound = () => { | ||
return ( | ||
<div> | ||
<div className="example"> | ||
<h1 className="section-title"> Error 404: Noodles not found</h1> | ||
<img src={require('assets/img/noodlesnotfound.jpg')} className="img-fluid"/> | ||
<p> Hinalungkat ko....wala talaga eh</p> | ||
</div> | ||
const PageNotFound = () => ( | ||
<div> | ||
<div className="example"> | ||
<h1 className="section-title"> Error 404: Noodles not found</h1> | ||
<img src={require('assets/img/noodlesnotfound.jpg')} className="img-fluid" alt="noodlesnotfound" /> | ||
<p> Hinalungkat ko....wala talaga eh</p> | ||
</div> | ||
); | ||
}; | ||
</div> | ||
); | ||
|
||
export default PageNotFound; | ||
export default PageNotFound; |
Oops, something went wrong.