-
Notifications
You must be signed in to change notification settings - Fork 78
/
index.html
251 lines (224 loc) · 16.4 KB
/
index.html
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
249
250
251
<!DOCTYPE html>
<html ng-app="armExplorer">
<head>
<base href="/" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<script src="//az803612.vo.msecnd.net/explorercdn/jquery/2.1.3/jquery.min.js"></script>
<script src="//az803612.vo.msecnd.net/explorercdn/jquery/2.1.3/jquery.cookie.min.js"></script>
<script src="//az803612.vo.msecnd.net/explorercdn/angular1.6/angular.min.js"></script>
<script src="//az803612.vo.msecnd.net/explorercdn/angular1.6/angular-route.min.js"></script>
<script src="//az803612.vo.msecnd.net/explorercdn/angular1.6/angular-animate.min.js"></script>
<script src="//az803612.vo.msecnd.net/explorercdn/angular1.6/angular-sanitize.min.js"></script>
<script src="//az803612.vo.msecnd.net/explorercdn/angular1.6/angular-cookies.min.js"></script>
<script src="//az803612.vo.msecnd.net/explorercdn/bootstrap/3.2.0/ui-bootstrap-tpls.min.js"></script>
<script src="//az803612.vo.msecnd.net/explorercdn/rxjs/2.3.25/rx.lite.compat.js"></script>
<script src="//az803612.vo.msecnd.net/explorercdn/ace/1.1.8/ace.js"></script>
<script src="//az803612.vo.msecnd.net/explorercdn/crypto-js/3.1.2/md5.js"></script>
<script src="Content/Scripts/abn_tree_directive.js"></script>
<script src="Content/Scripts/rx.angular.js"></script>
<script src="Content/Scripts/ui-ace.min.js"></script>
<script src="ng/manage.js"></script>
<title>Resource Explorer</title>
<!-- Bootstrap Core CSS -->
<link href="//az803612.vo.msecnd.net/explorercdn/bootstrap/3.2.0/bootstrap.min.css" rel="stylesheet" />
<!-- Custom CSS -->
<link href="Content/Styles/abn_tree.css" rel="stylesheet" />
<link href="Content/Styles/sb-admin-2.css" rel="stylesheet" />
<!-- Custom Fonts -->
<link href="//az803612.vo.msecnd.net/explorercdn/font-awesome/4.1.0/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="Content/Styles/app.css?v=3" rel="stylesheet" type="text/css">
<script type="text/javascript">var appInsights = window.appInsights || function (a) { function b(a) { c[a] = function () { var b = arguments; c.queue.push(function () { c[a].apply(c, b) }) } } var c = { config: a }, d = document, e = window; setTimeout(function () { var b = d.createElement("script"); b.src = a.url || "https://az416426.vo.msecnd.net/scripts/a/ai.0.js", d.getElementsByTagName("script")[0].parentNode.appendChild(b) }); try { c.cookie = d.cookie } catch (a) { } c.queue = []; for (var f = ["Event", "Exception", "Metric", "PageView", "Trace", "Dependency"]; f.length;)b("track" + f.pop()); if (b("setAuthenticatedUserContext"), b("clearAuthenticatedUserContext"), b("startTrackEvent"), b("stopTrackEvent"), b("startTrackPage"), b("stopTrackPage"), b("flush"), !a.disableExceptionTracking) { f = "onerror", b("_" + f); var g = e[f]; e[f] = function (a, b, d, e, h) { var i = g && g(a, b, d, e, h); return !0 !== i && c["_" + f](a, b, d, e, h), i } } return c }({ instrumentationKey: "257663f1-a768-42b9-8fa5-36d67a153974" }); window.appInsights = appInsights, appInsights.queue && 0 === appInsights.queue.length && appInsights.trackPageView();</script>
</head>
<body style="min-width: 1510px">
<div id="wrapper" ng-controller="treeBodyController" ng-cloak>
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<a class="navbar-brand" href="/" ng-click="refresh()"><img src="/Images/ARMExplorer.svg" style="height: 25px; padding-bottom: 1px; padding-top: 1px; padding-right: 7px">Azure Resource Explorer (Preview)</a>
<form class="navbar-form navbar-left" role="search" ng-submit="resourceSearch()">
<div class="input-group">
<input id="resource-search-input" type="text" class="form-control" placeholder="Search" ng-model="resourceSearcher.resourceSearchModel.searchKeyword" ng-keyup="delayResourceSearch($event)">
<span class="input-group-btn">
<button type="submit" class="btn btn-default">
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
</button>
</span>
</div>
<ul id="resource-search-list" class="list-group" ng-show="resourceSearcher.resourceSearchModel.isSuggestListDisplay"
style="position: fixed; top: 45px; z-index:9999; max-height: 500px; overflow-y:auto; overflow-x:hidden;">
<li class="list-group-item" ng-repeat="item in resourceSearcher.resourceSearchModel.suggestions" ng-click="selectResourceSearch(item)" title="{{item.id}}">
{{item.name}}<small>({{item.type}})</small>
</li>
</ul>
</form>
<select ng-model="selectedTenant" ng-options="tenant.name for tenant in tenants" style="position: relative; top: 15px; float: left" ng-change="tenantSelect()"></select>
<div class="switch">
<input type="radio" class="switch-input" name="view" id="readOnly" ng-checked="readOnlyMode" ng-click="setReadOnlyMode(true)">
<label for="readOnly" class="switch-label switch-label-off">Read Only</label>
<input type="radio" class="switch-input" name="view" id="readWrite" ng-checked="!readOnlyMode" ng-click="setReadOnlyMode(false)">
<label for="readWrite" class="switch-label switch-label-on">Read/Write</label>
<span class="switch-selection"></span>
</div>
<ul class="nav navbar-nav navbar-right" style="position: relative;" ng-show="user">
<li class="dropdown">
<img ng-src="{{user.imageUrl}}" style="height: 50px; padding-top: 1px" />
<a href="#" data-toggle="dropdown" style="display: inline"> {{ user.name }} {{ user.email }} </a>
<ul class="dropdown-menu">
<li><a target="_blank" href="https://github.com/projectkudu/ARMExplorer/issues">Give feedback</a></li>
<li><a href="/logout" ng-click="logout()">Logout</a></li>
</ul>
</li>
</ul>
</div>
</nav>
<div id="sidebar" class="navbar-default sidebar" role="navigation">
<div class="sidebar-nav" style="white-space: nowrap">
<abn-tree tree-data="resources" tree-control="treeControl" on-select="selectResourceHandler(branch, event)" on-expand="expandResourceHandler(branch, row, event)" expand-level="0"></abn-tree>
</div>
</div>
<div id="content">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">{{ treeControl.get_selected_branch().label }}</h1>
</div>
<span class="alert alert-info loading-spinner overlayCenter" ng-show="loading || invoking">
<i class="fa fa-spinner fa-spin" title="Please wait"></i>
</span>
<span class="alert alert-success loading-spinner success-marker overlayCenter" style="display: none">
<i class="fa fa-check" title="success"></i>
</span>
<span class="alert alert-warning loading-spinner failure-marker overlayCenter" style="display: none">
<i class="fa fa-exclamation-triangle" title="error"></i>
</span>
</div>
<tabset>
<tab id="data-tab" select="enterDataTab()" active="activeTab[0]">
<tab-heading><i class="fa fa-database"></i> Data (GET, PUT)</tab-heading>
<div ng-show="selectedResource && selectedResource.url">
<button ng-repeat="httpMethod in selectedResource.httpMethods | filter:showHttpVerb" class="btn btn-success" style="float: left; margin-right: 5px; margin-top: 3px" ng-click="handleClick(selectedResource, httpMethod, $event)">{{httpMethod}}</button>
<button ng-show="selectedResource.httpMethods.length > 1" class="btn btn-info" style="float: left; margin-right: 5px; margin-top: 3px" ng-click="toggleEditMode()">{{ editMode ? 'Cancel' : 'Edit' }}</button>
<pre id="selected-resource-url" ng-style="{'color': resUrlColor}"><span class="btn copy-button fa fa-copy" ng-click="copyResUrlToClipboard(selectedResource.url + '?api-version=' + selectedResource.apiVersion);"></span><span>{{ selectedResource.url + "?api-version=" + selectedResource.apiVersion }}</span></pre>
</div>
<div id="response-json-editor" class="explorer-editor" ng-show="!editMode"></div>
<div id="request-json-editor" class="explorer-editor" ng-show="editMode"></div>
<h2 ng-show="errorResponse || putError">Error:</h2>
<pre ng-show="errorResponse" ng-bind-html="errorResponse" style="max-height: 400px"></pre>
<pre ng-show="putError" ng-bind-html="putError" style="max-height: 400px"></pre>
</tab>
<tab disabled="!(selectedResource && selectedResource.actionsAndVerbs && selectedResource.actionsAndVerbs.length > 0)" active="activeTab[1]">
<tab-heading><i class="fa fa-bolt"></i> Actions (POST, DELETE)</tab-heading>
<table class="table table-no-border" style="margin: 20px" ng-show="(selectedResource && selectedResource.actionsAndVerbs && selectedResource.actionsAndVerbs.length > 0)">
<colgroup>
<col class="col-xs-1">
<col class="col-xs-7">
</colgroup>
<tbody>
<tr ng-repeat="action in selectedResource.actionsAndVerbs">
<td>
<button class="btn btn-lg" ng-class="action.name === 'Delete' ? 'btn-danger' : 'btn-primary'" style="float: left; margin-right: 10px; margin-top: -3px" ng-click="invokeAction(selectedResource, action, $event)">
{{ action.name }}
</button>
</td>
<td>
<pre>{{ action.httpMethod }} {{ action.url + "?api-version=" + selectedResource.apiVersion}}</pre>
<div ng-repeat="query in action.query">
<pre style="float: left; margin-right: 10px">{{ "&" + query + "=" + actionsModel[query] }}</pre>
<input type="text" style="float: left; margin-top: 2px; height: 35px; width: 147px; padding-left: 5px; font-size: 25px" ng-model="actionsModel[query]">
</div>
<div id="{{ action.name + '-editor' }}" ng-show="action.requestBody" class="explorer-editor action-editor" ui-ace="aceConfig" ng-model="action.requestBody "></div>
</td>
</tr>
</tbody>
</table>
<pre ng-show="actionResponse" ng-bind-html="actionResponse" style="max-height: 400px"></pre>
</tab>
<tab disabled="!creatable" select="enterCreateMode()" deselect="leaveCreateMode()" active="activeTab[2]">
<tab-heading><i class="fa fa-database"></i> Create</tab-heading>
<div ng-show="creatable">
<button class="btn btn-info" style="float: left; margin-right: 5px; margin-top: 3px" ng-click="clearCreate($event)">
Reset
</button>
<button class="btn btn-success" style="float: left; margin-right: 5px; margin-top: 3px" ng-click="invokeCreate(selectedResource, $event)">
PUT
</button>
<input type="text" style="float: left; margin-right: 5px; margin-top: 3px; height: 35px; width: 210px; padding-left: 5px; font-size: 25px" ng-model="createModel.createdResourceName" ng-show="createMode" placeholder="{Resource Name}">
<pre>{{ selectedResource.url + "/" + createModel.createdResourceName + "?api-version=" + selectedResource.apiVersion }}</pre>
<div id="json-create-editor" class="explorer-editor"></div>
<h2 ng-show="errorResponse || createError">Error:</h2>
<pre ng-show="errorResponse" ng-bind-html="errorResponse" style="max-height: 400px"></pre>
<pre ng-show="createError" ng-bind-html="createError" style="max-height: 400px"></pre>
</div>
</tab>
<tab active="activeTab[3]">
<tab-heading>Documentation</tab-heading>
<table class="table table-hover table-bordered">
<thead>
<th>Property</th>
<th>Documentation</th>
</thead>
<tbody>
<tr ng-repeat="e in selectedResource.doc">
<th>{{ e.name }}</th>
<td>{{ e.doc }}</td>
</tr>
</tbody>
</table>
</tab>
<tab active="activeTab[4]">
<tab-heading>Ansible</tab-heading>
<div id="ansible-editor" class="explorer-editor"></div>
</tab>
<!--tab active="activeTab[5]">
<tab-heading>PowerShell</tab-heading>
<pre class="ng-binding">Please install the latest Azure PowerShell from <a href="https://github.com/Azure/azure-powershell/releases">here</a>.</pre>
<div id="powershell-editor" class="explorer-editor"></div>
</tab-->
<!--tab active="activeTab[6]">
<tab-heading>Azure CLI 2.0</tab-heading>
<pre class="ng-binding">To install <strong>azure-cli</strong> follow <a href="https://github.com/Azure/azure-cli">this link</a>.</pre>
<div id="azurecli-editor" class="explorer-editor">></div>
</tab-->
</tabset>
</div>
<div id="sidebar-resizer"
resizer="vertical"
resizer-width="4"
resizer-left="#sidebar"
resizer-right="#content"
resizer-max="100000">
</div>
<div id="delete-confirm-box" class="confirm-box">
<div class="confirm-content">
<div class="confirm-message">Are you sure you want to delete <strong>{{ treeControl.get_selected_branch().label }}</strong>?</div>
<button id="yes-delete-confirm" class="btn btn-danger confirm-answer">
Yes
</button>
<button class="btn confirm-answer" ng-click="hideConfirm()">
No
</button>
</div>
</div>
<div id="readonly-confirm-box" class="confirm-box">
<div class="confirm-content">
<div class="confirm-message">You can't do this operation because you are in <strong>'Read Only'</strong> mode.<br> Switch to <strong>'Read/Write'</strong> mode from the top to enable this HttpVerb</div>
<button class="btn btn-primary confirm-answer" ng-click="hideConfirm()">
Ok
</button>
</div>
</div>
</div>
<div id="dark-blocker" class="dark-full-site-blocker" style="display: none"></div>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
try {
eval('"use strict"; class foo {}');
} catch (e) {
var browserSupportOverlay = jQuery('<div id="browserSupportOverlay"> Your browser is not supported. <br> Please use any of the following browsers: Mozilla Firefox, Google Chrome, Microsoft Edge </div>');
browserSupportOverlay.appendTo(document.body);
}
</script>
</body>
</html>