1
0
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:
RaidMax
2019-02-26 21:25:27 -06:00
parent 03c90aeae2
commit 1182b98336
15 changed files with 96 additions and 55 deletions

View File

@ -184,7 +184,7 @@ namespace WebfrontCore.Controllers
}));
}
public async Task<IActionResult> GenerateLoginTokenForm()
public IActionResult GenerateLoginTokenForm()
{
var info = new ActionInfo()
{

View File

@ -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">

View File

@ -6,6 +6,6 @@
@{
foreach (var penalty in Model)
{
Html.RenderPartial("_Penalty", penalty);
await Html.RenderPartialAsync("_Penalty", penalty);
}
}

View File

@ -6,6 +6,6 @@
@{
foreach (var s in Model)
{
Html.RenderPartial("../Server/_Server", s);
await Html.RenderPartialAsync("../Server/_Server", s);
}
}

View File

@ -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>

View File

@ -64,10 +64,6 @@ if ($(loaderResponseId).length === 1) {
$window
.off('scroll', ScrollHandler)
.on('scroll', ScrollHandler);
/*$('#load_penalties_button').click(function () {
loadMorePenalties();
});*/
});
function ScrollHandler(e) {

View File

@ -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) {