6a6ba8854ca4f2ac16d9e27165404f3b82dea5f4
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / dlux / dlux-web / src / common / topbar / topbar.services.js
1 define(['common/topbar/topbar.module'], function(topbar) {
2     topbar.factory('taskFactory',function () {
3         var factory = {};
4         factory.getTaskData = function () {
5             return {
6                 count: 4,
7                 latest: [
8                     {
9                         title: "Software Update",
10                         percentage: 65
11                     },
12                     {
13                         title: "Hardware Upgrade" ,
14                         percentage: 35 ,
15                         progressBarClass: "progress-bar-danger"
16                     },
17                     {
18                         title: "Unit Testing" ,
19                         percentage: 15  ,
20                         progressBarClass: "progress-bar-warning"
21                     },
22                     {
23                         title: "Bug Fixes" ,
24                         percentage: 90 ,
25                         progressClass: "progress-striped active",
26                         progressBarClass: "progress-bar-success"
27                     }
28                 ]
29             };
30
31         };
32         return factory;
33     });
34
35     topbar.factory('messageFactory', function () {
36         var factory = {};
37         factory.getMessageData = function () {
38             return {
39                 count: 5,
40                 latest: [
41                     {
42                         name: "Alex",
43                         img: "avatar.png",
44                         time: "a moment ago",
45                         summary: "Ciao sociis natoque penatibus et auctor ..."
46                     },
47                     {
48                         name: "Susan",
49                         img: "avatar3.png",
50                         time: "20 minutes ago",
51                         summary: "Vestibulum id ligula porta felis euismod ..."
52                     },
53                     {
54                         name: "Bob",
55                         img: "avatar4.png",
56                         time: "3:15 pm",
57                         summary: "Nullam quis risus eget urna mollis ornare ..."
58                     }
59                 ]
60             };
61         };
62         return factory;
63     });
64
65     topbar.factory('notifsFactory', function () {
66         var factory = {};
67         factory.getNotifsData = function () {
68             return {
69                 "count": 8,
70                 "latest": [
71                     {
72                         title: "New Comments",
73                         icon: "icon-comment",
74                         iconClass: "btn-pink",
75                         badge: "+12",
76                         badgeClass: "badge-info"
77                     },
78                     {
79                         title: "Bob just signed up as an editor ...",
80                         icon: "icon-user",
81                         iconClass: "btn-primary"
82                     },
83                     {
84                         title: "New Orders",
85                         icon: "icon-shopping-cart",
86                         iconClass: "btn-success",
87                         badge: "+8",
88                         badgeClass: "badge-success"
89                     },
90                     {
91                         title: "Followers",
92                         icon: "icon-twitter",
93                         iconClass: "btn-info",
94                         badge: "+11",
95                         badgeClass: "badge-info"
96                     }
97                 ]
98             };
99
100         };
101         return factory;
102     });
103 });