-
Notifications
You must be signed in to change notification settings - Fork 4
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
92 changed files
with
16,590 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# development env files | ||
/.idea | ||
yarn.lock | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const path = require('path'); | ||
const rewireLess = require('react-app-rewire-less'); | ||
const rewireReactHotLoader = require('react-app-rewire-hot-loader'); | ||
|
||
|
||
module.exports = function override(config, env) { | ||
config.resolve.modules = [ | ||
path.join(__dirname, 'src') | ||
].concat(config.resolve.modules); | ||
|
||
config = rewireReactHotLoader(config, env); | ||
|
||
config = rewireLess.withLoaderOptions({ | ||
modifyVars: {}, | ||
})(config, env); | ||
|
||
return config; | ||
}; |
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,58 @@ | ||
{ | ||
"name": "flexile", | ||
"version": "0.0.0", | ||
"private": true, | ||
"dependencies": { | ||
"antd": "^3.7.3", | ||
"antd-theme-webpack-plugin": "^1.1.6", | ||
"axios": "^0.18.0", | ||
"draftjs-to-html": "^0.8.4", | ||
"firebase": "^5.2.0", | ||
"less": "2.7.3", | ||
"less-loader": "^4.1.0", | ||
"less-vars-to-js": "^1.2.1", | ||
"moment": "^2.22.2", | ||
"nprogress": "^0.2.0", | ||
"react": "^16.4.1", | ||
"react-app-rewire-hot-loader": "^1.0.1", | ||
"react-big-calendar": "^0.19.2", | ||
"react-bootstrap-sweetalert": "^4.4.1", | ||
"react-ckeditor-component": "^1.0.7", | ||
"react-color": "^2.14.1", | ||
"react-custom-scrollbars": "^4.2.1", | ||
"react-dnd": "^5.0.0", | ||
"react-dnd-html5-backend": "^5.0.1", | ||
"react-dom": "^16.4.1", | ||
"react-draft-wysiwyg": "^1.12.13", | ||
"react-google-maps": "^9.4.5", | ||
"react-hot-loader": "^4.3.3", | ||
"react-intl": "^2.4.0", | ||
"react-notifications": "^1.4.3", | ||
"react-placeholder": "^3.0.1", | ||
"react-redux": "^5.0.7", | ||
"react-router-dom": "^4.3.1", | ||
"react-router-redux": "^5.0.0-alpha.9", | ||
"react-scripts": "1.1.4", | ||
"react-simple-maps": "^0.12.1", | ||
"react-slick": "^0.23.1", | ||
"react-sortable-hoc": "^0.8.3", | ||
"react-star-rating-component": "^1.4.1", | ||
"recharts": "^1.0.1", | ||
"redux": "^4.0.0", | ||
"redux-saga": "^0.16.0", | ||
"slick-carousel": "^1.8.1", | ||
"victory": "^0.27.2" | ||
}, | ||
"scripts": { | ||
"start": "react-app-rewired start", | ||
"build": "react-app-rewired build", | ||
"test": "react-app-rewired --env=jsdom" | ||
}, | ||
"devDependencies": { | ||
"add": "^2.0.6", | ||
"babel-plugin-import": "^1.8.0", | ||
"react-app-rewire-less": "^2.1.2", | ||
"react-app-rewired": "^1.5.2", | ||
"yarn": "^1.7.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Redux Todos Example</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` in this folder. | ||
To create a production bundle, use `npm run build`. | ||
--> | ||
</body> | ||
</html> |
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,22 @@ | ||
let nextTodoId = 0 | ||
export const addTodo = text => ({ | ||
type: 'ADD_TODO', | ||
id: nextTodoId++, | ||
text | ||
}) | ||
|
||
export const setVisibilityFilter = filter => ({ | ||
type: 'SET_VISIBILITY_FILTER', | ||
filter | ||
}) | ||
|
||
export const toggleTodo = id => ({ | ||
type: 'TOGGLE_TODO', | ||
id | ||
}) | ||
|
||
export const VisibilityFilters = { | ||
SHOW_ALL: 'SHOW_ALL', | ||
SHOW_COMPLETED: 'SHOW_COMPLETED', | ||
SHOW_ACTIVE: 'SHOW_ACTIVE' | ||
} |
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,25 @@ | ||
import * as actions from './index' | ||
|
||
describe('todo actions', () => { | ||
it('addTodo should create ADD_TODO action', () => { | ||
expect(actions.addTodo('Use Redux')).toEqual({ | ||
type: 'ADD_TODO', | ||
id: 0, | ||
text: 'Use Redux' | ||
}) | ||
}) | ||
|
||
it('setVisibilityFilter should create SET_VISIBILITY_FILTER action', () => { | ||
expect(actions.setVisibilityFilter('active')).toEqual({ | ||
type: 'SET_VISIBILITY_FILTER', | ||
filter: 'active' | ||
}) | ||
}) | ||
|
||
it('toggleTodo should create TOGGLE_TODO action', () => { | ||
expect(actions.toggleTodo(1)).toEqual({ | ||
type: 'TOGGLE_TODO', | ||
id: 1 | ||
}) | ||
}) | ||
}) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.