Commenting solution out-of-the-box in a web component.
APACHE-2.0 License
Commenting solution out-of-the-box in a web component.
<hostabee-comment-flow></hostabee-comment-flow>
<script>
const flow = document.querySelector('hostabee-comment-flow');
// Populate the comment flow
fetch('https://YOUR_API/comments')
.then(res => res.json())
.then(json => flow.comments = json.result);
</script>
Install <hostabee-comment-flow>
:
bower install Hostabee/hostabee-comment-flow --save
Once installed, import it in your application:
<link rel="import" href="bower_components/hostabee-comment-flow/hostabee-comment-flow.html">
You can also install exif-js and JavaScript-Load-Image to automatically fix EXIF orientation on client-side. Be sure those 2 libraries are imported into your app before the hostabee-comment-flow
element.
Fork the hostabee-comment-flow
repository and clone it locally.
When in the hostabee-comment-flow
directory, run npm install
and then bower install
to install dependencies.
hostabee-comment-flow-firebase-connector
you have to provide the configuration of your application in the "test/firebase-config.js" and "demo/firebase-config.js" files.Run npm start
, browser will automatically open the component API documentation.
You can also open demo or in-browser tests by adding demo or test to the URL, for example:
hostabee-comment-flow
directory, run polymer test
Fork it!
Create your feature branch: git checkout -b my-new-feature
Commit your changes: git cz
OR follow this commit guide to write the commit messages.
Push to the branch: git push origin my-new-feature
Submit a pull request.
Apache License 2.0