Skip to content

Commit 7337afc

Browse files
Merge pull request #85 from reactrewind/dev
Dev
2 parents 0120230 + d6c9e48 commit 7337afc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+14714
-18
lines changed

.eslintrc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": ["airbnb"],
3+
"rules": {
4+
"react/prop-types": 0,
5+
"no-console": 1
6+
},
7+
"plugins": ["react", "import"],
8+
"parser": "babel-eslint",
9+
"parserOptions": {
10+
"ecmaVersion": 2018,
11+
"sourceType": "module",
12+
"ecmaFeatures": {
13+
"jsx": true
14+
}
15+
},
16+
"env": {
17+
"es6": true,
18+
"browser": true,
19+
"node": true
20+
}
21+
}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
/node_modules
2+
src/browser/chrome/devtools_bundle
3+
.DS_Store
4+
src/.DS_Store/
5+

.prettierrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

LICENCE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 React Rewind <reactrewindjs@gmail.com>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<p align="center">
2+
<img src ="./images/greygreen_gg_full_350w.png" width="200"/>
3+
</p>
4+
5+
# Rewind: A Time Travel Debugger for React *useReducer*
6+
7+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/reactrewind/react-rewind/pulls) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8+
![Release Beta](https://img.shields.io/badge/release-beta-blue.svg)<br/><br/>
9+
Designed to help engineers fix bugs faster by recording and replaying through different states of their applications. Debug your app more easily by “rewinding” your session instead of having to reproduce the issue until you find the problem. <br/>
10+
11+
12+
13+
- Press record and start interacting with your application.
14+
- Each dispatched action will be stored as a unique event in time.
15+
- Rewind through your recorded actions with the back button or by dragging the slider.
16+
- Analyze the state, the effects and the action object of every disptached event.
17+
- Press play and watch your app change!
18+
<p align="center">
19+
<img src ="images/BrowserPreview_tmp.gif" width="600">
20+
</p>
21+
22+
**React Rewind is in active development. Follow this repo for contribution guidelines.**
23+
## Getting Started
24+
25+
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
26+
27+
### Prerequisites
28+
Your application must be using the hook `useReducer` for actions to be recorded.
29+
30+
### Installing
31+
React Rewind will soon be available as a Chrome extension through the Google Chrome Web Store.
32+
33+
To install locally, setup instructions are as follows:
34+
35+
1. `git clone https://github.com/reactrewind/react-rewind.git`
36+
2. `cd react-rewind`
37+
3. `npm run install_dep`
38+
4. `npm run build`
39+
5. Visit the URL `chrome://extensions/`
40+
6. Click Load Unpacked button and select the folder `react-rewind/src/browser/chrome`
41+
7. On your application page, open the Chrome Developer tools and select `React Rewind` from the tool bar
42+
8. Click Record and begin interacting with your application
43+
44+
45+
As you interact with your application, actions will populate the events panel. Click on these actions to view more details about them, such as the action object that was dispatched, the effects or state difference, and the whole state of the application after the dispatch. The time slider panel allows you to rewind, fast forward, and play through all recorded actions.
46+
47+
### Application Features
48+
<p align="center">
49+
<img src ="images/effects_900w.gif" width="700" />
50+
</p>
51+
52+
| Field | Description |
53+
| ------------- | ------------- |
54+
| events | action types and time since last dispatch |
55+
| actions | the action object that was dispatched |
56+
| effects | difference between the states before and after the action was dispatched |
57+
| state | the state object after the action was dispatched |
58+
59+
## Contributing
60+
61+
Please fork this repo. We welcome pull requests. For suggestions or to report bugs please log an issue.
62+
63+
## Versioning
64+
65+
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).
66+
67+
## Authors
68+
69+
[Brandon Murphy](https://github.com/murphybrandon) | [Victor Varaschin](https://github.com/victorvrv) | [Kia Colbert](https://github.com/kiacolbert) | [Gaber Mowiena](https://github.com/GaberMowiena)
70+
71+
## License
72+
73+
This project is licensed under the MIT License - see the [LICENCE.md](./LICENCE) file for details
74+

esllintrc.json renamed to eslintrc.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"extends": [
33
"eslint:recommended",
44
"plugin:import/errors",
5-
"plugin:react/recommended",
6-
"prettier",
7-
"prettier/react"
5+
"plugin:react/recommended"
86
],
97
"rules": {
108
"react/prop-types": 0,

images/BrowserPreview_tmp.gif

499 KB
Loading

images/effects_900w.gif

456 KB
Loading

images/greygreen_gg_full.png

68 KB
Loading

images/greygreen_gg_full_350w.png

39.8 KB
Loading

images/greygreen_logo.png

60.1 KB
Loading

images/greygreen_logo_150w.png

18.3 KB
Loading

images/greygreen_text.png

16.5 KB
Loading

0 commit comments

Comments
 (0)