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 bb1bf15..1183405 100644
--- a/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Settings.razor
+++ b/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Settings.razor
@@ -2,143 +2,60 @@
@using Blazorise.Components;
@using Elektrifikatsiya.Models;
@using System.Net
-
-
-
-
-
-
- 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
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ Plugs
+
+
+
+
+
+
+
+
+
+ @context.Item.Name
+
+
+
+
+ User: @context.Item.User
+
+ Room: @context.Item.Room
+
+
+ @context.Item.PowerUsage W
+
+
+
+
+
+
+
+
+
+
+
+
@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"), };
-}
+ 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"), };
+
+}
\ No newline at end of file