This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +33
-5
lines changed Expand file tree Collapse file tree 6 files changed +33
-5
lines changed Original file line number Diff line number Diff line change 13
13
vm . domain = CONSTANTS . domain ;
14
14
vm . challenges = [ ] ;
15
15
vm . profile = { } ;
16
+ vm . loading = true ;
16
17
17
18
activate ( ) ;
18
19
28
29
vm . challenges = data ;
29
30
} ) ;
30
31
} ) ;
32
+ if ( vm . altResolve ) {
33
+ vm . deferred . resolve ( vm ) ;
34
+ }
31
35
}
32
36
33
37
}
Original file line number Diff line number Diff line change 1
- .profile-develop-container
1
+ .profile-develop-container ( ng-hide = 'vm.loading' , ng-cloak )
2
2
hr
3
3
h1.type Develop: {{vm.subTrack}}
4
4
hr
33
33
challenge-tile( challenge ="challenge" , domain ="vm.domain" )
34
34
35
35
.stats ( ng-show ="vm.viewing == 'stats'" )
36
+ .graphs
37
+ img( src ="images/rating-graphs.png" )
38
+
36
39
h2.detailed Detailed Stats
37
40
38
41
ul.vertical-stats
Original file line number Diff line number Diff line change 12
12
vm . title = "Profile" ;
13
13
vm . message = "Message"
14
14
vm . profile = { } ;
15
+ vm . loading = true ;
15
16
vm . userHandle = userHandle ;
16
17
17
18
activate ( vms ) ;
42
43
// until horizontal scroll is implemented
43
44
vm . skills = skills . skills ;
44
45
vm . categories = ProfileService . getRanks ( vm . stats ) ;
46
+ vm . loading = false ;
45
47
} ) ;
46
48
} ) ;
47
49
}
48
50
49
- $scope . initProfile = function ( vm ) {
50
- vms . push ( vm ) ;
51
+ $scope . initProfile = function ( newVm ) {
52
+ if ( ! vm . stats ) {
53
+ vms . push ( newVm ) ;
54
+ } else {
55
+ newVm . profile = vm . profile ;
56
+ newVm . stats = vm . stats ;
57
+ newVm . numProjects = vm . numProjects ;
58
+ newVm . numWins = vm . numWins ;
59
+ newVm . skills = vm . skills ;
60
+ newVm . categories = vm . categories ;
61
+ newVm . altResolve = true ;
62
+ newVm . loading = false ;
63
+ }
51
64
}
52
65
53
66
}
Original file line number Diff line number Diff line change 1
- .profile-header-container
1
+ .profile-header-container ( ng-hide = "vm.loading" , ng-cloak )
2
2
.left
3
3
profile-widget( profile ="vm.profile" , edit-profile-link ="vm.showEditProfileLink" )
4
4
.right
5
5
h4 member for {{vm.tenure}} years
6
6
7
- ui-view
7
+ ui-view( ng-hide = "vm.loading" , ng-cloak )
Original file line number Diff line number Diff line change 6
6
font-size : 18px ;
7
7
}
8
8
.stats {
9
+ .graphs {
10
+ display : flex ;
11
+ flex-direction : row ;
12
+ justify-content : center ;
13
+ img {
14
+ width : 700px ;
15
+ }
16
+ }
9
17
h2 .detailed {
10
18
margin : 50px auto 25px auto ;
11
19
text-align : center ;
You can’t perform that action at this time.
0 commit comments