mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-26 03:35:19 +00:00
Fix Dropbox example
This commit is contained in:
parent
2445526147
commit
22cd151c32
2 changed files with 7 additions and 7 deletions
|
|
@ -1,8 +1,10 @@
|
|||
import Utils from '../core/Utils';
|
||||
import TransloaditPlugin from './TransloaditPlugin';
|
||||
import request from 'superagent';
|
||||
|
||||
class DropboxPlugin {
|
||||
constructor() {
|
||||
this.name = 'DropboxPlugin';
|
||||
export default class Dropbox extends TransloaditPlugin {
|
||||
constructor(core, opts) {
|
||||
super(core, opts);
|
||||
this.type = 'selecter';
|
||||
this.authenticate = this.authenticate.bind(this);
|
||||
this.connect = this.connect.bind(this);
|
||||
|
|
@ -98,5 +100,3 @@ class DropboxPlugin {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
export default new DropboxPlugin()
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import TransloaditPlugin from './TransloaditPlugin'
|
||||
import DragDrop from './DragDrop'
|
||||
import DropboxPlugin from './Dropbox'
|
||||
import Dropbox from './Dropbox'
|
||||
import TransloaditBasic from './TransloaditBasic'
|
||||
import Tus10 from './Tus10'
|
||||
|
||||
export default {
|
||||
TransloaditPlugin,
|
||||
DropboxPlugin,
|
||||
Dropbox,
|
||||
DragDrop,
|
||||
TransloaditBasic,
|
||||
Tus10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue