Browse Source

Removing MudBlazor

master
6d486f49 2 weeks ago
parent
commit
0c7289c50e
  1. 1
      Resume/Pages/Home.razor
  2. 2
      Resume/Program.cs
  3. 10
      Resume/Resume.csproj
  4. 2
      Resume/_Imports.razor
  5. 2
      Resume/wwwroot/index.html
  6. 27
      Resume/wwwroot/sample-data/weather.json

1
Resume/Pages/Home.razor

@ -1,6 +1,7 @@
@page "/" @page "/"
@using Resume.Data @using Resume.Data
<div class="page"> <div class="page">
<div class="title"> <div class="title">
<div><b>Jonathan McCaffrey</b></div> <div><b>Jonathan McCaffrey</b></div>

2
Resume/Program.cs

@ -1,6 +1,5 @@
using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using MudBlazor.Services;
using Resume; using Resume;
var builder = WebAssemblyHostBuilder.CreateDefault(args); var builder = WebAssemblyHostBuilder.CreateDefault(args);
@ -9,6 +8,5 @@ builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddMudServices();
await builder.Build().RunAsync(); await builder.Build().RunAsync();

10
Resume/Resume.csproj

@ -8,9 +8,9 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.5" /> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.7" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.5" PrivateAssets="all" /> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.7" PrivateAssets="all" />
<PackageReference Include="MudBlazor" Version="9.2.0" /> <PackageReference Include="Microsoft.DotNet.HotReload.WebAssembly.Browser" Version="10.0.203" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
@ -19,4 +19,8 @@
</Content> </Content>
</ItemGroup> </ItemGroup>
<ItemGroup>
<_ContentIncludedByDefault Remove="wwwroot\sample-data\weather.json" />
</ItemGroup>
</Project> </Project>

2
Resume/_Imports.razor

@ -8,4 +8,4 @@
@using Microsoft.JSInterop @using Microsoft.JSInterop
@using Resume @using Resume
@using Resume.Layout @using Resume.Layout
@using MudBlazor

2
Resume/wwwroot/index.html

@ -11,7 +11,6 @@
<link href="favicon.png" rel="icon" type="image/png"/> <link href="favicon.png" rel="icon" type="image/png"/>
<link href="Resume.styles.css" rel="stylesheet"/> <link href="Resume.styles.css" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet"/> <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet"/>
<link href="_content/MudBlazor/MudBlazor.min.css?v=@(MudBlazor.Metadata.Version)" rel="stylesheet"/>
</head> </head>
@ -30,7 +29,6 @@
<a class="dismiss">🗙</a> <a class="dismiss">🗙</a>
</div> </div>
<script src="_framework/blazor.webassembly.js"></script> <script src="_framework/blazor.webassembly.js"></script>
<script src="_content/MudBlazor/MudBlazor.min.js?v=@(MudBlazor.Metadata.Version)"></script>
</body> </body>

27
Resume/wwwroot/sample-data/weather.json

@ -1,27 +0,0 @@
[
{
"date": "2022-01-06",
"temperatureC": 1,
"summary": "Freezing"
},
{
"date": "2022-01-07",
"temperatureC": 14,
"summary": "Bracing"
},
{
"date": "2022-01-08",
"temperatureC": -13,
"summary": "Freezing"
},
{
"date": "2022-01-09",
"temperatureC": -16,
"summary": "Balmy"
},
{
"date": "2022-01-10",
"temperatureC": -2,
"summary": "Chilly"
}
]
Loading…
Cancel
Save