A simple way to report content via Firebase
A simple way to report content via Firebase. It will push an object with optional message
and by
properties to the desired path.
If another object with the same by
property exists, then it will return a positive value for reported
.
<firebase-app
name="demo"
api-key="AIzaSyAhoCXxkY-ffNwA_7L7HIwBVpASYj1btNE"
auth-domain="convoo-login-demo.firebaseapp.com"
database-url="https://convoo-login-demo.firebaseio.com">
</firebase-app>
<report-fire path="/reports/profiles/12391701" message="Profile Report" by="12387103713" app-name="demo" reported>
<template is="dom-if" if="[[reported]]">
Thank you for reporting!
</template>
<template is="dom-if" if="[[!reported]]">
Report!
</template>
</report-fire>
First, make sure you have the Polymer CLI installed. Then run polymer serve
to serve your application locally.
$ polymer serve
$ polymer build
This will create a build/
folder with bundled/
and unbundled/
sub-folders
containing a bundled (Vulcanized) and unbundled builds, both run through HTML,
CSS, and JS optimizers.
You can serve the built versions by giving polymer serve
a folder to serve
from:
$ polymer serve build/bundled
$ polymer test
Your application is already set up to be tested via web-component-tester. Run polymer test
to run your application's test suite locally.