feat(Documents) Notes/Docs page improvements and warning cleanup
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
namespace Model.Website.Enums;
|
||||
|
||||
public enum NavSelectionType {
|
||||
public enum NavSelectionType
|
||||
{
|
||||
None,
|
||||
Section,
|
||||
Page
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
namespace Model.Website.Enums;
|
||||
|
||||
public class NavigationStateType {
|
||||
public class NavigationStateType
|
||||
{
|
||||
public const string Default = "Default";
|
||||
public const string Hovering_Menu = "Hovering_Menu";
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
namespace Model.Website.Enums;
|
||||
|
||||
public enum WebDeploymentType {
|
||||
public enum WebDeploymentType
|
||||
{
|
||||
Private,
|
||||
Public,
|
||||
Immortal
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
namespace Model.Website.Enums;
|
||||
|
||||
public class WebPageType {
|
||||
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";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
namespace Model.Website.Enums;
|
||||
|
||||
public class WebSectionType {
|
||||
public class WebSectionType
|
||||
{
|
||||
public static readonly string None = "28eefe79-3808-48da-8665-3eab5aebca1d";
|
||||
|
||||
public static readonly string ImmortalGeneral = "1a7dce11-57ff-453e-abac-6eeab01b9a61";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
namespace Model.Website;
|
||||
|
||||
public static class SupportedWebSizes {
|
||||
public static class SupportedWebSizes
|
||||
{
|
||||
// Mins
|
||||
//public static string Phone = "0px";
|
||||
public static string Tablet = "479px";
|
||||
|
||||
@@ -3,16 +3,20 @@ using Model.Website.Enums;
|
||||
|
||||
namespace Model.Website;
|
||||
|
||||
public class WebDeploymentModel {
|
||||
public class WebDeploymentModel
|
||||
{
|
||||
public static WebDeploymentType DeploymentType { get; set; } = WebDeploymentType.Private;
|
||||
|
||||
public static List<string> Get() {
|
||||
public static List<string> Get()
|
||||
{
|
||||
return DeploymentType == WebDeploymentType.Immortal ? GetImmortal() : new List<string>();
|
||||
}
|
||||
|
||||
|
||||
public static List<string> GetImmortal() {
|
||||
return new List<string> {
|
||||
public static List<string> GetImmortal()
|
||||
{
|
||||
return new List<string>
|
||||
{
|
||||
"",
|
||||
"build-calculator",
|
||||
"comparison-charts",
|
||||
|
||||
@@ -4,7 +4,8 @@ using Model.Website.Enums;
|
||||
|
||||
namespace Model.Website;
|
||||
|
||||
public class WebDescriptionModel {
|
||||
public class WebDescriptionModel
|
||||
{
|
||||
public static readonly List<WebDescriptionModel> List = new();
|
||||
|
||||
public string Name { get; set; } = "Add Name";
|
||||
@@ -12,7 +13,8 @@ public class WebDescriptionModel {
|
||||
public string Parent { get; set; } = WebSectionType.None;
|
||||
public bool IsPrivate { get; set; } = true;
|
||||
|
||||
public static IEnumerable<WebDescriptionModel> GetPages(string forSection) {
|
||||
public static IEnumerable<WebDescriptionModel> GetPages(string forSection)
|
||||
{
|
||||
return from page in List
|
||||
where page.Parent == forSection
|
||||
select page;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
namespace Model.Website;
|
||||
|
||||
public class WebPageModel {
|
||||
public class WebPageModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int WebSectionModelId { get; set; }
|
||||
public string Name { get; set; } = "Add name";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
namespace Model.Website;
|
||||
|
||||
public class WebSectionModel {
|
||||
public class WebSectionModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = "Add name";
|
||||
public string Description { get; set; } = "Add description";
|
||||
|
||||
Reference in New Issue
Block a user