1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Add about/community info guidelines/social page

This commit is contained in:
RaidMax
2021-10-09 21:11:47 -05:00
parent 9f859c5d23
commit 60681458c4
11 changed files with 226 additions and 10 deletions

View File

@ -11,6 +11,9 @@ namespace SharedLibraryCore.Configuration
{
public class ApplicationConfiguration : IBaseConfiguration
{
[ConfigurationIgnore]
public CommunityInformationConfiguration CommunityInformation { get; set; } = new CommunityInformationConfiguration();
[LocalizedDisplayName("SETUP_ENABLE_WEBFRONT")]
[ConfigurationLinked("WebfrontBindUrl", "ManualWebfrontUrl", "WebfrontPrimaryColor", "WebfrontSecondaryColor",
"WebfrontCustomBranding")]

View File

@ -0,0 +1,40 @@
namespace SharedLibraryCore.Configuration
{
public class CommunityInformationConfiguration
{
public string Name { get; set; } = "IW4MAdmin - Configure In IW4MAdminSettings.json";
public string Description { get; set; } =
"IW4MAdmin is an administration tool for IW4x, Pluto T6, Pluto IW5, CoD4x, TeknoMW3, and most Call of Duty® dedicated servers. It allows complete control of your server; from changing maps, to banning players, IW4MAdmin monitors and records activity on your server(s). With plugin support, extending its functionality is a breeze.";
public bool EnableBanner { get; set; } = true;
public SocialAccountConfiguration[] SocialAccounts { get; set; } =
{
new SocialAccountConfiguration
{
Title = "IW4MAdmin Website",
Url = "https://raidmax.org/IW4MAdmin",
IconId = "oi-globe"
},
new SocialAccountConfiguration
{
Title = "IW4MAdmin Github",
Url = "https://github.com/RaidMax/IW4M-Admin/",
IconUrl = "github.svg"
},
new SocialAccountConfiguration
{
Title = "IW4MAdmin Youtube",
Url = "https://www.youtube.com/watch?v=xpxEO4Qi0cQ",
IconUrl = "https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/youtube.svg"
}
};
}
public class SocialAccountConfiguration
{
public string Title { get; set; }
public string Url { get; set; }
public string IconUrl { get; set; }
public string IconId { get; set; }
}
}