start implementation for per server top stats

issue #39
This commit is contained in:
RaidMax
2019-02-25 19:36:10 -06:00
parent 61f1436faf
commit d318a57830
11 changed files with 106 additions and 13 deletions

View File

@ -47,6 +47,14 @@ namespace WebfrontCore
}
});
#if DEBUG
mvcBuilder = mvcBuilder.AddRazorOptions(options => options.AllowRecompilingViewsOnFileChange = true);
services.Configure<RazorViewEngineOptions>(_options =>
{
_options.ViewLocationFormats.Add(@"/Views/Plugins/{1}/{0}" + RazorViewEngine.ViewExtension);
});
#endif
foreach (var asm in Program.Manager.GetPluginAssemblies())
{
mvcBuilder.AddApplicationPart(asm);

View File

@ -82,7 +82,7 @@
}
</div>
<div id="profile_level" class="text-muted mb-2">
<h5><span class="level-color-@Model.LevelInt @(isTempBanned ? "penalties-color-tempban" : "")"><strong>@Model.Level @(isTempBanned ? $"&emdash; {loc["WEBFRONT_PROFILE_TEMPBAN"]}" : "")</strong></span></h5>
<h5><span class="level-color-@Model.LevelInt @(isTempBanned ? "penalties-color-tempban" : "")"><strong>@Model.Level @(isTempBanned ? $"({loc["WEBFRONT_PROFILE_TEMPBAN"]})" : "")</strong></span></h5>
</div>
<div id="profile_time_played" class="text-muted">
@loc["WEBFRONT_PROFILE_PLAYER"] <span class="text-primary">@Model.TimePlayed</span> @loc["GLOBAL_TIME_HOURS"]

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<RuntimeFrameworkVersion>2.2.2</RuntimeFrameworkVersion>
<RazorCompileOnBuild>true</RazorCompileOnBuild>
<RazorCompileOnBuild>false</RazorCompileOnBuild>
<RazorCompileOnPublish>true</RazorCompileOnPublish>
<PreserveCompilationContext>true</PreserveCompilationContext>
<TypeScriptToolsVersion>2.6</TypeScriptToolsVersion>

View File

@ -6416,3 +6416,22 @@ form *, select {
position: fixed;
bottom: 1em;
right: 1em; }
.nav-tabs, .nav-tabs .nav-link.active {
border-color: #007ACC;
background-color: rgba(0, 0, 0, 0.2);
color: #fff !important; }
.nav-tabs .nav-link:hover {
border-color: #007ACC;
background-color: rgba(0, 0, 0, 0.2);
border-width: 2px; }
.nav-tabs .nav-link {
border-radius: 0;
padding: 1rem;
color: #6c757d;
border-width: 2px; }
.nav-tabs .nav-link.active {
border-bottom-color: transparent; }

View File

@ -219,3 +219,26 @@ form *, select {
bottom: 1em;
right: 1em;
}
.nav-tabs, .nav-tabs .nav-link.active {
border-color: $blue;
background-color: rgba(0, 0, 0, 0.2);
color: $white !important;
}
.nav-tabs .nav-link:hover {
border-color: $blue;
background-color: rgba(0, 0, 0, 0.2);
border-width: 2px;
}
.nav-tabs .nav-link {
border-radius: 0;
padding: 1rem;
color: #6c757d;
border-width: 2px;
}
.nav-tabs .nav-link.active {
border-bottom-color: transparent;
}