Skip to content

Commit 3e2d4fb

Browse files
author
Shabir Ahmad
committed
Dashboard Page Changes, User Page added, Role page added! Device Detail page is not finished yet
1 parent ed89434 commit 3e2d4fb

12 files changed

+2116
-264
lines changed

device.html

+664
Large diffs are not rendered by default.

dist/css/custom-styles.css

+13-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,16 @@
3939
background-color:#222d32 !important;
4040
}
4141

42-
button.gm-ui
42+
#piChartWrapper .box {
43+
width: auto;
44+
position: relative;
45+
border-radius: 3px;
46+
background: #ffffff;
47+
border-top: 3px solid #d2d6de;
48+
border-top-color: rgb(210, 214, 222);
49+
margin-bottom: 20px;
50+
box-shadow: 0 1px 1px rgba(0,0,0,0.1);
51+
}
52+
#platforms div.inner {
53+
color: #FFF;}
54+
.disappeared {visibility: hidden;}

dist/js/functions.js

Whitespace-only changes.

dist/js/pages/dashboard.js

+2
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,6 @@ $(function () {
207207
}
208208
});
209209

210+
211+
210212
});

index.html

+395-112
Large diffs are not rendered by default.

markersdata.js

+49-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ marker_callback([{
44
"devices": [{
55
"id": "1",
66
"properties": {
7-
"title": 5.4,
7+
"title": "Dust Sensor",
88
"link": "",
99
"url": "http://watson-iot/dev1",
1010
"status": "",
@@ -13,12 +13,13 @@ marker_callback([{
1313
"geometry": {
1414
"type": "marker",
1515
"coordinates": [33.4890, 126.4983]
16-
}
16+
},
17+
"sensor_reading":"30"
1718
},
1819
{
1920
"id": "2",
2021
"properties": {
21-
"title": 5.4,
22+
"title": "Temperature Sensor",
2223
"link": "",
2324
"url": "http://watson-iot/dev2",
2425
"status": "pending",
@@ -32,7 +33,7 @@ marker_callback([{
3233
{
3334
"id": "3",
3435
"properties": {
35-
"title": 5.4,
36+
"title": "Humidity Sensor",
3637
"link": "",
3738
"url": "http://watson-iot/dev3",
3839
"status": "",
@@ -46,15 +47,15 @@ marker_callback([{
4647
{
4748
"id": "4",
4849
"properties": {
49-
"title": "Watson IoT Device 3",
50+
"title": "Pressure Sensor",
5051
"link": "",
5152
"url": "http://watson-iot/dev4",
5253
"status": "",
5354
"date":"11-7-2019"
5455
},
5556
"geometry": {
5657
"type": "marker",
57-
"coordinates": [34.4890, 121.4983]
58+
"coordinates": [31.4890, 121.4983]
5859
}
5960
}],
6061
"id": "ibmwattson1"
@@ -72,8 +73,48 @@ marker_callback([{
7273
},
7374
"geometry": {
7475
"type": "marker",
75-
"coordinates": [35.252115, 128.378728]
76+
"coordinates": [31.252115, 128.378728]
7677
}
7778
}],
7879
"id": "ocf-dev"
79-
}]);
80+
}, {
81+
"type": "OneM2M",
82+
"color_code":"00a65a",
83+
"devices": [{
84+
"id": "1",
85+
"properties": {
86+
"title": "OCF Device 2",
87+
"link": "",
88+
"url": "http://ocf-iot/dev1",
89+
"status": "",
90+
"date":"11-7-2019"
91+
},
92+
"geometry": {
93+
"type": "marker",
94+
"coordinates": [32.252115, 128.378728]
95+
}
96+
}],
97+
"id": "m2m-dev"
98+
},
99+
{
100+
"type": "GS1",
101+
"color_code":"f39c12",
102+
"devices": [{
103+
"id": "1",
104+
"properties": {
105+
"title": "OCF Device 2",
106+
"link": "",
107+
"url": "http://ocf-iot/dev1",
108+
"status": "",
109+
"date":"11-7-2019"
110+
},
111+
"geometry": {
112+
"type": "marker",
113+
"coordinates": [33.252115, 124.378728]
114+
}
115+
}],
116+
"id": "gs1-dev"
117+
}
118+
119+
120+
]);

package-lock.json

+14-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"bootstrap-slider": "^9.8.0",
3737
"bootstrap-timepicker": "^0.5.2",
3838
"chart.js": "1.0.*",
39+
"chartjs-plugin-labels": "^1.1.0",
3940
"ckeditor": "^4.11.2",
4041
"datatables.net": "^1.10.19",
4142
"datatables.net-bs": "^1.10.19",

0 commit comments

Comments
 (0)