Skip to content

Commit d9d0a49

Browse files
committed
update to mudblazor 7.x
1 parent f558670 commit d9d0a49

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ chromium-browser --noerrdialogs --disable-infobars --kiosk 'http://127.0.0.1:500
235235

236236
For the 3840x1100 screen, you can increase the zoom level of chromium using --force-device-scale-factor=1.5 on the command line.
237237

238-
If the web page checks for the dark mode system setting, --force-dark-mode can be added to the command line.
238+
If the web page checks for the dark mode system setting, --force-dark-mode --enable-features=WebContentsForceDark can be added to the command line.
239239

240240
To disable the cache mechanism, --disk-cache-dir=/dev/null can be added to the command line.
241241

@@ -355,7 +355,7 @@ I installed the 'Kiosk Mode' HACS frontend repository. See https://github.com/Ne
355355

356356
Now, you can use the kiosk query parameter, to hide the header and sidebar on the dashboard:
357357

358-
For example : http://192.168.2.34:8123/lovelace/home?kiosk
358+
For example : http://192.168.2.73:8123/lovelace/home?kiosk
359359

360360
Note, that this only works correctly, if you hide the sidebar by default, for the Kiosk user:
361361

kiosk-server/Pages/Kiosk.razor

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<MudLayout Class="d-flex flex-grow-1" Style="">
55
<MudAppBar Elevation="0" Class="pa-0 ma-0 " Color="@(LayoutService.IsDarkMode ? @Color.Dark : @Color.Primary)">
6-
<MudTabs Class="pa-0 ma-0" Elevation="0" Rounded="false" Border="false" DisableRipple="true" DisableSliderAnimation="true" Color="@(LayoutService.IsDarkMode ? @Color.Dark : @Color.Primary)" ActivePanelIndexChanged="ActivePanelIndexChanged" TabHeaderClass="@TabHeaderClass">
6+
<MudTabs Class="pa-0 ma-0" Elevation="0" Rounded="false" Border="false" Ripple="false" SliderAnimation="false" Color="@(LayoutService.IsDarkMode ? @Color.Dark : @Color.Primary)" ActivePanelIndexChanged="ActivePanelIndexChanged" TabHeaderClass="@TabHeaderClass">
77
@foreach (var url in RedirectUrlList)
88
{
99
<MudTabPanel Text="@url.Name"/>

kiosk-server/Pages/Setup.razor

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
</ToolBarContent>
1717
<Columns>
18-
<PropertyColumn T="RedirectItem" TProperty="int" Property="x => x.Id" IsEditable="false" HeaderStyle="width:1%" CellStyle="text-align:center;"/>
18+
<PropertyColumn T="RedirectItem" TProperty="int" Property="x => x.Id" Editable="false" HeaderStyle="width:1%" CellStyle="text-align:center;"/>
1919
<PropertyColumn T="RedirectItem" TProperty="string" Property="x => x.Name" HeaderStyle="Width:20%">
2020
<EditTemplate>
2121
<MudTextField T="string" Value="context.Item.Name" ValueChanged="@(async (e) => { context.Item.Name = e;await CommittedItemChanges(context.Item); })" Margin="@Margin.Dense" Style="margin-top:0" />
@@ -27,11 +27,11 @@
2727
</EditTemplate>
2828
</PropertyColumn>
2929

30-
<TemplateColumn T="RedirectItem" IsEditable="false" Title="Action" HeaderStyle="width:1%" CellStyle="text-align:center;">
30+
<TemplateColumn T="RedirectItem" Editable="false" Title="Action" HeaderStyle="width:1%" CellStyle="text-align:center;">
3131
<CellTemplate>
3232
@if (!string.IsNullOrEmpty(context.Item.Url))
3333
{
34-
<MudIconButton Size="@Size.Small" Icon="@Icons.Material.Outlined.Delete" Title="Delete" OnClick="@(async (e) => { await DeleteUrl(context.Item); })"/>
34+
<MudIconButton Size="@Size.Small" Icon="@Icons.Material.Outlined.Delete" title="Delete" OnClick="@(async (e) => { await DeleteUrl(context.Item); })"/>
3535
}
3636

3737
</CellTemplate>

kiosk-server/Shared/EmptyLayout.razor

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
@inherits LayoutComponentBase
33

44
<MudThemeProvider IsDarkMode="@LayoutService.IsDarkMode"/>
5+
<MudPopoverProvider />
56
<MudDialogProvider />
67
<MudSnackbarProvider />
78

kiosk-server/kiosk-server.csproj

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
</Target>
2626

2727
<ItemGroup>
28-
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="8.0.4" />
29-
<PackageReference Include="Microsoft.AspNetCore.Components.Analyzers" Version="8.0.4" />
30-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.4" />
28+
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="8.0.8" />
29+
<PackageReference Include="Microsoft.AspNetCore.Components.Analyzers" Version="8.0.8" />
30+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.8" />
3131
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="8.0.0" />
32-
<PackageReference Include="Microsoft.JSInterop" Version="8.0.4" />
33-
<PackageReference Include="MudBlazor" Version="6.19.1" />
32+
<PackageReference Include="Microsoft.JSInterop" Version="8.0.8" />
33+
<PackageReference Include="MudBlazor" Version="7.8.0" />
3434
<PackageReference Include="System.IO.Pipelines" Version="8.0.0" />
3535
</ItemGroup>
3636

0 commit comments

Comments
 (0)