fix most played formatting issue
prevent reverse proxy to 127.0.0.1 from counting as IW4MAdmin client copy humanizer support lib to output dir
This commit is contained in:
parent
4590d94d7d
commit
2b3e21d4ba
@ -26,6 +26,10 @@ if not exist "%PublishDir%\Lib\" md "%PublishDir%\Lib\"
|
|||||||
move "%PublishDir%\*.dll" "%PublishDir%\Lib\"
|
move "%PublishDir%\*.dll" "%PublishDir%\Lib\"
|
||||||
move "%PublishDir%\*.json" "%PublishDir%\Lib\"
|
move "%PublishDir%\*.json" "%PublishDir%\Lib\"
|
||||||
move "%PublishDir%\runtimes" "%PublishDir%\Lib\runtimes"
|
move "%PublishDir%\runtimes" "%PublishDir%\Lib\runtimes"
|
||||||
|
move "%PublishDir%\ru" "%PublishDir%\Lib\ru"
|
||||||
|
move "%PublishDir%\de" "%PublishDir%\Lib\de"
|
||||||
|
move "%PublishDir%\pt" "%PublishDir%\Lib\pt"
|
||||||
|
move "%PublishDir%\es" "%PublishDir%\Lib\es"
|
||||||
if exist "%PublishDir%\refs" move "%PublishDir%\refs" "%PublishDir%\Lib\refs"
|
if exist "%PublishDir%\refs" move "%PublishDir%\refs" "%PublishDir%\Lib\refs"
|
||||||
|
|
||||||
echo making start scripts
|
echo making start scripts
|
||||||
|
@ -51,7 +51,7 @@ namespace IW4MAdmin.Plugins.Stats.Commands
|
|||||||
|
|
||||||
var iqList = await iqStats.ToListAsync();
|
var iqList = await iqStats.ToListAsync();
|
||||||
|
|
||||||
mostPlayed.AddRange(iqList.Select(stats => translationLookup["COMMANDS_MOST_PLAYED_FORMAT"].FormatExt(stats.Name, (DateTime.UtcNow - DateTime.UtcNow.AddSeconds(-stats.TotalConnectionTime)).HumanizeForCurrentCulture())));
|
mostPlayed.AddRange(iqList.Select(stats => translationLookup["COMMANDS_MOST_PLAYED_FORMAT"].FormatExt(stats.Name, stats.Kills, (DateTime.UtcNow - DateTime.UtcNow.AddSeconds(-stats.TotalConnectionTime)).HumanizeForCurrentCulture())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ namespace SharedLibraryCore
|
|||||||
}
|
}
|
||||||
|
|
||||||
// give the local host full access
|
// give the local host full access
|
||||||
else
|
else if (!HttpContext.Request.Headers.ContainsKey("X-Forwarded-For"))
|
||||||
{
|
{
|
||||||
Client.ClientId = 1;
|
Client.ClientId = 1;
|
||||||
Client.Level = EFClient.Permission.Console;
|
Client.Level = EFClient.Permission.Console;
|
||||||
|
@ -32,7 +32,11 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="FluentValidation" Version="9.1.3" />
|
<PackageReference Include="FluentValidation" Version="9.1.3" />
|
||||||
<PackageReference Include="Humanizer" Version="2.8.26" />
|
<PackageReference Include="Humanizer.Core" Version="2.8.26" />
|
||||||
|
<PackageReference Include="Humanizer.Core.ru" Version="2.8.26" />
|
||||||
|
<PackageReference Include="Humanizer.Core.de" Version="2.8.26" />
|
||||||
|
<PackageReference Include="Humanizer.Core.es" Version="2.8.26" />
|
||||||
|
<PackageReference Include="Humanizer.Core.pt" Version="2.8.26" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.2.0" />
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.2.0" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.7" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.7" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.7" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.7" />
|
||||||
@ -56,7 +60,7 @@
|
|||||||
<ItemGroup Condition="'$(Configuration)'=='Debug'">
|
<ItemGroup Condition="'$(Configuration)'=='Debug'">
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="3.1.7" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="3.1.7" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
||||||
<Exec Command="if not exist "$(ProjectDir)..\BUILD" (
if $(ConfigurationName) == Debug (
md "$(ProjectDir)..\BUILD"
)
)
if not exist "$(ProjectDir)..\BUILD\Plugins" (
if $(ConfigurationName) == Debug (
md "$(ProjectDir)..\BUILD\Plugins"
)
)" />
|
<Exec Command="if not exist "$(ProjectDir)..\BUILD" (
if $(ConfigurationName) == Debug (
md "$(ProjectDir)..\BUILD"
)
)
if not exist "$(ProjectDir)..\BUILD\Plugins" (
if $(ConfigurationName) == Debug (
md "$(ProjectDir)..\BUILD\Plugins"
)
)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
Loading…
Reference in New Issue
Block a user