Kaynağa Gözat

Example fixed and theme built

Artur Paikin 9 yıl önce
ebeveyn
işleme
b355a2552e

+ 6 - 1
website/src/examples/dragdrop/app.html

@@ -1,11 +1,16 @@
 <!-- Basic Uppy styles -->
 <link rel="stylesheet" href="/css/uppy.css">
 
+<!-- <div class="UppyDragDrop"></div> -->
+
 <form id="upload-target" class="UppyDragDrop" method="post" action="/" enctype="multipart/form-data">
   <img class="UppyDragDrop-puppy" src="/images/uppy.svg">
   <div>
     <input id="UppyDragDrop-input" class="UppyDragDrop-input" type="file" name="files[]" data-multiple-caption="{count} files selected" multiple />
-    <label class="UppyDragDrop-label" for="UppyDragDrop-input"><strong>Choose a file</strong><span class="UppyDragDrop-dragText"> or drag it here</span>.</label>
+    <label class="UppyDragDrop-label" for="UppyDragDrop-input">
+      <strong>Choose a file</strong>
+      <span class="UppyDragDrop-dragText"> or drag it here</span>.
+    </label>
     <!-- <button class="UppyDragDrop-btn" type="submit">Upload</button> -->
   </div>
   <div class="UppyDragDrop-status"></div>

+ 6 - 6
website/themes/uppy/source/uppy/locale/en_US.js

@@ -7,10 +7,10 @@ Object.defineProperty(exports, '__esModule', {
 var en_US = {};
 
 en_US.strings = {
-  'choose_file': 'Choose a file',
-  'you_have_chosen': 'You have chosen: %{file_name}',
-  'or_drag_drop': 'or drag it here',
-  'files_chosen': {
+  chooseFile: 'Choose a file',
+  youHaveChosen: 'You have chosen: %{fileName}',
+  orDragDrop: 'or drag it here',
+  filesChosen: {
     0: '%{smart_count} file selected',
     1: '%{smart_count} files selected'
   }
@@ -23,8 +23,8 @@ en_US.pluralize = function (n) {
   return 1;
 };
 
-if (typeof Uppy !== 'undefined') {
-  Uppy.locale.en_US = en_US;
+if (typeof window.Uppy !== 'undefined') {
+  window.Uppy.locale.en_US = en_US;
 }
 
 exports['default'] = en_US;

+ 6 - 7
website/themes/uppy/source/uppy/locale/ru.js

@@ -7,11 +7,10 @@ Object.defineProperty(exports, '__esModule', {
 var ru = {};
 
 ru.strings = {
-  'choose_file': 'Выберите файл',
-  'or_drag_drop': 'или перенесите его сюда',
-  'you_have_chosen': 'Вы выбрали: %{file_name}',
-  // 'files_chosen': 'выбран %{smart_count} файл |||| выбрано %{smart_count} файла |||| выбрано %{smart_count} файлов'
-  'files_chosen': {
+  chooseFile: 'Выберите файл',
+  youHaveChosen: 'или перенесите его сюда',
+  orDragDrop: 'Вы выбрали: %{file_name}',
+  filesChosen: {
     0: 'Выбран %{smart_count} файл',
     1: 'Выбрано %{smart_count} файла',
     2: 'Выбрано %{smart_count} файлов'
@@ -30,8 +29,8 @@ ru.pluralize = function (n) {
   return 2;
 };
 
-if (typeof Uppy !== 'undefined') {
-  Uppy.locale.ru = ru;
+if (typeof window.Uppy !== 'undefined') {
+  window.Uppy.locale.ru = ru;
 }
 
 exports['default'] = ru;

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1106 - 1
website/themes/uppy/source/uppy/uppy.js


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor