limited_dev
64c4c92cb1
fix: fixed language in index Signed-off-by: limited_dev <loginakkisativ@gmail.com>
61 lines
No EOL
2 KiB
Text
61 lines
No EOL
2 KiB
Text
@page "/"
|
|
@using ImageBoardServerApp.Util
|
|
@using ImageBoardServerApp.Data.Repository
|
|
@inject AuthenticationStateProvider authStateProvider
|
|
|
|
<h1>BulletBoards @ver</h1>
|
|
<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/>
|
|
Check out the project on <a href="https://git.limited-dev.de/eric/imageboard">Gitlab</a>.
|
|
<br>
|
|
<br/>
|
|
We're currently @amountOfUsers users, viewing @amountOfPosts post with @amountOfComments comment.
|
|
<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>
|
|
<a>
|
|
 
|
|
</a>
|
|
or
|
|
<a> </a>
|
|
<a href="/sys/login">Log into your account</a>
|
|
</NotAuthorized>
|
|
</AuthorizeView>
|
|
|
|
<br/>
|
|
<br/>
|
|
<img src="img/static/sys/qr.png" alt="QR CODE"/>
|
|
</p>
|
|
|
|
@code{
|
|
|
|
private int amountOfPosts = -1;
|
|
private int amountOfComments = -1;
|
|
private int amountOfUsers = -1;
|
|
|
|
public string ver { get; set; } = TheManager.version;
|
|
|
|
protected override async Task OnParametersSetAsync()
|
|
{
|
|
var posts = await PostsRepository.getPostsAsync();
|
|
amountOfPosts = posts.Count;
|
|
var comments = await CommentsRepository.getCommentsAsync();
|
|
amountOfComments = comments.Count;
|
|
var users = await UsersRepository.getUsersAsync();
|
|
amountOfUsers = users.Count;
|
|
await base.OnParametersSetAsync();
|
|
}
|
|
|
|
} |