File tree 7 files changed +19
-22
lines changed
7 files changed +19
-22
lines changed Original file line number Diff line number Diff line change 10
10
}
11
11
</MudTabs >
12
12
<MudSpacer />
13
- <MudIconButton Icon =" @(LayoutService.IsDarkMode ? @Icons.Rounded.PowerSettingsNew : @Icons.Material.Outlined.PowerSettingsNew)" Color =" Color.Inherit" OnClick =" @HandleShutdown" />
13
+ <MudIconButton Icon =" @(LayoutService.IsDarkMode ? @Icons.Material. Rounded.PowerSettingsNew : @Icons.Material.Outlined.PowerSettingsNew)" Color =" Color.Inherit" OnClick =" @HandleShutdown" />
14
14
15
15
</MudAppBar >
16
16
<MudMainContent Class =" d-flex flex-column" >
Original file line number Diff line number Diff line change 15
15
16
16
</ToolBarContent >
17
17
<Columns >
18
- <Column T =" RedirectItem" Field = " Id" IsEditable =" false" HeaderStyle =" width:1%" CellStyle =" text-align:center;" />
19
- <Column T =" RedirectItem" Field = " Name" HeaderStyle =" Width:20%" >
18
+ <PropertyColumn T =" RedirectItem" TProperty = " int " Property = " x => x. Id" IsEditable =" false" HeaderStyle =" width:1%" CellStyle =" text-align:center;" />
19
+ <PropertyColumn T =" RedirectItem" TProperty = " string " Property = " x => x. Name" HeaderStyle =" Width:20%" >
20
20
<EditTemplate >
21
21
<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" />
22
22
</EditTemplate >
23
- </Column >
24
- <Column T =" RedirectItem" Field = " Url" >
23
+ </PropertyColumn >
24
+ <PropertyColumn T =" RedirectItem" TProperty = " string " Property = " x => x. Url" >
25
25
<EditTemplate >
26
26
<MudTextField T =" string" Value =" context.Item.Url" ValueChanged =" @(async (e) => { context.Item.Url = e;await CommittedItemChanges(context.Item); })" Margin =" @Margin.Dense" Style =" margin-top:0" />
27
27
</EditTemplate >
28
- </Column >
28
+ </PropertyColumn >
29
29
30
- <Column T =" RedirectItem" IsEditable =" false" Title =" Action" HeaderStyle =" width:1%" CellStyle =" text-align:center;" >
30
+ <TemplateColumn T =" RedirectItem" IsEditable =" false" Title =" Action" HeaderStyle =" width:1%" CellStyle =" text-align:center;" >
31
31
<CellTemplate >
32
32
@if (! string .IsNullOrEmpty (context .Item .Url ))
33
33
{
34
- <MudIconButton Size =" @Size.Small" Icon =" @Icons.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); })" />
35
35
}
36
36
37
37
</CellTemplate >
38
- </Column >
38
+ </TemplateColumn >
39
39
40
40
</Columns >
41
41
</MudDataGrid >
Original file line number Diff line number Diff line change 1
1
@using Microsoft .AspNetCore .Http
2
2
@inherits LayoutComponentBase
3
3
4
- <MudThemeProvider @ref = " @_mudThemeProvider " IsDarkMode =" @LayoutService.IsDarkMode" />
4
+ <MudThemeProvider IsDarkMode =" @LayoutService.IsDarkMode" />
5
5
<MudDialogProvider />
6
6
<MudSnackbarProvider />
7
7
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ public partial class EmptyLayout
9
9
{
10
10
[ Inject ] private LayoutService LayoutService { get ; set ; } = null ! ;
11
11
12
- private MudThemeProvider _mudThemeProvider = null ! ;
13
-
14
12
protected override void OnInitialized ( )
15
13
{
16
14
LayoutService . MajorUpdateOccured += LayoutServiceOnMajorUpdateOccured ;
Original file line number Diff line number Diff line change 5
5
6
6
<PageTitle >@Title </PageTitle >
7
7
8
- <MudThemeProvider @ref = " @_mudThemeProvider " IsDarkMode =" @LayoutService.IsDarkMode" />
8
+ <MudThemeProvider IsDarkMode =" @LayoutService.IsDarkMode" />
9
9
<MudDialogProvider />
10
10
<MudSnackbarProvider />
11
11
12
12
<MudLayout Style =" height:100vh" Class =" d-flex" >
13
13
<MudAppBar Elevation =" 10" Color =" @(LayoutService.IsDarkMode ? @Color.Dark : @Color.Primary)" >
14
14
<MudText Typo =" Typo.h4" Align =" Align.Center" Class =" flex-grow-1 flex-shrink-1" >@Title </MudText >
15
- <MudIconButton Icon =" @(LayoutService.IsDarkMode ? @Icons.Rounded.LightMode : @Icons.Material.Outlined.DarkMode)" Color =" Color.Inherit" OnClick =" @LayoutService.ToggleDarkMode" />
15
+ <MudIconButton Icon =" @(LayoutService.IsDarkMode ? @Icons.Material. Rounded.LightMode : @Icons.Material.Outlined.DarkMode)" Color =" Color.Inherit" OnClick =" @LayoutService.ToggleDarkMode" />
16
16
17
17
</MudAppBar >
18
18
<MudMainContent Class =" d-flex flex-column" >
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ public partial class MainLayout
9
9
{
10
10
[ Inject ] private LayoutService LayoutService { get ; set ; } = null ! ;
11
11
12
- private MudThemeProvider _mudThemeProvider = null ! ;
13
12
private string ? _title ;
14
13
15
14
public string Title
Original file line number Diff line number Diff line change 13
13
</PreBuildEvent >
14
14
<ApplicationIcon >wwwroot\favicon.ico</ApplicationIcon >
15
15
<Version >0.0.1.1</Version >
16
- <Copyright >Copyright © 2022 </Copyright >
16
+ <Copyright >Copyright © 2023 </Copyright >
17
17
<Company />
18
18
<Authors />
19
19
<AssemblyVersion >0.0.1.1</AssemblyVersion >
20
20
<FileVersion >0.0.1.1</FileVersion >
21
21
</PropertyGroup >
22
22
23
23
<Target Name =" PiCopy" AfterTargets =" AfterPublish" >
24
- <
Exec Command =
" " C:\Program Files (x86)\WinSCP\WinSCP.com" /command " open sftp://pi:[email protected] .38 /" " synchronize remote C:\dotnet\projects\kiosk-server\kiosk-server\bin\Release\net7.0\publish /home/pi/kiosk-server/" " exit" " />
24
+ <
Exec Command =
" " C:\Program Files (x86)\WinSCP\WinSCP.com" /command " open sftp://pi:[email protected] .44 /" " synchronize remote C:\dotnet\projects\kiosk-server\kiosk-server\bin\Release\net7.0\publish /home/pi/kiosk-server/" " exit" " />
25
25
</Target >
26
26
27
27
<ItemGroup >
28
- <PackageReference Include =" Microsoft.AspNetCore.Authorization" Version =" 7.0.1 " />
29
- <PackageReference Include =" Microsoft.AspNetCore.Components.Analyzers" Version =" 7.0.1 " />
30
- <PackageReference Include =" Microsoft.AspNetCore.Components.Web" Version =" 7.0.1 " />
28
+ <PackageReference Include =" Microsoft.AspNetCore.Authorization" Version =" 7.0.5 " />
29
+ <PackageReference Include =" Microsoft.AspNetCore.Components.Analyzers" Version =" 7.0.5 " />
30
+ <PackageReference Include =" Microsoft.AspNetCore.Components.Web" Version =" 7.0.5 " />
31
31
<PackageReference Include =" Microsoft.Extensions.Hosting.Systemd" Version =" 7.0.0" />
32
- <PackageReference Include =" Microsoft.JSInterop" Version =" 7.0.1 " />
33
- <PackageReference Include =" MudBlazor" Version =" 6.1.6 " />
32
+ <PackageReference Include =" Microsoft.JSInterop" Version =" 7.0.5 " />
33
+ <PackageReference Include =" MudBlazor" Version =" 6.2.2 " />
34
34
<PackageReference Include =" System.IO.Pipelines" Version =" 7.0.0" />
35
35
</ItemGroup >
36
36
You can’t perform that action at this time.
0 commit comments