Repository: zalmoxisus/redux-devtools-extension
Branch: master
Commit: 955cfc4f9c2e
Files: 199
Total size: 431.6 KB
Directory structure:
gitextract_tx0nzry9/
├── .babelrc
├── .bookignore
├── .eslintignore
├── .eslintrc
├── .gitignore
├── .travis.yml
├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── LICENSE
├── README.md
├── appveyor.yml
├── book.json
├── docs/
│ ├── API/
│ │ ├── Arguments.md
│ │ ├── Methods.md
│ │ └── README.md
│ ├── Articles.md
│ ├── Credits.md
│ ├── FAQ.md
│ ├── Features/
│ │ └── Trace.md
│ ├── Feedback.md
│ ├── Integrations.md
│ ├── README.md
│ ├── Recipes.md
│ ├── Troubleshooting.md
│ └── Videos.md
├── examples/
│ ├── buildAll.js
│ ├── counter/
│ │ ├── .babelrc
│ │ ├── actions/
│ │ │ └── counter.js
│ │ ├── components/
│ │ │ └── Counter.js
│ │ ├── containers/
│ │ │ └── App.js
│ │ ├── index.html
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── reducers/
│ │ │ ├── counter.js
│ │ │ └── index.js
│ │ ├── server.js
│ │ ├── store/
│ │ │ └── configureStore.js
│ │ ├── test/
│ │ │ ├── actions/
│ │ │ │ └── counter.spec.js
│ │ │ ├── components/
│ │ │ │ └── Counter.spec.js
│ │ │ ├── containers/
│ │ │ │ └── App.spec.js
│ │ │ ├── reducers/
│ │ │ │ └── counter.spec.js
│ │ │ └── setup.js
│ │ └── webpack.config.js
│ ├── react-counter-messaging/
│ │ ├── .babelrc
│ │ ├── components/
│ │ │ └── Counter.js
│ │ ├── index.html
│ │ ├── index.js
│ │ ├── package.json
│ │ └── webpack.config.js
│ ├── router/
│ │ ├── .babelrc
│ │ ├── actions/
│ │ │ └── todos.js
│ │ ├── components/
│ │ │ ├── Footer.js
│ │ │ ├── Header.js
│ │ │ ├── MainSection.js
│ │ │ ├── TodoItem.js
│ │ │ └── TodoTextInput.js
│ │ ├── constants/
│ │ │ ├── ActionTypes.js
│ │ │ └── TodoFilters.js
│ │ ├── containers/
│ │ │ ├── App.js
│ │ │ ├── Root.js
│ │ │ └── Wrapper.js
│ │ ├── index.html
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── reducers/
│ │ │ ├── index.js
│ │ │ └── todos.js
│ │ ├── server.js
│ │ ├── store/
│ │ │ └── configureStore.js
│ │ ├── test/
│ │ │ ├── actions/
│ │ │ │ └── todos.spec.js
│ │ │ ├── components/
│ │ │ │ ├── Footer.spec.js
│ │ │ │ ├── Header.spec.js
│ │ │ │ ├── MainSection.spec.js
│ │ │ │ ├── TodoItem.spec.js
│ │ │ │ └── TodoTextInput.spec.js
│ │ │ ├── reducers/
│ │ │ │ └── todos.spec.js
│ │ │ └── setup.js
│ │ └── webpack.config.js
│ ├── saga-counter/
│ │ ├── .babelrc
│ │ ├── index.html
│ │ ├── package.json
│ │ ├── src/
│ │ │ ├── components/
│ │ │ │ └── Counter.js
│ │ │ ├── main.js
│ │ │ ├── reducers/
│ │ │ │ └── index.js
│ │ │ └── sagas/
│ │ │ └── index.js
│ │ └── webpack.config.js
│ └── todomvc/
│ ├── .babelrc
│ ├── actions/
│ │ ├── index.js
│ │ └── todos.js
│ ├── components/
│ │ ├── Footer.js
│ │ ├── Header.js
│ │ ├── MainSection.js
│ │ ├── TodoItem.js
│ │ └── TodoTextInput.js
│ ├── constants/
│ │ ├── ActionTypes.js
│ │ └── TodoFilters.js
│ ├── containers/
│ │ └── App.js
│ ├── index.html
│ ├── index.js
│ ├── package.json
│ ├── reducers/
│ │ ├── index.js
│ │ └── todos.js
│ ├── server.js
│ ├── store/
│ │ └── configureStore.js
│ ├── test/
│ │ ├── actions/
│ │ │ └── todos.spec.js
│ │ ├── components/
│ │ │ ├── Footer.spec.js
│ │ │ ├── Header.spec.js
│ │ │ ├── MainSection.spec.js
│ │ │ ├── TodoItem.spec.js
│ │ │ └── TodoTextInput.spec.js
│ │ ├── reducers/
│ │ │ └── todos.spec.js
│ │ └── setup.js
│ └── webpack.config.js
├── gulpfile.babel.js
├── npm-package/
│ ├── README.md
│ ├── developmentOnly.d.ts
│ ├── developmentOnly.js
│ ├── index.d.ts
│ ├── index.js
│ ├── logOnly.d.ts
│ ├── logOnly.js
│ ├── logOnlyInProduction.d.ts
│ ├── logOnlyInProduction.js
│ ├── package.json
│ └── utils/
│ └── assign.js
├── package.json
├── src/
│ ├── app/
│ │ ├── api/
│ │ │ ├── filters.js
│ │ │ ├── generateInstanceId.js
│ │ │ ├── importState.js
│ │ │ ├── index.js
│ │ │ ├── notifyErrors.js
│ │ │ └── openWindow.js
│ │ ├── containers/
│ │ │ └── App.js
│ │ ├── middlewares/
│ │ │ ├── api.js
│ │ │ ├── instanceSelector.js
│ │ │ ├── panelSync.js
│ │ │ └── windowSync.js
│ │ ├── reducers/
│ │ │ ├── background/
│ │ │ │ ├── index.js
│ │ │ │ └── persistStates.js
│ │ │ ├── panel/
│ │ │ │ └── index.js
│ │ │ └── window/
│ │ │ ├── index.js
│ │ │ └── instances.js
│ │ ├── service/
│ │ │ └── Monitor.js
│ │ └── stores/
│ │ ├── backgroundStore.js
│ │ ├── createStore.js
│ │ ├── enhancerStore.js
│ │ ├── panelStore.js
│ │ └── windowStore.js
│ └── browser/
│ ├── extension/
│ │ ├── background/
│ │ │ ├── contextMenus.js
│ │ │ ├── getPreloadedState.js
│ │ │ ├── index.js
│ │ │ ├── logging.js
│ │ │ └── openWindow.js
│ │ ├── chromeAPIMock.js
│ │ ├── devpanel/
│ │ │ └── index.js
│ │ ├── devtools/
│ │ │ └── index.js
│ │ ├── inject/
│ │ │ ├── contentScript.js
│ │ │ ├── deprecatedWarn.js
│ │ │ ├── index.js
│ │ │ ├── pageScript.js
│ │ │ └── pageScriptWrap.js
│ │ ├── manifest.json
│ │ ├── options/
│ │ │ ├── AllowToRunGroup.js
│ │ │ ├── ContextMenuGroup.js
│ │ │ ├── EditorGroup.js
│ │ │ ├── FilterGroup.js
│ │ │ ├── MiscellaneousGroup.js
│ │ │ ├── Options.js
│ │ │ ├── index.js
│ │ │ └── syncOptions.js
│ │ └── window/
│ │ ├── index.js
│ │ └── remote.js
│ ├── firefox/
│ │ └── manifest.json
│ └── views/
│ ├── devpanel.pug
│ ├── devtools.pug
│ ├── includes/
│ │ └── style.pug
│ ├── options.pug
│ ├── remote.pug
│ └── window.pug
├── test/
│ ├── .eslintrc
│ ├── app/
│ │ ├── containers/
│ │ │ └── App.spec.js
│ │ ├── inject/
│ │ │ ├── api.spec.js
│ │ │ └── enhancer.spec.js
│ │ └── setup.js
│ ├── chrome/
│ │ └── extension.spec.js
│ ├── electron/
│ │ ├── devpanel.spec.js
│ │ └── fixture/
│ │ ├── index.html
│ │ ├── main.js
│ │ ├── package.json
│ │ └── renderer.js
│ ├── perf/
│ │ ├── data.js
│ │ └── send.spec.js
│ └── utils/
│ ├── e2e.js
│ └── inject.js
└── webpack/
├── base.config.js
├── dev.config.js
├── prod.config.js
├── replace/
│ ├── JsonpMainTemplate.runtime.js
│ └── log-apply-result.js
└── wrap.config.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .babelrc
================================================
{
"presets": [ "es2015", "stage-0", "react" ],
"plugins": [ "add-module-exports", "transform-decorators-legacy" ]
}
================================================
FILE: .bookignore
================================================
src/
build/
dev/
examples/
npm-package/
test/
package.json
webpack/
================================================
FILE: .eslintignore
================================================
node_modules
build
dev
webpack/replace
examples
test/app/setup.js
npm-package
_book
================================================
FILE: .eslintrc
================================================
{
"extends": "eslint-config-airbnb",
"globals": {
"chrome": true,
"__DEVELOPMENT__": true
},
"env": {
"browser": true,
"node": true
},
"rules": {
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/jsx-quotes": 0,
"block-scoped-var": 0,
"padded-blocks": 0,
"quotes": [ 1, "single" ],
"comma-style": [ 2, "last" ],
"no-use-before-define": [0, "nofunc"],
"func-names": 0,
"prefer-const": 0,
"comma-dangle": 0,
"id-length": 0,
"indent": [2, 2, {"SwitchCase": 1}],
"new-cap": [2, { "capIsNewExceptions": ["Test"] }],
"default-case": 0
},
"plugins": [
"react"
]
}
================================================
FILE: .gitignore
================================================
node_modules
npm-debug.log
.DS_Store
.idea/
dist/
build/
dev/
tmp/
_book
================================================
FILE: .travis.yml
================================================
sudo: required
dist: trusty
language: node_js
node_js:
- "6"
cache:
directories:
- $HOME/.yarn-cache
- node_modules
env:
- CXX=g++-4.8
addons:
apt:
sources:
- google-chrome
- ubuntu-toolchain-r-test
packages:
- google-chrome-stable
- g++-4.8
install:
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
- npm install -g yarn
- yarn install
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start &
- sleep 3
script:
- yarn test
================================================
FILE: CHANGELOG.md
================================================
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
Every release, along with the migration instructions, is documented on the Github [Releases](https://github.com/zalmoxisus/redux-devtools-extension/releases) page.
================================================
FILE: CODE_OF_CONDUCT.md
================================================
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
================================================
FILE: LICENSE
================================================
The MIT License (MIT)
Copyright (c) 2015-present Mihail Diordiev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: README.md
================================================
⚠️⚠️⚠️🚨🚨🚨⚠️⚠️⚠️
## This repo is no longer the home of the redux-devtools-extension. The new home is https://github.com/reduxjs/redux-devtools. Please file your issues and PRs there.
⚠️⚠️⚠️🚨🚨🚨⚠️⚠️⚠️
# Redux DevTools Extension
[](https://gitter.im/zalmoxisus/redux-devtools-extension?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](http://makeapullrequest.com)
[](#backers)
[](#sponsors)

## Installation
### 1. For Chrome
- from [Chrome Web Store](https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd);
- or download `extension.zip` from [last releases](https://github.com/zalmoxisus/redux-devtools-extension/releases), unzip, open `chrome://extensions` url and turn on developer mode from top left and then click; on `Load Unpacked` and select the extracted folder for use
- or build it with `npm i && npm run build:extension` and [load the extension's folder](https://developer.chrome.com/extensions/getstarted#unpacked) `./build/extension`;
- or run it in dev mode with `npm i && npm start` and [load the extension's folder](https://developer.chrome.com/extensions/getstarted#unpacked) `./dev`.
### 2. For Firefox
- from [Mozilla Add-ons](https://addons.mozilla.org/en-US/firefox/addon/reduxdevtools/);
- or build it with `npm i && npm run build:firefox` and [load the extension's folder](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Temporary_Installation_in_Firefox) `./build/firefox` (just select a file from inside the dir).
### 3. For Electron
- just specify `REDUX_DEVTOOLS` in [`electron-devtools-installer`](https://github.com/GPMDP/electron-devtools-installer).
### 4. For other browsers and non-browser environment
- use [`remote-redux-devtools`](https://github.com/zalmoxisus/remote-redux-devtools).
## Usage
> Note that starting from v2.7, `window.devToolsExtension` was renamed to `window.__REDUX_DEVTOOLS_EXTENSION__` / `window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__`.
## 1. With Redux
### 1.1 Basic store
For a basic [Redux store](https://redux.js.org/api/createstore#createstorereducer-preloadedstate-enhancer) simply add:
```diff
const store = createStore(
reducer, /* preloadedState, */
+ window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
```
Note that [`preloadedState`](https://redux.js.org/api/createstore#createstorereducer-preloadedstate-enhancer) argument is optional in Redux's [`createStore`](https://redux.js.org/api/createstore#createstorereducer-preloadedstate-enhancer).
> For universal ("isomorphic") apps, prefix it with `typeof window !== 'undefined' &&`.
```js
const composeEnhancers = (typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) || compose;
```
> For TypeScript use [`redux-devtools-extension` npm package](#13-use-redux-devtools-extension-package-from-npm), which contains all the definitions, or just use `(window as any)` (see [Recipes](/docs/Recipes.md#using-in-a-typescript-project) for an example).
```js
const composeEnhancers = (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
```
In case ESLint is configured to not allow using the underscore dangle, wrap it like so:
```diff
+ /* eslint-disable no-underscore-dangle */
const store = createStore(
reducer, /* preloadedState, */
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
+ /* eslint-enable */
```
> **Note**: Passing enhancer as last argument requires **redux@>=3.1.0**. For older versions apply it like [here](https://github.com/zalmoxisus/redux-devtools-extension/blob/v0.4.2/examples/todomvc/store/configureStore.js) or [here](https://github.com/zalmoxisus/redux-devtools-extension/blob/v0.4.2/examples/counter/store/configureStore.js#L7-L12). Don't mix the old Redux API with the new one.
> You don't need to npm install [`redux-devtools`](https://github.com/gaearon/redux-devtools) when using the extension (that's a different lib).
### 1.2 Advanced store setup
If you setup your store with [middleware and enhancers](http://redux.js.org/docs/api/applyMiddleware.html), change:
```diff
import { createStore, applyMiddleware, compose } from 'redux';
+ const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
+ const store = createStore(reducer, /* preloadedState, */ composeEnhancers(
- const store = createStore(reducer, /* preloadedState, */ compose(
applyMiddleware(...middleware)
));
```
> Note that when the extension is not installed, we’re using Redux compose here.
To specify [extension’s options](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md), use it like so:
```js
const composeEnhancers =
typeof window === 'object' &&
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
// Specify extension’s options like name, actionsBlacklist, actionsCreators, serialize...
}) : compose;
const enhancer = composeEnhancers(
applyMiddleware(...middleware),
// other store enhancers if any
);
const store = createStore(reducer, enhancer);
```
> [See the post for more details](https://medium.com/@zalmoxis/improve-your-development-workflow-with-redux-devtools-extension-f0379227ff83).
### 1.3 Use `redux-devtools-extension` package from npm
To make things easier, there's an npm package to install:
```
npm install --save redux-devtools-extension
```
and to use like so:
```js
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
const store = createStore(reducer, composeWithDevTools(
applyMiddleware(...middleware),
// other store enhancers if any
));
```
To specify [extension’s options](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md#windowdevtoolsextensionconfig):
```js
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
const composeEnhancers = composeWithDevTools({
// Specify name here, actionsBlacklist, actionsCreators and other options if needed
});
const store = createStore(reducer, /* preloadedState, */ composeEnhancers(
applyMiddleware(...middleware),
// other store enhancers if any
));
```
> There’re just [few lines of code](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/npm-package/index.js) added to your bundle.
In case you don't include other enhancers and middlewares, just use `devToolsEnhancer`:
```js
import { createStore } from 'redux';
import { devToolsEnhancer } from 'redux-devtools-extension';
const store = createStore(reducer, /* preloadedState, */ devToolsEnhancer(
// Specify name here, actionsBlacklist, actionsCreators and other options if needed
));
```
### 1.4 Using in production
It's useful to include the extension in production as well. Usually you [can use it for development](https://medium.com/@zalmoxis/using-redux-devtools-in-production-4c5b56c5600f).
If you want to restrict it there, use `redux-devtools-extension/logOnlyInProduction`:
```js
import { createStore } from 'redux';
import { devToolsEnhancer } from 'redux-devtools-extension/logOnlyInProduction';
const store = createStore(reducer, /* preloadedState, */ devToolsEnhancer(
// options like actionSanitizer, stateSanitizer
));
```
or with middlewares and enhancers:
```js
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension/logOnlyInProduction';
const composeEnhancers = composeWithDevTools({
// options like actionSanitizer, stateSanitizer
});
const store = createStore(reducer, /* preloadedState, */ composeEnhancers(
applyMiddleware(...middleware),
// other store enhancers if any
));
```
> You'll have to add `'process.env.NODE_ENV': JSON.stringify('production')` in your Webpack config for the production bundle ([to envify](https://github.com/gaearon/redux-devtools/blob/master/docs/Walkthrough.md#exclude-devtools-from-production-builds)). If you use `create-react-app`, [it already does it for you.](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/config/webpack.config.prod.js#L253-L257)
If you're already checking `process.env.NODE_ENV` when creating the store, include `redux-devtools-extension/logOnly` for production environment.
If you don’t want to allow the extension in production, just use `redux-devtools-extension/developmentOnly`.
> See [the article](https://medium.com/@zalmoxis/using-redux-devtools-in-production-4c5b56c5600f) for more details.
### 1.5 For React Native, hybrid, desktop and server side Redux apps
For React Native we can use [`react-native-debugger`](https://github.com/jhen0409/react-native-debugger), which already included [the same API](https://github.com/jhen0409/react-native-debugger/blob/master/docs/redux-devtools-integration.md) with Redux DevTools Extension.
For most platforms, include [`Remote Redux DevTools`](https://github.com/zalmoxisus/remote-redux-devtools)'s store enhancer, and from the extension's context menu choose 'Open Remote DevTools' for remote monitoring.
## 2. Without Redux
See [integrations](docs/Integrations.md) and [the blog post](https://medium.com/@zalmoxis/redux-devtools-without-redux-or-how-to-have-a-predictable-state-with-any-architecture-61c5f5a7716f) for more details on how to use the extension with any architecture.
## Docs
- [Options (arguments)](docs/API/Arguments.md)
- [Methods (advanced API)](docs/API/Methods.md)
- [FAQ](docs/FAQ.md)
- Features
- [Trace actions calls](/docs/Features/Trace.md)
- [Troubleshooting](docs/Troubleshooting.md)
- [Articles](docs/Articles.md)
- [Videos](docs/Videos.md)
- [Feedback](docs/Feedback.md)
## Demo
Live demos to use the extension with:
- [Counter](http://zalmoxisus.github.io/examples/counter/)
- [TodoMVC](http://zalmoxisus.github.io/examples/todomvc/)
- [Redux Form](http://redux-form.com/6.5.0/examples/simple/)
- [React Tetris](https://chvin.github.io/react-tetris/?lan=en)
- [Book Collection (Angular ngrx store)](https://ngrx.github.io/platform/example-app/)
Also see [`./examples` folder](https://github.com/zalmoxisus/redux-devtools-extension/tree/master/examples).
## Backers
Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/redux-devtools-extension#backer)]
## Sponsors
Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/redux-devtools-extension#sponsor)]
## License
MIT
## Created By
If you like this, follow [@mdiordiev](https://twitter.com/mdiordiev) on twitter.
================================================
FILE: appveyor.yml
================================================
environment:
matrix:
- nodejs_version: '6'
cache:
- "%LOCALAPPDATA%/Yarn"
- node_modules
install:
- ps: Install-Product node $env:nodejs_version
- yarn install
test_script:
- node --version
- yarn --version
- yarn test
build: off
================================================
FILE: book.json
================================================
{
"gitbook": "3.2.2",
"title": "Redux DevTools Extension",
"plugins": ["edit-link", "prism", "-highlight", "github", "anchorjs"],
"pluginsConfig": {
"edit-link": {
"base": "https://github.com/zalmoxisus/redux-devtools-extension/tree/master",
"label": "Edit This Page"
},
"github": {
"url": "https://github.com/zalmoxisus/redux-devtools-extension/"
},
"sharing": {
"facebook": true,
"twitter": true
}
}
}
================================================
FILE: docs/API/Arguments.md
================================================
# Options
Use with
- `window.__REDUX_DEVTOOLS_EXTENSION__([options])`
- `window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__([options])()`
- `window.__REDUX_DEVTOOLS_EXTENSION__.connect([options])`
- `redux-devtools-extension` npm package:
```js
import { composeWithDevTools } from 'redux-devtools-extension';
const composeEnhancers = composeWithDevTools(options);
const store = createStore(reducer, /* preloadedState, */ composeEnhancers(
applyMiddleware(...middleware),
// other store enhancers if any
));
```
The `options` object is optional, and can include any of the following.
### `name`
*string* - the instance name to be shown on the monitor page. Default value is `document.title`. If not specified and there's no document title, it will consist of `tabId` and `instanceId`.
### `actionCreators`
*array* or *object* - action creators functions to be available in the Dispatcher. See [the example](https://github.com/zalmoxisus/redux-devtools-extension/commit/477e69d8649dfcdc9bf84dd45605dab7d9775c03).
### `latency`
*number (in ms)* - if more than one action is dispatched in the indicated interval, all new actions will be collected and sent at once. It is the joint between performance and speed. When set to `0`, all actions will be sent instantly. Set it to a higher value when experiencing perf issues (also `maxAge` to a lower value). Default is `500 ms`.
### `maxAge`
*number* (>1) - maximum allowed actions to be stored in the history tree. The oldest actions are removed once maxAge is reached. It's critical for performance. Default is `50`.
### `trace`
*boolean* or *function* - if set to `true`, will include stack trace for every dispatched action, so you can see it in trace tab jumping directly to that part of code ([more details](../Features/Trace.md)). You can use a function (with action object as argument) which should return `new Error().stack` string, getting the stack outside of reducers. Default to `false`.
### `traceLimit`
*number* - maximum stack trace frames to be stored (in case `trace` option was provided as `true`). By default it's `10`. Note that, because extension's calls are excluded, the resulted frames could be 1 less. If `trace` option is a function, `traceLimit` will have no effect, as it's supposed to be handled there.
### `serialize`
*boolean* or *object* which contains:
- **options** `object or boolean`:
- `undefined` - will use regular `JSON.stringify` to send data (it's the fast mode).
- `false` - will handle also circular references.
- `true` - will handle also date, regex, undefined, primitives, error objects, symbols, maps, sets and functions.
- object, which contains `date`, `regex`, `undefined`, `nan`, `infinity`, `error`, `symbol`, `map`, `set` and `function` keys. For each of them you can indicate if to include (by setting as `true`). For `function` key you can also specify a custom function which handles serialization. See [`jsan`](https://github.com/kolodny/jsan) for more details. Example:
```js
const store = Redux.createStore(reducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__({
serialize: {
options: {
undefined: true,
function: function(fn) { return fn.toString() }
}
}
}));
```
- **replacer** `function(key, value)` - [JSON `replacer` function](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter) used for both actions and states stringify.
Example of usage with [mori data structures](https://github.com/swannodette/mori):
```js
const store = Redux.createStore(reducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__({
serialize: {
replacer: (key, value) => value && mori.isMap(value) ? mori.toJs(value) : value
}
}));
```
In addition, you can specify a data type by adding a [`__serializedType__`](https://github.com/zalmoxisus/remotedev-serialize/blob/master/helpers/index.js#L4) key. So you can deserialize it back while importing or persisting data. Moreover, it will also [show a nice preview showing the provided custom type](https://cloud.githubusercontent.com/assets/7957859/21814330/a17d556a-d761-11e6-85ef-159dd12f36c5.png):
```js
const store = Redux.createStore(reducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__({
serialize: {
replacer: (key, value) => {
if (Immutable.List.isList(value)) { // use your custom data type checker
return {
data: value.toArray(), // ImmutableJS custom method to get JS data as array
__serializedType__: 'ImmutableList' // mark you custom data type to show and retrieve back
}
}
}
}
}));
```
- **reviver** `function(key, value)` - [JSON `reviver` function](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) used for parsing the imported actions and states. See [`remotedev-serialize`](https://github.com/zalmoxisus/remotedev-serialize/blob/master/immutable/serialize.js#L8-L41) as an example on how to serialize special data types and get them back:
```js
const store = Redux.createStore(reducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__({
serialize: {
reviver: (key, value) => {
if (typeof value === 'object' && value !== null && '__serializedType__' in value) {
switch (value.__serializedType__) {
case 'ImmutableList': return Immutable.List(value.data);
}
}
}
}
}));
```
- **immutable** `object` - automatically serialize/deserialize immutablejs via [remotedev-serialize](https://github.com/zalmoxisus/remotedev-serialize). Just pass the Immutable library like so:
```js
import Immutable from 'immutable'; // https://facebook.github.io/immutable-js/
// ...
// Like above, only showing off compose this time. Reminder you might not want this in prod.
const composeEnhancers = typeof window === 'object' && typeof window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ !== 'undefined' ?
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
serialize: {
immutable: Immutable
}
}) : compose;
```
It will support all ImmutableJS structures. You can even export them into a file and get them back. The only exception is `Record` class, for which you should pass in addition the references to your classes in `refs`.
- **refs** `array` - ImmutableJS `Record` classes used to make possible restore its instances back when importing, persisting... Example of usage:
``` js
import Immutable from 'immutable';
// ...
const ABRecord = Immutable.Record({ a:1, b:2 });
const myRecord = new ABRecord({ b:3 }); // used in the reducers
const store = createStore(rootReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__({
serialize: {
immutable: Immutable,
refs: [ABRecord]
}
}));
```
Also you can specify alternative values right in the state object (in the initial state of the reducer) by adding `toJSON` function:
In the example bellow it will always send `{ component: '[React]' }`, regardless of the state's `component` value (useful when you don't want to send lots of unnecessary data):
```js
function component(
state = { component: null, toJSON: () => ({ component: '[React]' }) },
action
) {
switch (action.type) {
case 'ADD_COMPONENT': return { component: action.component };
default: return state;
}
}
```
You could also alter the value. For example when state is `{ count: 1 }`, we'll send `{ counter: 10 }` (notice we don't have an arrow function this time to use the object's `this`):
```js
function counter(
state = { count: 0, toJSON: function (){ return { conter: this.count * 10 }; } },
action
) {
switch (action.type) {
case 'INCREMENT': return { count: state.count + 1 };
default: return state;
}
}
```
### `actionSanitizer` / `stateSanitizer`
- **actionSanitizer** (*function*) - function which takes `action` object and id number as arguments, and should return `action` object back. See the example bellow.
- **stateSanitizer** (*function*) - function which takes `state` object and index as arguments, and should return `state` object back.
Example of usage:
```js
const actionSanitizer = (action) => (
action.type === 'FILE_DOWNLOAD_SUCCESS' && action.data ?
{ ...action, data: '<>' } : action
);
const store = createStore(rootReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__({
actionSanitizer,
stateSanitizer: (state) => state.data ? { ...state, data: '<>' } : state
}));
```
### `actionsBlacklist` / `actionsWhitelist`
*string or array of strings as regex* - actions types to be hidden / shown in the monitors (while passed to the reducers). If `actionsWhitelist` specified, `actionsBlacklist` is ignored.
Example:
```js
createStore(reducer, remotedev({
sendTo: 'http://localhost:8000',
actionsBlacklist: 'SOME_ACTION'
// or actionsBlacklist: ['SOME_ACTION', 'SOME_OTHER_ACTION']
// or just actionsBlacklist: 'SOME_' to omit both
}))
```
### `predicate`
*function* - called for every action before sending, takes `state` and `action` object, and returns `true` in case it allows sending the current data to the monitor. Use it as a more advanced version of `actionsBlacklist`/`actionsWhitelist` parameters.
Example of usage:
```js
const store = createStore(rootReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__({
predicate: (state, action) => state.dev.logLevel === VERBOSE && !action.forwarded
}));
```
### `shouldRecordChanges`
*boolean* - if specified as `false`, it will not record the changes till clicking on `Start recording` button. Default is `true`. Available only for Redux enhancer, for others use `autoPause`.
### `pauseActionType`
*string* - if specified, whenever clicking on `Pause recording` button and there are actions in the history log, will add this action type. If not specified, will commit when paused. Available only for Redux enhancer. Default is `@@PAUSED`.
### `autoPause`
*boolean* - auto pauses when the extension’s window is not opened, and so has zero impact on your app when not in use. Not available for Redux enhancer (as it already does it but storing the data to be sent). Default is `false`.
### `shouldStartLocked`
*boolean* - if specified as `true`, it will not allow any non-monitor actions to be dispatched till clicking on `Unlock changes` button. Available only for Redux enhancer. Default is `false`.
### `shouldHotReload`
*boolean* - if set to `false`, will not recompute the states on hot reloading (or on replacing the reducers). Available only for Redux enhancer. Default to `true`.
### `shouldCatchErrors`
*boolean* - if specified as `true`, whenever there's an exception in reducers, the monitors will show the error message, and next actions will not be dispatched.
### `features`
If you want to restrict the extension, just specify the features you allow:
```js
const composeEnhancers = composeWithDevTools({
features: {
pause: true, // start/pause recording of dispatched actions
lock: true, // lock/unlock dispatching actions and side effects
persist: true, // persist states on page reloading
export: true, // export history of actions in a file
import: 'custom', // import history of actions from a file
jump: true, // jump back and forth (time travelling)
skip: true, // skip (cancel) actions
reorder: true, // drag and drop actions in the history list
dispatch: true, // dispatch custom actions or action creators
test: true // generate tests for the selected actions
},
// other options like actionSanitizer, stateSanitizer
});
```
If not specified, all of the features are enabled. When set as an object, only those included as `true` will be allowed.
Note that except `true`/`false`, `import` and `export` can be set as `custom` (which is by default for Redux enhancer), meaning that the importing/exporting occurs on the client side. Otherwise, you'll get/set the data right from the monitor part.
================================================
FILE: docs/API/Methods.md
================================================
## Communicate with the extension directly
> Note this is advanced API, which you usually don't need to use with Redux enhancer.
Use the following methods of `window.__REDUX_DEVTOOLS_EXTENSION__`:
- [connect](#connect)
- [disconnect](#disconnect)
- [send](#send)
- [listen](#listen)
- [open](#open)
- [notifyErrors](#notifyerrors)
### connect([options])
##### Arguments
- [`options`] *Object* - [see the available options](Arguments.md).
##### Returns
*Object* containing the following methods:
- `subscribe(listener)` - adds a change listener. It will be called any time an action is dispatched from the monitor. Returns a function to unsubscribe the current listener.
- `unsubscribe()` - unsubscribes all listeners.
- `send(action, state)` - sends a new action and state manually to be shown on the monitor. If action is `null` then we suppose we send `liftedState`.
- `init(state)` - sends the initial state to the monitor.
- `error(message)` - sends the error message to be shown in the extension's monitor.
Example of usage:
```js
const devTools = window.__REDUX_DEVTOOLS_EXTENSION__.connect(config);
devTools.subscribe((message) => {
if (message.type === 'DISPATCH' && message.state) {
console.log('DevTools requested to change the state to', message.state);
}
});
devTools.init({ value: 'initial state' });
devTools.send('change state', { value: 'state changed' })
```
See [redux enhancer's example](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/npm-package/logOnly.js), [react example](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/examples/react-counter-messaging/components/Counter.js) and [blog post](https://medium.com/@zalmoxis/redux-devtools-without-redux-or-how-to-have-a-predictable-state-with-any-architecture-61c5f5a7716f) for more details.
### disconnect()
Remove extensions listener and disconnect extensions background script connection. Usually just unsubscribing the listener inside the `connect` is enough.
### send(action, state, [options, instanceId])
Send a new action and state manually to be shown on the monitor. It's recommended to use [`connect`](connect), unless you want to hook into an already created instance.
##### Arguments
- `action` *String* (action type) or *Object* with required `type` key.
- `state` *any* - usually object to expand.
- [`options`] *Object* - [see the available options](Arguments.md).
- [`instanceId`] *String* - instance id for which to include the log. If not specified and not present in the `options` object, will be the first available instance.
### listen(onMessage, instanceId)
Listen for messages dispatched for specific `instanceId`. For most cases it's better to use `subcribe` inside the [`connect`](connect).
##### Arguments
- `onMessage` *Function* to call when there's an action from the monitor.
- `instanceId` *String* - instance id for which to handle actions.
### open([position])
Open the extension's window. This should be conditional (usually you don't need to open extension's window automatically).
##### Arguments
- [`position`] *String* - window position: `left`, `right`, `bottom`. Also can be `panel` to [open it in a Chrome panel](../FAQ.md#how-to-keep-devtools-window-focused-all-the-time-in-a-chrome-panel). Or `remote` to [open remote monitor](../FAQ.md#how-to-get-it-work-with-webworkers-react-native-hybrid-desktop-and-server-side-apps). By default is `left`.
### notifyErrors([onError])
When called, the extension will listen for uncaught exceptions on the page, and, if any, will show native notifications. Optionally, you can provide a function to be called when an exception occurs.
##### Arguments
- [`onError`] *Function* to call when there's an exceptions.
================================================
FILE: docs/API/README.md
================================================
# API Reference
- [Parameters](Arguments.md)
- [Methods](Methods.md)
================================================
FILE: docs/Articles.md
================================================
# Articles
- [Improve your development workflow with Redux DevTools Extension](https://medium.com/@zalmoxis/improve-your-development-workflow-with-redux-devtools-extension-f0379227ff83)
- [Using Redux DevTools in production](https://medium.com/@zalmoxis/using-redux-devtools-in-production-4c5b56c5600f)
- [Redux DevTools without Redux](https://medium.com/@zalmoxis/redux-devtools-without-redux-or-how-to-have-a-predictable-state-with-any-architecture-61c5f5a7716f)
================================================
FILE: docs/Credits.md
================================================
# Credits
- Built using [Crossbuilder](https://github.com/zalmoxisus/crossbuilder) boilerplate.
- Includes [Dan Abramov](https://github.com/gaearon)'s [redux-devtools](https://github.com/gaearon/redux-devtools) and the following monitors:
- [Log Monitor](https://github.com/gaearon/redux-devtools-log-monitor)
- [Inspector](https://github.com/alexkuz/redux-devtools-inspector)
- [Dispatch](https://github.com/YoruNoHikage/redux-devtools-dispatch)
- [Slider](https://github.com/calesce/redux-slider-monitor)
- [Chart](https://github.com/romseguy/redux-devtools-chart-monitor)
- [The logo icon](https://github.com/reactjs/redux/issues/151) made by [Keith Yong](https://github.com/keithyong) .
- Examples from [Redux](https://github.com/rackt/redux/tree/master/examples).
================================================
FILE: docs/FAQ.md
================================================
# Redux DevTools Extension FAQ
## Table of Contents
- [How to get it work](#how-to-get-it-work)
- [How to disable/enable it in production](#how-to-disable-it-in-production)
- [How to persist debug sessions across page reloads](#how-to-persist-debug-sessions-across-page-reloads)
- [How to open DevTools programmatically](#how-to-open-devtools-programmatically)
- [How to enable/disable errors notifying](#how-to-enabledisable-errors-notifying)
- [How to get it work with WebWorkers, React Native, hybrid, desktop and server side apps](#how-to-get-it-work-with-webworkers-react-native-hybrid-desktop-and-server-side-apps)
- [Keyboard shortcuts](#keyboard-shortcuts)
#### How to get it work
- Check the extension with [Counter](http://zalmoxisus.github.io/examples/counter/) or [TodoMVC](http://zalmoxisus.github.io/examples/todomvc/) demo.
- Reload the extension on the extensions page (`chrome://extensions/`).
- If something goes wrong, [open an issue](https://github.com/zalmoxisus/redux-devtools-extension/issues) or tweet me: [@mdiordiev](https://twitter.com/mdiordiev).
#### How to disable it in production
Usually you don't have to. See [the article for details on how to include it in production](https://medium.com/@zalmoxis/using-redux-devtools-in-production-4c5b56c5600f).
#### How to persist debug sessions across page reloads
Just click the `Persist` button or add `?debug_session=` to the url.
#### How to open DevTools programmatically
```js
window.__REDUX_DEVTOOLS_EXTENSION__.open();
```
Make sure to have it conditionally. Auto opening windows is a bad DX. See the [API](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Methods.md#open) for details.
#### How to enable/disable errors notifying
Just find `Redux DevTools` on the extensions page (`chrome://extensions/`) and click the `Options` link to customize everything. The errors notifying is disabled by default. If enabled, it works only when the store enhancer is called (in order not to show notifications for any sites you visit). In case you want notifications for a non-redux app, init it explicitly by calling `window.__REDUX_DEVTOOLS_EXTENSION__.notifyErrors()` (probably you'll check if `window.__REDUX_DEVTOOLS_EXTENSION__` exists before calling it).
#### How to get it work with WebWorkers, React Native, hybrid, desktop and server side apps
It is not possible to inject extension's script there and to communicate directly. To solve this, use [Remote Redux DevTools](https://github.com/zalmoxisus/remote-redux-devtools). After including it inside the app, click `Remote` button for remote monitoring.
#### Keyboard shortcuts
To set/change the keyboard shortcuts, click "Keyboard shortcuts" button on the bottom of the extensions page (`chrome://extensions/`). By default only `Cmd` (`Ctrl`) + `Shift` + `E` is available, which will open the extension popup (only when the Redux store is available in the current page).
================================================
FILE: docs/Features/Trace.md
================================================
## Trace actions calls

One of the features of Redux DevTools is to select an action in the history and see the callstack that triggered it. It aims to solve the problem of finding the source of events in the event list.
By default it's disabled as, depending of the use case, generating and serializing stack traces for every action can impact the performance. To enable it, set `trace` option to `true` as in [examples](https://github.com/zalmoxisus/redux-devtools-extension/commit/64717bb9b3534ff616d9db56c2be680627c7b09d). See [the API](../API/Arguments.md#trace) for more details.
For some edge cases where stack trace cannot be obtained with just `Error().stack`, you can pass a function as `trace` with your implementation. It's useful for cases where the stack is broken, like, for example, [when calling `setTimeout`](https://github.com/zalmoxisus/redux-devtools-instrument/blob/e7c05c98e7e9654cb7db92a2f56c6b5f3ff2452b/test/instrument.spec.js#L735-L737). It takes `action` object as argument and should return `stack` string. This way it can be also used to provide stack conditionally only for certain actions.
There's also an optional `traceLimit` parameter, which is `10` by default, to prevent consuming too much memory and serializing large stacks and also allows you to get larger stacks than limited by the browser (it will overpass default limit of `10` imposed by Chrome in `Error.stackTraceLimit`). If `trace` option is a function, `traceLimit` will have no effect, that should be handled there like so: `trace: () => new Error().stack.split('\n').slice(0, limit+1).join('\n')` (`+1` is needed for Chrome where's an extra 1st frame for `Error\n`).
Apart from opening resources in Chrome DevTools, as seen in the demo above, it can open the file (and jump to the line-column) right in your editor. Pretty useful for debugging, and also as an alternative when it's not possible to use openResource (for Firefox or when using the extension from window or for remote debugging). You can click Settings button and enable that, also adding the path to your project root directory to use. It works out of the box for VSCode, Atom, Webstorm/Phpstorm/IntelliJ, Sublime, Emacs, MacVim, Textmate on Mac and Windows. For Linux you can use [`atom-url-handler`](https://github.com/eclemens/atom-url-handler).
================================================
FILE: docs/Feedback.md
================================================
# Feedback wanted
[File an issue](https://github.com/zalmoxisus/redux-devtools-extension/issues) or [submit a PR](https://github.com/zalmoxisus/redux-devtools-extension/pulls) if you have suggestions, rate us and leave a review on [Chrome Store](https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd/reviews), post feature requests and bug reports on [Product Pains](https://productpains.com/product/redux-devtools-extension), or ping me on Twitter as [@mdiordiev](https://twitter.com/mdiordiev).
================================================
FILE: docs/Integrations.md
================================================
# Integrations for js and non-js frameworks
Mostly functional:
- [React](#react)
- [Angular](#angular)
- [Cycle](#cycle)
- [Ember](#ember)
- [Fable](#fable)
- [Freezer](#freezer)
- [Mobx](#mobx)
- [PureScript](#purescript)
- [Reductive](#reductive)
- [Aurelia](#aurelia)
In progress:
- [ClojureScript](#clojurescript)
- [Horizon](#horizon)
- [Python](#python)
- [Swift](#swift)
### [React](https://github.com/facebook/react)
#### Inspect React props
##### [`react-inspect-props`](https://github.com/lucasconstantino/react-inspect-props)
```js
import { compose, withState } from 'recompose'
import { inspectProps } from 'react-inspect-props'
compose(
withState('count', 'setCount', 0),
inspectProps('Counter inspector')
)(Counter)
```
#### Inspect React states
##### [`remotedev-react-state`](https://github.com/jhen0409/remotedev-react-state)
```js
import connectToDevTools from 'remotedev-react-state'
componentWillMount() {
// Connect to devtools after setup initial state
connectToDevTools(this/*, options */)
}
```
#### Inspect React hooks (useState and useReducer)
##### [`reinspect`](https://github.com/troch/reinspect)
```js
import { useState } from 'reinspect'
export function CounterWithUseState({ id }) {
const [count, setCount] = useState(0, id)
// ...
}
```
### [Mobx](https://github.com/mobxjs/mobx)
#### [`mobx-remotedev`](https://github.com/zalmoxisus/mobx-remotedev)
```js
import remotedev from 'mobx-remotedev';
// or import remotedev from 'mobx-remotedev/lib/dev'
// in case you want to use it in production or don't have process.env.NODE_ENV === 'development'
const appStore = observable({
// ...
});
// Or
class appStore {
// ...
}
export default remotedev(appStore);
````
### [Angular](https://github.com/angular/angular)
#### [ng2-redux](https://github.com/angular-redux/ng2-redux)
```js
import { NgReduxModule, NgRedux, DevToolsExtension } from 'ng2-redux';
@NgModule({
/* ... */
imports: [ /* ... */, NgReduxModule ]
})export class AppModule {
constructor(
private ngRedux: NgRedux,
private devTools: DevToolsExtension) {
let enhancers = [];
// ... add whatever other enhancers you want.
// You probably only want to expose this tool in devMode.
if (__DEVMODE__ && devTools.isEnabled()) {
enhancers = [ ...enhancers, devTools.enhancer() ];
}
this.ngRedux.configureStore(
rootReducer,
initialState,
[],
enhancers);
}
}
```
For Angular 1 see [ng-redux](https://github.com/angular-redux/ng-redux).
#### [Angular @ngrx/store](https://ngrx.io/) + [`@ngrx/store-devtools`](https://ngrx.io/guide/store-devtools)
```js
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
@NgModule({
imports: [
StoreModule.forRoot(rootReducer),
// Instrumentation must be imported after importing StoreModule (config is optional)
StoreDevtoolsModule.instrument({
maxAge: 5
})
]
})
export class AppModule { }
```
[`Example of integration`](https://github.com/ngrx/platform/tree/master/projects/example-app/) ([live demo](https://ngrx.github.io/platform/example-app/)).
### [Ember](http://emberjs.com/)
#### [`ember-redux`](https://github.com/ember-redux/ember-redux)
```js
//app/enhancers/index.js
import { compose } from 'redux';
var devtools = window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__() : f => f;
export default compose(devtools);
```
### [Cycle](https://github.com/cyclejs/cyclejs)
#### [`@culli/store`](https://github.com/milankinen/culli/tree/master/packages/store)
```js
import {run} from "@cycle/most-run"
import {makeDOMDriver as DOM} from "@cycle/dom"
import Store, {ReduxDevtools} from "@culli/store"
import App, {newId} from "./App"
run(App, {
DOM: DOM("#app"),
Store: Store(ReduxDevtools({items: [{id: newId(), num: 0}, {id: newId(), num: 0}]}))
})
```
### [Freezer](https://github.com/arqex/freezer)
#### [`freezer-redux-devtools`](https://github.com/arqex/freezer-redux-devtools)
```js
import React, { Component } from 'react';
import { supportChromeExtension } from 'freezer-redux-devtools/freezer-redux-middleware';
import Freezer from 'freezer-js';
// Our state is a freezer object
var State = new Freezer({hello: 'world'});
// Enable the extension
supportChromeExtension( State );
```
### [Horizon](https://github.com/rethinkdb/horizon)
#### [`horizon-remotedev`](https://github.com/zalmoxisus/horizon-remotedev)
```js
// import hzRemotedev from 'horizon-remotedev';
// or import hzRemotedev from 'horizon-remotedev/lib/dev'
// in case you want to use it in production or don't have process.env.NODE_ENV === 'development'
//Setup Horizon connection
const horizon = Horizon();
// ...
// Specify the horizon instance to monitor
hzRemotedev(horizon("react_messages"))
```
### [Fable](https://github.com/fable-compiler/Fable)
#### [`fable-elmish/debugger`](https://github.com/fable-elmish/debugger)
```fsharp
open Elmish.Debug
Program.mkProgram init update view
|> Program.withDebugger // connect to a devtools monitor via Chrome extension if available
|> Program.run
```
or
```fsharp
open Elmish.Debug
Program.mkProgram init update view
|> Program.withDebuggerAt (Remote("localhost",8000)) // connect to a server running on localhost:8000
|> Program.run
```
### [PureScript](https://github.com/purescript/purescript)
#### [`purescript-react-redux`](https://github.com/ethul/purescript-react-redux)
[`Example of integration`](https://github.com/ethul/purescript-react-redux-example).
### [ClojureScript](https://github.com/clojure/clojurescript)
[`Example of integration`](http://gitlab.xet.ru:9999/publicpr/clojurescript-redux/tree/master#dev-setup)
### [Python](https://www.python.org/)
#### [`pyredux`](https://github.com/peterpeter5/pyredux)
[WIP](https://github.com/zalmoxisus/remotedev-server/issues/34)
### [Swift](https://github.com/apple/swift)
#### [`katanaMonitor`](https://github.com/bolismauro/katanaMonitor-lib-swift) for [`katana-swift`](https://github.com/BendingSpoons/katana-swift)
```swift
import KatanaMonitor
var middleware: [StoreMiddleware] = [
// other middleware
]
#if DEBUG
middleware.append(MonitorMiddleware.create(using: .defaultConfiguration))
#endif
```
### [Reductive](https://github.com/reasonml-community/reductive)
#### [`reductive-dev-tools`](https://github.com/ambientlight/reductive-dev-tools)
```reason
let storeEnhancer =
ReductiveDevTools.(
Connectors.reductiveEnhancer(
Extension.enhancerOptions(~name="MyApp", ()),
)
);
let storeCreator = storeEnhancer @@ Reductive.Store.create;
```
### [Aurelia](http://aurelia.io)
#### [`aurelia-store`](https://aurelia.io/docs/plugins/store)
```ts
import {Aurelia} from 'aurelia-framework';
import {initialState} from './state';
export function configure(aurelia: Aurelia) {
aurelia.use
.standardConfiguration()
.feature('resources');
...
aurelia.use.plugin('aurelia-store', {
initialState,
devToolsOptions: { // optional
... // see https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md
},
});
aurelia.start().then(() => aurelia.setRoot());
}
```
================================================
FILE: docs/README.md
================================================
# Documentation
* [Extension](/README.md)
* [Installation](/README.md#installation)
* [Usage](/README.md#usage)
* [Demo](/README.md#demo)
* [API Reference](/docs/API/README.md)
* [Options (arguments)](/docs/API/Arguments.md)
* [Methods (advanced API)](/docs/API/Methods.md)
* Features
* [Trace actions calls](/docs/Features/Trace.md)
* [Integrations](/docs/Integrations.md)
* [FAQ](/docs/FAQ.md)
* [Troubleshooting](/docs/Troubleshooting.md)
* [Recipes](/docs/Recipes.md)
* [Articles](/docs/Articles.md)
* [Videos](/docs/Videos.md)
* [Credits](/docs/Credits.md)
* [Support us](/README.md#backers)
* [Feedback](/docs/Feedback.md)
* [Change Log](https://github.com/zalmoxisus/redux-devtools-extension/releases)
================================================
FILE: docs/Recipes.md
================================================
# Recipes
### Using in a typescript project
The recommended way is to use [`redux-devtools-extension` npm package](/README.md#13-use-redux-devtools-extension-package-from-npm), which contains all typescript definitions. Or you can just use `window as any`:
```js
const store = createStore(
rootReducer,
initialState,
(window as any).__REDUX_DEVTOOLS_EXTENSION__ &&
(window as any).__REDUX_DEVTOOLS_EXTENSION__()
);
```
Note that you many need to set `no-any` to false in your `tslint.json` file.
Alternatively you can use typeguard in order to avoid
casting to any.
```typescript
import { createStore, StoreEnhancer } from "redux";
// ...
type WindowWithDevTools = Window & {
__REDUX_DEVTOOLS_EXTENSION__: () => StoreEnhancer
}
const isReduxDevtoolsExtenstionExist =
(arg: Window | WindowWithDevTools):
arg is WindowWithDevTools => {
return '__REDUX_DEVTOOLS_EXTENSION__' in arg;
}
// ...
const store = createStore(rootReducer, initialState,
isReduxDevtoolsExtenstionExist(window) ?
window.__REDUX_DEVTOOLS_EXTENSION__() : undefined)
```
### Export from browser console or from application
```js
store.liftedStore.getState()
```
The extension is not sharing `store` object, so you should take care of that.
### Applying multiple times with different sets of options
We're [not allowing that from instrumentation part](https://github.com/zalmoxisus/redux-devtools-instrument/blob/master/src/instrument.js#L676), because that would re-dispatch every app action in case we'd have many liftedStores, but there's [a helper for logging only](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/npm-package/logOnly.js), which can be used it like so:
```js
import { createStore, compose } from 'redux';
import { devToolsEnhancer } from 'redux-devtools-extension/logOnly';
const store = createStore(reducer, /* preloadedState, */ compose(
devToolsEnhancer({
instaceID: 1,
name: 'Blacklisted',
actionsBlacklist: '...'
}),
devToolsEnhancer({
instaceID: 2,
name: 'Whitelisted',
actionsWhitelist: '...'
})
));
```
================================================
FILE: docs/Troubleshooting.md
================================================
# Troubleshooting
### I just see empty log or "No store found"
Make sure you [applied the enhancer](https://github.com/zalmoxisus/redux-devtools-extension#2-use-with-redux). Note that passing enhancer as last argument requires redux@>=3.1.0. For older versions apply it like [here](https://github.com/zalmoxisus/redux-devtools-extension/blob/v0.4.2/examples/todomvc/store/configureStore.js) or [here](https://github.com/zalmoxisus/redux-devtools-extension/blob/v0.4.2/examples/counter/store/configureStore.js#L7-L12).
Don't mix the old Redux API with the new one. Pass enhancers and applyMiddleware as last createStore argument.
### Access file url (`file:///`)
If you develop on your local filesystem, make sure to allow Redux DevTools access to `file:///` URLs in the settings of this extension:
### It shows only the `@@INIT` action or moving back and forth doesn't update the state
Most likely you mutate the state. Check it by [adding `redux-immutable-state-invariant` middleware](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/examples/counter/store/configureStore.js#L3).
### @@INIT or REPLACE action resets the state of the app or last actions RE-APPLIED
`@@redux/REPLACE` (or `@@INIT`) is used internally when the application is hot reloaded. When you use `store.replaceReducer` the effect will be the same as for hot-reloading, where the extension is recomputing all the history again. To avoid that set [`shouldHotReload`](/docs/API/Arguments.md#shouldhotreload) parameter to `false`.
### It doesn't work with other store enhancers
Usually the extension's store enhancer should be last in the compose. When you're using [`window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__`](/README.md#12-advanced-store-setup) or [`composeWithDevTools`](/README.md#13-use-redux-devtools-extension-package-from-npm) helper you don't have to worry about the enhancers order. However some enhancers ([like `redux-batched-subscribe`](https://github.com/zalmoxisus/redux-devtools-extension/issues/261)) also have this requirement to be the last in the compose. In this case you can use it like so:
```js
const store = createStore(reducer, preloadedState, compose(
// applyMiddleware(thunk),
window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__() : noop => noop,
batchedSubscribe(/* ... */)
));
```
Where `batchedSubscribe` is `redux-batched-subscribe` store enhancer.
### Excessive use of memory and CPU
That is happening due to serialization of some huge objects included in the state or action. The solution is to [sanitize them](/docs/API/Arguments.md#actionsanitizer--statesanitizer).
You can do that by including/omitting data containing specific values, having specific types... In the example below we're omitting parts of action and state objects with the key `data` (in case of action only when was dispatched action `FILE_DOWNLOAD_SUCCESS`):
```js
const actionSanitizer = (action) => (
action.type === 'FILE_DOWNLOAD_SUCCESS' && action.data ?
{ ...action, data: '<>' } : action
);
const store = createStore(rootReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__({
actionSanitizer,
stateSanitizer: (state) => state.data ? { ...state, data: '<>' } : state
}));
```
There's a more advanced [example on how to implement that for `ui-router`](https://github.com/zalmoxisus/redux-devtools-extension/issues/455#issuecomment-404538385).
The extension is in different process and cannot access the store object directly, unlike vanilla [`redux-devtools`](https://github.com/reduxjs/redux-devtools) which doesn't have this issue. In case sanitizing doesn't fit your use case, you might consider including it directly as a react component, so there will be no need to serialize the data, but it would add some complexity.
### It fails to serialize data when [passing synthetic events](https://github.com/zalmoxisus/redux-devtools-extension/issues/275) or [calling an action directly with `redux-actions`](https://github.com/zalmoxisus/redux-devtools-extension/issues/287)
React synthetic event cannot be reused for performance reason. So, it's not possible to serialize event objects you pass to action payloads.
1. The best solution is **not to pass the whole event object to reducers, but the data you need**:
```diff
function click(event) {
return {
type: ELEMENT_CLICKED,
- event: event
+ value: event.target.value
};
}
```
2. If you cannot pick data from the event object or, for some reason, you need the whole object, use `event.persist()` as suggested in [React Docs](https://facebook.github.io/react/docs/events.html#event-pooling), but it will consume RAM while not needed.
```diff
function increment(event) {
+ event.persist();
return {
type: ELEMENT_CLICKED,
event: event,
};
}
```
3. A workaround, to pass the whole object and at the same time not to persist it, is to override this key of the stringified payload in your action creator. Add a custom `toJSON` function right in the action object (which will be called by the extension before accessing the object):
```diff
function increment(event) {
return {
type: ELEMENT_CLICKED,
event: event,
+ toJSON: function (){
+ return { ...this, event: '[Event]' };
+ }
};
}
```
Note that it shouldn't be arrow function as we want to have access to the function's `this`.
As we don't have access to the original object, skipping and recomputing actions during hot reloading will not work in this case. We recommend to use the first solution whenever possible.
### Symbols or other unserializable data not shown
To get data which cannot be serialized by `JSON.stringify`, set [`serialize` parameter](/docs/API/Arguments.md#serialize):
```js
const store = Redux.createStore(reducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__({
serialize: true
}));
```
It will handle also date, regex, undefined, error objects, symbols, maps, sets and functions.
================================================
FILE: docs/Videos.md
================================================
# Videos
- [Debugging flux applications in production at React Europe 2016](https://youtu.be/YU8jQ2HtqH4)
- [Hot Reloading with Time Travel at React Europe 2015](https://youtu.be/xsSnOQynTHs)
- [Getting Started with Redux DevTools Extension](https://egghead.io/lessons/javascript-getting-started-with-redux-dev-tools)
- [React & Redux With ExpressJS](https://www.youtube.com/watch?v=6ygcbRpZFR4)
================================================
FILE: examples/buildAll.js
================================================
/**
* Runs an ordered set of commands within each of the build directories.
*/
import fs from 'fs';
import path from 'path';
import { spawnSync } from 'child_process';
var exampleDirs = fs.readdirSync(__dirname).filter((file) => {
return fs.statSync(path.join(__dirname, file)).isDirectory();
});
// Ordering is important here. `npm install` must come first.
var cmdArgs = [
{ cmd: 'npm', args: ['install'] },
{ cmd: 'webpack', args: ['index.js'] }
];
for (const dir of exampleDirs) {
for (const cmdArg of cmdArgs) {
// declare opts in this scope to avoid https://github.com/joyent/node/issues/9158
const opts = {
cwd: path.join(__dirname, dir),
stdio: 'inherit'
};
let result = {};
if (process.platform === 'win32') {
result = spawnSync(cmdArg.cmd + '.cmd', cmdArg.args, opts);
} else {
result = spawnSync(cmdArg.cmd, cmdArg.args, opts);
}
if (result.status !== 0) {
throw new Error('Building examples exited with non-zero');
}
}
}
================================================
FILE: examples/counter/.babelrc
================================================
{
"presets": [ "es2015", "stage-0", "react" ]
}
================================================
FILE: examples/counter/actions/counter.js
================================================
export const INCREMENT_COUNTER = 'INCREMENT_COUNTER';
export const DECREMENT_COUNTER = 'DECREMENT_COUNTER';
let t;
export function increment() {
return {
type: INCREMENT_COUNTER
};
}
export function decrement() {
return {
type: DECREMENT_COUNTER
};
}
export function autoIncrement(delay = 10) {
return dispatch => {
if (t) {
clearInterval(t);
t = undefined;
return;
}
t = setInterval(() => {
dispatch(increment());
}, delay);
};
}
export function incrementAsync(delay = 1000) {
return dispatch => {
setTimeout(() => {
dispatch(increment());
}, delay);
};
}
================================================
FILE: examples/counter/components/Counter.js
================================================
import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Counter extends Component {
render() {
const { increment, autoIncrement, incrementAsync, decrement, counter } = this.props;
return (
Clicked: {counter} times
{' '}
{' '}
{' '}
{' '}
);
}
}
Counter.propTypes = {
increment: PropTypes.func.isRequired,
autoIncrement: PropTypes.func.isRequired,
incrementAsync: PropTypes.func.isRequired,
decrement: PropTypes.func.isRequired,
counter: PropTypes.number.isRequired
};
export default Counter;
================================================
FILE: examples/counter/containers/App.js
================================================
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/counter';
function mapStateToProps(state) {
return {
counter: state.counter
};
}
function mapDispatchToProps(dispatch) {
return bindActionCreators(CounterActions, dispatch);
}
export default connect(mapStateToProps, mapDispatchToProps)(Counter);
================================================
FILE: examples/counter/index.html
================================================
Redux counter example
================================================
FILE: examples/counter/index.js
================================================
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
render(
,
document.getElementById('root')
);
================================================
FILE: examples/counter/package.json
================================================
{
"name": "redux-counter-example",
"version": "0.0.0",
"description": "Redux counter example",
"scripts": {
"start": "node server.js",
"test": "NODE_ENV=test mocha --recursive --compilers js:babel-core/register --require ./test/setup.js",
"test:watch": "npm test -- --watch"
},
"repository": {
"type": "git",
"url": "https://github.com/rackt/redux.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/rackt/redux/issues"
},
"homepage": "http://rackt.github.io/redux",
"dependencies": {
"prop-types": "^15.6.2",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-redux": "^6.0.0",
"redux": "^4.0.1",
"redux-devtools-extension": "^2.13.7",
"redux-thunk": "^2.3.0"
},
"devDependencies": {
"babel-cli": "^6.3.17",
"babel-core": "^6.3.17",
"babel-loader": "^7.0.0",
"babel-preset-es2015": "^6.0.0",
"babel-preset-react": "6.3.13",
"babel-preset-stage-0": "^6.3.13",
"express": "^4.13.3",
"redux-immutable-state-invariant": "^2.1.0",
"webpack": "^4.0.0",
"webpack-dev-server": "^3.0.0",
"webpack-hot-middleware": "^2.2.0"
}
}
================================================
FILE: examples/counter/reducers/counter.js
================================================
import { INCREMENT_COUNTER, DECREMENT_COUNTER } from '../actions/counter';
export default function counter(state = 0, action) {
switch (action.type) {
case INCREMENT_COUNTER:
return state + 1;
case DECREMENT_COUNTER:
return state - 1;
default:
return state;
}
}
================================================
FILE: examples/counter/reducers/index.js
================================================
import { combineReducers } from 'redux';
import counter from './counter';
const rootReducer = combineReducers({
counter
});
export default rootReducer;
================================================
FILE: examples/counter/server.js
================================================
var webpack = require('webpack');
var webpackDevMiddleware = require('webpack-dev-middleware');
var webpackHotMiddleware = require('webpack-hot-middleware');
var config = require('./webpack.config');
var app = new require('express')();
var port = 4001;
var compiler = webpack(config);
app.use(webpackDevMiddleware(compiler, { noInfo: true, publicPath: config.output.publicPath }));
app.use(webpackHotMiddleware(compiler));
app.get("/", function(req, res) {
res.sendFile(__dirname + '/index.html');
});
app.listen(port, function(error) {
if (error) {
console.error(error);
} else {
console.info("==> 🌎 Listening on port %s. Open up http://localhost:%s/ in your browser.", port, port);
}
});
================================================
FILE: examples/counter/store/configureStore.js
================================================
import { createStore, applyMiddleware, compose } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import thunk from 'redux-thunk';
import invariant from 'redux-immutable-state-invariant';
import reducer from '../reducers';
import * as actionCreators from '../actions/counter';
export default function configureStore(preloadedState) {
const composeEnhancers = composeWithDevTools({ actionCreators, trace: true, traceLimit: 25 });
const store = createStore(reducer, preloadedState, composeEnhancers(
applyMiddleware(invariant(), thunk)
));
if (module.hot) {
// Enable Webpack hot module replacement for reducers
module.hot.accept('../reducers', () => {
store.replaceReducer(require('../reducers').default)
});
}
return store;
}
================================================
FILE: examples/counter/test/actions/counter.spec.js
================================================
import expect from 'expect';
import { applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import * as actions from '../../actions/counter';
const middlewares = [thunk];
/*
* Creates a mock of Redux store with middleware.
*/
function mockStore(getState, expectedActions, onLastAction) {
if (!Array.isArray(expectedActions)) {
throw new Error('expectedActions should be an array of expected actions.');
}
if (typeof onLastAction !== 'undefined' && typeof onLastAction !== 'function') {
throw new Error('onLastAction should either be undefined or function.');
}
function mockStoreWithoutMiddleware() {
return {
getState() {
return typeof getState === 'function' ?
getState() :
getState;
},
dispatch(action) {
const expectedAction = expectedActions.shift();
expect(action).toEqual(expectedAction);
if (onLastAction && !expectedActions.length) {
onLastAction();
}
return action;
}
};
}
const mockStoreWithMiddleware = applyMiddleware(
...middlewares
)(mockStoreWithoutMiddleware);
return mockStoreWithMiddleware();
}
describe('actions', () => {
it('increment should create increment action', () => {
expect(actions.increment()).toEqual({ type: actions.INCREMENT_COUNTER });
});
it('decrement should create decrement action', () => {
expect(actions.decrement()).toEqual({ type: actions.DECREMENT_COUNTER });
});
it('incrementIfOdd should create increment action', (done) => {
const expectedActions = [
{ type: actions.INCREMENT_COUNTER }
];
const store = mockStore({ counter: 1 }, expectedActions, done);
store.dispatch(actions.incrementIfOdd());
});
it('incrementIfOdd shouldnt create increment action if counter is even', (done) => {
const expectedActions = [];
const store = mockStore({ counter: 2 }, expectedActions);
store.dispatch(actions.incrementIfOdd());
done();
});
it('incrementAsync should create increment action', (done) => {
const expectedActions = [
{ type: actions.INCREMENT_COUNTER }
];
const store = mockStore({ counter: 0 }, expectedActions, done);
store.dispatch(actions.incrementAsync(100));
});
});
================================================
FILE: examples/counter/test/components/Counter.spec.js
================================================
import expect from 'expect';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Counter from '../../components/Counter';
function setup() {
const actions = {
increment: expect.createSpy(),
incrementIfOdd: expect.createSpy(),
incrementAsync: expect.createSpy(),
decrement: expect.createSpy()
};
const component = TestUtils.renderIntoDocument();
return {
component: component,
actions: actions,
buttons: TestUtils.scryRenderedDOMComponentsWithTag(component, 'button'),
p: TestUtils.findRenderedDOMComponentWithTag(component, 'p')
};
}
describe('Counter component', () => {
it('should display count', () => {
const { p } = setup();
expect(p.textContent).toMatch(/^Clicked: 1 times/);
});
it('first button should call increment', () => {
const { buttons, actions } = setup();
TestUtils.Simulate.click(buttons[0]);
expect(actions.increment).toHaveBeenCalled();
});
it('second button should call decrement', () => {
const { buttons, actions } = setup();
TestUtils.Simulate.click(buttons[1]);
expect(actions.decrement).toHaveBeenCalled();
});
it('third button should call incrementIfOdd', () => {
const { buttons, actions } = setup();
TestUtils.Simulate.click(buttons[2]);
expect(actions.incrementIfOdd).toHaveBeenCalled();
});
it('fourth button should call incrementAsync', () => {
const { buttons, actions } = setup();
TestUtils.Simulate.click(buttons[3]);
expect(actions.incrementAsync).toHaveBeenCalled();
});
});
================================================
FILE: examples/counter/test/containers/App.spec.js
================================================
import expect from 'expect';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { Provider } from 'react-redux';
import App from '../../containers/App';
import configureStore from '../../store/configureStore';
function setup(initialState) {
const store = configureStore(initialState);
const app = TestUtils.renderIntoDocument(
);
return {
app: app,
buttons: TestUtils.scryRenderedDOMComponentsWithTag(app, 'button'),
p: TestUtils.findRenderedDOMComponentWithTag(app, 'p')
};
}
describe('containers', () => {
describe('App', () => {
it('should display initial count', () => {
const { p } = setup();
expect(p.textContent).toMatch(/^Clicked: 0 times/);
});
it('should display updated count after increment button click', () => {
const { buttons, p } = setup();
TestUtils.Simulate.click(buttons[0]);
expect(p.textContent).toMatch(/^Clicked: 1 times/);
});
it('should display updated count after decrement button click', () => {
const { buttons, p } = setup();
TestUtils.Simulate.click(buttons[1]);
expect(p.textContent).toMatch(/^Clicked: -1 times/);
});
it('shouldnt change if even and if odd button clicked', () => {
const { buttons, p } = setup();
TestUtils.Simulate.click(buttons[2]);
expect(p.textContent).toMatch(/^Clicked: 0 times/);
});
it('should change if odd and if odd button clicked', () => {
const { buttons, p } = setup({ counter: 1 });
TestUtils.Simulate.click(buttons[2]);
expect(p.textContent).toMatch(/^Clicked: 2 times/);
});
});
});
================================================
FILE: examples/counter/test/reducers/counter.spec.js
================================================
import expect from 'expect';
import counter from '../../reducers/counter';
import { INCREMENT_COUNTER, DECREMENT_COUNTER } from '../../actions/counter';
describe('reducers', () => {
describe('counter', () => {
it('should handle initial state', () => {
expect(counter(undefined, {})).toBe(0);
});
it('should handle INCREMENT_COUNTER', () => {
expect(counter(1, { type: INCREMENT_COUNTER })).toBe(2);
});
it('should handle DECREMENT_COUNTER', () => {
expect(counter(1, { type: DECREMENT_COUNTER })).toBe(0);
});
it('should handle unknown action type', () => {
expect(counter(1, { type: 'unknown' })).toBe(1);
});
});
});
================================================
FILE: examples/counter/test/setup.js
================================================
import { jsdom } from 'jsdom';
global.document = jsdom('');
global.window = document.defaultView;
global.navigator = global.window.navigator;
================================================
FILE: examples/counter/webpack.config.js
================================================
var path = require('path');
var webpack = require('webpack');
module.exports = {
mode: 'development',
devtool: 'source-map',
entry: [
'webpack-hot-middleware/client',
'./index'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/static/'
},
plugins: [
new webpack.HotModuleReplacementPlugin()
],
module: {
rules: [{
test: /\.js$/,
loaders: ['babel-loader'],
exclude: /node_modules/
}]
}
};
================================================
FILE: examples/react-counter-messaging/.babelrc
================================================
{
"presets": [ "es2015", "stage-0", "react" ]
}
================================================
FILE: examples/react-counter-messaging/components/Counter.js
================================================
import React, { Component } from 'react';
const withDevTools = (
// process.env.NODE_ENV === 'development' &&
typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__
);
class Counter extends Component {
constructor() {
super();
this.state = { counter: 0 };
this.increment = this.increment.bind(this);
this.decrement = this.decrement.bind(this);
}
componentWillMount() {
if (withDevTools) {
this.devTools = window.__REDUX_DEVTOOLS_EXTENSION__.connect();
this.unsubscribe = this.devTools.subscribe((message) => {
// Implement monitors actions.
// For example time traveling:
if (message.type === 'DISPATCH' && message.payload.type === 'JUMP_TO_STATE') {
this.setState(message.state);
}
});
}
}
componentWillUnmount() {
if (withDevTools) {
this.unsubscribe(); // Use if you have other subscribers from other components.
window.__REDUX_DEVTOOLS_EXTENSION__.disconnect(); // If there aren't other subscribers.
}
}
increment() {
const state = { counter: this.state.counter + 1 };
if (withDevTools) this.devTools.send('increment', state);
this.setState(state);
}
decrement() {
const state = { counter: this.state.counter - 1 };
if (withDevTools) this.devTools.send('decrement', state);
this.setState(state);
}
render() {
const { counter } = this.state;
return (
);
if (isChrome) {
chrome.devtools.inspectedWindow.getResources(resources => {
if (resources[0].url.substr(0, 4) === 'file') {
message = (
No store found. Most likely you did not allow access to file URLs. See details.
);
}
const node = document.getElementById('root');
unmountComponentAtNode(node);
render(message, node);
store = undefined;
});
} else {
const node = document.getElementById('root');
unmountComponentAtNode(node);
render(message, node);
store = undefined;
}
}, 3500);
}
function init(id) {
renderNA();
bgConnection = chrome.runtime.connect({ name: id ? id.toString() : undefined });
bgConnection.onMessage.addListener(message => {
if (message.type === 'NA') {
if (message.id === id) renderNA();
else store.dispatch({ type: REMOVE_INSTANCE, id: message.id });
} else {
if (!rendered) renderDevTools();
store.dispatch(message);
}
});
}
init(chrome.devtools.inspectedWindow.tabId);
================================================
FILE: src/browser/extension/devtools/index.js
================================================
function createPanel(url) {
chrome.devtools.panels.create(
'Redux', 'img/logo/scalable.png', url, function() {}
);
}
if (chrome.runtime.getBackgroundPage) {
// Check if the background page's object is accessible (not in incognito)
chrome.runtime.getBackgroundPage(background => {
createPanel(background ? 'window.html' : 'devpanel.html');
});
} else {
createPanel('devpanel.html');
}
================================================
FILE: src/browser/extension/inject/contentScript.js
================================================
import { injectOptions, getOptionsFromBg, isAllowed } from '../options/syncOptions';
const source = '@devtools-extension';
const pageSource = '@devtools-page';
// Chrome message limit is 64 MB, but we're using 32 MB to include other object's parts
const maxChromeMsgSize = 32 * 1024 * 1024;
let connected = false;
let bg;
function connect() {
// Connect to the background script
connected = true;
const name = 'tab';
if (window.devToolsExtensionID) {
bg = chrome.runtime.connect(window.devToolsExtensionID, { name });
} else {
bg = chrome.runtime.connect({ name });
}
// Relay background script messages to the page script
bg.onMessage.addListener((message) => {
if (message.action) {
window.postMessage({
type: message.type,
payload: message.action,
state: message.state,
id: message.id,
source
}, '*');
} else if (message.options) {
injectOptions(message.options);
} else {
window.postMessage({
type: message.type,
state: message.state,
id: message.id,
source
}, '*');
}
});
bg.onDisconnect.addListener(handleDisconnect);
}
function handleDisconnect() {
window.removeEventListener('message', handleMessages);
window.postMessage({ type: 'STOP', failed: true, source }, '*');
bg = undefined;
}
function tryCatch(fn, args) {
try {
return fn(args);
} catch (err) {
if (err.message === 'Message length exceeded maximum allowed length.') {
const instanceId = args.instanceId;
const newArgs = { split: 'start' };
const toSplit = [];
let size = 0;
let arg;
Object.keys(args).map(key => {
arg = args[key];
if (typeof arg === 'string') {
size += arg.length;
if (size > maxChromeMsgSize) {
toSplit.push([key, arg]);
return;
}
}
newArgs[key] = arg;
});
fn(newArgs);
for (let i = 0; i < toSplit.length; i++) {
for (let j = 0; j < toSplit[i][1].length; j += maxChromeMsgSize) {
fn({
instanceId,
source: pageSource,
split: 'chunk',
chunk: [toSplit[i][0], toSplit[i][1].substr(j, maxChromeMsgSize)]
});
}
}
return fn({ instanceId, source: pageSource, split: 'end' });
}
handleDisconnect();
/* eslint-disable no-console */
if (process.env.NODE_ENV !== 'production') console.error('Failed to send message', err);
/* eslint-enable no-console */
}
}
function send(message) {
if (!connected) connect();
if (message.type === 'INIT_INSTANCE') {
getOptionsFromBg();
bg.postMessage({ name: 'INIT_INSTANCE', instanceId: message.instanceId });
} else {
bg.postMessage({ name: 'RELAY', message });
}
}
// Resend messages from the page to the background script
function handleMessages(event) {
if (!isAllowed()) return;
if (!event || event.source !== window || typeof event.data !== 'object') return;
const message = event.data;
if (message.source !== pageSource) return;
if (message.type === 'DISCONNECT') {
if (bg) {
bg.disconnect();
connected = false;
}
return;
}
tryCatch(send, message);
}
window.addEventListener('message', handleMessages, false);
================================================
FILE: src/browser/extension/inject/deprecatedWarn.js
================================================
// Deprecated warning for inject.bundle.js
/* eslint-disable no-console */
console.warn(
'Using Redux DevTools inside extensions is deprecated and won\'t be supported in the next major version. ' +
'Please use https://github.com/zalmoxisus/remote-redux-devtools instead.'
);
/* eslint-enable no-console */
================================================
FILE: src/browser/extension/inject/index.js
================================================
// Include this script in Chrome apps and extensions for remote debugging
//
window.devToolsExtensionID = 'lmhkpmbekcpmknklioeibfkpmmfibljd';
require('./contentScript');
require('./pageScript');
chrome.runtime.sendMessage(window.devToolsExtensionID, { type: 'GET_OPTIONS' }, function(response) {
if (!response.options.inject) {
const urls = response.options.urls.split('\n').filter(Boolean).join('|');
if (!location.href.match(new RegExp(urls))) return;
}
window.devToolsOptions = response.options;
window.__REDUX_DEVTOOLS_EXTENSION__.notifyErrors();
});
================================================
FILE: src/browser/extension/inject/pageScript.js
================================================
import { getActionsArray, evalAction } from 'remotedev-utils';
import throttle from 'lodash/throttle';
import createStore from '../../../app/stores/createStore';
import configureStore, { getUrlParam } from '../../../app/stores/enhancerStore';
import { isAllowed } from '../options/syncOptions';
import Monitor from '../../../app/service/Monitor';
import {
noFiltersApplied, getLocalFilter, isFiltered, filterState, startingFrom
} from '../../../app/api/filters';
import notifyErrors from '../../../app/api/notifyErrors';
import importState from '../../../app/api/importState';
import openWindow from '../../../app/api/openWindow';
import generateId from '../../../app/api/generateInstanceId';
import {
updateStore, toContentScript, sendMessage, setListener, connect, disconnect,
isInIframe, getSeralizeParameter
} from '../../../app/api';
const source = '@devtools-page';
let stores = {};
let reportId;
function deprecateParam(oldParam, newParam) {
/* eslint-disable no-console */
console.warn(`${oldParam} parameter is deprecated, use ${newParam} instead: https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md`);
/* eslint-enable no-console */
}
const __REDUX_DEVTOOLS_EXTENSION__ = function(reducer, preloadedState, config) {
/* eslint-disable no-param-reassign */
if (typeof reducer === 'object') {
config = reducer; reducer = undefined;
} else if (typeof config !== 'object') config = {};
/* eslint-enable no-param-reassign */
if (!window.devToolsOptions) window.devToolsOptions = {};
let store;
let errorOccurred = false;
let maxAge;
let actionCreators;
let sendingActionId = 1;
const instanceId = generateId(config.instanceId);
const localFilter = getLocalFilter(config);
const serializeState = getSeralizeParameter(config, 'serializeState');
const serializeAction = getSeralizeParameter(config, 'serializeAction');
let {
statesFilter, actionsFilter, stateSanitizer, actionSanitizer, predicate, latency = 500
} = config;
// Deprecate statesFilter and actionsFilter
if (statesFilter) {
deprecateParam('statesFilter', 'stateSanitizer');
stateSanitizer = statesFilter; // eslint-disable-line no-param-reassign
}
if (actionsFilter) {
deprecateParam('actionsFilter', 'actionSanitizer');
actionSanitizer = actionsFilter; // eslint-disable-line no-param-reassign
}
const monitor = new Monitor(relayState);
if (config.getMonitor) {
/* eslint-disable no-console */
console.warn('Redux DevTools extension\'s `getMonitor` parameter is deprecated and will be not ' +
'supported in the next version, please remove it and just use ' +
'`__REDUX_DEVTOOLS_EXTENSION_COMPOSE__` instead: ' +
'https://github.com/zalmoxisus/redux-devtools-extension#12-advanced-store-setup');
/* eslint-enable no-console */
config.getMonitor(monitor);
}
function exportState() {
const liftedState = store.liftedStore.getState();
const actionsById = liftedState.actionsById;
const payload = [];
liftedState.stagedActionIds.slice(1).forEach(id => {
// if (isFiltered(actionsById[id].action, localFilter)) return;
payload.push(actionsById[id].action);
});
toContentScript({
type: 'EXPORT', payload, committedState: liftedState.committedState, source, instanceId
}, serializeState, serializeAction);
}
function relay(type, state, action, nextActionId, libConfig) {
const message = {
type,
payload: filterState(
state, type, localFilter, stateSanitizer, actionSanitizer, nextActionId, predicate
),
source,
instanceId
};
if (type === 'ACTION') {
message.action = !actionSanitizer ? action : actionSanitizer(action.action, nextActionId - 1);
message.maxAge = getMaxAge();
message.nextActionId = nextActionId;
} else if (libConfig) {
message.libConfig = libConfig;
}
toContentScript(message, serializeState, serializeAction);
}
const relayState = throttle((liftedState, libConfig) => {
relayAction.cancel();
const state = liftedState || store.liftedStore.getState();
sendingActionId = state.nextActionId;
relay('STATE', state, undefined, undefined, libConfig);
}, latency);
const relayAction = throttle(() => {
const liftedState = store.liftedStore.getState();
const nextActionId = liftedState.nextActionId;
const currentActionId = nextActionId - 1;
const liftedAction = liftedState.actionsById[currentActionId];
// Send a single action
if (sendingActionId === currentActionId) {
sendingActionId = nextActionId;
const action = liftedAction.action;
const computedStates = liftedState.computedStates;
if (
isFiltered(action, localFilter) ||
predicate && !predicate(computedStates[computedStates.length - 1].state, action)
) return;
const state = liftedState.computedStates[liftedState.computedStates.length - 1].state;
relay('ACTION', state, liftedState.actionsById[nextActionId - 1], nextActionId);
return;
}
// Send multiple actions
const payload = startingFrom(
sendingActionId,
liftedState,
localFilter, stateSanitizer, actionSanitizer, predicate
);
sendingActionId = nextActionId;
if (typeof payload === 'undefined') return;
if (typeof payload.skippedActionIds !== 'undefined') {
relay('STATE', payload);
return;
}
toContentScript({
type: 'PARTIAL_STATE',
payload,
source,
instanceId,
maxAge: getMaxAge()
}, serializeState, serializeAction);
}, latency);
function dispatchRemotely(action) {
if (config.features && !config.features.dispatch) return;
try {
const result = evalAction(action, actionCreators);
(store.initialDispatch || store.dispatch)(result);
} catch (e) {
relay('ERROR', e.message);
}
}
function importPayloadFrom(state) {
if (config.features && !config.features.import) return;
try {
const nextLiftedState = importState(state, config);
if (!nextLiftedState) return;
store.liftedStore.dispatch({type: 'IMPORT_STATE', ...nextLiftedState});
} catch (e) {
relay('ERROR', e.message);
}
}
function dispatchMonitorAction(action) {
const type = action.type;
const features = config.features;
if (features) {
if (!features.jump && (type === 'JUMP_TO_STATE' || type === 'JUMP_TO_ACTION')) return;
if (!features.skip && type === 'TOGGLE_ACTION') return;
if (!features.reorder && type === 'REORDER_ACTION') return;
if (!features.import && type === 'IMPORT_STATE') return;
if (!features.lock && type === 'LOCK_CHANGES') return;
if (!features.pause && type === 'PAUSE_RECORDING') return;
}
if (type === 'JUMP_TO_STATE') {
const liftedState = store.liftedStore.getState();
const index = liftedState.stagedActionIds.indexOf(action.actionId);
if (index === -1) return;
store.liftedStore.dispatch({ type, index });
return;
}
store.liftedStore.dispatch(action);
}
function onMessage(message) {
switch (message.type) {
case 'DISPATCH':
dispatchMonitorAction(message.payload);
return;
case 'ACTION':
dispatchRemotely(message.payload);
return;
case 'IMPORT':
importPayloadFrom(message.state);
return;
case 'EXPORT':
exportState();
return;
case 'UPDATE':
relayState();
return;
case 'START':
monitor.start(true);
if (!actionCreators && config.actionCreators) {
actionCreators = getActionsArray(config.actionCreators);
}
relayState(undefined, {
name: config.name || document.title,
actionCreators: JSON.stringify(actionCreators),
features: config.features,
serialize: !!config.serialize,
type: 'redux'
});
if (reportId) {
relay('GET_REPORT', reportId);
reportId = null;
}
return;
case 'STOP':
monitor.stop();
relayAction.cancel();
relayState.cancel();
if (!message.failed) relay('STOP');
}
}
const filteredActionIds = []; // simple circular buffer of non-excluded actions with fixed maxAge-1 length
const getMaxAge = (liftedAction, liftedState) => {
let m = config && config.maxAge || window.devToolsOptions.maxAge || 50;
if (!liftedAction || noFiltersApplied(localFilter) || !liftedAction.action) return m;
if (!maxAge || maxAge < m) maxAge = m; // it can be modified in process on options page
if (isFiltered(liftedAction.action, localFilter)) {
// TODO: check also predicate && !predicate(state, action) with current state
maxAge++;
} else {
filteredActionIds.push(liftedState.nextActionId);
if (filteredActionIds.length >= m) {
const stagedActionIds = liftedState.stagedActionIds;
let i = 1;
while (maxAge > m && filteredActionIds.indexOf(stagedActionIds[i]) === -1) {
maxAge--; i++;
}
filteredActionIds.shift();
}
}
return maxAge;
};
function init() {
setListener(onMessage, instanceId);
notifyErrors(() => {
errorOccurred = true;
const state = store.liftedStore.getState();
if (state.computedStates[state.currentStateIndex].error) {
relayState(state);
}
return true;
});
relay('INIT_INSTANCE');
store.subscribe(handleChange);
if (typeof reportId === 'undefined') {
reportId = getUrlParam('remotedev_report');
if (reportId) openWindow();
}
}
function handleChange() {
if (!monitor.active) return;
if (!errorOccurred && !monitor.isMonitorAction()) {
relayAction();
return;
}
if (monitor.isPaused() || monitor.isLocked() || monitor.isTimeTraveling()) return;
const liftedState = store.liftedStore.getState();
if (errorOccurred && !liftedState.computedStates[liftedState.currentStateIndex].error) {
errorOccurred = false;
}
relayState(liftedState);
}
const enhance = () => (next) => {
return (reducer_, initialState_, enhancer_) => {
if (!isAllowed(window.devToolsOptions)) return next(reducer_, initialState_, enhancer_);
store = stores[instanceId] =
configureStore(next, monitor.reducer, { ...config, maxAge: getMaxAge })(reducer_, initialState_, enhancer_);
if (isInIframe()) setTimeout(init, 3000);
else init();
return store;
};
};
if (!reducer) return enhance();
/* eslint-disable no-console */
console.warn('Creating a Redux store directly from DevTools extension is discouraged and will not be supported in future major version. For more details see: https://git.io/fphCe');
/* eslint-enable no-console */
return createStore(reducer, preloadedState, enhance);
};
// noinspection JSAnnotator
window.__REDUX_DEVTOOLS_EXTENSION__ = __REDUX_DEVTOOLS_EXTENSION__;
window.__REDUX_DEVTOOLS_EXTENSION__.open = openWindow;
window.__REDUX_DEVTOOLS_EXTENSION__.updateStore = updateStore(stores);
window.__REDUX_DEVTOOLS_EXTENSION__.notifyErrors = notifyErrors;
window.__REDUX_DEVTOOLS_EXTENSION__.send = sendMessage;
window.__REDUX_DEVTOOLS_EXTENSION__.listen = setListener;
window.__REDUX_DEVTOOLS_EXTENSION__.connect = connect;
window.__REDUX_DEVTOOLS_EXTENSION__.disconnect = disconnect;
// Deprecated
/* eslint-disable no-console */
let varNameDeprecatedWarned;
const varNameDeprecatedWarn = () => {
if (varNameDeprecatedWarned) return;
console.warn('`window.devToolsExtension` is deprecated in favor of `window.__REDUX_DEVTOOLS_EXTENSION__`, and will be removed in next version of Redux DevTools: https://git.io/fpEJZ');
varNameDeprecatedWarned = true;
};
/* eslint-enable no-console */
window.devToolsExtension = (...args) => {
varNameDeprecatedWarn();
return __REDUX_DEVTOOLS_EXTENSION__.apply(null, args);
};
window.devToolsExtension.open = (...args) => {
varNameDeprecatedWarn();
return openWindow.apply(null, args);
};
window.devToolsExtension.updateStore = (...args) => {
varNameDeprecatedWarn();
return updateStore(stores).apply(null, args);
};
window.devToolsExtension.notifyErrors = (...args) => {
varNameDeprecatedWarn();
return notifyErrors.apply(null, args);
};
window.devToolsExtension.send = (...args) => {
varNameDeprecatedWarn();
return sendMessage.apply(null, args);
};
window.devToolsExtension.listen = (...args) => {
varNameDeprecatedWarn();
return setListener.apply(null, args);
};
window.devToolsExtension.connect = (...args) => {
varNameDeprecatedWarn();
return connect.apply(null, args);
};
window.devToolsExtension.disconnect = (...args) => {
varNameDeprecatedWarn();
return disconnect.apply(null, args);
};
const preEnhancer = instanceId => next =>
(reducer, preloadedState, enhancer) => {
const store = next(reducer, preloadedState, enhancer);
if (stores[instanceId]) {
stores[instanceId].initialDispatch = store.dispatch;
}
return {
...store,
dispatch: (...args) => (
!window.__REDUX_DEVTOOLS_EXTENSION_LOCKED__ && store.dispatch(...args)
)
};
};
const extensionCompose = (config) => (...funcs) => {
return (...args) => {
const instanceId = generateId(config.instanceId);
return [preEnhancer(instanceId), ...funcs].reduceRight(
(composed, f) => f(composed), __REDUX_DEVTOOLS_EXTENSION__({ ...config, instanceId })(...args)
);
};
};
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ = (...funcs) => {
if (funcs.length === 0) {
return __REDUX_DEVTOOLS_EXTENSION__();
}
if (funcs.length === 1 && typeof funcs[0] === 'object') {
return extensionCompose(funcs[0]);
}
return extensionCompose({})(...funcs);
};
================================================
FILE: src/browser/extension/inject/pageScriptWrap.js
================================================
let s = document.createElement('script');
s.type = 'text/javascript';
if (process.env.NODE_ENV === 'production') {
const script = require('raw-loader!tmp/page.bundle.js');
s.appendChild(document.createTextNode(script));
(document.head || document.documentElement).appendChild(s);
s.parentNode.removeChild(s);
} else {
s.src = chrome.extension.getURL('js/page.bundle.js');
s.onload = function() {
this.parentNode.removeChild(this);
};
(document.head || document.documentElement).appendChild(s);
}
================================================
FILE: src/browser/extension/manifest.json
================================================
{
"version": "2.17.1",
"name": "Redux DevTools",
"short_name": "Redux DevTools",
"description": "Redux DevTools for debugging application's state changes.",
"homepage_url": "https://github.com/zalmoxisus/redux-devtools-extension",
"manifest_version": 2,
"page_action": {
"default_icon": "img/logo/gray.png",
"default_title": "Redux DevTools",
"default_popup": "window.html#popup"
},
"commands": {
"devtools-left": {
"description": "DevTools window to left"
},
"devtools-right": {
"description": "DevTools window to right"
},
"devtools-bottom": {
"description": "DevTools window to bottom"
},
"devtools-remote": {
"description": "Remote DevTools"
},
"_execute_page_action": {
"suggested_key": {
"default": "Ctrl+Shift+E"
}
}
},
"icons": {
"16": "img/logo/16x16.png",
"48": "img/logo/48x48.png",
"128": "img/logo/128x128.png"
},
"options_ui": {
"page": "options.html",
"chrome_style": true
},
"background": {
"scripts": ["js/background.bundle.js"],
"persistent": false
},
"content_scripts": [
{
"matches": [""],
"exclude_globs": [ "https://www.google*" ],
"js": ["js/content.bundle.js", "js/pagewrap.bundle.js"],
"run_at": "document_start",
"all_frames": true
}
],
"devtools_page": "devtools.html",
"web_accessible_resources": [
"js/page.bundle.js",
"js/inject.bundle.js",
"js/redux-devtools-extension.js"
],
"externally_connectable": {
"ids": ["*"]
},
"permissions": [ "notifications", "contextMenus", "tabs", "storage", "" ],
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'; style-src * 'unsafe-inline'; img-src 'self' data:;",
"update_url": "https://clients2.google.com/service/update2/crx",
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsdJEPwY92xUACA9CcDBDBmbdbp8Ap3cKQ0DJTUuVQvqb4FQAv8RtKY3iUjGvdwuAcSJQIZwHXcP2aNDH3TiFik/NhRK2GRW8X3OZyTdkuDueABGP2KEX8q1WQDgjX/rPIinGYztUrvoICw/UerMPwNW62jwGoVU3YhAGf+15CgX2Y6a4tppnf/+1mPedKPidh0RsM+aJY98rX+r1SPAHPcGzMjocLkqcT75DZBXer8VQN14tOOzRCd6T6oy7qm7eWru8lJwcY66qMQvhk0osqEod2G3nA7aTWpmqPFS66VEiecP9PgZlp8gQdgZ3dFhA62exydlD55JuRhiMIR63yQIDAQAB"
}
================================================
FILE: src/browser/extension/options/AllowToRunGroup.js
================================================
import React from 'react';
export default ({ options, saveOption }) => {
const AllowToRunState = {
EVERYWHERE: true,
ON_SPECIFIC_URLS: false
};
return (
);
};
================================================
FILE: src/browser/extension/options/ContextMenuGroup.js
================================================
import React from 'react';
export default ({ options, saveOption }) => {
return (
);
};
================================================
FILE: src/browser/extension/options/EditorGroup.js
================================================
import React from 'react';
export default ({ options, saveOption }) => {
const EditorState = {
BROWSER: 0,
EXTERNAL: 1
};
return (
);
};
================================================
FILE: src/browser/extension/options/FilterGroup.js
================================================
import React from 'react';
import { FilterState } from '../../../app/api/filters';
export default ({ options, saveOption }) => {
return (
);
};
================================================
FILE: src/browser/extension/options/MiscellaneousGroup.js
================================================
import React from 'react';
export default ({ options, saveOption }) => {
const browserName = navigator.userAgent.includes('Firefox') ? 'Firefox' : 'Chrome';
return (
);
};
================================================
FILE: src/browser/extension/options/Options.js
================================================
import React from 'react';
import EditorGroup from './EditorGroup';
import FilterGroup from './FilterGroup';
import AllowToRunGroup from './AllowToRunGroup';
import MiscellaneousGroup from './MiscellaneousGroup';
import ContextMenuGroup from './ContextMenuGroup';
export default (props) => (
Setting options here is discouraged, and will not be possible in the next major release. Please specify them as parameters. See the issue for more details.
);
================================================
FILE: src/browser/extension/options/index.js
================================================
import React from 'react';
import { render } from 'react-dom';
import Options from './Options';
chrome.runtime.getBackgroundPage(background => {
const syncOptions = background.syncOptions;
const saveOption = (name, value) => {
syncOptions.save(name, value);
};
const renderOptions = options => {
render(
,
document.getElementById('root')
);
};
syncOptions.subscribe(renderOptions);
syncOptions.get(options => {
renderOptions(options);
});
});
================================================
FILE: src/browser/extension/options/syncOptions.js
================================================
import { FilterState } from '../../../app/api/filters';
let options;
let subscribers = [];
const save = (toAllTabs) => (key, value) => {
let obj = {};
obj[key] = value;
chrome.storage.sync.set(obj);
options[key] = value;
toAllTabs({ options: options });
subscribers.forEach(s => s(options));
};
const migrateOldOptions = (oldOptions) => {
let newOptions = Object.assign({}, oldOptions);
// Migrate the old `filter` option from 2.2.1
if (typeof oldOptions.filter === 'boolean') {
if (oldOptions.filter && oldOptions.whitelist.length > 0) {
newOptions.filter = FilterState.WHITELIST_SPECIFIC;
} else if (oldOptions.filter) {
newOptions.filter = FilterState.BLACKLIST_SPECIFIC;
} else {
newOptions.filter = FilterState.DO_NOT_FILTER;
}
}
return newOptions;
};
const get = callback => {
if (options) callback(options);
else {
chrome.storage.sync.get({
useEditor: 0,
editor: '',
projectPath: '',
maxAge: 50,
filter: FilterState.DO_NOT_FILTER,
whitelist: '',
blacklist: '',
shouldCatchErrors: false,
inject: true,
urls: '^https?://localhost|0\\.0\\.0\\.0:\\d+\n^https?://.+\\.github\\.io',
showContextMenus: true
}, function(items) {
options = migrateOldOptions(items);
callback(options);
});
}
};
const subscribe = callback => {
subscribers = subscribers.concat(callback);
};
const toReg = str => (
str !== '' ? str.split('\n').filter(Boolean).join('|') : null
);
export const injectOptions = newOptions => {
if (!newOptions) return;
if (newOptions.filter !== FilterState.DO_NOT_FILTER) {
newOptions.whitelist = toReg(newOptions.whitelist);
newOptions.blacklist = toReg(newOptions.blacklist);
}
options = newOptions;
let s = document.createElement('script');
s.type = 'text/javascript';
s.appendChild(document.createTextNode(
'window.devToolsOptions = Object.assign(window.devToolsOptions||{},' + JSON.stringify(options) + ');'
));
(document.head || document.documentElement).appendChild(s);
s.parentNode.removeChild(s);
};
export const getOptionsFromBg = () => {
/* chrome.runtime.sendMessage({ type: 'GET_OPTIONS' }, response => {
if (response && response.options) injectOptions(response.options);
});
*/
get(newOptions => { injectOptions(newOptions); }); // Legacy
};
export const isAllowed = (localOptions = options) => (
!localOptions || localOptions.inject || !localOptions.urls
|| location.href.match(toReg(localOptions.urls))
);
export default function syncOptions(toAllTabs) {
if (toAllTabs && !options) get(() => {}); // Initialize
return {
save: save(toAllTabs),
get: get,
subscribe: subscribe
};
}
================================================
FILE: src/browser/extension/window/index.js
================================================
import 'remotedev-monitor-components/lib/presets';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { UPDATE_STATE } from 'remotedev-app/lib/constants/actionTypes';
import App from '../../../app/containers/App';
import configureStore from '../../../app/stores/windowStore';
import getPreloadedState from '../background/getPreloadedState';
const position = location.hash;
let preloadedState;
getPreloadedState(position, state => { preloadedState = state; });
chrome.runtime.getBackgroundPage(({ store }) => {
const localStore = configureStore(store, position, preloadedState);
let name = 'monitor';
if (chrome && chrome.devtools && chrome.devtools.inspectedWindow) name += chrome.devtools.inspectedWindow.tabId;
const bg = chrome.runtime.connect({ name });
const update = action => { localStore.dispatch(action || { type: UPDATE_STATE }); };
bg.onMessage.addListener(update);
update();
render(
,
document.getElementById('root')
);
});
if (position !== '#popup') document.body.style.minHeight = '100%';
================================================
FILE: src/browser/extension/window/remote.js
================================================
import React from 'react';
import { render } from 'react-dom';
import App from 'remotedev-app';
chrome.storage.local.get({
'select-monitor': 'InspectorMonitor',
'test-templates': null,
'test-templates-sel': null,
's:hostname': null,
's:port': null,
's:secure': null
}, options => {
render(
,
document.getElementById('root')
);
});
================================================
FILE: src/browser/firefox/manifest.json
================================================
{
"version": "2.17.1",
"name": "Redux DevTools",
"manifest_version": 2,
"description": "Redux Developer Tools for debugging application state changes.",
"homepage_url": "https://github.com/zalmoxisus/redux-devtools-extension",
"applications": {
"gecko": {
"id": "extension@redux.devtools",
"strict_min_version": "54.0"
}
},
"page_action": {
"default_icon": "img/logo/38x38.png",
"default_title": "Redux DevTools",
"default_popup": "window.html#popup"
},
"commands": {
"devtools-left": {
"description": "DevTools window to left"
},
"devtools-right": {
"description": "DevTools window to right"
},
"devtools-bottom": {
"description": "DevTools window to bottom"
},
"devtools-remote": {
"description": "Remote DevTools"
}
},
"icons": {
"16": "img/logo/16x16.png",
"48": "img/logo/48x48.png",
"128": "img/logo/128x128.png"
},
"options_ui": {
"page": "options.html"
},
"background": {
"scripts": ["js/background.bundle.js"]
},
"content_scripts": [
{
"matches": [""],
"js": ["js/content.bundle.js", "js/pagewrap.bundle.js"],
"run_at": "document_start",
"all_frames": true
}
],
"devtools_page": "devtools.html",
"web_accessible_resources": [
"js/page.bundle.js",
"js/inject.bundle.js",
"js/redux-devtools-extension.js"
],
"permissions": ["notifications", "contextMenus", "tabs", "storage", ""],
"content_security_policy": "script-src 'self'; object-src 'self'; img-src 'self' data:;"
}
================================================
FILE: src/browser/views/devpanel.pug
================================================
doctype html
html
head
meta(charset='UTF-8')
title Redux DevTools
include ./includes/style.pug
style.
body {
min-height: 100px;
}
body
#root
script(src='/js/devpanel.bundle.js')
================================================
FILE: src/browser/views/devtools.pug
================================================
doctype html
html
head
meta(charset='UTF-8')
title Redux DevTools
body
#root
script(src='/js/devtools.bundle.js')
================================================
FILE: src/browser/views/includes/style.pug
================================================
style.
html {
height: 100%;
width: 100%;
}
body {
overflow: hidden;
height: 100%;
width: 100%;
min-width: 350px;
min-height: 400px;
margin: 0;
padding: 0;
font-family: "Helvetica Neue", "Lucida Grande", sans-serif;
font-size: 11px;
background-color: rgb(53, 59, 70);
color: #fff;
}
a {
color: #fff;
}
#root {
height: 100%;
}
#root > div {
height: 100%;
}
#root > div > div:nth-child(2) {
min-height: 0;
}
.ReactCodeMirror {
overflow: auto;
height: 100%;
}
button:disabled {
opacity: 0.5;
cursor: initial !important;
}
@media print {
@page {
size: auto;
margin: 0;
}
body {
position: static;
}
#root > div > div:not(:nth-child(2)) {
display: none !important;
}
#root > div > div:nth-child(2) {
overflow: visible !important;
position: absolute !important;
z-index: 2147483647;
page-break-after: avoid;
}
#root > div > div:nth-child(2) * {
overflow: visible !important;
}
}
================================================
FILE: src/browser/views/options.pug
================================================
doctype html
html
head
meta(charset='UTF-8')
title Redux DevTools Options
style.
body {
padding: 2px;
min-width: 380px;
}
.option-group {
/* Reset the default fieldset styles */
margin: initial;
border: initial;
padding: initial;
}
.option-group + .option-group {
margin-top: 30px;
}
.option-group__title {
/* Reset the default legend styles */
margin: initial;
padding: initial;
margin-bottom: 8px;
font-weight: bold;
font-size: 30px;
}
.option + .option {
margin-top: 5px;
}
.option__textarea {
margin-top: 2px;
width: 300px;
min-height: 50px;
}
.option__hint {
margin-top: 2px;
font-size: 10px;
}
.option__textarea + .option__hint {
margin-top: -2px;
}
/* Checkbox and radio styling */
.option_type_checkbox .option__element,
.option_type_radio .option__element {
vertical-align: bottom;
}
.option_type_checkbox .option__label,
.option_type_radio .option__label {
margin-left: 4px;
}
.option_type_checkbox .option__textarea,
.option_type_checkbox .option__hint,
.option_type_radio .option__textarea,
.option_type_radio .option__hint {
margin-left: 20px;
}
/* Checkbox styling */
.option_type_checkbox .option__element {
/* Checkboxes in Chrome are 2px narrower than radio buttons.
These margins align them. */
margin-left: 1px;
/* ...margin-right is 2px instead of 1px
because both radios and checkboxes have initial margin-right of 1px */
margin-right: 2px;
}
/* Value-based styling */
.option_value_max-age {
margin-left: 20px;
}
.option_value_max-age .option__element {
width: 50px;
}
body
#root
script(src='/js/options.bundle.js')
================================================
FILE: src/browser/views/remote.pug
================================================
doctype html
html
head
meta(charset='UTF-8')
title RemoteDev
include ./includes/style.pug
body
#root
script(src='/js/remote.bundle.js')
================================================
FILE: src/browser/views/window.pug
================================================
doctype html
html
head
meta(charset='UTF-8')
title Redux DevTools
include ./includes/style.pug
body
#root
div(style='position: relative')
img(
src='/img/loading.svg',
height=300, width=350,
style='position: absolute; top: 50%; left: 50%; margin-top: -175px; margin-left: -175px;'
)
script(src='/js/window.bundle.js')
================================================
FILE: test/.eslintrc
================================================
{
"env": {
"mocha": true
},
"globals": {
"UI": true
},
"rules": {
"no-unused-expressions": 0
}
}
================================================
FILE: test/app/containers/App.spec.js
================================================
import expect from 'expect';
import React from 'react';
import { mount } from 'enzyme';
import { Provider } from 'react-redux';
import configureStore from '../../../src/app/stores/windowStore';
import App from '../../../src/app/containers/App.js';
const store = configureStore(store);
const component = mount();
describe('App container', () => {
it('should render inspector monitor\'s component', () => {
expect(component.find('DevtoolsInspector').html()).toExist();
});
it('should contain an empty action list', () => {
expect(
component.find('ActionList').html()
).toMatch(/
<\/div>/);
});
});
================================================
FILE: test/app/inject/api.spec.js
================================================
import expect from 'expect';
import { insertScript, listenMessage } from '../../utils/inject';
import '../../../src/browser/extension/inject/pageScript';
describe('API', () => {
it('should get window.__REDUX_DEVTOOLS_EXTENSION__ function', () => {
expect(window.__REDUX_DEVTOOLS_EXTENSION__).toBeA('function');
});
it('should notify error', () => {
const spy = expect.createSpy(() => {});
window.__REDUX_DEVTOOLS_EXTENSION__.notifyErrors(spy);
insertScript('hi()');
expect(spy).toHaveBeenCalled();
});
it('should open monitor', async () => {
let message = await listenMessage(() => {
window.__REDUX_DEVTOOLS_EXTENSION__.open();
});
expect(message).toEqual({ source: '@devtools-page', type: 'OPEN', position: 'right' });
message = await listenMessage(() => {
window.__REDUX_DEVTOOLS_EXTENSION__.open('left');
});
expect(message).toEqual({ source: '@devtools-page', type: 'OPEN', position: 'left' });
});
it('should send message', async () => {
let message = await listenMessage(() => {
window.__REDUX_DEVTOOLS_EXTENSION__.send('hi');
});
expect(message).toInclude({
type: 'ACTION',
payload: undefined,
instanceId: 1,
name: undefined,
source: '@devtools-page'
});
expect(message.action).toMatch(/{"action":{"type":"hi"},"timestamp":\d+}/);
message = await listenMessage(() => {
window.__REDUX_DEVTOOLS_EXTENSION__.send({ type: 'hi' }, { counter: 1 }, 1);
});
expect(message).toInclude({
type: 'ACTION',
payload: '{"counter":1}',
instanceId: 1,
name: undefined,
source: '@devtools-page'
});
expect(message.action).toMatch(/{"action":{"type":"hi"},"timestamp":\d+}/);
message = await listenMessage(() => {
window.__REDUX_DEVTOOLS_EXTENSION__.send({ type: 'hi' }, { counter: 1 }, 1);
});
expect(message).toInclude({
type: 'ACTION',
payload: '{"counter":1}',
instanceId: 1,
name: undefined,
source: '@devtools-page'
});
expect(message.action).toMatch(/{"action":{"type":"hi"},"timestamp":\d+}/);
message = await listenMessage(() => {
window.__REDUX_DEVTOOLS_EXTENSION__.send(undefined, { counter: 1 }, 1);
});
expect(message).toEqual({
action: undefined,
type: 'STATE',
payload: { counter: 1 },
actionsById: undefined,
computedStates: undefined,
committedState: false,
instanceId: 1,
maxAge: undefined,
name: undefined,
source: '@devtools-page'
});
});
});
================================================
FILE: test/app/inject/enhancer.spec.js
================================================
import 'babel-polyfill';
import expect from 'expect';
import { createStore, compose } from 'redux';
import { insertScript, listenMessage } from '../../utils/inject';
import '../../../src/browser/extension/inject/pageScript';
function counter(state = 0, action) {
switch (action.type) {
case 'INCREMENT': return state + 1;
case 'DECREMENT': return state - 1;
default: return state;
}
}
describe('Redux enhancer', () => {
it('should create the store', async () => {
const message = await listenMessage(() => {
window.store = createStore(counter, window.__REDUX_DEVTOOLS_EXTENSION__());
expect(window.store).toBeA('object');
});
expect(message.type).toBe('INIT_INSTANCE');
expect(window.store.getState()).toBe(0);
insertScript('window.devToolsOptions = { serialize: false }');
});
it('should start monitoring', async () => {
let message = await listenMessage(() => {
window.postMessage({ type: 'START', source: '@devtools-extension' }, '*');
});
expect(message.type).toBe('START');
message = await listenMessage();
expect(message.type).toBe('STATE');
expect(message.actionsById).toInclude('{"0":{"type":"PERFORM_ACTION","action":{"type":"@@INIT"},"');
expect(message.computedStates).toBe('[{"state":0}]');
});
it('should perform actions', async () => {
let message = await listenMessage(() => {
window.store.dispatch({ type: 'INCREMENT' });
expect(window.store.getState()).toBe(1);
});
expect(message.type).toBe('ACTION');
expect(message.action).toInclude('{"type":"PERFORM_ACTION","action":{"type":"INCREMENT"},');
expect(message.payload).toBe('1');
message = await listenMessage(() => {
window.store.dispatch({ type: 'INCREMENT' });
expect(window.store.getState()).toBe(2);
});
expect(message.type).toBe('ACTION');
expect(message.action).toInclude('{"type":"PERFORM_ACTION","action":{"type":"INCREMENT"},');
expect(message.payload).toBe('2');
});
it('should dispatch actions remotely', async () => {
let message = await listenMessage(() => {
window.postMessage({
type: 'ACTION',
payload: '{ type: \'INCREMENT\' }',
source: '@devtools-extension'
}, '*');
});
expect(message.type).toBe('ACTION');
message = await listenMessage();
expect(message.type).toBe('ACTION');
expect(message.action).toInclude('{"type":"PERFORM_ACTION","action":{"type":"INCREMENT"},');
expect(message.payload).toBe('3');
});
it('should cancel (toggle) action', async () => {
let message = await listenMessage(() => {
window.postMessage({
type: 'DISPATCH',
payload: {type: 'TOGGLE_ACTION', id: 1},
source: '@devtools-extension'
}, '*');
});
expect(message.type).toBe('DISPATCH');
message = await listenMessage();
expect(message.type).toBe('STATE');
expect(window.store.getState()).toBe(2);
message = await listenMessage(() => {
window.postMessage({
type: 'DISPATCH',
payload: {type: 'TOGGLE_ACTION', id: 1},
source: '@devtools-extension'
}, '*');
});
expect(message.type).toBe('DISPATCH');
message = await listenMessage();
expect(message.type).toBe('STATE');
expect(window.store.getState()).toBe(3);
});
it('should move back and forward (time travel)', async () => {
let message = await listenMessage(() => {
window.postMessage({
type: 'DISPATCH',
payload: {type: 'JUMP_TO_STATE', index: 2, actionId: 2},
source: '@devtools-extension'
}, '*');
});
expect(message.type).toBe('DISPATCH');
expect(window.store.getState()).toBe(2);
message = await listenMessage(() => {
window.postMessage({
type: 'DISPATCH',
payload: {type: 'JUMP_TO_STATE', index: 3, actionId: 3},
source: '@devtools-extension'
}, '*');
});
expect(message.type).toBe('DISPATCH');
expect(window.store.getState()).toBe(3);
});
it('should import state history', async () => {
let message = await listenMessage(() => {
window.postMessage({
type: 'IMPORT',
state: JSON.stringify({
monitorState: {},
actionsById: {
'0': { type: 'PERFORM_ACTION', action: { type: '@@INIT' } },
'1': { type: 'PERFORM_ACTION', action: { type: 'INCREMENT' } },
'2': { type: 'PERFORM_ACTION', action: { type: 'INCREMENT' } }
},
nextActionId: 3,
stagedActionIds: [ 0, 1, 2 ],
skippedActionIds: [],
currentStateIndex: 2,
computedStates: [ { state: 0 }, { state: 1 }, { state: 2 } ]
}),
source: '@devtools-extension'
}, '*');
});
expect(message.type).toBe('IMPORT');
message = await listenMessage();
expect(message.type).toBe('STATE');
expect(window.store.getState()).toBe(2);
});
it('should create the store with config parameters', async () => {
const message = await listenMessage(() => {
window.store = createStore(counter, window.__REDUX_DEVTOOLS_EXTENSION__({
actionsBlacklist: ['SOME_ACTION'],
statesFilter: state => state,
serializeState: (key, value) => value
}));
expect(window.store).toBeA('object');
});
expect(message.type).toBe('INIT_INSTANCE');
});
it('should create the store using old Redux api', async () => {
const message = await listenMessage(() => {
window.store = window.__REDUX_DEVTOOLS_EXTENSION__()(createStore)(counter);
expect(window.store).toBeA('object');
});
expect(message.type).toBe('INIT_INSTANCE');
});
it('should create the store with several enhancers', async () => {
const testEnhancer = next =>
(reducer, initialState, enhancer) => next(reducer, initialState, enhancer);
const message = await listenMessage(() => {
window.store = createStore(counter, compose(
testEnhancer,
window.__REDUX_DEVTOOLS_EXTENSION__())
);
expect(window.store).toBeA('object');
});
expect(message.type).toBe('INIT_INSTANCE');
});
});
================================================
FILE: test/app/setup.js
================================================
require('babel-register')();
require('babel-polyfill');
global.chrome = require('sinon-chrome');
var jsdom = require('jsdom').jsdom;
var exposedProperties = ['window', 'navigator', 'document'];
global.document = jsdom('');
global.window = document.defaultView;
Object.keys(document.defaultView).forEach((property) => {
if (typeof global[property] === 'undefined') {
exposedProperties.push(property);
global[property] = document.defaultView[property];
}
});
global.navigator = {
userAgent: 'gecko'
};
global.document.createRange = function() {
return {
setEnd: function(){},
setStart: function(){},
getBoundingClientRect: function(){
return {right: 0};
}
}
};
documentRef = document;
================================================
FILE: test/chrome/extension.spec.js
================================================
import { resolve } from 'path';
import webdriver from 'selenium-webdriver';
import expect from 'expect';
import { switchMonitorTests, delay } from '../utils/e2e';
const port = 9515;
const path = resolve('build/extension');
const extensionId = 'lmhkpmbekcpmknklioeibfkpmmfibljd';
const actionsPattern = /^@@INIT(.|\n)+@@reduxReactRouter\/routerDidChange(.|\n)+@@reduxReactRouter\/initRoutes(.|\n)+$/;
describe('Chrome extension', function() {
this.timeout(20000);
before(async () => {
await delay(2000);
this.driver = new webdriver.Builder()
.usingServer(`http://localhost:${port}`)
.withCapabilities({
chromeOptions: {
args: [`load-extension=${path}`]
}
})
.forBrowser('chrome')
.build();
});
after(async () => {
await this.driver.quit();
});
it('should open extension\'s window', async () => {
await this.driver.get(`chrome-extension://${extensionId}/window.html#left`);
const url = await this.driver.getCurrentUrl();
expect(url).toBe(`chrome-extension://${extensionId}/window.html#left`);
});
it('should match document title', async () => {
const title = await this.driver.getTitle();
expect(title).toBe('Redux DevTools');
});
it('should contain inspector monitor\'s component', async () => {
const val = this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "inspector-")]'))
.getText();
expect(val).toExist();
});
it('should contain an empty actions list', async () => {
const val = await this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "actionListRows-")]'))
.getText();
expect(val).toBe('');
});
Object.keys(switchMonitorTests).forEach(description =>
it(description, switchMonitorTests[description].bind(this))
);
it('should get actions list', async () => {
const url = 'http://zalmoxisus.github.io/examples/router/';
await this.driver.executeScript(`window.open('${url}')`);
await delay(2000);
const tabs = await this.driver.getAllWindowHandles();
await this.driver.switchTo().window(tabs[1]);
expect(await this.driver.getCurrentUrl()).toMatch(url);
await this.driver.manage().timeouts().pageLoadTimeout(5000);
await this.driver.switchTo().window(tabs[0]);
const result = await this.driver.wait(this.driver
.findElement(webdriver.By.xpath('//div[contains(@class, "actionListRows-")]'))
.getText().then((val) => {
return actionsPattern.test(val);
}), 15000, 'it doesn\'t match actions pattern');
expect(result).toBeTruthy();
});
});
================================================
FILE: test/electron/devpanel.spec.js
================================================
import { join } from 'path';
import webdriver from 'selenium-webdriver';
import electronPath from 'electron';
import expect from 'expect';
import { switchMonitorTests, delay } from '../utils/e2e';
const port = 9515;
const devPanelPath = 'chrome-extension://redux-devtools/devpanel.html';
describe('DevTools panel for Electron', function() {
this.timeout(10000);
before(async () => {
await delay(1000);
this.driver = new webdriver.Builder()
.usingServer(`http://localhost:${port}`)
.withCapabilities({
chromeOptions: {
binary: electronPath,
args: [`app=${join(__dirname, 'fixture')}`]
}
})
.forBrowser('electron')
.build();
await this.driver.manage().timeouts().setScriptTimeout(10000);
});
after(async () => {
await this.driver.quit();
});
it('should open Redux DevTools tab', async () => {
expect(await this.driver.getCurrentUrl())
.toMatch(/chrome-devtools:\/\/devtools\/bundled\/inspector.html/);
await this.driver.manage().timeouts().pageLoadTimeout(5000);
const id = await this.driver.executeAsyncScript(function(callback) {
let attempts = 5;
function showReduxPanel() {
if (attempts === 0) {
return callback('Redux panel not found');
}
const tabs = UI.inspectorView._tabbedPane._tabs;
const idList = tabs.map(tab => tab.id);
const reduxPanelId = 'chrome-extension://redux-devtoolsRedux';
if (idList.indexOf(reduxPanelId) !== -1) {
UI.inspectorView.showPanel(reduxPanelId);
return callback(reduxPanelId);
}
attempts--;
setTimeout(showReduxPanel, 500);
}
showReduxPanel();
});
expect(id).toBe('chrome-extension://redux-devtoolsRedux');
const className = await this.driver.findElement(webdriver.By.className(id))
.getAttribute('class');
expect(className).toNotMatch(/hidden/); // not hidden
});
it('should have Redux DevTools UI on current tab', async () => {
await this.driver.switchTo().frame(
this.driver.findElement(webdriver.By.xpath(`//iframe[@src='${devPanelPath}']`))
);
await delay(1000);
});
it('should contain INIT action', async () => {
const element = await this.driver.wait(
webdriver.until.elementLocated(webdriver.By.xpath('//div[contains(@class, "actionListRows-")]')),
5000,
'Element not found'
);
const val = await element.getText();
expect(val).toMatch(/@@INIT/);
});
it('should contain Inspector monitor\'s component', async () => {
const val = await this.driver.findElement(webdriver.By.xpath('//div[contains(@class, "inspector-")]'))
.getText();
expect(val).toExist();
});
Object.keys(switchMonitorTests).forEach(description =>
it(description, switchMonitorTests[description].bind(this))
);
/* it('should be no logs in console of main window', async () => {
const handles = await this.driver.getAllWindowHandles();
await this.driver.switchTo().window(handles[1]); // Change to main window
expect(await this.driver.getTitle()).toBe('Electron Test');
const logs = await this.driver.manage().logs().get(webdriver.logging.Type.BROWSER);
expect(logs).toEqual([]);
});
*/
});
================================================
FILE: test/electron/fixture/index.html
================================================
Electron Test0+-
================================================
FILE: test/electron/fixture/main.js
================================================
const path = require('path');
const { app, BrowserWindow } = require('electron');
app.setPath('userData', path.join(__dirname, '../tmp'));
app.on('window-all-closed', app.quit);
app.on('ready', () => {
BrowserWindow.addDevToolsExtension(
path.join(__dirname, '../../../build/extension')
);
const mainWindow = new BrowserWindow({
width: 150,
height: 100
});
mainWindow.loadURL(`file://${__dirname}/index.html`);
mainWindow.openDevTools({ detach: true });
});
================================================
FILE: test/electron/fixture/package.json
================================================
{
"name": "electron-test",
"productName": "Electron Test",
"main": "main.js",
"version": "0.1.0"
}
================================================
FILE: test/electron/fixture/renderer.js
================================================
const { createStore } = require('redux');
const INCREMENT_COUNTER = 'INCREMENT_COUNTER';
const DECREMENT_COUNTER = 'DECREMENT_COUNTER';
const initialState = { value: 0 };
const store = createStore(
(state, action) => {
switch (action.type) {
case INCREMENT_COUNTER:
return { value: state.value + 1 };
case DECREMENT_COUNTER:
return { value: state.value - 1 };
default:
return state;
}
},
initialState,
window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__() : noop => noop
);
const el = document.getElementById('counter');
store.subscribe(() => {
el.innerHTML = store.getState().value;
});
const increment = document.getElementById('increment');
const decrement = document.getElementById('decrement');
increment.onclick = () => store.dispatch({ type: INCREMENT_COUNTER });
decrement.onclick = () => store.dispatch({ type: DECREMENT_COUNTER });
================================================
FILE: test/perf/data.js
================================================
// Source: http://beta.json-generator.com/V1omRaUJG
/* eslint-disable */
export const bigString = Array(10000000).join('t');
export const bigArray = [
{
"_id": "580ddf0b168ab8fe470be6e0",
"index": 0,
"guid": "2ce09bef-e6a5-4894-b720-74c9eb72098d",
"isActive": true,
"balance": "$3,164.44",
"picture": "http://placehold.it/32x32",
"age": 30,
"eyeColor": "green",
"name": {
"first": "Kenya",
"last": "Hoover"
},
"company": "QUALITERN",
"email": "kenya.hoover@qualitern.biz",
"phone": "+1 (829) 556-2040",
"address": "605 Glenwood Road, Cherokee, Oklahoma, 8113",
"about": "Fugiat dolore ut esse ullamco incididunt culpa qui pariatur mollit nostrud incididunt. Quis pariatur sunt ut ipsum qui consequat sit dolore consequat esse elit consectetur do. Cillum labore cupidatat ipsum laboris. Non nisi minim adipisicing et culpa consectetur mollit incididunt ullamco. Non velit ea irure aute aliqua et incididunt officia laborum.",
"registered": "Monday, June 22, 2015 9:38 AM",
"latitude": "84.835869",
"longitude": "64.139911",
"tags": [
"eiusmod",
"aute",
"ipsum",
"ad",
"mollit"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Alba Bartlett"
},
{
"id": 1,
"name": "Andrews Mcleod"
},
{
"id": 2,
"name": "Elise Velazquez"
}
],
"greeting": "Hello, Kenya! You have 8 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0bc26524220b80fa59",
"index": 1,
"guid": "80713a26-75b0-4a4e-914d-52f31fade72c",
"isActive": true,
"balance": "$1,455.30",
"picture": "http://placehold.it/32x32",
"age": 28,
"eyeColor": "blue",
"name": {
"first": "Jami",
"last": "Mcfarland"
},
"company": "LIMAGE",
"email": "jami.mcfarland@limage.co.uk",
"phone": "+1 (944) 566-3918",
"address": "804 Montgomery Place, Henrietta, Alaska, 9608",
"about": "Velit esse ut dolor Lorem laboris esse aute est pariatur tempor esse aute ut ut. In magna esse aute ea cillum qui mollit consectetur minim qui pariatur. Sit consequat fugiat ut veniam non ut deserunt culpa velit ex id laborum tempor. Duis est amet sunt id sunt. Ullamco minim officia irure quis veniam ipsum. Minim proident commodo ea ea dolore. Velit sunt magna commodo quis est dolor eiusmod aliqua occaecat tempor ut.",
"registered": "Saturday, October 24, 2015 9:38 AM",
"latitude": "-39.25774",
"longitude": "-118.315297",
"tags": [
"voluptate",
"dolor",
"enim",
"reprehenderit",
"et"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Goff Compton"
},
{
"id": 1,
"name": "Sherry Randall"
},
{
"id": 2,
"name": "Janell Mcconnell"
}
],
"greeting": "Hello, Jami! You have 9 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0b8b30c17733f75cf3",
"index": 2,
"guid": "dca38381-500a-4f4e-823a-d95484f9e87d",
"isActive": false,
"balance": "$1,451.88",
"picture": "http://placehold.it/32x32",
"age": 27,
"eyeColor": "brown",
"name": {
"first": "Jodie",
"last": "Holder"
},
"company": "AVIT",
"email": "jodie.holder@avit.us",
"phone": "+1 (948) 512-2550",
"address": "371 Stockholm Street, Wattsville, Federated States Of Micronesia, 4778",
"about": "Voluptate nisi commodo duis sunt. Magna consectetur minim consectetur esse excepteur adipisicing laboris. Culpa sunt culpa sit exercitation. Duis ea culpa aliqua do exercitation adipisicing ullamco ut officia occaecat incididunt dolore nisi. Tempor est proident cillum nulla do exercitation dolor incididunt. Aute magna aliquip elit irure dolor anim voluptate.",
"registered": "Sunday, April 5, 2015 12:27 PM",
"latitude": "68.671844",
"longitude": "100.317594",
"tags": [
"Lorem",
"qui",
"do",
"excepteur",
"duis"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Mason Carroll"
},
{
"id": 1,
"name": "Bonnie Ross"
},
{
"id": 2,
"name": "Shields Mays"
}
],
"greeting": "Hello, Jodie! You have 5 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0bd7a19dd3361592b6",
"index": 3,
"guid": "0c45af75-ee65-427a-a462-e01d5a3d882f",
"isActive": true,
"balance": "$1,883.45",
"picture": "http://placehold.it/32x32",
"age": 25,
"eyeColor": "brown",
"name": {
"first": "Britney",
"last": "Ryan"
},
"company": "BUNGA",
"email": "britney.ryan@bunga.name",
"phone": "+1 (996) 502-2698",
"address": "520 Monument Walk, Shindler, Iowa, 1721",
"about": "Cupidatat aute est consectetur eiusmod ut veniam qui sit adipisicing Lorem nostrud proident deserunt exercitation. Laborum ullamco minim nisi nulla ullamco fugiat laboris nisi eiusmod ullamco enim aliqua deserunt. Occaecat anim aliquip est sunt voluptate qui dolore. Minim mollit et esse quis tempor eu anim deserunt nostrud. Voluptate amet voluptate eu anim culpa quis. Non do aliqua sit cupidatat eiusmod commodo in sit esse consequat. Cupidatat elit do exercitation ex proident ex nulla ex ad ut.",
"registered": "Tuesday, January 19, 2016 12:05 PM",
"latitude": "-12.692828",
"longitude": "172.541591",
"tags": [
"fugiat",
"fugiat",
"anim",
"magna",
"in"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Jeanette Paul"
},
{
"id": 1,
"name": "Jones Sherman"
},
{
"id": 2,
"name": "Pruitt Gross"
}
],
"greeting": "Hello, Britney! You have 8 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0bdb18815e253438a8",
"index": 4,
"guid": "35df48d8-e840-43fc-b99c-f078a0c028d5",
"isActive": false,
"balance": "$2,753.26",
"picture": "http://placehold.it/32x32",
"age": 20,
"eyeColor": "blue",
"name": {
"first": "West",
"last": "Sharp"
},
"company": "GROK",
"email": "west.sharp@grok.info",
"phone": "+1 (947) 561-3088",
"address": "217 Clay Street, Fingerville, Puerto Rico, 382",
"about": "Tempor ut ex aliqua ipsum. Ipsum fugiat dolor exercitation mollit eiusmod duis nulla occaecat excepteur ea irure minim minim sit. Proident esse id deserunt tempor dolor sit consectetur proident deserunt fugiat excepteur laborum. Incididunt fugiat id fugiat id Lorem est sit aliqua sit officia excepteur nulla mollit. Aliquip nulla nisi ea qui ex non nostrud culpa et anim. Velit labore esse id exercitation ex duis aliquip est ea eu. Sint Lorem mollit deserunt adipisicing do amet laborum velit nostrud commodo enim fugiat anim pariatur.",
"registered": "Tuesday, May 10, 2016 2:56 PM",
"latitude": "6.032735",
"longitude": "-168.931741",
"tags": [
"non",
"aliquip",
"ullamco",
"ex",
"veniam"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Head Riley"
},
{
"id": 1,
"name": "Meyer Oneal"
},
{
"id": 2,
"name": "Molina Tyson"
}
],
"greeting": "Hello, West! You have 6 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0ba2234b9e4a2b47b2",
"index": 5,
"guid": "16a1e635-f30b-49d7-b0f2-69ee74313900",
"isActive": true,
"balance": "$3,982.09",
"picture": "http://placehold.it/32x32",
"age": 40,
"eyeColor": "blue",
"name": {
"first": "Manuela",
"last": "Henry"
},
"company": "MEDCOM",
"email": "manuela.henry@medcom.io",
"phone": "+1 (876) 521-2923",
"address": "112 Clove Road, Cliffside, Kansas, 6979",
"about": "Exercitation ea esse aliquip sint nisi consequat dolor adipisicing do pariatur et id est voluptate. In occaecat dolor exercitation do aliquip cillum in. Deserunt nisi deserunt Lorem aliqua adipisicing. Consequat eiusmod occaecat pariatur mollit aliqua non tempor aliquip sint consequat sit enim. Elit consectetur dolor sint ipsum officia in duis laboris irure aliquip ea labore. Aliquip ullamco fugiat dolore fugiat id. Deserunt id amet eiusmod tempor do tempor ut laborum.",
"registered": "Wednesday, March 4, 2015 4:00 PM",
"latitude": "-53.534313",
"longitude": "101.348892",
"tags": [
"sint",
"voluptate",
"duis",
"laboris",
"nisi"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Beryl Chang"
},
{
"id": 1,
"name": "Pierce Simpson"
},
{
"id": 2,
"name": "Sonja Pacheco"
}
],
"greeting": "Hello, Manuela! You have 6 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0b39bcca5393e6b4a5",
"index": 6,
"guid": "4c69c263-a646-4446-adfe-eeac5481ade3",
"isActive": false,
"balance": "$1,557.52",
"picture": "http://placehold.it/32x32",
"age": 36,
"eyeColor": "green",
"name": {
"first": "Marcy",
"last": "Collier"
},
"company": "KINETICA",
"email": "marcy.collier@kinetica.com",
"phone": "+1 (812) 599-2621",
"address": "701 Melrose Street, Cloverdale, North Dakota, 8703",
"about": "Cupidatat velit cupidatat officia ad. Nulla cupidatat esse velit velit. Officia amet ea cupidatat sint consequat cupidatat. Eiusmod deserunt laborum qui proident tempor ullamco tempor officia laborum cillum ipsum commodo mollit.",
"registered": "Sunday, December 7, 2014 11:48 PM",
"latitude": "19.152716",
"longitude": "119.251991",
"tags": [
"minim",
"qui",
"exercitation",
"tempor",
"sunt"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Estes Porter"
},
{
"id": 1,
"name": "Sheila Miller"
},
{
"id": 2,
"name": "Bell Rosario"
}
],
"greeting": "Hello, Marcy! You have 9 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0b0887381e90657c23",
"index": 7,
"guid": "80b50d03-70cd-4ce5-b6c7-c3d60b9e29ff",
"isActive": false,
"balance": "$3,203.72",
"picture": "http://placehold.it/32x32",
"age": 34,
"eyeColor": "green",
"name": {
"first": "Esperanza",
"last": "Mack"
},
"company": "FURNAFIX",
"email": "esperanza.mack@furnafix.tv",
"phone": "+1 (948) 511-2731",
"address": "502 Bliss Terrace, Marenisco, Northern Mariana Islands, 7773",
"about": "Proident deserunt ipsum aute irure laboris nisi non velit officia nisi anim. Magna nisi eiusmod deserunt ad veniam sit ullamco sit fugiat officia dolor incididunt id irure. Laborum id fugiat pariatur dolor proident Lorem do ex occaecat.",
"registered": "Sunday, April 24, 2016 9:33 AM",
"latitude": "79.033601",
"longitude": "138.782377",
"tags": [
"velit",
"sint",
"est",
"proident",
"in"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Roy Clemons"
},
{
"id": 1,
"name": "Baldwin Glenn"
},
{
"id": 2,
"name": "Castaneda Combs"
}
],
"greeting": "Hello, Esperanza! You have 6 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0bee6486345816b9f4",
"index": 8,
"guid": "629ee6bb-bbe3-4f7e-9f6c-b8b53761e7b5",
"isActive": false,
"balance": "$2,112.11",
"picture": "http://placehold.it/32x32",
"age": 37,
"eyeColor": "green",
"name": {
"first": "Bender",
"last": "Sheppard"
},
"company": "PROXSOFT",
"email": "bender.sheppard@proxsoft.net",
"phone": "+1 (986) 490-3036",
"address": "509 Fuller Place, Dodge, Montana, 1706",
"about": "Ullamco dolore fugiat nulla non amet Lorem elit ullamco ipsum. Mollit anim do eiusmod esse sint esse voluptate exercitation ipsum ut nulla. Dolore pariatur eiusmod amet reprehenderit. Ea officia in ipsum laborum officia id tempor quis nostrud id ex id duis. Eiusmod incididunt voluptate duis sint laborum.",
"registered": "Sunday, June 19, 2016 8:45 AM",
"latitude": "-35.720137",
"longitude": "-49.926356",
"tags": [
"enim",
"cupidatat",
"cupidatat",
"tempor",
"cupidatat"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Owens Branch"
},
{
"id": 1,
"name": "Williams Boone"
},
{
"id": 2,
"name": "Doris Morrison"
}
],
"greeting": "Hello, Bender! You have 5 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0b4b41ebbb13abd5d0",
"index": 9,
"guid": "54401f5b-ae5f-412c-9149-7a361a73e02f",
"isActive": true,
"balance": "$1,483.87",
"picture": "http://placehold.it/32x32",
"age": 26,
"eyeColor": "brown",
"name": {
"first": "Summers",
"last": "Donaldson"
},
"company": "ARTIQ",
"email": "summers.donaldson@artiq.org",
"phone": "+1 (972) 486-2456",
"address": "980 Pierrepont Street, Gerber, Ohio, 9892",
"about": "Proident veniam officia sunt esse culpa labore anim quis do. Sunt ullamco elit amet incididunt fugiat magna id do veniam ullamco et anim. Aute labore pariatur ex ea deserunt nulla Lorem adipisicing non ad. Id ea proident voluptate aliqua velit aliquip enim incididunt. Do ipsum ipsum voluptate voluptate aliquip ex officia velit in officia ex esse aute.",
"registered": "Tuesday, December 30, 2014 1:21 AM",
"latitude": "-83.907394",
"longitude": "10.741994",
"tags": [
"laborum",
"proident",
"occaecat",
"elit",
"occaecat"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Love Lott"
},
{
"id": 1,
"name": "Johnson Clay"
},
{
"id": 2,
"name": "Nelson Blair"
}
],
"greeting": "Hello, Summers! You have 8 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0bc2e80831e45b4dc6",
"index": 10,
"guid": "0e7ba51d-202e-4e28-a6a5-a9b6ec63abd4",
"isActive": false,
"balance": "$3,079.46",
"picture": "http://placehold.it/32x32",
"age": 38,
"eyeColor": "blue",
"name": {
"first": "Shelby",
"last": "Conway"
},
"company": "ZINCA",
"email": "shelby.conway@zinca.me",
"phone": "+1 (985) 510-2634",
"address": "955 Seagate Terrace, Verdi, Oregon, 6649",
"about": "Incididunt aliqua veniam elit ea cupidatat dolore. Ipsum culpa ut consequat velit sint sint ad. Ex fugiat consequat et sit ex sit esse ullamco magna reprehenderit ea id reprehenderit. Adipisicing et esse commodo sit Lorem ipsum ea fugiat officia do et culpa reprehenderit sunt.",
"registered": "Tuesday, March 1, 2016 12:46 PM",
"latitude": "79.379348",
"longitude": "-179.029537",
"tags": [
"elit",
"dolore",
"in",
"excepteur",
"sit"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Dean Salinas"
},
{
"id": 1,
"name": "Josie Calhoun"
},
{
"id": 2,
"name": "Huffman Walton"
}
],
"greeting": "Hello, Shelby! You have 10 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0b38c03f61248fbb18",
"index": 11,
"guid": "004be9ab-5520-4f85-b6e9-806c701faafe",
"isActive": false,
"balance": "$3,974.78",
"picture": "http://placehold.it/32x32",
"age": 23,
"eyeColor": "green",
"name": {
"first": "Reynolds",
"last": "Hurley"
},
"company": "TELLIFLY",
"email": "reynolds.hurley@tellifly.ca",
"phone": "+1 (906) 482-2018",
"address": "364 Jackson Court, Edmund, Arizona, 5300",
"about": "Aute deserunt labore consectetur non anim culpa mollit. Cillum Lorem excepteur esse non anim. Duis aliqua id laborum ex mollit id tempor nisi non voluptate. Nostrud enim in labore consequat id laboris Lorem veniam veniam amet. Laboris nostrud dolore proident labore incididunt elit quis officia elit est exercitation veniam aute.",
"registered": "Friday, May 27, 2016 1:32 PM",
"latitude": "-5.022457",
"longitude": "96.958037",
"tags": [
"sit",
"laboris",
"Lorem",
"dolor",
"sint"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Heidi Flores"
},
{
"id": 1,
"name": "Armstrong Middleton"
},
{
"id": 2,
"name": "Figueroa Camacho"
}
],
"greeting": "Hello, Reynolds! You have 9 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0b1835b3ed2579bfc0",
"index": 12,
"guid": "88c12f0a-23df-4161-8e3a-c6c3101292f2",
"isActive": false,
"balance": "$1,419.27",
"picture": "http://placehold.it/32x32",
"age": 38,
"eyeColor": "blue",
"name": {
"first": "Young",
"last": "Santiago"
},
"company": "GINKLE",
"email": "young.santiago@ginkle.biz",
"phone": "+1 (922) 566-2702",
"address": "278 Bartlett Place, Tetherow, Vermont, 191",
"about": "Est consectetur esse culpa ullamco. Dolore voluptate aute consequat voluptate. Exercitation fugiat est anim qui exercitation nostrud.",
"registered": "Tuesday, June 28, 2016 7:18 AM",
"latitude": "-43.055507",
"longitude": "45.085776",
"tags": [
"sit",
"Lorem",
"deserunt",
"fugiat",
"cupidatat"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Sheryl Smith"
},
{
"id": 1,
"name": "Felicia Mcintosh"
},
{
"id": 2,
"name": "Hoover Hardy"
}
],
"greeting": "Hello, Young! You have 5 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0bf31dbaaeb3c9cfcd",
"index": 13,
"guid": "3a39f0ef-3659-4e01-b2d7-bb537fdd1a3a",
"isActive": false,
"balance": "$2,529.26",
"picture": "http://placehold.it/32x32",
"age": 34,
"eyeColor": "blue",
"name": {
"first": "Trina",
"last": "Decker"
},
"company": "SULTRAXIN",
"email": "trina.decker@sultraxin.co.uk",
"phone": "+1 (980) 524-2887",
"address": "874 Llama Court, Klondike, California, 293",
"about": "Ad duis Lorem nulla ex. Proident pariatur Lorem pariatur fugiat deserunt duis incididunt esse eiusmod officia. Eiusmod quis pariatur mollit sint exercitation aute. Mollit enim consequat aliqua quis. Fugiat Lorem do duis aute sit dolore.",
"registered": "Friday, February 19, 2016 1:30 PM",
"latitude": "15.917567",
"longitude": "-1.518009",
"tags": [
"ex",
"sit",
"enim",
"consequat",
"sit"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Wyatt Pickett"
},
{
"id": 1,
"name": "Valarie Barr"
},
{
"id": 2,
"name": "Pace Best"
}
],
"greeting": "Hello, Trina! You have 6 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0b3934d0edbaeaba18",
"index": 14,
"guid": "d5f5a79c-de56-4aca-bcc4-1b9df58a2b1d",
"isActive": false,
"balance": "$3,670.31",
"picture": "http://placehold.it/32x32",
"age": 35,
"eyeColor": "green",
"name": {
"first": "Tasha",
"last": "Merritt"
},
"company": "RODEOCEAN",
"email": "tasha.merritt@rodeocean.us",
"phone": "+1 (940) 421-2122",
"address": "790 Suydam Place, Keyport, Idaho, 2211",
"about": "Ad elit cillum laboris laborum ut minim aute non ullamco ipsum incididunt labore officia velit. Cillum sunt do laboris enim eiusmod ad elit nostrud est deserunt quis. Consectetur ea ex consectetur commodo cillum sunt mollit Lorem ea sunt sit ut magna. Quis labore fugiat aliquip non consectetur est. Ut pariatur duis veniam ut exercitation est est. Ullamco dolore nulla est pariatur.",
"registered": "Wednesday, October 22, 2014 11:57 PM",
"latitude": "12.554934",
"longitude": "-149.800679",
"tags": [
"reprehenderit",
"ex",
"tempor",
"sint",
"exercitation"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Dennis Mills"
},
{
"id": 1,
"name": "Vargas Guerrero"
},
{
"id": 2,
"name": "Hollie Chavez"
}
],
"greeting": "Hello, Tasha! You have 6 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0bafee284452c9a02e",
"index": 15,
"guid": "b35eff37-836a-4928-9a06-701c2bc32881",
"isActive": true,
"balance": "$2,931.23",
"picture": "http://placehold.it/32x32",
"age": 24,
"eyeColor": "blue",
"name": {
"first": "Maryann",
"last": "Ewing"
},
"company": "ASSISTIA",
"email": "maryann.ewing@assistia.name",
"phone": "+1 (911) 512-2851",
"address": "450 Seeley Street, Winfred, Mississippi, 587",
"about": "Aliquip et Lorem aliquip aute adipisicing nisi incididunt deserunt non ipsum irure cillum voluptate. Sunt exercitation irure mollit proident anim ut veniam enim ullamco eiusmod do sint aliqua aliqua. Enim sunt quis exercitation culpa velit. Officia commodo amet enim quis ipsum non Lorem non excepteur. Quis aute elit irure elit sit ullamco cupidatat ullamco enim et cillum id.",
"registered": "Friday, June 17, 2016 2:12 PM",
"latitude": "47.215077",
"longitude": "81.317216",
"tags": [
"commodo",
"id",
"nulla",
"pariatur",
"exercitation"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Sue Finley"
},
{
"id": 1,
"name": "Chandler Mccarty"
},
{
"id": 2,
"name": "Laura Coleman"
}
],
"greeting": "Hello, Maryann! You have 8 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0b5b3b1890b6b64d7b",
"index": 16,
"guid": "ef7682f0-23ff-479d-8a81-54d01e2641ec",
"isActive": true,
"balance": "$1,841.30",
"picture": "http://placehold.it/32x32",
"age": 30,
"eyeColor": "brown",
"name": {
"first": "Hammond",
"last": "Koch"
},
"company": "CYCLONICA",
"email": "hammond.koch@cyclonica.info",
"phone": "+1 (974) 481-2184",
"address": "141 Exeter Street, Kipp, Alabama, 643",
"about": "Ullamco aliqua id veniam ea do. Commodo dolore fugiat ut aliquip. Est ut qui elit amet. Aliquip mollit occaecat consequat id exercitation eu fugiat voluptate culpa labore eiusmod aliqua cillum. Eu amet consequat deserunt enim qui mollit aliqua nisi ad ut veniam elit pariatur.",
"registered": "Sunday, July 13, 2014 10:47 PM",
"latitude": "8.698118",
"longitude": "-68.775186",
"tags": [
"id",
"voluptate",
"labore",
"magna",
"Lorem"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Mildred Brewer"
},
{
"id": 1,
"name": "Buck Potts"
},
{
"id": 2,
"name": "Kline Valencia"
}
],
"greeting": "Hello, Hammond! You have 5 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0be6e62a7ef65bf203",
"index": 17,
"guid": "2c45743d-dfe7-4621-acc2-7664fc7a39f1",
"isActive": true,
"balance": "$3,281.24",
"picture": "http://placehold.it/32x32",
"age": 23,
"eyeColor": "blue",
"name": {
"first": "Holt",
"last": "Pennington"
},
"company": "NORALEX",
"email": "holt.pennington@noralex.io",
"phone": "+1 (948) 557-3137",
"address": "483 Woodruff Avenue, Kapowsin, Illinois, 6162",
"about": "Nisi non consectetur est deserunt nisi aliqua. Mollit labore dolore ex ex id eu proident nostrud deserunt consequat nostrud. Ad irure duis ex enim commodo proident ullamco esse. Ex sit eiusmod occaecat minim nulla ut Lorem Lorem. Quis est in et est cupidatat fugiat dolor minim voluptate.",
"registered": "Saturday, September 20, 2014 3:43 AM",
"latitude": "-1.585287",
"longitude": "-32.054323",
"tags": [
"ex",
"adipisicing",
"est",
"aute",
"amet"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Irma Wynn"
},
{
"id": 1,
"name": "Branch Todd"
},
{
"id": 2,
"name": "Carey Dejesus"
}
],
"greeting": "Hello, Holt! You have 7 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0bd38a23008f8a6714",
"index": 18,
"guid": "ef07b7c0-ee2e-4163-9c25-829cfcd2b142",
"isActive": true,
"balance": "$2,267.65",
"picture": "http://placehold.it/32x32",
"age": 27,
"eyeColor": "brown",
"name": {
"first": "Farley",
"last": "Jensen"
},
"company": "CODACT",
"email": "farley.jensen@codact.com",
"phone": "+1 (861) 581-3498",
"address": "535 Richmond Street, Boomer, Rhode Island, 4214",
"about": "Et dolore do qui velit aliquip sit laboris consequat tempor officia pariatur ex. Consectetur adipisicing non exercitation qui culpa deserunt reprehenderit magna qui laboris irure commodo ex excepteur. Do sit eiusmod amet pariatur velit reprehenderit pariatur tempor irure.",
"registered": "Thursday, January 21, 2016 10:53 PM",
"latitude": "57.38679",
"longitude": "-118.607665",
"tags": [
"esse",
"ipsum",
"nisi",
"tempor",
"veniam"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Roslyn Bush"
},
{
"id": 1,
"name": "Garrison Good"
},
{
"id": 2,
"name": "Langley Mccray"
}
],
"greeting": "Hello, Farley! You have 7 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0b4d770216e6684e75",
"index": 19,
"guid": "7d88afe0-cc56-454c-ae62-bebcd97bf1ce",
"isActive": false,
"balance": "$2,132.97",
"picture": "http://placehold.it/32x32",
"age": 20,
"eyeColor": "green",
"name": {
"first": "Lindsey",
"last": "Mccall"
},
"company": "CENTICE",
"email": "lindsey.mccall@centice.tv",
"phone": "+1 (833) 454-2919",
"address": "809 Seaview Court, Sexton, New Mexico, 333",
"about": "Id minim voluptate ullamco voluptate elit in consectetur irure commodo velit qui eiusmod exercitation. Commodo magna consectetur excepteur eiusmod est minim ipsum occaecat amet. Labore quis anim aliqua Lorem qui. Sint ad cillum cillum excepteur eu nostrud aute.",
"registered": "Thursday, February 20, 2014 10:05 AM",
"latitude": "41.095766",
"longitude": "-80.580867",
"tags": [
"esse",
"do",
"velit",
"deserunt",
"officia"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Allie Deleon"
},
{
"id": 1,
"name": "Trudy Miles"
},
{
"id": 2,
"name": "Lucy Lambert"
}
],
"greeting": "Hello, Lindsey! You have 5 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0b1cd38dd10da43b88",
"index": 20,
"guid": "29e94d5c-de50-4bd1-93bd-ccbb98e2b0b5",
"isActive": true,
"balance": "$1,494.27",
"picture": "http://placehold.it/32x32",
"age": 35,
"eyeColor": "brown",
"name": {
"first": "Schmidt",
"last": "Terry"
},
"company": "ACCUSAGE",
"email": "schmidt.terry@accusage.net",
"phone": "+1 (917) 421-2816",
"address": "949 Beard Street, Allensworth, Marshall Islands, 5372",
"about": "Sint ex aute irure consequat mollit nostrud non. Non laboris ut deserunt nulla commodo id deserunt ut magna duis irure cupidatat. Deserunt eu incididunt exercitation velit ad laborum ad ipsum mollit reprehenderit laboris occaecat ullamco nulla. Consequat culpa id ullamco voluptate esse incididunt sint labore anim minim Lorem quis duis. In officia ex enim enim.",
"registered": "Tuesday, January 26, 2016 1:28 PM",
"latitude": "41.675283",
"longitude": "-72.234891",
"tags": [
"consequat",
"aliqua",
"nostrud",
"voluptate",
"dolor"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Vonda Byers"
},
{
"id": 1,
"name": "Ashley Mayer"
},
{
"id": 2,
"name": "Deborah Fuller"
}
],
"greeting": "Hello, Schmidt! You have 6 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0b06efb327eb692d35",
"index": 21,
"guid": "ea02ef2d-6359-47c3-b324-c753511ea778",
"isActive": false,
"balance": "$1,009.38",
"picture": "http://placehold.it/32x32",
"age": 24,
"eyeColor": "brown",
"name": {
"first": "Bradley",
"last": "Wyatt"
},
"company": "PANZENT",
"email": "bradley.wyatt@panzent.org",
"phone": "+1 (875) 520-2168",
"address": "287 Utica Avenue, Hendersonville, Nebraska, 8366",
"about": "Do duis proident qui reprehenderit adipisicing nisi aliquip. Ut proident adipisicing quis proident sunt laboris adipisicing dolor. Non est aute Lorem cupidatat minim ea irure laborum minim eiusmod tempor nulla.",
"registered": "Tuesday, May 6, 2014 6:25 PM",
"latitude": "77.325105",
"longitude": "-85.665071",
"tags": [
"in",
"laborum",
"irure",
"irure",
"exercitation"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Stacey Banks"
},
{
"id": 1,
"name": "Kelley Cox"
},
{
"id": 2,
"name": "Gayle Ochoa"
}
],
"greeting": "Hello, Bradley! You have 6 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0b39a0426fed8383c6",
"index": 22,
"guid": "061746b2-33e4-4f40-b19d-d829a2068d87",
"isActive": true,
"balance": "$2,235.00",
"picture": "http://placehold.it/32x32",
"age": 32,
"eyeColor": "blue",
"name": {
"first": "Stafford",
"last": "Sweet"
},
"company": "VIRVA",
"email": "stafford.sweet@virva.me",
"phone": "+1 (902) 447-3038",
"address": "688 Bond Street, Robinette, Pennsylvania, 3883",
"about": "Proident minim quis esse excepteur voluptate reprehenderit ea. Adipisicing esse ex aute in exercitation aute enim ut qui fugiat ex tempor eiusmod. Consectetur minim exercitation dolor aliquip pariatur cupidatat deserunt eu reprehenderit anim duis occaecat culpa. Sint aliquip ad mollit ut dolor excepteur duis nulla ipsum.",
"registered": "Sunday, March 30, 2014 7:54 PM",
"latitude": "83.670234",
"longitude": "-59.354751",
"tags": [
"proident",
"et",
"sit",
"id",
"reprehenderit"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Christi Willis"
},
{
"id": 1,
"name": "Deidre Thompson"
},
{
"id": 2,
"name": "Torres Kennedy"
}
],
"greeting": "Hello, Stafford! You have 9 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0bbd300e4bf08c3141",
"index": 23,
"guid": "9319b49d-63ef-4a31-bf86-70b0ceb377d9",
"isActive": false,
"balance": "$2,151.45",
"picture": "http://placehold.it/32x32",
"age": 25,
"eyeColor": "blue",
"name": {
"first": "Clarke",
"last": "Rhodes"
},
"company": "LIQUIDOC",
"email": "clarke.rhodes@liquidoc.ca",
"phone": "+1 (861) 411-3808",
"address": "276 Gain Court, Downsville, Maine, 6619",
"about": "Ullamco eu enim fugiat duis quis eiusmod elit eiusmod aute. Adipisicing anim mollit non cillum irure velit deserunt magna voluptate incididunt ad dolore laboris non. Excepteur aute cillum dolore voluptate mollit quis ut ea non ullamco sint. Ullamco exercitation quis consequat proident ipsum aliqua dolor laboris voluptate dolore excepteur veniam. Nostrud sunt proident officia quis laborum proident elit laboris do.",
"registered": "Sunday, February 15, 2015 5:43 AM",
"latitude": "-81.487322",
"longitude": "-112.87443",
"tags": [
"velit",
"nostrud",
"enim",
"voluptate",
"et"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Mindy Horne"
},
{
"id": 1,
"name": "Pamela Logan"
},
{
"id": 2,
"name": "Peters Mccullough"
}
],
"greeting": "Hello, Clarke! You have 7 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0b736919e3a60cfa05",
"index": 24,
"guid": "8e31e6e1-3cc6-4a9f-bfa7-9955ec571776",
"isActive": true,
"balance": "$3,542.80",
"picture": "http://placehold.it/32x32",
"age": 25,
"eyeColor": "brown",
"name": {
"first": "Simon",
"last": "Sellers"
},
"company": "PEARLESSA",
"email": "simon.sellers@pearlessa.biz",
"phone": "+1 (963) 586-2837",
"address": "691 Wyona Street, Calvary, West Virginia, 216",
"about": "Mollit consequat aliquip ad ut in reprehenderit. Ea aute laborum id dolor labore est adipisicing deserunt sit aliquip culpa culpa eiusmod excepteur. Mollit veniam magna ut mollit. Exercitation elit veniam laboris nostrud deserunt sint aute.",
"registered": "Monday, November 9, 2015 12:10 AM",
"latitude": "-3.493185",
"longitude": "-172.87793",
"tags": [
"id",
"labore",
"consequat",
"ea",
"occaecat"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Lorrie Eaton"
},
{
"id": 1,
"name": "Puckett Harper"
},
{
"id": 2,
"name": "Roach Powers"
}
],
"greeting": "Hello, Simon! You have 10 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0b2d85bc8100e78a3c",
"index": 25,
"guid": "c836a6ee-d898-46a8-82f5-30408c199ed9",
"isActive": false,
"balance": "$1,425.17",
"picture": "http://placehold.it/32x32",
"age": 36,
"eyeColor": "blue",
"name": {
"first": "Tyler",
"last": "Rose"
},
"company": "ZOGAK",
"email": "tyler.rose@zogak.co.uk",
"phone": "+1 (959) 508-3061",
"address": "575 Furman Avenue, Zeba, South Dakota, 5624",
"about": "Lorem irure eiusmod quis nostrud anim aute consequat mollit est. Fugiat laboris tempor officia voluptate commodo dolore. Aute elit ipsum esse cupidatat laborum anim nisi in exercitation quis duis. Nisi exercitation labore pariatur quis fugiat. Consequat cillum deserunt exercitation officia mollit amet reprehenderit laborum adipisicing id ex cupidatat. Tempor in aliqua irure ad. Cupidatat qui et aliqua sunt sint laboris incididunt in.",
"registered": "Friday, November 27, 2015 6:39 PM",
"latitude": "21.932938",
"longitude": "-144.979719",
"tags": [
"mollit",
"excepteur",
"deserunt",
"ipsum",
"proident"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Felecia Cantrell"
},
{
"id": 1,
"name": "Ortega Wilkinson"
},
{
"id": 2,
"name": "Linda Jennings"
}
],
"greeting": "Hello, Tyler! You have 6 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0b0a52937ecb5d0c4d",
"index": 26,
"guid": "a7778e1d-70c3-4f66-ac41-60035653fb5f",
"isActive": true,
"balance": "$1,640.96",
"picture": "http://placehold.it/32x32",
"age": 21,
"eyeColor": "green",
"name": {
"first": "Greer",
"last": "Robbins"
},
"company": "KYAGURU",
"email": "greer.robbins@kyaguru.us",
"phone": "+1 (925) 443-3311",
"address": "650 Grant Avenue, Falmouth, Texas, 2573",
"about": "Ipsum adipisicing occaecat occaecat deserunt non cupidatat non velit deserunt velit amet velit exercitation sint. Commodo eiusmod nisi velit ea officia laborum cupidatat mollit sunt esse tempor est non. Veniam aliquip dolor est sunt et. Et laboris nostrud reprehenderit nisi dolor aliqua occaecat aute commodo aute duis do. Esse exercitation Lorem adipisicing sunt cillum nisi minim pariatur consectetur. Ipsum amet dolore id voluptate ipsum amet ut cupidatat laboris fugiat ex sunt minim.",
"registered": "Wednesday, January 27, 2016 1:24 AM",
"latitude": "43.532255",
"longitude": "102.388279",
"tags": [
"non",
"occaecat",
"deserunt",
"exercitation",
"velit"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Hogan Powell"
},
{
"id": 1,
"name": "Valenzuela Chase"
},
{
"id": 2,
"name": "Lakeisha Ball"
}
],
"greeting": "Hello, Greer! You have 6 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0b10e85c3f2db6e944",
"index": 27,
"guid": "7f5f0c36-a744-4121-81f0-8840fb327754",
"isActive": true,
"balance": "$2,977.50",
"picture": "http://placehold.it/32x32",
"age": 23,
"eyeColor": "green",
"name": {
"first": "Kitty",
"last": "Saunders"
},
"company": "SINGAVERA",
"email": "kitty.saunders@singavera.name",
"phone": "+1 (896) 427-2344",
"address": "107 Norfolk Street, Noxen, Missouri, 169",
"about": "Commodo voluptate consectetur id et occaecat consequat consectetur adipisicing eiusmod commodo. Aute nisi culpa fugiat sunt proident. Aliquip laboris elit veniam quis cillum. Nulla enim proident excepteur magna. Proident do aute tempor exercitation nostrud. Lorem officia id excepteur commodo incididunt et deserunt excepteur qui officia est incididunt mollit ut. Aute dolore cupidatat eu pariatur.",
"registered": "Sunday, April 27, 2014 10:20 PM",
"latitude": "33.543748",
"longitude": "10.300569",
"tags": [
"id",
"esse",
"voluptate",
"occaecat",
"incididunt"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Webb Hawkins"
},
{
"id": 1,
"name": "Angie Cline"
},
{
"id": 2,
"name": "Mathews Juarez"
}
],
"greeting": "Hello, Kitty! You have 9 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0baf8e44be8a693264",
"index": 28,
"guid": "99b20c7a-567f-4810-a793-8470571ce457",
"isActive": false,
"balance": "$1,017.55",
"picture": "http://placehold.it/32x32",
"age": 36,
"eyeColor": "green",
"name": {
"first": "Faith",
"last": "Mendoza"
},
"company": "XPLOR",
"email": "faith.mendoza@xplor.info",
"phone": "+1 (872) 504-2016",
"address": "323 Leonard Street, Deltaville, New Hampshire, 5194",
"about": "Tempor commodo laborum fugiat sit consequat reprehenderit sint anim voluptate. In velit do non aliquip officia est deserunt incididunt. Officia dolor id incididunt cillum minim dolore aliqua proident duis. Irure excepteur irure culpa commodo veniam culpa quis Lorem aute.",
"registered": "Saturday, May 30, 2015 7:01 AM",
"latitude": "12.428182",
"longitude": "-166.07543",
"tags": [
"non",
"aute",
"aute",
"sint",
"consequat"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Blair Mcknight"
},
{
"id": 1,
"name": "Mcclain Mcguire"
},
{
"id": 2,
"name": "Araceli Dorsey"
}
],
"greeting": "Hello, Faith! You have 8 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0b52e4d918273360dd",
"index": 29,
"guid": "8c61aed3-6235-4e09-8ec4-ece4fe285a9c",
"isActive": false,
"balance": "$1,182.53",
"picture": "http://placehold.it/32x32",
"age": 36,
"eyeColor": "green",
"name": {
"first": "Amie",
"last": "Crane"
},
"company": "RODEOLOGY",
"email": "amie.crane@rodeology.io",
"phone": "+1 (955) 536-3756",
"address": "578 Box Street, Shelby, Hawaii, 1306",
"about": "Ex esse et minim dolore sint pariatur incididunt esse. Aute dolore quis ad dolor minim laborum amet. Aliquip deserunt ad aute fugiat proident mollit adipisicing mollit sit duis.",
"registered": "Thursday, June 19, 2014 2:34 PM",
"latitude": "-19.02611",
"longitude": "127.57473",
"tags": [
"ad",
"nostrud",
"sit",
"duis",
"adipisicing"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Kirk Stewart"
},
{
"id": 1,
"name": "Rice Horton"
},
{
"id": 2,
"name": "Kathy Shaffer"
}
],
"greeting": "Hello, Amie! You have 7 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c28c0b7bda4325a1d",
"index": 30,
"guid": "ed1385bf-c7d8-41fa-a099-734894807171",
"isActive": false,
"balance": "$3,062.06",
"picture": "http://placehold.it/32x32",
"age": 39,
"eyeColor": "green",
"name": {
"first": "Best",
"last": "Buchanan"
},
"company": "CONFERIA",
"email": "best.buchanan@conferia.com",
"phone": "+1 (845) 406-3653",
"address": "742 Miami Court, Wanship, Georgia, 6992",
"about": "Officia labore velit non mollit adipisicing sit do anim ullamco ut. Incididunt labore aliquip nostrud irure adipisicing id voluptate nulla ex. Ex duis incididunt eu sit et pariatur ullamco incididunt fugiat ex incididunt ea laboris.",
"registered": "Tuesday, December 30, 2014 11:23 AM",
"latitude": "-14.672379",
"longitude": "123.40741",
"tags": [
"et",
"deserunt",
"cupidatat",
"pariatur",
"eu"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Hudson Mejia"
},
{
"id": 1,
"name": "Byers Montoya"
},
{
"id": 2,
"name": "Patty Spencer"
}
],
"greeting": "Hello, Best! You have 6 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c9e948778b2db882e",
"index": 31,
"guid": "700b5215-132e-4524-9ca8-1224a746f09b",
"isActive": true,
"balance": "$3,891.22",
"picture": "http://placehold.it/32x32",
"age": 29,
"eyeColor": "green",
"name": {
"first": "Francine",
"last": "Green"
},
"company": "NUTRALAB",
"email": "francine.green@nutralab.tv",
"phone": "+1 (841) 589-3865",
"address": "165 Union Street, Hebron, North Carolina, 8094",
"about": "Sunt eu irure aute incididunt mollit. Nisi mollit nulla aliquip cupidatat aute culpa cupidatat mollit tempor. Irure magna officia sint officia. Quis adipisicing ullamco non id aliquip. Non velit commodo quis elit nostrud adipisicing nisi incididunt non sint enim. In qui fugiat ullamco irure Lorem veniam pariatur culpa.",
"registered": "Tuesday, June 30, 2015 2:52 AM",
"latitude": "-83.386439",
"longitude": "-80.298927",
"tags": [
"mollit",
"aliqua",
"dolor",
"tempor",
"sit"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Page Beasley"
},
{
"id": 1,
"name": "Keith Atkinson"
},
{
"id": 2,
"name": "Hahn Evans"
}
],
"greeting": "Hello, Francine! You have 6 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0c565d848f7f4b0064",
"index": 32,
"guid": "88163664-2ab3-4a01-80f9-10b83ad3dece",
"isActive": false,
"balance": "$2,387.41",
"picture": "http://placehold.it/32x32",
"age": 35,
"eyeColor": "green",
"name": {
"first": "Kelly",
"last": "Fowler"
},
"company": "COMVERGES",
"email": "kelly.fowler@comverges.net",
"phone": "+1 (926) 440-3886",
"address": "917 Kathleen Court, Outlook, Arkansas, 505",
"about": "Esse dolore eiusmod culpa ea velit elit culpa veniam proident culpa consequat cupidatat. Fugiat id proident pariatur est fugiat ea. Esse ex dolor minim cillum incididunt voluptate ipsum. Non dolor amet labore excepteur enim eu duis in qui. Sint dolore minim anim mollit laborum proident ea ipsum officia aliquip. Amet culpa adipisicing nisi occaecat commodo irure in ad veniam ipsum officia labore labore.",
"registered": "Friday, April 4, 2014 7:14 PM",
"latitude": "-24.694221",
"longitude": "43.274287",
"tags": [
"sunt",
"ex",
"est",
"nisi",
"sint"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Cash Hull"
},
{
"id": 1,
"name": "Lorene Michael"
},
{
"id": 2,
"name": "Rodgers Underwood"
}
],
"greeting": "Hello, Kelly! You have 9 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0cab9f4bf7a91707f2",
"index": 33,
"guid": "7f857967-0524-44fc-a028-14bc9b78be00",
"isActive": false,
"balance": "$3,904.91",
"picture": "http://placehold.it/32x32",
"age": 34,
"eyeColor": "brown",
"name": {
"first": "Walters",
"last": "Bishop"
},
"company": "CEPRENE",
"email": "walters.bishop@ceprene.org",
"phone": "+1 (955) 536-2146",
"address": "441 Livonia Avenue, Norvelt, Indiana, 8326",
"about": "Enim ad culpa ut aliqua id eiusmod ad aliqua. Cupidatat voluptate enim esse amet anim officia aliquip incididunt ipsum ut. Dolore magna cillum sunt duis duis elit commodo ipsum cillum aliquip proident nisi laboris. Ad Lorem cillum commodo quis tempor consequat laborum velit aliquip et laboris deserunt officia labore. Commodo enim et est id aute nostrud id. Excepteur consequat aliquip laboris ipsum sit aliqua proident esse adipisicing sint consectetur enim aliquip veniam.",
"registered": "Sunday, August 2, 2015 11:14 AM",
"latitude": "-33.507298",
"longitude": "-177.843777",
"tags": [
"est",
"officia",
"ad",
"fugiat",
"fugiat"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Sloan Larson"
},
{
"id": 1,
"name": "Lora Howe"
},
{
"id": 2,
"name": "Cheri Cain"
}
],
"greeting": "Hello, Walters! You have 8 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0c41960d0332abb69f",
"index": 34,
"guid": "c179f976-46db-4ceb-97dd-d511c2ff2cba",
"isActive": false,
"balance": "$3,922.97",
"picture": "http://placehold.it/32x32",
"age": 36,
"eyeColor": "brown",
"name": {
"first": "Jamie",
"last": "Justice"
},
"company": "CEMENTION",
"email": "jamie.justice@cemention.me",
"phone": "+1 (886) 453-3323",
"address": "534 Downing Street, Coldiron, Louisiana, 2936",
"about": "Ad sint ut qui duis commodo magna sit irure duis labore reprehenderit dolor voluptate. Cillum non dolore mollit amet proident. Tempor sunt aliquip pariatur ullamco incididunt laboris. Adipisicing incididunt magna Lorem voluptate.",
"registered": "Wednesday, February 25, 2015 4:11 AM",
"latitude": "-83.79595",
"longitude": "71.384564",
"tags": [
"quis",
"nisi",
"dolore",
"voluptate",
"fugiat"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Harvey Ramos"
},
{
"id": 1,
"name": "Mays Shannon"
},
{
"id": 2,
"name": "Ball Mcbride"
}
],
"greeting": "Hello, Jamie! You have 5 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c9fb032931aaf922e",
"index": 35,
"guid": "2d85869d-f1e0-4f2d-8544-78652740bb11",
"isActive": true,
"balance": "$1,468.38",
"picture": "http://placehold.it/32x32",
"age": 38,
"eyeColor": "green",
"name": {
"first": "Dyer",
"last": "Tran"
},
"company": "COMVEYOR",
"email": "dyer.tran@comveyor.ca",
"phone": "+1 (890) 529-2771",
"address": "299 Hyman Court, Sims, Colorado, 8328",
"about": "Adipisicing dolor velit non tempor incididunt magna magna dolore. Officia pariatur mollit anim Lorem Lorem esse. Occaecat eiusmod ipsum ipsum excepteur ut duis commodo esse incididunt. Veniam non officia consequat amet duis nulla qui qui ex sint veniam.",
"registered": "Tuesday, October 11, 2016 7:57 AM",
"latitude": "-58.389129",
"longitude": "-86.760618",
"tags": [
"incididunt",
"laboris",
"consectetur",
"voluptate",
"aliqua"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Dominguez Woodard"
},
{
"id": 1,
"name": "Leach Kramer"
},
{
"id": 2,
"name": "Cruz Wilder"
}
],
"greeting": "Hello, Dyer! You have 6 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0cc5bcf8eb53c8bfdf",
"index": 36,
"guid": "6ced7a65-2989-44d3-8d79-7f02fbaf0f4b",
"isActive": true,
"balance": "$1,243.22",
"picture": "http://placehold.it/32x32",
"age": 32,
"eyeColor": "green",
"name": {
"first": "Maureen",
"last": "Ramsey"
},
"company": "PROFLEX",
"email": "maureen.ramsey@proflex.biz",
"phone": "+1 (966) 547-2724",
"address": "828 Louise Terrace, Groton, Michigan, 9563",
"about": "Enim aliqua qui velit ut dolore Lorem officia. Nisi Lorem aute consequat consectetur reprehenderit tempor. Consectetur velit laboris Lorem do anim ex exercitation. Est deserunt mollit reprehenderit eu amet aute eu reprehenderit mollit voluptate adipisicing excepteur dolor. Cillum commodo laborum in commodo do incididunt excepteur exercitation nostrud. Officia aliquip labore id aliquip sunt officia deserunt. Sunt officia nulla commodo sit velit excepteur dolor ea occaecat commodo eu.",
"registered": "Monday, May 18, 2015 11:36 AM",
"latitude": "35.536999",
"longitude": "-158.630389",
"tags": [
"qui",
"amet",
"eu",
"eu",
"mollit"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Good Spears"
},
{
"id": 1,
"name": "Gina Rodriguez"
},
{
"id": 2,
"name": "Snow Harrington"
}
],
"greeting": "Hello, Maureen! You have 6 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0c4f6c60bdf26873c9",
"index": 37,
"guid": "4883e626-07c8-47af-97d4-8ea82f07aa9d",
"isActive": false,
"balance": "$2,250.74",
"picture": "http://placehold.it/32x32",
"age": 21,
"eyeColor": "blue",
"name": {
"first": "Cannon",
"last": "Walters"
},
"company": "LUNCHPAD",
"email": "cannon.walters@lunchpad.co.uk",
"phone": "+1 (830) 427-3699",
"address": "202 Clarkson Avenue, Durham, New Jersey, 3075",
"about": "Ipsum sint nulla labore do magna fugiat et in irure ex laborum sunt consequat ipsum. Duis et velit nostrud et sit incididunt laborum magna laboris do ex. Reprehenderit culpa nostrud eu qui labore sint ipsum amet reprehenderit dolor incididunt. Nulla proident dolor Lorem culpa officia eu excepteur anim in anim esse id sunt qui. Sit Lorem ea irure id ipsum culpa qui deserunt nulla veniam nisi in. Eiusmod laborum Lorem esse consectetur enim quis minim culpa nostrud.",
"registered": "Thursday, October 6, 2016 6:33 PM",
"latitude": "84.142398",
"longitude": "15.387476",
"tags": [
"occaecat",
"officia",
"sunt",
"labore",
"consequat"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Coleman Hendrix"
},
{
"id": 1,
"name": "Bridges Benson"
},
{
"id": 2,
"name": "Anthony Mathews"
}
],
"greeting": "Hello, Cannon! You have 7 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0cf09ee09c6eaa88cb",
"index": 38,
"guid": "c54b0b2a-2a0f-4168-b335-bc9a8e0460ca",
"isActive": true,
"balance": "$3,203.52",
"picture": "http://placehold.it/32x32",
"age": 33,
"eyeColor": "brown",
"name": {
"first": "Nannie",
"last": "Beard"
},
"company": "ANIMALIA",
"email": "nannie.beard@animalia.us",
"phone": "+1 (889) 443-3959",
"address": "225 Jay Street, Datil, Wyoming, 5453",
"about": "Esse culpa ipsum duis minim ut ex tempor proident sunt minim consequat commodo ipsum anim. Lorem exercitation cupidatat tempor Lorem quis officia minim qui proident et. Qui esse non ex mollit magna nostrud cillum sit pariatur magna fugiat qui id.",
"registered": "Saturday, April 25, 2015 9:25 AM",
"latitude": "-87.539067",
"longitude": "63.880414",
"tags": [
"ut",
"et",
"esse",
"cillum",
"nulla"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Francis Barron"
},
{
"id": 1,
"name": "Pate Aguirre"
},
{
"id": 2,
"name": "Gay Acosta"
}
],
"greeting": "Hello, Nannie! You have 10 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0cca904f751c058d2e",
"index": 39,
"guid": "7a2ff5cf-270a-4211-a2e8-3509d8884622",
"isActive": false,
"balance": "$3,606.94",
"picture": "http://placehold.it/32x32",
"age": 35,
"eyeColor": "blue",
"name": {
"first": "Lacy",
"last": "Beach"
},
"company": "DATAGEN",
"email": "lacy.beach@datagen.name",
"phone": "+1 (831) 573-3879",
"address": "984 Adelphi Street, Herbster, Maryland, 4378",
"about": "Occaecat do consectetur voluptate veniam id id officia ea deserunt aute anim irure magna quis. Ipsum cupidatat ea commodo dolor ea dolor nisi non. Excepteur irure veniam laborum qui id eu nulla reprehenderit mollit ad aute consectetur elit Lorem.",
"registered": "Thursday, March 13, 2014 1:02 PM",
"latitude": "-9.391908",
"longitude": "159.065461",
"tags": [
"dolor",
"reprehenderit",
"labore",
"aute",
"voluptate"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Rosa Mercado"
},
{
"id": 1,
"name": "Fuentes Valenzuela"
},
{
"id": 2,
"name": "Dixon Singleton"
}
],
"greeting": "Hello, Lacy! You have 10 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c1458894607879e9d",
"index": 40,
"guid": "45bbc6f7-4183-4eeb-b34a-98ecc8787e7a",
"isActive": false,
"balance": "$2,097.65",
"picture": "http://placehold.it/32x32",
"age": 34,
"eyeColor": "brown",
"name": {
"first": "Cara",
"last": "Lyons"
},
"company": "VICON",
"email": "cara.lyons@vicon.info",
"phone": "+1 (933) 546-2258",
"address": "813 Ingraham Street, Riner, Tennessee, 3069",
"about": "Commodo quis excepteur nulla qui. Fugiat ullamco ex excepteur tempor. Sint duis aute magna in fugiat. Laborum sit magna est duis reprehenderit elit nulla elit. Mollit Lorem ut incididunt nostrud ad voluptate aliquip et et sint ullamco.",
"registered": "Sunday, May 11, 2014 7:13 AM",
"latitude": "11.108367",
"longitude": "-144.351099",
"tags": [
"excepteur",
"cillum",
"sunt",
"et",
"duis"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Ayala Black"
},
{
"id": 1,
"name": "Nichole Sutton"
},
{
"id": 2,
"name": "Mathis Cash"
}
],
"greeting": "Hello, Cara! You have 9 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0ca9d8edf2d7811aab",
"index": 41,
"guid": "f4aa6a49-0c71-4ad7-9514-614ecb9cc221",
"isActive": true,
"balance": "$2,945.42",
"picture": "http://placehold.it/32x32",
"age": 33,
"eyeColor": "blue",
"name": {
"first": "Jean",
"last": "Copeland"
},
"company": "KIGGLE",
"email": "jean.copeland@kiggle.io",
"phone": "+1 (841) 470-2173",
"address": "687 Prospect Place, Welda, New York, 4786",
"about": "Quis eiusmod enim ad velit mollit occaecat. Ea aute laborum fugiat consequat. Exercitation laboris aliquip ad tempor culpa. Ipsum aute excepteur in fugiat adipisicing incididunt exercitation non occaecat. Id labore ex occaecat esse dolore sit commodo duis quis incididunt enim reprehenderit. Tempor sit qui irure ut pariatur laborum laboris in nostrud sit excepteur.",
"registered": "Monday, June 22, 2015 4:57 AM",
"latitude": "-36.057061",
"longitude": "-91.348514",
"tags": [
"occaecat",
"sit",
"id",
"anim",
"elit"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Sherman Christian"
},
{
"id": 1,
"name": "Janna Weiss"
},
{
"id": 2,
"name": "Janette Nieves"
}
],
"greeting": "Hello, Jean! You have 8 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0c06cac977a4bff550",
"index": 42,
"guid": "e0aacdb6-61dd-44b2-afa5-d23f8b11ff2d",
"isActive": true,
"balance": "$2,740.65",
"picture": "http://placehold.it/32x32",
"age": 29,
"eyeColor": "blue",
"name": {
"first": "Alfreda",
"last": "Duncan"
},
"company": "BITREX",
"email": "alfreda.duncan@bitrex.com",
"phone": "+1 (903) 491-3912",
"address": "541 Sunnyside Court, Ryderwood, Virginia, 9259",
"about": "Pariatur mollit qui veniam sunt enim Lorem non. Commodo ea deserunt aute dolor id enim anim Lorem occaecat esse nostrud id irure. Aliquip dolore voluptate enim dolore velit adipisicing id est dolore consequat enim. Voluptate ex duis duis elit. Occaecat ex nulla labore ex sit. Proident officia sunt mollit irure non quis commodo sint laboris tempor ut aliquip incididunt. Aliquip ea ad consectetur incididunt.",
"registered": "Saturday, March 12, 2016 2:20 PM",
"latitude": "33.795212",
"longitude": "-48.161379",
"tags": [
"velit",
"dolore",
"deserunt",
"exercitation",
"nostrud"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Tracie Hendricks"
},
{
"id": 1,
"name": "Deann Mathis"
},
{
"id": 2,
"name": "Newman Pace"
}
],
"greeting": "Hello, Alfreda! You have 10 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c547ba7b2b5b2ff68",
"index": 43,
"guid": "63630a5c-d6b6-4dd9-a096-ae1c81a92bc5",
"isActive": false,
"balance": "$2,655.36",
"picture": "http://placehold.it/32x32",
"age": 31,
"eyeColor": "green",
"name": {
"first": "Estelle",
"last": "Carson"
},
"company": "GEEKFARM",
"email": "estelle.carson@geekfarm.tv",
"phone": "+1 (829) 551-2574",
"address": "854 Calder Place, Greer, Nevada, 7137",
"about": "Laborum velit deserunt ad magna et qui sint sint sunt elit. Exercitation eiusmod ea deserunt quis consectetur sit cillum tempor eiusmod labore ad consequat. Pariatur tempor sunt Lorem sit tempor elit sint ex exercitation. Aliquip tempor irure aute anim tempor sint exercitation exercitation. Consectetur veniam laboris tempor ipsum duis sit tempor laboris eu aute.",
"registered": "Wednesday, June 3, 2015 5:48 PM",
"latitude": "45.625966",
"longitude": "-113.836952",
"tags": [
"esse",
"nostrud",
"consectetur",
"est",
"qui"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Albert Conrad"
},
{
"id": 1,
"name": "Etta Lara"
},
{
"id": 2,
"name": "James Joseph"
}
],
"greeting": "Hello, Estelle! You have 6 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0ce1fbdc13fd921dfa",
"index": 44,
"guid": "bab756db-f4f0-4c20-8819-805f4de1acf1",
"isActive": false,
"balance": "$3,043.42",
"picture": "http://placehold.it/32x32",
"age": 28,
"eyeColor": "green",
"name": {
"first": "Flowers",
"last": "Guthrie"
},
"company": "GLOBOIL",
"email": "flowers.guthrie@globoil.net",
"phone": "+1 (848) 547-2136",
"address": "757 Rodney Street, Lupton, Washington, 290",
"about": "Nulla sunt ut laboris id consequat id quis excepteur et eu sint esse est. Nostrud voluptate voluptate minim enim exercitation sunt labore ea cillum veniam mollit pariatur enim. Officia ipsum voluptate eu veniam dolor est do. Ullamco minim excepteur aute eu cillum reprehenderit non laborum. Do magna eiusmod veniam eu cillum magna deserunt labore. Nisi culpa nisi proident amet eu et cillum mollit reprehenderit veniam et. Ad elit sint aliquip cupidatat exercitation do ex velit esse nisi sunt nostrud.",
"registered": "Wednesday, May 7, 2014 11:25 PM",
"latitude": "-18.985921",
"longitude": "-170.937155",
"tags": [
"sunt",
"nostrud",
"ex",
"qui",
"proident"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Holcomb Joyce"
},
{
"id": 1,
"name": "Dolores Guy"
},
{
"id": 2,
"name": "Alisa Garrett"
}
],
"greeting": "Hello, Flowers! You have 8 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0ce0cd552ea52c7f2c",
"index": 45,
"guid": "dea849a7-62f2-4a50-8215-6070082f02e7",
"isActive": false,
"balance": "$2,088.13",
"picture": "http://placehold.it/32x32",
"age": 35,
"eyeColor": "green",
"name": {
"first": "Duran",
"last": "Houston"
},
"company": "ENQUILITY",
"email": "duran.houston@enquility.org",
"phone": "+1 (968) 460-3781",
"address": "968 Prospect Avenue, Eastmont, Minnesota, 5346",
"about": "Irure nisi occaecat quis ipsum exercitation esse minim nulla magna sunt nisi culpa exercitation. Nulla ea ipsum exercitation est culpa consequat nostrud duis ex do incididunt est. Dolore et sit labore ex non do ipsum. Do velit voluptate sint nisi enim sit sunt tempor voluptate aliquip ullamco reprehenderit do. Id sunt cillum ea nisi aute qui do tempor nisi aute nostrud. Ipsum cupidatat laboris elit dolore pariatur tempor mollit exercitation tempor et voluptate laboris eu. Ex Lorem sint sit tempor sunt elit.",
"registered": "Saturday, June 11, 2016 4:20 PM",
"latitude": "18.300079",
"longitude": "-83.967577",
"tags": [
"labore",
"sunt",
"mollit",
"voluptate",
"duis"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Lori Roach"
},
{
"id": 1,
"name": "Benita Farley"
},
{
"id": 2,
"name": "Sheri Hurst"
}
],
"greeting": "Hello, Duran! You have 9 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0c491e46a12015041d",
"index": 46,
"guid": "2c10fc4c-47d7-41b0-ab6d-b27348fd3a2c",
"isActive": false,
"balance": "$1,874.46",
"picture": "http://placehold.it/32x32",
"age": 24,
"eyeColor": "green",
"name": {
"first": "Cortez",
"last": "Levy"
},
"company": "OPTICON",
"email": "cortez.levy@opticon.me",
"phone": "+1 (831) 454-3969",
"address": "707 Lefferts Avenue, Stouchsburg, District Of Columbia, 5615",
"about": "Dolor labore exercitation magna eu exercitation veniam culpa ad dolore ut consequat Lorem et officia. Voluptate aliqua laborum amet voluptate consequat id. Laboris tempor dolor cillum ut ullamco voluptate incididunt amet ipsum laboris exercitation tempor. Do quis duis qui magna eu irure sunt.",
"registered": "Wednesday, November 4, 2015 7:46 PM",
"latitude": "5.931545",
"longitude": "58.787345",
"tags": [
"enim",
"consequat",
"irure",
"sit",
"voluptate"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Marquita Figueroa"
},
{
"id": 1,
"name": "Justice Stephens"
},
{
"id": 2,
"name": "Traci Blevins"
}
],
"greeting": "Hello, Cortez! You have 6 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c163f106a3d9867a0",
"index": 47,
"guid": "2299f9f1-f9c9-4d53-b9f5-829132d1b1f6",
"isActive": false,
"balance": "$3,704.08",
"picture": "http://placehold.it/32x32",
"age": 31,
"eyeColor": "brown",
"name": {
"first": "Sampson",
"last": "Sloan"
},
"company": "ZAGGLES",
"email": "sampson.sloan@zaggles.ca",
"phone": "+1 (812) 536-2825",
"address": "921 Beadel Street, Manila, Guam, 2501",
"about": "Nisi irure laboris dolore Lorem nulla irure consectetur mollit commodo aliqua pariatur et. Officia magna veniam culpa excepteur ea sint reprehenderit eiusmod. Ex dolor non nisi enim eu et ad occaecat magna id ullamco in occaecat. Commodo labore Lorem aliqua quis amet irure labore. Deserunt proident cillum et do consequat mollit reprehenderit eiusmod voluptate proident sunt ex. Aute aliqua ullamco duis laborum labore et exercitation.",
"registered": "Sunday, October 26, 2014 2:43 AM",
"latitude": "83.228508",
"longitude": "0.459083",
"tags": [
"tempor",
"exercitation",
"proident",
"exercitation",
"et"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Hannah Schneider"
},
{
"id": 1,
"name": "White Williamson"
},
{
"id": 2,
"name": "Annie Moreno"
}
],
"greeting": "Hello, Sampson! You have 5 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0ccd1cc56b6ac487a6",
"index": 48,
"guid": "857676b3-f998-4efa-9ec8-6762b2468e43",
"isActive": false,
"balance": "$3,662.77",
"picture": "http://placehold.it/32x32",
"age": 35,
"eyeColor": "blue",
"name": {
"first": "Nona",
"last": "Nguyen"
},
"company": "QUARMONY",
"email": "nona.nguyen@quarmony.biz",
"phone": "+1 (921) 562-2588",
"address": "660 Sutton Street, Eggertsville, American Samoa, 7519",
"about": "Et esse sit labore pariatur eu eiusmod eu et non elit adipisicing mollit esse id. Quis dolore magna ipsum do velit cupidatat in officia do dolore voluptate anim laboris aliquip. Lorem amet sunt irure laborum ad sunt commodo cillum minim consectetur. Eiusmod id exercitation occaecat esse enim magna consectetur reprehenderit nostrud quis ea dolor sit incididunt. Ipsum eu quis consequat ad eiusmod amet velit veniam aliquip reprehenderit in ea. Duis et aliquip voluptate dolor proident incididunt eiusmod. Magna eu aliquip aliquip id.",
"registered": "Friday, January 22, 2016 1:24 AM",
"latitude": "45.499893",
"longitude": "71.913207",
"tags": [
"proident",
"irure",
"eu",
"laborum",
"tempor"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Ross Landry"
},
{
"id": 1,
"name": "Chan Joyner"
},
{
"id": 2,
"name": "Richardson Snow"
}
],
"greeting": "Hello, Nona! You have 5 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c4546f881c8f7555f",
"index": 49,
"guid": "28bddafd-23f4-49a2-bae8-643e1e7c9fb3",
"isActive": false,
"balance": "$2,081.58",
"picture": "http://placehold.it/32x32",
"age": 38,
"eyeColor": "brown",
"name": {
"first": "Wendi",
"last": "Cleveland"
},
"company": "EVENTEX",
"email": "wendi.cleveland@eventex.co.uk",
"phone": "+1 (935) 410-2326",
"address": "737 Ebony Court, Elfrida, Delaware, 5439",
"about": "Enim deserunt commodo qui laboris mollit ullamco. Id qui laboris magna do consequat nostrud sint occaecat amet officia. Laboris excepteur Lorem aliqua in est exercitation ut laborum et. Officia nisi eiusmod veniam mollit laborum magna esse labore elit pariatur pariatur. Esse ipsum pariatur pariatur eiusmod est ex tempor non.",
"registered": "Sunday, March 9, 2014 5:48 PM",
"latitude": "88.457536",
"longitude": "-65.024239",
"tags": [
"aliquip",
"duis",
"tempor",
"ipsum",
"velit"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Gabrielle Cote"
},
{
"id": 1,
"name": "Brandi Downs"
},
{
"id": 2,
"name": "Rhonda Ellison"
}
],
"greeting": "Hello, Wendi! You have 9 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0cec2076eb6d116dfc",
"index": 50,
"guid": "39489d24-b8b8-47bc-b7d0-c3481f3ad5bd",
"isActive": false,
"balance": "$1,075.68",
"picture": "http://placehold.it/32x32",
"age": 40,
"eyeColor": "blue",
"name": {
"first": "Dale",
"last": "Douglas"
},
"company": "DELPHIDE",
"email": "dale.douglas@delphide.us",
"phone": "+1 (977) 457-3984",
"address": "754 Hicks Street, Vaughn, Palau, 7264",
"about": "Ad incididunt proident proident ipsum nisi ipsum cillum consectetur cupidatat aliquip labore duis aliquip est. Esse nulla sit magna ipsum. Proident aliquip sint fugiat dolor sunt elit velit qui tempor officia amet nostrud.",
"registered": "Saturday, July 30, 2016 8:55 AM",
"latitude": "-8.058598",
"longitude": "-33.314846",
"tags": [
"irure",
"nisi",
"consequat",
"cillum",
"dolor"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Harriett Gamble"
},
{
"id": 1,
"name": "Hester Pittman"
},
{
"id": 2,
"name": "Lesley Washington"
}
],
"greeting": "Hello, Dale! You have 10 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0cd4ecef796970cd3f",
"index": 51,
"guid": "52dc9e03-d6bc-4776-975e-22735a673bb9",
"isActive": false,
"balance": "$2,094.76",
"picture": "http://placehold.it/32x32",
"age": 23,
"eyeColor": "green",
"name": {
"first": "Eula",
"last": "Huber"
},
"company": "COMTENT",
"email": "eula.huber@comtent.name",
"phone": "+1 (914) 552-2231",
"address": "389 Grove Street, Eagletown, Massachusetts, 8524",
"about": "Id sunt consectetur nostrud occaecat ea eu reprehenderit excepteur amet nostrud et ea. In ipsum occaecat aliquip est ex aute labore nostrud eu incididunt velit est. Aliquip velit occaecat laborum consectetur dolor.",
"registered": "Saturday, June 20, 2015 8:33 AM",
"latitude": "-27.235963",
"longitude": "17.691481",
"tags": [
"eu",
"ex",
"exercitation",
"reprehenderit",
"irure"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Melva Coffey"
},
{
"id": 1,
"name": "Farmer Weaver"
},
{
"id": 2,
"name": "Watkins Serrano"
}
],
"greeting": "Hello, Eula! You have 7 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0ccb817c1dc5c145c8",
"index": 52,
"guid": "7ec24512-cb72-4fa5-b411-44c7b7ac0cde",
"isActive": true,
"balance": "$3,388.55",
"picture": "http://placehold.it/32x32",
"age": 33,
"eyeColor": "green",
"name": {
"first": "Lamb",
"last": "Contreras"
},
"company": "COMTRAK",
"email": "lamb.contreras@comtrak.info",
"phone": "+1 (866) 451-3939",
"address": "403 Himrod Street, Haring, South Carolina, 7598",
"about": "Labore labore ipsum non eu quis eiusmod sint fugiat qui tempor sit. Ex exercitation culpa exercitation sunt ipsum nisi et adipisicing proident adipisicing do. Amet cillum amet sit ea dolor. Ex mollit ut eu ad quis consequat cillum ullamco aliquip. Minim enim ut et incididunt occaecat ea. Et dolor nisi sunt eiusmod duis. Reprehenderit aliqua eiusmod amet dolor aliqua.",
"registered": "Tuesday, December 23, 2014 11:42 AM",
"latitude": "-56.076139",
"longitude": "126.054413",
"tags": [
"nostrud",
"et",
"commodo",
"nisi",
"deserunt"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Kasey Andrews"
},
{
"id": 1,
"name": "Pearl Bridges"
},
{
"id": 2,
"name": "Tameka Chandler"
}
],
"greeting": "Hello, Lamb! You have 10 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c39b5a56a264d4bcf",
"index": 53,
"guid": "e07bd38e-e79b-4ceb-bcbc-ea60b4b0e740",
"isActive": false,
"balance": "$1,011.72",
"picture": "http://placehold.it/32x32",
"age": 28,
"eyeColor": "blue",
"name": {
"first": "Angelique",
"last": "Barry"
},
"company": "INSOURCE",
"email": "angelique.barry@insource.io",
"phone": "+1 (983) 464-3474",
"address": "691 Heyward Street, Bodega, Florida, 4333",
"about": "Deserunt voluptate eiusmod sit et quis aliquip eiusmod ex consequat velit. Cillum elit excepteur ex esse officia cupidatat ut. Nostrud pariatur ex et ullamco dolor dolore fugiat excepteur irure exercitation. Id Lorem proident ea quis.",
"registered": "Tuesday, April 26, 2016 12:53 PM",
"latitude": "69.146806",
"longitude": "-136.72291",
"tags": [
"qui",
"anim",
"anim",
"quis",
"pariatur"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Doyle Tanner"
},
{
"id": 1,
"name": "Gloria Stevens"
},
{
"id": 2,
"name": "Sally Chapman"
}
],
"greeting": "Hello, Angelique! You have 7 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c653a65b1bde5a9af",
"index": 54,
"guid": "79ad167a-209e-4ce3-8e84-cc46e9d79702",
"isActive": true,
"balance": "$2,652.68",
"picture": "http://placehold.it/32x32",
"age": 33,
"eyeColor": "blue",
"name": {
"first": "Marissa",
"last": "Head"
},
"company": "BOLAX",
"email": "marissa.head@bolax.com",
"phone": "+1 (919) 411-2094",
"address": "224 Tampa Court, Harleigh, Virgin Islands, 2507",
"about": "Nulla elit do ullamco nulla. Fugiat incididunt culpa deserunt deserunt dolore nisi commodo. Labore exercitation pariatur aliqua id id duis.",
"registered": "Saturday, April 9, 2016 11:53 PM",
"latitude": "12.624239",
"longitude": "-108.119849",
"tags": [
"labore",
"proident",
"labore",
"eiusmod",
"aute"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Chambers Lester"
},
{
"id": 1,
"name": "Mckenzie Mcdonald"
},
{
"id": 2,
"name": "Benson Clark"
}
],
"greeting": "Hello, Marissa! You have 6 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0cbbf466925baae126",
"index": 55,
"guid": "44384d90-908a-44f7-ac6a-f3e4e9ce3541",
"isActive": false,
"balance": "$2,707.40",
"picture": "http://placehold.it/32x32",
"age": 33,
"eyeColor": "blue",
"name": {
"first": "Avila",
"last": "Pena"
},
"company": "TERASCAPE",
"email": "avila.pena@terascape.tv",
"phone": "+1 (973) 462-2068",
"address": "393 Story Court, Veguita, Utah, 6716",
"about": "Reprehenderit nostrud laborum duis excepteur adipisicing voluptate dolor. Quis aliqua et laborum officia dolor nostrud laborum est. Excepteur aliquip ipsum id eiusmod esse laboris nostrud in excepteur est. Non eiusmod esse non ut.",
"registered": "Tuesday, August 11, 2015 11:07 PM",
"latitude": "-40.827485",
"longitude": "159.48116",
"tags": [
"et",
"culpa",
"cupidatat",
"ut",
"sunt"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Boone Goodman"
},
{
"id": 1,
"name": "Jenny Weeks"
},
{
"id": 2,
"name": "Tracy Franklin"
}
],
"greeting": "Hello, Avila! You have 10 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0c0224b3b46507d00d",
"index": 56,
"guid": "7631262c-7af8-4caf-9dd6-9882b20e9ccf",
"isActive": true,
"balance": "$3,127.77",
"picture": "http://placehold.it/32x32",
"age": 24,
"eyeColor": "brown",
"name": {
"first": "Graciela",
"last": "Vang"
},
"company": "EARWAX",
"email": "graciela.vang@earwax.net",
"phone": "+1 (810) 450-2884",
"address": "620 Tech Place, Glendale, Connecticut, 369",
"about": "Cillum laboris elit laboris irure ex aliquip amet aute commodo ea ea sunt nostrud irure. Ex incididunt anim nostrud excepteur in dolore aliqua laboris incididunt consequat officia dolore. Aliqua aliqua minim elit pariatur nulla occaecat aliquip consectetur mollit sit elit proident.",
"registered": "Thursday, September 1, 2016 6:03 PM",
"latitude": "-22.465372",
"longitude": "174.750198",
"tags": [
"irure",
"amet",
"ad",
"cupidatat",
"consequat"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Teresa Dickson"
},
{
"id": 1,
"name": "Reyna Gonzales"
},
{
"id": 2,
"name": "Carol Hunt"
}
],
"greeting": "Hello, Graciela! You have 9 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c44df164b323518f0",
"index": 57,
"guid": "21cf0aae-e2fd-4987-a12a-df9845dfe256",
"isActive": true,
"balance": "$2,129.83",
"picture": "http://placehold.it/32x32",
"age": 38,
"eyeColor": "green",
"name": {
"first": "Kaye",
"last": "Whitehead"
},
"company": "TALKOLA",
"email": "kaye.whitehead@talkola.org",
"phone": "+1 (998) 495-2808",
"address": "933 Sands Street, Frystown, Wisconsin, 9993",
"about": "Laborum id id esse fugiat eu consectetur non nostrud eu sint. Enim dolor aliquip ut elit et. Officia labore labore duis veniam reprehenderit. Ut id nulla minim adipisicing laboris deserunt pariatur. Laborum aute magna laboris quis.",
"registered": "Friday, May 2, 2014 8:39 PM",
"latitude": "5.18003",
"longitude": "-138.228885",
"tags": [
"elit",
"labore",
"id",
"nisi",
"pariatur"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Leona Soto"
},
{
"id": 1,
"name": "Cunningham Blankenship"
},
{
"id": 2,
"name": "Campbell Turner"
}
],
"greeting": "Hello, Kaye! You have 10 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0ca827218ce430db2f",
"index": 58,
"guid": "f1cc09e1-4502-4b54-8aa6-272b93335375",
"isActive": true,
"balance": "$1,635.66",
"picture": "http://placehold.it/32x32",
"age": 38,
"eyeColor": "green",
"name": {
"first": "Vickie",
"last": "Walsh"
},
"company": "ZORK",
"email": "vickie.walsh@zork.me",
"phone": "+1 (966) 458-2157",
"address": "770 Flatlands Avenue, Marion, Oklahoma, 5819",
"about": "Velit laboris sint velit elit esse est commodo est officia. Sit do ut eiusmod duis ex ullamco eiusmod proident esse est cupidatat aliqua pariatur veniam. Culpa incididunt Lorem ea ut. Sint nostrud quis et tempor magna voluptate. Aliqua ea irure ad sint. Irure non nostrud non in ad officia officia laboris nostrud eiusmod. Labore commodo sit consequat velit ipsum culpa tempor.",
"registered": "Friday, June 24, 2016 6:10 AM",
"latitude": "-21.293579",
"longitude": "-171.238054",
"tags": [
"quis",
"dolore",
"sunt",
"sint",
"ut"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Kristie Davenport"
},
{
"id": 1,
"name": "Sandy Foreman"
},
{
"id": 2,
"name": "Eve Patel"
}
],
"greeting": "Hello, Vickie! You have 7 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0ca320d90456f0650c",
"index": 59,
"guid": "7bfed2cf-dbf1-461b-949a-42c300172e0f",
"isActive": false,
"balance": "$3,809.61",
"picture": "http://placehold.it/32x32",
"age": 22,
"eyeColor": "blue",
"name": {
"first": "Travis",
"last": "Carrillo"
},
"company": "INTERODEO",
"email": "travis.carrillo@interodeo.ca",
"phone": "+1 (820) 527-3349",
"address": "878 Dekalb Avenue, Jeff, Alaska, 4205",
"about": "Sit aliqua aliqua eiusmod aliquip ullamco amet nulla fugiat anim dolor est cillum eiusmod. Proident dolor consectetur officia voluptate do tempor aliquip qui minim. Dolore culpa magna nulla irure. Est ad laborum deserunt amet commodo esse officia incididunt. Sit aute laborum aliqua id excepteur sunt ipsum cupidatat commodo exercitation proident.",
"registered": "Saturday, November 7, 2015 11:49 PM",
"latitude": "59.311122",
"longitude": "38.059303",
"tags": [
"ex",
"elit",
"voluptate",
"consectetur",
"Lorem"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Velez Daniel"
},
{
"id": 1,
"name": "Mae Burris"
},
{
"id": 2,
"name": "Henson Francis"
}
],
"greeting": "Hello, Travis! You have 10 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0c4d57f9870f521abc",
"index": 60,
"guid": "6de5e184-4e24-41c1-8071-7fbd2fc184f0",
"isActive": false,
"balance": "$3,692.96",
"picture": "http://placehold.it/32x32",
"age": 33,
"eyeColor": "blue",
"name": {
"first": "Elvia",
"last": "Haynes"
},
"company": "OPTICOM",
"email": "elvia.haynes@opticom.biz",
"phone": "+1 (918) 418-2771",
"address": "646 Quincy Street, Fedora, Federated States Of Micronesia, 1232",
"about": "Occaecat officia amet ipsum ut mollit. Eu qui tempor voluptate sint pariatur id Lorem eiusmod veniam magna sint qui esse proident. Reprehenderit ut est sit ad tempor sit magna veniam consectetur. Id quis aliquip occaecat sint excepteur in nisi voluptate laborum ad anim. Id Lorem in incididunt ut culpa culpa duis aliqua mollit adipisicing.",
"registered": "Monday, November 16, 2015 2:49 AM",
"latitude": "-82.030922",
"longitude": "-160.684246",
"tags": [
"esse",
"minim",
"nulla",
"eiusmod",
"est"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Mcdowell Maxwell"
},
{
"id": 1,
"name": "Dawson Gay"
},
{
"id": 2,
"name": "Herminia Leach"
}
],
"greeting": "Hello, Elvia! You have 8 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c62a1b2744f05b1a7",
"index": 61,
"guid": "fe9f08a4-cfe5-4cdb-b2e4-9ecfa54d873b",
"isActive": false,
"balance": "$3,807.03",
"picture": "http://placehold.it/32x32",
"age": 30,
"eyeColor": "blue",
"name": {
"first": "Blackwell",
"last": "Benton"
},
"company": "TUBESYS",
"email": "blackwell.benton@tubesys.co.uk",
"phone": "+1 (897) 452-2584",
"address": "343 Dupont Street, Blodgett, Iowa, 509",
"about": "Ut anim consectetur enim officia. Mollit anim et proident pariatur exercitation consectetur exercitation incididunt. Ullamco pariatur sit enim velit minim aliquip.",
"registered": "Thursday, September 25, 2014 1:31 AM",
"latitude": "50.446336",
"longitude": "-17.513084",
"tags": [
"ipsum",
"quis",
"et",
"labore",
"est"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Henrietta Santana"
},
{
"id": 1,
"name": "Carla Cobb"
},
{
"id": 2,
"name": "Nita Durham"
}
],
"greeting": "Hello, Blackwell! You have 7 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0ce6f3ef88019d28bc",
"index": 62,
"guid": "62666a91-4a93-404c-bbce-170ab0668ee7",
"isActive": false,
"balance": "$3,792.15",
"picture": "http://placehold.it/32x32",
"age": 40,
"eyeColor": "brown",
"name": {
"first": "Stanton",
"last": "Potter"
},
"company": "UTARIAN",
"email": "stanton.potter@utarian.us",
"phone": "+1 (965) 569-3822",
"address": "498 Holmes Lane, Belgreen, Puerto Rico, 1728",
"about": "Ullamco esse sunt aliquip incididunt velit mollit aute. Et est eiusmod commodo aliqua cillum sint nostrud in dolor labore fugiat deserunt aliquip nostrud. Velit non incididunt consectetur tempor veniam minim. Magna enim minim dolore labore do magna ea pariatur tempor anim.",
"registered": "Thursday, November 20, 2014 7:07 PM",
"latitude": "13.26351",
"longitude": "-169.826766",
"tags": [
"dolore",
"commodo",
"ex",
"anim",
"commodo"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Jillian Burnett"
},
{
"id": 1,
"name": "Evangelina Blackburn"
},
{
"id": 2,
"name": "Castro Nolan"
}
],
"greeting": "Hello, Stanton! You have 6 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0c66bd8e3191775b81",
"index": 63,
"guid": "babde8c1-773d-4f96-aeb9-bcf68d233204",
"isActive": true,
"balance": "$2,096.56",
"picture": "http://placehold.it/32x32",
"age": 23,
"eyeColor": "green",
"name": {
"first": "Kerry",
"last": "Barnes"
},
"company": "PYRAMIS",
"email": "kerry.barnes@pyramis.name",
"phone": "+1 (959) 455-2215",
"address": "676 Roder Avenue, Eden, Kansas, 7602",
"about": "Et non et mollit velit proident exercitation velit elit cillum voluptate. Lorem reprehenderit nulla ex sunt adipisicing laborum excepteur in occaecat culpa fugiat enim fugiat proident. Duis minim deserunt aliqua ea. Ea minim ea eiusmod qui elit. Cupidatat quis commodo irure nisi.",
"registered": "Wednesday, October 21, 2015 7:02 PM",
"latitude": "77.232279",
"longitude": "153.606067",
"tags": [
"in",
"cupidatat",
"Lorem",
"consequat",
"laborum"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Veronica Beck"
},
{
"id": 1,
"name": "Hull Velez"
},
{
"id": 2,
"name": "Meghan Wiley"
}
],
"greeting": "Hello, Kerry! You have 10 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0c8e8776857572353b",
"index": 64,
"guid": "d34861fb-ed0e-4fd1-a315-c41e04ec60f3",
"isActive": true,
"balance": "$1,081.03",
"picture": "http://placehold.it/32x32",
"age": 33,
"eyeColor": "green",
"name": {
"first": "Cameron",
"last": "Barber"
},
"company": "FRANSCENE",
"email": "cameron.barber@franscene.info",
"phone": "+1 (849) 484-3425",
"address": "446 Macon Street, Heil, North Dakota, 4499",
"about": "Consectetur elit eu labore adipisicing. Enim dolore sunt sint duis exercitation do quis enim veniam enim incididunt sint nostrud. Est veniam exercitation deserunt irure consectetur non esse ut eu aliqua ad. Occaecat commodo dolore magna labore ad id ipsum. Aliquip ad consectetur incididunt laborum exercitation cillum cillum minim commodo laboris proident in. Sit aliqua consequat sunt dolor veniam.",
"registered": "Wednesday, March 25, 2015 12:58 AM",
"latitude": "-0.119378",
"longitude": "-52.799542",
"tags": [
"laboris",
"ut",
"nostrud",
"nisi",
"tempor"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Young Bates"
},
{
"id": 1,
"name": "Rhea Chen"
},
{
"id": 2,
"name": "Alissa Morin"
}
],
"greeting": "Hello, Cameron! You have 5 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0c3a6582461fb89886",
"index": 65,
"guid": "4974e20f-b8df-4cbd-92ce-fe1cfc9c3657",
"isActive": false,
"balance": "$1,022.79",
"picture": "http://placehold.it/32x32",
"age": 40,
"eyeColor": "blue",
"name": {
"first": "Ashlee",
"last": "Randolph"
},
"company": "SLUMBERIA",
"email": "ashlee.randolph@slumberia.io",
"phone": "+1 (850) 590-3733",
"address": "539 Wortman Avenue, Rose, Northern Mariana Islands, 4842",
"about": "Lorem non commodo ea anim proident reprehenderit id consequat velit laborum deserunt. Veniam ad excepteur anim laboris laboris quis ad in dolor. Minim irure ad mollit reprehenderit dolor voluptate duis dolor incididunt cillum irure.",
"registered": "Saturday, March 28, 2015 2:02 AM",
"latitude": "45.475368",
"longitude": "-140.783475",
"tags": [
"nulla",
"ea",
"eiusmod",
"adipisicing",
"ea"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Martin Abbott"
},
{
"id": 1,
"name": "Franco Munoz"
},
{
"id": 2,
"name": "Briggs Briggs"
}
],
"greeting": "Hello, Ashlee! You have 8 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0c9b9a0708efa913ae",
"index": 66,
"guid": "d7e3871b-05bc-4db9-8ebb-aa136e9349a1",
"isActive": false,
"balance": "$1,282.07",
"picture": "http://placehold.it/32x32",
"age": 24,
"eyeColor": "brown",
"name": {
"first": "Karin",
"last": "Mcintyre"
},
"company": "QIAO",
"email": "karin.mcintyre@qiao.com",
"phone": "+1 (827) 522-3528",
"address": "476 Kings Place, Rowe, Montana, 1003",
"about": "Anim Lorem irure commodo sunt culpa proident velit quis consectetur. Et qui irure et ullamco ut ipsum. In sit dolor cupidatat dolore veniam sunt aliquip elit aliquip incididunt commodo eu in. Quis labore adipisicing officia eu mollit veniam officia ipsum excepteur dolor.",
"registered": "Sunday, February 9, 2014 3:39 PM",
"latitude": "-50.934733",
"longitude": "80.069751",
"tags": [
"non",
"aliqua",
"deserunt",
"exercitation",
"sint"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Bradshaw Vega"
},
{
"id": 1,
"name": "Imelda Barnett"
},
{
"id": 2,
"name": "Margaret Cross"
}
],
"greeting": "Hello, Karin! You have 5 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0c5e44b5027bec1ac0",
"index": 67,
"guid": "4be33215-4b35-4079-9831-c2632a0bfe28",
"isActive": false,
"balance": "$2,900.86",
"picture": "http://placehold.it/32x32",
"age": 38,
"eyeColor": "blue",
"name": {
"first": "Rowe",
"last": "Hogan"
},
"company": "ISOSURE",
"email": "rowe.hogan@isosure.tv",
"phone": "+1 (925) 401-2733",
"address": "978 Ditmas Avenue, Herald, Ohio, 4322",
"about": "Nostrud commodo deserunt Lorem magna esse nulla eu cillum. Aliquip aute est laborum enim ut irure enim exercitation anim ipsum minim cillum. Qui commodo labore veniam et anim proident anim. Aliquip ut veniam consectetur amet mollit reprehenderit qui.",
"registered": "Wednesday, April 13, 2016 6:04 AM",
"latitude": "38.442477",
"longitude": "-127.884805",
"tags": [
"et",
"occaecat",
"elit",
"tempor",
"sint"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Elnora Guzman"
},
{
"id": 1,
"name": "Talley Townsend"
},
{
"id": 2,
"name": "Chaney Harvey"
}
],
"greeting": "Hello, Rowe! You have 8 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c9075ebf36eef4cb0",
"index": 68,
"guid": "6cc1ae86-7aa6-4c1f-8338-1cd7b3630ade",
"isActive": true,
"balance": "$3,381.58",
"picture": "http://placehold.it/32x32",
"age": 27,
"eyeColor": "blue",
"name": {
"first": "Ronda",
"last": "Parker"
},
"company": "BOILCAT",
"email": "ronda.parker@boilcat.net",
"phone": "+1 (888) 404-2571",
"address": "836 Java Street, Detroit, Oregon, 9319",
"about": "Fugiat quis est id anim. Enim nostrud tempor esse in officia enim deserunt. Nisi anim adipisicing nostrud occaecat laboris occaecat. Qui laborum ut exercitation culpa aute veniam exercitation tempor qui adipisicing minim. Dolor ex voluptate pariatur aliquip dolor cillum laborum est. Ex adipisicing mollit ea occaecat ut eu.",
"registered": "Friday, August 12, 2016 6:40 AM",
"latitude": "-67.552112",
"longitude": "-148.920666",
"tags": [
"enim",
"occaecat",
"ex",
"est",
"magna"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Ora Cannon"
},
{
"id": 1,
"name": "Mcintosh Carter"
},
{
"id": 2,
"name": "Glenn Foley"
}
],
"greeting": "Hello, Ronda! You have 6 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0cd164eec1663b2d49",
"index": 69,
"guid": "03ba15d9-ec37-4820-9833-5191c760dabe",
"isActive": false,
"balance": "$3,202.56",
"picture": "http://placehold.it/32x32",
"age": 33,
"eyeColor": "brown",
"name": {
"first": "Gallegos",
"last": "Preston"
},
"company": "VETRON",
"email": "gallegos.preston@vetron.org",
"phone": "+1 (923) 570-3649",
"address": "327 Irvington Place, Snelling, Arizona, 5946",
"about": "Anim aliquip deserunt commodo id incididunt mollit cillum et fugiat ullamco magna sint fugiat. Minim qui ea sint commodo eiusmod velit cupidatat excepteur eu. Enim cillum est sint incididunt. Culpa deserunt ex sunt labore voluptate. Ad laboris in pariatur dolore laboris dolor duis quis esse do sit velit pariatur dolore.",
"registered": "Saturday, July 23, 2016 4:24 AM",
"latitude": "23.3067",
"longitude": "26.605291",
"tags": [
"adipisicing",
"aute",
"consequat",
"fugiat",
"elit"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Raquel Dillard"
},
{
"id": 1,
"name": "Conway Cruz"
},
{
"id": 2,
"name": "Hope Woods"
}
],
"greeting": "Hello, Gallegos! You have 7 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0c0282495ae724dd00",
"index": 70,
"guid": "e4e4b345-ccb8-46bd-ad7e-25905e3f887d",
"isActive": false,
"balance": "$2,592.79",
"picture": "http://placehold.it/32x32",
"age": 28,
"eyeColor": "green",
"name": {
"first": "Scott",
"last": "Anderson"
},
"company": "SCENTRIC",
"email": "scott.anderson@scentric.me",
"phone": "+1 (869) 517-3912",
"address": "408 Caton Place, Nadine, Vermont, 538",
"about": "Do elit sunt eiusmod anim anim eiusmod ex. Ipsum officia velit ipsum non minim enim. Enim culpa nostrud occaecat voluptate sit minim consectetur sit ut eiusmod. Magna voluptate fugiat occaecat id et eiusmod voluptate. Dolore consequat fugiat quis ipsum non deserunt ex culpa ut aliqua officia.",
"registered": "Wednesday, February 25, 2015 11:02 AM",
"latitude": "88.07987",
"longitude": "157.464013",
"tags": [
"dolore",
"sint",
"amet",
"voluptate",
"nulla"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Browning Brock"
},
{
"id": 1,
"name": "Goldie Greer"
},
{
"id": 2,
"name": "Bright Clayton"
}
],
"greeting": "Hello, Scott! You have 9 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c997d595f28bed4b2",
"index": 71,
"guid": "2e81e82f-097d-4ed9-816b-678f7b5f28f4",
"isActive": true,
"balance": "$1,316.05",
"picture": "http://placehold.it/32x32",
"age": 23,
"eyeColor": "green",
"name": {
"first": "Clarice",
"last": "York"
},
"company": "SOPRANO",
"email": "clarice.york@soprano.ca",
"phone": "+1 (822) 485-3017",
"address": "428 Midwood Street, Witmer, California, 4690",
"about": "Exercitation adipisicing aute commodo commodo exercitation. Aliquip aliquip minim sit anim cillum. Cupidatat veniam adipisicing mollit duis exercitation eu consequat non nulla proident. Occaecat sunt sunt consectetur occaecat veniam consectetur do minim. Adipisicing reprehenderit eu laboris sunt minim fugiat enim est proident duis consequat laboris ea ut. Officia dolor incididunt exercitation dolore et ut veniam. Minim est incididunt ullamco quis proident velit esse et est Lorem.",
"registered": "Friday, October 24, 2014 8:31 AM",
"latitude": "50.680453",
"longitude": "-22.267809",
"tags": [
"esse",
"dolore",
"deserunt",
"labore",
"officia"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Madge Battle"
},
{
"id": 1,
"name": "Francis Dunn"
},
{
"id": 2,
"name": "Rosario Irwin"
}
],
"greeting": "Hello, Clarice! You have 7 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0ce47eee37facdfcc8",
"index": 72,
"guid": "f7880df6-e31a-42ff-971a-82d7ca76bc14",
"isActive": true,
"balance": "$2,569.05",
"picture": "http://placehold.it/32x32",
"age": 22,
"eyeColor": "green",
"name": {
"first": "Madeleine",
"last": "Mann"
},
"company": "PHORMULA",
"email": "madeleine.mann@phormula.biz",
"phone": "+1 (839) 443-3345",
"address": "948 McKibben Street, Wyoming, Idaho, 2596",
"about": "Amet eiusmod quis sit veniam irure eiusmod eiusmod et. Amet ex consectetur velit aliqua fugiat excepteur commodo in non do anim proident enim. Do nulla minim id cillum cillum non non proident laborum ullamco in nostrud excepteur.",
"registered": "Monday, September 7, 2015 9:57 AM",
"latitude": "1.417271",
"longitude": "14.344005",
"tags": [
"minim",
"aliqua",
"aliqua",
"velit",
"nisi"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Carole Bond"
},
{
"id": 1,
"name": "Diann Vaughan"
},
{
"id": 2,
"name": "Morgan Rojas"
}
],
"greeting": "Hello, Madeleine! You have 10 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0c49e7bdd7ed590e84",
"index": 73,
"guid": "7bf69708-15f1-4d35-b71e-17c43001af61",
"isActive": false,
"balance": "$3,449.63",
"picture": "http://placehold.it/32x32",
"age": 29,
"eyeColor": "green",
"name": {
"first": "Riley",
"last": "Moses"
},
"company": "COMDOM",
"email": "riley.moses@comdom.co.uk",
"phone": "+1 (855) 426-2672",
"address": "556 Richardson Street, Grazierville, Mississippi, 7295",
"about": "Ullamco do reprehenderit duis mollit ad duis aute qui reprehenderit ipsum qui in eiusmod. Officia culpa cillum cupidatat irure ipsum id occaecat. Enim do in dolor veniam laborum dolor est reprehenderit occaecat et minim laboris. Duis sint voluptate deserunt cillum fugiat velit irure. Lorem ullamco laboris reprehenderit dolor aute tempor excepteur. In elit enim aliquip ut in. Nulla et tempor ut mollit reprehenderit dolore ullamco veniam nisi minim.",
"registered": "Wednesday, March 18, 2015 5:28 AM",
"latitude": "-17.956865",
"longitude": "60.984652",
"tags": [
"quis",
"elit",
"excepteur",
"incididunt",
"sint"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Jana Knowles"
},
{
"id": 1,
"name": "Dotson Calderon"
},
{
"id": 2,
"name": "Stacy Winters"
}
],
"greeting": "Hello, Riley! You have 10 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0c4e5dea19708856e5",
"index": 74,
"guid": "cf4a7bf9-7a0e-4810-b5f5-23dd2bea6a9a",
"isActive": true,
"balance": "$1,365.62",
"picture": "http://placehold.it/32x32",
"age": 24,
"eyeColor": "brown",
"name": {
"first": "Emilia",
"last": "Sanford"
},
"company": "AQUAZURE",
"email": "emilia.sanford@aquazure.us",
"phone": "+1 (812) 451-2498",
"address": "649 Guernsey Street, Wedgewood, Alabama, 7660",
"about": "Amet cillum esse exercitation enim tempor ut est amet ad anim. Cillum veniam exercitation sit dolor velit irure tempor anim amet quis aliquip. Aliqua dolor cupidatat culpa consequat dolor in qui est tempor aliqua dolor. Mollit tempor dolor ad nisi Lorem anim adipisicing deserunt tempor. Tempor elit eiusmod dolor reprehenderit sint consequat aliqua incididunt dolore aliqua proident exercitation officia. Et velit tempor minim voluptate. Veniam dolor labore laboris ad quis minim tempor est ad cillum nulla.",
"registered": "Thursday, May 5, 2016 10:20 PM",
"latitude": "66.972869",
"longitude": "26.31688",
"tags": [
"eiusmod",
"sit",
"occaecat",
"nostrud",
"nisi"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Desiree Norman"
},
{
"id": 1,
"name": "Carlson Meadows"
},
{
"id": 2,
"name": "Miranda Gutierrez"
}
],
"greeting": "Hello, Emilia! You have 10 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0cbb2ae9fb9dc2c667",
"index": 75,
"guid": "f814f3d7-fd66-4061-81de-1097a56ddc95",
"isActive": false,
"balance": "$2,546.18",
"picture": "http://placehold.it/32x32",
"age": 33,
"eyeColor": "green",
"name": {
"first": "Cristina",
"last": "Carver"
},
"company": "DOGNOSIS",
"email": "cristina.carver@dognosis.name",
"phone": "+1 (967) 552-2825",
"address": "293 Metrotech Courtr, Cawood, Illinois, 7748",
"about": "Incididunt nulla ut velit in tempor pariatur sit ipsum dolor do laborum elit nostrud ullamco. Quis voluptate minim qui eu enim consectetur. In duis excepteur aute nostrud exercitation proident.",
"registered": "Saturday, November 14, 2015 9:50 AM",
"latitude": "66.369831",
"longitude": "-113.48546",
"tags": [
"do",
"laborum",
"non",
"velit",
"sunt"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Dianna Armstrong"
},
{
"id": 1,
"name": "Gena Stafford"
},
{
"id": 2,
"name": "Clare Allison"
}
],
"greeting": "Hello, Cristina! You have 10 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0c6311ae4dab4a3f34",
"index": 76,
"guid": "13d0bb42-7310-486c-9717-a91fe51873e9",
"isActive": false,
"balance": "$2,712.28",
"picture": "http://placehold.it/32x32",
"age": 31,
"eyeColor": "green",
"name": {
"first": "Rosa",
"last": "Cook"
},
"company": "MATRIXITY",
"email": "rosa.cook@matrixity.info",
"phone": "+1 (937) 505-2696",
"address": "119 Madison Place, Dola, Rhode Island, 7030",
"about": "Veniam laborum mollit dolor nostrud anim ex duis eiusmod ex. Nostrud excepteur laborum officia eu eiusmod aute ea aute ea irure adipisicing. Ex consectetur laboris ex nisi ex esse ea sit cupidatat cupidatat anim labore nostrud Lorem. Esse quis consectetur eiusmod officia sunt cupidatat esse ullamco esse eiusmod tempor enim laborum nulla. Esse occaecat Lorem amet laboris laborum reprehenderit eu eiusmod excepteur qui officia. Nisi irure reprehenderit adipisicing dolor ipsum pariatur sint pariatur.",
"registered": "Tuesday, September 29, 2015 7:15 PM",
"latitude": "47.166257",
"longitude": "48.962919",
"tags": [
"sint",
"reprehenderit",
"aute",
"velit",
"excepteur"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Nellie Mooney"
},
{
"id": 1,
"name": "Bridget Rocha"
},
{
"id": 2,
"name": "Rosie Neal"
}
],
"greeting": "Hello, Rosa! You have 9 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0c3f6b67c114a34891",
"index": 77,
"guid": "a72c60f4-ea12-47ca-a738-dfc886a23fb3",
"isActive": false,
"balance": "$3,863.37",
"picture": "http://placehold.it/32x32",
"age": 37,
"eyeColor": "brown",
"name": {
"first": "Hallie",
"last": "Cherry"
},
"company": "MAXIMIND",
"email": "hallie.cherry@maximind.io",
"phone": "+1 (883) 445-2642",
"address": "816 Bridgewater Street, Worcester, New Mexico, 3552",
"about": "Ut id cillum mollit excepteur sunt adipisicing sint do nostrud velit nisi Lorem. Incididunt amet tempor aliqua ad. Consequat veniam non exercitation veniam occaecat eu reprehenderit excepteur. In dolor ex sunt deserunt cupidatat in consequat est commodo excepteur ea. Eu ex qui ea exercitation proident est cillum aliqua pariatur amet in anim deserunt.",
"registered": "Wednesday, December 16, 2015 1:09 AM",
"latitude": "-22.963385",
"longitude": "-18.88522",
"tags": [
"ad",
"tempor",
"adipisicing",
"ea",
"consequat"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Karla Waters"
},
{
"id": 1,
"name": "Salinas Duran"
},
{
"id": 2,
"name": "Juliette Bell"
}
],
"greeting": "Hello, Hallie! You have 6 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0caf58b7c09ccbbfe0",
"index": 78,
"guid": "a2136e10-0d46-4e2a-9d45-1ad4a7fb6150",
"isActive": false,
"balance": "$1,715.46",
"picture": "http://placehold.it/32x32",
"age": 37,
"eyeColor": "green",
"name": {
"first": "Hill",
"last": "Adams"
},
"company": "UNI",
"email": "hill.adams@uni.com",
"phone": "+1 (887) 533-2728",
"address": "341 Union Avenue, Tyro, Marshall Islands, 6939",
"about": "Lorem excepteur cupidatat dolor voluptate eu et reprehenderit id nisi eiusmod tempor. Occaecat et reprehenderit tempor est reprehenderit magna elit eu do pariatur laborum dolore fugiat do. Occaecat dolor mollit ea sunt ex ea sint eu culpa irure enim nostrud. Ipsum eu anim elit quis officia anim do laborum velit sunt tempor in. Quis id veniam laborum sint in dolor do.",
"registered": "Thursday, August 20, 2015 6:41 PM",
"latitude": "49.668798",
"longitude": "48.122152",
"tags": [
"deserunt",
"labore",
"ea",
"reprehenderit",
"dolore"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Dixie Reyes"
},
{
"id": 1,
"name": "Randall Mason"
},
{
"id": 2,
"name": "Morrison Church"
}
],
"greeting": "Hello, Hill! You have 7 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0c120ddc3a2597b83c",
"index": 79,
"guid": "5d601f0c-923c-41f2-86ec-2794c25ba07d",
"isActive": true,
"balance": "$1,368.60",
"picture": "http://placehold.it/32x32",
"age": 26,
"eyeColor": "blue",
"name": {
"first": "Megan",
"last": "Grant"
},
"company": "PURIA",
"email": "megan.grant@puria.tv",
"phone": "+1 (867) 456-2370",
"address": "688 Jewel Street, Stagecoach, Nebraska, 5430",
"about": "Reprehenderit et aliquip sunt nisi aliquip minim ut. Nostrud veniam velit laboris sit consectetur occaecat incididunt nulla officia adipisicing labore commodo qui anim. Sunt sunt mollit Lorem et do magna magna occaecat ea esse sit deserunt deserunt non. Est aliqua cupidatat veniam laboris amet officia ex consequat ullamco fugiat tempor laborum. Irure minim veniam deserunt est mollit. Do elit ipsum ea laborum magna amet id qui ea non veniam. Laboris Lorem ullamco dolore ad dolor anim tempor sint nisi reprehenderit proident tempor.",
"registered": "Wednesday, September 10, 2014 7:56 PM",
"latitude": "62.666152",
"longitude": "-103.092817",
"tags": [
"officia",
"sit",
"veniam",
"consequat",
"aliqua"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Rush Klein"
},
{
"id": 1,
"name": "Bruce Bryan"
},
{
"id": 2,
"name": "Vicki Griffith"
}
],
"greeting": "Hello, Megan! You have 6 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0c923ee8af5787fc95",
"index": 80,
"guid": "27f1d835-7fe3-4ace-8f1c-e9d834d58b51",
"isActive": true,
"balance": "$1,120.98",
"picture": "http://placehold.it/32x32",
"age": 22,
"eyeColor": "brown",
"name": {
"first": "Kathie",
"last": "Adkins"
},
"company": "ZANILLA",
"email": "kathie.adkins@zanilla.net",
"phone": "+1 (827) 443-2787",
"address": "225 Stillwell Avenue, Clayville, Pennsylvania, 2403",
"about": "Cillum proident cupidatat consectetur aliqua amet ad. Dolor magna anim id aliquip deserunt occaecat do sunt ad est laborum consequat non esse. Nisi magna voluptate sunt magna exercitation officia cupidatat exercitation minim eu Lorem et. Occaecat ex velit fugiat reprehenderit veniam nulla. Consequat laboris eu reprehenderit dolore ea ut anim culpa ipsum ullamco. Amet pariatur dolor dolor non cillum enim elit id. Aute magna dolor ea ea fugiat.",
"registered": "Wednesday, January 8, 2014 9:01 AM",
"latitude": "-57.35919",
"longitude": "16.081565",
"tags": [
"mollit",
"ut",
"velit",
"eu",
"ea"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Martha Webb"
},
{
"id": 1,
"name": "Quinn Hampton"
},
{
"id": 2,
"name": "Phelps Reilly"
}
],
"greeting": "Hello, Kathie! You have 9 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c0f013070624983d3",
"index": 81,
"guid": "d20f5d74-7e69-4a38-8afc-f9eafd9eb9b8",
"isActive": true,
"balance": "$2,486.01",
"picture": "http://placehold.it/32x32",
"age": 28,
"eyeColor": "green",
"name": {
"first": "Reid",
"last": "Moon"
},
"company": "UPLINX",
"email": "reid.moon@uplinx.org",
"phone": "+1 (974) 588-2358",
"address": "437 Wythe Place, Bergoo, Maine, 2688",
"about": "Proident sit nostrud adipisicing fugiat laborum adipisicing commodo est. Eu voluptate dolor ad consequat cillum tempor excepteur. Veniam sit ullamco velit aliquip nulla nisi magna sunt commodo officia tempor mollit. Velit occaecat occaecat culpa in duis dolor enim aute incididunt ipsum adipisicing excepteur adipisicing in. Mollit duis incididunt sit deserunt tempor ullamco sit. Nisi et aliquip aliquip nisi ad cillum deserunt amet Lorem id minim in. Nisi ullamco labore consequat deserunt voluptate sunt nulla commodo quis dolore et do sunt dolor.",
"registered": "Wednesday, November 5, 2014 8:41 PM",
"latitude": "-57.701702",
"longitude": "98.460257",
"tags": [
"culpa",
"dolore",
"sunt",
"duis",
"sint"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Christina Brennan"
},
{
"id": 1,
"name": "Joan Key"
},
{
"id": 2,
"name": "Terrie Colon"
}
],
"greeting": "Hello, Reid! You have 6 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0cd7d10e075f923c32",
"index": 82,
"guid": "eff18055-8039-4733-8e71-0e8161a9a37f",
"isActive": true,
"balance": "$1,703.03",
"picture": "http://placehold.it/32x32",
"age": 27,
"eyeColor": "green",
"name": {
"first": "Myra",
"last": "Cooper"
},
"company": "LOTRON",
"email": "myra.cooper@lotron.me",
"phone": "+1 (833) 490-3199",
"address": "454 Argyle Road, Tilleda, West Virginia, 4341",
"about": "Dolor sint commodo est excepteur sunt labore consequat cillum et minim. Id proident id officia aute. Aliquip exercitation nulla esse ad id do adipisicing occaecat ipsum veniam veniam dolor. Voluptate tempor qui dolor ullamco consequat consequat cupidatat nisi elit et non qui non adipisicing. Excepteur consequat minim laborum minim nostrud mollit anim exercitation minim duis ullamco. Minim minim fugiat qui voluptate dolor dolore voluptate non consectetur nulla commodo exercitation do non. Ad commodo sit excepteur adipisicing do ex sunt minim laborum dolore non do elit in.",
"registered": "Friday, September 30, 2016 1:21 AM",
"latitude": "12.698327",
"longitude": "98.957272",
"tags": [
"et",
"esse",
"sint",
"incididunt",
"esse"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Angelia Roth"
},
{
"id": 1,
"name": "Vasquez Cole"
},
{
"id": 2,
"name": "Tanner Hayes"
}
],
"greeting": "Hello, Myra! You have 10 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0c79029337f04c4f74",
"index": 83,
"guid": "10fb3103-bb73-42c0-8fac-3fe42121176e",
"isActive": false,
"balance": "$3,028.72",
"picture": "http://placehold.it/32x32",
"age": 33,
"eyeColor": "green",
"name": {
"first": "Mccarty",
"last": "Workman"
},
"company": "TURNABOUT",
"email": "mccarty.workman@turnabout.ca",
"phone": "+1 (839) 409-3408",
"address": "138 Rutledge Street, Tivoli, South Dakota, 9041",
"about": "Culpa laborum ea magna nulla ipsum velit excepteur incididunt occaecat sit. Ullamco laborum voluptate dolor est proident ex culpa. Ex est sunt aliquip culpa in adipisicing mollit irure magna exercitation.",
"registered": "Thursday, December 18, 2014 10:46 AM",
"latitude": "3.78797",
"longitude": "-146.349265",
"tags": [
"ut",
"pariatur",
"ad",
"voluptate",
"qui"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Skinner Webster"
},
{
"id": 1,
"name": "Atkins James"
},
{
"id": 2,
"name": "Enid Meyer"
}
],
"greeting": "Hello, Mccarty! You have 9 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0c642e9641a7bfbcee",
"index": 84,
"guid": "a774c4b8-b1d2-42c3-837a-52bce2aa7a94",
"isActive": false,
"balance": "$2,539.93",
"picture": "http://placehold.it/32x32",
"age": 34,
"eyeColor": "blue",
"name": {
"first": "Davenport",
"last": "Small"
},
"company": "ISOTRACK",
"email": "davenport.small@isotrack.biz",
"phone": "+1 (909) 521-2228",
"address": "646 Fleet Walk, Dale, Texas, 3140",
"about": "Non magna officia veniam velit nostrud elit. Nulla ad cupidatat quis aliquip ut. Adipisicing labore sint nostrud eu veniam sunt dolor consequat pariatur commodo consectetur magna sunt. Tempor dolor consectetur deserunt in quis id proident occaecat sunt. Est minim anim proident occaecat culpa ex minim mollit ea. Enim deserunt tempor ea eu nulla sunt veniam ad. Laborum cillum dolor proident voluptate id sint ut voluptate cillum anim incididunt laboris.",
"registered": "Friday, May 1, 2015 11:13 AM",
"latitude": "-49.904277",
"longitude": "-35.151297",
"tags": [
"anim",
"labore",
"Lorem",
"anim",
"cillum"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Emerson Gilmore"
},
{
"id": 1,
"name": "Castillo Wright"
},
{
"id": 2,
"name": "Marva Stone"
}
],
"greeting": "Hello, Davenport! You have 10 unread messages.",
"favoriteFruit": "strawberry"
},
{
"_id": "580ddf0cf681ca1388d97783",
"index": 85,
"guid": "b5860a9d-45ff-47ef-bd87-e43adc9dc8d6",
"isActive": true,
"balance": "$1,578.95",
"picture": "http://placehold.it/32x32",
"age": 29,
"eyeColor": "brown",
"name": {
"first": "Reyes",
"last": "Dotson"
},
"company": "GRACKER",
"email": "reyes.dotson@gracker.co.uk",
"phone": "+1 (909) 410-2034",
"address": "739 Junius Street, Nutrioso, Missouri, 6051",
"about": "Esse magna Lorem enim nostrud quis sit minim et do elit. Culpa proident ipsum dolore aute do exercitation tempor eu. Reprehenderit ullamco sunt ad anim aliqua proident deserunt commodo dolor ad quis cillum cupidatat. Ea sint id aute adipisicing do anim minim exercitation labore id ullamco duis do sit. Laboris do in sunt esse anim cillum anim nulla eu do consequat aliquip culpa amet. Ipsum velit reprehenderit minim velit incididunt enim duis ut aliquip.",
"registered": "Wednesday, February 5, 2014 11:01 AM",
"latitude": "-11.383582",
"longitude": "102.513196",
"tags": [
"occaecat",
"consequat",
"ipsum",
"elit",
"voluptate"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Baker Bennett"
},
{
"id": 1,
"name": "Franklin Nelson"
},
{
"id": 2,
"name": "Wilda Hill"
}
],
"greeting": "Hello, Reyes! You have 7 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0cc99c7d2e5622dbb5",
"index": 86,
"guid": "0a1d6c96-621e-4fe5-9f0f-ccba26458cf1",
"isActive": false,
"balance": "$1,760.99",
"picture": "http://placehold.it/32x32",
"age": 25,
"eyeColor": "green",
"name": {
"first": "Ratliff",
"last": "Kinney"
},
"company": "YURTURE",
"email": "ratliff.kinney@yurture.us",
"phone": "+1 (962) 417-2906",
"address": "832 Duryea Court, Moscow, New Hampshire, 7275",
"about": "Sint commodo ullamco proident ullamco esse elit Lorem anim veniam sunt veniam nulla elit. Tempor nulla culpa ut occaecat tempor elit aliqua ipsum. Anim nisi reprehenderit pariatur officia aute elit fugiat amet est incididunt. Irure excepteur id cillum exercitation esse officia dolor in amet id nostrud. Incididunt consectetur culpa tempor officia veniam aute eu incididunt duis tempor incididunt ex nisi irure. Tempor proident aute aliquip in aliqua Lorem cillum consequat exercitation et sint nulla minim. Cillum magna ut aliqua eu qui tempor culpa laborum amet magna ullamco.",
"registered": "Tuesday, April 29, 2014 6:13 AM",
"latitude": "-13.301568",
"longitude": "-112.255058",
"tags": [
"labore",
"sit",
"excepteur",
"laboris",
"nulla"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Ingrid Rutledge"
},
{
"id": 1,
"name": "Simpson Barlow"
},
{
"id": 2,
"name": "Lottie Hickman"
}
],
"greeting": "Hello, Ratliff! You have 6 unread messages.",
"favoriteFruit": "banana"
},
{
"_id": "580ddf0c461fe67eb5044e47",
"index": 87,
"guid": "4f264353-60c0-4324-af56-34d2f28e718a",
"isActive": true,
"balance": "$1,034.62",
"picture": "http://placehold.it/32x32",
"age": 21,
"eyeColor": "blue",
"name": {
"first": "Bettye",
"last": "Jenkins"
},
"company": "LUNCHPOD",
"email": "bettye.jenkins@lunchpod.name",
"phone": "+1 (873) 530-2152",
"address": "577 Oliver Street, Gallina, Hawaii, 2623",
"about": "Consectetur eiusmod aute ad duis nisi minim dolore ad do deserunt occaecat voluptate cupidatat. Sunt exercitation cillum deserunt veniam cillum. Lorem anim dolor occaecat elit amet. Magna reprehenderit laboris enim occaecat eiusmod Lorem duis sint nulla quis exercitation occaecat ipsum. Laborum Lorem magna ullamco enim ad id. Pariatur exercitation nisi cupidatat incididunt ipsum magna cillum laborum. Laboris exercitation excepteur adipisicing Lorem duis id ipsum fugiat nostrud labore culpa consequat ad.",
"registered": "Sunday, May 1, 2016 11:30 AM",
"latitude": "-2.873736",
"longitude": "108.897468",
"tags": [
"aliqua",
"sunt",
"ex",
"duis",
"commodo"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Leonard Kelley"
},
{
"id": 1,
"name": "Penny Watson"
},
{
"id": 2,
"name": "Roxanne French"
}
],
"greeting": "Hello, Bettye! You have 5 unread messages.",
"favoriteFruit": "apple"
},
{
"_id": "580ddf0cf9dae7fe5522c648",
"index": 88,
"guid": "b47a7f45-3805-44d7-b455-67038c5466e8",
"isActive": true,
"balance": "$2,489.68",
"picture": "http://placehold.it/32x32",
"age": 35,
"eyeColor": "blue",
"name": {
"first": "Barr",
"last": "Pearson"
},
"company": "QNEKT",
"email": "barr.pearson@qnekt.info",
"phone": "+1 (914) 541-3874",
"address": "186 Robert Street, Ona, Georgia, 8717",
"about": "Anim ullamco mollit adipisicing sit tempor aute eiusmod adipisicing cupidatat laborum tempor reprehenderit pariatur. Reprehenderit ullamco aliqua laboris Lorem. Exercitation magna pariatur mollit ea ullamco et nostrud commodo laboris dolore. Esse do cupidatat pariatur esse in labore do et cillum reprehenderit incididunt. Ad mollit adipisicing proident culpa occaecat tempor et elit esse occaecat fugiat consectetur occaecat occaecat. Et adipisicing esse labore ullamco proident laboris consequat enim aliqua. Eu laboris et in voluptate.",
"registered": "Friday, September 5, 2014 6:22 PM",
"latitude": "55.604021",
"longitude": "-152.171415",
"tags": [
"occaecat",
"culpa",
"do",
"id",
"qui"
],
"range": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"friends": [
{
"id": 0,
"name": "Kimberley Mckinney"
},
{
"id": 1,
"name": "Mosley Gardner"
},
{
"id": 2,
"name": "Gay Garner"
}
],
"greeting": "Hello, Barr! You have 6 unread messages.",
"favoriteFruit": "apple"
}
];
export const circularData = { bigArray };
circularData.c = circularData;
================================================
FILE: test/perf/send.spec.js
================================================
import 'babel-polyfill';
import expect from 'expect';
import { bigArray, bigString, circularData } from './data';
import { listenMessage } from '../utils/inject';
import '../../src/browser/extension/inject/pageScript';
function test(title, data, maxTime = 100) {
it('should send ' + title, async() => {
const start = new Date();
await listenMessage(() => {
window.__REDUX_DEVTOOLS_EXTENSION__.send({ type: 'TEST_ACTION', data }, data);
});
const ms = new Date() - start;
// console.log(ms);
expect(ms).toBeLessThan(maxTime);
});
}
describe('Perf', () => {
test('a huge string', bigString);
test('a huge array', bigArray);
test('an object with circular references', circularData);
});
================================================
FILE: test/utils/e2e.js
================================================
import webdriver from 'selenium-webdriver';
export const delay = time => new Promise(resolve => setTimeout(resolve, time));
export const switchMonitorTests = {
'should switch to Log Monitor': async function() {
await this.driver.findElement(webdriver.By.xpath('//div[text()="Inspector"]')).click();
await delay(500); // Wait till menu is fully opened
await this.driver.findElement(webdriver.By.xpath('//div[text()="Log monitor"]')).click();
await delay(500);
await this.driver.findElement(webdriver.By.xpath('//div[a[text()="Reset"] and .//a[text()="Revert"]]'));
await delay(500);
},
'should switch to Chart Monitor': async function() {
await this.driver.findElement(webdriver.By.xpath('//div[text()="Log monitor"]')).click();
await delay(500); // Wait till menu is fully opened
await this.driver.findElement(webdriver.By.xpath('//div[text()="Chart"]')).click();
await delay(500);
await this.driver.findElement(webdriver.By.xpath('//*[@class="nodeText" and text()="state"]'));
await delay(500); // Wait till menu is closed
},
'should switch back to Inspector Monitor': async function() {
await this.driver.findElement(webdriver.By.xpath('//div[text()="Chart"]')).click();
await delay(1000); // Wait till menu is fully opened
await this.driver.findElement(webdriver.By.xpath('//div[text()="Inspector"]')).click();
await delay(1500); // Wait till menu is closed
}
};
================================================
FILE: test/utils/inject.js
================================================
export function insertScript(str) {
const s = window.document.createElement('script');
s.appendChild(document.createTextNode(str));
(document.head || document.documentElement).appendChild(s);
}
export function listenMessage(f) {
return new Promise(resolve => {
const listener = event => {
const message = event.data;
window.removeEventListener('message', listener);
resolve(message);
};
window.addEventListener('message', listener);
if (f) f();
});
}
================================================
FILE: webpack/base.config.js
================================================
import path from 'path';
import webpack from 'webpack';
import TerserPlugin from 'terser-webpack-plugin';
const extpath = path.join(__dirname, '../src/browser/extension/');
const mock = `${extpath}chromeAPIMock.js`;
const baseConfig = (params) => ({
// devtool: 'source-map',
mode: 'production',
entry: params.input || {
background: [ mock, `${extpath}background/index` ],
options: [ mock, `${extpath}options/index` ],
window: [ `${extpath}window/index` ],
remote: [ `${extpath}window/remote` ],
devpanel: [ mock, `${extpath}devpanel/index` ],
devtools: [ `${extpath}devtools/index` ],
content: [ mock, `${extpath}inject/contentScript` ],
pagewrap: [ `${extpath}inject/pageScriptWrap` ],
'redux-devtools-extension': [ `${extpath}inject/index`, `${extpath}inject/deprecatedWarn` ],
inject: [ `${extpath}inject/index`, `${extpath}inject/deprecatedWarn` ],
...params.inputExtra
},
output: {
filename: '[name].bundle.js',
chunkFilename: '[id].chunk.js',
...params.output
},
plugins: [
new webpack.DefinePlugin(params.globals),
...(params.plugins ? params.plugins :
[
new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.optimize.OccurrenceOrderPlugin()
])
],
optimization: {
minimizer: [
new TerserPlugin({
terserOptions: {
output: {
comments: false
}
},
// sourceMap: true,
cache: true,
parallel: true
})
]
},
performance: {
hints: false
},
resolve: {
alias: {
app: path.join(__dirname, '../src/app'),
tmp: path.join(__dirname, '../build/tmp')
},
extensions: ['.js']
},
module: {
rules: [
...(params.loaders ? params.loaders : [{
test: /\.js$/,
use: 'babel-loader',
exclude: /(node_modules|tmp\/page\.bundle)/
}]),
{
test: /\.css?$/,
use: ['style-loader', 'raw-loader'],
}
]
}
});
export default baseConfig;
================================================
FILE: webpack/dev.config.js
================================================
import path from 'path';
import webpack from 'webpack';
import baseConfig from './base.config';
let config = baseConfig({
inputExtra: { page: [ path.join(__dirname, '../src/browser/extension/inject/pageScript') ] },
output: { path: path.join(__dirname, '../dev/js') },
globals: {
'process.env': {
NODE_ENV: '"development"'
}
},
plugins: [
new webpack.NoEmitOnErrorsPlugin()
]
});
config.watch = true;
export default config;
================================================
FILE: webpack/prod.config.js
================================================
import path from 'path';
import baseConfig from './base.config';
export default baseConfig({
output: { path: path.join(__dirname, '../build/extension/js') },
globals: {
'process.env': {
NODE_ENV: '"production"'
}
}
});
================================================
FILE: webpack/replace/JsonpMainTemplate.runtime.js
================================================
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
/*globals hotAddUpdateChunk parentHotUpdateCallback document XMLHttpRequest $require$ $hotChunkFilename$ $hotMainFilename$ */
module.exports = function() {
function webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars
hotAddUpdateChunk(chunkId, moreModules);
if(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);
}
var context = this;
function evalCode(code, context) {
return (function() { return eval(code); }).call(context);
}
context.hotDownloadUpdateChunk = function (chunkId) { // eslint-disable-line no-unused-vars
var src = __webpack_require__.p + "" + chunkId + "." + hotCurrentHash + ".hot-update.js";
var request = new XMLHttpRequest();
request.onload = function() {
evalCode(this.responseText, context);
};
request.open("get", src, true);
request.send();
}
function hotDownloadManifest(callback) { // eslint-disable-line no-unused-vars
if(typeof XMLHttpRequest === "undefined")
return callback(new Error("No browser support"));
try {
var request = new XMLHttpRequest();
var requestPath = $require$.p + $hotMainFilename$;
request.open("GET", requestPath, true);
request.timeout = 10000;
request.send(null);
} catch(err) {
return callback(err);
}
request.onreadystatechange = function() {
if(request.readyState !== 4) return;
if(request.status === 0) {
// timeout
callback(new Error("Manifest request to " + requestPath + " timed out."));
} else if(request.status === 404) {
// no update available
callback();
} else if(request.status !== 200 && request.status !== 304) {
// other failure
callback(new Error("Manifest request to " + requestPath + " failed."));
} else {
// success
try {
var update = JSON.parse(request.responseText);
} catch(e) {
callback(e);
return;
}
callback(null, update);
}
};
}
};
================================================
FILE: webpack/replace/log-apply-result.js
================================================
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
module.exports = function(updatedModules, renewedModules) {
var unacceptedModules = updatedModules.filter(function(moduleId) {
return renewedModules && renewedModules.indexOf(moduleId) < 0;
});
if(unacceptedModules.length > 0) {
console.warn("[HMR] The following modules couldn't be hot updated: (They would need a full reload!)");
unacceptedModules.forEach(function(moduleId) {
console.warn("[HMR] - " + moduleId);
});
if(chrome && chrome.runtime && chrome.runtime.reload) {
console.warn("[HMR] extension reload");
chrome.runtime.reload();
} else {
console.warn("[HMR] Can't extension reload. not found chrome.runtime.reload.");
}
}
if(!renewedModules || renewedModules.length === 0) {
console.log("[HMR] Nothing hot updated.");
} else {
console.log("[HMR] Updated modules:");
renewedModules.forEach(function(moduleId) {
console.log("[HMR] - " + moduleId);
});
}
};
================================================
FILE: webpack/wrap.config.js
================================================
import path from 'path';
import baseConfig from './base.config';
export default baseConfig({
input: { page: [ path.join(__dirname, '../src/browser/extension/inject/pageScript') ] },
output: { path: path.join(__dirname, '../build/tmp') },
globals: {
'process.env': {
NODE_ENV: '"production"'
}
}
});