diff --git a/ImageBoardServerApp/Data/ReportData.cs b/ImageBoardServerApp/Data/ReportData.cs new file mode 100644 index 0000000..7f18ab2 --- /dev/null +++ b/ImageBoardServerApp/Data/ReportData.cs @@ -0,0 +1,42 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace ImageBoardServerApp.Data; + +public class ReportData +{ + [Required] + [DatabaseGenerated((DatabaseGeneratedOption.Identity))] + [Key] + public int ReportID { get; set; } + + [Required] + public int UserReportedID { get; set; } + + [Required] + public UserData UserReported { get; set; } + + [Required] + public int UserReporterID { get; set; } + + [Required] + public UserData UserReporter { get; set; } + + public int? ReportedCommentID { get; set; } + + public CommentData? ReportedComment { get; set; } + + public int? ReportedPostID { get; set; } + + public PostData? ReportedPost { get; set; } + + [Required] + public string Type { get; set; } + + [Required] + public string ReportReason { get; set; } + + public string ReportExlaination { get; set; } + + +} \ No newline at end of file diff --git a/ImageBoardServerApp/ImageBoardServerApp.csproj b/ImageBoardServerApp/ImageBoardServerApp.csproj index 756ebf0..4f3a75d 100644 --- a/ImageBoardServerApp/ImageBoardServerApp.csproj +++ b/ImageBoardServerApp/ImageBoardServerApp.csproj @@ -19,8 +19,8 @@ - - + + diff --git a/ImageBoardServerApp/Pages/Boards/B.razor b/ImageBoardServerApp/Pages/Boards/B.razor deleted file mode 100644 index 7c7010f..0000000 --- a/ImageBoardServerApp/Pages/Boards/B.razor +++ /dev/null @@ -1,16 +0,0 @@ -@page "/b/" -@using System.ComponentModel.DataAnnotations -@using ImageBoardServerApp.Data - - - -@code { - - private BoardData b { get; set; } = new() - { - BoardID = 0, - maxThreads = 10, - Tag = "b", - Topic = "Random" - }; -} \ No newline at end of file diff --git a/ImageBoardServerApp/Pages/Boards/M.razor b/ImageBoardServerApp/Pages/Boards/M.razor new file mode 100644 index 0000000..84dc481 --- /dev/null +++ b/ImageBoardServerApp/Pages/Boards/M.razor @@ -0,0 +1,17 @@ +@page "/m/" +@using System.ComponentModel.DataAnnotations +@using ImageBoardServerApp.Data + + + + +@code { + + private BoardData m { get; set; } = new() + { + BoardID = 0, + maxThreads = 10, + Tag = "m", + Topic = "Main" + }; +} \ No newline at end of file diff --git a/ImageBoardServerApp/Pages/Boards/M.razor.css b/ImageBoardServerApp/Pages/Boards/M.razor.css new file mode 100644 index 0000000..09af9e7 --- /dev/null +++ b/ImageBoardServerApp/Pages/Boards/M.razor.css @@ -0,0 +1,3 @@ +.banner{ + justify-content: center; +} \ No newline at end of file diff --git a/ImageBoardServerApp/Pages/_Host.cshtml b/ImageBoardServerApp/Pages/_Host.cshtml index 0775ade..6886334 100644 --- a/ImageBoardServerApp/Pages/_Host.cshtml +++ b/ImageBoardServerApp/Pages/_Host.cshtml @@ -15,7 +15,7 @@ - + diff --git a/ImageBoardServerApp/Shared/NavMenu.razor b/ImageBoardServerApp/Shared/NavMenu.razor index a716788..56c5d1b 100644 --- a/ImageBoardServerApp/Shared/NavMenu.razor +++ b/ImageBoardServerApp/Shared/NavMenu.razor @@ -15,8 +15,8 @@ diff --git a/ImageBoardServerApp/wwwroot/img/static/banner/mban.png b/ImageBoardServerApp/wwwroot/img/static/banner/mban.png new file mode 100644 index 0000000..ed0449f Binary files /dev/null and b/ImageBoardServerApp/wwwroot/img/static/banner/mban.png differ diff --git a/ImageBoardServerApp/wwwroot/img/static/logo.png b/ImageBoardServerApp/wwwroot/img/static/logo.png new file mode 100644 index 0000000..a0bc58a Binary files /dev/null and b/ImageBoardServerApp/wwwroot/img/static/logo.png differ