Skip to content

[Blazor] Fix sample and turn debug logs and detailed errors client and server-side on the sample #15052

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/Components/Samples/BlazorServerApp/Pages/_Host.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@
<link href="css/site.css" rel="stylesheet" />
</head>
<body>
<component type="typeof(App)" render-mode="ServerPrerendered" />
<app><component type="typeof(App)" render-mode="ServerPrerendered" /></app>

<script src="_framework/blazor.server.js"></script>
<script src="_framework/blazor.server.js" autostart="false"></script>
<script>
(function start() {
Blazor.start({
logLevel: 1, // LogLevel.Debug
configureSignalR: builder => builder.configureLogging("debug") // LogLevel.Debug
});
})()
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="top-row pl-4 navbar navbar-dark">
<div class="top-row pl-4 navbar navbar-dark">
<a class="navbar-brand" href="">BlazorServerApp</a>
<button class="navbar-toggler" @onclick="ToggleNavMenu">
<span class="navbar-toggler-icon"></span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"detailedErrors": true,
"Logging": {
"LogLevel": {
"Default": "Debug",
Expand Down
20 changes: 11 additions & 9 deletions src/Components/Samples/BlazorServerApp/wwwroot/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ a, .btn-link {
}

.btn-primary {
color: #fff;
background-color: #1b6ec2;
border-color: #1861ac;
color: #fff;
background-color: #1b6ec2;
border-color: #1861ac;
}

app {
Expand Down Expand Up @@ -113,19 +113,21 @@ app {

#blazor-error-ui {
background: lightyellow;
position: fixed;
border: "1px solid";
border-color: black;
width: 100%;
bottom: 0;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
display: none;
left: 0;
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
position: fixed;
width: 100%;
z-index: 1000;
}

#blazor-error-ui .dismiss {
cursor: pointer;
position: absolute;
right: 5px;
top: 5px;
right: 0.75rem;
top: 0.5rem;
}

@media (max-width: 767.98px) {
Expand Down