Skip to content

Commit 537ff7d

Browse files
committed
all components made into directives
1 parent fb5526b commit 537ff7d

37 files changed

+3569
-910
lines changed

app/index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,16 @@
6666
<!-- build:js({.tmp,app}) scripts/scripts.js -->
6767
<script src="scripts/app.js"></script>
6868
<script src="scripts/controllers/main.js"></script>
69+
<script src="scripts/controllers/form.js"></script>
6970
<script src="scripts/controllers/about.js"></script>
7071
<script src="scripts/directives/header/header.js"></script>
7172
<script src="scripts/directives/sidebar/sidebar.js"></script>
73+
<script src="scripts/directives/chat/chat.js"></script>
74+
<script src="scripts/directives/dashboard/stats/stats.js"></script>
75+
<script src="scripts/directives/header-notification/header-notification.js"></script>
76+
<script src="scripts/directives/notifications/notifications.js"></script>
77+
<script src="scripts/directives/sidebar/sidebar-search/sidebar-search.js"></script>
78+
<script src="scripts/directives/timeline/timeline.js"></script>
7279
<!-- endbuild -->
7380

7481

@@ -95,7 +102,6 @@
95102
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
96103
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
97104
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
98-
99105
ga('create', 'UA-XXXXX-X');
100106
ga('send', 'pageview');
101107
</script>
@@ -127,4 +133,4 @@
127133

128134

129135
</body>
130-
</html>
136+
</html>

app/scripts/app.js

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,52 @@ angular
3030
})
3131
.when('/chart',{
3232
templateUrl:'/views/chart.html',
33-
// controller: 'FlotCtrl'
33+
controller: 'FlotCtrl'
3434
})
35-
.otherwise({
36-
redirectTo: '/'
35+
.when("/form",{
36+
templateUrl:'/views/form.html',
37+
controller:'FormCtrl',
38+
})
39+
.when("/blank",{
40+
templateUrl:'/views/pages/blank.html',
41+
})
42+
.when("/login",{
43+
templateUrl:'/views/pages/login.html',
44+
45+
})
46+
.when('/flot',{
47+
templateUrl:'views/charts/flot.html'
48+
})
49+
.when('/morris',{
50+
templateUrl:'views/charts/morris.html'
51+
})
52+
.when('/table',{
53+
templateUrl:'views/table.html',
54+
55+
})
56+
.when('/panels-wells',{
57+
templateUrl:'views/ui-elements/panels-wells.html'
58+
})
59+
.when('/buttons',{
60+
templateUrl:'views/ui-elements/buttons.html',
61+
62+
})
63+
.when('/notifications',{
64+
templateUrl:'views/ui-elements/notifications.html',
65+
66+
})
67+
.when('/typography',{
68+
templateUrl:'views/ui-elements/typography.html'
69+
})
70+
.when('/icons',{
71+
templateUrl:'views/ui-elements/icons.html'
72+
})
73+
.when('/grid',{
74+
templateUrl:'views/ui-elements/grid.html'
75+
})
76+
.otherwise({
77+
redirectTo: '/'
78+
});
3779
});
38-
});
80+
81+
File renamed without changes.

app/scripts/controllers/form.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'use strict';
2+
/**
3+
* @ngdoc function
4+
* @name sbAdminApp.controller:MainCtrl
5+
* @description
6+
* # MainCtrl
7+
* Controller of the sbAdminApp
8+
*/
9+
angular.module('sbAdminApp')
10+
.controller('FormCtrl', function($scope) {
11+
12+
});

