Removing all the meta agile and git stuff
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Model.Work.Tasks.Enums;
|
||||
|
||||
namespace Model.Work.Tasks;
|
||||
|
||||
public class AgileSprintModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = "Add name...";
|
||||
public string Description { get; set; } = "Add description...";
|
||||
|
||||
public DateTime? StartDate { get; set; } = null;
|
||||
public DateTime? EndDate { get; set; } = null;
|
||||
|
||||
public string Notes { get; set; } = "Add notes...";
|
||||
|
||||
[NotMapped] public virtual ICollection<AgileTaskModel> AgileTaskModels { get; set; } = new List<AgileTaskModel>();
|
||||
|
||||
|
||||
public string GetSprintType()
|
||||
{
|
||||
var now = DateTime.Now;
|
||||
|
||||
if (StartDate == null || EndDate == null) return SprintType.Planned;
|
||||
|
||||
if (DateTime.Compare(now, EndDate.GetValueOrDefault()) > 0) return SprintType.Completed;
|
||||
if (DateTime.Compare(now, StartDate.GetValueOrDefault()) >= 0) return SprintType.Current;
|
||||
|
||||
return SprintType.Planned;
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
using System;
|
||||
using Model.Work.Tasks.Enums;
|
||||
|
||||
namespace Model.Work.Tasks;
|
||||
|
||||
public class AgileTaskModel
|
||||
{
|
||||
public int Id { get; set; } = 1;
|
||||
public int? AgileSprintModelId { get; set; } = null;
|
||||
public string Name { get; set; } = "Add name...";
|
||||
public string Description { get; set; } = "Add description...";
|
||||
public string Notes { get; set; } = "Add notes...";
|
||||
public string Status { get; set; } = StatusType.Fun_Idea;
|
||||
public string Priority { get; set; } = PriorityType.Medium;
|
||||
public string Task { get; set; } = TaskType.Feature;
|
||||
|
||||
public int OrderPriority => Status == StatusType.In_Progress ? 1
|
||||
: Status == StatusType.Todo ? 2
|
||||
: Status == StatusType.Done ? 3
|
||||
: Status == StatusType.Canceled ? 4
|
||||
: Status == StatusType.To_Test ? 2
|
||||
: Status == StatusType.Fun_Idea ? 5 : 6;
|
||||
|
||||
public DateTime? Created { get; set; } = null;
|
||||
public DateTime? Finished { get; set; } = null;
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace Model.Work.Tasks.Enums;
|
||||
|
||||
public class PriorityType
|
||||
{
|
||||
public const string Blocker = "Blocker";
|
||||
public const string High = "High";
|
||||
public const string Medium = "Medium";
|
||||
public const string Low = "Low";
|
||||
public const string None = "None";
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
namespace Model.Work.Tasks.Enums;
|
||||
|
||||
public class ProjectType
|
||||
{
|
||||
public const string Management = "Management";
|
||||
public const string Immortal = "Management";
|
||||
public const string Food = "Management";
|
||||
public const string Job = "Management";
|
||||
public const string Time = "Management";
|
||||
public const string Maintence = "Management";
|
||||
public const string Website = "Management";
|
||||
public const string Tasks = "Management";
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace Model.Work.Tasks.Enums;
|
||||
|
||||
public class SprintType
|
||||
{
|
||||
public const string Current = "Current";
|
||||
public const string Planned = "Planned";
|
||||
public const string Completed = "Completed";
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace Model.Work.Tasks.Enums;
|
||||
|
||||
public class StatusType
|
||||
{
|
||||
public const string In_Progress = "In_Progress";
|
||||
public const string Todo = "Todo";
|
||||
public const string To_Test = "To_Test";
|
||||
public const string Done = "Done";
|
||||
public const string Canceled = "Canceled";
|
||||
public const string Fun_Idea = "Fun_Idea";
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace Model.Work.Tasks.Enums;
|
||||
|
||||
public class TaskType
|
||||
{
|
||||
public const string Feature = "Feature";
|
||||
public const string Bug = "Bug";
|
||||
public const string Document = "Document";
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Model.Doc;
|
||||
|
||||
public class DocConnectionModel
|
||||
{
|
||||
[Key] public int Id { get; set; } = 1;
|
||||
public int ParentId { get; set; } = 1;
|
||||
public int ChildId { get; set; } = 1;
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Model.Doc;
|
||||
|
||||
public class DocContentModel
|
||||
{
|
||||
[Key] public int Id { get; set; } = 1;
|
||||
|
||||
public int? ParentId { get; set; } = null;
|
||||
public int? DocSectionModelId { get; set; } = null;
|
||||
public string Href { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public virtual ICollection<DocContentModel> DocumentationModels { get; set; } = new List<DocContentModel>();
|
||||
|
||||
[NotMapped] public virtual DocContentModel Parent { get; set; }
|
||||
[NotMapped] public virtual int PageOrder { get; set; }
|
||||
public DateTime CreatedDate { get; set; }
|
||||
public DateTime UpdatedDate { get; set; }
|
||||
public string Name { get; set; } = "";
|
||||
public string Description { get; set; } = null;
|
||||
public string Content { get; set; } = "";
|
||||
|
||||
private string GetLink()
|
||||
{
|
||||
var link = Href;
|
||||
|
||||
if (Parent != null) link = $"{Parent.GetLink()}/" + link;
|
||||
|
||||
return link;
|
||||
}
|
||||
|
||||
public string GetDocLink()
|
||||
{
|
||||
return $"docs/{GetLink()}";
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
using System;
|
||||
using YamlDotNet.Serialization;
|
||||
|
||||
namespace Model.Doc;
|
||||
|
||||
public class DocFrontMatterModel
|
||||
{
|
||||
[YamlMember(Alias = "title")] public string Title { get; set; }
|
||||
[YamlMember(Alias = "summary")] public string Summary { get; set; }
|
||||
[YamlMember(Alias = "created_date")] public DateTime CreatedDate { get; set; }
|
||||
[YamlMember(Alias = "updated_date")] public DateTime UpdatedDate { get; set; }
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Model.Doc;
|
||||
|
||||
public class DocSectionModel
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public virtual ICollection<DocContentModel> DocumentationModels { get; set; } = new List<DocContentModel>();
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
namespace Model.Git;
|
||||
|
||||
public class CommitType
|
||||
{
|
||||
public const string Feature = "Feature";
|
||||
public const string Game_Patch = "Game Patch";
|
||||
public const string Fix = "Fix";
|
||||
public const string Documents = "Documents";
|
||||
public const string Style = "Style";
|
||||
public const string Refactor = "Refactor";
|
||||
public const string Perf = "Perf";
|
||||
public const string Test = "Test";
|
||||
public const string Build = "Build";
|
||||
public const string CI = "CI";
|
||||
public const string Chore = "Chore";
|
||||
public const string Typo = "Typo";
|
||||
public const string Revert = "Revert";
|
||||
public const string Planning = "Planning";
|
||||
public const string PrivacyPolicy = "Privacy Policy";
|
||||
public const string None = "None";
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace Model.Git;
|
||||
|
||||
public class GitChangeModel
|
||||
{
|
||||
public int Id { get; set; } = 1;
|
||||
public int GitPatchModelId { get; set; } = 1;
|
||||
public string Name { get; set; } = "Add name...";
|
||||
public string Description { get; set; } = "Add desciption...";
|
||||
public string Commit { get; set; } = CommitType.Feature;
|
||||
public string Important { get; set; } = "False";
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Model.Git;
|
||||
|
||||
public class GitPatchModel
|
||||
{
|
||||
public int Id { get; set; } = 1;
|
||||
public string Name { get; set; } = "Add name...";
|
||||
public DateTime Date { get; set; } = DateTime.Now;
|
||||
public ICollection<GitChangeModel> GitChangeModels { get; set; } = new List<GitChangeModel>();
|
||||
public string Important { get; set; } = "False";
|
||||
}
|
||||
Reference in New Issue
Block a user