├── .gitignore ├── .npmignore ├── .nvmrc ├── .size-limit ├── .travis.yml ├── LICENSE ├── README.md ├── __tests__ └── index.tsx ├── example ├── app.tsx ├── assets │ └── .gitkeep ├── index.html ├── index.tsx ├── styled.ts └── utils.ts ├── package.json ├── src ├── FlattenPriorityGroup.tsx ├── Promised.tsx ├── Queue.tsx ├── Scheduler.tsx ├── Types.tsx ├── index.ts └── utils.ts ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | /dist/ 3 | /coverage/ 4 | .DS_Store 5 | .idea 6 | npm-debug.log 7 | yarn-error.log 8 | *.js -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log 3 | yarn.lock 4 | circle.yml 5 | stories/ 6 | _tests/ 7 | src/ 8 | assets/ 9 | __tests__ 10 | example 11 | 12 | .DS_Store 13 | .size-limit 14 | .babelrc 15 | .eslintrc 16 | .npmignore 17 | .gitignore 18 | .storybook/ 19 | 20 | 21 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 8.5.0 -------------------------------------------------------------------------------- /.size-limit: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | path: "dist/index.js", 4 | limit: "7.5 KB" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '8' 4 | cache: yarn 5 | script: 6 | - yarn 7 | - yarn test:ci && codecov 8 | notifications: 9 | email: false -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Anton Korzunov 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
extends Component
{
4 | onCheckboxChange = (propName: any) => () => {
5 | const currentValue = (this.state as any)[propName];
6 | this.setState({ [propName]: !currentValue } as any);
7 | }
8 |
9 | onFieldTextChange = (propName: any) => (e: any) => {
10 | const value = e.target.value;
11 |
12 | (this as any).setState({
13 | [propName]: value
14 | });
15 | }
16 | }
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-queue",
3 | "version": "0.6.1",
4 | "description": "Declarative task scheduler",
5 | "sideEffects": false,
6 | "scripts": {
7 | "test": "ts-react-toolbox test",
8 | "bootstrap": "ts-react-toolbox init",
9 | "dev": "ts-react-toolbox dev",
10 | "test:ci": "ts-react-toolbox test --runInBand --coverage",
11 | "build": "ts-react-toolbox build",
12 | "prepublish": "ts-react-toolbox build",
13 | "release": "ts-react-toolbox release",
14 | "lint": "ts-react-toolbox lint",
15 | "static": "ts-react-toolbox publish",
16 | "format": "ts-react-toolbox format",
17 | "analyze": "ts-react-toolbox analyze"
18 | },
19 | "repository": "https://github.com/theKashey/react-queue/",
20 | "keywords": [
21 | "queue",
22 | "react",
23 | "task",
24 | "scheduler"
25 | ],
26 | "author": "theKashey