From cdb4e6ad6ffdeef3738bbc5a0d3d4d143bd23329 Mon Sep 17 00:00:00 2001 From: Kevin van Zonneveld Date: Tue, 19 Jan 2016 23:47:53 +0100 Subject: [PATCH] Make the build pass again by trimming line length --- src/locale/ru.js | 1 - src/plugins/DragDrop.js | 3 ++- src/plugins/Dropbox.js | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/locale/ru.js b/src/locale/ru.js index 3d0f9fd5c..be182f353 100644 --- a/src/locale/ru.js +++ b/src/locale/ru.js @@ -4,7 +4,6 @@ ru.strings = { 'choose_file': 'Выберите файл', 'or_drag_drop': 'или перенесите его сюда', 'you_have_chosen': 'Вы выбрали: %{file_name}', - // 'files_chosen': 'выбран %{smart_count} файл |||| выбрано %{smart_count} файла |||| выбрано %{smart_count} файлов' 'files_chosen': { 0: 'Выбран %{smart_count} файл', 1: 'Выбрано %{smart_count} файла', diff --git a/src/plugins/DragDrop.js b/src/plugins/DragDrop.js index f08176ffb..76d7ef829 100644 --- a/src/plugins/DragDrop.js +++ b/src/plugins/DragDrop.js @@ -66,7 +66,8 @@ export default class DragDrop extends Plugin { } // prevent default actions for all drag & drop events - Utils.addListenerMulti(this.dropzone, 'drag dragstart dragend dragover dragenter dragleave drop', (e) => { + const strEvents = 'drag dragstart dragend dragover dragenter dragleave drop' + Utils.addListenerMulti(this.dropzone, strEvents, (e) => { e.preventDefault() e.stopPropagation() }) diff --git a/src/plugins/Dropbox.js b/src/plugins/Dropbox.js index 9528b6c66..8a0deeffd 100644 --- a/src/plugins/Dropbox.js +++ b/src/plugins/Dropbox.js @@ -53,14 +53,17 @@ export default class Dropbox extends Plugin { } run(results) { - + } render(files) { // for each file in the directory, create a list item element const elems = files.map((file, i) => { const icon = (file.isFolder) ? 'folder' : 'file' - return `
  • ${icon} : ${file.name}
  • ` + return `
  • + ${icon} : + ${file.name} +
  • ` }) // appends the list items to the target