Skip to content

Commit

Permalink
#115 chore: fixed automatic code cleanup failure
Browse files Browse the repository at this point in the history
  • Loading branch information
joseantmazonsb committed Mar 12, 2022
1 parent 54fcabb commit 2b8b72d
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 20 deletions.
8 changes: 4 additions & 4 deletions Linguard/Web/Pages/Dashboard.razor
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@page "/"
@page "/dashboard"
@using Linguard.Web.Utils
@using Linguard.Core.Services
@using Linguard.Core.Utils
@using Linguard.Core.Managers
@using Linguard.Core.Models.Wireguard
@using Linguard.Core.OS
@using Linguard.Core.Services
@using Linguard.Core.Managers
@using Linguard.Core.Configuration
@using Linguard.Core.OS
@using Linguard.Web.Utils

<PageTitle>@($"{AssemblyInfo.Product} | {Title}")</PageTitle>

Expand Down
4 changes: 2 additions & 2 deletions Linguard/Web/Pages/Settings.razor
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@page "/settings"
@using Linguard.Core.Managers
@using Linguard.Core.Utils
@using Linguard.Core.Managers
@using Linguard.Core.Configuration
@using Linguard.Log
@using Linguard.Web.Services
@using Linguard.Core.Configuration

<PageTitle>@($"{AssemblyInfo.Product} | {Title}")</PageTitle>

Expand Down
16 changes: 8 additions & 8 deletions Linguard/Web/Pages/Wireguard.razor
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<RadzenHeading Text="@Title" class="mb-3"/>

<h2 class="mb-3">Interfaces</h2>
<RadzenSplitButton Icon="add" class="mb-2" Text="Add new" Click="@Pages.AddInterface">
<RadzenSplitButton Icon="add" class="mb-2" Text="Add new" Click="@AddInterface">
<ChildContent>
<RadzenSplitButtonItem Text="Import" Icon="upload" />
</ChildContent>
Expand Down Expand Up @@ -67,7 +67,7 @@
}

<h2 class="my-3">Clients</h2>
<RadzenSplitButton Click="Pages.AddClient" Text="Add new" Icon="add" class="mb-2">
<RadzenSplitButton Click="AddClient" Text="Add new" Icon="add" class="mb-2">
<ChildContent>
<RadzenSplitButtonItem Text="Import" Icon="upload"/>
</ChildContent>
Expand Down Expand Up @@ -101,8 +101,8 @@
</RadzenDataGridColumn>
<RadzenDataGridColumn TItem="Client" Title="Interface">
<Template Context="data">
<a href="/interface/@(Core.Configuration.Configuration.Wireguard.GetInterface(data)?.Id)">
@(Core.Configuration.Configuration.Wireguard.GetInterface(data)?.Name)
<a href="/interface/@(Configuration.Wireguard.GetInterface(data)?.Id)">
@(Configuration.Wireguard.GetInterface(data)?.Name)
</a>
</Template>
</RadzenDataGridColumn>
Expand Down Expand Up @@ -134,7 +134,7 @@
bool _stoppingAll;

protected override void OnInitialized() {
_wireguardInterfaces = Core.Configuration.Configuration.Wireguard.Interfaces
_wireguardInterfaces = Configuration.Wireguard.Interfaces
.OrderBy(i => i.Name)
.ToList();
_clients = _wireguardInterfaces
Expand Down Expand Up @@ -173,15 +173,15 @@

void StopAllInterfaces() {
_stoppingAll = true;
foreach (var iface in Core.Configuration.Configuration.Wireguard.Interfaces) {
foreach (var iface in Configuration.Wireguard.Interfaces) {
StopInterface(iface);
}
_stoppingAll = false;
}

void StartAllInterfaces() {
_startingAll = true;
foreach (var iface in Core.Configuration.Configuration.Wireguard.Interfaces) {
foreach (var iface in Configuration.Wireguard.Interfaces) {
StartInterface(iface);
}
_startingAll = false;
Expand Down Expand Up @@ -220,7 +220,7 @@
<div class="row mt-2">
<div class="col">
<RadzenButton Icon="add" Text="Add"
Click="@Pages.AddClient"/>
Click="@AddClient"/>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions Linguard/Web/Shared/LoggingSettings.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@using Linguard.Core.Managers
@using Linguard.Core.Configuration
@using Linguard.Core.Configuration
@using Linguard.Core.Managers
@namespace Linguard.Web.Shared

<div class="row">
Expand Down
9 changes: 5 additions & 4 deletions Linguard/Web/Shared/TrafficChartForMultiplePeers.razor
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@using Linguard.Core.Managers
@using Linguard.Core.Models
@using Linguard.Core.Services
@using Linguard.Core.Configuration
@using Linguard.Core.Models
@using Linguard.Web.Utils
@using Linguard.Core.Configuration
@using Linguard.Core.Managers
@using Linguard.Core.Services

<div class="row">
<!-- Real time -->
<div class="col-md-6 mt-2">
Expand Down
1 change: 1 addition & 0 deletions Linguard/Web/Shared/WebSettings.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Linguard.Core.Configuration
@using Linguard.Core.Models
@namespace Linguard.Web.Shared

<div class="row">
Expand Down

0 comments on commit 2b8b72d

Please sign in to comment.