Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.Designer.cs')
-rw-r--r--src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.Designer.cs1790
1 files changed, 875 insertions, 915 deletions
diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.Designer.cs b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.Designer.cs
index 9912d66688..be919ed2d5 100644
--- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.Designer.cs
+++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.Designer.cs
@@ -1,916 +1,876 @@
-// <auto-generated/>
-#pragma warning disable 1591
-namespace Microsoft.AspNetCore.Diagnostics.RazorViews
-{
- #line hidden
- using System.Threading.Tasks;
-#nullable restore
-#line 1 "CompilationErrorPage.cshtml"
-using System;
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 2 "CompilationErrorPage.cshtml"
-using System.Globalization;
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 3 "CompilationErrorPage.cshtml"
-using System.Linq;
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 4 "CompilationErrorPage.cshtml"
-using System.Net;
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 5 "CompilationErrorPage.cshtml"
-using Microsoft.AspNetCore.Diagnostics;
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 6 "CompilationErrorPage.cshtml"
-using Microsoft.AspNetCore.Diagnostics.RazorViews;
-
-#line default
-#line hidden
-#nullable disable
- internal class CompilationErrorPage : Microsoft.Extensions.RazorViews.BaseView
- {
- #pragma warning disable 1998
- public async override global::System.Threading.Tasks.Task ExecuteAsync()
- {
-#nullable restore
-#line 16 "CompilationErrorPage.cshtml"
-
- Response.StatusCode = 500;
- Response.ContentType = "text/html; charset=utf-8";
- Response.ContentLength = null; // Clear any prior Content-Length
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("<!DOCTYPE html>\r\n<html>\r\n <head>\r\n <meta charset=\"utf-8\" />\r\n <title>");
-#nullable restore
-#line 25 "CompilationErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_Title);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(@"</title>
- <style>
- body {
- font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
- font-size: .813em;
- color: #222;
- background-color: #fff;
-}
-
-h1 {
- color: #44525e;
- margin: 15px 0 15px 0;
-}
-
-h2 {
- margin: 10px 5px 0 0;
-}
-
-h3 {
- color: #363636;
- margin: 5px 5px 0 0;
- font-weight: normal;
-}
-
-code {
- font-family: Consolas, ""Courier New"", courier, monospace;
- font-weight: bold;
-}
-
-body .titleerror {
- padding: 3px 3px 6px 3px;
- display: block;
- font-size: 1.5em;
- font-weight: 100;
-}
-
-body .location {
- margin: 3px 0 10px 30px;
-}
-
-#header {
- font-size: 18px;
- padding: 15px 0;
- border-top: 1px #ddd solid;
- border-bottom: 1px #ddd solid;
- margin-bottom: 0;
-}
-
- #header li {
- display: inline;
- margin: 5px;
- padding: 5px;
- color: #a0a0a0;
- cursor: pointer;
- }
-
- #header .selected {
- background: #44c5f2;
- color: #fff");
- WriteLiteral(@";
- }
-
-#stackpage ul {
- list-style: none;
- padding-left: 0;
- margin: 0;
- /*border-bottom: 1px #ddd solid;*/
-}
-
-#stackpage .details {
- font-size: 1.2em;
- padding: 3px;
- color: #000;
-}
-
-#stackpage .stackerror {
- padding: 5px;
- border-bottom: 1px #ddd solid;
-}
-
-
-#stackpage .frame {
- padding: 0;
- margin: 0 0 0 30px;
-}
-
- #stackpage .frame h3 {
- padding: 2px;
- margin: 0;
- }
-
-#stackpage .source {
- padding: 0 0 0 30px;
-}
-
- #stackpage .source ol li {
- font-family: Consolas, ""Courier New"", courier, monospace;
- white-space: pre;
- background-color: #fbfbfb;
- }
-
-#stackpage .frame .source .highlight {
- border-left: 3px solid red;
- margin-left: -3px;
- font-weight: bold;
-}
-
-#stackpage .frame .source .highlight li span {
- color: #FF0000;
-}
-
-#stackpage .source ol.collapsible li {
- color: #888;
-}
-
- #stackpage .source ol.collapsible li span {
- color: #606060;
- ");
- WriteLiteral(@"}
-
-#routingpage .subheader {
- padding: 5px;
- border-bottom: 1px #ddd solid;
-}
-
-.page table {
- border-collapse: separate;
- border-spacing: 0;
- margin: 0 0 20px;
-}
-
-.page th {
- vertical-align: bottom;
- padding: 10px 5px 5px 5px;
- font-weight: 400;
- color: #a0a0a0;
- text-align: left;
-}
-
-.page td {
- padding: 3px 10px;
-}
-
-.page th, .page td {
- border-right: 1px #ddd solid;
- border-bottom: 1px #ddd solid;
- border-left: 1px transparent solid;
- border-top: 1px transparent solid;
- box-sizing: border-box;
-}
-
- .page th:last-child, .page td:last-child {
- border-right: 1px transparent solid;
- }
-
-.page .length {
- text-align: right;
-}
-
-a {
- color: #1ba1e2;
- text-decoration: none;
-}
-
- a:hover {
- color: #13709e;
- text-decoration: underline;
- }
-
-.showRawException {
- cursor: pointer;
- color: #44c5f2;
- background-color: transparent;
- font-size: 1.2em;
- text-align: left; ");
+// <auto-generated/>
+#pragma warning disable 1591
+namespace Microsoft.AspNetCore.Diagnostics.RazorViews
+{
+ #line hidden
+ using System.Threading.Tasks;
+#nullable restore
+#line 1 "CompilationErrorPage.cshtml"
+using System;
+
+#line default
+#line hidden
+#nullable disable
+#nullable restore
+#line 2 "CompilationErrorPage.cshtml"
+using System.Globalization;
+
+#line default
+#line hidden
+#nullable disable
+#nullable restore
+#line 3 "CompilationErrorPage.cshtml"
+using System.Linq;
+
+#line default
+#line hidden
+#nullable disable
+#nullable restore
+#line 4 "CompilationErrorPage.cshtml"
+using System.Net;
+
+#line default
+#line hidden
+#nullable disable
+#nullable restore
+#line 5 "CompilationErrorPage.cshtml"
+using Microsoft.AspNetCore.Diagnostics;
+
+#line default
+#line hidden
+#nullable disable
+#nullable restore
+#line 6 "CompilationErrorPage.cshtml"
+using Microsoft.AspNetCore.Diagnostics.RazorViews;
+
+#line default
+#line hidden
+#nullable disable
+ internal class CompilationErrorPage : Microsoft.Extensions.RazorViews.BaseView
+ {
+ #pragma warning disable 1998
+ public async override global::System.Threading.Tasks.Task ExecuteAsync()
+ {
+#nullable restore
+#line 16 "CompilationErrorPage.cshtml"
+
+ Response.StatusCode = 500;
+ Response.ContentType = "text/html; charset=utf-8";
+ Response.ContentLength = null; // Clear any prior Content-Length
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral("<!DOCTYPE html>\r\n<html>\r\n <head>\r\n <meta charset=\"utf-8\" />\r\n <title>");
+#nullable restore
+#line 25 "CompilationErrorPage.cshtml"
+ Write(Resources.ErrorPageHtml_Title);
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(@"</title>
+ <style>
+ :root {
+ --color-text: #222;
+ --color-background: #fff;
+ --color-border: #ddd;
+ --color-link: #105e85;
+ --color-link-hover: #157eb0;
+
+ --color-heading-main: #44525e;
+ --color-heading-stacktrace: #363636;
+ --color-table-heading: #44525e;
+
+ --color-tab-link: #105e85;
+ --color-tab-selected: #fff;
+ --color-tab-selected-background: #105e85;
+
+ --color-code-background: #fbfbfb;
+ --color-code-highlight: #c70000;
+ --color-code-context-linenum: #606060;
+ --color-code-context: #606060;
+ --color-code-context-button-background: #ddd;
+}
+
+/* Intentional double at-signs here to escape properly when included in cshtml */
+");
+ WriteLiteral(@"@media (prefers-color-scheme: dark) {
+ :root {
+ --color-text: #dcdcdc;
+ --color-background: #222;
+ --color-border: #444;
+ --color-link: #4db7ea;
+ --color-link-hover: #88cfea;
+
+ --color-heading-main: #a9bac7;
+ --color-heading-stacktrace: #c7c7c7;
+ --color-table-heading: #a9bac7;
+
+ --color-tab-link: #4db7ea;
+ --color-tab-selected: #222;
+ --color-tab-selected-background: #4db7ea;
+
+ --color-code-background: #1c1c1c;
+ --color-code-highlight: #ff8787;
+ --color-code-context-linenum: #9B9B9B;
+ --color-code-context: #9B9B9B;
+ --color-code-context-button-background: #444;
+ }
+}
+
+body {
+ font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
+ font-size: .813em;
+ color: var(--color-text);
+ background-color: var(--color-background);
+}
+
+h1 {
+ color: var(--color-heading-main);
+ margin: 15px 0 15px 0;
+}
+
+h2 {
+ margin: 10px 5px 0 0;
+ padding:");
+ WriteLiteral(@" 5px;
+ border-bottom: 1px solid var(--color-border);
+}
+
+h3 {
+ color: var(--color-heading-stacktrace);
+ margin: 5px 5px 0 0;
+ font-weight: normal;
+}
+
+code {
+ font-family: Consolas, ""Courier New"", courier, monospace;
+ font-weight: bold;
+}
+
+a {
+ color: var(--color-link);
+ text-decoration: none;
+}
+a:hover {
+ color: var(--color-link-hover);
+ text-decoration: underline;
+}
+
+/* Exception title & message */
+body .titleerror {
+ padding: 3px 3px 6px 3px;
+ display: block;
+ font-size: 1.5em;
+ font-weight: 100;
+}
+
+/* Exception location */
+body .location {
+ margin: 3px 0 10px 30px;
+}
+
+/* Tab navigation */
+#header {
+ font-size: 18px;
+ padding: 15px 0;
+ border-top: 1px solid var(--color-border);
+ border-bottom: 1px solid var(--color-border);
+ margin-bottom: 0;
+}
+#header li {
+ display: inline;
+ margin: 5px;
+ padding: 5px;
+ color: var(--color-tab-link);
+ cursor: pointer;
+}
+#header .selected {
+ color");
+ WriteLiteral(@": var(--color-tab-selected);
+ background: var(--color-tab-selected-background);
+}
+
+/* Stack page */
+#stackpage .details {
+ font-size: 1.2em;
+ padding: 3px;
+}
+#stackpage ul {
+ list-style: none;
+ padding-left: 0;
+ margin: 0;
+}
+
+#stackpage .frame {
+ padding: 0;
+ margin: 0 0 0 30px;
+}
+#stackpage .frame h3 {
+ padding: 2px;
+ margin: 0;
+}
+
+/* Stack frame source */
+#stackpage .source {
+ padding: 0 0 0 30px;
+}
+#stackpage .source ol li {
+ font-family: Consolas, ""Courier New"", courier, monospace;
+ white-space: pre;
+ background-color: var(--color-code-background);
+}
+
+/* Stack frame source: highlighted line */
+#stackpage .source .highlight {
+ border-left: 3px solid var(--color-code-highlight);
+ margin-left: -3px;
+ font-weight: bold;
+}
+#stackpage .source .highlight li span {
+ color: var(--color-code-highlight);
+}
+
+/* Stack frame source: context lines */
+#stackpage .source .collapsible {
+ color: var(--color-code-context-li");
+ WriteLiteral(@"nenum);
+}
+#stackpage .source .collapsible li span {
+ color: var(--color-code-context);
+}
+
+.expandCollapseButton {
+ position: absolute;
+ left: 10px;
+ width: 16px;
+ height: 16px;
+ font-size: 10px;
+ color: inherit;
+ background: var(--color-code-context-button-background);
+ padding: 0;
+ border: 0;
+ cursor: pointer;
+}
+
+/* Table */
+.page table {
+ border-collapse: collapse;
+ margin: 0 0 20px;
+}
+.page th {
+ padding: 10px 10px 5px 10px;
+ color: var(--color-table-heading);
+ text-align: left;
+}
+.page td {
+ padding: 3px 10px;
+}
+.page tr {
+ border-bottom: 1px solid var(--color-border);
+}
+.page tr > :not(:last-child) {
+ border-right: 1px solid var(--color-border);
+}
+
+/* Raw exception details */
+.rawExceptionBlock {
+ font-size: 1.2em;
+ border-top: 1px solid var(--color-border);
+ border-bottom: 1px solid var(--color-border);
+}
+.showRawException {
+ display: inline-block;
+ color: var(--color-link);
+ backgr");
+ WriteLiteral(@"ound: transparent;
+ font: inherit;
+ border: 0;
+ padding: 10px 0;
+ cursor: pointer;
+}
+.showRawException:hover {
+ color: var(--color-link-hover);
+ text-decoration: underline;
+}
+
+ </style>
+ </head>
+ <body>
+ <h1>");
+#nullable restore
+#line 249 "CompilationErrorPage.cshtml"
+ Write(Resources.ErrorPageHtml_CompilationException);
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral("</h1>\r\n");
+#nullable restore
+#line 250 "CompilationErrorPage.cshtml"
+
+ var exceptionDetailId = "";
+
+
+#line default
+#line hidden
+#nullable disable
+#nullable restore
+#line 253 "CompilationErrorPage.cshtml"
+ for (var i = 0; i < Model.ErrorDetails.Count; i++)
+ {
+ var errorDetail = Model.ErrorDetails[i];
+ exceptionDetailId = "exceptionDetail" + i;
+
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <div id=\"stackpage\" class=\"page\">\r\n");
+#nullable restore
+#line 259 "CompilationErrorPage.cshtml"
+
+ var stackFrameCount = 0;
+ var frameId = "";
+ var fileName = errorDetail.StackFrames.FirstOrDefault()?.File;
+ if (!string.IsNullOrEmpty(fileName))
+ {
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <div class=\"titleerror\">");
+#nullable restore
+#line 265 "CompilationErrorPage.cshtml"
+ Write(fileName);
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral("</div>\r\n");
+#nullable restore
+#line 266 "CompilationErrorPage.cshtml"
+ }
+
+
+#line default
+#line hidden
+#nullable disable
+#nullable restore
+#line 268 "CompilationErrorPage.cshtml"
+ if (!string.IsNullOrEmpty(errorDetail.ErrorMessage))
+ {
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <div class=\"details\">");
+#nullable restore
+#line 270 "CompilationErrorPage.cshtml"
+ Write(errorDetail.ErrorMessage);
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral("</div>\r\n");
+#nullable restore
+#line 271 "CompilationErrorPage.cshtml"
+ }
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <br />\r\n <ul>\r\n");
+#nullable restore
+#line 274 "CompilationErrorPage.cshtml"
+ foreach (var frame in errorDetail.StackFrames)
+ {
+ stackFrameCount++;
+ frameId = "frame" + stackFrameCount;
+
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <li class=\"frame\"");
+ BeginWriteAttribute("id", " id=\"", 6892, "\"", 6905, 1);
+#nullable restore
+#line 279 "CompilationErrorPage.cshtml"
+WriteAttributeValue("", 6897, frameId, 6897, 8, false);
+
+#line default
+#line hidden
+#nullable disable
+ EndWriteAttribute();
+ WriteLiteral(">\r\n");
+#nullable restore
+#line 280 "CompilationErrorPage.cshtml"
+ if (!string.IsNullOrEmpty(frame.ErrorDetails))
+ {
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <h3>");
+#nullable restore
+#line 282 "CompilationErrorPage.cshtml"
+ Write(frame.ErrorDetails);
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral("</h3>\r\n");
+#nullable restore
+#line 283 "CompilationErrorPage.cshtml"
+ }
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral("\r\n");
+#nullable restore
+#line 285 "CompilationErrorPage.cshtml"
+ if (frame.Line != 0 && frame.ContextCode.Any())
+ {
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <button class=\"expandCollapseButton\" data-frameId=\"");
+#nullable restore
+#line 287 "CompilationErrorPage.cshtml"
+ Write(frameId);
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral("\">+</button>\r\n <div class=\"source\">\r\n");
+#nullable restore
+#line 289 "CompilationErrorPage.cshtml"
+ if (frame.PreContextCode.Any())
+ {
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <ol");
+ BeginWriteAttribute("start", " start=\"", 7488, "\"", 7517, 1);
+#nullable restore
+#line 291 "CompilationErrorPage.cshtml"
+WriteAttributeValue("", 7496, frame.PreContextLine, 7496, 21, false);
+
+#line default
+#line hidden
+#nullable disable
+ EndWriteAttribute();
+ WriteLiteral(" class=\"collapsible\">\r\n");
+#nullable restore
+#line 292 "CompilationErrorPage.cshtml"
+ foreach (var line in frame.PreContextCode)
+ {
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <li><span>");
+#nullable restore
+#line 294 "CompilationErrorPage.cshtml"
+ Write(line);
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral("</span></li>\r\n");
+#nullable restore
+#line 295 "CompilationErrorPage.cshtml"
+ }
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" </ol>\r\n");
+#nullable restore
+#line 297 "CompilationErrorPage.cshtml"
+ }
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <ol");
+ BeginWriteAttribute("start", " start=\"", 7898, "\"", 7917, 1);
+#nullable restore
+#line 298 "CompilationErrorPage.cshtml"
+WriteAttributeValue("", 7906, frame.Line, 7906, 11, false);
+
+#line default
+#line hidden
+#nullable disable
+ EndWriteAttribute();
+ WriteLiteral(" class=\"highlight\">\r\n");
+#nullable restore
+#line 299 "CompilationErrorPage.cshtml"
+ foreach (var line in frame.ContextCode)
+ {
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <li><span>");
+#nullable restore
+#line 301 "CompilationErrorPage.cshtml"
+ Write(line);
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral("</span></li>\r\n");
+#nullable restore
+#line 302 "CompilationErrorPage.cshtml"
+ }
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" </ol>\r\n");
+#nullable restore
+#line 304 "CompilationErrorPage.cshtml"
+ if (frame.PostContextCode.Any())
+ {
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <ol");
+ BeginWriteAttribute("start", " start=\'", 8344, "\'", 8369, 1);
+#nullable restore
+#line 306 "CompilationErrorPage.cshtml"
+WriteAttributeValue("", 8352, frame.Line + 1, 8352, 17, false);
+
+#line default
+#line hidden
+#nullable disable
+ EndWriteAttribute();
+ WriteLiteral(" class=\"collapsible\">\r\n");
+#nullable restore
+#line 307 "CompilationErrorPage.cshtml"
+ foreach (var line in frame.PostContextCode)
+ {
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <li><span>");
+#nullable restore
+#line 309 "CompilationErrorPage.cshtml"
+ Write(line);
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral("</span></li>\r\n");
+#nullable restore
+#line 310 "CompilationErrorPage.cshtml"
+ }
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" </ol>\r\n");
+#nullable restore
+#line 312 "CompilationErrorPage.cshtml"
+ }
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" </div>\r\n");
+#nullable restore
+#line 314 "CompilationErrorPage.cshtml"
+ }
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" </li>\r\n");
+#nullable restore
+#line 316 "CompilationErrorPage.cshtml"
+ }
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" </ul>\r\n <br />\r\n </div>\r\n");
+#nullable restore
+#line 320 "CompilationErrorPage.cshtml"
+ if (!string.IsNullOrEmpty(Model.CompiledContent[i]))
+ {
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral(" <div class=\"rawExceptionBlock\">\r\n <button class=\"showRawException\" data-exceptionDetailId=\"");
+#nullable restore
+#line 323 "CompilationErrorPage.cshtml"
+ Write(exceptionDetailId);
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral("\">Show compilation source</button>\r\n <div");
+ BeginWriteAttribute("id", " id=\"", 9178, "\"", 9201, 1);
+#nullable restore
+#line 324 "CompilationErrorPage.cshtml"
+WriteAttributeValue("", 9183, exceptionDetailId, 9183, 18, false);
+
+#line default
+#line hidden
+#nullable disable
+ EndWriteAttribute();
+ WriteLiteral(" class=\"rawExceptionDetails\">\r\n <pre class=\"rawExceptionStackTrace\">");
+#nullable restore
+#line 325 "CompilationErrorPage.cshtml"
+ Write(Model.CompiledContent[i]);
+
+#line default
+#line hidden
+#nullable disable
+ WriteLiteral("</pre>\r\n </div>\r\n </div>\r\n");
+#nullable restore
+#line 328 "CompilationErrorPage.cshtml"
+ }
+
+#line default
+#line hidden
+#nullable disable
+#nullable restore
+#line 328 "CompilationErrorPage.cshtml"
+
+ }
+
+#line default
+#line hidden
+#nullable disable
WriteLiteral(@"
- text-decoration: none;
- display: inline-block;
- border: 0;
- padding: 0;
-}
-
-.rawExceptionStackTrace {
- font-size: 1.2em;
-}
-
-.rawExceptionBlock {
- border-top: 1px #ddd solid;
- border-bottom: 1px #ddd solid;
-}
-
-.showRawExceptionContainer {
- margin-top: 10px;
- margin-bottom: 10px;
-}
-
-.expandCollapseButton {
- cursor: pointer;
- float: left;
- height: 16px;
- width: 16px;
- font-size: 10px;
- position: absolute;
- left: 10px;
- background-color: #eee;
- padding: 0;
- border: 0;
- margin: 0;
-}
-
-/* Intentional double at-signs here to escape properly when included in cshtml */
-");
- WriteLiteral(@"@media (prefers-color-scheme: dark) {
- body {
- color: #dcdcdc;
- background-color: #222;
- }
-
- h1 {
- color: #9dacb8;
- }
-
- h3 {
- color: #c7c7c7;
- }
-
- #header {
- border-top-color: #444;
- border-bottom-color: #444;
- }
-
- #header .selected {
- color: #222;
- }
-
- #stackpage .details {
- color: #000;
- }
-
- #stackpage .stackerror {
- border-bottom-color: #444;
- }
-
- #stackpage .source ol li {
- background-color: #1c1c1c;
- }
-
- #stackpage .frame .source .highlight {
- border-left-color: #C53731;
- }
-
- #stackpage .frame .source .highlight li span {
- color: #C53731;
- }
-
- #stackpage .source ol.collapsible li span {
- color: #9B9B9B;
- }
-
- #routingpage .subheader {
- border-bottom-color: #444;
- }
-
- .page th, .page td {
- border-right-color: #444;
- border-bottom-color: #444;
- }
-
- .rawExceptionB");
- WriteLiteral("lock {\r\n border-top-color: #444;\r\n border-bottom-color: #444;\r\n }\r\n\r\n .expandCollapseButton {\r\n background-color: #444;\r\n color: inherit;\r\n }\r\n}\r\n\r\n </style>\r\n </head>\r\n <body>\r\n <h1>");
-#nullable restore
-#line 303 "CompilationErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_CompilationException);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</h1>\r\n");
-#nullable restore
-#line 304 "CompilationErrorPage.cshtml"
-
- var exceptionDetailId = "";
-
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 307 "CompilationErrorPage.cshtml"
- for (var i = 0; i < Model.ErrorDetails.Count; i++)
- {
- var errorDetail = Model.ErrorDetails[i];
- exceptionDetailId = "exceptionDetail" + i;
-
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <div id=\"stackpage\" class=\"page\">\r\n");
-#nullable restore
-#line 313 "CompilationErrorPage.cshtml"
-
- var stackFrameCount = 0;
- var frameId = "";
- var fileName = errorDetail.StackFrames.FirstOrDefault()?.File;
- if (!string.IsNullOrEmpty(fileName))
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <div class=\"titleerror\">");
-#nullable restore
-#line 319 "CompilationErrorPage.cshtml"
- Write(fileName);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</div>\r\n");
-#nullable restore
-#line 320 "CompilationErrorPage.cshtml"
- }
-
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 322 "CompilationErrorPage.cshtml"
- if (!string.IsNullOrEmpty(errorDetail.ErrorMessage))
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <div class=\"details\">");
-#nullable restore
-#line 324 "CompilationErrorPage.cshtml"
- Write(errorDetail.ErrorMessage);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</div>\r\n");
-#nullable restore
-#line 325 "CompilationErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <br />\r\n <ul>\r\n");
-#nullable restore
-#line 328 "CompilationErrorPage.cshtml"
- foreach (var frame in errorDetail.StackFrames)
- {
- stackFrameCount++;
- frameId = "frame" + stackFrameCount;
-
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <li class=\"frame\"");
- BeginWriteAttribute("id", " id=\"", 6812, "\"", 6825, 1);
-#nullable restore
-#line 333 "CompilationErrorPage.cshtml"
-WriteAttributeValue("", 6817, frameId, 6817, 8, false);
-
-#line default
-#line hidden
-#nullable disable
- EndWriteAttribute();
- WriteLiteral(">\r\n");
-#nullable restore
-#line 334 "CompilationErrorPage.cshtml"
- if (!string.IsNullOrEmpty(frame.ErrorDetails))
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <h3>");
-#nullable restore
-#line 336 "CompilationErrorPage.cshtml"
- Write(frame.ErrorDetails);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</h3>\r\n");
-#nullable restore
-#line 337 "CompilationErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("\r\n");
-#nullable restore
-#line 339 "CompilationErrorPage.cshtml"
- if (frame.Line != 0 && frame.ContextCode.Any())
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <button class=\"expandCollapseButton\" data-frameId=\"");
-#nullable restore
-#line 341 "CompilationErrorPage.cshtml"
- Write(frameId);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("\">+</button>\r\n <div class=\"source\">\r\n");
-#nullable restore
-#line 343 "CompilationErrorPage.cshtml"
- if (frame.PreContextCode.Any())
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <ol");
- BeginWriteAttribute("start", " start=\"", 7408, "\"", 7437, 1);
-#nullable restore
-#line 345 "CompilationErrorPage.cshtml"
-WriteAttributeValue("", 7416, frame.PreContextLine, 7416, 21, false);
-
-#line default
-#line hidden
-#nullable disable
- EndWriteAttribute();
- WriteLiteral(" class=\"collapsible\">\r\n");
-#nullable restore
-#line 346 "CompilationErrorPage.cshtml"
- foreach (var line in frame.PreContextCode)
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <li><span>");
-#nullable restore
-#line 348 "CompilationErrorPage.cshtml"
- Write(line);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</span></li>\r\n");
-#nullable restore
-#line 349 "CompilationErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </ol>\r\n");
-#nullable restore
-#line 351 "CompilationErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <ol");
- BeginWriteAttribute("start", " start=\"", 7818, "\"", 7837, 1);
-#nullable restore
-#line 352 "CompilationErrorPage.cshtml"
-WriteAttributeValue("", 7826, frame.Line, 7826, 11, false);
-
-#line default
-#line hidden
-#nullable disable
- EndWriteAttribute();
- WriteLiteral(" class=\"highlight\">\r\n");
-#nullable restore
-#line 353 "CompilationErrorPage.cshtml"
- foreach (var line in frame.ContextCode)
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <li><span>");
-#nullable restore
-#line 355 "CompilationErrorPage.cshtml"
- Write(line);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</span></li>\r\n");
-#nullable restore
-#line 356 "CompilationErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </ol>\r\n");
-#nullable restore
-#line 358 "CompilationErrorPage.cshtml"
- if (frame.PostContextCode.Any())
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <ol");
- BeginWriteAttribute("start", " start=\'", 8264, "\'", 8289, 1);
-#nullable restore
-#line 360 "CompilationErrorPage.cshtml"
-WriteAttributeValue("", 8272, frame.Line + 1, 8272, 17, false);
-
-#line default
-#line hidden
-#nullable disable
- EndWriteAttribute();
- WriteLiteral(" class=\"collapsible\">\r\n");
-#nullable restore
-#line 361 "CompilationErrorPage.cshtml"
- foreach (var line in frame.PostContextCode)
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <li><span>");
-#nullable restore
-#line 363 "CompilationErrorPage.cshtml"
- Write(line);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</span></li>\r\n");
-#nullable restore
-#line 364 "CompilationErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </ol>\r\n");
-#nullable restore
-#line 366 "CompilationErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </div>\r\n");
-#nullable restore
-#line 368 "CompilationErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </li>\r\n");
-#nullable restore
-#line 370 "CompilationErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </ul>\r\n <br />\r\n </div>\r\n");
-#nullable restore
-#line 374 "CompilationErrorPage.cshtml"
- if (!string.IsNullOrEmpty(Model.CompiledContent[i]))
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <div class=\"rawExceptionBlock\">\r\n <div class=\"showRawExceptionContainer\">\r\n <button class=\"showRawException\" data-exceptionDetailId=\"");
-#nullable restore
-#line 378 "CompilationErrorPage.cshtml"
- Write(exceptionDetailId);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("\">Show compilation source</button>\r\n </div>\r\n <div");
- BeginWriteAttribute("id", " id=\"", 9191, "\"", 9214, 1);
-#nullable restore
-#line 380 "CompilationErrorPage.cshtml"
-WriteAttributeValue("", 9196, exceptionDetailId, 9196, 18, false);
-
-#line default
-#line hidden
-#nullable disable
- EndWriteAttribute();
- WriteLiteral(" class=\"rawExceptionDetails\">\r\n <pre class=\"rawExceptionStackTrace\">");
-#nullable restore
-#line 381 "CompilationErrorPage.cshtml"
- Write(Model.CompiledContent[i]);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</pre>\r\n </div>\r\n </div>\r\n");
-#nullable restore
-#line 384 "CompilationErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 384 "CompilationErrorPage.cshtml"
-
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(@"
- <script>
- //<!--
- (function (window, undefined) {
- ""use strict"";
-
- function ns(selector, element) {
- return new NodeCollection(selector, element);
- }
-
- function NodeCollection(selector, element) {
- this.items = [];
- element = element || window.document;
-
- var nodeList;
-
- if (typeof (selector) === ""string"") {
- nodeList = element.querySelectorAll(selector);
- for (var i = 0, l = nodeList.length; i < l; i++) {
- this.items.push(nodeList.item(i));
- }
- }
- }
-
- NodeCollection.prototype = {
- each: function (callback) {
- for (var i = 0, l = this.items.length; i < l; i++) {
- callback(this.items[i], i);
- }
- return this;
- },
-
- children: function (selector) {
- var children = [];
-
- this.each(function (el) {
- children = children.concat(ns(selector, e");
- WriteLiteral(@"l).items);
- });
-
- return ns(children);
- },
-
- hide: function () {
- this.each(function (el) {
- el.style.display = ""none"";
- });
-
- return this;
- },
-
- toggle: function () {
- this.each(function (el) {
- el.style.display = el.style.display === ""none"" ? """" : ""none"";
- });
-
- return this;
- },
-
- show: function () {
- this.each(function (el) {
- el.style.display = """";
- });
-
- return this;
- },
-
- addClass: function (className) {
- this.each(function (el) {
- var existingClassName = el.className,
- classNames;
- if (!existingClassName) {
- el.className = className;
- } else {
- classNames = existingClassName.split("" "");
- if (classNames.indexOf(classNa");
- WriteLiteral(@"me) < 0) {
- el.className = existingClassName + "" "" + className;
- }
- }
- });
-
- return this;
- },
-
- removeClass: function (className) {
- this.each(function (el) {
- var existingClassName = el.className,
- classNames, index;
- if (existingClassName === className) {
- el.className = """";
- } else if (existingClassName) {
- classNames = existingClassName.split("" "");
- index = classNames.indexOf(className);
- if (index > 0) {
- classNames.splice(index, 1);
- el.className = classNames.join("" "");
- }
- }
- });
-
- return this;
- },
-
- attr: function (name) {
- if (this.items.length === 0) {
- return null;
- }
-
- ");
- WriteLiteral(@" return this.items[0].getAttribute(name);
- },
-
- on: function (eventName, handler) {
- this.each(function (el, idx) {
- var callback = function (e) {
- e = e || window.event;
- if (!e.which && e.keyCode) {
- e.which = e.keyCode; // Normalize IE8 key events
- }
- handler.apply(el, [e]);
- };
-
- if (el.addEventListener) { // DOM Events
- el.addEventListener(eventName, callback, false);
- } else if (el.attachEvent) { // IE8 events
- el.attachEvent(""on"" + eventName, callback);
- } else {
- el[""on"" + type] = callback;
- }
- });
-
- return this;
- },
-
- click: function (handler) {
- return this.on(""click"", handler);
- },
-
- keypress: function (handler) {
- return this.o");
- WriteLiteral(@"n(""keypress"", handler);
- }
- };
-
- function frame(el) {
- ns("".source .collapsible"", el).toggle();
- }
-
- function expandCollapseButton(el) {
- var frameId = el.getAttribute(""data-frameId"");
- frame(document.getElementById(frameId));
- if (el.innerText === ""+"") {
- el.innerText = ""-"";
- }
- else {
- el.innerText = ""+"";
- }
- }
-
- function tab(el) {
- var unselected = ns(""#header .selected"").removeClass(""selected"").attr(""id"");
- var selected = ns(""#"" + el.id).addClass(""selected"").attr(""id"");
-
- ns(""#"" + unselected + ""page"").hide();
- ns(""#"" + selected + ""page"").show();
- }
-
- ns("".rawExceptionDetails"").hide();
- ns("".collapsible"").hide();
- ns("".page"").hide();
- ns(""#stackpage"").show();
-
- ns("".expandCollapseButton"")
- .click(function () {
- expandCollapseButton(this);
- })
- .keypress(function (e) {
- if (e.which === 13)");
- WriteLiteral(@" {
- expandCollapseButton(this);
- }
- });
-
- ns(""#header li"")
- .click(function () {
- tab(this);
- })
- .keypress(function (e) {
- if (e.which === 13) {
- tab(this);
- }
- });
-
- ns("".showRawException"")
- .click(function () {
- var exceptionDetailId = this.getAttribute(""data-exceptionDetailId"");
- ns(""#"" + exceptionDetailId).toggle();
- });
-})(window);
- //-->
- </script>
- </body>
-</html>
-");
- }
- #pragma warning restore 1998
-#nullable restore
-#line 8 "CompilationErrorPage.cshtml"
-
- public CompilationErrorPage(CompilationErrorPageModel model)
- {
- Model = model;
- }
-
- public CompilationErrorPageModel Model { get; set; }
-
-#line default
-#line hidden
-#nullable disable
- }
-}
-#pragma warning restore 1591
+ <script>
+ //<!--
+ (function (window, undefined) {
+ ""use strict"";
+
+ function ns(selector, element) {
+ return new NodeCollection(selector, element);
+ }
+
+ function NodeCollection(selector, element) {
+ this.items = [];
+ element = element || window.document;
+
+ var nodeList;
+
+ if (typeof (selector) === ""string"") {
+ nodeList = element.querySelectorAll(selector);
+ for (var i = 0, l = nodeList.length; i < l; i++) {
+ this.items.push(nodeList.item(i));
+ }
+ }
+ }
+
+ NodeCollection.prototype = {
+ each: function (callback) {
+ for (var i = 0, l = this.items.length; i < l; i++) {
+ callback(this.items[i], i);
+ }
+ return this;
+ },
+
+ children: function (selector) {
+ var children = [];
+
+ this.each(function (el) {
+ children = children.concat(ns(selector, e");
+ WriteLiteral(@"l).items);
+ });
+
+ return ns(children);
+ },
+
+ hide: function () {
+ this.each(function (el) {
+ el.style.display = ""none"";
+ });
+
+ return this;
+ },
+
+ toggle: function () {
+ this.each(function (el) {
+ el.style.display = el.style.display === ""none"" ? """" : ""none"";
+ });
+
+ return this;
+ },
+
+ show: function () {
+ this.each(function (el) {
+ el.style.display = """";
+ });
+
+ return this;
+ },
+
+ addClass: function (className) {
+ this.each(function (el) {
+ var existingClassName = el.className,
+ classNames;
+ if (!existingClassName) {
+ el.className = className;
+ } else {
+ classNames = existingClassName.split("" "");
+ if (classNames.indexOf(classNa");
+ WriteLiteral(@"me) < 0) {
+ el.className = existingClassName + "" "" + className;
+ }
+ }
+ });
+
+ return this;
+ },
+
+ removeClass: function (className) {
+ this.each(function (el) {
+ var existingClassName = el.className,
+ classNames, index;
+ if (existingClassName === className) {
+ el.className = """";
+ } else if (existingClassName) {
+ classNames = existingClassName.split("" "");
+ index = classNames.indexOf(className);
+ if (index > 0) {
+ classNames.splice(index, 1);
+ el.className = classNames.join("" "");
+ }
+ }
+ });
+
+ return this;
+ },
+
+ attr: function (name) {
+ if (this.items.length === 0) {
+ return null;
+ }
+
+ ");
+ WriteLiteral(@" return this.items[0].getAttribute(name);
+ },
+
+ on: function (eventName, handler) {
+ this.each(function (el, idx) {
+ var callback = function (e) {
+ e = e || window.event;
+ if (!e.which && e.keyCode) {
+ e.which = e.keyCode; // Normalize IE8 key events
+ }
+ handler.apply(el, [e]);
+ };
+
+ if (el.addEventListener) { // DOM Events
+ el.addEventListener(eventName, callback, false);
+ } else if (el.attachEvent) { // IE8 events
+ el.attachEvent(""on"" + eventName, callback);
+ } else {
+ el[""on"" + type] = callback;
+ }
+ });
+
+ return this;
+ },
+
+ click: function (handler) {
+ return this.on(""click"", handler);
+ },
+
+ keypress: function (handler) {
+ return this.o");
+ WriteLiteral(@"n(""keypress"", handler);
+ }
+ };
+
+ function frame(el) {
+ ns("".source .collapsible"", el).toggle();
+ }
+
+ function expandCollapseButton(el) {
+ var frameId = el.getAttribute(""data-frameId"");
+ frame(document.getElementById(frameId));
+ if (el.innerText === ""+"") {
+ el.innerText = ""-"";
+ }
+ else {
+ el.innerText = ""+"";
+ }
+ }
+
+ function tab(el) {
+ var unselected = ns(""#header .selected"").removeClass(""selected"").attr(""id"");
+ var selected = ns(""#"" + el.id).addClass(""selected"").attr(""id"");
+
+ ns(""#"" + unselected + ""page"").hide();
+ ns(""#"" + selected + ""page"").show();
+ }
+
+ ns("".rawExceptionDetails"").hide();
+ ns("".collapsible"").hide();
+ ns("".page"").hide();
+ ns(""#stackpage"").show();
+
+ ns("".expandCollapseButton"")
+ .click(function () {
+ expandCollapseButton(this);
+ })
+ .keypress(function (e) {
+ if (e.which === 13)");
+ WriteLiteral(@" {
+ expandCollapseButton(this);
+ }
+ });
+
+ ns(""#header li"")
+ .click(function () {
+ tab(this);
+ })
+ .keypress(function (e) {
+ if (e.which === 13) {
+ tab(this);
+ }
+ });
+
+ ns("".showRawException"")
+ .click(function () {
+ var exceptionDetailId = this.getAttribute(""data-exceptionDetailId"");
+ ns(""#"" + exceptionDetailId).toggle();
+ });
+})(window);
+ //-->
+ </script>
+ </body>
+</html>
+");
+ }
+ #pragma warning restore 1998
+#nullable restore
+#line 8 "CompilationErrorPage.cshtml"
+
+ public CompilationErrorPage(CompilationErrorPageModel model)
+ {
+ Model = model;
+ }
+
+ public CompilationErrorPageModel Model { get; set; }
+
+#line default
+#line hidden
+#nullable disable
+ }
+}
+#pragma warning restore 1591