All Projects → codeunitedio → Droply

codeunitedio / Droply

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Droply

Angular File Uploader
Angular file uploader is an Angular 2/4/5/6/7/8/9/10 + file uploader module with Real-Time Progress Bar, Responsive design, Angular Universal Compatibility, localization and multiple themes which includes Drag and Drop and much more.
Stars: ✭ 92 (+162.86%)
Mutual labels:  upload, npm
Ibooks
VuePress记录技术开发笔记
Stars: ✭ 33 (-5.71%)
Mutual labels:  npm
Movie Finder
오픈소스 검색엔진인 Elasticsearch 를 활용하여 '영화'를 검색을 하는 Vue.js 프로젝트
Stars: ✭ 21 (-40%)
Mutual labels:  npm
Gub
CLI tool for create an npm package from any repos. 🐳
Stars: ✭ 31 (-11.43%)
Mutual labels:  npm
Nlm
Lifecycle manager for node projects
Stars: ✭ 27 (-22.86%)
Mutual labels:  npm
Itt
Iteration tools.
Stars: ✭ 32 (-8.57%)
Mutual labels:  npm
Npm Safe Install
A node cli that performs npm install in a safe manner such the locally linked modules are not removed during install
Stars: ✭ 20 (-42.86%)
Mutual labels:  npm
Mailgo
💌 mailgo, a new concept of mailto and tel links
Stars: ✭ 978 (+2694.29%)
Mutual labels:  npm
Uphold Sdk Android
Uphold Android SDK
Stars: ✭ 32 (-8.57%)
Mutual labels:  upload
Lucidcv
CV Maker 🚀
Stars: ✭ 30 (-14.29%)
Mutual labels:  npm
Sao Nm
Scaffold out a node module.
Stars: ✭ 30 (-14.29%)
Mutual labels:  npm
Docker Npmrc Security
.npmrc files are often used insecurely in Docker images. Use multi-stage builds or Docker build secrets to protect your .nrpmc files.
Stars: ✭ 29 (-17.14%)
Mutual labels:  npm
Laravel Guided Image
Simplified and ready image manipulation for Laravel through intervention image.
Stars: ✭ 32 (-8.57%)
Mutual labels:  upload
Overwatch Js
Overwatch NodeJS API : Retrieve informations about heroes/players from Overwatch Official Website
Stars: ✭ 27 (-22.86%)
Mutual labels:  npm
Dependency Land
Find the npm modules that depend on a specific module and semver range.
Stars: ✭ 34 (-2.86%)
Mutual labels:  npm
Awesome Mad Science
Delightful npm packages that make you say "wow, didn't know that was possible!"
Stars: ✭ 909 (+2497.14%)
Mutual labels:  npm
Luna
Manage npm dependencies through a modern UI.
Stars: ✭ 948 (+2608.57%)
Mutual labels:  npm
Npm Build Boilerplate
A collection of packages that build a website using npm scripts.
Stars: ✭ 963 (+2651.43%)
Mutual labels:  npm
Angular Library Starter Kit
Angular 5 Library Starter Kit based on Angular-CLI
Stars: ✭ 35 (+0%)
Mutual labels:  npm
React Gettext Parser
Extracts translatable strings from JS(X) source code to POT files
Stars: ✭ 34 (-2.86%)
Mutual labels:  npm

npm version

vue version

Introduction

Droply is a tiny Dropzone wrapper for the VueJS 2.

Installation

NPM Based WorkFlows

This is a recommended way of installation. You can use either npm or yarn package manager:

$ yarn add droply --dev

Browser Globals

Just include vue and droply from the NPM CDN and you're ready to go:

<!-- use the latest release -->
<script src="https://npmcdn.com/[email protected]"></script>

<!-- or point to a specific release -->
<script src="https://npmcdn.com/[email protected]"></script>

Usage

You'll also need to load the FontAwesome icon kit:

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

Next step is to import the module:

import Droply from 'droply'

Then you can register it globaly using Vue.component() or inside a components object.

Example

<template>
    <div class="container">
        <div class="row justify-content-md-center">
            <div class="col-6">
                <p class="text-center">
                    This is as simple Dropzone demo using Vue.js
                </p>
                <droply id="myDroply"
                        ref="droplyOne"
                        url="https://httpbin.org/post"
                        upload-message-text="Drop file(s) to upload <br><strong>or click</strong>"
                        @droply-file-added="onFileAdded"
                        @droply-removed-file="onFileRemoved"
                        @droply-success="onSuccess">
                </droply>
            </div>
        </div>
        <div class="row justify-content-md-center">
            <div class="col-2 text-center">
                <button v-if="showRemoveAllButton" class="btn btn-primary" @click="removeAll()">Remove all</button>
            </div>
        </div>
    </div>
</template>

<style>
    @import url('https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css');
    
    html, body {
        height: 100vh;
        background-color: #F9F9F9;
    }
    .row {
        margin-top: 1rem;
    }
</style>

<script>
  import Droply from 'droply'

  export default {
    name: 'MainApp',
    components: {
      Droply
    },
    data () {
      return {
        processQueue: false,
        showRemoveAllButton: false
      }
    },
    methods: {
      onFileAdded() {
        this.showRemoveAllButton = true
      },
      onFileRemoved() {
        this.showRemoveAllButton = false
      },
      onSuccess(file) {
        console.log('A file was successfully uploaded')
      },
      removeAll() {
        this.$refs.droplyOne.removeAllFiles()
      }
    }
  }
</script>

License

Droply is open-sourced software licensed under the MIT license

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].