|
|
@ -86,7 +86,6 @@ export default class FileManager {
|
|
|
|
var path = sortOrder[step].earl.split('/');
|
|
|
|
var path = sortOrder[step].earl.split('/');
|
|
|
|
utils.imgLoad(sortOrder[step].earl).then(blob => {
|
|
|
|
utils.imgLoad(sortOrder[step].earl).then(blob => {
|
|
|
|
var fresh = new File([blob], path[6], { type: blob.type });
|
|
|
|
var fresh = new File([blob], path[6], { type: blob.type });
|
|
|
|
console.log('FRESH FILE', fresh);
|
|
|
|
|
|
|
|
this.files.push(fresh);
|
|
|
|
this.files.push(fresh);
|
|
|
|
if (this.files.length <= count - 1) {
|
|
|
|
if (this.files.length <= count - 1) {
|
|
|
|
this.reindexFiles(sortOrder, ++step);
|
|
|
|
this.reindexFiles(sortOrder, ++step);
|
|
|
@ -124,7 +123,6 @@ export default class FileManager {
|
|
|
|
f.target.result +
|
|
|
|
f.target.result +
|
|
|
|
') no-repeat center center / cover';
|
|
|
|
') no-repeat center center / cover';
|
|
|
|
span.className = 'img-item';
|
|
|
|
span.className = 'img-item';
|
|
|
|
//span.setAttribute('data-source', theFile.name);
|
|
|
|
|
|
|
|
image.setAttribute('id', i);
|
|
|
|
image.setAttribute('id', i);
|
|
|
|
self.storage.push([
|
|
|
|
self.storage.push([
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -190,10 +188,8 @@ export default class FileManager {
|
|
|
|
e.type == 'drop'
|
|
|
|
e.type == 'drop'
|
|
|
|
? (rawList = e.dataTransfer.files)
|
|
|
|
? (rawList = e.dataTransfer.files)
|
|
|
|
: (rawList = e.target.files);
|
|
|
|
: (rawList = e.target.files);
|
|
|
|
//this.sortFiles(freshList);
|
|
|
|
|
|
|
|
for (var i = 0, f; (f = rawList[i]); i++) {
|
|
|
|
for (var i = 0, f; (f = rawList[i]); i++) {
|
|
|
|
// check witch files are cool to upload
|
|
|
|
// check witch files are cool to upload
|
|
|
|
console.log('TYPE', f.type);
|
|
|
|
|
|
|
|
if (this.accetableFiles.includes(f.type)) {
|
|
|
|
if (this.accetableFiles.includes(f.type)) {
|
|
|
|
sortedList.push(f);
|
|
|
|
sortedList.push(f);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|