This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from aiham/dev
Release 0.4.0
- Loading branch information
Showing
28 changed files
with
5,594 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
src/ | ||
example/ | ||
src/ | ||
test/ | ||
karma.conf.js | ||
.travis.yml | ||
.npmignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
sudo: required | ||
language: node_js | ||
node_js: | ||
- 6 | ||
|
||
before_install: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
|
||
script: ./node_modules/.bin/run-tests | ||
|
||
after_failure: | ||
- for file in *.log; do echo $file; echo "======================"; cat $file; done || true | ||
|
||
env: | ||
matrix: | ||
- BROWSER=chrome BVER=stable | ||
- BROWSER=firefox BVER=stable | ||
- UNIT_CMD='npm run lint' | ||
global: | ||
- TRAVIS=true | ||
- UNIT_CMD='npm run unit' | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
notifications: | ||
email: | ||
- aiham@aiham.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Contributing Guidelines | ||
|
||
For anyone looking to get involved to this project, we are glad to hear from you. Here are a few types of contributions that we would be interested in hearing about. | ||
|
||
* Bug fixes | ||
- If you find a bug, please first report it using Github Issues. | ||
- Issues that have already been identified as a bug will be labelled `bug`. | ||
- If you'd like to submit a fix for a bug, send a Pull Request from your own fork and mention the Issue number. | ||
+ Include a test that isolates the bug and verifies that it was fixed. | ||
* New Features | ||
- If you'd like to accomplish something in the library that it doesn't already do, describe the problem in a new Github Issue. | ||
- Issues that have been identified as a feature request will be labelled `enhancement`. | ||
- If you'd like to implement the new feature, please wait for feedback from the project maintainers before spending too much time writing the code. In some cases, `enhancement`s may not align well with the project objectives at the time. | ||
* Tests, Documentation, Miscellaneous | ||
- If you think the test coverage could be improved, the documentation could be clearer, you've got an alternative implementation of something that may have more advantages, or any other change we would still be glad hear about it. | ||
- If its a trivial change, go ahead and send a Pull Request with the changes you have in mind | ||
- If not, open a Github Issue to discuss the idea first. | ||
|
||
## Requirements | ||
|
||
For a contribution to be accepted: | ||
|
||
* The test suite must be complete and pass | ||
* Code must follow existing styling conventions | ||
* Commit messages must be descriptive. Related issues should be mentioned by number. | ||
|
||
If the contribution doesn't meet these criteria, a maintainer will discuss it with you on the Issue. You can still continue to add more commits to the branch you have sent the Pull Request from. | ||
|
||
## How To | ||
|
||
1. Fork this repository on GitHub. | ||
1. Clone/fetch your fork to your local development machine. | ||
1. Create a new branch (e.g. `issue-12`, `feat/add_foo`, etc) and check it out. | ||
1. Make your changes and commit them. (Did the tests pass?) | ||
1. Push your new branch to your fork. (e.g. `git push myname issue-12`) | ||
1. Open a Pull Request from your new branch to the original fork's `dev` branch. | ||
1. Ensure the Pull Request's automated status checks have all passed and are ready for review. | ||
|
||
## Code structure | ||
|
||
Source code is to be placed in the [src](src/) directory and tests in the [test](test/) directory. Test files should be suffixed with `.spec.js` and follow a similar test suite structure to existing test files. | ||
|
||
All source and test code should follow the same style as existing source and test code and will be enforced by an automated [eslint](http://eslint.org/) style check that runs on every Pull Request. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016-2017 Aiham Hammami | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { render } from 'react-dom'; | ||
|
||
import config from './config'; | ||
import App from './components/App'; | ||
|
||
OT.registerScreenSharingExtension('chrome', config.CHROME_EXTENSION_ID, 2); | ||
ReactDOM.render(( | ||
render(( | ||
<App | ||
apiKey={config.API_KEY} | ||
sessionId={config.SESSION_ID} | ||
token={config.TOKEN} | ||
loadingDelegate={<div>Loading...</div>} | ||
opentokClientUrl="https://static.opentok.com/v2/js/opentok.min.js" | ||
/> | ||
), document.getElementById('content')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.