@page "/"
@using ImageBoardServerApp.Data.Repository
@inject AuthenticationStateProvider authStateProvider
BulletBoard
This is a simple imageboard made in Razor Server.
This project was made by Pierre, Jennifer and Eric.
This project is licensed under the GPL-3.0.
Click here to learn more about free software.
We're currently @amountOfUsers User(s), viewing @amountOfPosts Post(s) with @amountOfComments Comment(s).
Click here to:
Edit your account information
Create an account to start posting
or
Log into your account
@code{
private int amountOfPosts = -1;
private int amountOfComments = -1;
private int amountOfUsers = -1;
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();
}
}