Socket
Book a DemoInstallSign in
Socket

vuetify-vuejs-firebase-card-media

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuetify-vuejs-firebase-card-media

A cover component with linked with your Firebase Storage project.

0.0.6
latest
Source
npmnpm
Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

vuetify-vuejs-firebase-card-media

npm version

A cover component with linked with your Firebase Storage project.

preview.png

Installation

npm install vuetify-vuejs-firebase-card-media --save

Quick Usage

<template>
  <firebaseCardMedia
    path="YOUR/FOLDER/"
    :storage="getStorage()"
    previewImage="http://…"
    targetFileName="image.png"
    :limitToType="['image/png']"
    @onFileUpload="onUpload"
    @onFileDelete="onDelete"
    @onFileUploadError="onUploadError"
  />
</template>

<script>
  import Vue from 'vue';
  import firebaseCardMedia from 'vuetify-vuejs-firebase-card-media';
  Vue.use(firebaseCardMedia);

  export default {
    name: 'event',
    getStorage: function(){
      return firebase.storage();
    },
    onUpload: function(path){
      console.log(path);
    },
    onDelete: function(path){
      console.log(path);
    },
    onDelete: function(path){
      console.log(path);
    }
  }
</script>

Full parameters usage

<template>
  <firebaseCardMedia
    path="YOUR/FOLDER/"
    :storage="getStorage()"
    previewImage="http://…"
    coverSize="200px"
    targetFileName="image.png"
    createBtnLabel="Choose the cover"
    modifyBtnLabel="Modify the cover"
    unsuportedMediaTypeLabel="Invalide file format"
    :limitToType="['image/png']"
    @onFileUpload="onUpload"
    @onFileDelete="onDelete"
    @onFileUploadError="onUploadError"
  />
</template>

<script>
  import Vue from 'vue';
  import firebaseCardMedia from 'vuetify-vuejs-firebase-card-media';
  Vue.use(firebaseCardMedia);

  export default {
    name: 'event',
    getStorage: function(){
      return firebase.storage();
    },
    onUpload: function(path){
      console.log(path);
    },
    onDelete: function(path){
      console.log(path);
    },
    onDelete: function(path){
      console.log(path);
    }
  }
</script>

Keywords

vue

FAQs

Package last updated on 21 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.