Skip to content

Commit

Permalink
Server-demo-v2: add more object icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed May 19, 2021
1 parent 64811b8 commit de609c1
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions leshan-server-demo/webapp2/src/components/ObjectIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,30 @@ export default {
methods: {
idToIcon(id) {
switch (id) {
case 1:
case 1: // server
return "mdi-server";
case 3:
case 2: // ACL
return "mdi-shield-check-outline";
case 3: // device
return "mdi-devices";
case 6:
case 4: // connectivity monitoring
return "mdi-signal-variant";
case 5: // firmware update
return "mdi-cellphone-arrow-down";
case 6: // location
return "mdi-map-marker";
case 7: // connectivity statistics
return "mdi-signal-distance-variant";
case 11: // LWM2M APN Connection Profile
return "mdi-sim";
case 14: // LWM2M Software Component
return "mdi-puzzle-outline";
case 15: // DevCapMgmt
return "mdi-widgets-outline";
case 16: // Portfolio
return "mdi-folder-multiple-outline";
case 19: // BinaryAppDataContainer
return "mdi-database-sync-outline";
case 3303:
return "mdi-thermometer";
default:
Expand Down

0 comments on commit de609c1

Please sign in to comment.