Add seed code for sdnr app based on ONF Centennial
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / dlux / dlux-web / src / common / topbar / topbar.services.js
diff --git a/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/topbar/topbar.services.js b/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/topbar/topbar.services.js
new file mode 100644 (file)
index 0000000..6a6ba88
--- /dev/null
@@ -0,0 +1,103 @@
+define(['common/topbar/topbar.module'], function(topbar) {
+    topbar.factory('taskFactory',function () {
+        var factory = {};
+        factory.getTaskData = function () {
+            return {
+                count: 4,
+                latest: [
+                    {
+                        title: "Software Update",
+                        percentage: 65
+                    },
+                    {
+                        title: "Hardware Upgrade" ,
+                        percentage: 35 ,
+                        progressBarClass: "progress-bar-danger"
+                    },
+                    {
+                        title: "Unit Testing" ,
+                        percentage: 15  ,
+                        progressBarClass: "progress-bar-warning"
+                    },
+                    {
+                        title: "Bug Fixes" ,
+                        percentage: 90 ,
+                        progressClass: "progress-striped active",
+                        progressBarClass: "progress-bar-success"
+                    }
+                ]
+            };
+
+        };
+        return factory;
+    });
+
+    topbar.factory('messageFactory', function () {
+        var factory = {};
+        factory.getMessageData = function () {
+            return {
+                count: 5,
+                latest: [
+                    {
+                        name: "Alex",
+                        img: "avatar.png",
+                        time: "a moment ago",
+                        summary: "Ciao sociis natoque penatibus et auctor ..."
+                    },
+                    {
+                        name: "Susan",
+                        img: "avatar3.png",
+                        time: "20 minutes ago",
+                        summary: "Vestibulum id ligula porta felis euismod ..."
+                    },
+                    {
+                        name: "Bob",
+                        img: "avatar4.png",
+                        time: "3:15 pm",
+                        summary: "Nullam quis risus eget urna mollis ornare ..."
+                    }
+                ]
+            };
+        };
+        return factory;
+    });
+
+    topbar.factory('notifsFactory', function () {
+        var factory = {};
+        factory.getNotifsData = function () {
+            return {
+                "count": 8,
+                "latest": [
+                    {
+                        title: "New Comments",
+                        icon: "icon-comment",
+                        iconClass: "btn-pink",
+                        badge: "+12",
+                        badgeClass: "badge-info"
+                    },
+                    {
+                        title: "Bob just signed up as an editor ...",
+                        icon: "icon-user",
+                        iconClass: "btn-primary"
+                    },
+                    {
+                        title: "New Orders",
+                        icon: "icon-shopping-cart",
+                        iconClass: "btn-success",
+                        badge: "+8",
+                        badgeClass: "badge-success"
+                    },
+                    {
+                        title: "Followers",
+                        icon: "icon-twitter",
+                        iconClass: "btn-info",
+                        badge: "+11",
+                        badgeClass: "badge-info"
+                    }
+                ]
+            };
+
+        };
+        return factory;
+    });
+});