All Projects → convoo → file-fire

convoo / file-fire

Licence: MIT license
Simple way to upload and download files from Firebase Storage.

Programming Languages

HTML
75241 projects

Projects that are alternatives of or similar to file-fire

App Datepicker
Datepicker element built with Google's lit-element and Material Design 2
Stars: ✭ 142 (+992.31%)
Mutual labels:  polymer, webcomponents
vaadin-dialog
High quality web component for modal dialogs. Part of the Vaadin platform.
Stars: ✭ 15 (+15.38%)
Mutual labels:  polymer, webcomponents
Origami
Angular + Polymer
Stars: ✭ 158 (+1115.38%)
Mutual labels:  polymer, webcomponents
Vaadin Combo Box
The Web Component for displaying a list of items with filtering. Part of the Vaadin components.
Stars: ✭ 113 (+769.23%)
Mutual labels:  polymer, webcomponents
paper-chip
A chip web component made with Polymer 2 following Material Design guidelines
Stars: ✭ 30 (+130.77%)
Mutual labels:  polymer, webcomponents
Webdash
🔥 Orchestrate your web project with Webdash the customizable web dashboard
Stars: ✭ 1,528 (+11653.85%)
Mutual labels:  polymer, webcomponents
Lrnwebcomponents
@lrnwebcomponents Monorepo for NPM based element definitions
Stars: ✭ 166 (+1176.92%)
Mutual labels:  polymer, webcomponents
Vaadin Upload
The Web Component for uploading multiple files with progress indication. Part of the Vaadin components.
Stars: ✭ 87 (+569.23%)
Mutual labels:  polymer, webcomponents
polytimer
polytimer.rocks
Stars: ✭ 24 (+84.62%)
Mutual labels:  polymer, webcomponents
identicon-avatar
👾 GitHub style identicon avatar
Stars: ✭ 15 (+15.38%)
Mutual labels:  polymer, webcomponents
Wc Loader
🚽 Webcomponents webpack loader.
Stars: ✭ 101 (+676.92%)
Mutual labels:  polymer, webcomponents
polymer-ui-router
UI-router wrapper for Web Components
Stars: ✭ 24 (+84.62%)
Mutual labels:  polymer, webcomponents
Frontend
🍭 Frontend for Home Assistant
Stars: ✭ 1,366 (+10407.69%)
Mutual labels:  polymer, webcomponents
The Grid
Grid layout custom element with drag and drop capabilities
Stars: ✭ 122 (+838.46%)
Mutual labels:  polymer, webcomponents
Highcharts Chart
Polymer Element wrapper for highcharts library. Seamlessly create various types of charts from one element.
Stars: ✭ 97 (+646.15%)
Mutual labels:  polymer, webcomponents
Vaadin Date Picker
The Web Component providing a date selection field with scrollable month calendar. Part of the Vaadin components.
Stars: ✭ 158 (+1115.38%)
Mutual labels:  polymer, webcomponents
Login Fire
An element that allows simple configuration of multiple provider login for firebase
Stars: ✭ 58 (+346.15%)
Mutual labels:  polymer, webcomponents
Redux Store Element
A custom element allowing a more declarative use of Redux.
Stars: ✭ 83 (+538.46%)
Mutual labels:  polymer, webcomponents
iron-swipeable-pages
[Polymer 1.x] Element that enables switching between different pages by swiping gesture.
Stars: ✭ 51 (+292.31%)
Mutual labels:  polymer, webcomponents
mapbox-gl
Polymer 2.0 custom element for mapbox-gl-js. Uses WebGL to render interactive maps from vector tiles and Mapbox styles - compatible with deck-gl.
Stars: ✭ 24 (+84.62%)
Mutual labels:  polymer, webcomponents

file-fire

file-fire

Simple way to upload and download files from Firebase Storage.


Install

bower install file-fire --save

<file-fire>

An element that uploads files and provides download url from Firebase Storage. For images, it can resize and provide a placeholder as well.

After resizing, it can also generate 2x 3x image sizes. This is determined by the max-scale and scale-step properties. Some examples:

  1. max-scale of 3 and scale-step of 1 will generate 1x, 2x and 3x images.
  2. max-scale of 2 and scale-step of 0.5 will generate 1x, 1.5x and 2x images.

It can also fetch images from elsewhere (such as a twitter profile image) and upload that to your Firebase Storage.

<firebase-app
  name="demo"
  api-key="AIzaSyACU-9dEBSmlEq8iwfuDCPCWU81UNDytuQ"
  auth-domain="convoofire.firebaseapp.com"
  database-url="https://convoofire.firebaseio.com"
  storage-bucket="convoofire.appspot.com"
  >
</firebase-app>
<file-fire
  app-name="demo"
  path="/remote/file"
  src-url="https://pbs.twimg.com/profile_images/741290730170122240/abfazODg_400x400.jpg"
  progress="{{remoteProgress}}"
  download-url="{{downloadRemoteUrl}}"
  max-scale="3"
  resize-height="50"
  resize-width="50"
  placeholder="{{remotePlaceholder}}"
></file-fire>

<file-fire-drop>

An enhanced version of <file-fire> that allows dragging and dropping a file. This element can have contents that are displayed unless a file is dragged over it.

<file-fire-drop
  app-name="demo"
  path="/u/test.png"
  over-write
  progress="{{progress}}"
  placeholder="{{base64}}"
  files="{{images}}"
>
This text will be visible unless you hover over it while dragging a file</br>
This text will be visible unless you hover over it while dragging a file</br>
This text will be visible unless you hover over it while dragging a file</br>
</file-fire-drop>

<file-fire-fetch>

An element that retrieves the download url from the file storage path in Firebase Storage.

<firebase-app
  name="demo"
  api-key="AIzaSyACU-9dEBSmlEq8iwfuDCPCWU81UNDytuQ"
  auth-domain="convoofire.firebaseapp.com"
  database-url="https://convoofire.firebaseio.com"
  storage-bucket="convoofire.appspot.com"
  >
</firebase-app>
<file-fire-fetch
  app-name="demo"
  path="/my/path/to/file.jpg"
  file="{{myFile}}"
  file-url="{{myFileURL}}"
></file-fire-fetch>

Dependencies

Element dependencies are managed via Bower. You can install that via:

npm install -g bower

Then, go ahead and download the element's dependencies:

bower install

Playing With Your Element

If you wish to work on your element in isolation, we recommend that you use Polyserve to keep your element's bower dependencies in line. You can install it via:

npm install -g polyserve

And you can run it via:

polyserve

Once running, you can preview your element at http://localhost:8080/components/image-fire/, where image-fire is the name of the directory containing it.

Testing Your Element

Simply navigate to the /test directory of your element to run its tests. If you are using Polyserve: http://localhost:8080/components/image-fire/test/

web-component-tester

The tests are compatible with web-component-tester. Install it via:

npm install -g web-component-tester

Then, you can run your tests on all of your local browsers via:

wct

WCT Tips

wct -l chrome will only run tests in chrome.

wct -p will keep the browsers alive after test runs (refresh to re-run).

wct test/some-file.html will test only the files you specify.

Yeoman support

If you'd like to use Yeoman to scaffold your element that's possible. The official generator-polymer generator has a seed subgenerator.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].