Skip to content

Commit 3eccd68

Browse files
committed
Initial skeleton built from my own fork of react-simple-chatbot - view price and get balance work, everything else is TODO
0 parents  commit 3eccd68

32 files changed

+8948
-0
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015", "react"]
3+
}

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig helps developers define and maintain
2+
# consistent coding styles between different editors and IDEs.
3+
4+
root = true
5+
6+
[*]
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
indent_style = space
12+
indent_size = 2
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.eslintrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"extends": ["airbnb"],
3+
"globals": {
4+
"window": true,
5+
"Audio": true,
6+
"document": true,
7+
"localStorage": true,
8+
"navigator": true
9+
},
10+
"rules": {
11+
"guard-for-in": ["off"],
12+
"no-console": ["off"],
13+
"no-use-before-define": ["off"],
14+
"no-restricted-syntax": ["off"],
15+
"no-param-reassign": ["off"],
16+
"no-return-assign": ["off"],
17+
"no-confusing-arrow": ["off"],
18+
"class-methods-use-this": ["off"],
19+
"jsx-a11y/no-static-element-interactions": ["off"],
20+
"jsx-a11y/img-has-alt": ["off"],
21+
"react/no-will-update-set-state": ["off"],
22+
"react/jsx-boolean-value": ["off"],
23+
"react/react-in-jsx-scope": ["off"],
24+
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
25+
"react/forbid-prop-types": ["off"]
26+
}
27+
}

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Gyp build artifacts
2+
build
3+
4+
# Logs
5+
logs
6+
*.log
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
13+
# Directory for instrumented libs generated by jscoverage/JSCover
14+
/lib-cov
15+
16+
# Coverage directory used by tools like istanbul
17+
/coverage
18+
19+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
20+
.grunt
21+
22+
# node-waf configuration
23+
.lock-wscript
24+
25+
# Compiled binary addons (http://nodejs.org/api/addons.html)
26+
/build
27+
28+
# Others
29+
/.nyc_output
30+
/.vscode
31+
32+
# Dependency directory
33+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
34+
node_modules

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: node_js
2+
node_js:
3+
- 8
4+
before_install:
5+
- "npm install react react-dom styled-components"

