mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
continue working on per servver topstats
This commit is contained in:
@ -184,7 +184,7 @@ namespace WebfrontCore.Controllers
|
||||
}));
|
||||
}
|
||||
|
||||
public async Task<IActionResult> GenerateLoginTokenForm()
|
||||
public IActionResult GenerateLoginTokenForm()
|
||||
{
|
||||
var info = new ActionInfo()
|
||||
{
|
||||
|
@ -12,7 +12,7 @@
|
||||
</div>
|
||||
|
||||
<div id="server_clientactivity_@Model.ID" class="bg-dark row server-activity pt-2 pb-2">
|
||||
@Html.Partial("../Server/_ClientActivity", Model)
|
||||
@await Html.PartialAsync("../Server/_ClientActivity", Model)
|
||||
</div>
|
||||
|
||||
<div class="row server-history mb-4">
|
||||
|
@ -6,6 +6,6 @@
|
||||
@{
|
||||
foreach (var penalty in Model)
|
||||
{
|
||||
Html.RenderPartial("_Penalty", penalty);
|
||||
await Html.RenderPartialAsync("_Penalty", penalty);
|
||||
}
|
||||
}
|
@ -6,6 +6,6 @@
|
||||
@{
|
||||
foreach (var s in Model)
|
||||
{
|
||||
Html.RenderPartial("../Server/_Server", s);
|
||||
await Html.RenderPartialAsync("../Server/_Server", s);
|
||||
}
|
||||
}
|
@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||
<RuntimeFrameworkVersion>2.2.2</RuntimeFrameworkVersion>
|
||||
<RazorCompileOnBuild>false</RazorCompileOnBuild>
|
||||
<RazorCompileOnBuild>true</RazorCompileOnBuild>
|
||||
<RazorCompileOnPublish>true</RazorCompileOnPublish>
|
||||
<PreserveCompilationContext>true</PreserveCompilationContext>
|
||||
<TypeScriptToolsVersion>2.6</TypeScriptToolsVersion>
|
||||
@ -33,12 +33,20 @@
|
||||
<Content Remove="bower.json" />
|
||||
<Content Remove="bundleconfig.json" />
|
||||
<Content Remove="compilerconfig.json" />
|
||||
<Content Remove="Views\Plugins\Stats\Components\TopPlayers\_List.cshtml" />
|
||||
<Content Remove="Views\Plugins\Stats\Index.cshtml" />
|
||||
<Content Remove="Views\Plugins\Stats\_MessageContext.cshtml" />
|
||||
<Content Remove="Views\Plugins\Stats\_PenaltyInfo.cshtml" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="bower.json" />
|
||||
<None Include="bundleconfig.json" />
|
||||
<None Include="compilerconfig.json" />
|
||||
<None Include="Views\Plugins\Stats\Components\TopPlayers\_List.cshtml" />
|
||||
<None Include="Views\Plugins\Stats\Index.cshtml" />
|
||||
<None Include="Views\Plugins\Stats\_MessageContext.cshtml" />
|
||||
<None Include="Views\Plugins\Stats\_PenaltyInfo.cshtml" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -64,10 +64,6 @@ if ($(loaderResponseId).length === 1) {
|
||||
$window
|
||||
.off('scroll', ScrollHandler)
|
||||
.on('scroll', ScrollHandler);
|
||||
|
||||
/*$('#load_penalties_button').click(function () {
|
||||
loadMorePenalties();
|
||||
});*/
|
||||
});
|
||||
|
||||
function ScrollHandler(e) {
|
||||
|
@ -72,6 +72,10 @@ $(document).ready(function () {
|
||||
getStatsChart($(element).attr('id'), $(element).width(), $(element).height()).render();
|
||||
});
|
||||
});
|
||||
|
||||
$('.top-players-link').click(function (event) {
|
||||
initLoader('/Stats/GetTopPlayersAsync?serverId=' + $(this).data('serverid'), $(this).attr('href'), 50);
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on("loaderFinished", function (event, response) {
|
||||
|
Reference in New Issue
Block a user