Initial commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
namespace Model.Website.Enums;
|
||||
|
||||
public enum NavSelectionType {
|
||||
None,
|
||||
Section,
|
||||
Page
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Model.Website.Enums;
|
||||
|
||||
public class NavigationStateType {
|
||||
public const string Default = "Default";
|
||||
public const string Hovering_Menu = "Hovering_Menu";
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Model.Website.Enums;
|
||||
|
||||
public enum WebDeploymentType {
|
||||
Private,
|
||||
Public,
|
||||
Immortal
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
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,10 @@
|
||||
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,8 @@
|
||||
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,22 @@
|
||||
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,20 @@
|
||||
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,10 @@
|
||||
namespace Model.Website;
|
||||
|
||||
public class WebPageModel {
|
||||
public int Id { get; set; }
|
||||
public int WebSectionModelId { get; set; }
|
||||
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";
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
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 string Href { get; set; } = null;
|
||||
public int Order { get; set; } = 0;
|
||||
public string IsPrivate { get; set; } = "True";
|
||||
}
|
||||
Reference in New Issue
Block a user