app/scripts/controllers/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
* Controller of the sbAdminApp
99
*/
1010
angular.module('sbAdminApp')
11-
.controller('MainCtrl', function ($scope) {
11+
.controller('MainCtrl', function($scope) {
1212

1313
});
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<div class="chat-panel panel panel-default">
2+
<div class="panel-heading">
3+
<i class="fa fa-comments fa-fw"></i>
4+
Chat
5+
<div class="btn-group pull-right">
6+
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
7+
<i class="fa fa-chevron-down"></i>
8+
</button>
9+
<ul class="dropdown-menu slidedown">
10+
<li>
11+
<a href="#">
12+
<i class="fa fa-refresh fa-fw"></i> Refresh
13+
</a>
14+
</li>
15+
<li>
16+
<a href="#">
17+
<i class="fa fa-check-circle fa-fw"></i> Available
18+
</a>
19+
</li>
20+
<li>
21+
<a href="#">
22+
<i class="fa fa-times fa-fw"></i> Busy
23+
</a>
24+
</li>
25+
<li>
26+
<a href="#">
27+
<i class="fa fa-clock-o fa-fw"></i> Away
28+
</a>
29+
</li>
30+
<li class="divider"></li>
31+
<li>
32+
<a href="#">
33+
<i class="fa fa-sign-out fa-fw"></i> Sign Out
34+
</a>
35+
</li>
36+
</ul>
37+
</div>
38+
</div>
39+
<!-- /.panel-heading -->
40+
<div class="panel-body">
41+
<ul class="chat">
42+
<li class="left clearfix">
43+
<span class="chat-img pull-left">
44+
<img src="http://placehold.it/50/55C1E7/fff" alt="User Avatar" class="img-circle">
45+
</span>
46+
<div class="chat-body clearfix">
47+
<div class="header">
48+
<strong class="primary-font">Jack Sparrow</strong>
49+
<small class="pull-right text-muted">
50+
<i class="fa fa-clock-o fa-fw"></i> 12 mins ago
51+
</small>
52+
</div>
53+
<p>
54+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales.
55+
</p>
56+
</div>
57+
</li>
58+
<li class="right clearfix">
59+
<span class="chat-img pull-right">
60+
<img src="http://placehold.it/50/FA6F57/fff" alt="User Avatar" class="img-circle">
61+
</span>
62+
<div class="chat-body clearfix">
63+
<div class="header">
64+
<small class=" text-muted">
65+
<i class="fa fa-clock-o fa-fw"></i> 13 mins ago</small>
66+
<strong class="pull-right primary-font">Bhaumik Patel</strong>
67+
</div>
68+
<p>
69+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales.
70+
</p>
71+
</div>
72+
</li>
73+
<li class="left clearfix">
74+
<span class="chat-img pull-left">
75+
<img src="http://placehold.it/50/55C1E7/fff" alt="User Avatar" class="img-circle">
76+
</span>
77+
<div class="chat-body clearfix">
78+
<div class="header">
79+
<strong class="primary-font">Jack Sparrow</strong>
80+
<small class="pull-right text-muted">
81+
<i class="fa fa-clock-o fa-fw"></i> 14 mins ago</small>
82+
</div>
83+
<p>
84+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales.
85+
</p>
86+
</div>
87+
</li>
88+
<li class="right clearfix">
89+
<span class="chat-img pull-right">
90+
<img src="http://placehold.it/50/FA6F57/fff" alt="User Avatar" class="img-circle">
91+
</span>
92+
<div class="chat-body clearfix">
93+
<div class="header">
94+
<small class=" text-muted">
95+
<i class="fa fa-clock-o fa-fw"></i> 15 mins ago</small>
96+
<strong class="pull-right primary-font">Bhaumik Patel</strong>
97+
</div>
98+
<p>
99+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales.
100+
</p>
101+
</div>
102+
</li>
103+
</ul>
104+
</div>
105+
<!-- /.panel-body -->
106+
<div class="panel-footer">
107+
<div class="input-group">
108+
<input id="btn-input" type="text" class="form-control input-sm" placeholder="Type your message here...">
109+
<span class="input-group-btn">
110+
<button class="btn btn-warning btn-sm" id="btn-chat">
111+
Send
112+
</button>
113+
</span>
114+
</div>
115+
</div>
116+
<!-- /.panel-footer -->
117+
</div>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict';
2+
3+
/**
4+
* @ngdoc directive
5+
* @name izzyposWebApp.directive:adminPosHeader
6+
* @description
7+
* # adminPosHeader
8+
*/
9+
angular.module('sbAdminApp')
10+
.directive('chat',function(){
11+
return {
12+
templateUrl:'scripts/directives/chat/chat.html',
13+
restrict: 'E',
14+
replace: true,
15+
}
16+
});
17+
18+

app/scripts/directives/dashboard/dashboard.js

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<div class="col-lg-3 col-md-6">
2+
<div class="panel panel-{{colour}}">
3+
<div class="panel-heading">
4+
<div class="row">
5+
<div class="col-xs-3">
6+
<i class="fa fa-{{type}} fa-5x"></i>
7+
</div>
8+
<div class="col-xs-9 text-right">
9+
<div class="huge">{{number}}</div>
10+
<div>{{comments}}</div>
11+
</div>
12+
</div>
13+
</div>
14+
<a href="#">
15+
<div class="panel-footer">
16+
<span class="pull-left">View Details</span>
17+
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
18+
<div class="clearfix"></div>
19+
</div>
20+
</a>
21+
</div>
22+
</div>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
'use strict';
2+
3+
/**
4+
* @ngdoc directive
5+
* @name izzyposWebApp.directive:adminPosHeader
6+
* @description
7+
* # adminPosHeader
8+
*/
9+
angular.module('sbAdminApp')
10+
.directive('stats',function() {
11+
return {
12+
templateUrl:'scripts/directives/dashboard/stats/stats.html',
13+
restrict:'E',
14+
replace:true,
15+
scope: {
16+
'model': '=',
17+
'comments': '@',
18+
'number': '@',
19+
'name': '@',
20+
'colour': '@',
21+
'details':'@',
22+
'type':'@'
23+
}
24+
25+
}
26+
});

0 commit comments

Comments
 (0)