Added MudBlazor to SharpRSS.Blazor

This commit is contained in:
Max 2024-06-17 13:53:48 +02:00
parent 5bb96a48ee
commit 73d5ba2dad
7 changed files with 22 additions and 3 deletions

View File

@ -9,12 +9,17 @@
<link rel="stylesheet" href="app.css"/>
<link rel="stylesheet" href="SharpRSS.Blazor.styles.css"/>
<link rel="icon" type="image/png" href="favicon.png"/>
@*MudBlazor*@
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
<HeadOutlet/>
</head>
<body>
<Routes/>
<script src="_framework/blazor.web.js"></script>
@*MudBlazor*@
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
</body>
</html>

View File

@ -1,5 +1,9 @@
@inherits LayoutComponentBase
<MudThemeProvider IsDarkMode="true"/>
<MudDialogProvider/>
<MudSnackbarProvider/>
<div class="page">
<div class="sidebar">
<NavMenu/>

View File

@ -2,6 +2,6 @@
<PageTitle>Home</PageTitle>
<h1>Hello, world!</h1>
<MudText Typo="Typo.h4">Mud text!</MudText>
Welcome to your new app.

View File

@ -6,5 +6,8 @@
@using static Microsoft.AspNetCore.Components.Web.RenderMode
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.JSInterop
@*SharpRSS*@
@using SharpRSS.Blazor
@using SharpRSS.Blazor.Components
@using SharpRSS.Blazor.Components
@*MudBlazor*@
@using MudBlazor

View File

@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore;
using MudBlazor.Services;
using SharpRSS.Blazor.Components;
using SharpRSS.Business;
using SharpRSS.Data;
@ -10,6 +11,7 @@ builder.UseSRSS();
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
builder.Services.AddMudServices();
var app = builder.Build();

View File

@ -11,4 +11,8 @@
<ProjectReference Include="..\SharpRSS.Core\SharpRSS.Core.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MudBlazor" Version="6.20.0" />
</ItemGroup>
</Project>

View File

@ -24,9 +24,10 @@ git push
git config --global status.submoduleSummary true
## Update all submoduels
## Update submodule if submodule has changed
git submodule update --remote --merge
git commit -m "Submodule updated!"
## Remove submodule
git rm <path-to-submodule>