ISSUE_TEMPLATE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Description
2+
3+
Add here all the descriptions that you think it will be useful and valuable to this issue.
4+
5+
## Screenshots
6+
7+
Add screenshots case needes, otherwise delete this section.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Samuel Batista
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: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# React Simple Chatbot
2+
3+
<a href="https://travis-ci.org/LucasBassetti/'react-simple-chatbot"><img src="https://travis-ci.org/LucasBassetti/'react-simple-chatbot.svg?branch=master" alt="Travis CI" /></a> <a href="https://badge.fury.io/js/'react-simple-chatbot"><img src="https://badge.fury.io/js/'react-simple-chatbot.svg" alt="npm version"></a>
4+
<img src="https://codecov.io/gh/LucasBassetti/'react-simple-chatbot/branch/master/graph/badge.svg" alt="Codecov" />
5+
</a> <a href="https://beerpay.io/LucasBassetti/'react-simple-chatbot"><img src="https://beerpay.io/LucasBassetti/'react-simple-chatbot/badge.svg?style=flat" /></a>
6+
7+
A simple chatbot component to create conversation chats
8+
9+
<img src="https://cloud.githubusercontent.com/assets/1014326/25716667/2d4bb4c4-30d6-11e7-996e-30c8fb316361.gif" height="400" />
10+
11+
## Getting Start
12+
13+
```bash
14+
npm install 'react-simple-chatbot --save
15+
```
16+
17+
## Usage
18+
19+
There are several examples on the [website](http://lucasbassetti.com.br/'react-simple-chatbot). Here is the first one to get you started:
20+
21+
``` javascript
22+
import ChatBot from 'react-simple-chatbot';
23+
24+
const steps = [
25+
{
26+
id: '0',
27+
message: 'Welcome to react chatbot!',
28+
trigger: '1',
29+
},
30+
{
31+
id: '1',
32+
message: 'Bye!',
33+
end: true,
34+
},
35+
];
36+
37+
ReactDOM.render(
38+
<div>
39+
<ChatBot steps={steps} />
40+
</div>,
41+
document.getElementById('root')
42+
);
43+
```
44+
45+
## React Simple Chatbot on media
46+
47+
1. [webdesignerdepot](https://www.webdesignerdepot.com/2017/08/whats-new-for-designers-august-2017/)
48+
2. [blogduwebdesign](http://www.blogduwebdesign.com/webdesign/ressources-web-du-lundi-aout-164/2507)
49+
3. [codrops](https://tympanus.net/codrops/collective/collective-335/)
50+
51+
## Build with `'react-simple-chatbot`
52+
53+
1. [Seth Loh Website](https://github.com/lackdaz/lackdaz.github.io) - Personal website of Seth Loh ([demo](https://www.sethloh.com))
54+
2. [Paul's Website](https://psheon.github.io/) - Personal website of Paul Jiang ([demo](https://psheon.github.io/archives/))
55+
3. [Cisco Partner Support API Chatbot](https://github.com/btotharye/cisco-pss-api-chatbot) - Code with screenshots to have your own Cisco Serial lookup chatbot.
56+
57+
Built something with `'react-simple-chatbot`? Submit a PR and add it to this list!
58+
59+
## How to Contribute
60+
61+
Please check the [contributing guide](https://github.com/LucasBassetti/'react-simple-chatbot/blob/master/contributing.md)
62+
63+
## Authors
64+
65+
| ![Lucas Bassetti](https://avatars3.githubusercontent.com/u/1014326?v=3&s=150)|
66+
|:---------------------:|
67+
| [Lucas Bassetti](https://github.com/LucasBassetti/) |
68+
69+
See also the list of [contributors](https://github.com/LucasBassetti/'react-simple-chatbot/contributors) who participated in this project.
70+
71+
## Donate
72+
73+
If you liked this project, you can donate to support it :heart:
74+
75+
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=lucasbr%2edafonseca%40gmail%2ecom&lc=US&item_name=Lucas%20Bassetti&item_number=GitHub&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
76+
77+
## License
78+
79+
MIT · [Lucas Bassetti](http://lucasbassetti.com.br)

contributing.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Contributing guide
2+
3+
Want to contribute to React Simple Chatbot? Awesome!
4+
There are many ways you can contribute, see below.
5+
6+
## Opening issues
7+
8+
Open an issue to report bugs or to propose new features.
9+
10+
- Reporting bugs: describe the bug as clearly as you can, including steps to reproduce, what happened and what you were expecting to happen. Also include browser version, OS and other related software's (npm, Node.js, etc) versions when applicable.
11+
12+
- Proposing features: explain the proposed feature, what it should do, why it is useful, how users should use it. Give us as much info as possible so it will be easier to discuss, access and implement the proposed feature. When you're unsure about a certain aspect of the feature, feel free to leave it open for others to discuss and find an appropriate solution.
13+
14+
## Proposing pull requests
15+
16+
Pull requests are very welcome. Note that if you are going to propose drastic changes, be sure to open an issue for discussion first, to make sure that your PR will be accepted before you spend effort coding it.
17+
18+
Fork the repository, clone it locally and create a branch for your proposed bug fix or new feature. Avoid working directly on the master branch.
19+
20+
Implement your bug fix or feature, write tests to cover it and make sure all tests are passing (run a final `npm test` to make sure everything is correct). Then commit your changes, push your bug fix/feature branch to the origin (your forked repo) and open a pull request to the upstream (the repository you originally forked)'s master branch.
21+
22+
## Documentation
23+
24+
Documentation is extremely important and takes a fair deal of time and effort to write and keep updated. Please submit any and all improvements you can make to the repository's docs.

0 commit comments

Comments
 (0)