-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
248 lines (211 loc) · 13.3 KB
/
index.html
File metadata and controls
248 lines (211 loc) · 13.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="SMP WebServices Diff Tool">
<meta name="keywords" content="SMP, ITMS, Symantec, WebService, Web Service, Diff">
<meta name="author" content="Alex Hedley">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link rel="stylesheet" href="css/jquery-ui.min.css">
<link rel="stylesheet" href="css/pivot.min.css">
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pivottable/2.13.0/pivot.min.css"> -->
<link rel="stylesheet" href="css/styles.css">
<link rel="shortcut icon" href="favicon.ico">
<!-- <link rel="shortcut icon" href="altiris.ico"> -->
<title>SMP - Web Services Diff</title>
</head>
<body ng-app="myApp">
<div ng-controller="myController">
<!-- Legacy Header -->
<div style="margin: 0px; padding: 0px; border: 0px solid black; height: 41px; text-align: right; overflow: hidden; vertical-align: middle; background-image: url('images/headerToolbarBackground.png'); background-repeat: repeat-x;">
<img title="Symantec™ Management Platform Version 8.5 (8.5.3073.0)" style="margin: 0px; padding: 0px;" alt="" src="images/headerProductName.png">
<img style="padding-top: 10px;" alt="" src="images/symantecLogo.png">
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
<p>The following Application has been built to allow a diff of SMP Webservice Methods.</p>
<p>You can either compare WebService methods, compare params for a given method or Pivot the Webservices.</p>
<p>Click on the headings ("Compare", "Params", "Pivot") to toggle the options.</p>
</div>
</div>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<!-- Panel 1 -->
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Compare
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in show" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<!--Row [Start]-->
<div class="row">
<div class="col-md-12">
<p>Pick a version then a webservice, repeat with a different version, this will list all Methods then a diff.</p>
</div>
<div class="col-md-4">
<h4>Original text</h4>
<select
ng-model="selectedFileLHS"
ng-change="loadFile('LHS')">
<option ng-repeat="file in files" value="{{file}}">{{file}}</option>
</select>
<label>{{$scope.files.length}}</label>
<select
ng-model="selectedWebServiceLHS"
ng-change="loadMethods('LHS')"
ng-options="webservice.name for webservice in webservicesLHS">
<!-- <option ng-repeat="webservice in webservicesLHS">{{webservice.name}}</option> -->
</select>
<label>{{$scope.webservicesLHS.length}}</label>
<!-- <div class="original">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only centuries, but also the leap into electronic typesetting.</div> -->
<textarea layout-fill class="form-control diff-textarea" id="original"
ng-model="original"></textarea>
<label>{{$scope.original.length}}</label>
<!-- ng-list=" " ng-trim="false" -->
</div>
<div class="col-md-4">
<h4>Changed text</h4>
<select
ng-model="selectedFileRHS"
ng-change="loadFile('RHS')">
<option ng-repeat="file in files" value="{{file}}">{{file}}</option>
</select>
<select
ng-model="selectedWebServiceRHS"
ng-change="loadMethods('RHS')"
ng-options="webservice.name for webservice in webservicesRHS"></select>
<!-- <option ng-repeat="webservice in webservicesRHS">{{webservice.name}}</option> -->
</select>
<!-- <div class="changed">Lorem Ipsum is simply typesetting dummy text of the printing and has been the industry's typesetting. Lorem Ipsum has been the industry's standard dummy text ever the 1500s, when an printer took a galley of type and simply it to make a type. It has survived not only five centuries, but survived not also the leap into electronic typesetting.</div> -->
<textarea layout-fill class="form-control diff-textarea" id="changed"
ng-model="changed" ></textarea>
<!-- ng-list=" " ng-trim="false" -->
</div>
<div class="col-md-4">
<h4>Diff results</h4>
<div class="diff">
<pre class="textdiff" diff left-obj="original" right-obj="changed">a</pre>
<!-- <pre class="textdiff" processing-diff left-obj="original" right-obj="changed" options="options">b</pre> -->
<!-- <pre class="textdiff" semantic-diff left-obj="original" right-obj="changed" options="options">c</pre> -->
<!-- <pre class="textdiff" line-diff left-obj="original" right-obj="changed" options="options">d</pre> -->
</div>
</div>
</div>
<!--Row [End]-->
</div>
</div>
</div>
<!-- Panel 1 -->
<!-- Panel - Params -->
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingParams">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseParams" aria-expanded="false" aria-controls="collapseParams">
Params
</a>
</h4>
</div>
<div id="collapseParams" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingParams">
<div class="panel-body">
<!--Row [Start]-->
<div class="row">
<div class="col-md-12">
<p><strong>Choose a Method for a given Web Service to see the params in each version.</strong></p>
<select
ng-model="chosenWebService"
ng-change="loadChosenMethods()"
ng-options="webservice for webservice in webservices">
</select>
<select
ng-model="chosenWebServiceMethod"
ng-change="loadChosenParams()"
ng-options="method for method in methods">
</select>
<div ng-repeat="method in methodParams">
{{method.version}}
<ul>
<li ng-repeat="param in method.params">{{param.name}} : {{param.type}}</li>
</ul>
</div>
</div>
</div>
<!--Row [End]-->
</div>
</div>
</div>
<!-- Panel - Params -->
<!-- Panel 2 -->
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingTwo">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Pivot
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
<div class="panel-body">
<!--Row [Start]-->
<div class="row">
<div class="col-md-12">
<p>Pick a webservice to display a pivot of Methods for each version, toggle "UI" to add extra functionality.</p>
</div>
<div class="col-md-6">
<select
ng-model="selectedWebService"
ng-change="createPivotAll()"
ng-options="webservice for webservice in webservices">
<!-- <option ng-repeat="webservice in webservicesLHS">{{webservice.name}}</option> -->
</select>
</div>
<div class="col-md-6">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="ui" ng-model="ui" ng-change="createPivotAll()">
<label class="form-check-label" for="ui">UI</label>
</div>
</div>
</div>
<!--Row [End]-->
<!--Row [Start]-->
<div class="row">
<div id="output" style="margin: 30px;">
<p>Select content...</p>
</div>
</div>
<!--Row [End]-->
</div>
</div>
</div>
<!-- Panel 2 -->
</div>
<!-- panel-group -->
</div>
<!--Container [End]-->
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="js/jquery-3.3.1.min.js" ></script>
<script>window.jQuery || document.write('<script src="js/jquery-slim.min.js"><\/script>')</script>
<script src="js/jquery-ui.min.js"></script>
<!-- <script src="js/popper.min.js"></script> -->
<script src="js/bootstrap.min.js"></script>
<script src="js/diff_match_patch.js"></script>
<!-- <script src="js/jquery.pretty-text-diff.min.js"></script> -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.8/angular.min.js"></script> -->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.5/angular.min.js"></script> -->
<script src="js/angular.min.js"></script>
<script src="js/angular-diff-match-patch.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/2.13.0/pivot.min.js"></script> -->
<script src="js/pivot.min.js"></script>
<script src="js/app.js"></script>
<!-- <script>hljs.initHighlightingOnLoad();</script> -->
</body>
</html>