mirror of
https://github.com/Stefan-5422/-T5-Elektrifikatsiya.git
synced 2026-09-10 07:36:02 +02:00
Beep boop 🤖🤖🤖🤖🤖
This commit is contained in:
@@ -34,9 +34,6 @@
|
|||||||
<Row>
|
<Row>
|
||||||
<Column ColumnSize="ColumnSize.Is6">
|
<Column ColumnSize="ColumnSize.Is6">
|
||||||
<Row>
|
<Row>
|
||||||
<Column >
|
|
||||||
<Heading Size="HeadingSize.Is6" Margin="Margin.Is1.FromBottom">@context.Item</Heading>
|
|
||||||
</Column>
|
|
||||||
</Row>
|
</Row>
|
||||||
<Row Width="Width.Is100">
|
<Row Width="Width.Is100">
|
||||||
<Column>
|
<Column>
|
||||||
|
|||||||
@@ -4,9 +4,8 @@
|
|||||||
@using System.Net
|
@using System.Net
|
||||||
@inject IVersionProvider VersionProvider
|
@inject IVersionProvider VersionProvider
|
||||||
|
|
||||||
<Div>
|
<Row Padding="Padding.Is3">
|
||||||
<Row Padding="Padding.Is3">
|
<Div Display="Display.Flex.Row.OnDesktop" Margin="Margin.Is3.FromBottom" Width="Width.Is100">
|
||||||
<Div Display="Display.Flex.Row.OnDesktop" Margin=" Margin.Is3.FromBottom" Width="Width.Is100">
|
|
||||||
<Column ColumnSize="ColumnSize.Is6.OnDesktop.Is12">
|
<Column ColumnSize="ColumnSize.Is6.OnDesktop.Is12">
|
||||||
<Bar Breakpoint="Breakpoint.Desktop"
|
<Bar Breakpoint="Breakpoint.Desktop"
|
||||||
Background="Background.White"
|
Background="Background.White"
|
||||||
@@ -23,8 +22,8 @@
|
|||||||
ValueField="@((_)=>(""))"
|
ValueField="@((_)=>(""))"
|
||||||
Mode="ListGroupMode.Static"
|
Mode="ListGroupMode.Static"
|
||||||
Style="border-radius: 0px 0px">
|
Style="border-radius: 0px 0px">
|
||||||
<ItemTemplate >
|
<ItemTemplate>
|
||||||
<ListGroupItem>
|
<ListGroupItem Border="Border.OnBottom">
|
||||||
<Row>
|
<Row>
|
||||||
<Column ColumnSize="ColumnSize.Is8">
|
<Column ColumnSize="ColumnSize.Is8">
|
||||||
<Row>
|
<Row>
|
||||||
@@ -34,7 +33,7 @@
|
|||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Column>
|
<Column>
|
||||||
<Small>User: @context.Item.User</Small>
|
<Small>User: @context.Item.User.Name</Small>
|
||||||
<br />
|
<br />
|
||||||
<Small>Room: @context.Item.Room</Small>
|
<Small>Room: @context.Item.Room</Small>
|
||||||
</Column>
|
</Column>
|
||||||
@@ -69,31 +68,13 @@
|
|||||||
ValueField="@((_)=>(""))"
|
ValueField="@((_)=>(""))"
|
||||||
Mode="ListGroupMode.Static"
|
Mode="ListGroupMode.Static"
|
||||||
Style="border-radius: 0px 0px">
|
Style="border-radius: 0px 0px">
|
||||||
<ItemTemplate>
|
|
||||||
<Div Flex="Flex.InlineFlex.JustifyContent.Between" Width="Width.Is100">
|
|
||||||
<Heading Size="HeadingSize.Is6" Margin="Margin.Is2.FromBottom">@context.Item.EventName</Heading>
|
|
||||||
<Small>@context.Item.Date</Small>
|
|
||||||
</Div>
|
|
||||||
<Paragraph Margin="Margin.Is2.FromBottom">@context.Item.Description</Paragraph>
|
|
||||||
</ItemTemplate>
|
|
||||||
</ListView>
|
|
||||||
</Column>
|
|
||||||
</Div>
|
|
||||||
</Row>
|
|
||||||
<Row Padding="Padding.Is3">
|
|
||||||
<Column>
|
|
||||||
<Button Color="Color.Primary" Style="border-radius: 0px" Clicked="@(async () => await HandleRedraw())">Aktualisieren</Button>
|
|
||||||
<LineChart @ref="lineChart" TItem="double" />
|
|
||||||
</Column>
|
|
||||||
</Row>
|
|
||||||
</Div>
|
|
||||||
|
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
//TODO: insert new event here if plug produces one
|
//TODO: insert new event here if plug produces one
|
||||||
List<Event> events = new List<Event>() { new Event("Placeholder", "Event", DateTime.Now), new Event("Placeholder", "Event", DateTime.Now), new Event("Placeholder", "Event", DateTime.Now) };
|
List<Event> events = new List<Event>() { new Event("Placeholder", "Event", DateTime.Now), new Event("Placeholder", "Event", DateTime.Now), new Event("Placeholder", "Event", DateTime.Now) };
|
||||||
//TODO: insert new Device here if user adds one
|
//TODO: insert new Device here if user adds one
|
||||||
List<Device> plugs = new List<Device>() { new Device("ffff:ffff:ffff:ffff", "Huso", IPAddress.Broadcast, new User("Joe", "qiowruioewjfopa", Role.Admin), "Raum"), new Device("ffff:ffff:ffff:ffff", "Huso", IPAddress.Broadcast, new User("Joe", "qiowruioewjfopa", Role.Admin), "Raum"), new Device("ffff:ffff:ffff:ffff", "Huso", IPAddress.Broadcast, new User("Joe", "qiowruioewjfopa", Role.Admin), "Raum"), };
|
List<Device> plugs = new List<Device>() { 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"), };
|
||||||
//code for graph
|
//code for graph
|
||||||
LineChart<double> lineChart;
|
LineChart<double> lineChart;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
@page "/Settings"
|
@page "/Settings"
|
||||||
@using Blazorise.Components;
|
@using Blazorise.Components;
|
||||||
@using Elektrifikatsiya.Models;
|
@using Elektrifikatsiya.Models;
|
||||||
|
@using System.Net
|
||||||
<Row Style="width: 100%; height: 100%">
|
<Row Style="width: 100%; height: 100%">
|
||||||
<Column ColumnSize="ColumnSize.Is4">
|
<Column ColumnSize="ColumnSize.Is4">
|
||||||
<Bar Breakpoint="Breakpoint.Desktop"
|
<Bar Breakpoint="Breakpoint.Desktop"
|
||||||
@@ -124,6 +125,6 @@
|
|||||||
@code {
|
@code {
|
||||||
|
|
||||||
|
|
||||||
List<Device> plugs = new List<Device>() { new Device("Placeholder", "Plug", System.Net.IPAddress.Broadcast, 60, "Oldin", "4AHINF"), new Device("Placeholder", "Plug", System.Net.IPAddress.Broadcast, 60, "Oldin", "4AHINF"), new Device("Placeholder", "Plug", System.Net.IPAddress.Broadcast, 60, "Oldin", "4AHINF") };
|
List<Device> plugs = new List<Device>() { 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"), };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user