├── .gitignore ├── README.MD ├── blog ├── .gitignore ├── README.md ├── package.json ├── public │ ├── favicon.ico │ ├── index.html │ └── manifest.json ├── src │ ├── actions │ │ └── index.js │ ├── apis │ │ └── jsonPlaceHolder.js │ ├── components │ │ ├── App.jsx │ │ ├── PostList.jsx │ │ └── UserHeader.jsx │ ├── index.js │ └── reducers │ │ ├── index.js │ │ ├── postsReducers.js │ │ └── usersReducer.js └── yarn.lock ├── hooks ├── .gitignore ├── README.md ├── package.json ├── public │ ├── favicon.ico │ ├── index.html │ └── manifest.json ├── src │ ├── components │ │ ├── App.jsx │ │ ├── ResourceList.jsx │ │ ├── UserList.jsx │ │ └── useResources.jsx │ └── index.js └── yarn.lock ├── seasons-hooks ├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public │ ├── favicon.ico │ ├── index.html │ └── manifest.json ├── src │ ├── SeasonDisplay.css │ ├── SeasonDisplay.jsx │ ├── Spinner.jsx │ ├── index.jsx │ └── useLocation.jsx └── yarn.lock ├── songs ├── .gitignore ├── README.md ├── package.json ├── public │ ├── favicon.ico │ ├── index.html │ └── manifest.json ├── src │ ├── actions │ │ └── index.js │ ├── components │ │ ├── App.js │ │ ├── SongDetail.js │ │ └── SongList.js │ ├── index.js │ └── reducers │ │ └── index.js └── yarn.lock ├── streams ├── api │ ├── .gitignore │ ├── db.json │ ├── package.json │ └── yarn.lock ├── client │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── index.html │ │ └── manifest.json │ ├── src │ │ ├── actions │ │ │ ├── index.js │ │ │ └── types.js │ │ ├── apis │ │ │ └── streams.js │ │ ├── components │ │ │ ├── App.js │ │ │ ├── GoogleAuth.js │ │ │ ├── Header.js │ │ │ ├── Modal.js │ │ │ └── streams │ │ │ │ ├── StreamCreate.js │ │ │ │ ├── StreamDelete.js │ │ │ │ ├── StreamEdit.js │ │ │ │ ├── StreamForm.js │ │ │ │ ├── StreamList.js │ │ │ │ └── StreamShow.js │ │ ├── history.js │ │ ├── index.js │ │ └── reducers │ │ │ ├── authReducer.js │ │ │ ├── index.js │ │ │ └── streamReducer.js │ └── yarn.lock └── rtmpserver │ ├── .gitignore │ ├── index.js │ ├── package.json │ └── yarn.lock └── translate-context ├── .gitignore ├── README.md ├── package.json ├── public ├── favicon.ico ├── index.html └── manifest.json ├── src ├── components │ ├── App.js │ ├── Button.js │ ├── Field.js │ ├── LanguageSelector.js │ └── UserCreate.js ├── contexts │ ├── ColorContext.js │ └── LanguageContext.js └── index.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /README.MD: -------------------------------------------------------------------------------- 1 | # React-Redux 2 | 3 | Parsclick.net React-Redux Tutorials 4 | 5 | ## Tutorial Link 6 | [React-Redux](https://parsclick.net/lesson/%D8%B1%DB%8C%D8%AF%D8%A7%DA%A9%D8%B3-%D8%AF%D8%B1-%D8%B1%DB%8C-%D8%A7%DA%A9%D8%AA) 7 | -------------------------------------------------------------------------------- /blog/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | 25 | .DS_Store 26 | -------------------------------------------------------------------------------- /blog/README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 2 | 3 | ## Available Scripts 4 | 5 | In the project directory, you can run: 6 | 7 | ### `npm start` 8 | 9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 11 | 12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console. 14 | 15 | ### `npm test` 16 | 17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 19 | 20 | ### `npm run build` 21 | 22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance. 24 | 25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed! 27 | 28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 29 | 30 | ### `npm run eject` 31 | 32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 33 | 34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 35 | 36 | Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 37 | 38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 39 | 40 | ## Learn More 41 | 42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 43 | 44 | To learn React, check out the [React documentation](https://reactjs.org/). 45 | 46 | ### Code Splitting 47 | 48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting 49 | 50 | ### Analyzing the Bundle Size 51 | 52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size 53 | 54 | ### Making a Progressive Web App 55 | 56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app 57 | 58 | ### Advanced Configuration 59 | 60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration 61 | 62 | ### Deployment 63 | 64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment 65 | 66 | ### `npm run build` fails to minify 67 | 68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify 69 | -------------------------------------------------------------------------------- /blog/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "blog", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "axios": "^0.19.0", 7 | "lodash": "^4.17.19", 8 | "react": "^16.8.6", 9 | "react-dom": "^16.8.6", 10 | "react-redux": "^7.1.0", 11 | "react-scripts": "3.0.1", 12 | "redux": "^4.0.1", 13 | "redux-thunk": "^2.3.0" 14 | }, 15 | "scripts": { 16 | "start": "react-scripts start", 17 | "build": "react-scripts build", 18 | "test": "react-scripts test", 19 | "eject": "react-scripts eject" 20 | }, 21 | "eslintConfig": { 22 | "extends": "react-app" 23 | }, 24 | "browserslist": { 25 | "production": [ 26 | ">0.2%", 27 | "not dead", 28 | "not op_mini all" 29 | ], 30 | "development": [ 31 | "last 1 chrome version", 32 | "last 1 firefox version", 33 | "last 1 safari version" 34 | ] 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /blog/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azimidev/React-Redux/3551a34631059c0dc60e7d52e66312099ca561d4/blog/public/favicon.ico -------------------------------------------------------------------------------- /blog/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 22 | React App 23 | 24 | 25 | 26 | 27 |
28 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /blog/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /blog/src/actions/index.js: -------------------------------------------------------------------------------- 1 | import _ from 'lodash'; 2 | import jsonPlaceHolder from '../apis/jsonPlaceHolder'; 3 | 4 | export const fetchPostsAndUsers = () => async (dispatch, getState) => { 5 | await dispatch(fetchPosts()); 6 | 7 | // const userIds = _.uniq(_.map(getState().posts, 'userId')); 8 | // userIds.forEach(id => dispatch(fetchUser(id))); 9 | 10 | // REFACTOR: use Loadash chain() 11 | 12 | _.chain(getState().posts) 13 | .map('userId') 14 | .uniq() 15 | .forEach(id => dispatch(fetchUser(id))) 16 | .value(); 17 | }; 18 | 19 | export const fetchPosts = () => async dispatch => { 20 | const response = await jsonPlaceHolder.get('/posts'); 21 | 22 | dispatch({ type: 'FETCH_POSTS', payload: response.data }); 23 | }; 24 | 25 | export const fetchUser = id => async dispatch => _fetchUser(id, dispatch); 26 | 27 | const _fetchUser = _.memoize(async (id, dispatch) => { 28 | const response = await jsonPlaceHolder.get(`/users/${ id }`); 29 | 30 | dispatch({ type: 'FETCH_USER', payload: response.data }); 31 | }); 32 | -------------------------------------------------------------------------------- /blog/src/apis/jsonPlaceHolder.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | 3 | export default axios.create({ 4 | baseURL: 'https://jsonplaceholder.typicode.com' 5 | }); 6 | 7 | -------------------------------------------------------------------------------- /blog/src/components/App.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PostList from './PostList'; 3 | 4 | const App = () => { 5 | return ( 6 |
7 | 8 |
9 | ); 10 | }; 11 | 12 | export default App; 13 | -------------------------------------------------------------------------------- /blog/src/components/PostList.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { connect } from 'react-redux'; 3 | import { fetchPostsAndUsers } from '../actions'; 4 | import UserHeader from './UserHeader'; 5 | 6 | class PostList extends Component { 7 | componentDidMount() { 8 | this.props.fetchPostsAndUsers(); 9 | } 10 | 11 | renderList() { 12 | return this.props.posts.map(post => { 13 | return ( 14 |
15 | 16 |
17 |
18 |

{post.title}

19 |

{post.body}

20 |
21 | 22 |
23 |
24 | ); 25 | }) 26 | } 27 | 28 | render() { 29 | return ( 30 |
31 | {this.renderList()} 32 |
33 | ) 34 | } 35 | }; 36 | 37 | const mapStateToProps = (state) => { 38 | return { posts: state.posts }; 39 | }; 40 | 41 | export default connect(mapStateToProps, { fetchPostsAndUsers })(PostList); 42 | 43 | 44 | -------------------------------------------------------------------------------- /blog/src/components/UserHeader.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { connect } from 'react-redux'; 3 | import { fetchUser } from '../actions'; 4 | 5 | class UserHeader extends Component { 6 | 7 | componentWillMount() { 8 | this.props.fetchUser(this.props.userId); 9 | } 10 | 11 | render() { 12 | const { user } = this.props; 13 | 14 | if (!user) return null; 15 | 16 | return ( 17 |
18 | — { user.name } 19 |
20 | ); 21 | } 22 | } 23 | 24 | const mapStateToProps = (state, ownProps) => { 25 | return { user: state.users.find(user => user.id === ownProps.userId) }; 26 | }; 27 | 28 | export default connect(mapStateToProps, { fetchUser })(UserHeader); 29 | -------------------------------------------------------------------------------- /blog/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import { Provider } from 'react-redux'; 4 | import { createStore, applyMiddleware } from 'redux'; 5 | import thunk from 'redux-thunk'; 6 | 7 | import App from './components/App'; 8 | import reducers from './reducers'; 9 | 10 | const store = createStore(reducers, applyMiddleware(thunk)); 11 | 12 | ReactDOM.render( 13 | 14 | 15 | , 16 | document.querySelector('#root') 17 | ); 18 | -------------------------------------------------------------------------------- /blog/src/reducers/index.js: -------------------------------------------------------------------------------- 1 | import { combineReducers } from 'redux'; 2 | import postsReducers from './postsReducers'; 3 | import usersReducer from './usersReducer'; 4 | 5 | export default combineReducers({ 6 | posts: postsReducers, 7 | users: usersReducer, 8 | }); 9 | -------------------------------------------------------------------------------- /blog/src/reducers/postsReducers.js: -------------------------------------------------------------------------------- 1 | export default (state = [], action) => { 2 | switch (action.type) { 3 | case 'FETCH_POSTS': 4 | return action.payload; 5 | default: 6 | return state; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /blog/src/reducers/usersReducer.js: -------------------------------------------------------------------------------- 1 | export default (state = [], action) => { 2 | switch (action.type) { 3 | case 'FETCH_USER': 4 | return [...state, action.payload]; 5 | default: 6 | return state; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /hooks/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /hooks/README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 2 | 3 | ## Available Scripts 4 | 5 | In the project directory, you can run: 6 | 7 | ### `npm start` 8 | 9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 11 | 12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console. 14 | 15 | ### `npm test` 16 | 17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 19 | 20 | ### `npm run build` 21 | 22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance. 24 | 25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed! 27 | 28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 29 | 30 | ### `npm run eject` 31 | 32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 33 | 34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 35 | 36 | Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 37 | 38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 39 | 40 | ## Learn More 41 | 42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 43 | 44 | To learn React, check out the [React documentation](https://reactjs.org/). 45 | 46 | ### Code Splitting 47 | 48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting 49 | 50 | ### Analyzing the Bundle Size 51 | 52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size 53 | 54 | ### Making a Progressive Web App 55 | 56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app 57 | 58 | ### Advanced Configuration 59 | 60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration 61 | 62 | ### Deployment 63 | 64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment 65 | 66 | ### `npm run build` fails to minify 67 | 68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify 69 | -------------------------------------------------------------------------------- /hooks/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hooks", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "axios": "^0.19.0", 7 | "react": "^16.8.6", 8 | "react-dom": "^16.8.6", 9 | "react-scripts": "3.0.1" 10 | }, 11 | "scripts": { 12 | "start": "react-scripts start", 13 | "build": "react-scripts build", 14 | "test": "react-scripts test", 15 | "eject": "react-scripts eject" 16 | }, 17 | "eslintConfig": { 18 | "extends": "react-app" 19 | }, 20 | "browserslist": { 21 | "production": [ 22 | ">0.2%", 23 | "not dead", 24 | "not op_mini all" 25 | ], 26 | "development": [ 27 | "last 1 chrome version", 28 | "last 1 firefox version", 29 | "last 1 safari version" 30 | ] 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /hooks/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azimidev/React-Redux/3551a34631059c0dc60e7d52e66312099ca561d4/hooks/public/favicon.ico -------------------------------------------------------------------------------- /hooks/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 22 | React App 23 | 24 | 25 | 26 |
27 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /hooks/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /hooks/src/components/App.jsx: -------------------------------------------------------------------------------- 1 | import React, { useState } from "react"; 2 | import ResourceList from "./ResourceList"; 3 | import UserList from "./UserList"; 4 | 5 | export default () => { 6 | const [resource, setResource] = useState("posts"); 7 | 8 | return ( 9 |
10 |

Users

11 | 12 |
13 | 14 | 15 |
16 | 17 |
18 | ); 19 | }; 20 | -------------------------------------------------------------------------------- /hooks/src/components/ResourceList.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import useResources from "./useResources"; 3 | 4 | const ResourceList = ({ resource }) => { 5 | const resources = useResources(resource); 6 | 7 | return ( 8 | 13 | ); 14 | }; 15 | 16 | export default ResourceList; 17 | -------------------------------------------------------------------------------- /hooks/src/components/UserList.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import useResources from "./useResources"; 3 | 4 | export default () => { 5 | const users = useResources("users"); 6 | 7 | return ( 8 | 13 | ); 14 | }; 15 | -------------------------------------------------------------------------------- /hooks/src/components/useResources.jsx: -------------------------------------------------------------------------------- 1 | import { useState, useEffect } from "react"; 2 | import axios from "axios"; 3 | 4 | export default resource => { 5 | const [resources, setResources] = useState([]); 6 | 7 | useEffect(() => { 8 | (async resource => { 9 | const { data } = await axios.get(`https://jsonplaceholder.typicode.com/${resource}`); 10 | setResources(data); 11 | })(resource); 12 | }, [resource]); 13 | 14 | return resources; 15 | }; 16 | -------------------------------------------------------------------------------- /hooks/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './components/App'; 4 | 5 | ReactDOM.render(, document.getElementById('root')); 6 | -------------------------------------------------------------------------------- /seasons-hooks/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /seasons-hooks/README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 2 | 3 | ## Available Scripts 4 | 5 | In the project directory, you can run: 6 | 7 | ### `npm start` 8 | 9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 11 | 12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console. 14 | 15 | ### `npm test` 16 | 17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 19 | 20 | ### `npm run build` 21 | 22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance. 24 | 25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed! 27 | 28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 29 | 30 | ### `npm run eject` 31 | 32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 33 | 34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 35 | 36 | Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 37 | 38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 39 | 40 | ## Learn More 41 | 42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 43 | 44 | To learn React, check out the [React documentation](https://reactjs.org/). 45 | -------------------------------------------------------------------------------- /seasons-hooks/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "seasons", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "react": "^16.7.0-alpha.2", 7 | "react-dom": "^16.7.0-alpha.2", 8 | "react-scripts": "2.1.0" 9 | }, 10 | "scripts": { 11 | "start": "react-scripts start", 12 | "build": "react-scripts build", 13 | "test": "react-scripts test", 14 | "eject": "react-scripts eject" 15 | }, 16 | "eslintConfig": { 17 | "extends": "react-app" 18 | }, 19 | "browserslist": [ 20 | ">0.2%", 21 | "not dead", 22 | "not ie <= 11", 23 | "not op_mini all" 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /seasons-hooks/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azimidev/React-Redux/3551a34631059c0dc60e7d52e66312099ca561d4/seasons-hooks/public/favicon.ico -------------------------------------------------------------------------------- /seasons-hooks/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 15 | 24 | React App 25 | 26 | 27 | 28 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /seasons-hooks/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /seasons-hooks/src/SeasonDisplay.css: -------------------------------------------------------------------------------- 1 | .icon-left { 2 | position: absolute; 3 | top: 10px; 4 | left: 10px; 5 | } 6 | 7 | .icon-right { 8 | position: absolute; 9 | bottom: 10px; 10 | right: 10px; 11 | } 12 | 13 | .season-display.winter i { 14 | color: blue; 15 | } 16 | 17 | .season-display.summer i { 18 | color: red; 19 | } 20 | 21 | .season-display { 22 | display: flex; 23 | justify-content: center; 24 | align-items: center; 25 | height: 100vh; 26 | } 27 | 28 | .winter { 29 | background-color: aliceblue; 30 | } 31 | 32 | .summer { 33 | background-color: orange; 34 | } 35 | -------------------------------------------------------------------------------- /seasons-hooks/src/SeasonDisplay.jsx: -------------------------------------------------------------------------------- 1 | import "./SeasonDisplay.css"; 2 | import React from "react"; 3 | 4 | const seasonConfig = { 5 | summer: { 6 | text: "Let's hit the beach!", 7 | iconName: "sun" 8 | }, 9 | winter: { 10 | text: "Burr it is cold!", 11 | iconName: "snowflake" 12 | } 13 | }; 14 | 15 | const getSeason = (lat, month) => { 16 | if (month > 2 && month < 9) { 17 | return lat > 0 ? "summer" : "winter"; 18 | } else { 19 | return lat > 0 ? "winter" : "summer"; 20 | } 21 | }; 22 | 23 | const SeasonDisplay = props => { 24 | const season = getSeason(props.lat, new Date().getMonth()); 25 | const { text, iconName } = seasonConfig[season]; 26 | 27 | return ( 28 |
29 | 30 |

{text}

31 | 32 |
33 | ); 34 | }; 35 | 36 | export default SeasonDisplay; 37 | -------------------------------------------------------------------------------- /seasons-hooks/src/Spinner.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const Spinner = props => { 4 | return ( 5 |
6 |
{props.message}
7 |
8 | ); 9 | }; 10 | 11 | Spinner.defaultProps = { 12 | message: "Loading..." 13 | }; 14 | 15 | export default Spinner; 16 | -------------------------------------------------------------------------------- /seasons-hooks/src/index.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | import SeasonDisplay from "./SeasonDisplay"; 4 | import Spinner from "./Spinner"; 5 | import useLocation from "./useLocation"; 6 | 7 | const App = () => { 8 | const [lat, errorMessage] = useLocation(); 9 | 10 | let content; 11 | 12 | if (errorMessage) { 13 | content =
Error: {errorMessage}
; 14 | } else if (lat) { 15 | content = ; 16 | } else { 17 | content = ; 18 | } 19 | 20 | return
{content}
; 21 | }; 22 | 23 | ReactDOM.render(, document.querySelector("#root")); 24 | -------------------------------------------------------------------------------- /seasons-hooks/src/useLocation.jsx: -------------------------------------------------------------------------------- 1 | import { useState, useEffect } from "react"; 2 | 3 | export default () => { 4 | const [lat, setLat] = useState(null); 5 | const [errorMessage, setErrorMessage] = useState(""); 6 | 7 | useEffect(() => { 8 | window.navigator.geolocation.getCurrentPosition( 9 | position => setLat(position.coords.latitude), 10 | err => setErrorMessage(err.message) 11 | ); 12 | }, []); 13 | 14 | return [lat, errorMessage]; 15 | }; 16 | -------------------------------------------------------------------------------- /songs/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | 25 | .DS_Store 26 | -------------------------------------------------------------------------------- /songs/README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 2 | 3 | ## Available Scripts 4 | 5 | In the project directory, you can run: 6 | 7 | ### `npm start` 8 | 9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 11 | 12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console. 14 | 15 | ### `npm test` 16 | 17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 19 | 20 | ### `npm run build` 21 | 22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance. 24 | 25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed! 27 | 28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 29 | 30 | ### `npm run eject` 31 | 32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 33 | 34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 35 | 36 | Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 37 | 38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 39 | 40 | ## Learn More 41 | 42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 43 | 44 | To learn React, check out the [React documentation](https://reactjs.org/). 45 | 46 | ### Code Splitting 47 | 48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting 49 | 50 | ### Analyzing the Bundle Size 51 | 52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size 53 | 54 | ### Making a Progressive Web App 55 | 56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app 57 | 58 | ### Advanced Configuration 59 | 60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration 61 | 62 | ### Deployment 63 | 64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment 65 | 66 | ### `npm run build` fails to minify 67 | 68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify 69 | -------------------------------------------------------------------------------- /songs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "songs", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "react": "^16.8.6", 7 | "react-dom": "^16.8.6", 8 | "react-redux": "^7.1.0", 9 | "react-scripts": "3.0.1", 10 | "redux": "^4.0.1" 11 | }, 12 | "scripts": { 13 | "start": "react-scripts start", 14 | "build": "react-scripts build", 15 | "test": "react-scripts test", 16 | "eject": "react-scripts eject" 17 | }, 18 | "eslintConfig": { 19 | "extends": "react-app" 20 | }, 21 | "browserslist": { 22 | "production": [ 23 | ">0.2%", 24 | "not dead", 25 | "not op_mini all" 26 | ], 27 | "development": [ 28 | "last 1 chrome version", 29 | "last 1 firefox version", 30 | "last 1 safari version" 31 | ] 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /songs/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azimidev/React-Redux/3551a34631059c0dc60e7d52e66312099ca561d4/songs/public/favicon.ico -------------------------------------------------------------------------------- /songs/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 22 | React App 23 | 24 | 25 | 26 | 27 |
28 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /songs/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /songs/src/actions/index.js: -------------------------------------------------------------------------------- 1 | // Action creator 2 | export const selectedSong = song => { 3 | // Return an action 4 | return { 5 | type: 'SONG_SELECTED', // <-- REQUIRED 6 | payload: song, // <-- OPTIONAL 7 | }; 8 | }; 9 | -------------------------------------------------------------------------------- /songs/src/components/App.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import SongList from './SongList'; 3 | import SongDetail from './SongDetail'; 4 | 5 | export default () => { 6 | return ( 7 |
8 |
9 |
10 | 11 |
12 |
13 | 14 |
15 |
16 |
17 | ); 18 | }; 19 | -------------------------------------------------------------------------------- /songs/src/components/SongDetail.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { connect } from 'react-redux' 3 | 4 | const SongDetail = ({ song }) => { 5 | if (!song) return
Please select a song!
; 6 | return ( 7 |
8 |

Details for:

9 |

Title: { song.title }

10 |

Duration: { song.duration }

11 |
12 | ); 13 | }; 14 | 15 | const mapStateToProps = state => { 16 | return { song: state.selectedSong }; 17 | }; 18 | 19 | export default connect(mapStateToProps)(SongDetail); 20 | -------------------------------------------------------------------------------- /songs/src/components/SongList.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { connect } from 'react-redux'; 3 | import { selectedSong } from '../actions'; 4 | 5 | class SongList extends React.Component { 6 | 7 | renderList() { 8 | return this.props.songs.map(song => { 9 | return ( 10 |
11 |
12 | 18 |
19 |
20 | {song.title} 21 |
22 |
23 | ); 24 | }); 25 | } 26 | 27 | render() { 28 | return ( 29 |
30 | {this.renderList()} 31 |
32 | ) 33 | } 34 | } 35 | 36 | const mapStateToProps = state => { 37 | return { songs: state.songs }; 38 | }; 39 | 40 | export default connect(mapStateToProps, { selectedSong })(SongList); 41 | -------------------------------------------------------------------------------- /songs/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import { Provider } from 'react-redux'; 4 | import { createStore } from "redux"; 5 | 6 | import App from './components/App'; 7 | import reducers from './reducers' 8 | 9 | ReactDOM.render( 10 | 11 | 12 | , 13 | document.querySelector('#root') 14 | ); 15 | -------------------------------------------------------------------------------- /songs/src/reducers/index.js: -------------------------------------------------------------------------------- 1 | import { combineReducers } from 'redux'; 2 | 3 | const songsReducer = () => { 4 | return [ 5 | { title: 'Zim Zim', duration: '4:05' }, 6 | { title: 'Behet Ghol Midam', duration: '2:30' }, 7 | { title: 'Bigharar', duration: '3:50' }, 8 | { title: 'Gole Yakh', duration: '4:00' }, 9 | ]; 10 | }; 11 | 12 | const selectedSongReducer = (selectedSong = null, action) => { 13 | if (action.type === 'SONG_SELECTED') { 14 | return action.payload; 15 | } 16 | return selectedSong; 17 | }; 18 | 19 | export default combineReducers({ 20 | songs: songsReducer, 21 | selectedSong: selectedSongReducer 22 | }); 23 | -------------------------------------------------------------------------------- /streams/api/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /streams/api/db.json: -------------------------------------------------------------------------------- 1 | { 2 | "streams": [ 3 | { 4 | "title": "first title", 5 | "description": "first description", 6 | "id": 1 7 | }, 8 | { 9 | "title": "second title", 10 | "description": "second description", 11 | "id": 2 12 | }, 13 | { 14 | "title": "third title", 15 | "description": "third description", 16 | "id": 3 17 | }, 18 | { 19 | "title": "Update title", 20 | "description": "Update description", 21 | "id": 8 22 | } 23 | ] 24 | } -------------------------------------------------------------------------------- /streams/api/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "api", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "license": "MIT", 6 | "scripts": { 7 | "start": "json-server -p 3001 -w db.json" 8 | }, 9 | "dependencies": { 10 | "json-server": "^0.15.0" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /streams/api/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@sindresorhus/is@^0.14.0": 6 | version "0.14.0" 7 | resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" 8 | integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ== 9 | 10 | "@szmarczak/http-timer@^1.1.2": 11 | version "1.1.2" 12 | resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421" 13 | integrity sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA== 14 | dependencies: 15 | defer-to-connect "^1.0.1" 16 | 17 | accepts@~1.3.5, accepts@~1.3.7: 18 | version "1.3.7" 19 | resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd" 20 | integrity sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA== 21 | dependencies: 22 | mime-types "~2.1.24" 23 | negotiator "0.6.2" 24 | 25 | ajv@^6.5.5: 26 | version "6.10.2" 27 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.10.2.tgz#d3cea04d6b017b2894ad69040fec8b623eb4bd52" 28 | integrity sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw== 29 | dependencies: 30 | fast-deep-equal "^2.0.1" 31 | fast-json-stable-stringify "^2.0.0" 32 | json-schema-traverse "^0.4.1" 33 | uri-js "^4.2.2" 34 | 35 | ansi-align@^3.0.0: 36 | version "3.0.0" 37 | resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.0.tgz#b536b371cf687caaef236c18d3e21fe3797467cb" 38 | integrity sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw== 39 | dependencies: 40 | string-width "^3.0.0" 41 | 42 | ansi-regex@^3.0.0: 43 | version "3.0.0" 44 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" 45 | integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= 46 | 47 | ansi-regex@^4.1.0: 48 | version "4.1.0" 49 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" 50 | integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== 51 | 52 | ansi-styles@^3.2.0, ansi-styles@^3.2.1: 53 | version "3.2.1" 54 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" 55 | integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== 56 | dependencies: 57 | color-convert "^1.9.0" 58 | 59 | array-flatten@1.1.1: 60 | version "1.1.1" 61 | resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" 62 | integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= 63 | 64 | asn1@~0.2.3: 65 | version "0.2.4" 66 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" 67 | integrity sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg== 68 | dependencies: 69 | safer-buffer "~2.1.0" 70 | 71 | assert-plus@1.0.0, assert-plus@^1.0.0: 72 | version "1.0.0" 73 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 74 | integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= 75 | 76 | asynckit@^0.4.0: 77 | version "0.4.0" 78 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 79 | integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= 80 | 81 | aws-sign2@~0.7.0: 82 | version "0.7.0" 83 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" 84 | integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg= 85 | 86 | aws4@^1.8.0: 87 | version "1.8.0" 88 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" 89 | integrity sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ== 90 | 91 | basic-auth@~2.0.0: 92 | version "2.0.1" 93 | resolved "https://registry.yarnpkg.com/basic-auth/-/basic-auth-2.0.1.tgz#b998279bf47ce38344b4f3cf916d4679bbf51e3a" 94 | integrity sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg== 95 | dependencies: 96 | safe-buffer "5.1.2" 97 | 98 | bcrypt-pbkdf@^1.0.0: 99 | version "1.0.2" 100 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" 101 | integrity sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4= 102 | dependencies: 103 | tweetnacl "^0.14.3" 104 | 105 | body-parser@1.19.0, body-parser@^1.19.0: 106 | version "1.19.0" 107 | resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.0.tgz#96b2709e57c9c4e09a6fd66a8fd979844f69f08a" 108 | integrity sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw== 109 | dependencies: 110 | bytes "3.1.0" 111 | content-type "~1.0.4" 112 | debug "2.6.9" 113 | depd "~1.1.2" 114 | http-errors "1.7.2" 115 | iconv-lite "0.4.24" 116 | on-finished "~2.3.0" 117 | qs "6.7.0" 118 | raw-body "2.4.0" 119 | type-is "~1.6.17" 120 | 121 | boxen@^3.0.0: 122 | version "3.2.0" 123 | resolved "https://registry.yarnpkg.com/boxen/-/boxen-3.2.0.tgz#fbdff0de93636ab4450886b6ff45b92d098f45eb" 124 | integrity sha512-cU4J/+NodM3IHdSL2yN8bqYqnmlBTidDR4RC7nJs61ZmtGz8VZzM3HLQX0zY5mrSmPtR3xWwsq2jOUQqFZN8+A== 125 | dependencies: 126 | ansi-align "^3.0.0" 127 | camelcase "^5.3.1" 128 | chalk "^2.4.2" 129 | cli-boxes "^2.2.0" 130 | string-width "^3.0.0" 131 | term-size "^1.2.0" 132 | type-fest "^0.3.0" 133 | widest-line "^2.0.0" 134 | 135 | bytes@3.0.0: 136 | version "3.0.0" 137 | resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" 138 | integrity sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg= 139 | 140 | bytes@3.1.0: 141 | version "3.1.0" 142 | resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" 143 | integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== 144 | 145 | cacheable-request@^6.0.0: 146 | version "6.1.0" 147 | resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-6.1.0.tgz#20ffb8bd162ba4be11e9567d823db651052ca912" 148 | integrity sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg== 149 | dependencies: 150 | clone-response "^1.0.2" 151 | get-stream "^5.1.0" 152 | http-cache-semantics "^4.0.0" 153 | keyv "^3.0.0" 154 | lowercase-keys "^2.0.0" 155 | normalize-url "^4.1.0" 156 | responselike "^1.0.2" 157 | 158 | camelcase@^5.0.0, camelcase@^5.3.1: 159 | version "5.3.1" 160 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" 161 | integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== 162 | 163 | caseless@~0.12.0: 164 | version "0.12.0" 165 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" 166 | integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= 167 | 168 | chalk@^2.0.1, chalk@^2.4.2: 169 | version "2.4.2" 170 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" 171 | integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== 172 | dependencies: 173 | ansi-styles "^3.2.1" 174 | escape-string-regexp "^1.0.5" 175 | supports-color "^5.3.0" 176 | 177 | ci-info@^2.0.0: 178 | version "2.0.0" 179 | resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" 180 | integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== 181 | 182 | cli-boxes@^2.2.0: 183 | version "2.2.0" 184 | resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-2.2.0.tgz#538ecae8f9c6ca508e3c3c95b453fe93cb4c168d" 185 | integrity sha512-gpaBrMAizVEANOpfZp/EEUixTXDyGt7DFzdK5hU+UbWt/J0lB0w20ncZj59Z9a93xHb9u12zF5BS6i9RKbtg4w== 186 | 187 | cliui@^5.0.0: 188 | version "5.0.0" 189 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" 190 | integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== 191 | dependencies: 192 | string-width "^3.1.0" 193 | strip-ansi "^5.2.0" 194 | wrap-ansi "^5.1.0" 195 | 196 | clone-response@^1.0.2: 197 | version "1.0.2" 198 | resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b" 199 | integrity sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws= 200 | dependencies: 201 | mimic-response "^1.0.0" 202 | 203 | color-convert@^1.9.0: 204 | version "1.9.3" 205 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" 206 | integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== 207 | dependencies: 208 | color-name "1.1.3" 209 | 210 | color-name@1.1.3: 211 | version "1.1.3" 212 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" 213 | integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= 214 | 215 | combined-stream@^1.0.6, combined-stream@~1.0.6: 216 | version "1.0.8" 217 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" 218 | integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== 219 | dependencies: 220 | delayed-stream "~1.0.0" 221 | 222 | compressible@~2.0.16: 223 | version "2.0.17" 224 | resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.17.tgz#6e8c108a16ad58384a977f3a482ca20bff2f38c1" 225 | integrity sha512-BGHeLCK1GV7j1bSmQQAi26X+GgWcTjLr/0tzSvMCl3LH1w1IJ4PFSPoV5316b30cneTziC+B1a+3OjoSUcQYmw== 226 | dependencies: 227 | mime-db ">= 1.40.0 < 2" 228 | 229 | compression@^1.7.4: 230 | version "1.7.4" 231 | resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f" 232 | integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ== 233 | dependencies: 234 | accepts "~1.3.5" 235 | bytes "3.0.0" 236 | compressible "~2.0.16" 237 | debug "2.6.9" 238 | on-headers "~1.0.2" 239 | safe-buffer "5.1.2" 240 | vary "~1.1.2" 241 | 242 | configstore@^4.0.0: 243 | version "4.0.0" 244 | resolved "https://registry.yarnpkg.com/configstore/-/configstore-4.0.0.tgz#5933311e95d3687efb592c528b922d9262d227e7" 245 | integrity sha512-CmquAXFBocrzaSM8mtGPMM/HiWmyIpr4CcJl/rgY2uCObZ/S7cKU0silxslqJejl+t/T9HS8E0PUNQD81JGUEQ== 246 | dependencies: 247 | dot-prop "^4.1.0" 248 | graceful-fs "^4.1.2" 249 | make-dir "^1.0.0" 250 | unique-string "^1.0.0" 251 | write-file-atomic "^2.0.0" 252 | xdg-basedir "^3.0.0" 253 | 254 | connect-pause@^0.1.1: 255 | version "0.1.1" 256 | resolved "https://registry.yarnpkg.com/connect-pause/-/connect-pause-0.1.1.tgz#b269b2bb82ddb1ac3db5099c0fb582aba99fb37a" 257 | integrity sha1-smmyu4Ldsaw9tQmcD7WCq6mfs3o= 258 | 259 | content-disposition@0.5.3: 260 | version "0.5.3" 261 | resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd" 262 | integrity sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g== 263 | dependencies: 264 | safe-buffer "5.1.2" 265 | 266 | content-type@~1.0.4: 267 | version "1.0.4" 268 | resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" 269 | integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== 270 | 271 | cookie-signature@1.0.6: 272 | version "1.0.6" 273 | resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" 274 | integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw= 275 | 276 | cookie@0.4.0: 277 | version "0.4.0" 278 | resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.0.tgz#beb437e7022b3b6d49019d088665303ebe9c14ba" 279 | integrity sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg== 280 | 281 | core-util-is@1.0.2: 282 | version "1.0.2" 283 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 284 | integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= 285 | 286 | cors@^2.8.5: 287 | version "2.8.5" 288 | resolved "https://registry.yarnpkg.com/cors/-/cors-2.8.5.tgz#eac11da51592dd86b9f06f6e7ac293b3df875d29" 289 | integrity sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g== 290 | dependencies: 291 | object-assign "^4" 292 | vary "^1" 293 | 294 | cross-spawn@^5.0.1: 295 | version "5.1.0" 296 | resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" 297 | integrity sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk= 298 | dependencies: 299 | lru-cache "^4.0.1" 300 | shebang-command "^1.2.0" 301 | which "^1.2.9" 302 | 303 | crypto-random-string@^1.0.0: 304 | version "1.0.0" 305 | resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" 306 | integrity sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4= 307 | 308 | dashdash@^1.12.0: 309 | version "1.14.1" 310 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 311 | integrity sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA= 312 | dependencies: 313 | assert-plus "^1.0.0" 314 | 315 | debug@*: 316 | version "4.1.1" 317 | resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" 318 | integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== 319 | dependencies: 320 | ms "^2.1.1" 321 | 322 | debug@2.6.9: 323 | version "2.6.9" 324 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" 325 | integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== 326 | dependencies: 327 | ms "2.0.0" 328 | 329 | debug@3.1.0: 330 | version "3.1.0" 331 | resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" 332 | integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g== 333 | dependencies: 334 | ms "2.0.0" 335 | 336 | decamelize@^1.2.0: 337 | version "1.2.0" 338 | resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" 339 | integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= 340 | 341 | decompress-response@^3.3.0: 342 | version "3.3.0" 343 | resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3" 344 | integrity sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M= 345 | dependencies: 346 | mimic-response "^1.0.0" 347 | 348 | deep-extend@^0.6.0: 349 | version "0.6.0" 350 | resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" 351 | integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== 352 | 353 | defer-to-connect@^1.0.1: 354 | version "1.0.2" 355 | resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.0.2.tgz#4bae758a314b034ae33902b5aac25a8dd6a8633e" 356 | integrity sha512-k09hcQcTDY+cwgiwa6PYKLm3jlagNzQ+RSvhjzESOGOx+MNOuXkxTfEvPrO1IOQ81tArCFYQgi631clB70RpQw== 357 | 358 | delayed-stream@~1.0.0: 359 | version "1.0.0" 360 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 361 | integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= 362 | 363 | depd@~1.1.2: 364 | version "1.1.2" 365 | resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" 366 | integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= 367 | 368 | destroy@~1.0.4: 369 | version "1.0.4" 370 | resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" 371 | integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA= 372 | 373 | dot-prop@^4.1.0: 374 | version "4.2.0" 375 | resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.0.tgz#1f19e0c2e1aa0e32797c49799f2837ac6af69c57" 376 | integrity sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ== 377 | dependencies: 378 | is-obj "^1.0.0" 379 | 380 | duplexer3@^0.1.4: 381 | version "0.1.4" 382 | resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" 383 | integrity sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI= 384 | 385 | ecc-jsbn@~0.1.1: 386 | version "0.1.2" 387 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" 388 | integrity sha1-OoOpBOVDUyh4dMVkt1SThoSamMk= 389 | dependencies: 390 | jsbn "~0.1.0" 391 | safer-buffer "^2.1.0" 392 | 393 | ee-first@1.1.1: 394 | version "1.1.1" 395 | resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" 396 | integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= 397 | 398 | emoji-regex@^7.0.1: 399 | version "7.0.3" 400 | resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" 401 | integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== 402 | 403 | encodeurl@~1.0.2: 404 | version "1.0.2" 405 | resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" 406 | integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= 407 | 408 | end-of-stream@^1.1.0: 409 | version "1.4.1" 410 | resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43" 411 | integrity sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q== 412 | dependencies: 413 | once "^1.4.0" 414 | 415 | errorhandler@^1.5.1: 416 | version "1.5.1" 417 | resolved "https://registry.yarnpkg.com/errorhandler/-/errorhandler-1.5.1.tgz#b9ba5d17cf90744cd1e851357a6e75bf806a9a91" 418 | integrity sha512-rcOwbfvP1WTViVoUjcfZicVzjhjTuhSMntHh6mW3IrEiyE6mJyXvsToJUJGlGlw/2xU9P5whlWNGlIDVeCiT4A== 419 | dependencies: 420 | accepts "~1.3.7" 421 | escape-html "~1.0.3" 422 | 423 | escape-html@~1.0.3: 424 | version "1.0.3" 425 | resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" 426 | integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= 427 | 428 | escape-string-regexp@^1.0.5: 429 | version "1.0.5" 430 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 431 | integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= 432 | 433 | etag@~1.8.1: 434 | version "1.8.1" 435 | resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" 436 | integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= 437 | 438 | execa@^0.7.0: 439 | version "0.7.0" 440 | resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" 441 | integrity sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c= 442 | dependencies: 443 | cross-spawn "^5.0.1" 444 | get-stream "^3.0.0" 445 | is-stream "^1.1.0" 446 | npm-run-path "^2.0.0" 447 | p-finally "^1.0.0" 448 | signal-exit "^3.0.0" 449 | strip-eof "^1.0.0" 450 | 451 | express-urlrewrite@^1.2.0: 452 | version "1.2.0" 453 | resolved "https://registry.yarnpkg.com/express-urlrewrite/-/express-urlrewrite-1.2.0.tgz#8e667b7761ff1c7ffdb0efa05d64035387c823eb" 454 | integrity sha1-jmZ7d2H/HH/9sO+gXWQDU4fII+s= 455 | dependencies: 456 | debug "*" 457 | path-to-regexp "^1.0.3" 458 | 459 | express@^4.17.0: 460 | version "4.17.1" 461 | resolved "https://registry.yarnpkg.com/express/-/express-4.17.1.tgz#4491fc38605cf51f8629d39c2b5d026f98a4c134" 462 | integrity sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g== 463 | dependencies: 464 | accepts "~1.3.7" 465 | array-flatten "1.1.1" 466 | body-parser "1.19.0" 467 | content-disposition "0.5.3" 468 | content-type "~1.0.4" 469 | cookie "0.4.0" 470 | cookie-signature "1.0.6" 471 | debug "2.6.9" 472 | depd "~1.1.2" 473 | encodeurl "~1.0.2" 474 | escape-html "~1.0.3" 475 | etag "~1.8.1" 476 | finalhandler "~1.1.2" 477 | fresh "0.5.2" 478 | merge-descriptors "1.0.1" 479 | methods "~1.1.2" 480 | on-finished "~2.3.0" 481 | parseurl "~1.3.3" 482 | path-to-regexp "0.1.7" 483 | proxy-addr "~2.0.5" 484 | qs "6.7.0" 485 | range-parser "~1.2.1" 486 | safe-buffer "5.1.2" 487 | send "0.17.1" 488 | serve-static "1.14.1" 489 | setprototypeof "1.1.1" 490 | statuses "~1.5.0" 491 | type-is "~1.6.18" 492 | utils-merge "1.0.1" 493 | vary "~1.1.2" 494 | 495 | extend@~3.0.2: 496 | version "3.0.2" 497 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" 498 | integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== 499 | 500 | extsprintf@1.3.0: 501 | version "1.3.0" 502 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" 503 | integrity sha1-lpGEQOMEGnpBT4xS48V06zw+HgU= 504 | 505 | extsprintf@^1.2.0: 506 | version "1.4.0" 507 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" 508 | integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= 509 | 510 | fast-deep-equal@^2.0.1: 511 | version "2.0.1" 512 | resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" 513 | integrity sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk= 514 | 515 | fast-json-stable-stringify@^2.0.0: 516 | version "2.0.0" 517 | resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" 518 | integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I= 519 | 520 | finalhandler@~1.1.2: 521 | version "1.1.2" 522 | resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" 523 | integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== 524 | dependencies: 525 | debug "2.6.9" 526 | encodeurl "~1.0.2" 527 | escape-html "~1.0.3" 528 | on-finished "~2.3.0" 529 | parseurl "~1.3.3" 530 | statuses "~1.5.0" 531 | unpipe "~1.0.0" 532 | 533 | find-up@^3.0.0: 534 | version "3.0.0" 535 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" 536 | integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== 537 | dependencies: 538 | locate-path "^3.0.0" 539 | 540 | forever-agent@~0.6.1: 541 | version "0.6.1" 542 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 543 | integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= 544 | 545 | form-data@~2.3.2: 546 | version "2.3.3" 547 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" 548 | integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== 549 | dependencies: 550 | asynckit "^0.4.0" 551 | combined-stream "^1.0.6" 552 | mime-types "^2.1.12" 553 | 554 | forwarded@~0.1.2: 555 | version "0.1.2" 556 | resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" 557 | integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ= 558 | 559 | fresh@0.5.2: 560 | version "0.5.2" 561 | resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" 562 | integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac= 563 | 564 | get-caller-file@^2.0.1: 565 | version "2.0.5" 566 | resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" 567 | integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== 568 | 569 | get-stream@^3.0.0: 570 | version "3.0.0" 571 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" 572 | integrity sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ= 573 | 574 | get-stream@^4.1.0: 575 | version "4.1.0" 576 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" 577 | integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== 578 | dependencies: 579 | pump "^3.0.0" 580 | 581 | get-stream@^5.1.0: 582 | version "5.1.0" 583 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.1.0.tgz#01203cdc92597f9b909067c3e656cc1f4d3c4dc9" 584 | integrity sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw== 585 | dependencies: 586 | pump "^3.0.0" 587 | 588 | getpass@^0.1.1: 589 | version "0.1.7" 590 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" 591 | integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo= 592 | dependencies: 593 | assert-plus "^1.0.0" 594 | 595 | global-dirs@^0.1.0: 596 | version "0.1.1" 597 | resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445" 598 | integrity sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU= 599 | dependencies: 600 | ini "^1.3.4" 601 | 602 | got@^9.6.0: 603 | version "9.6.0" 604 | resolved "https://registry.yarnpkg.com/got/-/got-9.6.0.tgz#edf45e7d67f99545705de1f7bbeeeb121765ed85" 605 | integrity sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q== 606 | dependencies: 607 | "@sindresorhus/is" "^0.14.0" 608 | "@szmarczak/http-timer" "^1.1.2" 609 | cacheable-request "^6.0.0" 610 | decompress-response "^3.3.0" 611 | duplexer3 "^0.1.4" 612 | get-stream "^4.1.0" 613 | lowercase-keys "^1.0.1" 614 | mimic-response "^1.0.1" 615 | p-cancelable "^1.0.0" 616 | to-readable-stream "^1.0.0" 617 | url-parse-lax "^3.0.0" 618 | 619 | graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.3: 620 | version "4.2.0" 621 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.0.tgz#8d8fdc73977cb04104721cb53666c1ca64cd328b" 622 | integrity sha512-jpSvDPV4Cq/bgtpndIWbI5hmYxhQGHPC4d4cqBPb4DLniCfhJokdXhwhaDuLBGLQdvvRum/UiX6ECVIPvDXqdg== 623 | 624 | har-schema@^2.0.0: 625 | version "2.0.0" 626 | resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" 627 | integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI= 628 | 629 | har-validator@~5.1.0: 630 | version "5.1.3" 631 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.3.tgz#1ef89ebd3e4996557675eed9893110dc350fa080" 632 | integrity sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g== 633 | dependencies: 634 | ajv "^6.5.5" 635 | har-schema "^2.0.0" 636 | 637 | has-flag@^3.0.0: 638 | version "3.0.0" 639 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" 640 | integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= 641 | 642 | has-yarn@^2.1.0: 643 | version "2.1.0" 644 | resolved "https://registry.yarnpkg.com/has-yarn/-/has-yarn-2.1.0.tgz#137e11354a7b5bf11aa5cb649cf0c6f3ff2b2e77" 645 | integrity sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw== 646 | 647 | http-cache-semantics@^4.0.0: 648 | version "4.0.3" 649 | resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.0.3.tgz#495704773277eeef6e43f9ab2c2c7d259dda25c5" 650 | integrity sha512-TcIMG3qeVLgDr1TEd2XvHaTnMPwYQUQMIBLy+5pLSDKYFc7UIqj39w8EGzZkaxoLv/l2K8HaI0t5AVA+YYgUew== 651 | 652 | http-errors@1.7.2: 653 | version "1.7.2" 654 | resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f" 655 | integrity sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg== 656 | dependencies: 657 | depd "~1.1.2" 658 | inherits "2.0.3" 659 | setprototypeof "1.1.1" 660 | statuses ">= 1.5.0 < 2" 661 | toidentifier "1.0.0" 662 | 663 | http-errors@~1.7.2: 664 | version "1.7.3" 665 | resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.3.tgz#6c619e4f9c60308c38519498c14fbb10aacebb06" 666 | integrity sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw== 667 | dependencies: 668 | depd "~1.1.2" 669 | inherits "2.0.4" 670 | setprototypeof "1.1.1" 671 | statuses ">= 1.5.0 < 2" 672 | toidentifier "1.0.0" 673 | 674 | http-signature@~1.2.0: 675 | version "1.2.0" 676 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" 677 | integrity sha1-muzZJRFHcvPZW2WmCruPfBj7rOE= 678 | dependencies: 679 | assert-plus "^1.0.0" 680 | jsprim "^1.2.2" 681 | sshpk "^1.7.0" 682 | 683 | iconv-lite@0.4.24: 684 | version "0.4.24" 685 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" 686 | integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== 687 | dependencies: 688 | safer-buffer ">= 2.1.2 < 3" 689 | 690 | import-lazy@^2.1.0: 691 | version "2.1.0" 692 | resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" 693 | integrity sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM= 694 | 695 | imurmurhash@^0.1.4: 696 | version "0.1.4" 697 | resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" 698 | integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= 699 | 700 | inherits@2.0.3: 701 | version "2.0.3" 702 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 703 | integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= 704 | 705 | inherits@2.0.4: 706 | version "2.0.4" 707 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" 708 | integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== 709 | 710 | ini@^1.3.4, ini@~1.3.0: 711 | version "1.3.5" 712 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" 713 | integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== 714 | 715 | ipaddr.js@1.9.0: 716 | version "1.9.0" 717 | resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.0.tgz#37df74e430a0e47550fe54a2defe30d8acd95f65" 718 | integrity sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA== 719 | 720 | is-ci@^2.0.0: 721 | version "2.0.0" 722 | resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" 723 | integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== 724 | dependencies: 725 | ci-info "^2.0.0" 726 | 727 | is-fullwidth-code-point@^2.0.0: 728 | version "2.0.0" 729 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" 730 | integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= 731 | 732 | is-installed-globally@^0.1.0: 733 | version "0.1.0" 734 | resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.1.0.tgz#0dfd98f5a9111716dd535dda6492f67bf3d25a80" 735 | integrity sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA= 736 | dependencies: 737 | global-dirs "^0.1.0" 738 | is-path-inside "^1.0.0" 739 | 740 | is-npm@^3.0.0: 741 | version "3.0.0" 742 | resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-3.0.0.tgz#ec9147bfb629c43f494cf67936a961edec7e8053" 743 | integrity sha512-wsigDr1Kkschp2opC4G3yA6r9EgVA6NjRpWzIi9axXqeIaAATPRJc4uLujXe3Nd9uO8KoDyA4MD6aZSeXTADhA== 744 | 745 | is-obj@^1.0.0: 746 | version "1.0.1" 747 | resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" 748 | integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8= 749 | 750 | is-path-inside@^1.0.0: 751 | version "1.0.1" 752 | resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" 753 | integrity sha1-jvW33lBDej/cprToZe96pVy0gDY= 754 | dependencies: 755 | path-is-inside "^1.0.1" 756 | 757 | is-promise@^2.1.0: 758 | version "2.1.0" 759 | resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" 760 | integrity sha1-eaKp7OfwlugPNtKy87wWwf9L8/o= 761 | 762 | is-stream@^1.1.0: 763 | version "1.1.0" 764 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 765 | integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= 766 | 767 | is-typedarray@~1.0.0: 768 | version "1.0.0" 769 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 770 | integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= 771 | 772 | is-yarn-global@^0.3.0: 773 | version "0.3.0" 774 | resolved "https://registry.yarnpkg.com/is-yarn-global/-/is-yarn-global-0.3.0.tgz#d502d3382590ea3004893746754c89139973e232" 775 | integrity sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw== 776 | 777 | isarray@0.0.1: 778 | version "0.0.1" 779 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" 780 | integrity sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8= 781 | 782 | isexe@^2.0.0: 783 | version "2.0.0" 784 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 785 | integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= 786 | 787 | isstream@~0.1.2: 788 | version "0.1.2" 789 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 790 | integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= 791 | 792 | jju@^1.1.0: 793 | version "1.4.0" 794 | resolved "https://registry.yarnpkg.com/jju/-/jju-1.4.0.tgz#a3abe2718af241a2b2904f84a625970f389ae32a" 795 | integrity sha1-o6vicYryQaKykE+EpiWXDzia4yo= 796 | 797 | jsbn@~0.1.0: 798 | version "0.1.1" 799 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" 800 | integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= 801 | 802 | json-buffer@3.0.0: 803 | version "3.0.0" 804 | resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898" 805 | integrity sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg= 806 | 807 | json-parse-helpfulerror@^1.0.3: 808 | version "1.0.3" 809 | resolved "https://registry.yarnpkg.com/json-parse-helpfulerror/-/json-parse-helpfulerror-1.0.3.tgz#13f14ce02eed4e981297b64eb9e3b932e2dd13dc" 810 | integrity sha1-E/FM4C7tTpgSl7ZOueO5MuLdE9w= 811 | dependencies: 812 | jju "^1.1.0" 813 | 814 | json-schema-traverse@^0.4.1: 815 | version "0.4.1" 816 | resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" 817 | integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== 818 | 819 | json-schema@0.2.3: 820 | version "0.2.3" 821 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" 822 | integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= 823 | 824 | json-server@^0.15.0: 825 | version "0.15.0" 826 | resolved "https://registry.yarnpkg.com/json-server/-/json-server-0.15.0.tgz#b8b0840077e46f15608e9eff2c34fc4d63d19139" 827 | integrity sha512-mo9CuRVoEzJ82g/IaxU0ljSKgPpRoj6rYiJoDIUK7VEqplOca2Saq6eTwmRULRgPiRe4hHC0aYB9tNKJUAQGgQ== 828 | dependencies: 829 | body-parser "^1.19.0" 830 | chalk "^2.4.2" 831 | compression "^1.7.4" 832 | connect-pause "^0.1.1" 833 | cors "^2.8.5" 834 | errorhandler "^1.5.1" 835 | express "^4.17.0" 836 | express-urlrewrite "^1.2.0" 837 | json-parse-helpfulerror "^1.0.3" 838 | lodash "^4.17.11" 839 | lodash-id "^0.14.0" 840 | lowdb "^1.0.0" 841 | method-override "^3.0.0" 842 | morgan "^1.9.1" 843 | nanoid "^2.0.2" 844 | object-assign "^4.1.1" 845 | please-upgrade-node "^3.1.1" 846 | pluralize "^7.0.0" 847 | request "^2.88.0" 848 | server-destroy "^1.0.1" 849 | update-notifier "^3.0.0" 850 | yargs "^13.2.4" 851 | 852 | json-stringify-safe@~5.0.1: 853 | version "5.0.1" 854 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 855 | integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= 856 | 857 | jsprim@^1.2.2: 858 | version "1.4.1" 859 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" 860 | integrity sha1-MT5mvB5cwG5Di8G3SZwuXFastqI= 861 | dependencies: 862 | assert-plus "1.0.0" 863 | extsprintf "1.3.0" 864 | json-schema "0.2.3" 865 | verror "1.10.0" 866 | 867 | keyv@^3.0.0: 868 | version "3.1.0" 869 | resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.1.0.tgz#ecc228486f69991e49e9476485a5be1e8fc5c4d9" 870 | integrity sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA== 871 | dependencies: 872 | json-buffer "3.0.0" 873 | 874 | latest-version@^5.0.0: 875 | version "5.1.0" 876 | resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face" 877 | integrity sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA== 878 | dependencies: 879 | package-json "^6.3.0" 880 | 881 | locate-path@^3.0.0: 882 | version "3.0.0" 883 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" 884 | integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== 885 | dependencies: 886 | p-locate "^3.0.0" 887 | path-exists "^3.0.0" 888 | 889 | lodash-id@^0.14.0: 890 | version "0.14.0" 891 | resolved "https://registry.yarnpkg.com/lodash-id/-/lodash-id-0.14.0.tgz#baf48934e543a1b5d6346f8c84698b1a8c803896" 892 | integrity sha1-uvSJNOVDobXWNG+MhGmLGoyAOJY= 893 | 894 | lodash@4, lodash@^4.17.11: 895 | version "4.17.19" 896 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b" 897 | integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ== 898 | 899 | lowdb@^1.0.0: 900 | version "1.0.0" 901 | resolved "https://registry.yarnpkg.com/lowdb/-/lowdb-1.0.0.tgz#5243be6b22786ccce30e50c9a33eac36b20c8064" 902 | integrity sha512-2+x8esE/Wb9SQ1F9IHaYWfsC9FIecLOPrK4g17FGEayjUWH172H6nwicRovGvSE2CPZouc2MCIqCI7h9d+GftQ== 903 | dependencies: 904 | graceful-fs "^4.1.3" 905 | is-promise "^2.1.0" 906 | lodash "4" 907 | pify "^3.0.0" 908 | steno "^0.4.1" 909 | 910 | lowercase-keys@^1.0.0, lowercase-keys@^1.0.1: 911 | version "1.0.1" 912 | resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" 913 | integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA== 914 | 915 | lowercase-keys@^2.0.0: 916 | version "2.0.0" 917 | resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" 918 | integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== 919 | 920 | lru-cache@^4.0.1: 921 | version "4.1.5" 922 | resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" 923 | integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== 924 | dependencies: 925 | pseudomap "^1.0.2" 926 | yallist "^2.1.2" 927 | 928 | make-dir@^1.0.0: 929 | version "1.3.0" 930 | resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" 931 | integrity sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ== 932 | dependencies: 933 | pify "^3.0.0" 934 | 935 | media-typer@0.3.0: 936 | version "0.3.0" 937 | resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" 938 | integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g= 939 | 940 | merge-descriptors@1.0.1: 941 | version "1.0.1" 942 | resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" 943 | integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= 944 | 945 | method-override@^3.0.0: 946 | version "3.0.0" 947 | resolved "https://registry.yarnpkg.com/method-override/-/method-override-3.0.0.tgz#6ab0d5d574e3208f15b0c9cf45ab52000468d7a2" 948 | integrity sha512-IJ2NNN/mSl9w3kzWB92rcdHpz+HjkxhDJWNDBqSlas+zQdP8wBiJzITPg08M/k2uVvMow7Sk41atndNtt/PHSA== 949 | dependencies: 950 | debug "3.1.0" 951 | methods "~1.1.2" 952 | parseurl "~1.3.2" 953 | vary "~1.1.2" 954 | 955 | methods@~1.1.2: 956 | version "1.1.2" 957 | resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" 958 | integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4= 959 | 960 | mime-db@1.40.0, "mime-db@>= 1.40.0 < 2": 961 | version "1.40.0" 962 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.40.0.tgz#a65057e998db090f732a68f6c276d387d4126c32" 963 | integrity sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA== 964 | 965 | mime-types@^2.1.12, mime-types@~2.1.19, mime-types@~2.1.24: 966 | version "2.1.24" 967 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.24.tgz#b6f8d0b3e951efb77dedeca194cff6d16f676f81" 968 | integrity sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ== 969 | dependencies: 970 | mime-db "1.40.0" 971 | 972 | mime@1.6.0: 973 | version "1.6.0" 974 | resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" 975 | integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== 976 | 977 | mimic-response@^1.0.0, mimic-response@^1.0.1: 978 | version "1.0.1" 979 | resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" 980 | integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== 981 | 982 | minimist@^1.2.0: 983 | version "1.2.0" 984 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" 985 | integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ= 986 | 987 | morgan@^1.9.1: 988 | version "1.9.1" 989 | resolved "https://registry.yarnpkg.com/morgan/-/morgan-1.9.1.tgz#0a8d16734a1d9afbc824b99df87e738e58e2da59" 990 | integrity sha512-HQStPIV4y3afTiCYVxirakhlCfGkI161c76kKFca7Fk1JusM//Qeo1ej2XaMniiNeaZklMVrh3vTtIzpzwbpmA== 991 | dependencies: 992 | basic-auth "~2.0.0" 993 | debug "2.6.9" 994 | depd "~1.1.2" 995 | on-finished "~2.3.0" 996 | on-headers "~1.0.1" 997 | 998 | ms@2.0.0: 999 | version "2.0.0" 1000 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" 1001 | integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= 1002 | 1003 | ms@2.1.1: 1004 | version "2.1.1" 1005 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" 1006 | integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== 1007 | 1008 | ms@^2.1.1: 1009 | version "2.1.2" 1010 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" 1011 | integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== 1012 | 1013 | nanoid@^2.0.2: 1014 | version "2.0.3" 1015 | resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-2.0.3.tgz#dde999e173bc9d7bd2ee2746b89909ade98e075e" 1016 | integrity sha512-NbaoqdhIYmY6FXDRB4eYtDVC9Z9eCbn8TyaiC16LNKtpPv/aqa0tOPD8y6gNE4yUNnaZ7LLhYtXOev/6+cBtfw== 1017 | 1018 | negotiator@0.6.2: 1019 | version "0.6.2" 1020 | resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" 1021 | integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw== 1022 | 1023 | normalize-url@^4.1.0: 1024 | version "4.3.0" 1025 | resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.3.0.tgz#9c49e10fc1876aeb76dba88bf1b2b5d9fa57b2ee" 1026 | integrity sha512-0NLtR71o4k6GLP+mr6Ty34c5GA6CMoEsncKJxvQd8NzPxaHRJNnb5gZE8R1XF4CPIS7QPHLJ74IFszwtNVAHVQ== 1027 | 1028 | npm-run-path@^2.0.0: 1029 | version "2.0.2" 1030 | resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" 1031 | integrity sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8= 1032 | dependencies: 1033 | path-key "^2.0.0" 1034 | 1035 | oauth-sign@~0.9.0: 1036 | version "0.9.0" 1037 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" 1038 | integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== 1039 | 1040 | object-assign@^4, object-assign@^4.1.1: 1041 | version "4.1.1" 1042 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 1043 | integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= 1044 | 1045 | on-finished@~2.3.0: 1046 | version "2.3.0" 1047 | resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" 1048 | integrity sha1-IPEzZIGwg811M3mSoWlxqi2QaUc= 1049 | dependencies: 1050 | ee-first "1.1.1" 1051 | 1052 | on-headers@~1.0.1, on-headers@~1.0.2: 1053 | version "1.0.2" 1054 | resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f" 1055 | integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== 1056 | 1057 | once@^1.3.1, once@^1.4.0: 1058 | version "1.4.0" 1059 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 1060 | integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= 1061 | dependencies: 1062 | wrappy "1" 1063 | 1064 | p-cancelable@^1.0.0: 1065 | version "1.1.0" 1066 | resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-1.1.0.tgz#d078d15a3af409220c886f1d9a0ca2e441ab26cc" 1067 | integrity sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw== 1068 | 1069 | p-finally@^1.0.0: 1070 | version "1.0.0" 1071 | resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" 1072 | integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4= 1073 | 1074 | p-limit@^2.0.0: 1075 | version "2.2.0" 1076 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.0.tgz#417c9941e6027a9abcba5092dd2904e255b5fbc2" 1077 | integrity sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ== 1078 | dependencies: 1079 | p-try "^2.0.0" 1080 | 1081 | p-locate@^3.0.0: 1082 | version "3.0.0" 1083 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" 1084 | integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== 1085 | dependencies: 1086 | p-limit "^2.0.0" 1087 | 1088 | p-try@^2.0.0: 1089 | version "2.2.0" 1090 | resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" 1091 | integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== 1092 | 1093 | package-json@^6.3.0: 1094 | version "6.5.0" 1095 | resolved "https://registry.yarnpkg.com/package-json/-/package-json-6.5.0.tgz#6feedaca35e75725876d0b0e64974697fed145b0" 1096 | integrity sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ== 1097 | dependencies: 1098 | got "^9.6.0" 1099 | registry-auth-token "^4.0.0" 1100 | registry-url "^5.0.0" 1101 | semver "^6.2.0" 1102 | 1103 | parseurl@~1.3.2, parseurl@~1.3.3: 1104 | version "1.3.3" 1105 | resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" 1106 | integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== 1107 | 1108 | path-exists@^3.0.0: 1109 | version "3.0.0" 1110 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" 1111 | integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= 1112 | 1113 | path-is-inside@^1.0.1: 1114 | version "1.0.2" 1115 | resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" 1116 | integrity sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM= 1117 | 1118 | path-key@^2.0.0: 1119 | version "2.0.1" 1120 | resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" 1121 | integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= 1122 | 1123 | path-to-regexp@0.1.7: 1124 | version "0.1.7" 1125 | resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" 1126 | integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w= 1127 | 1128 | path-to-regexp@^1.0.3: 1129 | version "1.7.0" 1130 | resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.7.0.tgz#59fde0f435badacba103a84e9d3bc64e96b9937d" 1131 | integrity sha1-Wf3g9DW62suhA6hOnTvGTpa5k30= 1132 | dependencies: 1133 | isarray "0.0.1" 1134 | 1135 | performance-now@^2.1.0: 1136 | version "2.1.0" 1137 | resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" 1138 | integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= 1139 | 1140 | pify@^3.0.0: 1141 | version "3.0.0" 1142 | resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" 1143 | integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY= 1144 | 1145 | please-upgrade-node@^3.1.1: 1146 | version "3.1.1" 1147 | resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.1.1.tgz#ed320051dfcc5024fae696712c8288993595e8ac" 1148 | integrity sha512-KY1uHnQ2NlQHqIJQpnh/i54rKkuxCEBx+voJIS/Mvb+L2iYd2NMotwduhKTMjfC1uKoX3VXOxLjIYG66dfJTVQ== 1149 | dependencies: 1150 | semver-compare "^1.0.0" 1151 | 1152 | pluralize@^7.0.0: 1153 | version "7.0.0" 1154 | resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-7.0.0.tgz#298b89df8b93b0221dbf421ad2b1b1ea23fc6777" 1155 | integrity sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow== 1156 | 1157 | prepend-http@^2.0.0: 1158 | version "2.0.0" 1159 | resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" 1160 | integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc= 1161 | 1162 | proxy-addr@~2.0.5: 1163 | version "2.0.5" 1164 | resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.5.tgz#34cbd64a2d81f4b1fd21e76f9f06c8a45299ee34" 1165 | integrity sha512-t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ== 1166 | dependencies: 1167 | forwarded "~0.1.2" 1168 | ipaddr.js "1.9.0" 1169 | 1170 | pseudomap@^1.0.2: 1171 | version "1.0.2" 1172 | resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" 1173 | integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM= 1174 | 1175 | psl@^1.1.24: 1176 | version "1.2.0" 1177 | resolved "https://registry.yarnpkg.com/psl/-/psl-1.2.0.tgz#df12b5b1b3a30f51c329eacbdef98f3a6e136dc6" 1178 | integrity sha512-GEn74ZffufCmkDDLNcl3uuyF/aSD6exEyh1v/ZSdAomB82t6G9hzJVRx0jBmLDW+VfZqks3aScmMw9DszwUalA== 1179 | 1180 | pump@^3.0.0: 1181 | version "3.0.0" 1182 | resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" 1183 | integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== 1184 | dependencies: 1185 | end-of-stream "^1.1.0" 1186 | once "^1.3.1" 1187 | 1188 | punycode@^1.4.1: 1189 | version "1.4.1" 1190 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" 1191 | integrity sha1-wNWmOycYgArY4esPpSachN1BhF4= 1192 | 1193 | punycode@^2.1.0: 1194 | version "2.1.1" 1195 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" 1196 | integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== 1197 | 1198 | qs@6.7.0: 1199 | version "6.7.0" 1200 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc" 1201 | integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ== 1202 | 1203 | qs@~6.5.2: 1204 | version "6.5.2" 1205 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" 1206 | integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== 1207 | 1208 | range-parser@~1.2.1: 1209 | version "1.2.1" 1210 | resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" 1211 | integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== 1212 | 1213 | raw-body@2.4.0: 1214 | version "2.4.0" 1215 | resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.0.tgz#a1ce6fb9c9bc356ca52e89256ab59059e13d0332" 1216 | integrity sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q== 1217 | dependencies: 1218 | bytes "3.1.0" 1219 | http-errors "1.7.2" 1220 | iconv-lite "0.4.24" 1221 | unpipe "1.0.0" 1222 | 1223 | rc@^1.2.8: 1224 | version "1.2.8" 1225 | resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" 1226 | integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== 1227 | dependencies: 1228 | deep-extend "^0.6.0" 1229 | ini "~1.3.0" 1230 | minimist "^1.2.0" 1231 | strip-json-comments "~2.0.1" 1232 | 1233 | registry-auth-token@^4.0.0: 1234 | version "4.0.0" 1235 | resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-4.0.0.tgz#30e55961eec77379da551ea5c4cf43cbf03522be" 1236 | integrity sha512-lpQkHxd9UL6tb3k/aHAVfnVtn+Bcs9ob5InuFLLEDqSqeq+AljB8GZW9xY0x7F+xYwEcjKe07nyoxzEYz6yvkw== 1237 | dependencies: 1238 | rc "^1.2.8" 1239 | safe-buffer "^5.0.1" 1240 | 1241 | registry-url@^5.0.0: 1242 | version "5.1.0" 1243 | resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-5.1.0.tgz#e98334b50d5434b81136b44ec638d9c2009c5009" 1244 | integrity sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw== 1245 | dependencies: 1246 | rc "^1.2.8" 1247 | 1248 | request@^2.88.0: 1249 | version "2.88.0" 1250 | resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" 1251 | integrity sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg== 1252 | dependencies: 1253 | aws-sign2 "~0.7.0" 1254 | aws4 "^1.8.0" 1255 | caseless "~0.12.0" 1256 | combined-stream "~1.0.6" 1257 | extend "~3.0.2" 1258 | forever-agent "~0.6.1" 1259 | form-data "~2.3.2" 1260 | har-validator "~5.1.0" 1261 | http-signature "~1.2.0" 1262 | is-typedarray "~1.0.0" 1263 | isstream "~0.1.2" 1264 | json-stringify-safe "~5.0.1" 1265 | mime-types "~2.1.19" 1266 | oauth-sign "~0.9.0" 1267 | performance-now "^2.1.0" 1268 | qs "~6.5.2" 1269 | safe-buffer "^5.1.2" 1270 | tough-cookie "~2.4.3" 1271 | tunnel-agent "^0.6.0" 1272 | uuid "^3.3.2" 1273 | 1274 | require-directory@^2.1.1: 1275 | version "2.1.1" 1276 | resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" 1277 | integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= 1278 | 1279 | require-main-filename@^2.0.0: 1280 | version "2.0.0" 1281 | resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" 1282 | integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== 1283 | 1284 | responselike@^1.0.2: 1285 | version "1.0.2" 1286 | resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" 1287 | integrity sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec= 1288 | dependencies: 1289 | lowercase-keys "^1.0.0" 1290 | 1291 | safe-buffer@5.1.2: 1292 | version "5.1.2" 1293 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" 1294 | integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== 1295 | 1296 | safe-buffer@^5.0.1, safe-buffer@^5.1.2: 1297 | version "5.2.0" 1298 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519" 1299 | integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg== 1300 | 1301 | "safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: 1302 | version "2.1.2" 1303 | resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" 1304 | integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== 1305 | 1306 | semver-compare@^1.0.0: 1307 | version "1.0.0" 1308 | resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc" 1309 | integrity sha1-De4hahyUGrN+nvsXiPavxf9VN/w= 1310 | 1311 | semver-diff@^2.0.0: 1312 | version "2.1.0" 1313 | resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36" 1314 | integrity sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY= 1315 | dependencies: 1316 | semver "^5.0.3" 1317 | 1318 | semver@^5.0.3: 1319 | version "5.7.0" 1320 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.0.tgz#790a7cf6fea5459bac96110b29b60412dc8ff96b" 1321 | integrity sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA== 1322 | 1323 | semver@^6.2.0: 1324 | version "6.2.0" 1325 | resolved "https://registry.yarnpkg.com/semver/-/semver-6.2.0.tgz#4d813d9590aaf8a9192693d6c85b9344de5901db" 1326 | integrity sha512-jdFC1VdUGT/2Scgbimf7FSx9iJLXoqfglSF+gJeuNWVpiE37OIbc1jywR/GJyFdz3mnkz2/id0L0J/cr0izR5A== 1327 | 1328 | send@0.17.1: 1329 | version "0.17.1" 1330 | resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8" 1331 | integrity sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg== 1332 | dependencies: 1333 | debug "2.6.9" 1334 | depd "~1.1.2" 1335 | destroy "~1.0.4" 1336 | encodeurl "~1.0.2" 1337 | escape-html "~1.0.3" 1338 | etag "~1.8.1" 1339 | fresh "0.5.2" 1340 | http-errors "~1.7.2" 1341 | mime "1.6.0" 1342 | ms "2.1.1" 1343 | on-finished "~2.3.0" 1344 | range-parser "~1.2.1" 1345 | statuses "~1.5.0" 1346 | 1347 | serve-static@1.14.1: 1348 | version "1.14.1" 1349 | resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9" 1350 | integrity sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg== 1351 | dependencies: 1352 | encodeurl "~1.0.2" 1353 | escape-html "~1.0.3" 1354 | parseurl "~1.3.3" 1355 | send "0.17.1" 1356 | 1357 | server-destroy@^1.0.1: 1358 | version "1.0.1" 1359 | resolved "https://registry.yarnpkg.com/server-destroy/-/server-destroy-1.0.1.tgz#f13bf928e42b9c3e79383e61cc3998b5d14e6cdd" 1360 | integrity sha1-8Tv5KOQrnD55OD5hzDmYtdFObN0= 1361 | 1362 | set-blocking@^2.0.0: 1363 | version "2.0.0" 1364 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 1365 | integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= 1366 | 1367 | setprototypeof@1.1.1: 1368 | version "1.1.1" 1369 | resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683" 1370 | integrity sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw== 1371 | 1372 | shebang-command@^1.2.0: 1373 | version "1.2.0" 1374 | resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" 1375 | integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo= 1376 | dependencies: 1377 | shebang-regex "^1.0.0" 1378 | 1379 | shebang-regex@^1.0.0: 1380 | version "1.0.0" 1381 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" 1382 | integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= 1383 | 1384 | signal-exit@^3.0.0, signal-exit@^3.0.2: 1385 | version "3.0.2" 1386 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 1387 | integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= 1388 | 1389 | sshpk@^1.7.0: 1390 | version "1.16.1" 1391 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877" 1392 | integrity sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg== 1393 | dependencies: 1394 | asn1 "~0.2.3" 1395 | assert-plus "^1.0.0" 1396 | bcrypt-pbkdf "^1.0.0" 1397 | dashdash "^1.12.0" 1398 | ecc-jsbn "~0.1.1" 1399 | getpass "^0.1.1" 1400 | jsbn "~0.1.0" 1401 | safer-buffer "^2.0.2" 1402 | tweetnacl "~0.14.0" 1403 | 1404 | "statuses@>= 1.5.0 < 2", statuses@~1.5.0: 1405 | version "1.5.0" 1406 | resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" 1407 | integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= 1408 | 1409 | steno@^0.4.1: 1410 | version "0.4.4" 1411 | resolved "https://registry.yarnpkg.com/steno/-/steno-0.4.4.tgz#071105bdfc286e6615c0403c27e9d7b5dcb855cb" 1412 | integrity sha1-BxEFvfwobmYVwEA8J+nXtdy4Vcs= 1413 | dependencies: 1414 | graceful-fs "^4.1.3" 1415 | 1416 | string-width@^2.1.1: 1417 | version "2.1.1" 1418 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" 1419 | integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== 1420 | dependencies: 1421 | is-fullwidth-code-point "^2.0.0" 1422 | strip-ansi "^4.0.0" 1423 | 1424 | string-width@^3.0.0, string-width@^3.1.0: 1425 | version "3.1.0" 1426 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" 1427 | integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== 1428 | dependencies: 1429 | emoji-regex "^7.0.1" 1430 | is-fullwidth-code-point "^2.0.0" 1431 | strip-ansi "^5.1.0" 1432 | 1433 | strip-ansi@^4.0.0: 1434 | version "4.0.0" 1435 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" 1436 | integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= 1437 | dependencies: 1438 | ansi-regex "^3.0.0" 1439 | 1440 | strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: 1441 | version "5.2.0" 1442 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" 1443 | integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== 1444 | dependencies: 1445 | ansi-regex "^4.1.0" 1446 | 1447 | strip-eof@^1.0.0: 1448 | version "1.0.0" 1449 | resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" 1450 | integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= 1451 | 1452 | strip-json-comments@~2.0.1: 1453 | version "2.0.1" 1454 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" 1455 | integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= 1456 | 1457 | supports-color@^5.3.0: 1458 | version "5.5.0" 1459 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" 1460 | integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== 1461 | dependencies: 1462 | has-flag "^3.0.0" 1463 | 1464 | term-size@^1.2.0: 1465 | version "1.2.0" 1466 | resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69" 1467 | integrity sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk= 1468 | dependencies: 1469 | execa "^0.7.0" 1470 | 1471 | to-readable-stream@^1.0.0: 1472 | version "1.0.0" 1473 | resolved "https://registry.yarnpkg.com/to-readable-stream/-/to-readable-stream-1.0.0.tgz#ce0aa0c2f3df6adf852efb404a783e77c0475771" 1474 | integrity sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q== 1475 | 1476 | toidentifier@1.0.0: 1477 | version "1.0.0" 1478 | resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" 1479 | integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw== 1480 | 1481 | tough-cookie@~2.4.3: 1482 | version "2.4.3" 1483 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" 1484 | integrity sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ== 1485 | dependencies: 1486 | psl "^1.1.24" 1487 | punycode "^1.4.1" 1488 | 1489 | tunnel-agent@^0.6.0: 1490 | version "0.6.0" 1491 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" 1492 | integrity sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0= 1493 | dependencies: 1494 | safe-buffer "^5.0.1" 1495 | 1496 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 1497 | version "0.14.5" 1498 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 1499 | integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= 1500 | 1501 | type-fest@^0.3.0: 1502 | version "0.3.1" 1503 | resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.3.1.tgz#63d00d204e059474fe5e1b7c011112bbd1dc29e1" 1504 | integrity sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ== 1505 | 1506 | type-is@~1.6.17, type-is@~1.6.18: 1507 | version "1.6.18" 1508 | resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" 1509 | integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== 1510 | dependencies: 1511 | media-typer "0.3.0" 1512 | mime-types "~2.1.24" 1513 | 1514 | unique-string@^1.0.0: 1515 | version "1.0.0" 1516 | resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-1.0.0.tgz#9e1057cca851abb93398f8b33ae187b99caec11a" 1517 | integrity sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo= 1518 | dependencies: 1519 | crypto-random-string "^1.0.0" 1520 | 1521 | unpipe@1.0.0, unpipe@~1.0.0: 1522 | version "1.0.0" 1523 | resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" 1524 | integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= 1525 | 1526 | update-notifier@^3.0.0: 1527 | version "3.0.1" 1528 | resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-3.0.1.tgz#78ecb68b915e2fd1be9f767f6e298ce87b736250" 1529 | integrity sha512-grrmrB6Zb8DUiyDIaeRTBCkgISYUgETNe7NglEbVsrLWXeESnlCSP50WfRSj/GmzMPl6Uchj24S/p80nP/ZQrQ== 1530 | dependencies: 1531 | boxen "^3.0.0" 1532 | chalk "^2.0.1" 1533 | configstore "^4.0.0" 1534 | has-yarn "^2.1.0" 1535 | import-lazy "^2.1.0" 1536 | is-ci "^2.0.0" 1537 | is-installed-globally "^0.1.0" 1538 | is-npm "^3.0.0" 1539 | is-yarn-global "^0.3.0" 1540 | latest-version "^5.0.0" 1541 | semver-diff "^2.0.0" 1542 | xdg-basedir "^3.0.0" 1543 | 1544 | uri-js@^4.2.2: 1545 | version "4.2.2" 1546 | resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" 1547 | integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== 1548 | dependencies: 1549 | punycode "^2.1.0" 1550 | 1551 | url-parse-lax@^3.0.0: 1552 | version "3.0.0" 1553 | resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c" 1554 | integrity sha1-FrXK/Afb42dsGxmZF3gj1lA6yww= 1555 | dependencies: 1556 | prepend-http "^2.0.0" 1557 | 1558 | utils-merge@1.0.1: 1559 | version "1.0.1" 1560 | resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" 1561 | integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= 1562 | 1563 | uuid@^3.3.2: 1564 | version "3.3.2" 1565 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" 1566 | integrity sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA== 1567 | 1568 | vary@^1, vary@~1.1.2: 1569 | version "1.1.2" 1570 | resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" 1571 | integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= 1572 | 1573 | verror@1.10.0: 1574 | version "1.10.0" 1575 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" 1576 | integrity sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA= 1577 | dependencies: 1578 | assert-plus "^1.0.0" 1579 | core-util-is "1.0.2" 1580 | extsprintf "^1.2.0" 1581 | 1582 | which-module@^2.0.0: 1583 | version "2.0.0" 1584 | resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" 1585 | integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= 1586 | 1587 | which@^1.2.9: 1588 | version "1.3.1" 1589 | resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" 1590 | integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== 1591 | dependencies: 1592 | isexe "^2.0.0" 1593 | 1594 | widest-line@^2.0.0: 1595 | version "2.0.1" 1596 | resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-2.0.1.tgz#7438764730ec7ef4381ce4df82fb98a53142a3fc" 1597 | integrity sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA== 1598 | dependencies: 1599 | string-width "^2.1.1" 1600 | 1601 | wrap-ansi@^5.1.0: 1602 | version "5.1.0" 1603 | resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" 1604 | integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== 1605 | dependencies: 1606 | ansi-styles "^3.2.0" 1607 | string-width "^3.0.0" 1608 | strip-ansi "^5.0.0" 1609 | 1610 | wrappy@1: 1611 | version "1.0.2" 1612 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 1613 | integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= 1614 | 1615 | write-file-atomic@^2.0.0: 1616 | version "2.4.3" 1617 | resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.3.tgz#1fd2e9ae1df3e75b8d8c367443c692d4ca81f481" 1618 | integrity sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ== 1619 | dependencies: 1620 | graceful-fs "^4.1.11" 1621 | imurmurhash "^0.1.4" 1622 | signal-exit "^3.0.2" 1623 | 1624 | xdg-basedir@^3.0.0: 1625 | version "3.0.0" 1626 | resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-3.0.0.tgz#496b2cc109eca8dbacfe2dc72b603c17c5870ad4" 1627 | integrity sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ= 1628 | 1629 | y18n@^4.0.0: 1630 | version "4.0.0" 1631 | resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b" 1632 | integrity sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== 1633 | 1634 | yallist@^2.1.2: 1635 | version "2.1.2" 1636 | resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" 1637 | integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= 1638 | 1639 | yargs-parser@^13.1.1: 1640 | version "13.1.2" 1641 | resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38" 1642 | integrity sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg== 1643 | dependencies: 1644 | camelcase "^5.0.0" 1645 | decamelize "^1.2.0" 1646 | 1647 | yargs@^13.2.4: 1648 | version "13.3.0" 1649 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.0.tgz#4c657a55e07e5f2cf947f8a366567c04a0dedc83" 1650 | integrity sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA== 1651 | dependencies: 1652 | cliui "^5.0.0" 1653 | find-up "^3.0.0" 1654 | get-caller-file "^2.0.1" 1655 | require-directory "^2.1.1" 1656 | require-main-filename "^2.0.0" 1657 | set-blocking "^2.0.0" 1658 | string-width "^3.0.0" 1659 | which-module "^2.0.0" 1660 | y18n "^4.0.0" 1661 | yargs-parser "^13.1.1" 1662 | -------------------------------------------------------------------------------- /streams/client/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /streams/client/README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 2 | 3 | ## Available Scripts 4 | 5 | In the project directory, you can run: 6 | 7 | ### `npm start` 8 | 9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 11 | 12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console. 14 | 15 | ### `npm test` 16 | 17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 19 | 20 | ### `npm run build` 21 | 22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance. 24 | 25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed! 27 | 28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 29 | 30 | ### `npm run eject` 31 | 32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 33 | 34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 35 | 36 | Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 37 | 38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 39 | 40 | ## Learn More 41 | 42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 43 | 44 | To learn React, check out the [React documentation](https://reactjs.org/). 45 | 46 | ### Code Splitting 47 | 48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting 49 | 50 | ### Analyzing the Bundle Size 51 | 52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size 53 | 54 | ### Making a Progressive Web App 55 | 56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app 57 | 58 | ### Advanced Configuration 59 | 60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration 61 | 62 | ### Deployment 63 | 64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment 65 | 66 | ### `npm run build` fails to minify 67 | 68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify 69 | -------------------------------------------------------------------------------- /streams/client/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "client", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "axios": "^0.19.0", 7 | "flv.js": "^1.5.0", 8 | "lodash": "^4.17.19", 9 | "react": "^16.8.6", 10 | "react-dom": "^16.8.6", 11 | "react-redux": "^7.1.0", 12 | "react-router-dom": "^5.0.1", 13 | "react-scripts": "3.0.1", 14 | "redux": "^4.0.4", 15 | "redux-form": "^8.2.4", 16 | "redux-thunk": "^2.3.0" 17 | }, 18 | "scripts": { 19 | "start": "react-scripts start", 20 | "build": "react-scripts build", 21 | "test": "react-scripts test", 22 | "eject": "react-scripts eject" 23 | }, 24 | "eslintConfig": { 25 | "extends": "react-app" 26 | }, 27 | "browserslist": { 28 | "production": [ 29 | ">0.2%", 30 | "not dead", 31 | "not op_mini all" 32 | ], 33 | "development": [ 34 | "last 1 chrome version", 35 | "last 1 firefox version", 36 | "last 1 safari version" 37 | ] 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /streams/client/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azimidev/React-Redux/3551a34631059c0dc60e7d52e66312099ca561d4/streams/client/public/favicon.ico -------------------------------------------------------------------------------- /streams/client/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 22 | React App 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /streams/client/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /streams/client/src/actions/index.js: -------------------------------------------------------------------------------- 1 | import streams from '../apis/streams'; 2 | import { 3 | SIGN_IN, 4 | SIGN_OUT, 5 | FETCH_STREAMS, 6 | CREATE_STREAM, 7 | FETCH_STREAM, 8 | EDIT_STREAM, 9 | DELETE_STREAM 10 | } from './types'; 11 | import history from '../history'; 12 | 13 | export const signIn = (userId) => { 14 | return { type: SIGN_IN, payload: userId }; 15 | }; 16 | 17 | export const signOut = () => { 18 | return { type: SIGN_OUT }; 19 | }; 20 | 21 | export const createStream = (formValues) => async (dispatch, getState) => { 22 | const { userId } = getState().auth; 23 | const response = await streams.post('/streams', { ...formValues, userId }); 24 | dispatch({ type: CREATE_STREAM, payload: response.data }); 25 | history.push('/'); 26 | }; 27 | 28 | export const fetchStreams = () => async dispatch => { 29 | const response = await streams.get('/streams'); 30 | dispatch({ type: FETCH_STREAMS, payload: response.data }); 31 | }; 32 | 33 | export const fetchStream = (id) => async dispatch => { 34 | const response = await streams.get(`/streams/${id}`); 35 | dispatch({ type: FETCH_STREAM, payload: response.data }); 36 | }; 37 | 38 | export const editStream = (id, formValues) => async dispatch => { 39 | const response = await streams.patch(`/streams/${id}`, formValues); 40 | dispatch({ type: EDIT_STREAM, payload: response.data }); 41 | history.push('/'); 42 | }; 43 | 44 | export const deleteStream = (id) => async dispatch => { 45 | // Nothing is returned so we don't need response 46 | await streams.delete(`/streams/${id}`); 47 | dispatch({ type: DELETE_STREAM, payload: id }); 48 | history.push('/'); 49 | }; 50 | -------------------------------------------------------------------------------- /streams/client/src/actions/types.js: -------------------------------------------------------------------------------- 1 | export const SIGN_IN = 'SIGN_IN'; 2 | export const SIGN_OUT = 'SIGN_OUT'; 3 | export const FETCH_STREAMS = 'FETCH_STREAMS'; // LIST (INDEX) -> (GET) 4 | export const CREATE_STREAM = 'CREATE_STREAM'; // CREATE (STORE) -> (POST) 5 | export const FETCH_STREAM = 'FETCH_STREAM'; // SHOW (READ) -> (GET) 6 | export const EDIT_STREAM = 'EDIT_STREAM'; // UPDATE (EDIT) -> (PATCH) 7 | export const DELETE_STREAM = 'DELETE_STREAM'; // DELETE (DESTROY) -> (DELETE) 8 | -------------------------------------------------------------------------------- /streams/client/src/apis/streams.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | 3 | export default axios.create({ 4 | baseURL: 'http://localhost:3001/' 5 | }); 6 | -------------------------------------------------------------------------------- /streams/client/src/components/App.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Router, Route, Switch } from 'react-router-dom'; 3 | import StreamList from './streams/StreamList'; 4 | import StreamCreate from './streams/StreamCreate'; 5 | import StreamEdit from './streams/StreamEdit'; 6 | import StreamDelete from './streams/StreamDelete'; 7 | import StreamShow from './streams/StreamShow'; 8 | import Header from './Header'; 9 | import history from '../history'; 10 | 11 | /** 12 | * With React Router, each component 13 | * needs to be designed to work in isolation 14 | * ( fetch it's own data! ) 15 | */ 16 | 17 | const App = () => { 18 | return ( 19 |
20 | 21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
32 |
33 | ); 34 | }; 35 | 36 | export default App; 37 | -------------------------------------------------------------------------------- /streams/client/src/components/GoogleAuth.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { connect } from 'react-redux'; 3 | import { signIn, signOut } from '../actions'; 4 | 5 | class GoogleAuth extends Component { 6 | 7 | componentDidMount() { 8 | window.gapi.load('client:auth2', () => { 9 | window.gapi.client.init({ 10 | // TODO: This is not going to work! Replace it with your Client ID 11 | clientId: 'YOUR_CLIENT_ID.apps.googleusercontent.com', 12 | scope: 'email', 13 | }).then(() => { 14 | this.auth = window.gapi.auth2.getAuthInstance(); 15 | this.onAuthChange(this.auth.isSignedIn.get()); 16 | this.auth.isSignedIn.listen(this.onAuthChange); 17 | }); 18 | }); 19 | } 20 | 21 | onAuthChange = (isSignedIn) => { 22 | if (isSignedIn) { 23 | this.props.signIn(this.auth.currentUser.get().getId()); 24 | } else { 25 | this.props.signOut(); 26 | } 27 | } 28 | 29 | onSignInClick = () => { 30 | this.auth.signIn(); 31 | } 32 | 33 | onSignOutClick = () => { 34 | this.auth.signOut(); 35 | } 36 | 37 | renderAuthButton() { 38 | if (this.props.isSignedIn === null) { 39 | return null; 40 | } else if (this.props.isSignedIn) { 41 | return ( 42 | 46 | ); 47 | } else { 48 | return ( 49 | 53 | ); 54 | } 55 | } 56 | 57 | render() { 58 | return ( 59 |
60 | {this.renderAuthButton()} 61 |
62 | ); 63 | }; 64 | }; 65 | 66 | const mapStatesToProps = state => { 67 | return { isSignedIn: state.auth.isSignedIn }; 68 | }; 69 | 70 | export default connect(mapStatesToProps, { signIn, signOut })(GoogleAuth); 71 | -------------------------------------------------------------------------------- /streams/client/src/components/Header.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Link } from "react-router-dom"; 3 | import GoogleAuth from './GoogleAuth'; 4 | 5 | export default function Header() { 6 | return ( 7 |
8 | 9 | Streamer 10 | 11 |
12 | 13 | All Streams 14 | 15 | 16 |
17 |
18 | ); 19 | }; 20 | -------------------------------------------------------------------------------- /streams/client/src/components/Modal.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | 4 | export default props => { 5 | return ReactDOM.createPortal( 6 |
7 |
e.stopPropagation()}> 8 |
{props.title}
9 |
{props.content}
10 |
{props.actions}
11 |
12 |
, 13 | document.getElementById('modal') 14 | ); 15 | }; 16 | -------------------------------------------------------------------------------- /streams/client/src/components/streams/StreamCreate.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { connect } from 'react-redux'; 3 | import { createStream } from '../../actions'; 4 | import StreamForm from './StreamForm'; 5 | 6 | 7 | class StreamCreate extends React.Component { 8 | 9 | onSubmit = formValues => { 10 | this.props.createStream(formValues); 11 | } 12 | 13 | render() { 14 | return ( 15 |
16 |

Create Stream

17 | 18 |
19 | ); 20 | }; 21 | }; 22 | 23 | export default connect(null, { createStream })(StreamCreate); 24 | -------------------------------------------------------------------------------- /streams/client/src/components/streams/StreamDelete.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { connect } from 'react-redux'; 3 | import { deleteStream, fetchStream } from '../../actions'; 4 | import history from '../../history'; 5 | import Modal from '../Modal'; 6 | import { Link } from 'react-router-dom'; 7 | 8 | export class StreamDelete extends React.Component { 9 | componentDidMount() { 10 | this.props.fetchStream(this.props.match.params.id); 11 | } 12 | 13 | renderActions() { 14 | return ( 15 | 16 | 21 | Cancel 22 | 23 | ); 24 | } 25 | 26 | renderContent() { 27 | if (!this.props.stream) { 28 | return 'Are you sure you want to delete this stream?'; 29 | } 30 | return `Are you sure you want to delete this stream with title ${this.props.stream.title}?` 31 | } 32 | 33 | render() { 34 | return ( 35 | history.push('/')} 40 | /> 41 | ); 42 | } 43 | } 44 | 45 | const mapStateToProps = (state, ownProps) => { 46 | return { stream: state.streams[ownProps.match.params.id] }; 47 | }; 48 | 49 | export default connect(mapStateToProps, { fetchStream, deleteStream })(StreamDelete); 50 | -------------------------------------------------------------------------------- /streams/client/src/components/streams/StreamEdit.js: -------------------------------------------------------------------------------- 1 | import _ from 'lodash'; 2 | import React from 'react'; 3 | import { connect } from 'react-redux'; 4 | import { editStream, fetchStream } from '../../actions'; 5 | import StreamForm from './StreamForm'; 6 | 7 | class StreamEdit extends React.Component { 8 | componentDidMount() { 9 | this.props.fetchStream(this.props.match.params.id); 10 | } 11 | 12 | onSubmit = formValues => { 13 | this.props.editStream(this.props.match.params.id, formValues); 14 | } 15 | 16 | render() { 17 | if (!this.props.stream) { 18 | return
Loading...
19 | } 20 | return ( 21 |
22 |

Edit a Stream

23 | 27 |
28 | ); 29 | } 30 | } 31 | 32 | const mapStateToProps = (state, ownProps) => { 33 | return { stream: state.streams[ownProps.match.params.id] }; 34 | }; 35 | 36 | export default connect(mapStateToProps, { fetchStream, editStream })(StreamEdit); 37 | 38 | -------------------------------------------------------------------------------- /streams/client/src/components/streams/StreamForm.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Field, reduxForm } from 'redux-form'; 3 | 4 | class StreamForm extends React.Component { 5 | 6 | renderError({ touched, error }) { 7 | if (touched && error) { 8 | return ( 9 |
10 |
11 | {error} 12 |
13 |
14 | ); 15 | } 16 | } 17 | 18 | renderInput = ({ input, label, meta }) => { 19 | return ( 20 |
21 |
22 | 23 | 24 |
25 |
{this.renderError(meta)}
26 |
27 | ); 28 | } 29 | 30 | onSubmit = formValues => { 31 | this.props.onSubmit(formValues); 32 | } 33 | 34 | render() { 35 | return ( 36 |
37 | 38 | 39 | 40 | 41 | ); 42 | }; 43 | }; 44 | 45 | const validate = formValues => { 46 | const errors = {}; 47 | 48 | if (!formValues.title) { 49 | errors.title = 'You must enter a title.'; 50 | } 51 | 52 | if (!formValues.description) { 53 | errors.description = 'You must enter description.'; 54 | } 55 | 56 | return errors; 57 | }; 58 | 59 | export default reduxForm({ form: 'streamForm', validate })(StreamForm); 60 | -------------------------------------------------------------------------------- /streams/client/src/components/streams/StreamList.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { connect } from 'react-redux'; 3 | import { fetchStreams } from '../../actions'; 4 | import { Link } from 'react-router-dom'; 5 | 6 | class StreamList extends React.Component { 7 | 8 | componentDidMount() { 9 | this.props.fetchStreams(); 10 | } 11 | 12 | renderAdmin(stream) { 13 | if (stream.userId === this.props.currentUserId) { 14 | return ( 15 |
16 | Edit 17 | Delete 18 |
19 | ); 20 | } 21 | } 22 | 23 | renderList() { 24 | return this.props.streams.map(stream => { 25 | return ( 26 |
27 | {this.renderAdmin(stream)} 28 | 29 |
30 | 31 | {stream.title} 32 | 33 |
34 | {stream.description} 35 |
36 |
37 |
38 | ); 39 | }); 40 | } 41 | 42 | renderCreate() { 43 | if (this.props.isSignedIn) { 44 | return ( 45 |
46 | 47 | Create Stream 48 | 49 |
50 | ); 51 | } 52 | } 53 | 54 | render() { 55 | return ( 56 |
57 |

Streams

58 |
59 | {this.renderList()} 60 |
61 | {this.renderCreate()} 62 |
63 | ); 64 | }; 65 | }; 66 | 67 | const mapStateToProps = (state) => { 68 | return { 69 | streams: Object.values(state.streams), 70 | currentUserId: state.auth.userId, 71 | isSignedIn: state.auth.isSignedIn, 72 | }; 73 | }; 74 | 75 | export default connect(mapStateToProps, { fetchStreams })(StreamList); 76 | -------------------------------------------------------------------------------- /streams/client/src/components/streams/StreamShow.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import flv from 'flv.js'; 3 | import { connect } from 'react-redux'; 4 | import { fetchStream } from '../../actions'; 5 | 6 | 7 | class StreamShow extends React.Component { 8 | 9 | constructor(props) { 10 | super(props); 11 | this.videoRef = React.createRef(); 12 | } 13 | 14 | 15 | componentDidMount() { 16 | this.props.fetchStream(this.props.match.params.id); 17 | this.buildPlayer(); 18 | } 19 | 20 | componentDidUpdate() { 21 | this.buildPlayer(); 22 | } 23 | 24 | componentWillUnmount() { 25 | this.player.destroy(); 26 | } 27 | 28 | 29 | buildPlayer() { 30 | if (this.player || !this.props.stream) { 31 | return; 32 | } 33 | 34 | const { id } = this.props.match.params; 35 | this.player = flv.createPlayer({ 36 | type: 'flv', 37 | url: `http://localhost:8000/live/${id}.flv` 38 | }); 39 | this.player.attachMediaElement(this.videoRef.current); 40 | this.player.load(); 41 | } 42 | 43 | render() { 44 | if (!this.props.stream) { 45 | return
Loading...
46 | } 47 | 48 | const { title, description } = this.props.stream; 49 | 50 | return ( 51 |
52 |
60 | ); 61 | } 62 | } 63 | 64 | const mapStateToProps = (state, ownProps) => { 65 | return { stream: state.streams[ownProps.match.params.id] }; 66 | }; 67 | 68 | export default connect(mapStateToProps, { fetchStream })(StreamShow); 69 | -------------------------------------------------------------------------------- /streams/client/src/history.js: -------------------------------------------------------------------------------- 1 | import { createBrowserHistory } from 'history'; 2 | 3 | export default createBrowserHistory(); 4 | -------------------------------------------------------------------------------- /streams/client/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import { Provider } from 'react-redux'; 4 | import { createStore, applyMiddleware, compose } from 'redux'; 5 | import reduxThunk from 'redux-thunk'; 6 | 7 | import App from './components/App'; 8 | import reducers from './reducers'; 9 | 10 | const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; 11 | const store = createStore(reducers, composeEnhancers(applyMiddleware(reduxThunk))); 12 | 13 | ReactDOM.render( 14 | 15 | 16 | , 17 | document.getElementById('root') 18 | ); 19 | -------------------------------------------------------------------------------- /streams/client/src/reducers/authReducer.js: -------------------------------------------------------------------------------- 1 | import { SIGN_IN, SIGN_OUT } from '../actions/types'; 2 | 3 | const INITIAL_STATE = { isSignedIn: null, userId: null }; 4 | 5 | export default (state = INITIAL_STATE, action) => { 6 | switch (action.type) { 7 | case SIGN_IN: 8 | return { ...state, isSignedIn: true, userId: action.payload }; 9 | case SIGN_OUT: 10 | return { ...state, isSignedIn: false, userId: null }; 11 | default: 12 | return state; 13 | } 14 | }; 15 | -------------------------------------------------------------------------------- /streams/client/src/reducers/index.js: -------------------------------------------------------------------------------- 1 | import { combineReducers } from 'redux'; 2 | import { reducer as formReducer } from 'redux-form'; 3 | import authReducer from './authReducer'; 4 | import streamReducer from './streamReducer'; 5 | 6 | export default combineReducers({ 7 | auth: authReducer, 8 | form: formReducer, 9 | streams: streamReducer, 10 | }); 11 | 12 | -------------------------------------------------------------------------------- /streams/client/src/reducers/streamReducer.js: -------------------------------------------------------------------------------- 1 | import _ from 'lodash'; 2 | import { 3 | FETCH_STREAMS, 4 | FETCH_STREAM, 5 | CREATE_STREAM, 6 | EDIT_STREAM, 7 | DELETE_STREAM 8 | } from '../actions/types'; 9 | 10 | export default (state = {}, action) => { 11 | switch (action.type) { 12 | case FETCH_STREAMS: 13 | return { ...state, ..._.mapKeys(action.payload, 'id') }; 14 | case FETCH_STREAM: 15 | return { ...state, [action.payload.id]: action.payload }; 16 | case CREATE_STREAM: 17 | return { ...state, [action.payload.id]: action.payload }; 18 | case EDIT_STREAM: 19 | return { ...state, [action.payload.id]: action.payload }; 20 | case DELETE_STREAM: 21 | return _.omit(state, action.payload); 22 | default: 23 | return state; 24 | } 25 | }; 26 | -------------------------------------------------------------------------------- /streams/rtmpserver/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /streams/rtmpserver/index.js: -------------------------------------------------------------------------------- 1 | const NodeMediaServer = require('node-media-server'); 2 | // import NodeMediaServer from 'node-media-server'; 3 | 4 | const config = { 5 | rtmp: { 6 | port: 1935, 7 | chunk_size: 60000, 8 | gop_cache: true, 9 | ping: 30, 10 | ping_timeout: 60 11 | }, 12 | http: { 13 | port: 8000, 14 | allow_origin: '*' 15 | } 16 | }; 17 | 18 | var nms = new NodeMediaServer(config) 19 | nms.run(); 20 | -------------------------------------------------------------------------------- /streams/rtmpserver/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rtmpserver", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "license": "MIT", 6 | "scripts": { 7 | "start": "node index.js" 8 | }, 9 | "dependencies": { 10 | "node-media-server": "^2.1.2" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /streams/rtmpserver/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | accepts@~1.3.7: 6 | version "1.3.7" 7 | resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd" 8 | integrity sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA== 9 | dependencies: 10 | mime-types "~2.1.24" 11 | negotiator "0.6.2" 12 | 13 | ansi-styles@^3.2.1: 14 | version "3.2.1" 15 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" 16 | integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== 17 | dependencies: 18 | color-convert "^1.9.0" 19 | 20 | array-flatten@1.1.1: 21 | version "1.1.1" 22 | resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" 23 | integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= 24 | 25 | async-limiter@~1.0.0: 26 | version "1.0.1" 27 | resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd" 28 | integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== 29 | 30 | basic-auth-connect@^1.0.0: 31 | version "1.0.0" 32 | resolved "https://registry.yarnpkg.com/basic-auth-connect/-/basic-auth-connect-1.0.0.tgz#fdb0b43962ca7b40456a7c2bb48fe173da2d2122" 33 | integrity sha1-/bC0OWLKe0BFanwrtI/hc9otISI= 34 | 35 | body-parser@1.19.0: 36 | version "1.19.0" 37 | resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.0.tgz#96b2709e57c9c4e09a6fd66a8fd979844f69f08a" 38 | integrity sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw== 39 | dependencies: 40 | bytes "3.1.0" 41 | content-type "~1.0.4" 42 | debug "2.6.9" 43 | depd "~1.1.2" 44 | http-errors "1.7.2" 45 | iconv-lite "0.4.24" 46 | on-finished "~2.3.0" 47 | qs "6.7.0" 48 | raw-body "2.4.0" 49 | type-is "~1.6.17" 50 | 51 | bytes@3.1.0: 52 | version "3.1.0" 53 | resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" 54 | integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== 55 | 56 | chalk@^2.4.2: 57 | version "2.4.2" 58 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" 59 | integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== 60 | dependencies: 61 | ansi-styles "^3.2.1" 62 | escape-string-regexp "^1.0.5" 63 | supports-color "^5.3.0" 64 | 65 | color-convert@^1.9.0: 66 | version "1.9.3" 67 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" 68 | integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== 69 | dependencies: 70 | color-name "1.1.3" 71 | 72 | color-name@1.1.3: 73 | version "1.1.3" 74 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" 75 | integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= 76 | 77 | content-disposition@0.5.3: 78 | version "0.5.3" 79 | resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd" 80 | integrity sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g== 81 | dependencies: 82 | safe-buffer "5.1.2" 83 | 84 | content-type@~1.0.4: 85 | version "1.0.4" 86 | resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" 87 | integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== 88 | 89 | cookie-signature@1.0.6: 90 | version "1.0.6" 91 | resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" 92 | integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw= 93 | 94 | cookie@0.4.0: 95 | version "0.4.0" 96 | resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.0.tgz#beb437e7022b3b6d49019d088665303ebe9c14ba" 97 | integrity sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg== 98 | 99 | dateformat@^3.0.3: 100 | version "3.0.3" 101 | resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" 102 | integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== 103 | 104 | debug@2.6.9: 105 | version "2.6.9" 106 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" 107 | integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== 108 | dependencies: 109 | ms "2.0.0" 110 | 111 | depd@~1.1.2: 112 | version "1.1.2" 113 | resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" 114 | integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= 115 | 116 | destroy@~1.0.4: 117 | version "1.0.4" 118 | resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" 119 | integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA= 120 | 121 | ee-first@1.1.1: 122 | version "1.1.1" 123 | resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" 124 | integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= 125 | 126 | encodeurl@~1.0.2: 127 | version "1.0.2" 128 | resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" 129 | integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= 130 | 131 | escape-html@~1.0.3: 132 | version "1.0.3" 133 | resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" 134 | integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= 135 | 136 | escape-string-regexp@^1.0.5: 137 | version "1.0.5" 138 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 139 | integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= 140 | 141 | etag@~1.8.1: 142 | version "1.8.1" 143 | resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" 144 | integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= 145 | 146 | express@^4.16.4: 147 | version "4.17.1" 148 | resolved "https://registry.yarnpkg.com/express/-/express-4.17.1.tgz#4491fc38605cf51f8629d39c2b5d026f98a4c134" 149 | integrity sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g== 150 | dependencies: 151 | accepts "~1.3.7" 152 | array-flatten "1.1.1" 153 | body-parser "1.19.0" 154 | content-disposition "0.5.3" 155 | content-type "~1.0.4" 156 | cookie "0.4.0" 157 | cookie-signature "1.0.6" 158 | debug "2.6.9" 159 | depd "~1.1.2" 160 | encodeurl "~1.0.2" 161 | escape-html "~1.0.3" 162 | etag "~1.8.1" 163 | finalhandler "~1.1.2" 164 | fresh "0.5.2" 165 | merge-descriptors "1.0.1" 166 | methods "~1.1.2" 167 | on-finished "~2.3.0" 168 | parseurl "~1.3.3" 169 | path-to-regexp "0.1.7" 170 | proxy-addr "~2.0.5" 171 | qs "6.7.0" 172 | range-parser "~1.2.1" 173 | safe-buffer "5.1.2" 174 | send "0.17.1" 175 | serve-static "1.14.1" 176 | setprototypeof "1.1.1" 177 | statuses "~1.5.0" 178 | type-is "~1.6.18" 179 | utils-merge "1.0.1" 180 | vary "~1.1.2" 181 | 182 | finalhandler@~1.1.2: 183 | version "1.1.2" 184 | resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" 185 | integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== 186 | dependencies: 187 | debug "2.6.9" 188 | encodeurl "~1.0.2" 189 | escape-html "~1.0.3" 190 | on-finished "~2.3.0" 191 | parseurl "~1.3.3" 192 | statuses "~1.5.0" 193 | unpipe "~1.0.0" 194 | 195 | forwarded@~0.1.2: 196 | version "0.1.2" 197 | resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" 198 | integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ= 199 | 200 | fresh@0.5.2: 201 | version "0.5.2" 202 | resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" 203 | integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac= 204 | 205 | has-flag@^3.0.0: 206 | version "3.0.0" 207 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" 208 | integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= 209 | 210 | http-errors@1.7.2: 211 | version "1.7.2" 212 | resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f" 213 | integrity sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg== 214 | dependencies: 215 | depd "~1.1.2" 216 | inherits "2.0.3" 217 | setprototypeof "1.1.1" 218 | statuses ">= 1.5.0 < 2" 219 | toidentifier "1.0.0" 220 | 221 | http-errors@~1.7.2: 222 | version "1.7.3" 223 | resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.3.tgz#6c619e4f9c60308c38519498c14fbb10aacebb06" 224 | integrity sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw== 225 | dependencies: 226 | depd "~1.1.2" 227 | inherits "2.0.4" 228 | setprototypeof "1.1.1" 229 | statuses ">= 1.5.0 < 2" 230 | toidentifier "1.0.0" 231 | 232 | iconv-lite@0.4.24: 233 | version "0.4.24" 234 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" 235 | integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== 236 | dependencies: 237 | safer-buffer ">= 2.1.2 < 3" 238 | 239 | inherits@2.0.3: 240 | version "2.0.3" 241 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 242 | integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= 243 | 244 | inherits@2.0.4: 245 | version "2.0.4" 246 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" 247 | integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== 248 | 249 | ipaddr.js@1.9.0: 250 | version "1.9.0" 251 | resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.0.tgz#37df74e430a0e47550fe54a2defe30d8acd95f65" 252 | integrity sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA== 253 | 254 | lodash@^4.17.11: 255 | version "4.17.19" 256 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b" 257 | integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ== 258 | 259 | media-typer@0.3.0: 260 | version "0.3.0" 261 | resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" 262 | integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g= 263 | 264 | merge-descriptors@1.0.1: 265 | version "1.0.1" 266 | resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" 267 | integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= 268 | 269 | methods@~1.1.2: 270 | version "1.1.2" 271 | resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" 272 | integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4= 273 | 274 | mime-db@1.40.0: 275 | version "1.40.0" 276 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.40.0.tgz#a65057e998db090f732a68f6c276d387d4126c32" 277 | integrity sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA== 278 | 279 | mime-types@~2.1.24: 280 | version "2.1.24" 281 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.24.tgz#b6f8d0b3e951efb77dedeca194cff6d16f676f81" 282 | integrity sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ== 283 | dependencies: 284 | mime-db "1.40.0" 285 | 286 | mime@1.6.0: 287 | version "1.6.0" 288 | resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" 289 | integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== 290 | 291 | minimist@0.0.8: 292 | version "0.0.8" 293 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 294 | integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= 295 | 296 | mkdirp@^0.5.1: 297 | version "0.5.1" 298 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 299 | integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= 300 | dependencies: 301 | minimist "0.0.8" 302 | 303 | ms@2.0.0: 304 | version "2.0.0" 305 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" 306 | integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= 307 | 308 | ms@2.1.1: 309 | version "2.1.1" 310 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" 311 | integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== 312 | 313 | negotiator@0.6.2: 314 | version "0.6.2" 315 | resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" 316 | integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw== 317 | 318 | node-media-server@^2.1.2: 319 | version "2.1.2" 320 | resolved "https://registry.yarnpkg.com/node-media-server/-/node-media-server-2.1.2.tgz#1029162e0d76f44d816bdc30028ee2cc35f50ce7" 321 | integrity sha512-r3X0rXHxPO5e2krZFew1fARWuWuwQaunzQm25b6/081fTeW/WXvMTThQ3t3YJ3C9RpPbt1ys02LzHvFRfgjVZw== 322 | dependencies: 323 | basic-auth-connect "^1.0.0" 324 | chalk "^2.4.2" 325 | dateformat "^3.0.3" 326 | express "^4.16.4" 327 | lodash "^4.17.11" 328 | mkdirp "^0.5.1" 329 | ws "^5.2.2" 330 | 331 | on-finished@~2.3.0: 332 | version "2.3.0" 333 | resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" 334 | integrity sha1-IPEzZIGwg811M3mSoWlxqi2QaUc= 335 | dependencies: 336 | ee-first "1.1.1" 337 | 338 | parseurl@~1.3.3: 339 | version "1.3.3" 340 | resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" 341 | integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== 342 | 343 | path-to-regexp@0.1.7: 344 | version "0.1.7" 345 | resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" 346 | integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w= 347 | 348 | proxy-addr@~2.0.5: 349 | version "2.0.5" 350 | resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.5.tgz#34cbd64a2d81f4b1fd21e76f9f06c8a45299ee34" 351 | integrity sha512-t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ== 352 | dependencies: 353 | forwarded "~0.1.2" 354 | ipaddr.js "1.9.0" 355 | 356 | qs@6.7.0: 357 | version "6.7.0" 358 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc" 359 | integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ== 360 | 361 | range-parser@~1.2.1: 362 | version "1.2.1" 363 | resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" 364 | integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== 365 | 366 | raw-body@2.4.0: 367 | version "2.4.0" 368 | resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.0.tgz#a1ce6fb9c9bc356ca52e89256ab59059e13d0332" 369 | integrity sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q== 370 | dependencies: 371 | bytes "3.1.0" 372 | http-errors "1.7.2" 373 | iconv-lite "0.4.24" 374 | unpipe "1.0.0" 375 | 376 | safe-buffer@5.1.2: 377 | version "5.1.2" 378 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" 379 | integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== 380 | 381 | "safer-buffer@>= 2.1.2 < 3": 382 | version "2.1.2" 383 | resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" 384 | integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== 385 | 386 | send@0.17.1: 387 | version "0.17.1" 388 | resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8" 389 | integrity sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg== 390 | dependencies: 391 | debug "2.6.9" 392 | depd "~1.1.2" 393 | destroy "~1.0.4" 394 | encodeurl "~1.0.2" 395 | escape-html "~1.0.3" 396 | etag "~1.8.1" 397 | fresh "0.5.2" 398 | http-errors "~1.7.2" 399 | mime "1.6.0" 400 | ms "2.1.1" 401 | on-finished "~2.3.0" 402 | range-parser "~1.2.1" 403 | statuses "~1.5.0" 404 | 405 | serve-static@1.14.1: 406 | version "1.14.1" 407 | resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9" 408 | integrity sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg== 409 | dependencies: 410 | encodeurl "~1.0.2" 411 | escape-html "~1.0.3" 412 | parseurl "~1.3.3" 413 | send "0.17.1" 414 | 415 | setprototypeof@1.1.1: 416 | version "1.1.1" 417 | resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683" 418 | integrity sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw== 419 | 420 | "statuses@>= 1.5.0 < 2", statuses@~1.5.0: 421 | version "1.5.0" 422 | resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" 423 | integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= 424 | 425 | supports-color@^5.3.0: 426 | version "5.5.0" 427 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" 428 | integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== 429 | dependencies: 430 | has-flag "^3.0.0" 431 | 432 | toidentifier@1.0.0: 433 | version "1.0.0" 434 | resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" 435 | integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw== 436 | 437 | type-is@~1.6.17, type-is@~1.6.18: 438 | version "1.6.18" 439 | resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" 440 | integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== 441 | dependencies: 442 | media-typer "0.3.0" 443 | mime-types "~2.1.24" 444 | 445 | unpipe@1.0.0, unpipe@~1.0.0: 446 | version "1.0.0" 447 | resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" 448 | integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= 449 | 450 | utils-merge@1.0.1: 451 | version "1.0.1" 452 | resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" 453 | integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= 454 | 455 | vary@~1.1.2: 456 | version "1.1.2" 457 | resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" 458 | integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= 459 | 460 | ws@^5.2.2: 461 | version "5.2.2" 462 | resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f" 463 | integrity sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA== 464 | dependencies: 465 | async-limiter "~1.0.0" 466 | -------------------------------------------------------------------------------- /translate-context/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /translate-context/README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 2 | 3 | ## Available Scripts 4 | 5 | In the project directory, you can run: 6 | 7 | ### `npm start` 8 | 9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 11 | 12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console. 14 | 15 | ### `npm test` 16 | 17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 19 | 20 | ### `npm run build` 21 | 22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance. 24 | 25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed! 27 | 28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 29 | 30 | ### `npm run eject` 31 | 32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 33 | 34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 35 | 36 | Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 37 | 38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 39 | 40 | ## Learn More 41 | 42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 43 | 44 | To learn React, check out the [React documentation](https://reactjs.org/). 45 | 46 | ### Code Splitting 47 | 48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting 49 | 50 | ### Analyzing the Bundle Size 51 | 52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size 53 | 54 | ### Making a Progressive Web App 55 | 56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app 57 | 58 | ### Advanced Configuration 59 | 60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration 61 | 62 | ### Deployment 63 | 64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment 65 | 66 | ### `npm run build` fails to minify 67 | 68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify 69 | -------------------------------------------------------------------------------- /translate-context/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "translate", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "react": "^16.8.6", 7 | "react-dom": "^16.8.6", 8 | "react-scripts": "3.0.1" 9 | }, 10 | "scripts": { 11 | "start": "react-scripts start", 12 | "build": "react-scripts build", 13 | "test": "react-scripts test", 14 | "eject": "react-scripts eject" 15 | }, 16 | "eslintConfig": { 17 | "extends": "react-app" 18 | }, 19 | "browserslist": { 20 | "production": [ 21 | ">0.2%", 22 | "not dead", 23 | "not op_mini all" 24 | ], 25 | "development": [ 26 | "last 1 chrome version", 27 | "last 1 firefox version", 28 | "last 1 safari version" 29 | ] 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /translate-context/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/azimidev/React-Redux/3551a34631059c0dc60e7d52e66312099ca561d4/translate-context/public/favicon.ico -------------------------------------------------------------------------------- /translate-context/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 22 | React App 23 | 24 | 25 | 26 | 27 |
28 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /translate-context/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /translate-context/src/components/App.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import UserCreate from './UserCreate'; 3 | import ColorContext from '../contexts/ColorContext'; 4 | import LanguageSelector from './LanguageSelector'; 5 | import { LanguageStore } from '../contexts/LanguageContext'; 6 | 7 | export default class App extends Component { 8 | render() { 9 | return ( 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | ); 19 | }; 20 | } 21 | -------------------------------------------------------------------------------- /translate-context/src/components/Button.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import LanguageContext from '../contexts/LanguageContext'; 3 | import ColorContext from '../contexts/ColorContext'; 4 | 5 | class Button extends Component { 6 | 7 | // 1. Provider: 8 | // static contextType = LanguageContext; 9 | 10 | render() { 11 | return ( 12 | 13 | { 14 | (color) => ( 15 | 22 | ) 23 | } 24 | 25 | ); 26 | }; 27 | } 28 | 29 | // This is another way of using context provider: 30 | // Button.contextType = LanguageContext; 31 | 32 | export default Button; 33 | -------------------------------------------------------------------------------- /translate-context/src/components/Field.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import LanguageContext from '../contexts/LanguageContext'; 3 | 4 | class Field extends Component { 5 | 6 | static contextType = LanguageContext; 7 | 8 | render() { 9 | const text = this.context.language === 'english' ? 'Name' : 'اسم'; 10 | return ( 11 |
12 | 13 | 14 |
15 | ); 16 | }; 17 | } 18 | 19 | export default Field; 20 | -------------------------------------------------------------------------------- /translate-context/src/components/LanguageSelector.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import Context from '../contexts/LanguageContext'; 3 | 4 | export class LanguageSelector extends Component { 5 | 6 | static contextType = Context; 7 | 8 | render() { 9 | return ( 10 |
11 |

Select a language:

12 | this.context.onLanguageChange('english')} 15 | /> 16 | this.context.onLanguageChange('persian')} 19 | /> 20 |
21 | ); 22 | }; 23 | } 24 | 25 | export default LanguageSelector; 26 | -------------------------------------------------------------------------------- /translate-context/src/components/UserCreate.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import Field from './Field'; 3 | import Button from './Button'; 4 | 5 | const UserCreate = () => { 6 | return ( 7 |
8 | 9 |
11 | ); 12 | }; 13 | 14 | export default UserCreate; 15 | -------------------------------------------------------------------------------- /translate-context/src/contexts/ColorContext.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | export default React.createContext(); 4 | 5 | // WHERE CAN I GET MY SOURCE OF DATA? 6 | // 1. Giving default value 7 | // 2. Provider from parent component 8 | 9 | // ================================= 10 | 11 | // HOW TO USE CONTEXTS? 12 | // 1. this.context 13 | // 2. Consumer 14 | -------------------------------------------------------------------------------- /translate-context/src/contexts/LanguageContext.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | const Context = React.createContext('english'); 4 | 5 | export class LanguageStore extends React.Component { 6 | 7 | state = { language: 'english', color: 'primary' }; 8 | 9 | onLanguageChange = language => { 10 | this.setState({ language }); 11 | }; 12 | 13 | render() { 14 | return ( 15 | 16 | {this.props.children} 17 | 18 | ); 19 | } 20 | } 21 | 22 | export default Context; 23 | -------------------------------------------------------------------------------- /translate-context/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './components/App'; 4 | 5 | ReactDOM.render(, document.querySelector('#root')); 6 | --------------------------------------------------------------------------------