Initial Commit
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Model.Website.Data;
|
||||
|
||||
public class WebsiteData
|
||||
{
|
||||
public static List<WebPageModel> GetPages()
|
||||
{
|
||||
return
|
||||
[
|
||||
new WebPageModel
|
||||
{
|
||||
Id = 2,
|
||||
WebSectionModelId = 2,
|
||||
Name = "Build Calculator",
|
||||
Description = "Build order calculator for determining army timings",
|
||||
Href = "build-calculator",
|
||||
IsPrivate = "False",
|
||||
Icon = "fa-solid fa-helmet-battle"
|
||||
},
|
||||
new WebPageModel
|
||||
{
|
||||
Id = 1,
|
||||
WebSectionModelId = 2,
|
||||
Name = "Database",
|
||||
Description = "Database of game information",
|
||||
Href = "database",
|
||||
IsPrivate = "False",
|
||||
Icon = "fa-solid fa-clipboard-list"
|
||||
},
|
||||
new WebPageModel
|
||||
{
|
||||
Id = 3,
|
||||
WebSectionModelId = 2,
|
||||
Name = "Harass Calculator",
|
||||
Description = "Database of game information",
|
||||
Href = "harass-calculator",
|
||||
IsPrivate = "False",
|
||||
Icon = "fa-solid fa-bow-arrow"
|
||||
},
|
||||
new WebPageModel
|
||||
{
|
||||
Id = 4,
|
||||
WebSectionModelId = 2,
|
||||
Name = "Data Tables",
|
||||
Description = "Data tables",
|
||||
Href = "data-tables",
|
||||
IsPrivate = "False",
|
||||
Icon = "fa-solid fa-table-list"
|
||||
}
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Model.Website.Enums;
|
||||
|
||||
public enum NavSelectionType
|
||||
{
|
||||
None,
|
||||
Section,
|
||||
Page
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Model.Website.Enums;
|
||||
|
||||
public class NavigationStateType
|
||||
{
|
||||
public const string Default = "Default";
|
||||
public const string Hovering_Menu = "Hovering_Menu";
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Model.Website.Enums;
|
||||
|
||||
public enum WebDeploymentType
|
||||
{
|
||||
Private,
|
||||
Public,
|
||||
Immortal
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
namespace Model.Website.Enums;
|
||||
|
||||
public class WebPageType
|
||||
{
|
||||
//TODO Deprecated
|
||||
public static readonly string None = "725d1adb-d5c8-4e51-bafb-09c86a94d0b0";
|
||||
public static readonly string IMMORTAL_About = "16e56a46-e593-4de5-a2ff-272b41a28d99";
|
||||
public static readonly string IMMORTAL_BuildCalculator = "c3abee8c-6b10-426d-8a7f-9042e536c007";
|
||||
|
||||
public static readonly string IMMORTAL_MemoryTester = "1234";
|
||||
|
||||
public static readonly string IMMORTAL_ChartComparision = "72ff145b-cfe0-454d-ae8f-ee977007eb73";
|
||||
public static readonly string IMMORTAL_Database = "2602b6ff-24c8-4924-ac59-3d7ad9dbca6b";
|
||||
public static readonly string IMMORTAL_HarassCalculator = "617547c2-c89a-4fa9-b063-5240d46d37b0";
|
||||
public static readonly string IMMORTAL_Notes = "47fbdc7e-97e7-4046-8c91-23f80b87fb86";
|
||||
public static readonly string IMMORTAL_KeyMapping = "315118a1-1d94-4237-a254-76de4ede845a";
|
||||
public static readonly string IMMORTAL_RoadMap = "119ddb93-ac4c-4481-9b89-91111201c543";
|
||||
public static readonly string IMMORTAL_Documentation = "f1a0a435-90ba-4cb3-8ae4-e27e1a249aa1";
|
||||
public static readonly string IMMORTAL_MakingOf = "532c08ed-c9ac-4425-b882-b5501127a567";
|
||||
public static readonly string IMMORTAL_Contact = "37dcbee4-53d9-4cbb-997c-445c2536dde8";
|
||||
public static readonly string IMMORTAL_ChangeLog = "36d459b4-4126-42f8-a391-222af8291c9c";
|
||||
public static readonly string IMMORTAL_Agile = "29a152d2-744a-4567-ba6a-68538c6462ae";
|
||||
public static readonly string IMMORTAL_Streams = "7f375283-83fa-44cf-8fe1-4b8cbd45007e";
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace Model.Website.Enums;
|
||||
|
||||
public class WebSectionType
|
||||
{
|
||||
public static readonly string None = "28eefe79-3808-48da-8665-3eab5aebca1d";
|
||||
|
||||
public static readonly string ImmortalGeneral = "1a7dce11-57ff-453e-abac-6eeab01b9a61";
|
||||
public static readonly string ImmortalTools = "c68afaa1-23b6-4ead-9622-797781bb4575";
|
||||
public static readonly string ImmortalResources = "3baddebc-e570-4855-946e-296b823411d6";
|
||||
public static readonly string ImmortalDevelopment = "df411a6f-2389-404b-b4fb-a86ebb764ecc";
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace Model.Website;
|
||||
|
||||
public class SearchPointModel
|
||||
{
|
||||
public string Title { get; set; } = "";
|
||||
public string Summary { get; set; } = "";
|
||||
|
||||
public string Tags { get; set; } = "";
|
||||
public string PointType { get; set; } = "";
|
||||
public string Href { get; set; } = "";
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Model.Website;
|
||||
|
||||
public static class SupportedWebSizes
|
||||
{
|
||||
// Mins
|
||||
//public static string Phone = "0px";
|
||||
public static string Tablet = "479px";
|
||||
public static string Desktop = "1024px";
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System.Collections.Generic;
|
||||
using Model.Website.Enums;
|
||||
|
||||
namespace Model.Website;
|
||||
|
||||
public class WebDeploymentModel
|
||||
{
|
||||
public static WebDeploymentType DeploymentType { get; set; } = WebDeploymentType.Private;
|
||||
|
||||
public static List<string> Get()
|
||||
{
|
||||
return DeploymentType == WebDeploymentType.Immortal ? GetImmortal() : new List<string>();
|
||||
}
|
||||
|
||||
|
||||
public static List<string> GetImmortal()
|
||||
{
|
||||
return new List<string>
|
||||
{
|
||||
"",
|
||||
"build-calculator",
|
||||
"comparison-charts",
|
||||
"database"
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Model.Website.Enums;
|
||||
|
||||
namespace Model.Website;
|
||||
|
||||
public class WebDescriptionModel
|
||||
{
|
||||
public static readonly List<WebDescriptionModel> List = new();
|
||||
|
||||
public string Name { get; set; } = "Add Name";
|
||||
public string Description { get; set; } = "Add description";
|
||||
public string Parent { get; set; } = WebSectionType.None;
|
||||
public bool IsPrivate { get; set; } = true;
|
||||
|
||||
public static IEnumerable<WebDescriptionModel> GetPages(string forSection)
|
||||
{
|
||||
return from page in List
|
||||
where page.Parent == forSection
|
||||
select page;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace Model.Website;
|
||||
|
||||
public class WebPageModel
|
||||
{
|
||||
public int Id { get; set; } // Not used
|
||||
public int? WebSectionModelId { get; set; } // Not used
|
||||
public string Name { get; set; } = "Add name";
|
||||
public string Description { get; set; } = "Add description";
|
||||
public string Href { get; set; } = null;
|
||||
public string IsPrivate { get; set; } = "True"; // Not used. Make boolean
|
||||
public string Icon { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Model.Website;
|
||||
|
||||
public class WebSectionModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = "Add name";
|
||||
public string Description { get; set; } = "Add description";
|
||||
public int Order { get; set; } = 0;
|
||||
public string IsPrivate { get; set; } = "True";
|
||||
|
||||
public string Icon { get; set; } = "fa-icons";
|
||||
public bool OnlyIcon { get; set; } = false;
|
||||
|
||||
[NotMapped] public List<WebPageModel> WebPageModels { get; set; } = new();
|
||||
}
|
||||
Reference in New Issue
Block a user