This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Plugin = require('../Plugin') | |
const Utils = require('../../core/Utils') | |
/** | |
* The Thumbnail Generator plugin | |
* | |
*/ | |
module.exports = class ThumbnailGenerator extends Plugin { | |
constructor(core, opts) { | |
super(core, opts) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
constructor(opts) { | |
... | |
this.queue = [] | |
this.queueProcessing = false | |
... | |
} | |
actions () { | |
... | |
this.on('core:file-added', (file) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Core, Tus10 } from 'uppy'; | |
import runtime from 'serviceworker-webpack-plugin/lib/runtime'; | |
export const uppy = new Core({ wait: false }); | |
function uploaderUpdatedAction(value) { | |
return { | |
type: 'UPLOADER_UPDATED', | |
value | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Plugin } from 'uppy'; | |
export default class ReduxEmitter extends Plugin { | |
constructor(core, opts) { | |
super(core, opts); | |
this.type = 'redux'; | |
this.id = 'ReduxEmitter'; | |
this.title = 'Redux Emitter'; | |
// set default options | |
const defaultOptions = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Lightweight detector of mobile devices, OSs & browsers | |
* Copyright 2012 Túbal Martín (email: [email protected]) | |
* License: GPL2 | |
*/ | |
if ( ! function_exists('mobile_detector') ) | |
{ |