Remove SDNR seed code
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / dlux / dlux-web / src / common / general / common.general.directives.js
diff --git a/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/general/common.general.directives.js b/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/general/common.general.directives.js
deleted file mode 100644 (file)
index 78429dc..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-define(['common/general/common.general.module'], function(general) {
-
-  general.directive('stateIcon', function() {
-      return {
-          restrict: 'E',
-          replace: true,
-          scope: {
-              stateValue: '@value'
-          },
-          template: '<span class="glyphicon glyphicon-{{stateIcon}}-sign"></span>',
-          controller: ['$scope', function ($scope) {
-              var value = $scope.stateValue;
-
-              var icons = {1: 'ok', 0: 'exclamation'};
-              var textStates = {'true': 1, 'false': 0};
-
-              if (_.isString(value) && !value.match('^[0-9]$')) {
-                  value = textStates[value];
-              }
-              $scope.stateIcon = icons[value];
-          }]
-
-      };
-  });
-
-  general.directive('portState', function() {
-      return {
-          restrict: 'E',
-          replace: true,
-          scope: {
-              stateValue: '@value'
-          },
-          template: '<span ng-style="{color: stateColor}">{{stateString}}</span>',
-          controller: ['$scope', function ($scope) {
-              var states = {0: 'DOWN', 1: 'UP'};
-              var colors = {0: 'red', 1: 'green'};
-
-              $scope.stateString = states[$scope.stateValue];
-              $scope.stateColor = colors[$scope.stateValue];
-          }]
-      };
-  });
-});