2023-01-18 12:56:24 +00:00
@page "/"
2023-06-13 21:34:16 +00:00
@using ImageBoardServerApp.Util
2023-01-26 12:04:55 +00:00
@using ImageBoardServerApp.Data.Repository
2023-02-02 07:15:43 +00:00
@inject AuthenticationStateProvider authStateProvider
2023-01-18 12:56:24 +00:00
2023-06-14 14:15:56 +00:00
<h1>BulletBoards @ver</h1>
2023-06-13 17:59:33 +00:00
<p>
This is a simple <a href="https://en.wiktionary.org/wiki/imageboard">imageboard</a> made in <a href="https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor">Razor Server</a>.
<br/>
This project was made by Pierre, Jennifer and Eric.
<br/>
This project is licensed under the <a href="https://www.gnu.org/licenses/gpl-3.0.en.html#license-text">GPL-3.0</a>.
<br/>
Click <a href="https://www.gnu.org/philosophy/free-sw.en.html">here</a> to learn more about free software.
<br/>
2023-06-13 21:34:16 +00:00
Check out the project on <a href="https://git.limited-dev.de/eric/imageboard">Gitlab</a>.
2023-06-13 17:59:33 +00:00
<br>
2023-06-13 21:34:16 +00:00
<br/>
2023-06-14 14:15:56 +00:00
We're currently @amountOfUsers users, viewing @amountOfPosts post with @amountOfComments comment.
2023-06-13 17:59:33 +00:00
<br/>
Click here to:
<AuthorizeView>
<Authorized>
<a href="/sys/you">Edit your account information</a>
</Authorized>
<NotAuthorized>
<a href="/sys/register">Create an account to start posting</a>
2023-06-14 14:15:56 +00:00
<a>
 
</a>
2023-06-13 17:59:33 +00:00
or
<a> </a>
<a href="/sys/login">Log into your account</a>
</NotAuthorized>
</AuthorizeView>
2023-06-14 14:15:56 +00:00
<br/>
<br/>
<img src="img/static/sys/qr.png" alt="QR CODE"/>
2023-06-13 17:59:33 +00:00
</p>
2023-01-26 12:04:55 +00:00
@code{
2023-06-12 16:51:25 +00:00
2023-01-26 12:04:55 +00:00
private int amountOfPosts = -1;
private int amountOfComments = -1;
private int amountOfUsers = -1;
2023-06-12 16:51:25 +00:00
2023-06-13 21:34:16 +00:00
public string ver { get; set; } = TheManager.version;
2023-06-12 16:51:25 +00:00
protected override async Task OnParametersSetAsync()
2023-01-26 12:04:55 +00:00
{
var posts = await PostsRepository.getPostsAsync();
amountOfPosts = posts.Count;
var comments = await CommentsRepository.getCommentsAsync();
amountOfComments = comments.Count;
var users = await UsersRepository.getUsersAsync();
amountOfUsers = users.Count;
2023-06-12 16:51:25 +00:00
await base.OnParametersSetAsync();
2023-01-26 12:04:55 +00:00
}
}