summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2019-03-19 15:07:49 +0100
committersebdet <sebastien.determe@intl.att.com>2019-03-19 15:07:49 +0100
commit4ee52469687a116bbe0a042726d1a3208d55d02a (patch)
tree27e95bdd9a94f2dd7da8e9f0e96b2cc8a270c8ea /src/main
parente4aa522b862f9155d3b9271c2e3cb9ba97baec43 (diff)
Removal of dead code
Cleanup of the Ui javascript code so that it's easier to work with op policies Issue-ID: CLAMP-330 Change-Id: Ia08b0af5ea818f49ac8625a3709b8f2a4cfdcddd Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/resources/META-INF/resources/designer/index.html2
-rw-r--r--src/main/resources/META-INF/resources/designer/lib/jsoneditor.min.js (renamed from src/main/resources/META-INF/resources/designer/lib/jsoneditor.js)0
-rw-r--r--src/main/resources/META-INF/resources/designer/partials/portfolios/clds_modelling.html137
-rw-r--r--src/main/resources/META-INF/resources/designer/scripts/OperationalPolicyCtrl.js12
4 files changed, 2 insertions, 149 deletions
diff --git a/src/main/resources/META-INF/resources/designer/index.html b/src/main/resources/META-INF/resources/designer/index.html
index 62672d21..27e16d2b 100644
--- a/src/main/resources/META-INF/resources/designer/index.html
+++ b/src/main/resources/META-INF/resources/designer/index.html
@@ -94,7 +94,7 @@
<script src="lib/jquery.min.js"></script>
<!-- TOSCA Model Driven Dymamic UI Support -->
- <script src="lib/jsoneditor.js"></script>
+ <script src="lib/jsoneditor.min.js"></script>
<script src="lib/query-builder.standalone.js"></script>
<script src="lib/angular.min.js"></script>
diff --git a/src/main/resources/META-INF/resources/designer/lib/jsoneditor.js b/src/main/resources/META-INF/resources/designer/lib/jsoneditor.min.js
index 3d899050..3d899050 100644
--- a/src/main/resources/META-INF/resources/designer/lib/jsoneditor.js
+++ b/src/main/resources/META-INF/resources/designer/lib/jsoneditor.min.js
diff --git a/src/main/resources/META-INF/resources/designer/partials/portfolios/clds_modelling.html b/src/main/resources/META-INF/resources/designer/partials/portfolios/clds_modelling.html
index 2cb937fb..f98fd952 100644
--- a/src/main/resources/META-INF/resources/designer/partials/portfolios/clds_modelling.html
+++ b/src/main/resources/META-INF/resources/designer/partials/portfolios/clds_modelling.html
@@ -311,91 +311,6 @@ width: 14px;
</h6>
</div>
- <div style="margin-left: 10px"
- ng-class="{hidden:!showUTMViewDtl,chaldean:!showUTMViewDtl}">
-
-
- <div ng-show="serviceInfo != null">
- <h6>
- <span class="pull-left"
- ng-click="showUTMViewServiceName=!showUTMViewServiceName">
- <i
- ng-class="showUTMViewServiceName == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
- </i>
- </span><b>Service Name</b>
- </h6>
- <div style="margin-left: 10px"
- ng-class="{hidden:!showUTMViewServiceName,chaldean:!showUTMViewServiceName}">
- <div style="margin-left: 10px">
- {{serviceInfo.service.name}}</div>
- </div>
-
- </div>
-
- <div ng-show="serviceInfo != null">
- <h6>
- <span class="pull-left"
- ng-click="showUTMViewPortName=!showUTMViewPortName">
- <i
- ng-class="showUTMViewPortName == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
- </i>
- </span><b>Port Name</b>
- </h6>
- <div style="margin-left: 10px"
- ng-class="{hidden:!showUTMViewPortName,chaldean:!showUTMViewPortName}">
- <div style="margin-left: 10px">
- {{serviceInfo.service.ports[0].name}}</div>
- </div>
- </div>
-
- <div ng-show="serviceInfo != null">
- <h6>
- <span class="pull-left"
- ng-click="showUTMViewBindingName=!showUTMViewBindingName">
- <i
- ng-class="showUTMViewBindingName == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
- </i>
- </span><b> Binding Name</b>
- </h6>
- <div style="margin-left: 10px"
- ng-class="{hidden:!showUTMViewBindingName,chaldean:!showUTMViewBindingName}">
- <div style="margin-left: 10px">
- {{serviceInfo.bindingInfo.binding.name}}</div>
- </div>
- </div>
-
- <div ng-show="serviceInfo != null">
- <h6>
- <span class="pull-left"
- ng-click="showUTMViewBindingPortType=!showUTMViewBindingPortType">
- <i ng-class="showUTMViewBindingPortType == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
- </i>
- </span><b>Binding Port Type</b>
- </h6>
- <div style="margin-left: 10px"
- ng-class="{hidden:!showUTMViewBindingPortType,chaldean:!showUTMViewBindingPortType}">
- <div style="margin-left: 10px">
- {{serviceInfo.bindingInfo.portTypeInfo.portType.name}}</div>
- </div>
- </div>
-
- <div ng-show="serviceInfo != null">
- <h6>
- <span class="pull-left"
- ng-click="showUTMViewOperation=!showUTMViewOperation">
- <i
- ng-class="showUTMViewOperation == true ?'fa fa-minus-circle':'fa fa-plus-circle'">
- </i>
- </span><b>Operation Name</b>
- </h6>
- <div style="margin-left: 10px"
- ng-class="{hidden:!showUTMViewOperation,chaldean:!showUTMViewOperation}">
- <div style="margin-left: 10px">
- {{serviceInfo.bindingInfo.portTypeInfo.operationInfo[0].operation.name}}</div>
- </div>
- </div>
- </div>
-
<table class="table-tree">
<tr>
<td class="td-label-tree" style="margin-top: 30px;">
@@ -488,26 +403,6 @@ width: 14px;
</tr>
</table>
- <div style="margin-left: 20px;margin-top: -12px;"
- ng-class="{hidden:showUTMViewInput,chaldean:showUTMViewInput}">
-
- <div ng-show="serviceInputPartInfo.length>0" >
- <h6>
- <!-- <div ng-repeat="inputInfo in serviceInputPartInfo">
- inputInfo :: {{inputInfo}}
- <div ng-repeat="schemaElement in inputInfo.schemaElements" ng-include="'service_tree_element_renderer.html'" ng-init="currentElementName= inputInfo.part.name;parentName='ServiceInput'; parentElement=inputInfo; heirarchyLevel=1">
-
- </div>
-
- </div> -->
- <div ng-repeat="inputInfo in serviceInputPartInfo">
- <div class="inputInfoClass" ng-init="currentElementName= inputInfo.part.name;parentName='ServiceInput'; parentElement=inputInfo; heirarchyLevel=1;infoType=inputInfo"></div>
- </div>
- </h6>
-
- </div>
-
- </div>
<table class="table-tree" style="margin-top: -12px;>
<tr>
@@ -529,21 +424,7 @@ width: 14px;
</td>
</tr>
</table>
- <div style="margin-left: 20px;"
- ng-class="{hidden:showUTMViewOutput,chaldean:showUTMViewOutput}">
- <div ng-show="serviceOutputPartInfo.length>0" style="width: 250px">
- <h6>
- <!-- <div ng-repeat="outputInfo in serviceOutputPartInfo" >
- outputInfo::: {{outputInfo}}
- <div ng-repeat="schemaElement in outputInfo.schemaElements" ng-include="'service_tree_element_renderer.html'" ng-init="currentElementName=outputInfo.part.name;parentName='ServiceOutput'; parentElement=outputInfo; heirarchyLevel=1">
- </div>
- </div> -->
- <div ng-repeat="outputInfo in serviceOutputPartInfo">
- <div class="inputInfoClass" ng-init="currentElementName=outputInfo.part.name;parentName='ServiceOutput'; parentElement=outputInfo; heirarchyLevel=1; infoType=outputInfo"></div>
- </div>
- </h6>
- </div>
- </div>
+
<table class="table-tree" style="margin-top: -12px;">
<tr>
@@ -563,22 +444,6 @@ width: 14px;
</td>
</tr>
</table>
- <div style="margin-left: 20px;"
- ng-class="{hidden:showUTMViewFault,chaldean:showUTMViewFault}">
-
- <div ng-show="servicefaultPartInfo.length>0" style="width: 250px">
- <h6>
- <!-- <div ng-repeat="faultInfo in servicefaultPartInfo" style="margin-top: -12px;">
- faultInfo ::::{{faultInfo}}
- <div ng-repeat="schemaElement in faultInfo.schemaElements" ng-include="'service_tree_element_renderer.html'" ng-init="currentElementName=faultInfo.schemaElements[0].name;parentName='ServiceFault'; parentElement=faultInfo; heirarchyLevel=1">
- </div>
- </div> -->
- <div ng-repeat="faultInfo in servicefaultPartInfo">
- <div class="inputInfoClass" ng-init="currentElementName=faultInfo.part.name;parentName='ServiceFault'; parentElement=faultInfo; heirarchyLevel=1; infoType=faultInfo"></div>
- </div>
- </h6>
- </div>
- </div>
</div>
diff --git a/src/main/resources/META-INF/resources/designer/scripts/OperationalPolicyCtrl.js b/src/main/resources/META-INF/resources/designer/scripts/OperationalPolicyCtrl.js
index d1f3e0c4..65577546 100644
--- a/src/main/resources/META-INF/resources/designer/scripts/OperationalPolicyCtrl.js
+++ b/src/main/resources/META-INF/resources/designer/scripts/OperationalPolicyCtrl.js
@@ -33,18 +33,6 @@ app
function($scope, $rootScope, $uibModalInstance, data, operationalPolicyService,
dialogs) {
console.log("//////operationalPolicyCtrl");
- $rootScope.serviceInfo;
- $rootScope.serviceInput;
- $rootScope.serviceOutput;
- $rootScope.serviceFault;
- $rootScope.serviceInputPartInfo;
- $rootScope.schemElemant1;
- $rootScope.updateServiceInfo;
- $rootScope.updateServiceInput;
- $rootScope.updateServiceOutput;
- $rootScope.updateServiceFault;
- $rootScope.updateServiceInputPartInfo;
- $rootScope.updateSchemElemant1;
// Below code is added to get the policyNames
var policies = getOperationalPolicyProperty();
for ( var obj in policies) {