File tree Expand file tree Collapse file tree 4 files changed +25
-6
lines changed Expand file tree Collapse file tree 4 files changed +25
-6
lines changed Original file line number Diff line number Diff line change
1
+ export default Ember . Component . extend ( {
2
+ classNames : [ 'progress-bar' ] ,
3
+ attributeBindings : [ 'style' ] ,
4
+ style : function ( ) {
5
+ return 'width: ' + this . get ( 'progress' ) + '%;' ;
6
+ } . property ( 'progress' )
7
+ } ) ;
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ var SPINNER_PROPS = [
19
19
20
20
export default Ember . Component . extend ( {
21
21
lines : 13 , // The number of lines to draw
22
- length : 20 , // The length of each line
23
- width : 10 , // The line thickness
24
- radius : 30 , // The radius of the inner circle
22
+ length : 5 , // The length of each line
23
+ width : 5 , // The line thickness
24
+ radius : 10 , // The radius of the inner circle
25
25
corners : 1 , // Corner roundness (0..1)
26
26
rotate : 0 , // The rotation offset
27
27
direction : 1 , // 1: clockwise, -1: counterclockwise
28
- color : '#000 ' , // #rgb or #rrggbb or array of colors
28
+ color : '#999 ' , // #rgb or #rrggbb or array of colors
29
29
speed : 1 , // Rounds per second
30
30
trail : 60 , // Afterglow percentage
31
31
shadow : false , // Whether to render a shadow
Original file line number Diff line number Diff line change @@ -32,11 +32,23 @@ section.images {
32
32
left : 0 ;
33
33
right : 0 ;
34
34
bottom : 0 ;
35
- background : #ddd ;
35
+ background : #eee ;
36
36
color : #666 ;
37
37
font-size : 1em ;
38
38
font-weight : 400 ;
39
39
margin : 0 ;
40
+ white-space : nowrap ;
41
+ overflow : hidden ;
42
+ text-overflow : ellipsis ;
43
+ padding : 5px ;
44
+ }
45
+
46
+ .progress-bar {
47
+ position : absolute ;
48
+ left : 0 ;
49
+ bottom : 0 ;
50
+ height : 2px ;
51
+ background : $green ;
40
52
}
41
53
}
42
54
}
Original file line number Diff line number Diff line change 8
8
{{ error }}
9
9
{{ else }}
10
10
{{ ui-spinner }}
11
- [{{ image.wholeProgress }} %]
12
11
<h2 >{{ image.file.name }} </h2 >
12
+ {{ progress-bar progress =image.wholeProgress }}
13
13
{{ /if }}
14
14
{{ /if }}
You can’t perform that action at this time.
0 commit comments