Просмотр исходного кода

Cleanup components which seem no longer used

Kevin van Zonneveld 9 лет назад
Родитель
Сommit
d6c77addb2
3 измененных файлов с 0 добавлено и 60 удалено
  1. 0 20
      src/components/dragdrop.ejs
  2. 0 17
      src/components/dragdrop.hbs
  3. 0 23
      src/components/dragdrop.js

+ 0 - 20
src/components/dragdrop.ejs

@@ -1,20 +0,0 @@
-<form class="UppyDragDrop-form"
-      method="post"
-      action="<%= endpoint %>"
-      enctype="multipart/form-data">
-    <img class="UppyDragDrop-puppy" src="/images/uppy.svg" />
-    <input class="UppyDragDrop-input"
-           type="file"
-           name="files[]"
-           data-multiple-caption="{count} files selected"
-           multiple />
-    <label class="UppyDragDrop-label" for="UppyDragDrop-input">
-      <strong><%= chooseFile %></strong>
-      <span class="UppyDragDrop-dragText"><%= orDragDrop %></span>.
-    </label>
-
-    <% if (!showUploadBtn) { %>
-      <button class="UppyDragDrop-uploadBtn" type="submit"><%= upload %></button>
-    <% } %>
-  <div class="UppyDragDrop-status"></div>
-</form>

+ 0 - 17
src/components/dragdrop.hbs

@@ -1,17 +0,0 @@
-<form class="UppyDragDrop-form"
-      method="post"
-      action="/"
-      enctype="multipart/form-data">
-    <img class="UppyDragDrop-puppy" src="/images/uppy.svg" />
-    <input class="UppyDragDrop-input"
-           type="file"
-           name="files[]"
-           data-multiple-caption="{count} files selected"
-           multiple />
-    <label class="UppyDragDrop-label" for="UppyDragDrop-input">
-      <strong>{{ chooseFile }}</strong>
-      <span class="UppyDragDrop-dragText">{{ orDragDrop }}</span>.
-    </label>
-    <button class="UppyDragDrop-btn" type="submit">Upload</button>
-  <div class="UppyDragDrop-status"></div>
-</form>

+ 0 - 23
src/components/dragdrop.js

@@ -1,23 +0,0 @@
-export default (context) => {
-  return `<form class="UppyDragDrop-inner"
-      method="post"
-      action="${context.endpoint}"
-      enctype="multipart/form-data">
-    <img class="UppyDragDrop-puppy" src="/images/uppy.svg">
-    <input class="UppyDragDrop-input"
-           id="UppyDragDrop-input"
-           type="file"
-           name="files[]"
-           multiple />
-    <label class="UppyDragDrop-label" for="UppyDragDrop-input">
-      <strong>${context.chooseFile}</strong>
-      <span class="UppyDragDrop-dragText">${context.orDragDrop}</span>.
-    </label>
-  ${!context.showUploadBtn
-    ? `<button class="UppyDragDrop-uploadBtn" type="submit">${context.upload}</button>`
-    : ''}
-  <div class="UppyProgress"></div>
-  <div class="UppyDragDrop-status"></div>
-  <div class="UppyDragDrop-progress"></div>
-</form>`
-}