Skip to content

Commit 76999a7

Browse files
committed
Basic Plus UI updated to 8.8.2
1 parent 6fbe89a commit 76999a7

21 files changed

+502
-139
lines changed

fileupload/static/css/bootstrap-ie6.min.css

-1
This file was deleted.

fileupload/static/css/bootstrap-responsive.min.css

-9
This file was deleted.

fileupload/static/css/bootstrap.min.css

-9
This file was deleted.

fileupload/static/css/demo-ie8.css

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@charset "UTF-8";
2+
/*
3+
* jQuery File Upload Demo CSS Fixes for IE<9 1.0.0
4+
* https://github.com/blueimp/jQuery-File-Upload
5+
*
6+
* Copyright 2013, Sebastian Tschan
7+
* https://blueimp.net
8+
*
9+
* Licensed under the MIT license:
10+
* http://www.opensource.org/licenses/MIT
11+
*/
12+
13+
.navigation {
14+
list-style: none;
15+
padding: 0;
16+
margin: 1em 0;
17+
}
18+
.navigation li {
19+
display: inline;
20+
margin-right: 10px;
21+
}

fileupload/static/css/demo.css

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
@charset "UTF-8";
2+
/*
3+
* jQuery File Upload Demo CSS 1.0.2
4+
* https://github.com/blueimp/jQuery-File-Upload
5+
*
6+
* Copyright 2013, Sebastian Tschan
7+
* https://blueimp.net
8+
*
9+
* Licensed under the MIT license:
10+
* http://www.opensource.org/licenses/MIT
11+
*/
12+
13+
body {
14+
max-width: 750px;
15+
margin: 0 auto;
16+
padding: 1em;
17+
font-family: 'Lucida Grande', 'Lucida Sans Unicode', Arial, sans-serif;
18+
font-size: 1em;
19+
line-height: 1.4em;
20+
background: #222;
21+
color: #fff;
22+
-webkit-text-size-adjust: 100%;
23+
-ms-text-size-adjust: 100%;
24+
}
25+
a {
26+
color: orange;
27+
text-decoration: none;
28+
}
29+
img {
30+
border: 0;
31+
vertical-align: middle;
32+
}
33+
h1 {
34+
line-height: 1em;
35+
}
36+
blockquote {
37+
padding: 0 0 0 15px;
38+
margin: 0 0 20px;
39+
border-left: 5px solid #eee;
40+
}
41+
table {
42+
width: 100%;
43+
margin: 10px 0;
44+
}
45+
46+
.fileupload-progress {
47+
margin: 10px 0;
48+
}
49+
.fileupload-progress .progress-extended {
50+
margin-top: 5px;
51+
}
52+
.error {
53+
color: red;
54+
}
55+
56+
@media (min-width: 481px) {
57+
.navigation {
58+
list-style: none;
59+
padding: 0;
60+
}
61+
.navigation li {
62+
display: inline-block;
63+
}
64+
.navigation li:not(:first-child):before {
65+
content: '| ';
66+
}
67+
}
+19-35
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@charset 'UTF-8';
1+
@charset "UTF-8";
22
/*
3-
* jQuery File Upload UI Plugin CSS 6.3
3+
* jQuery File Upload UI Plugin CSS 8.8.1
44
* https://github.com/blueimp/jQuery-File-Upload
55
*
66
* Copyright 2010, Sebastian Tschan
@@ -13,72 +13,56 @@
1313
.fileinput-button {
1414
position: relative;
1515
overflow: hidden;
16-
float: left;
17-
margin-right: 4px;
1816
}
1917
.fileinput-button input {
2018
position: absolute;
2119
top: 0;
2220
right: 0;
2321
margin: 0;
24-
border: solid transparent;
25-
border-width: 0 0 100px 200px;
2622
opacity: 0;
2723
filter: alpha(opacity=0);
28-
-moz-transform: translate(-300px, 0) scale(4);
24+
transform: translate(-300px, 0) scale(4);
25+
font-size: 23px;
2926
direction: ltr;
3027
cursor: pointer;
3128
}
3229
.fileupload-buttonbar .btn,
3330
.fileupload-buttonbar .toggle {
3431
margin-bottom: 5px;
3532
}
36-
.files .progress {
37-
width: 200px;
38-
}
33+
.progress-animated .progress-bar,
3934
.progress-animated .bar {
4035
background: url(../img/progressbar.gif) !important;
4136
filter: none;
4237
}
4338
.fileupload-loading {
44-
position: absolute;
45-
left: 50%;
46-
width: 128px;
47-
height: 128px;
39+
float: right;
40+
width: 32px;
41+
height: 32px;
4842
background: url(../img/loading.gif) center no-repeat;
43+
background-size: contain;
4944
display: none;
5045
}
5146
.fileupload-processing .fileupload-loading {
5247
display: block;
5348
}
54-
55-
/* Fix for IE 6: */
56-
*html .fileinput-button {
57-
line-height: 22px;
58-
margin: 1px -3px 0 0;
49+
.files audio,
50+
.files video {
51+
max-width: 300px;
5952
}
6053

61-
/* Fix for IE 7: */
62-
*+html .fileinput-button {
63-
margin: 1px 0 0 0;
64-
}
65-
66-
@media (max-width: 480px) {
54+
@media (max-width: 767px) {
55+
.fileupload-buttonbar .toggle,
56+
.files .toggle,
6757
.files .btn span {
6858
display: none;
6959
}
70-
.files .preview * {
71-
width: 40px;
72-
}
73-
.files .name * {
60+
.files .name {
7461
width: 80px;
75-
display: inline-block;
7662
word-wrap: break-word;
7763
}
78-
.files .progress {
79-
width: 20px;
80-
}
81-
.files .delete {
82-
width: 60px;
64+
.files audio,
65+
.files video {
66+
max-width: 80px;
8367
}
8468
}

fileupload/static/css/style.css

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1-
body{
2-
padding-top: 60px;
1+
@charset "UTF-8";
2+
/*
3+
* jQuery File Upload Plugin CSS Example 8.8.2
4+
* https://github.com/blueimp/jQuery-File-Upload
5+
*
6+
* Copyright 2013, Sebastian Tschan
7+
* https://blueimp.net
8+
*
9+
* Licensed under the MIT license:
10+
* http://www.opensource.org/licenses/MIT
11+
*/
12+
13+
body {
14+
padding-top: 60px;
315
}
416

517
.preview img {
6-
max-height: 50px;
7-
}
18+
max-height:50px;
19+
}
Binary file not shown.
-13.5 KB
Binary file not shown.

fileupload/static/img/progressbar.gif

3.25 KB
Loading

fileupload/static/js/app.js

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
/*
2+
* jQuery File Upload Plugin Angular JS Example 1.2.1
3+
* https://github.com/blueimp/jQuery-File-Upload
4+
*
5+
* Copyright 2013, Sebastian Tschan
6+
* https://blueimp.net
7+
*
8+
* Licensed under the MIT license:
9+
* http://www.opensource.org/licenses/MIT
10+
*/
11+
12+
/*jslint nomen: true, regexp: true */
13+
/*global window, angular */
14+
15+
(function () {
16+
'use strict';
17+
18+
var isOnGitHub = window.location.hostname === 'blueimp.github.io',
19+
url = isOnGitHub ? '//jquery-file-upload.appspot.com/' : 'server/php/';
20+
21+
angular.module('demo', [
22+
'blueimp.fileupload'
23+
])
24+
.config([
25+
'$httpProvider', 'fileUploadProvider',
26+
function ($httpProvider, fileUploadProvider) {
27+
delete $httpProvider.defaults.headers.common['X-Requested-With'];
28+
fileUploadProvider.defaults.redirect = window.location.href.replace(
29+
/\/[^\/]*$/,
30+
'/cors/result.html?%s'
31+
);
32+
if (isOnGitHub) {
33+
// Demo settings:
34+
angular.extend(fileUploadProvider.defaults, {
35+
// Enable image resizing, except for Android and Opera,
36+
// which actually support image resizing, but fail to
37+
// send Blob objects via XHR requests:
38+
disableImageResize: /Android(?!.*Chrome)|Opera/
39+
.test(window.navigator.userAgent),
40+
maxFileSize: 5000000,
41+
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i
42+
});
43+
}
44+
}
45+
])
46+
47+
.controller('DemoFileUploadController', [
48+
'$scope', '$http', '$filter', '$window',
49+
function ($scope, $http) {
50+
$scope.options = {
51+
url: url
52+
};
53+
if (!isOnGitHub) {
54+
$scope.loadingFiles = true;
55+
$http.get(url)
56+
.then(
57+
function (response) {
58+
$scope.loadingFiles = false;
59+
$scope.queue = response.data.files || [];
60+
},
61+
function () {
62+
$scope.loadingFiles = false;
63+
}
64+
);
65+
}
66+
}
67+
])
68+
69+
.controller('FileDestroyController', [
70+
'$scope', '$http',
71+
function ($scope, $http) {
72+
var file = $scope.file,
73+
state;
74+
if (file.url) {
75+
file.$state = function () {
76+
return state;
77+
};
78+
file.$destroy = function () {
79+
state = 'pending';
80+
return $http({
81+
url: file.deleteUrl,
82+
method: file.deleteType
83+
}).then(
84+
function () {
85+
state = 'resolved';
86+
$scope.clear(file);
87+
},
88+
function () {
89+
state = 'rejected';
90+
}
91+
);
92+
};
93+
} else if (!file.$cancel && !file._index) {
94+
file.$cancel = function () {
95+
$scope.clear(file);
96+
};
97+
}
98+
}
99+
]);
100+
101+
}());

fileupload/static/js/bootstrap.min.js

+6-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fileupload/static/js/jquery.fileupload-angular.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload AngularJS Plugin 1.4.1
2+
* jQuery File Upload AngularJS Plugin 1.4.3
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2013, Sebastian Tschan
@@ -38,10 +38,14 @@
3838
.provider('fileUpload', function () {
3939
var scopeApply = function () {
4040
var scope = angular.element(this)
41-
.fileupload('option', 'scope')();
42-
if (!scope.$$phase) {
41+
.fileupload('option', 'scope')(),
42+
$timeout = angular.injector(['ng'])
43+
.get('$timeout');
44+
// Safe apply, makes sure $apply is called
45+
// asynchronously outside of the $digest cycle:
46+
$timeout(function () {
4347
scope.$apply();
44-
}
48+
});
4549
},
4650
$config;
4751
$config = this.defaults = {
@@ -135,7 +139,6 @@
135139
return this.scope().queue.length;
136140
},
137141
dataType: 'json',
138-
prependFiles: true,
139142
autoUpload: false
140143
};
141144
this.$get = [

0 commit comments

Comments
 (0)