forked from Azure/azure-sdk-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathActiveExtensions.cshtml
More file actions
186 lines (178 loc) · 5.63 KB
/
ActiveExtensions.cshtml
File metadata and controls
186 lines (178 loc) · 5.63 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
@using Azure.Sdk.Tools.TestProxy.Models;
@model ActiveMetadataModel
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Test-Proxy - Active Extensions</title>
@await Html.PartialAsync("css.cshtml")
</head>
<body>
@if (!string.IsNullOrWhiteSpace(Model.RecordingId))
{
<h1>
Active Extensions for @Model.RecordingId
</h1>
}
else
{
<h1>
Active Extensions for All Sessions
</h1>
}
@if (!string.IsNullOrWhiteSpace(Model.RecordingId))
{
<p>
The below extensions are configured for recording <b>@Model.RecordingId</b>.
</p>
}
else
{
<p>
The below extensions are currently configured for all sessions.
</p>
}
<p>
To observe ALL extensions (rather than just what is currently active), visit <a href="/Info/Available">/Info/Available</a>. For clarity, note that argument values below are surrounded in quotes. The actual value itself being utilized by
the test-proxy does not contain these quotes.
</p>
@if (Model.Sanitizers.Count() >= 0)
{
<h1>Active Sanitizers</h1>
}
@foreach (var extension in Model.Sanitizers)
{
<table style="width:100%">
<tr>
<td>
<h2>"@extension.SanitizerId" - @extension.Name</h2>
</td>
</tr>
<tr>
<td>
<h3>Description</h3>
<p>
@extension.Description
</p>
</td>
</tr>
<tr>
<td>
<h3>Instance Details</h3>
@if (!String.IsNullOrEmpty(extension.ConstructorDetails.Description) || extension.ConstructorDetails.Arguments.Count() > 0)
{
<p>
This sanitizer was created with the following settings:
</p>
<ul>
@foreach (var arg in extension.ConstructorDetails.Arguments)
{
<li><span><code>@arg.Item1</code></span>: @Html.Raw(@arg.Item2)</li>
}
</ul>
}
else
{
<p class="unused">
This sanitizer does not have any customizable settings.
</p>
}
</td>
</tr>
</table>
}
@if (Model.Matchers.Count() >= 0)
{
<h1>Active Matchers</h1>
}
@foreach (var extension in Model.Matchers)
{
<table style="width:100%">
<tr>
<td>
<h2>@extension.Name</h2>
</td>
</tr>
<tr>
<td>
<h3>Description</h3>
<p>
@extension.Description
</p>
</td>
</tr>
<tr>
<td>
<h3>Instance Details</h3>
@if (!String.IsNullOrEmpty(extension.ConstructorDetails.Description) || extension.ConstructorDetails.Arguments.Count() > 0)
{
<p>
This matcher was created with the following settings:
</p>
<ul>
@foreach (var arg in extension.ConstructorDetails.Arguments)
{
<li><span><code>@arg.Item1</code></span>: @Html.Raw(@arg.Item2)</li>
}
</ul>
}
else
{
<p class="unused">
This matcher does not have any customizable settings.
</p>
}
</td>
</tr>
</table>
}
@if (Model.Transforms.Count() >= 0)
{
<h1>Active Transforms</h1>
}
@foreach (var extension in Model.Transforms)
{
<table style="width:100%">
<tr>
<td>
<h2>@extension.Name</h2>
</td>
</tr>
<tr>
<td>
<h3>Description</h3>
<p>
@extension.Description
</p>
</td>
</tr>
<tr>
<td>
<h3>Instance Details</h3>
@if (!String.IsNullOrEmpty(extension.ConstructorDetails.Description) || extension.ConstructorDetails.Arguments.Count() > 0)
{
<p>
This transform was created with the following settings:
</p>
<ul>
@foreach (var arg in extension.ConstructorDetails.Arguments)
{
<li><span><code>@arg.Item1</code></span>: @Html.Raw(@arg.Item2)</li>
}
</ul>
}
else
{
<p class="unused">
This transform does not have any customizable settings.
</p>
}
</td>
</tr>
</table>
}
</body>
</html>