merge
@ -241,5 +241,11 @@ namespace WebfrontCore.Controllers
|
||||
command = $"!say {message}"
|
||||
}));
|
||||
}
|
||||
|
||||
public async Task<IActionResult> RecentClientsForm()
|
||||
{
|
||||
var clients = await Manager.GetClientService().GetRecentClients();
|
||||
return View("~/Views/Shared/Components/Client/_RecentClients.cshtml", clients);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,50 @@
|
||||
@model IEnumerable<SharedLibraryCore.Dtos.PlayerInfo>
|
||||
@{
|
||||
Layout = null;
|
||||
var loc = SharedLibraryCore.Utilities.CurrentLocalization.LocalizationIndex;
|
||||
}
|
||||
|
||||
|
||||
@*<table class="table table-striped">
|
||||
<thead>
|
||||
<tr class="bg-primary pt-2 pb-2">
|
||||
<th scope="col">@loc["WEBFRONT_PENALTY_TEMPLATE_NAME"]</th>
|
||||
<th scope="col">@loc["WEBFRONT_CONFIGURATION_SERVER_IP"]</th>
|
||||
<th scope="col">@loc["WEBFRONT_PROFILE_LOOKUP_LOCATION"]</th>
|
||||
<th scope="col" class="text-right">@loc["WEBFRONT_SEARCH_LAST_CONNECTED"]</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@foreach (var client in Model)
|
||||
{
|
||||
<tr>
|
||||
<td class="w-25">
|
||||
<a asp-controller="Client" asp-action="ProfileAsync" asp-route-id="@client.ClientId" class="link-inverse">@client.Name</a>
|
||||
</td>
|
||||
<td class="w-25">
|
||||
@client.IPAddress
|
||||
</td>
|
||||
<td>
|
||||
<div class="client-location-flag" data-ip="@client.IPAddress" />
|
||||
</td>
|
||||
<td class="text-right">
|
||||
@client.LastConnectionText
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
}
|
||||
</table>*@
|
||||
|
||||
@foreach (var client in Model)
|
||||
{
|
||||
<div class="p-2 mb-3 border-bottom" style="background-color: #222;">
|
||||
<div class="d-flex flex-row">
|
||||
<a asp-controller="Client" asp-action="ProfileAsync" asp-route-id="@client.ClientId" class="h4 mr-auto">@client.Name</a>
|
||||
<div class="client-location-flag align-self-center" data-ip="@client.IPAddress"></div>
|
||||
</div>
|
||||
<div class="d-flex flex-row">
|
||||
<div class="align-self-center mr-auto">@client.IPAddress</div>
|
||||
<div class="align-self-center">@client.LastConnectionText</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
@ -61,6 +61,7 @@
|
||||
{
|
||||
<a asp-controller="Configuration" asp-action="Edit" class="dropdown-item bg-dark text-muted text-center text-lg-left">@loc["WEBFRONT_NAV_EDIT_CONFIGURATION"]</a>
|
||||
}
|
||||
<a class="dropdown-item bg-dark text-muted text-center text-lg-left profile-action" href="#" data-action="RecentClients" title="@loc["WEBFRONT_ACTION_RECENT_CLIENTS"]">@loc["WEBFRONT_ACTION_RECENT_CLIENTS"]</a>
|
||||
<a class="dropdown-item bg-dark text-muted text-center text-lg-left profile-action" href="#" data-action="GenerateLoginToken" title="@loc["WEBFRONT_ACTION_TOKEN"]">@loc["WEBFRONT_ACTION_TOKEN"]</a>
|
||||
<a asp-controller="Account" asp-action="LogoutAsync" class="dropdown-item bg-dark text-muted text-center text-lg-left">@loc["WEBFRONT_NAV_LOGOUT"]</a>
|
||||
</div>
|
||||
|
@ -39,6 +39,8 @@
|
||||
<Content Remove="Views\Plugins\Stats\_MessageContext.cshtml" />
|
||||
<Content Remove="Views\Plugins\Stats\_PenaltyInfo.cshtml" />
|
||||
<Content Remove="Views\Plugins\_ViewImports.cshtml" />
|
||||
<Content Remove="wwwroot\css\bootstrap-custom.css" />
|
||||
<Content Remove="wwwroot\css\bootstrap-custom.min.css" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
6472
WebfrontCore/wwwroot/css/bootstrap-custom.css
vendored
@ -289,3 +289,11 @@ form *, select {
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.client-location-flag {
|
||||
width: 3rem;
|
||||
height: 1.5rem;
|
||||
background-image: url('/images/radar/hud_weapons/hud_neutral.png');
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat
|
||||
}
|
||||
|
BIN
WebfrontCore/wwwroot/images/compass_map_mp_rust@2x.png
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_40mmgrenade.webp
Normal file
After Width: | Height: | Size: 594 B |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_aa12.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_aa12.webp
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_ak47.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_ak47.webp
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_akd74u.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_akd74u.webp
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_at4.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_at4.webp
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_barrett50cal.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_barrett50cal.webp
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_benelli_m4.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_benelli_m4.webp
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_beretta393.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_beretta393.webp
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_cheytac.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_cheytac.webp
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_colt45.webp
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_colt_anaconda.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_colt_anaconda.webp
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_death.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_desert_eagle.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_desert_eagle.webp
Normal file
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 1.6 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_dragunovsvd.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_dragunovsvd.webp
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_famas.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_famas.webp
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_fn2000.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_fn2000.webp
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_fnfal.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_fnfal.webp
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_g36c_mp.webp
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_glock.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_glock.webp
Normal file
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_javelin.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_javelin.webp
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_kriss.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_kriss.webp
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m14ebr.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m14ebr.webp
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m16a4.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m16a4.webp
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m240.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m240.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m249saw.webp
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m40a3.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m40a3.webp
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m4carbine.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m4carbine.webp
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m79.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m79.webp
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m9beretta.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_m9beretta.webp
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_masada.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_masada.webp
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_mg4.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_mg4.webp
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_mini_uzi.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_mini_uzi.webp
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_model1887.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_model1887.webp
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_mp5k.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_mp5k.webp
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_mp9.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_mp9.webp
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_neutral.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_neutral.webp
Normal file
After Width: | Height: | Size: 952 B |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_p90.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_p90.webp
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_peacekeeper.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_peacekeeper.webp
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_pp2000.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_pp2000.webp
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_remington_700.webp
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_riot_shield.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_riot_shield.webp
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_rpd.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_rpd.webp
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_rpg.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_rpg.webp
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_sa80_lmg.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_sa80_lmg.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_sawed_off.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_sawed_off.webp
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_scar_h.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_scar_h.webp
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_skorpian.webp
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_spas12.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
WebfrontCore/wwwroot/images/hud_weapons/hud_spas12.webp
Normal file
After Width: | Height: | Size: 2.0 KiB |