-
Notifications
You must be signed in to change notification settings - Fork 2
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
15 changed files
with
127 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"parser": "babel-eslint", | ||
"plugins": [ | ||
"react" | ||
|
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,4 +1,7 @@ | ||
# Include your project-specific ignores in this file | ||
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files | ||
|
||
build | ||
node_modules | ||
ncp-debug.log | ||
npm-debug.log | ||
npm-debug.log |
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
Empty file.
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,7 @@ | ||
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ | ||
|
||
import keyMirror from 'fbjs/lib/keyMirror'; | ||
|
||
export default keyMirror({ | ||
CHANGE: 'CHANGE', | ||
FETCHING: 'FETCHING' | ||
|
||
}); |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ | ||
|
||
import React from 'react'; | ||
import Router from 'react-routing/src/Router'; | ||
import http from './core/HttpClient'; | ||
import App from './components/App'; | ||
import ContentPage from './components/ContentPage'; | ||
import NotFoundPage from './components/NotFoundPage'; | ||
import ErrorPage from './components/ErrorPage'; | ||
import Invoice from './components/Invoice'; | ||
import InvoiceES6 from './components/InvoiceES6'; | ||
|
||
const router = new Router(on => { | ||
|
||
on('*', async (state, next) => { | ||
const component = await next(); | ||
return component && <App context={state.context}>{component}</App>; | ||
}); | ||
|
||
on('/contact', async () => <ContactPage />); | ||
|
||
on('/login', async () => <LoginPage />); | ||
|
||
on('/register', async () => <RegisterPage />); | ||
|
||
on('*', async (state) => { | ||
const content = await http.get(`/api/content?path=${state.path}`); | ||
return content && <ContentPage {...content} />; | ||
}); | ||
|
||
on('error', (state, error) => state.statusCode === 404 ? | ||
<App context={state.context} error={error}><NotFoundPage /></App> : | ||
<App context={state.context} error={error}><ErrorPage /></App> | ||
); | ||
|
||
}); | ||
|
||
export default router; |
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
Empty file.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"rules": { | ||
"no-console": 0 | ||
} | ||
} |
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 |
---|---|---|
|
@@ -19,20 +19,20 @@ export default () => new Promise((resolve, reject) => { | |
if (process.argv.includes('production')) { | ||
remote = { | ||
name: 'production', | ||
url: 'https://github.com/DVLP/invoice.git', | ||
branch: 'gh-pages' | ||
url: 'https://[email protected]:443/billtestx.git', | ||
branch: 'master' | ||
}; | ||
} else if (process.argv.includes('staging')) { | ||
remote = { | ||
name: 'staging', | ||
url: 'https://github.com/DVLP/invoice.git', | ||
branch: 'gh-pages' | ||
url: 'https://[email protected]:443/billtestx.git', | ||
branch: 'master' | ||
}; | ||
} else { | ||
remote = { | ||
name: 'test', | ||
url: 'https://github.com/DVLP/invoice.git', | ||
branch: 'gh-pages' | ||
url: 'https://[email protected]:443/billtestx.git', | ||
branch: 'master' | ||
}; | ||
} | ||
|
||
|
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