diff --git a/src/Elektrifikatsiya/Elektrifikatsiya/Components/Layout/SideMenu.razor b/src/Elektrifikatsiya/Elektrifikatsiya/Components/Layout/SideMenu.razor index 01a573c..956a1a0 100644 --- a/src/Elektrifikatsiya/Elektrifikatsiya/Components/Layout/SideMenu.razor +++ b/src/Elektrifikatsiya/Elektrifikatsiya/Components/Layout/SideMenu.razor @@ -23,18 +23,18 @@ Admin - - - - Add Plug - - Settings + + + + Add Plug + + diff --git a/src/Elektrifikatsiya/Elektrifikatsiya/Layouts/LoginLayout.razor b/src/Elektrifikatsiya/Elektrifikatsiya/Layouts/LoginLayout.razor index 4962196..091b551 100644 --- a/src/Elektrifikatsiya/Elektrifikatsiya/Layouts/LoginLayout.razor +++ b/src/Elektrifikatsiya/Elektrifikatsiya/Layouts/LoginLayout.razor @@ -2,17 +2,16 @@ @inherits LayoutComponentBase - - - - - - - + + + + + + + + + @code { - private void Clicked() - { - Debug.WriteLine("Button was clicked!"); - } + } \ No newline at end of file diff --git a/src/Elektrifikatsiya/Elektrifikatsiya/Pages/AddPlug.razor b/src/Elektrifikatsiya/Elektrifikatsiya/Pages/AddPlug.razor index fb35150..ca7b09d 100644 --- a/src/Elektrifikatsiya/Elektrifikatsiya/Pages/AddPlug.razor +++ b/src/Elektrifikatsiya/Elektrifikatsiya/Pages/AddPlug.razor @@ -9,88 +9,88 @@ @inject IDeviceManagmentService DeviceManagmentService @inject IAuthenticationService AuthenticationService - - - - - - - - Add a plug via wifi - - - - - - - - - - - - - - - - - IP: @context.Item - - - - - - - - - - - - - - + + - - - - - Add a plug via IP - - - - -
- - - -
- -
-
-
-
-
-
- + + + + Add a plug via wifi + + + + + + + + + + + + + + + + + IP: @context.Item + + + + + + + + + +
+
+ + + + + + + + Add a plug via IP + + + + +
+ + + +
+ +
+
+
+
+
+
+ +
+
@code { List ipAddresses = new List(); @@ -106,7 +106,7 @@ System.Timers.Timer aTimer = new System.Timers.Timer(1000); aTimer.Elapsed += (_, _) => { DateTime dateTime = DateTime.UtcNow; - if(dateTime >= time.AddSeconds(5)) + if(dateTime >= time.AddSeconds(3)) { visible = false; InvokeAsync(StateHasChanged); diff --git a/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Settings.razor b/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Settings.razor index b58022e..89b851b 100644 --- a/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Settings.razor +++ b/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Settings.razor @@ -3,129 +3,131 @@ @using Elektrifikatsiya.Models; @using System.Net
- +
- - - - Plugs - - - - - - - - - - - @context.Item.Name - - - - - User: @context.Item.User -
- Room: @context.Item.Room -
-
-
- - - - -
-
+ + + + Plugs + + + + + + + + + + @context.Item.Name + + + + + User: @context.Item.User +
+ Room: @context.Item.Room +
+
+
+ + + + +
+
+ - - +
-
-
-
-
-
- - - -
- Plug Name -
- - Here you can change the Name of your Plug - -
- -
-
-
- - -
- Change Max Output -
- - Here you can limit how much Power your Plug uses - -
- -
-
-
- - -
- Electricity Price -
- - Here you enter your electricity price. This is gonna calculate the overall Price of your System - -
- -
-
-
- - -
- Select Room -
- - Here you select or change the Room where you use your Plug. - -
-
- - Rooms - - Room 1 - - Room 2 - - Room 3 - - -
- - + + + + + + + + + + + -
@@ -133,8 +135,12 @@ @code { - - List plugs = new List() { new Device("ffff:ffff:ffff:ffff", "Josne", IPAddress.Broadcast, new User("Joe", "qiowruioewjfopa", Role.Admin), "Raum"), new Device("ffff:ffff:ffff:ffff", "Josne", IPAddress.Broadcast, new User("Joe", "Josne", Role.Admin), "Raum"), new Device("ffff:ffff:ffff:ffff", "Josne", IPAddress.Broadcast, new User("Joe", "qiowruioewjfopa", Role.Admin), "Raum"), }; + private bool hideButtonSettings = true; + + private void Toggle() + { + hideButtonSettings = !hideButtonSettings; + } }