mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-30 09:00:37 -05:00
Namespace Update (SLC/Data Ignored)
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
@using SharedLibraryCore.Configuration
|
||||
@using System.Text.RegularExpressions
|
||||
@model WebfrontCore.ViewModels.CommunityInfo
|
||||
@using SharedLibraryCore
|
||||
@model IW4MAdmin.WebfrontCore.ViewModels.CommunityInfo
|
||||
@{
|
||||
IEnumerable<KeyValuePair<(string, long), string[]>> allRules = new[] { new KeyValuePair<(string, long), string[]>((ViewBag.Localization["WEBFRONT_ABOUT_GLOBAL_RULES"], 0), Model.GlobalRules) };
|
||||
var serverRules = Model.ServerRules?.Where(server => server.Value != null && server.Value.Any()).ToList();
|
||||
|
@ -1,5 +1,5 @@
|
||||
@using Humanizer
|
||||
@model WebfrontCore.ViewModels.ActionInfo
|
||||
@model IW4MAdmin.WebfrontCore.ViewModels.ActionInfo
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
@model IEnumerable<WebfrontCore.QueryHelpers.Models.BanInfo>
|
||||
@model IEnumerable<IW4MAdmin.WebfrontCore.QueryHelpers.Models.BanInfo>
|
||||
|
||||
<div class="content mt-0">
|
||||
<h2 class="content-title mt-20 mb-10">@ViewBag.Title</h2>
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model IEnumerable<WebfrontCore.QueryHelpers.Models.BanInfo>
|
||||
@using SharedLibraryCore
|
||||
@model IEnumerable<IW4MAdmin.WebfrontCore.QueryHelpers.Models.BanInfo>
|
||||
|
||||
@foreach (var ban in Model)
|
||||
{
|
||||
|
@ -1,4 +1,5 @@
|
||||
@using SharedLibraryCore.Dtos
|
||||
@using SharedLibraryCore
|
||||
@using SharedLibraryCore.Dtos
|
||||
@model IEnumerable<AuditInfo>
|
||||
@{
|
||||
var loc = Utilities.CurrentLocalization.LocalizationIndex;
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model IEnumerable<WebfrontCore.QueryHelpers.Models.ClientResourceResponse>
|
||||
@using SharedLibraryCore
|
||||
@model IEnumerable<IW4MAdmin.WebfrontCore.QueryHelpers.Models.ClientResourceResponse>
|
||||
@{
|
||||
var loc = Utilities.CurrentLocalization.LocalizationIndex;
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model IList<SharedLibraryCore.Dtos.PlayerInfo>
|
||||
@using SharedLibraryCore
|
||||
@model IList<SharedLibraryCore.Dtos.PlayerInfo>
|
||||
@{
|
||||
var loc = Utilities.CurrentLocalization.LocalizationIndex;
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
@using WebfrontCore.QueryHelpers.Models
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using WebfrontCore.Permissions
|
||||
@using Data.Models.Client
|
||||
@model WebfrontCore.QueryHelpers.Models.ClientResourceResponse
|
||||
@using IW4MAdmin.WebfrontCore.Permissions
|
||||
@using IW4MAdmin.WebfrontCore.QueryHelpers.Models
|
||||
@using SharedLibraryCore
|
||||
|
||||
@{
|
||||
var loc = Utilities.CurrentLocalization.LocalizationIndex;
|
||||
|
@ -1,4 +1,4 @@
|
||||
@model IEnumerable<WebfrontCore.QueryHelpers.Models.ClientResourceResponse>
|
||||
@model IEnumerable<IW4MAdmin.WebfrontCore.QueryHelpers.Models.ClientResourceResponse>
|
||||
|
||||
@foreach (var client in Model)
|
||||
{
|
||||
|
@ -1,4 +1,5 @@
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@using SharedLibraryCore
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@model SharedLibraryCore.Helpers.ResourceQueryHelperResult<MessageResponse>
|
||||
|
||||
<div class="content mt-0">
|
||||
|
@ -1,4 +1,5 @@
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@using SharedLibraryCore
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@model IEnumerable<MessageResponse>
|
||||
|
||||
@foreach (var message in Model)
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model Dictionary<Data.Models.Client.EFClient.Permission, IList<SharedLibraryCore.Dtos.ClientInfo>>
|
||||
@using SharedLibraryCore
|
||||
@model Dictionary<Data.Models.Client.EFClient.Permission, IList<SharedLibraryCore.Dtos.ClientInfo>>
|
||||
<div class="content mt-0">
|
||||
<h4 class="content-title mt-20">@ViewBag.Title</h4>
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
@using SharedLibraryCore.Interfaces
|
||||
@using Data.Models
|
||||
@using Data.Models.Client
|
||||
@using WebfrontCore.Permissions
|
||||
@using WebfrontCore.ViewModels
|
||||
@using IW4MAdmin.WebfrontCore.Permissions
|
||||
@using IW4MAdmin.WebfrontCore.ViewModels
|
||||
@using SharedLibraryCore
|
||||
@model SharedLibraryCore.Dtos.PlayerInfo
|
||||
@{
|
||||
var match = System.Text.RegularExpressions.Regex.Match(Model.Name.ToUpper(), "[A-Z]").Value;
|
||||
|
@ -1,4 +1,5 @@
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@using SharedLibraryCore
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@model AdministeredPenaltyResponse
|
||||
@{
|
||||
var localizationKey = $"WEBFRONT_CLIENT_META_PENALIZED_{Model.PenaltyType.ToString().ToUpper()}_V2";
|
||||
|
@ -1,4 +1,5 @@
|
||||
@using Data.Models
|
||||
@using SharedLibraryCore
|
||||
@model SharedLibraryCore.Dtos.Meta.Responses.ConnectionHistoryResponse
|
||||
@{
|
||||
var localizationKey = $"WEBFRONT_CLIENT_META_CONNECTION_{Model.ConnectionType.ToString().ToUpper()}";
|
||||
|
@ -1,4 +1,5 @@
|
||||
@using Humanizer
|
||||
@using SharedLibraryCore
|
||||
@model IEnumerable<SharedLibraryCore.Dtos.Meta.Responses.InformationResponse>
|
||||
@{
|
||||
var informationMeta = Model
|
||||
|
@ -1,4 +1,5 @@
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@using SharedLibraryCore
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@model MessageResponse
|
||||
|
||||
@if (TempData["ShowMetaHeader"] as bool? ?? false)
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model DateTime
|
||||
@using SharedLibraryCore
|
||||
@model DateTime
|
||||
@{ Layout = null;}
|
||||
<div class="pt-5 text-light-dm text-dark-lm font-size-18 ">
|
||||
<span>@Model.HumanizeForCurrentCulture()</span>
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model SharedLibraryCore.Dtos.Meta.Responses.PermissionLevelChangedResponse
|
||||
@using SharedLibraryCore
|
||||
@model SharedLibraryCore.Dtos.Meta.Responses.PermissionLevelChangedResponse
|
||||
|
||||
<has-permission entity="ClientLevel" required-permission="Read">
|
||||
@if (TempData["ShowMetaHeader"] as bool? ?? false)
|
||||
|
@ -1,4 +1,6 @@
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using SharedLibraryCore
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@model ReceivedPenaltyResponse
|
||||
|
||||
@{
|
||||
|
@ -1,4 +1,5 @@
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@using SharedLibraryCore
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@model UpdatedAliasResponse
|
||||
|
||||
@if (TempData["ShowMetaHeader"] as bool? ?? false)
|
||||
|
@ -1,15 +1,17 @@
|
||||
@using SharedLibraryCore.Configuration
|
||||
@using Data.Models.Client.Stats
|
||||
@using Stats.Helpers
|
||||
@using Data.Models.Client
|
||||
@using Data.Models.Client.Stats.Reference
|
||||
@using Humanizer
|
||||
@using Humanizer.Localisation
|
||||
@using IW4MAdmin.Plugins.Stats
|
||||
@using WebfrontCore.ViewModels
|
||||
@using System.Text.Json
|
||||
@using IW4MAdmin.Plugins.Stats.Web.Dtos
|
||||
@model Stats.Dtos.AdvancedStatsInfo
|
||||
@using IW4MAdmin.Plugins.Stats
|
||||
@using IW4MAdmin.Plugins.Stats.Dtos
|
||||
@using IW4MAdmin.Plugins.Stats.Helpers
|
||||
@using IW4MAdmin.WebfrontCore.ViewModels
|
||||
@using SharedLibraryCore
|
||||
@using Stats
|
||||
@model IW4MAdmin.Plugins.Stats.Dtos.AdvancedStatsInfo
|
||||
|
||||
@{
|
||||
ViewBag.Title = ViewBag.Localization["WEBFRONT_ADV_STATS_TITLE"];
|
||||
|
@ -1,6 +1,8 @@
|
||||
@using IW4MAdmin.Plugins.Stats
|
||||
@using System.Text.Json
|
||||
@model List<IW4MAdmin.Plugins.Stats.Web.Dtos.TopStatsInfo>
|
||||
@using System.Text.Json
|
||||
@using IW4MAdmin.Plugins.Stats
|
||||
@using SharedLibraryCore
|
||||
@using Stats
|
||||
@model List<IW4MAdmin.Plugins.Stats.Dtos.TopStatsInfo>
|
||||
@{
|
||||
Layout = null;
|
||||
var loc = Utilities.CurrentLocalization.LocalizationIndex.Set;
|
||||
|
@ -1,5 +1,6 @@
|
||||
@model IEnumerable<SharedLibraryCore.Dtos.ServerInfo>
|
||||
@using WebfrontCore.ViewModels
|
||||
@using IW4MAdmin.WebfrontCore.ViewModels
|
||||
@using SharedLibraryCore
|
||||
|
||||
<div class="content mt-20 row">
|
||||
<div class="col-12 col-lg-9 mt-0">
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model IEnumerable<Data.Models.Client.Stats.EFACSnapshot>
|
||||
@using SharedLibraryCore
|
||||
@model IEnumerable<Data.Models.Client.Stats.EFACSnapshot>
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model IEnumerable<WebfrontCore.ViewModels.ConfigurationFileInfo>
|
||||
@using SharedLibraryCore
|
||||
@model IEnumerable<IW4MAdmin.WebfrontCore.ViewModels.ConfigurationFileInfo>
|
||||
@{
|
||||
ViewData["Title"] = Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_CONFIGURATION_TITLE"];
|
||||
var noticeText = Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_CONFIGURATION_SAVING_CHANGES"];
|
||||
|
@ -1,4 +1,4 @@
|
||||
@model WebfrontCore.ViewModels.BindingHelper
|
||||
@model IW4MAdmin.WebfrontCore.ViewModels.BindingHelper
|
||||
|
||||
@if (Model.Properties.Length == 1)
|
||||
{
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model IEnumerable<SharedLibraryCore.Dtos.ServerInfo>
|
||||
@using SharedLibraryCore
|
||||
@model IEnumerable<SharedLibraryCore.Dtos.ServerInfo>
|
||||
|
||||
<div class="content mt-0">
|
||||
<h2 class="content-title mt-20">Web Console</h2>
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model IEnumerable<(string, IEnumerable<SharedLibraryCore.Interfaces.IManagerCommand>)>
|
||||
@using SharedLibraryCore
|
||||
@model IEnumerable<(string, IEnumerable<SharedLibraryCore.Interfaces.IManagerCommand>)>
|
||||
@{
|
||||
var loc = Utilities.CurrentLocalization.LocalizationIndex;
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
@using WebfrontCore.ViewModels
|
||||
@using Humanizer
|
||||
@using Humanizer
|
||||
@using IW4MAdmin.WebfrontCore.ViewModels
|
||||
@using SharedLibraryCore
|
||||
@model SharedLibraryCore.Dtos.IW4MAdminInfo
|
||||
@{
|
||||
var loc = Utilities.CurrentLocalization.LocalizationIndex;
|
||||
|
@ -1,5 +1,7 @@
|
||||
@using Humanizer
|
||||
@using Data.Models
|
||||
@using Data.Models
|
||||
@using Humanizer
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using SharedLibraryCore
|
||||
@model Data.Models.EFPenalty.PenaltyType
|
||||
@{
|
||||
var loc = Utilities.CurrentLocalization.LocalizationIndex;
|
||||
@ -68,7 +70,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="penalty_table">
|
||||
@await Component.InvokeAsync("PenaltyList", new WebfrontCore.ViewModels.PenaltyFilterInfo
|
||||
@await Component.InvokeAsync("PenaltyList", new IW4MAdmin.WebfrontCore.ViewModels.PenaltyFilterInfo
|
||||
{
|
||||
Offset = 0,
|
||||
Count = 30,
|
||||
|
@ -1,12 +1,14 @@
|
||||
@{
|
||||
@using SharedLibraryCore.Dtos
|
||||
@using Data.Models
|
||||
@using IW4MAdmin.WebfrontCore.Permissions
|
||||
@using SharedLibraryCore
|
||||
@model IList<SharedLibraryCore.Dtos.PenaltyInfo>
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
|
||||
bool CanSeeLevel(PenaltyInfo penalty) => (ViewBag.PermissionsSet as IEnumerable<string>).HasPermission(WebfrontEntity.ClientLevel, WebfrontPermission.Read) || penalty.PenaltyType == EFPenalty.PenaltyType.Report;
|
||||
}
|
||||
@using WebfrontCore.Permissions
|
||||
@using SharedLibraryCore.Dtos
|
||||
@using Data.Models
|
||||
@model IList<SharedLibraryCore.Dtos.PenaltyInfo>
|
||||
|
||||
@{
|
||||
foreach (var penalty in Model.Where(CanSeeLevel))
|
||||
|
@ -2,6 +2,6 @@
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@model WebfrontCore.ViewModels.PenaltyFilterInfo
|
||||
@model IW4MAdmin.WebfrontCore.ViewModels.PenaltyFilterInfo
|
||||
|
||||
@await Component.InvokeAsync("PenaltyList", new { offset = Model.Offset, count = Model.Count, showOnly = Model.ShowOnly, ignoreAutomated = Model.IgnoreAutomated })
|
||||
|
@ -7,7 +7,8 @@
|
||||
var offenderLevelClass = canSeeLevel ? $"level-color-{Model.OffenderLevel.ToString().ToLower()}" : "text-light-dm text-dark-lm";
|
||||
}
|
||||
|
||||
@using WebfrontCore.Permissions
|
||||
@using IW4MAdmin.WebfrontCore.Permissions
|
||||
@using SharedLibraryCore
|
||||
@model SharedLibraryCore.Dtos.PenaltyInfo
|
||||
|
||||
<!-- desktop -->
|
||||
|
@ -1,4 +1,5 @@
|
||||
@using WebfrontCore.ViewModels
|
||||
@using IW4MAdmin.WebfrontCore.ViewModels
|
||||
@using SharedLibraryCore
|
||||
@model IEnumerable<SharedLibraryCore.Dtos.ServerInfo>
|
||||
|
||||
<style>
|
||||
|
@ -1,5 +1,6 @@
|
||||
@using WebfrontCore.ViewModels
|
||||
@model IEnumerable<WebfrontCore.ViewModels.ScoreboardInfo>
|
||||
@using IW4MAdmin.WebfrontCore.ViewModels
|
||||
@using SharedLibraryCore
|
||||
@model IEnumerable<IW4MAdmin.WebfrontCore.ViewModels.ScoreboardInfo>
|
||||
@{
|
||||
var selectedServer = Model?.FirstOrDefault(server => server.ServerId == ViewBag.SelectedServerId) ?? Model?.First();
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model SharedLibraryCore.Dtos.ServerInfo
|
||||
@using SharedLibraryCore
|
||||
@model SharedLibraryCore.Dtos.ServerInfo
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
|
@ -1,7 +1,7 @@
|
||||
@using WebfrontCore.ViewModels
|
||||
@using System.Globalization
|
||||
@using System.Globalization
|
||||
@using IW4MAdmin.WebfrontCore.ViewModels
|
||||
@using SharedLibraryCore.Database.Models
|
||||
@model WebfrontCore.ViewModels.ScoreboardInfo
|
||||
@model IW4MAdmin.WebfrontCore.ViewModels.ScoreboardInfo
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model SharedLibraryCore.Dtos.ServerInfo
|
||||
@using SharedLibraryCore
|
||||
@model SharedLibraryCore.Dtos.ServerInfo
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model IEnumerable<SharedLibraryCore.Dtos.PlayerInfo>
|
||||
@using SharedLibraryCore
|
||||
@model IEnumerable<SharedLibraryCore.Dtos.PlayerInfo>
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model IEnumerable<SharedLibraryCore.Dtos.PlayerInfo>
|
||||
@using SharedLibraryCore
|
||||
@model IEnumerable<SharedLibraryCore.Dtos.PlayerInfo>
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
@using SharedLibraryCore.Interfaces;
|
||||
@using SharedLibraryCore
|
||||
@using SharedLibraryCore.Interfaces;
|
||||
|
||||
@model IEnumerable<IClientMeta>
|
||||
@{
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model Exception
|
||||
@using SharedLibraryCore
|
||||
@model Exception
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
|
@ -1,7 +1,8 @@
|
||||
@using WebfrontCore.QueryHelpers.Models
|
||||
@using SharedLibraryCore.Interfaces
|
||||
@using System.Globalization
|
||||
@using IW4MAdmin.WebfrontCore.QueryHelpers.Models
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using SharedLibraryCore
|
||||
@model string
|
||||
@{
|
||||
var existingChatFilter = ViewBag.Query as ChatResourceRequest;
|
||||
|
@ -1,8 +1,9 @@
|
||||
@using WebfrontCore.QueryHelpers.Models
|
||||
@using System.Globalization
|
||||
@using Data.Models
|
||||
@using Data.Models.Client
|
||||
@using IW4MAdmin.WebfrontCore.QueryHelpers.Models
|
||||
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using SharedLibraryCore
|
||||
@using SharedLibraryCore.Dtos
|
||||
@model string
|
||||
@{
|
||||
|
@ -1,5 +1,5 @@
|
||||
@using SharedLibraryCore
|
||||
@using SharedLibraryCore.Alerts
|
||||
@using Humanizer
|
||||
@model IEnumerable<SharedLibraryCore.Alerts.Alert.AlertState>
|
||||
@{
|
||||
Layout = null;
|
||||
|
@ -1,4 +1,5 @@
|
||||
@using Data.Models
|
||||
@using SharedLibraryCore
|
||||
@using SharedLibraryCore.Dtos.Meta.Responses
|
||||
@model IEnumerable<SharedLibraryCore.Dtos.ServerInfo>
|
||||
@{
|
||||
|
@ -1,4 +1,5 @@
|
||||
@model int?
|
||||
@using SharedLibraryCore
|
||||
@model int?
|
||||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
@using WebfrontCore.ViewModels
|
||||
@model WebfrontCore.ViewModels.TableInfo
|
||||
@using IW4MAdmin.WebfrontCore.ViewModels
|
||||
@using SharedLibraryCore
|
||||
@model IW4MAdmin.WebfrontCore.ViewModels.TableInfo
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html >
|
||||
@using SharedLibraryCore
|
||||
<!DOCTYPE html >
|
||||
<html xmlns="http://www.w3.org/1999/html" lang="@ViewBag.Language">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
|
@ -1,6 +1,8 @@
|
||||
@using SharedLibraryCore.Configuration
|
||||
@using SharedLibraryCore.Dtos
|
||||
@using Data.Models.Client
|
||||
@using IW4MAdmin.WebfrontCore
|
||||
@using SharedLibraryCore
|
||||
@using SharedLibraryCore.Interfaces
|
||||
|
||||
<!-- left side navigation -->
|
||||
|
@ -1,4 +1,4 @@
|
||||
@model WebfrontCore.ViewModels.SideContextMenuItems
|
||||
@model IW4MAdmin.WebfrontCore.ViewModels.SideContextMenuItems
|
||||
@{ Layout = null; }
|
||||
|
||||
<div class="d-none d-lg-flex col-3">
|
||||
|
@ -1,5 +1,3 @@
|
||||
@using SharedLibraryCore
|
||||
@using WebfrontCore
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@addTagHelper *, SharedLibraryCore
|
||||
@addTagHelper *, WebfrontCore
|
Reference in New Issue
Block a user