feat: moved /b/ to /m/, added ReportData, etc
This commit is contained in:
parent
c093b06d03
commit
e21ac0d3d7
9 changed files with 67 additions and 21 deletions
42
ImageBoardServerApp/Data/ReportData.cs
Normal file
42
ImageBoardServerApp/Data/ReportData.cs
Normal file
|
@ -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; }
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -19,8 +19,8 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="wwwroot\img\dynamic\comment\b" />
|
<Folder Include="wwwroot\img\dynamic\comment\m" />
|
||||||
<Folder Include="wwwroot\img\dynamic\op\b" />
|
<Folder Include="wwwroot\img\dynamic\op\m" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
@page "/b/"
|
|
||||||
@using System.ComponentModel.DataAnnotations
|
|
||||||
@using ImageBoardServerApp.Data
|
|
||||||
|
|
||||||
<Board board="@b"/>
|
|
||||||
|
|
||||||
@code {
|
|
||||||
|
|
||||||
private BoardData b { get; set; } = new()
|
|
||||||
{
|
|
||||||
BoardID = 0,
|
|
||||||
maxThreads = 10,
|
|
||||||
Tag = "b",
|
|
||||||
Topic = "Random"
|
|
||||||
};
|
|
||||||
}
|
|
17
ImageBoardServerApp/Pages/Boards/M.razor
Normal file
17
ImageBoardServerApp/Pages/Boards/M.razor
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
@page "/m/"
|
||||||
|
@using System.ComponentModel.DataAnnotations
|
||||||
|
@using ImageBoardServerApp.Data
|
||||||
|
|
||||||
|
<img class="banner" src="img/static/banner/mban.png" alt="No Banner found"/>
|
||||||
|
<Board board="@m"/>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
|
||||||
|
private BoardData m { get; set; } = new()
|
||||||
|
{
|
||||||
|
BoardID = 0,
|
||||||
|
maxThreads = 10,
|
||||||
|
Tag = "m",
|
||||||
|
Topic = "Main"
|
||||||
|
};
|
||||||
|
}
|
3
ImageBoardServerApp/Pages/Boards/M.razor.css
Normal file
3
ImageBoardServerApp/Pages/Boards/M.razor.css
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.banner{
|
||||||
|
justify-content: center;
|
||||||
|
}
|
|
@ -15,7 +15,7 @@
|
||||||
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css"/>
|
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css"/>
|
||||||
<link href="css/site.css" rel="stylesheet"/>
|
<link href="css/site.css" rel="stylesheet"/>
|
||||||
<link href="ImageBoardServerApp.styles.css" rel="stylesheet"/>
|
<link href="ImageBoardServerApp.styles.css" rel="stylesheet"/>
|
||||||
<link rel="icon" type="image/png" href="favicon.png"/>
|
<link rel="icon" type="image/png" href="/img/static/logo.png"/>
|
||||||
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered"/>
|
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
<div class="nav-item px-3">
|
<div class="nav-item px-3">
|
||||||
<NavLink class="nav-link" href="b">
|
<NavLink class="nav-link" href="m">
|
||||||
<span class="oi oi-list-rich" aria-hidden="true"></span> /b/ - Random
|
<span class="oi oi-list-rich" aria-hidden="true"></span> /m/ - Main
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
BIN
ImageBoardServerApp/wwwroot/img/static/banner/mban.png
Normal file
BIN
ImageBoardServerApp/wwwroot/img/static/banner/mban.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 168 KiB |
BIN
ImageBoardServerApp/wwwroot/img/static/logo.png
Normal file
BIN
ImageBoardServerApp/wwwroot/img/static/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 159 KiB |
Loading…
Reference in a new issue