Quellcode durchsuchen

Compiled umd & sizes

Artur Paikin vor 9 Jahren
Ursprung
Commit
1d03c2df5c

+ 3 - 3
website/_config.yml

@@ -5,9 +5,9 @@
 # Uppy versions, auto updated by update.js
 # Uppy versions, auto updated by update.js
 uppy_version: 0.0.1
 uppy_version: 0.0.1
 
 
-uppy_dev_size: "81.30"
-uppy_min_size: "81.30"
-uppy_gz_size: "81.30"
+uppy_dev_size: "81.15"
+uppy_min_size: "81.15"
+uppy_gz_size: "81.15"
 
 
 # Theme
 # Theme
 google_analytics: UA-63083-12
 google_analytics: UA-63083-12

+ 16 - 0
website/themes/uppy/source/uppy/locale/en_US.js

@@ -0,0 +1,16 @@
+(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+  value: true
+});
+var en_US = {
+  "Choose a file": "Choose a file",
+  "or drag & drop": "or drag & drop"
+};
+
+Uppy.locale.en_US = en_US;
+exports["default"] = en_US;
+module.exports = exports["default"];
+
+},{}]},{},[1]);

+ 3 - 3
website/themes/uppy/source/uppy/uppy.js

@@ -2201,8 +2201,8 @@ var DragDrop = (function (_Plugin) {
     Object.assign(this.opts, opts);
     Object.assign(this.opts, opts);
 
 
     // get the element where Drag & Drop event will occur
     // get the element where Drag & Drop event will occur
-    this.dropzone = document.querySelectorAll(this.opts.selector)[0];
-    this.dropzoneInput = document.querySelectorAll('.UppyDragDrop-input')[0];
+    this.dropzone = document.querySelector(this.opts.selector);
+    this.dropzoneInput = document.querySelector('.UppyDragDrop-input');
 
 
     this.status = document.querySelectorAll('.UppyDragDrop-status')[0];
     this.status = document.querySelectorAll('.UppyDragDrop-status')[0];
 
 
@@ -2244,7 +2244,6 @@ var DragDrop = (function (_Plugin) {
     value: function listenForEvents() {
     value: function listenForEvents() {
       var _this = this;
       var _this = this;
 
 
-      console.log('translation is all like: ' + this.core.translate('Choose a file'));
       console.log('waiting for some files to be dropped on ' + this.opts.selector);
       console.log('waiting for some files to be dropped on ' + this.opts.selector);
 
 
       if (this.isDragDropSupported) {
       if (this.isDragDropSupported) {
@@ -2295,6 +2294,7 @@ var DragDrop = (function (_Plugin) {
     value: function handleDrop(e) {
     value: function handleDrop(e) {
       console.log('all right, someone dropped something here...');
       console.log('all right, someone dropped something here...');
       var files = e.dataTransfer.files;
       var files = e.dataTransfer.files;
+      console.log(files);
 
 
       // const formData = new FormData(this.dropzone);
       // const formData = new FormData(this.dropzone);
       // console.log('pizza', formData);
       // console.log('pizza', formData);