Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
a8763607
Unverified
Commit
a8763607
authored
Feb 08, 2019
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
rm jquery upload
parent
801ace15
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
2548 deletions
+0
-2548
gulpfile.js
gulpfile.js
+0
-3
src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.fileupload-process.js
...ib/jquery/file-upload-9.10.1/jquery.fileupload-process.js
+0
-175
src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.fileupload-validate.js
...b/jquery/file-upload-9.10.1/jquery.fileupload-validate.js
+0
-122
src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.fileupload.js
...app/js/lib/jquery/file-upload-9.10.1/jquery.fileupload.js
+0
-1468
src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.iframe-transport.js
.../lib/jquery/file-upload-9.10.1/jquery.iframe-transport.js
+0
-217
src/main/webapp/js/lib/jquery/file-upload-9.10.1/vendor/jquery.ui.widget.js
.../lib/jquery/file-upload-9.10.1/vendor/jquery.ui.widget.js
+0
-563
No files found.
gulpfile.js
View file @
a8763607
...
...
@@ -93,9 +93,6 @@ function miniAdminLibs () {
// concat js
const
jsJqueryUpload
=
[
'
./src/main/webapp/js/lib/jquery/jquery.min.js
'
,
'
./src/main/webapp/js/lib/jquery/file-upload-9.10.1/vendor/jquery.ui.widget.js
'
,
'
./src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.iframe-transport.js
'
,
'
./src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.fileupload.js
'
,
'
./src/main/webapp/js/lib/jquery/jquery.bowknot.min.js
'
,
'
./src/main/webapp/js/lib/highlight-9.13.1/highlight.pack.js
'
]
return
gulp
.
src
(
jsJqueryUpload
).
...
...
src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.fileupload-process.js
deleted
100644 → 0
View file @
801ace15
/*
* jQuery File Upload Processing Plugin 1.3.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2012, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* jshint nomen:false */
/* global define, require, window */
(
function
(
factory
)
{
'
use strict
'
;
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
// Register as an anonymous AMD module:
define
([
'
jquery
'
,
'
./jquery.fileupload
'
],
factory
);
}
else
if
(
typeof
exports
===
'
object
'
)
{
// Node/CommonJS:
factory
(
require
(
'
jquery
'
));
}
else
{
// Browser globals:
factory
(
window
.
jQuery
);
}
}(
function
(
$
)
{
'
use strict
'
;
var
originalAdd
=
$
.
blueimp
.
fileupload
.
prototype
.
options
.
add
;
// The File Upload Processing plugin extends the fileupload widget
// with file processing functionality:
$
.
widget
(
'
blueimp.fileupload
'
,
$
.
blueimp
.
fileupload
,
{
options
:
{
// The list of processing actions:
processQueue
:
[
/*
{
action: 'log',
type: 'debug'
}
*/
],
add
:
function
(
e
,
data
)
{
var
$this
=
$
(
this
);
data
.
process
(
function
()
{
return
$this
.
fileupload
(
'
process
'
,
data
);
});
originalAdd
.
call
(
this
,
e
,
data
);
}
},
processActions
:
{
/*
log: function (data, options) {
console[options.type](
'Processing "' + data.files[data.index].name + '"'
);
}
*/
},
_processFile
:
function
(
data
,
originalData
)
{
var
that
=
this
,
dfd
=
$
.
Deferred
().
resolveWith
(
that
,
[
data
]),
chain
=
dfd
.
promise
();
this
.
_trigger
(
'
process
'
,
null
,
data
);
$
.
each
(
data
.
processQueue
,
function
(
i
,
settings
)
{
var
func
=
function
(
data
)
{
if
(
originalData
.
errorThrown
)
{
return
$
.
Deferred
()
.
rejectWith
(
that
,
[
originalData
]).
promise
();
}
return
that
.
processActions
[
settings
.
action
].
call
(
that
,
data
,
settings
);
};
chain
=
chain
.
pipe
(
func
,
settings
.
always
&&
func
);
});
chain
.
done
(
function
()
{
that
.
_trigger
(
'
processdone
'
,
null
,
data
);
that
.
_trigger
(
'
processalways
'
,
null
,
data
);
})
.
fail
(
function
()
{
that
.
_trigger
(
'
processfail
'
,
null
,
data
);
that
.
_trigger
(
'
processalways
'
,
null
,
data
);
});
return
chain
;
},
// Replaces the settings of each processQueue item that
// are strings starting with an "@", using the remaining
// substring as key for the option map,
// e.g. "@autoUpload" is replaced with options.autoUpload:
_transformProcessQueue
:
function
(
options
)
{
var
processQueue
=
[];
$
.
each
(
options
.
processQueue
,
function
()
{
var
settings
=
{},
action
=
this
.
action
,
prefix
=
this
.
prefix
===
true
?
action
:
this
.
prefix
;
$
.
each
(
this
,
function
(
key
,
value
)
{
if
(
$
.
type
(
value
)
===
'
string
'
&&
value
.
charAt
(
0
)
===
'
@
'
)
{
settings
[
key
]
=
options
[
value
.
slice
(
1
)
||
(
prefix
?
prefix
+
key
.
charAt
(
0
).
toUpperCase
()
+
key
.
slice
(
1
)
:
key
)
];
}
else
{
settings
[
key
]
=
value
;
}
});
processQueue
.
push
(
settings
);
});
options
.
processQueue
=
processQueue
;
},
// Returns the number of files currently in the processsing queue:
processing
:
function
()
{
return
this
.
_processing
;
},
// Processes the files given as files property of the data parameter,
// returns a Promise object that allows to bind callbacks:
process
:
function
(
data
)
{
var
that
=
this
,
options
=
$
.
extend
({},
this
.
options
,
data
);
if
(
options
.
processQueue
&&
options
.
processQueue
.
length
)
{
this
.
_transformProcessQueue
(
options
);
if
(
this
.
_processing
===
0
)
{
this
.
_trigger
(
'
processstart
'
);
}
$
.
each
(
data
.
files
,
function
(
index
)
{
var
opts
=
index
?
$
.
extend
({},
options
)
:
options
,
func
=
function
()
{
if
(
data
.
errorThrown
)
{
return
$
.
Deferred
()
.
rejectWith
(
that
,
[
data
]).
promise
();
}
return
that
.
_processFile
(
opts
,
data
);
};
opts
.
index
=
index
;
that
.
_processing
+=
1
;
that
.
_processingQueue
=
that
.
_processingQueue
.
pipe
(
func
,
func
)
.
always
(
function
()
{
that
.
_processing
-=
1
;
if
(
that
.
_processing
===
0
)
{
that
.
_trigger
(
'
processstop
'
);
}
});
});
}
return
this
.
_processingQueue
;
},
_create
:
function
()
{
this
.
_super
();
this
.
_processing
=
0
;
this
.
_processingQueue
=
$
.
Deferred
().
resolveWith
(
this
)
.
promise
();
}
});
}));
src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.fileupload-validate.js
deleted
100644 → 0
View file @
801ace15
/*
* jQuery File Upload Validation Plugin 1.1.3
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* global define, require, window */
(
function
(
factory
)
{
'
use strict
'
;
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
// Register as an anonymous AMD module:
define
([
'
jquery
'
,
'
./jquery.fileupload-process
'
],
factory
);
}
else
if
(
typeof
exports
===
'
object
'
)
{
// Node/CommonJS:
factory
(
require
(
'
jquery
'
));
}
else
{
// Browser globals:
factory
(
window
.
jQuery
);
}
}(
function
(
$
)
{
'
use strict
'
;
// Append to the default processQueue:
$
.
blueimp
.
fileupload
.
prototype
.
options
.
processQueue
.
push
(
{
action
:
'
validate
'
,
// Always trigger this action,
// even if the previous action was rejected:
always
:
true
,
// Options taken from the global options map:
acceptFileTypes
:
'
@
'
,
maxFileSize
:
'
@
'
,
minFileSize
:
'
@
'
,
maxNumberOfFiles
:
'
@
'
,
disabled
:
'
@disableValidation
'
}
);
// The File Upload Validation plugin extends the fileupload widget
// with file validation functionality:
$
.
widget
(
'
blueimp.fileupload
'
,
$
.
blueimp
.
fileupload
,
{
options
:
{
/*
// The regular expression for allowed file types, matches
// against either file type or file name:
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
// The maximum allowed file size in bytes:
maxFileSize: 10000000, // 10 MB
// The minimum allowed file size in bytes:
minFileSize: undefined, // No minimal file size
// The limit of files to be uploaded:
maxNumberOfFiles: 10,
*/
// Function returning the current number of files,
// has to be overriden for maxNumberOfFiles validation:
getNumberOfFiles
:
$
.
noop
,
// Error and info messages:
messages
:
{
maxNumberOfFiles
:
'
Maximum number of files exceeded
'
,
acceptFileTypes
:
'
File type not allowed
'
,
maxFileSize
:
'
File is too large
'
,
minFileSize
:
'
File is too small
'
}
},
processActions
:
{
validate
:
function
(
data
,
options
)
{
if
(
options
.
disabled
)
{
return
data
;
}
var
dfd
=
$
.
Deferred
(),
settings
=
this
.
options
,
file
=
data
.
files
[
data
.
index
],
fileSize
;
if
(
options
.
minFileSize
||
options
.
maxFileSize
)
{
fileSize
=
file
.
size
;
}
if
(
$
.
type
(
options
.
maxNumberOfFiles
)
===
'
number
'
&&
(
settings
.
getNumberOfFiles
()
||
0
)
+
data
.
files
.
length
>
options
.
maxNumberOfFiles
)
{
file
.
error
=
settings
.
i18n
(
'
maxNumberOfFiles
'
);
}
else
if
(
options
.
acceptFileTypes
&&
!
(
options
.
acceptFileTypes
.
test
(
file
.
type
)
||
options
.
acceptFileTypes
.
test
(
file
.
name
)))
{
file
.
error
=
settings
.
i18n
(
'
acceptFileTypes
'
);
}
else
if
(
fileSize
>
options
.
maxFileSize
)
{
file
.
error
=
settings
.
i18n
(
'
maxFileSize
'
);
}
else
if
(
$
.
type
(
fileSize
)
===
'
number
'
&&
fileSize
<
options
.
minFileSize
)
{
file
.
error
=
settings
.
i18n
(
'
minFileSize
'
);
}
else
{
delete
file
.
error
;
}
if
(
file
.
error
||
data
.
files
.
error
)
{
data
.
files
.
error
=
true
;
dfd
.
rejectWith
(
this
,
[
data
]);
}
else
{
dfd
.
resolveWith
(
this
,
[
data
]);
}
return
dfd
.
promise
();
}
}
});
}));
src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.fileupload.js
deleted
100644 → 0
View file @
801ace15
This diff is collapsed.
Click to expand it.
src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.iframe-transport.js
deleted
100644 → 0
View file @
801ace15
This diff is collapsed.
Click to expand it.
src/main/webapp/js/lib/jquery/file-upload-9.10.1/vendor/jquery.ui.widget.js
deleted
100644 → 0
View file @
801ace15
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment