diff options
author | Patrick Westerhoff <PatrickWesterhoff@gmail.com> | 2022-11-03 01:37:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 01:37:42 +0300 |
commit | fb6b2e25211f9d310aa03edfbda9e38a066960b1 (patch) | |
tree | 6e5b0f12ae5ea14ae90a75266e64a41f72df471a | |
parent | 0f517603dc0cf996f58ccd67fd12b513794de5a4 (diff) |
Update for more accessible colors in dev exception page (#44798)
Update the colors used in the developer exception pages to ensure
higher contrast ratios for better accessibility. This introduces CSS
variables to the styling in order to provide a better maintainability
of the colors for both light and dark mode.
- Introduce CSS variables for all used colors, to be overwritten in dark
mode with dark mode specific values.
- Restructure the CSS file to keep related components closer together,
and add comments to provide guidance.
- Remove unused CSS rules and classes.
5 files changed, 2618 insertions, 2757 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 diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.cshtml b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.cshtml index 705f60f6f4..2bb63657e2 100644 --- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.cshtml +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorPage.cshtml @@ -102,9 +102,7 @@ @if (!string.IsNullOrEmpty(Model.CompiledContent[i])) { <div class="rawExceptionBlock"> - <div class="showRawExceptionContainer"> - <button class="showRawException" data-exceptionDetailId="@exceptionDetailId">Show compilation source</button> - </div> + <button class="showRawException" data-exceptionDetailId="@exceptionDetailId">Show compilation source</button> <div id="@exceptionDetailId" class="rawExceptionDetails"> <pre class="rawExceptionStackTrace">@Model.CompiledContent[i]</pre> </div> diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.Designer.cs b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.Designer.cs index e82b4b93b3..709348abb6 100644 --- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.Designer.cs +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.Designer.cs @@ -1,1645 +1,1604 @@ -// <auto-generated/>
-#pragma warning disable 1591
-namespace Microsoft.AspNetCore.Diagnostics.RazorViews
-{
- #line hidden
- using System.Threading.Tasks;
-#nullable restore
-#line 1 "ErrorPage.cshtml"
-using System;
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 2 "ErrorPage.cshtml"
-using System.Globalization;
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 3 "ErrorPage.cshtml"
-using System.Linq;
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 4 "ErrorPage.cshtml"
-using System.Net;
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 5 "ErrorPage.cshtml"
-using System.Reflection;
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 6 "ErrorPage.cshtml"
-using Microsoft.AspNetCore.Diagnostics.RazorViews;
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 7 "ErrorPage.cshtml"
-using Microsoft.AspNetCore.Diagnostics;
-
-#line default
-#line hidden
-#nullable disable
- internal class ErrorPage : Microsoft.Extensions.RazorViews.BaseView
- {
- #pragma warning disable 1998
- public async override global::System.Threading.Tasks.Task ExecuteAsync()
- {
-#nullable restore
-#line 17 "ErrorPage.cshtml"
-
- // TODO: Response.ReasonPhrase = "Internal Server Error";
- Response.ContentType = "text/html; charset=utf-8";
- string? location = string.Empty;
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("<!DOCTYPE html>\r\n<html");
- BeginWriteAttribute("lang", " lang=\"", 537, "\"", 598, 1);
-#nullable restore
-#line 23 "ErrorPage.cshtml"
-WriteAttributeValue("", 544, CultureInfo.CurrentUICulture.TwoLetterISOLanguageName, 544, 54, false);
-
-#line default
-#line hidden
-#nullable disable
- EndWriteAttribute();
- WriteLiteral(" xmlns=\"http://www.w3.org/1999/xhtml\">\r\n <head>\r\n <meta charset=\"utf-8\" />\r\n <title>");
-#nullable restore
-#line 26 "ErrorPage.cshtml"
- Write(Model.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;
");
- 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 304 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_UnhandledException);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</h1>\r\n");
-#nullable restore
-#line 305 "ErrorPage.cshtml"
- foreach (var errorDetail in Model.ErrorDetails)
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <div class=\"titleerror\">");
-#nullable restore
-#line 307 "ErrorPage.cshtml"
- Write(errorDetail.Error!.GetType().Name);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(": ");
-#nullable restore
-#line 307 "ErrorPage.cshtml"
- Output.Write(HtmlEncodeAndReplaceLineBreaks(errorDetail.Error.Message));
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</div>\r\n");
-#nullable restore
-#line 308 "ErrorPage.cshtml"
-
- var firstFrame = errorDetail.StackFrames.FirstOrDefault();
- if (firstFrame != null)
- {
- location = firstFrame.Function;
- }
- if (!string.IsNullOrEmpty(location) && firstFrame != null && !string.IsNullOrEmpty(firstFrame.File))
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <p class=\"location\">");
-#nullable restore
-#line 316 "ErrorPage.cshtml"
- Write(location);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" in <code");
- BeginWriteAttribute("title", " title=\"", 6360, "\"", 6384, 1);
-#nullable restore
-#line 316 "ErrorPage.cshtml"
-WriteAttributeValue("", 6368, firstFrame.File, 6368, 16, false);
-
-#line default
-#line hidden
-#nullable disable
- EndWriteAttribute();
- WriteLiteral(">");
-#nullable restore
-#line 316 "ErrorPage.cshtml"
- Write(System.IO.Path.GetFileName(firstFrame.File));
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</code>, line ");
-#nullable restore
-#line 316 "ErrorPage.cshtml"
- Write(firstFrame.Line);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</p>\r\n");
-#nullable restore
-#line 317 "ErrorPage.cshtml"
- }
- else if (!string.IsNullOrEmpty(location))
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <p class=\"location\">");
-#nullable restore
-#line 320 "ErrorPage.cshtml"
- Write(location);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</p>\r\n");
-#nullable restore
-#line 321 "ErrorPage.cshtml"
- }
- else
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <p class=\"location\">");
-#nullable restore
-#line 324 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_UnknownLocation);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</p>\r\n");
-#nullable restore
-#line 325 "ErrorPage.cshtml"
- }
-
- var reflectionTypeLoadException = errorDetail.Error as ReflectionTypeLoadException;
- if (reflectionTypeLoadException != null)
- {
- if (reflectionTypeLoadException.LoaderExceptions.Length > 0)
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <h3>Loader Exceptions:</h3>\r\n <ul>\r\n");
-#nullable restore
-#line 334 "ErrorPage.cshtml"
- foreach (var ex in reflectionTypeLoadException.LoaderExceptions)
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <li>");
-#nullable restore
-#line 336 "ErrorPage.cshtml"
- Write(ex!.Message);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</li>\r\n");
-#nullable restore
-#line 337 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </ul>\r\n");
-#nullable restore
-#line 339 "ErrorPage.cshtml"
- }
- }
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <ul id=\"header\">\r\n <li id=\"stack\" tabindex=\"1\" class=\"selected\">\r\n ");
-#nullable restore
-#line 344 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_StackButton);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("\r\n </li>\r\n <li id=\"query\" tabindex=\"2\">\r\n ");
-#nullable restore
-#line 347 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_QueryButton);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("\r\n </li>\r\n <li id=\"cookies\" tabindex=\"3\">\r\n ");
-#nullable restore
-#line 350 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_CookiesButton);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("\r\n </li>\r\n <li id=\"headers\" tabindex=\"4\">\r\n ");
-#nullable restore
-#line 353 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_HeadersButton);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("\r\n </li>\r\n <li id=\"routing\" tabindex=\"5\">\r\n ");
-#nullable restore
-#line 356 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_RoutingButton);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("\r\n </li>\r\n </ul>\r\n\r\n <div id=\"stackpage\" class=\"page\">\r\n <ul>\r\n");
-#nullable restore
-#line 362 "ErrorPage.cshtml"
-
- var exceptionCount = 0;
- var stackFrameCount = 0;
- var exceptionDetailId = "";
- var frameId = "";
-
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 368 "ErrorPage.cshtml"
- foreach (var errorDetail in Model.ErrorDetails)
- {
- exceptionCount++;
- exceptionDetailId = "exceptionDetail" + exceptionCount;
-
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <li>\r\n <h2 class=\"stackerror\">");
-#nullable restore
-#line 374 "ErrorPage.cshtml"
- Write(errorDetail.Error!.GetType().Name);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(": ");
-#nullable restore
-#line 374 "ErrorPage.cshtml"
- Write(errorDetail.Error.Message);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</h2>\r\n <ul>\r\n");
-#nullable restore
-#line 376 "ErrorPage.cshtml"
- foreach (var frame in errorDetail.StackFrames)
- {
- stackFrameCount++;
- frameId = "frame" + stackFrameCount;
-
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <li class=\"frame\"");
- BeginWriteAttribute("id", " id=\"", 8937, "\"", 8950, 1);
-#nullable restore
-#line 381 "ErrorPage.cshtml"
-WriteAttributeValue("", 8942, frameId, 8942, 8, false);
-
-#line default
-#line hidden
-#nullable disable
- EndWriteAttribute();
- WriteLiteral(">\r\n");
-#nullable restore
-#line 382 "ErrorPage.cshtml"
- if (string.IsNullOrEmpty(frame.File))
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <h3>");
-#nullable restore
-#line 384 "ErrorPage.cshtml"
- Write(frame.Function);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</h3>\r\n");
-#nullable restore
-#line 385 "ErrorPage.cshtml"
- }
- else
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <h3>");
-#nullable restore
-#line 388 "ErrorPage.cshtml"
- Write(frame.Function);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" in <code");
- BeginWriteAttribute("title", " title=\"", 9323, "\"", 9342, 1);
-#nullable restore
-#line 388 "ErrorPage.cshtml"
-WriteAttributeValue("", 9331, frame.File, 9331, 11, false);
-
-#line default
-#line hidden
-#nullable disable
- EndWriteAttribute();
- WriteLiteral(">");
-#nullable restore
-#line 388 "ErrorPage.cshtml"
- Write(System.IO.Path.GetFileName(frame.File));
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</code></h3>\r\n");
-#nullable restore
-#line 389 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("\r\n");
-#nullable restore
-#line 391 "ErrorPage.cshtml"
- if (frame.Line != 0 && frame.ContextCode.Any())
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <button class=\"expandCollapseButton\" data-frameId=\"");
-#nullable restore
-#line 393 "ErrorPage.cshtml"
- Write(frameId);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("\">+</button>\r\n <div class=\"source\">\r\n");
-#nullable restore
-#line 395 "ErrorPage.cshtml"
- if (frame.PreContextCode.Any())
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <ol");
- BeginWriteAttribute("start", " start=\"", 9914, "\"", 9943, 1);
-#nullable restore
-#line 397 "ErrorPage.cshtml"
-WriteAttributeValue("", 9922, frame.PreContextLine, 9922, 21, false);
-
-#line default
-#line hidden
-#nullable disable
- EndWriteAttribute();
- WriteLiteral(" class=\"collapsible\">\r\n");
-#nullable restore
-#line 398 "ErrorPage.cshtml"
- foreach (var line in frame.PreContextCode)
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <li><span>");
-#nullable restore
-#line 400 "ErrorPage.cshtml"
- Write(line);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</span></li>\r\n");
-#nullable restore
-#line 401 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </ol>\r\n");
-#nullable restore
-#line 403 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("\r\n <ol");
- BeginWriteAttribute("start", " start=\"", 10410, "\"", 10429, 1);
-#nullable restore
-#line 405 "ErrorPage.cshtml"
-WriteAttributeValue("", 10418, frame.Line, 10418, 11, false);
-
-#line default
-#line hidden
-#nullable disable
- EndWriteAttribute();
- WriteLiteral(" class=\"highlight\">\r\n");
-#nullable restore
-#line 406 "ErrorPage.cshtml"
- foreach (var line in frame.ContextCode)
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <li><span>");
-#nullable restore
-#line 408 "ErrorPage.cshtml"
- Write(line);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</span></li>\r\n");
-#nullable restore
-#line 409 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </ol>\r\n\r\n");
-#nullable restore
-#line 412 "ErrorPage.cshtml"
- if (frame.PostContextCode.Any())
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <ol");
- BeginWriteAttribute("start", " start=\'", 10954, "\'", 10979, 1);
-#nullable restore
-#line 414 "ErrorPage.cshtml"
-WriteAttributeValue("", 10962, frame.Line + 1, 10962, 17, false);
-
-#line default
-#line hidden
-#nullable disable
- EndWriteAttribute();
- WriteLiteral(" class=\"collapsible\">\r\n");
-#nullable restore
-#line 415 "ErrorPage.cshtml"
- foreach (var line in frame.PostContextCode)
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <li><span>");
-#nullable restore
-#line 417 "ErrorPage.cshtml"
- Write(line);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</span></li>\r\n");
-#nullable restore
-#line 418 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </ol>\r\n");
-#nullable restore
-#line 420 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </div>\r\n");
-#nullable restore
-#line 422 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </li>\r\n");
-#nullable restore
-#line 424 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(@" </ul>
- </li>
- <li>
- <br />
- <div class=""rawExceptionBlock"">
- <div class=""showRawExceptionContainer"">
- <button class=""showRawException"" data-exceptionDetailId=""");
-#nullable restore
-#line 431 "ErrorPage.cshtml"
- Write(exceptionDetailId);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("\">Show raw exception details</button>\r\n </div>\r\n <div");
- BeginWriteAttribute("id", " id=\"", 12011, "\"", 12034, 1);
-#nullable restore
-#line 433 "ErrorPage.cshtml"
-WriteAttributeValue("", 12016, exceptionDetailId, 12016, 18, false);
-
-#line default
-#line hidden
-#nullable disable
- EndWriteAttribute();
- WriteLiteral(" class=\"rawExceptionDetails\">\r\n <pre class=\"rawExceptionStackTrace\">");
-#nullable restore
-#line 434 "ErrorPage.cshtml"
- Write(errorDetail.Error.ToString());
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</pre>\r\n </div>\r\n </div>\r\n </li>\r\n");
-#nullable restore
-#line 438 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </ul>\r\n </div>\r\n\r\n <div id=\"querypage\" class=\"page\">\r\n");
-#nullable restore
-#line 443 "ErrorPage.cshtml"
- if (Model.Query.Any())
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <table>\r\n <thead>\r\n <tr>\r\n <th>");
-#nullable restore
-#line 448 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_VariableColumn);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</th>\r\n <th>");
-#nullable restore
-#line 449 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_ValueColumn);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n");
-#nullable restore
-#line 453 "ErrorPage.cshtml"
- foreach (var kv in Model.Query.OrderBy(kv => kv.Key))
- {
- foreach (var v in kv.Value)
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <tr>\r\n <td>");
-#nullable restore
-#line 458 "ErrorPage.cshtml"
- Write(kv.Key);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n <td>");
-#nullable restore
-#line 459 "ErrorPage.cshtml"
- Write(v);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n </tr>\r\n");
-#nullable restore
-#line 461 "ErrorPage.cshtml"
- }
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </tbody>\r\n </table>\r\n");
-#nullable restore
-#line 465 "ErrorPage.cshtml"
- }
- else
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <p>");
-#nullable restore
-#line 468 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_NoQueryStringData);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</p>\r\n");
-#nullable restore
-#line 469 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </div>\r\n\r\n <div id=\"cookiespage\" class=\"page\">\r\n");
-#nullable restore
-#line 473 "ErrorPage.cshtml"
- if (Model.Cookies.Any())
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <table>\r\n <thead>\r\n <tr>\r\n <th>");
-#nullable restore
-#line 478 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_VariableColumn);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</th>\r\n <th>");
-#nullable restore
-#line 479 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_ValueColumn);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n");
-#nullable restore
-#line 483 "ErrorPage.cshtml"
- foreach (var kv in Model.Cookies.OrderBy(kv => kv.Key))
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <tr>\r\n <td>");
-#nullable restore
-#line 486 "ErrorPage.cshtml"
- Write(kv.Key);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n <td>");
-#nullable restore
-#line 487 "ErrorPage.cshtml"
- Write(kv.Value);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n </tr>\r\n");
-#nullable restore
-#line 489 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </tbody>\r\n </table>\r\n");
-#nullable restore
-#line 492 "ErrorPage.cshtml"
- }
- else
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <p>");
-#nullable restore
-#line 495 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_NoCookieData);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</p>\r\n");
-#nullable restore
-#line 496 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </div>\r\n\r\n <div id=\"headerspage\" class=\"page\">\r\n");
-#nullable restore
-#line 500 "ErrorPage.cshtml"
- if (Model.Headers.Any())
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <table>\r\n <thead>\r\n <tr>\r\n <th>");
-#nullable restore
-#line 505 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_VariableColumn);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</th>\r\n <th>");
-#nullable restore
-#line 506 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_ValueColumn);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n");
-#nullable restore
-#line 510 "ErrorPage.cshtml"
- foreach (var kv in Model.Headers.OrderBy(kv => kv.Key))
- {
- foreach (var v in kv.Value)
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <tr>\r\n <td>");
-#nullable restore
-#line 515 "ErrorPage.cshtml"
- Write(kv.Key);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n <td>");
-#nullable restore
-#line 516 "ErrorPage.cshtml"
- Write(v);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n </tr>\r\n");
-#nullable restore
-#line 518 "ErrorPage.cshtml"
- }
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </tbody>\r\n </table>\r\n");
-#nullable restore
-#line 522 "ErrorPage.cshtml"
- }
- else
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <p>");
-#nullable restore
-#line 525 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_NoHeaderData);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</p>\r\n");
-#nullable restore
-#line 526 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </div>\r\n\r\n <div id=\"routingpage\" class=\"page\">\r\n <h2 class=\"subheader\">");
-#nullable restore
-#line 530 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_Endpoint);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</h2>\r\n");
-#nullable restore
-#line 531 "ErrorPage.cshtml"
- if (Model.Endpoint != null)
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <table>\r\n <thead>\r\n <tr>\r\n <th>");
-#nullable restore
-#line 536 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_NameColumn);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</th>\r\n <th>");
-#nullable restore
-#line 537 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_ValueColumn);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr>\r\n <td>");
-#nullable restore
-#line 542 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_EndpointDisplayName);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n <td>");
-#nullable restore
-#line 543 "ErrorPage.cshtml"
- Write(Model.Endpoint.DisplayName);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n </tr>\r\n");
-#nullable restore
-#line 545 "ErrorPage.cshtml"
- if (!string.IsNullOrEmpty(Model.Endpoint.RoutePattern))
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <tr>\r\n <td>");
-#nullable restore
-#line 548 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_EndpointRoutePattern);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n <td>");
-#nullable restore
-#line 549 "ErrorPage.cshtml"
- Write(Model.Endpoint.RoutePattern);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n </tr>\r\n");
-#nullable restore
-#line 551 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 552 "ErrorPage.cshtml"
- if (Model.Endpoint.Order != null)
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <tr>\r\n <td>");
-#nullable restore
-#line 555 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_EndpointRouteOrder);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n <td>");
-#nullable restore
-#line 556 "ErrorPage.cshtml"
- Write(Model.Endpoint.Order);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n </tr>\r\n");
-#nullable restore
-#line 558 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
-#nullable restore
-#line 559 "ErrorPage.cshtml"
- if (!string.IsNullOrEmpty(Model.Endpoint.HttpMethods))
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <tr>\r\n <td>");
-#nullable restore
-#line 562 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_EndpointRouteHttpMethod);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n <td>");
-#nullable restore
-#line 563 "ErrorPage.cshtml"
- Write(Model.Endpoint.HttpMethods);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n </tr>\r\n");
-#nullable restore
-#line 565 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </tbody>\r\n </table>\r\n");
-#nullable restore
-#line 568 "ErrorPage.cshtml"
- }
- else
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <p>");
-#nullable restore
-#line 571 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_NoEndpoint);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</p>\r\n");
-#nullable restore
-#line 572 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <h2 class=\"subheader\">");
-#nullable restore
-#line 573 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_RouteValues);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</h2>\r\n");
-#nullable restore
-#line 574 "ErrorPage.cshtml"
- if (Model.RouteValues != null && Model.RouteValues.Any())
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <table>\r\n <thead>\r\n <tr>\r\n <th>");
-#nullable restore
-#line 579 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_VariableColumn);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</th>\r\n <th>");
-#nullable restore
-#line 580 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_ValueColumn);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n");
-#nullable restore
-#line 584 "ErrorPage.cshtml"
- foreach (var kv in Model.RouteValues.OrderBy(kv => kv.Key))
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <tr>\r\n <td>");
-#nullable restore
-#line 587 "ErrorPage.cshtml"
- Write(kv.Key);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n <td>");
-#nullable restore
-#line 588 "ErrorPage.cshtml"
- Write(kv.Value!);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</td>\r\n </tr>\r\n");
-#nullable restore
-#line 590 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" </tbody>\r\n </table>\r\n");
-#nullable restore
-#line 593 "ErrorPage.cshtml"
- }
- else
- {
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(" <p>");
-#nullable restore
-#line 596 "ErrorPage.cshtml"
- Write(Resources.ErrorPageHtml_NoRouteValues);
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral("</p>\r\n");
-#nullable restore
-#line 597 "ErrorPage.cshtml"
- }
-
-#line default
-#line hidden
-#nullable disable
- WriteLiteral(@" </div>
-
- <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.conca");
- WriteLiteral(@"t(ns(selector, el).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");
- WriteLiteral(@".indexOf(className) < 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) {
- ");
- WriteLiteral(@" return this.on(""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 ");
- WriteLiteral(@"(e.which === 13) {
- 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 9 "ErrorPage.cshtml"
-
- public ErrorPage(ErrorPageModel model)
- {
- Model = model;
- }
-
- public ErrorPageModel Model { get; set; }
-
-#line default
-#line hidden
-#nullable disable
- }
-}
-#pragma warning restore 1591
+// <auto-generated/> +#pragma warning disable 1591 +namespace Microsoft.AspNetCore.Diagnostics.RazorViews +{ + #line hidden + using System.Threading.Tasks; +#nullable restore +#line 1 "ErrorPage.cshtml" +using System; + +#line default +#line hidden +#nullable disable +#nullable restore +#line 2 "ErrorPage.cshtml" +using System.Globalization; + +#line default +#line hidden +#nullable disable +#nullable restore +#line 3 "ErrorPage.cshtml" +using System.Linq; + +#line default +#line hidden +#nullable disable +#nullable restore +#line 4 "ErrorPage.cshtml" +using System.Net; + +#line default +#line hidden +#nullable disable +#nullable restore +#line 5 "ErrorPage.cshtml" +using System.Reflection; + +#line default +#line hidden +#nullable disable +#nullable restore +#line 6 "ErrorPage.cshtml" +using Microsoft.AspNetCore.Diagnostics.RazorViews; + +#line default +#line hidden +#nullable disable +#nullable restore +#line 7 "ErrorPage.cshtml" +using Microsoft.AspNetCore.Diagnostics; + +#line default +#line hidden +#nullable disable + internal class ErrorPage : Microsoft.Extensions.RazorViews.BaseView + { + #pragma warning disable 1998 + public async override global::System.Threading.Tasks.Task ExecuteAsync() + { +#nullable restore +#line 17 "ErrorPage.cshtml" + + // TODO: Response.ReasonPhrase = "Internal Server Error"; + Response.ContentType = "text/html; charset=utf-8"; + string? location = string.Empty; + +#line default +#line hidden +#nullable disable + WriteLiteral("<!DOCTYPE html>\r\n<html"); + BeginWriteAttribute("lang", " lang=\"", 537, "\"", 598, 1); +#nullable restore +#line 23 "ErrorPage.cshtml" +WriteAttributeValue("", 544, CultureInfo.CurrentUICulture.TwoLetterISOLanguageName, 544, 54, false); + +#line default +#line hidden +#nullable disable + EndWriteAttribute(); + WriteLiteral(" xmlns=\"http://www.w3.org/1999/xhtml\">\r\n <head>\r\n <meta charset=\"utf-8\" />\r\n <title>"); +#nullable restore +#line 26 "ErrorPage.cshtml" + Write(Model.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 250 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_UnhandledException); + +#line default +#line hidden +#nullable disable + WriteLiteral("</h1>\r\n"); +#nullable restore +#line 251 "ErrorPage.cshtml" + foreach (var errorDetail in Model.ErrorDetails) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <div class=\"titleerror\">"); +#nullable restore +#line 253 "ErrorPage.cshtml" + Write(errorDetail.Error!.GetType().Name); + +#line default +#line hidden +#nullable disable + WriteLiteral(": "); +#nullable restore +#line 253 "ErrorPage.cshtml" + Output.Write(HtmlEncodeAndReplaceLineBreaks(errorDetail.Error.Message)); + +#line default +#line hidden +#nullable disable + WriteLiteral("</div>\r\n"); +#nullable restore +#line 254 "ErrorPage.cshtml" + + var firstFrame = errorDetail.StackFrames.FirstOrDefault(); + if (firstFrame != null) + { + location = firstFrame.Function; + } + if (!string.IsNullOrEmpty(location) && firstFrame != null && !string.IsNullOrEmpty(firstFrame.File)) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <p class=\"location\">"); +#nullable restore +#line 262 "ErrorPage.cshtml" + Write(location); + +#line default +#line hidden +#nullable disable + WriteLiteral(" in <code"); + BeginWriteAttribute("title", " title=\"", 6440, "\"", 6464, 1); +#nullable restore +#line 262 "ErrorPage.cshtml" +WriteAttributeValue("", 6448, firstFrame.File, 6448, 16, false); + +#line default +#line hidden +#nullable disable + EndWriteAttribute(); + WriteLiteral(">"); +#nullable restore +#line 262 "ErrorPage.cshtml" + Write(System.IO.Path.GetFileName(firstFrame.File)); + +#line default +#line hidden +#nullable disable + WriteLiteral("</code>, line "); +#nullable restore +#line 262 "ErrorPage.cshtml" + Write(firstFrame.Line); + +#line default +#line hidden +#nullable disable + WriteLiteral("</p>\r\n"); +#nullable restore +#line 263 "ErrorPage.cshtml" + } + else if (!string.IsNullOrEmpty(location)) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <p class=\"location\">"); +#nullable restore +#line 266 "ErrorPage.cshtml" + Write(location); + +#line default +#line hidden +#nullable disable + WriteLiteral("</p>\r\n"); +#nullable restore +#line 267 "ErrorPage.cshtml" + } + else + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <p class=\"location\">"); +#nullable restore +#line 270 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_UnknownLocation); + +#line default +#line hidden +#nullable disable + WriteLiteral("</p>\r\n"); +#nullable restore +#line 271 "ErrorPage.cshtml" + } + + var reflectionTypeLoadException = errorDetail.Error as ReflectionTypeLoadException; + if (reflectionTypeLoadException != null) + { + if (reflectionTypeLoadException.LoaderExceptions.Length > 0) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <h3>Loader Exceptions:</h3>\r\n <ul>\r\n"); +#nullable restore +#line 280 "ErrorPage.cshtml" + foreach (var ex in reflectionTypeLoadException.LoaderExceptions) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <li>"); +#nullable restore +#line 282 "ErrorPage.cshtml" + Write(ex!.Message); + +#line default +#line hidden +#nullable disable + WriteLiteral("</li>\r\n"); +#nullable restore +#line 283 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </ul>\r\n"); +#nullable restore +#line 285 "ErrorPage.cshtml" + } + } + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" <ul id=\"header\">\r\n <li id=\"stack\" tabindex=\"1\" class=\"selected\">\r\n "); +#nullable restore +#line 290 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_StackButton); + +#line default +#line hidden +#nullable disable + WriteLiteral("\r\n </li>\r\n <li id=\"query\" tabindex=\"2\">\r\n "); +#nullable restore +#line 293 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_QueryButton); + +#line default +#line hidden +#nullable disable + WriteLiteral("\r\n </li>\r\n <li id=\"cookies\" tabindex=\"3\">\r\n "); +#nullable restore +#line 296 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_CookiesButton); + +#line default +#line hidden +#nullable disable + WriteLiteral("\r\n </li>\r\n <li id=\"headers\" tabindex=\"4\">\r\n "); +#nullable restore +#line 299 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_HeadersButton); + +#line default +#line hidden +#nullable disable + WriteLiteral("\r\n </li>\r\n <li id=\"routing\" tabindex=\"5\">\r\n "); +#nullable restore +#line 302 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_RoutingButton); + +#line default +#line hidden +#nullable disable + WriteLiteral("\r\n </li>\r\n </ul>\r\n\r\n <div id=\"stackpage\" class=\"page\">\r\n <ul>\r\n"); +#nullable restore +#line 308 "ErrorPage.cshtml" + + var exceptionCount = 0; + var stackFrameCount = 0; + var exceptionDetailId = ""; + var frameId = ""; + + +#line default +#line hidden +#nullable disable +#nullable restore +#line 314 "ErrorPage.cshtml" + foreach (var errorDetail in Model.ErrorDetails) + { + exceptionCount++; + exceptionDetailId = "exceptionDetail" + exceptionCount; + + +#line default +#line hidden +#nullable disable + WriteLiteral(" <li>\r\n <h2>"); +#nullable restore +#line 320 "ErrorPage.cshtml" + Write(errorDetail.Error!.GetType().Name); + +#line default +#line hidden +#nullable disable + WriteLiteral(": "); +#nullable restore +#line 320 "ErrorPage.cshtml" + Write(errorDetail.Error.Message); + +#line default +#line hidden +#nullable disable + WriteLiteral("</h2>\r\n <ul>\r\n"); +#nullable restore +#line 322 "ErrorPage.cshtml" + foreach (var frame in errorDetail.StackFrames) + { + stackFrameCount++; + frameId = "frame" + stackFrameCount; + + +#line default +#line hidden +#nullable disable + WriteLiteral(" <li class=\"frame\""); + BeginWriteAttribute("id", " id=\"", 8998, "\"", 9011, 1); +#nullable restore +#line 327 "ErrorPage.cshtml" +WriteAttributeValue("", 9003, frameId, 9003, 8, false); + +#line default +#line hidden +#nullable disable + EndWriteAttribute(); + WriteLiteral(">\r\n"); +#nullable restore +#line 328 "ErrorPage.cshtml" + if (string.IsNullOrEmpty(frame.File)) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <h3>"); +#nullable restore +#line 330 "ErrorPage.cshtml" + Write(frame.Function); + +#line default +#line hidden +#nullable disable + WriteLiteral("</h3>\r\n"); +#nullable restore +#line 331 "ErrorPage.cshtml" + } + else + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <h3>"); +#nullable restore +#line 334 "ErrorPage.cshtml" + Write(frame.Function); + +#line default +#line hidden +#nullable disable + WriteLiteral(" in <code"); + BeginWriteAttribute("title", " title=\"", 9384, "\"", 9403, 1); +#nullable restore +#line 334 "ErrorPage.cshtml" +WriteAttributeValue("", 9392, frame.File, 9392, 11, false); + +#line default +#line hidden +#nullable disable + EndWriteAttribute(); + WriteLiteral(">"); +#nullable restore +#line 334 "ErrorPage.cshtml" + Write(System.IO.Path.GetFileName(frame.File)); + +#line default +#line hidden +#nullable disable + WriteLiteral("</code></h3>\r\n"); +#nullable restore +#line 335 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral("\r\n"); +#nullable restore +#line 337 "ErrorPage.cshtml" + if (frame.Line != 0 && frame.ContextCode.Any()) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <button class=\"expandCollapseButton\" data-frameId=\""); +#nullable restore +#line 339 "ErrorPage.cshtml" + Write(frameId); + +#line default +#line hidden +#nullable disable + WriteLiteral("\">+</button>\r\n <div class=\"source\">\r\n"); +#nullable restore +#line 341 "ErrorPage.cshtml" + if (frame.PreContextCode.Any()) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <ol"); + BeginWriteAttribute("start", " start=\"", 9975, "\"", 10004, 1); +#nullable restore +#line 343 "ErrorPage.cshtml" +WriteAttributeValue("", 9983, frame.PreContextLine, 9983, 21, false); + +#line default +#line hidden +#nullable disable + EndWriteAttribute(); + WriteLiteral(" class=\"collapsible\">\r\n"); +#nullable restore +#line 344 "ErrorPage.cshtml" + foreach (var line in frame.PreContextCode) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <li><span>"); +#nullable restore +#line 346 "ErrorPage.cshtml" + Write(line); + +#line default +#line hidden +#nullable disable + WriteLiteral("</span></li>\r\n"); +#nullable restore +#line 347 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </ol>\r\n"); +#nullable restore +#line 349 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral("\r\n <ol"); + BeginWriteAttribute("start", " start=\"", 10471, "\"", 10490, 1); +#nullable restore +#line 351 "ErrorPage.cshtml" +WriteAttributeValue("", 10479, frame.Line, 10479, 11, false); + +#line default +#line hidden +#nullable disable + EndWriteAttribute(); + WriteLiteral(" class=\"highlight\">\r\n"); +#nullable restore +#line 352 "ErrorPage.cshtml" + foreach (var line in frame.ContextCode) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <li><span>"); +#nullable restore +#line 354 "ErrorPage.cshtml" + Write(line); + +#line default +#line hidden +#nullable disable + WriteLiteral("</span></li>\r\n"); +#nullable restore +#line 355 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </ol>\r\n\r\n"); +#nullable restore +#line 358 "ErrorPage.cshtml" + if (frame.PostContextCode.Any()) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <ol"); + BeginWriteAttribute("start", " start=\'", 11015, "\'", 11040, 1); +#nullable restore +#line 360 "ErrorPage.cshtml" +WriteAttributeValue("", 11023, frame.Line + 1, 11023, 17, false); + +#line default +#line hidden +#nullable disable + EndWriteAttribute(); + WriteLiteral(" class=\"collapsible\">\r\n"); +#nullable restore +#line 361 "ErrorPage.cshtml" + foreach (var line in frame.PostContextCode) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <li><span>"); +#nullable restore +#line 363 "ErrorPage.cshtml" + Write(line); + +#line default +#line hidden +#nullable disable + WriteLiteral("</span></li>\r\n"); +#nullable restore +#line 364 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </ol>\r\n"); +#nullable restore +#line 366 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </div>\r\n"); +#nullable restore +#line 368 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </li>\r\n"); +#nullable restore +#line 370 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(@" </ul> + </li> + <li> + <br /> + <div class=""rawExceptionBlock""> + <button class=""showRawException"" data-exceptionDetailId="""); +#nullable restore +#line 376 "ErrorPage.cshtml" + Write(exceptionDetailId); + +#line default +#line hidden +#nullable disable + WriteLiteral("\">Show raw exception details</button>\r\n <div"); + BeginWriteAttribute("id", " id=\"", 11963, "\"", 11986, 1); +#nullable restore +#line 377 "ErrorPage.cshtml" +WriteAttributeValue("", 11968, exceptionDetailId, 11968, 18, false); + +#line default +#line hidden +#nullable disable + EndWriteAttribute(); + WriteLiteral(" class=\"rawExceptionDetails\">\r\n <pre class=\"rawExceptionStackTrace\">"); +#nullable restore +#line 378 "ErrorPage.cshtml" + Write(errorDetail.Error.ToString()); + +#line default +#line hidden +#nullable disable + WriteLiteral("</pre>\r\n </div>\r\n </div>\r\n </li>\r\n"); +#nullable restore +#line 382 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </ul>\r\n </div>\r\n\r\n <div id=\"querypage\" class=\"page\">\r\n"); +#nullable restore +#line 387 "ErrorPage.cshtml" + if (Model.Query.Any()) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <table>\r\n <thead>\r\n <tr>\r\n <th>"); +#nullable restore +#line 392 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_VariableColumn); + +#line default +#line hidden +#nullable disable + WriteLiteral("</th>\r\n <th>"); +#nullable restore +#line 393 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_ValueColumn); + +#line default +#line hidden +#nullable disable + WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n"); +#nullable restore +#line 397 "ErrorPage.cshtml" + foreach (var kv in Model.Query.OrderBy(kv => kv.Key)) + { + foreach (var v in kv.Value) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <tr>\r\n <td>"); +#nullable restore +#line 402 "ErrorPage.cshtml" + Write(kv.Key); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n <td>"); +#nullable restore +#line 403 "ErrorPage.cshtml" + Write(v); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n </tr>\r\n"); +#nullable restore +#line 405 "ErrorPage.cshtml" + } + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </tbody>\r\n </table>\r\n"); +#nullable restore +#line 409 "ErrorPage.cshtml" + } + else + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <p>"); +#nullable restore +#line 412 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_NoQueryStringData); + +#line default +#line hidden +#nullable disable + WriteLiteral("</p>\r\n"); +#nullable restore +#line 413 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </div>\r\n\r\n <div id=\"cookiespage\" class=\"page\">\r\n"); +#nullable restore +#line 417 "ErrorPage.cshtml" + if (Model.Cookies.Any()) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <table>\r\n <thead>\r\n <tr>\r\n <th>"); +#nullable restore +#line 422 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_VariableColumn); + +#line default +#line hidden +#nullable disable + WriteLiteral("</th>\r\n <th>"); +#nullable restore +#line 423 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_ValueColumn); + +#line default +#line hidden +#nullable disable + WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n"); +#nullable restore +#line 427 "ErrorPage.cshtml" + foreach (var kv in Model.Cookies.OrderBy(kv => kv.Key)) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <tr>\r\n <td>"); +#nullable restore +#line 430 "ErrorPage.cshtml" + Write(kv.Key); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n <td>"); +#nullable restore +#line 431 "ErrorPage.cshtml" + Write(kv.Value); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n </tr>\r\n"); +#nullable restore +#line 433 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </tbody>\r\n </table>\r\n"); +#nullable restore +#line 436 "ErrorPage.cshtml" + } + else + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <p>"); +#nullable restore +#line 439 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_NoCookieData); + +#line default +#line hidden +#nullable disable + WriteLiteral("</p>\r\n"); +#nullable restore +#line 440 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </div>\r\n\r\n <div id=\"headerspage\" class=\"page\">\r\n"); +#nullable restore +#line 444 "ErrorPage.cshtml" + if (Model.Headers.Any()) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <table>\r\n <thead>\r\n <tr>\r\n <th>"); +#nullable restore +#line 449 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_VariableColumn); + +#line default +#line hidden +#nullable disable + WriteLiteral("</th>\r\n <th>"); +#nullable restore +#line 450 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_ValueColumn); + +#line default +#line hidden +#nullable disable + WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n"); +#nullable restore +#line 454 "ErrorPage.cshtml" + foreach (var kv in Model.Headers.OrderBy(kv => kv.Key)) + { + foreach (var v in kv.Value) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <tr>\r\n <td>"); +#nullable restore +#line 459 "ErrorPage.cshtml" + Write(kv.Key); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n <td>"); +#nullable restore +#line 460 "ErrorPage.cshtml" + Write(v); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n </tr>\r\n"); +#nullable restore +#line 462 "ErrorPage.cshtml" + } + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </tbody>\r\n </table>\r\n"); +#nullable restore +#line 466 "ErrorPage.cshtml" + } + else + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <p>"); +#nullable restore +#line 469 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_NoHeaderData); + +#line default +#line hidden +#nullable disable + WriteLiteral("</p>\r\n"); +#nullable restore +#line 470 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </div>\r\n\r\n <div id=\"routingpage\" class=\"page\">\r\n <h2>"); +#nullable restore +#line 474 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_Endpoint); + +#line default +#line hidden +#nullable disable + WriteLiteral("</h2>\r\n"); +#nullable restore +#line 475 "ErrorPage.cshtml" + if (Model.Endpoint != null) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <table>\r\n <thead>\r\n <tr>\r\n <th>"); +#nullable restore +#line 480 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_NameColumn); + +#line default +#line hidden +#nullable disable + WriteLiteral("</th>\r\n <th>"); +#nullable restore +#line 481 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_ValueColumn); + +#line default +#line hidden +#nullable disable + WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr>\r\n <td>"); +#nullable restore +#line 486 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_EndpointDisplayName); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n <td>"); +#nullable restore +#line 487 "ErrorPage.cshtml" + Write(Model.Endpoint.DisplayName); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n </tr>\r\n"); +#nullable restore +#line 489 "ErrorPage.cshtml" + if (!string.IsNullOrEmpty(Model.Endpoint.RoutePattern)) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <tr>\r\n <td>"); +#nullable restore +#line 492 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_EndpointRoutePattern); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n <td>"); +#nullable restore +#line 493 "ErrorPage.cshtml" + Write(Model.Endpoint.RoutePattern); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n </tr>\r\n"); +#nullable restore +#line 495 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable +#nullable restore +#line 496 "ErrorPage.cshtml" + if (Model.Endpoint.Order != null) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <tr>\r\n <td>"); +#nullable restore +#line 499 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_EndpointRouteOrder); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n <td>"); +#nullable restore +#line 500 "ErrorPage.cshtml" + Write(Model.Endpoint.Order); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n </tr>\r\n"); +#nullable restore +#line 502 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable +#nullable restore +#line 503 "ErrorPage.cshtml" + if (!string.IsNullOrEmpty(Model.Endpoint.HttpMethods)) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <tr>\r\n <td>"); +#nullable restore +#line 506 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_EndpointRouteHttpMethod); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n <td>"); +#nullable restore +#line 507 "ErrorPage.cshtml" + Write(Model.Endpoint.HttpMethods); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n </tr>\r\n"); +#nullable restore +#line 509 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </tbody>\r\n </table>\r\n"); +#nullable restore +#line 512 "ErrorPage.cshtml" + } + else + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <p>"); +#nullable restore +#line 515 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_NoEndpoint); + +#line default +#line hidden +#nullable disable + WriteLiteral("</p>\r\n"); +#nullable restore +#line 516 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" <h2>"); +#nullable restore +#line 517 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_RouteValues); + +#line default +#line hidden +#nullable disable + WriteLiteral("</h2>\r\n"); +#nullable restore +#line 518 "ErrorPage.cshtml" + if (Model.RouteValues != null && Model.RouteValues.Any()) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <table>\r\n <thead>\r\n <tr>\r\n <th>"); +#nullable restore +#line 523 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_VariableColumn); + +#line default +#line hidden +#nullable disable + WriteLiteral("</th>\r\n <th>"); +#nullable restore +#line 524 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_ValueColumn); + +#line default +#line hidden +#nullable disable + WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n"); +#nullable restore +#line 528 "ErrorPage.cshtml" + foreach (var kv in Model.RouteValues.OrderBy(kv => kv.Key)) + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <tr>\r\n <td>"); +#nullable restore +#line 531 "ErrorPage.cshtml" + Write(kv.Key); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n <td>"); +#nullable restore +#line 532 "ErrorPage.cshtml" + Write(kv.Value!); + +#line default +#line hidden +#nullable disable + WriteLiteral("</td>\r\n </tr>\r\n"); +#nullable restore +#line 534 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(" </tbody>\r\n </table>\r\n"); +#nullable restore +#line 537 "ErrorPage.cshtml" + } + else + { + +#line default +#line hidden +#nullable disable + WriteLiteral(" <p>"); +#nullable restore +#line 540 "ErrorPage.cshtml" + Write(Resources.ErrorPageHtml_NoRouteValues); + +#line default +#line hidden +#nullable disable + WriteLiteral("</p>\r\n"); +#nullable restore +#line 541 "ErrorPage.cshtml" + } + +#line default +#line hidden +#nullable disable + WriteLiteral(@" </div> + + <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.conca"); + WriteLiteral(@"t(ns(selector, el).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"); + WriteLiteral(@".indexOf(className) < 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) { + "); + WriteLiteral(@" return this.on(""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 "); + WriteLiteral(@"(e.which === 13) { + 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 9 "ErrorPage.cshtml" + + public ErrorPage(ErrorPageModel model) + { + Model = model; + } + + public ErrorPageModel Model { get; set; } + +#line default +#line hidden +#nullable disable + } +} +#pragma warning restore 1591 diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.cshtml b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.cshtml index 0fcc896bea..5cb09de067 100644 --- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.cshtml +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.cshtml @@ -99,7 +99,7 @@ exceptionDetailId = "exceptionDetail" + exceptionCount; <li> - <h2 class="stackerror">@errorDetail.Error!.GetType().Name: @errorDetail.Error.Message</h2> + <h2>@errorDetail.Error!.GetType().Name: @errorDetail.Error.Message</h2> <ul> @foreach (var frame in errorDetail.StackFrames) { @@ -155,9 +155,7 @@ <li> <br /> <div class="rawExceptionBlock"> - <div class="showRawExceptionContainer"> - <button class="showRawException" data-exceptionDetailId="@exceptionDetailId">Show raw exception details</button> - </div> + <button class="showRawException" data-exceptionDetailId="@exceptionDetailId">Show raw exception details</button> <div id="@exceptionDetailId" class="rawExceptionDetails"> <pre class="rawExceptionStackTrace">@errorDetail.Error.ToString()</pre> </div> @@ -255,7 +253,7 @@ </div> <div id="routingpage" class="page"> - <h2 class="subheader">@Resources.ErrorPageHtml_Endpoint</h2> + <h2>@Resources.ErrorPageHtml_Endpoint</h2> @if (Model.Endpoint != null) { <table> @@ -298,7 +296,7 @@ { <p>@Resources.ErrorPageHtml_NoEndpoint</p> } - <h2 class="subheader">@Resources.ErrorPageHtml_RouteValues</h2> + <h2>@Resources.ErrorPageHtml_RouteValues</h2> @if (Model.RouteValues != null && Model.RouteValues.Any()) { <table> diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.css b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.css index 6747e483d7..dfa940200a 100644 --- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.css +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPage.css @@ -1,21 +1,70 @@ +: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 */ +@@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: #222; - background-color: #fff; + color: var(--color-text); + background-color: var(--color-background); } h1 { - color: #44525e; + color: var(--color-heading-main); margin: 15px 0 15px 0; } h2 { margin: 10px 5px 0 0; + padding: 5px; + border-bottom: 1px solid var(--color-border); } h3 { - color: #363636; + color: var(--color-heading-stacktrace); margin: 5px 5px 0 0; font-weight: normal; } @@ -25,6 +74,16 @@ code { 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; @@ -32,241 +91,128 @@ body .titleerror { font-weight: 100; } +/* Exception location */ body .location { margin: 3px 0 10px 30px; } +/* Tab navigation */ #header { font-size: 18px; padding: 15px 0; - border-top: 1px #ddd solid; - border-bottom: 1px #ddd solid; + 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: #a0a0a0; - cursor: pointer; - } - - #header .selected { - background: #44c5f2; - color: #fff; - } - -#stackpage ul { - list-style: none; - padding-left: 0; - margin: 0; - /*border-bottom: 1px #ddd solid;*/ +#header li { + display: inline; + margin: 5px; + padding: 5px; + color: var(--color-tab-link); + cursor: pointer; +} +#header .selected { + color: var(--color-tab-selected); + background: var(--color-tab-selected-background); } +/* Stack page */ #stackpage .details { font-size: 1.2em; padding: 3px; - color: #000; } - -#stackpage .stackerror { - padding: 5px; - border-bottom: 1px #ddd solid; +#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; +} - #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); +} - #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; +/* Stack frame source: highlighted line */ +#stackpage .source .highlight { + border-left: 3px solid var(--color-code-highlight); margin-left: -3px; font-weight: bold; } - -#stackpage .frame .source .highlight li span { - color: #FF0000; +#stackpage .source .highlight li span { + color: var(--color-code-highlight); } -#stackpage .source ol.collapsible li { - color: #888; +/* Stack frame source: context lines */ +#stackpage .source .collapsible { + color: var(--color-code-context-linenum); +} +#stackpage .source .collapsible li span { + color: var(--color-code-context); } - #stackpage .source ol.collapsible li span { - color: #606060; - } - -#routingpage .subheader { - padding: 5px; - border-bottom: 1px #ddd solid; +.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: separate; - border-spacing: 0; + border-collapse: collapse; margin: 0 0 20px; } - .page th { - vertical-align: bottom; - padding: 10px 5px 5px 5px; - font-weight: 400; - color: #a0a0a0; + padding: 10px 10px 5px 10px; + color: var(--color-table-heading); 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 tr { + border-bottom: 1px solid var(--color-border); } - - .page th:last-child, .page td:last-child { - border-right: 1px transparent solid; - } - -.page .length { - text-align: right; +.page tr > :not(:last-child) { + border-right: 1px solid var(--color-border); } -a { - color: #1ba1e2; - text-decoration: none; +/* Raw exception details */ +.rawExceptionBlock { + font-size: 1.2em; + border-top: 1px solid var(--color-border); + border-bottom: 1px solid var(--color-border); } - - a:hover { - color: #13709e; - text-decoration: underline; - } - .showRawException { - cursor: pointer; - color: #44c5f2; - background-color: transparent; - font-size: 1.2em; - text-align: left; - text-decoration: none; display: inline-block; + color: var(--color-link); + background: transparent; + font: inherit; 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 { + padding: 10px 0; 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 */ -@@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; - } - - .rawExceptionBlock { - border-top-color: #444; - border-bottom-color: #444; - } - - .expandCollapseButton { - background-color: #444; - color: inherit; - } +.showRawException:hover { + color: var(--color-link-hover); + text-decoration: underline; } |