File tree 4 files changed +22
-5
lines changed
4 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 9
9
<MudTabPanel Text =" @url.Name" />
10
10
}
11
11
</MudTabs >
12
+ <MudSpacer />
13
+ <MudIconButton Icon =" @(LayoutService.IsDarkMode ? @Icons.Rounded.PowerSettingsNew : @Icons.Material.Outlined.PowerSettingsNew)" Color =" Color.Inherit" OnClick =" @HandleShutdown" />
14
+
12
15
</MudAppBar >
13
16
<MudMainContent Class =" d-flex flex-column" >
14
17
<MudPaper Class =" pa-0 ma-0 flex-grow-1 flex-shrink-1" Square =" true" Elevation =" 0" Style =" overflow:hidden" >
Original file line number Diff line number Diff line change @@ -52,7 +52,10 @@ private void ActivePanelIndexChanged(int index)
52
52
StateHasChanged ( ) ;
53
53
}
54
54
55
-
55
+ private static void HandleShutdown ( )
56
+ {
57
+ System . Diagnostics . Process . Start ( new ProcessStartInfo ( ) { FileName = "sudo" , Arguments = "shutdown now" } ) ;
58
+ }
56
59
57
60
}
58
61
}
Original file line number Diff line number Diff line change 33
33
<link href =" _content/MudBlazor/MudBlazor.min.css" rel =" stylesheet" />
34
34
<link href =" css/site.css" rel =" stylesheet" />
35
35
<link href =" kiosk-server.styles.css" rel =" stylesheet" />
36
-
36
+ <style >
37
+ #components-reconnect-modal
38
+ {
39
+ color : black ;
40
+ }
41
+ #components-reconnect-modal a
42
+ {
43
+ color : black ;
44
+ font-weight : bold ;
45
+ text-decoration :underline
46
+ }
47
+ </style >
37
48
@* <script src="appscript://dynamic.js"></script>*@
38
49
39
50
<component type =" typeof(HeadOutlet)" render-mode =" Server" />
Original file line number Diff line number Diff line change 12
12
<PreBuildEvent >
13
13
</PreBuildEvent >
14
14
<ApplicationIcon >wwwroot\favicon.ico</ApplicationIcon >
15
- <Version >0.0.0.9 </Version >
15
+ <Version >0.0.1.0 </Version >
16
16
<Copyright >Copyright © 2022</Copyright >
17
17
<Company />
18
18
<Authors />
19
- <AssemblyVersion >0.0.0.9 </AssemblyVersion >
20
- <FileVersion >0.0.0.9 </FileVersion >
19
+ <AssemblyVersion >0.0.1.0 </AssemblyVersion >
20
+ <FileVersion >0.0.1.0 </FileVersion >
21
21
</PropertyGroup >
22
22
23
23
<Target Name =" PiCopy" AfterTargets =" AfterPublish" >
You can’t perform that action at this time.
0 commit comments