KO
|
EN
gitlite — search
Search
#typescript
#ai-agents
#ai
#dsh-plugin
#deepseek-harness
#open-source
#claude-code
#codex
#cli
#developer-tools
#react
#windows
droply
★ 33
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
OoT-Interactive-Map
:
Interactive Map for the world of Zelda: Ocarina of Time
z80cpp
:
Z80 core in C++
AnotherKafkaMonitor-AKM-
:
Another app which used to monitor the progress of Kafka Producer and Consumer
NxEnabled
:
Library that allows you binding `enabled` property of button with textable elements (TextView, TextField)
skyvow.github.io
:
https://skyvow.github.io
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
droply
?
Download (.md)
<p align="center"> <img src="https://raw.githubusercontent.com/codeunitedio/droply/master/docs/img/logo.png"> </p> <p align="center"> <a href="https://www.npmjs.com/package/droply"><img src="https://badge.fury.io/js/droply.svg" alt="npm version" height="18"></a> <a href="https://www.npmjs.com/package/droply"><img src="https://img.shields.io/badge/vue-2.x-brightgreen.svg" alt="vue version" height="18"></a> </p> ## 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: ```bash $ yarn add droply --dev ``` #### Browser Globals Just include ```vue``` and ```droply``` from the [NPM CDN](https://npmcdn.com/) and you're ready to go: ```html <!-- use the latest release --> <script src="https://npmcdn.com/droply@latest"></script> <!-- or point to a specific release --> <script src="https://npmcdn.com/droply@0.0.2"></script> ``` ## Usage You'll also need to load the [FontAwesome](http://fontawesome.io/) icon kit: ```html <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> ``` Next step is to import the module: ```javascript import Droply from 'droply' ``` Then you can register it globaly using Vue.component() or inside a components object. ### Example ```html <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](http://opensource.org/licenses/MIT)