Updated code formatting

This commit is contained in:
2025-05-30 12:09:48 +03:00
parent 11b9515bab
commit 81905460da
10 changed files with 36 additions and 26 deletions

View File

@@ -5,6 +5,8 @@
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<base href="/"/>
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
<link rel="stylesheet" href="bootstrap/bootstrap.min.css"/>
<link rel="stylesheet" href="app.css"/>
<link rel="stylesheet" href="WebUI.styles.css"/>

View File

@@ -22,7 +22,7 @@
<div class="nav-item px-3">
<NavLink class="nav-link" href="plugins/online">
<span class="bi bi-list-nested-nav-menu" aria-hidden="true"></span> Online Plugins
<span class="bi bi-list" aria-hidden="true" style="align-self: center"></span> Online Plugins
</NavLink>
</div>

View File

@@ -13,8 +13,6 @@
@rendermode InteractiveServer
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
<link rel="stylesheet" href="Components/Pages/Home.css" />
<div class="container-fluid d-flex flex-column p-3" style="height: 95vh;">
<div class="d-flex flex-wrap gap-2 mb-3">

View File

@@ -13,18 +13,21 @@
@inject NavigationManager Navigation
<h3>Installed Plugins</h3>
<table class="table table-responsive text-center align-middle">
<button class="btn btn-outline-success" @onclick="NavigateToAddPlugin">
<span class="bi me-1"></span> Add Local
</button>
<table class="table table-responsive">
<thead>
<tr>
<th>Name</th>
<th>Version</th>
<th>Offline Added</th>
<th>Actions</th>
<th>
<button class="btn btn-outline-success" @onclick="NavigateToAddPlugin">
<span class="bi me-1"></span> Add Local
</button>
</th>
@* <th> *@
@* <button class="btn btn-outline-success" @onclick="NavigateToAddPlugin"> *@
@* <span class="bi me-1"></span> Add Local *@
@* </button> *@
@* </th> *@
</tr>
</thead>
<tbody>
@@ -34,14 +37,14 @@
<td>@plugin.Name</td>
<td>@plugin.Version</td>
<td>@(plugin.IsOfflineAdded ? "Yes" : "No")</td>
<td>
<td >
<button class="btn btn-danger btn-sm m-1" @onclick="async () => await DeletePluginButtonClick(plugin)">Delete</button>
@if (!plugin.IsOfflineAdded)
{
<button class="btn btn-info btn-sm m-1" @onclick="async () => await PluginDetailsButtonClick(plugin)">Details</button>
}
</td>
<td></td>
@* <td></td> *@
</tr>
}
</tbody>

View File

@@ -1,10 +1,10 @@
using WebUI;
using WebUI.Components;
using WebUI.Services;
using WebUI.Components;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
builder.AddDiscordBotComponents();

View File

@@ -4,7 +4,6 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Platforms>AnyCPU;x64;ARM64</Platforms>
</PropertyGroup>
<ItemGroup>
@@ -13,6 +12,7 @@
<ProjectReference Include="..\DiscordBotCore.Logging\DiscordBotCore.Logging.csproj" />
<ProjectReference Include="..\DiscordBotCore.PluginManagement\DiscordBotCore.PluginManagement.csproj" />
<ProjectReference Include="..\DiscordBotCore\DiscordBotCore.csproj" />
</ItemGroup>
</Project>