temp commit
This commit is contained in:
parent
f5ac34e639
commit
2724b6b9d2
14 changed files with 136 additions and 19 deletions
|
@ -9,6 +9,10 @@
|
|||
<a class="toggleOpened" onclick="@ToggleOpened">@toggleText</a>
|
||||
<span>]</span>
|
||||
<span class="name">@comment.Username</span>
|
||||
@if (comment.User.Role != "User")
|
||||
{
|
||||
<span class="@comment.User.Role" >##@comment.User.Role</span>
|
||||
}
|
||||
<span class="date">@getTimeFromUnix(comment.CreatedAt)</span>
|
||||
<span class="post-id">No.@comment.CommentID</span>
|
||||
</div>
|
||||
|
|
|
@ -58,4 +58,11 @@
|
|||
|
||||
.threadTextContainer{
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.Admin{
|
||||
color: #ff191c;
|
||||
}
|
||||
.Mod{
|
||||
color: #af13d7;
|
||||
}
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
{
|
||||
Stream stream = selectedFile.OpenReadStream(maxAllowedSize: 512000 * 4); // max 2MB
|
||||
var file = Path.GetRandomFileName() + "." + selectedFile.Name.Split(".")[selectedFile.Name.Split(".").Length - 1];
|
||||
var path = $"{env.WebRootPath}\\img\\dynamic\\comment\\{@post.Board}\\{file}";
|
||||
var path = $"{env.WebRootPath}/img/dynamic/comment/{@post.Board}/{file}";
|
||||
FileStream fs = File.Create(path);
|
||||
await stream.CopyToAsync(fs);
|
||||
stream.Close();
|
||||
|
@ -110,7 +110,7 @@
|
|||
var imageToUpload = new ImageData
|
||||
{
|
||||
Board = post.Board,
|
||||
ImageLocation = $"\\img\\dynamic\\comment\\{post.Board}\\{file}"
|
||||
ImageLocation = $"/img/dynamic/comment/{post.Board}/{file}"
|
||||
};
|
||||
int imageID = await ImagesRepository.createImageAsync(imageToUpload);
|
||||
commentToCreate = new CommentData()
|
||||
|
|
|
@ -120,7 +120,7 @@
|
|||
|
||||
Stream stream = selectedFile.OpenReadStream(maxAllowedSize: 512000 * 4); // max 2MB
|
||||
var file = Path.GetRandomFileName() + "." + selectedFile.Name.Split(".")[selectedFile.Name.Split(".").Length - 1];
|
||||
var path = $"{env.WebRootPath}\\img\\dynamic\\op\\{board.Tag}\\{file}";
|
||||
var path = $"{env.WebRootPath}/img/dynamic/op/{board.Tag}/{file}";
|
||||
FileStream fs = File.Create(path);
|
||||
await stream.CopyToAsync(fs);
|
||||
stream.Close();
|
||||
|
@ -129,7 +129,7 @@
|
|||
var imageToUpload = new ImageData
|
||||
{
|
||||
Board = board.Tag,
|
||||
ImageLocation = $"\\img\\dynamic\\op\\{board.Tag}\\{file}"
|
||||
ImageLocation = $"/img/dynamic/op/{board.Tag}/{file}"
|
||||
};
|
||||
int imageID = await ImagesRepository.createImageAsync(imageToUpload);
|
||||
var postToPost = new PostData
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
}
|
||||
<span class="title">@post.Title</span>
|
||||
<span class="name">@post.Username</span>
|
||||
<span class="roleAdmin" >##@post.User.Role</span>
|
||||
@if (post.User.Role != "User")
|
||||
{
|
||||
<span class="@post.User.Role" >##@post.User.Role</span>.
|
||||
}
|
||||
<span class="date">@getTimeFromUnix(post.CreatedAt)</span>
|
||||
<span class="post-id">No.@post.PostID</span>
|
||||
</div>
|
||||
|
|
|
@ -16,9 +16,13 @@
|
|||
color: #339305;
|
||||
}
|
||||
|
||||
.roleAdmin{
|
||||
.Admin{
|
||||
color: #ff191c;
|
||||
}
|
||||
.Mod{
|
||||
color: #af13d7;
|
||||
}
|
||||
|
||||
|
||||
.threadHeader{
|
||||
text-align: left;
|
||||
|
|
5
ImageBoardServerApp/Shared/Components/Reports.razor
Normal file
5
ImageBoardServerApp/Shared/Components/Reports.razor
Normal file
|
@ -0,0 +1,5 @@
|
|||
<h3>Reports</h3>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
|
@ -20,6 +20,7 @@
|
|||
<a @onclick="logout" href="javascript:void(0)">[Logout @mail]</a>
|
||||
</Authorized>
|
||||
<NotAuthorized>
|
||||
<a href="/register">[Register]</a>
|
||||
<a href="/login">[Login]</a>
|
||||
</NotAuthorized>
|
||||
</AuthorizeView>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue