Skip to content

Commit f391d0c

Browse files
committed
Update the sample app
- Updates UI, config, and dependencies; add runtime info display - Add new.css stylesheet for improved base styling in index.html
1 parent 4156314 commit f391d0c

5 files changed

Lines changed: 17 additions & 9 deletions

File tree

Samples/BlazorWasmApp1/App.razor

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
@using System.Runtime.InteropServices
12
@inject IConfiguration Configuration
23

4+
<header>
5+
<h1>Blazor WebAssembly App</h1>
6+
<h2>User Secrets Extension for Ex Dev Server</h2>
7+
<div>
8+
@RuntimeInformation.OSDescription / @RuntimeInformation.OSArchitecture / @RuntimeInformation.FrameworkDescription
9+
</div>
10+
</header>
11+
312
<main>
413
<span>Configuration["Foo:Bar"] is </span>
514
<span>&quot;@this.Configuration["Foo:Bar"]&quot;</span>
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
main{
2-
font-family: sans-serif;
3-
padding-top: 24px;
1+
header, main {
42
text-align: center;
5-
}
3+
}

Samples/BlazorWasmApp1/BlazorWasmApp1.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.2" />
12+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.3" />
1313
<!--
14-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.2" PrivateAssets="all" />
14+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.3" PrivateAssets="all" />
1515
-->
16-
<PackageReference Include="Toolbelt.Blazor.WebAssembly.ExtensibleDevServer" Version="10.0.2-preview.1" PrivateAssets="all" />
17-
<PackageReference Include="Toolbelt.Blazor.WebAssembly.ExtensibleDevServer.UserSecretsExtension" Version="10.0.2-preview.1" PrivateAssets="all" />
16+
<PackageReference Include="Toolbelt.Blazor.WebAssembly.ExtensibleDevServer" Version="10.0.3" PrivateAssets="all" />
17+
<PackageReference Include="Toolbelt.Blazor.WebAssembly.ExtensibleDevServer.UserSecretsExtension" Version="10.0.3" PrivateAssets="all" />
1818

1919
</ItemGroup>
2020

Samples/BlazorWasmApp1/wwwroot/appsettings.Development.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"Foo": {
33
"Bar": "Developers Shared"
44
}
5-
}
5+
}

Samples/BlazorWasmApp1/wwwroot/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<title>BlazorWasmMin</title>
88
<base href="/" />
99
<link rel="preload" id="webassembly" />
10+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@exampledev/new.css@1/new.min.css" />
1011
<link rel="stylesheet" href="css/blazor-ui.css" />
1112
<link rel="stylesheet" href="BlazorWasmApp1.styles.css" />
1213
<script type="importmap"></script>

0 commit comments

Comments
 (0)