import from other repo
This commit is contained in:
commit
d8a81fdfc0
53 changed files with 2243 additions and 0 deletions
16
ImageBoardServerApp/Pages/B.razor
Normal file
16
ImageBoardServerApp/Pages/B.razor
Normal file
|
@ -0,0 +1,16 @@
|
|||
@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"
|
||||
};
|
||||
}
|
6
ImageBoardServerApp/Pages/FAQ.razor
Normal file
6
ImageBoardServerApp/Pages/FAQ.razor
Normal file
|
@ -0,0 +1,6 @@
|
|||
@page "/faq"
|
||||
<h3>FAQ</h3>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
60
ImageBoardServerApp/Pages/FetchData.razor
Normal file
60
ImageBoardServerApp/Pages/FetchData.razor
Normal file
|
@ -0,0 +1,60 @@
|
|||
@page "/fetchdata"
|
||||
@inject HttpClient Http
|
||||
|
||||
<PageTitle>Weather forecast</PageTitle>
|
||||
|
||||
<h1>Weather forecast</h1>
|
||||
|
||||
<p>This component demonstrates fetching data from the server.</p>
|
||||
|
||||
@if (forecasts == null)
|
||||
{
|
||||
<p>
|
||||
<em>Loading...</em>
|
||||
</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Temp. (C)</th>
|
||||
<th>Temp. (F)</th>
|
||||
<th>Summary</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var forecast in forecasts)
|
||||
{
|
||||
<tr>
|
||||
<td>@forecast.Date.ToShortDateString()</td>
|
||||
<td>@forecast.TemperatureC</td>
|
||||
<td>@forecast.TemperatureF</td>
|
||||
<td>@forecast.Summary</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
|
||||
@code {
|
||||
private WeatherForecast[]? forecasts;
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("sample-data/weather.json");
|
||||
}
|
||||
|
||||
public class WeatherForecast
|
||||
{
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
public int TemperatureC { get; set; }
|
||||
|
||||
public string? Summary { get; set; }
|
||||
|
||||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
|
||||
}
|
||||
|
||||
}
|
9
ImageBoardServerApp/Pages/Index.razor
Normal file
9
ImageBoardServerApp/Pages/Index.razor
Normal file
|
@ -0,0 +1,9 @@
|
|||
@page "/"
|
||||
|
||||
<h1>BulletBoard</h1>
|
||||
<div>
|
||||
This is a simple Imageboard made in Razor.
|
||||
</div>
|
||||
<div>
|
||||
|
||||
</div>
|
6
ImageBoardServerApp/Pages/Rules.razor
Normal file
6
ImageBoardServerApp/Pages/Rules.razor
Normal file
|
@ -0,0 +1,6 @@
|
|||
@page "/rules"
|
||||
<h3>Rules</h3>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
7
ImageBoardServerApp/Pages/SuccessfulPost.razor
Normal file
7
ImageBoardServerApp/Pages/SuccessfulPost.razor
Normal file
|
@ -0,0 +1,7 @@
|
|||
@page "/SuccessfulPost"
|
||||
<h3>SuccessfulPost</h3>
|
||||
<span>Post sucessfully crated!</span>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
7
ImageBoardServerApp/Pages/UnSuccessfulPost.razor
Normal file
7
ImageBoardServerApp/Pages/UnSuccessfulPost.razor
Normal file
|
@ -0,0 +1,7 @@
|
|||
@page "/UnSuccessfulPost"
|
||||
<h3>UnuccessfulPost</h3>
|
||||
<span>Post was not created!</span>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
37
ImageBoardServerApp/Pages/_Host.cshtml
Normal file
37
ImageBoardServerApp/Pages/_Host.cshtml
Normal file
|
@ -0,0 +1,37 @@
|
|||
@page "/"
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
@namespace ImageBoardServerApp.Pages
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
|
||||
<link rel="stylesheet" href="_content/Radzen.Blazor/css/material-dark.css">
|
||||
<script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<base href="~/"/>
|
||||
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css"/>
|
||||
<link href="css/site.css" rel="stylesheet"/>
|
||||
<link href="ImageBoardServerApp.styles.css" rel="stylesheet"/>
|
||||
<link rel="icon" type="image/png" href="favicon.png"/>
|
||||
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered"/>
|
||||
</head>
|
||||
<body>
|
||||
<component type="typeof(App)" render-mode="ServerPrerendered"/>
|
||||
|
||||
<div id="blazor-error-ui">
|
||||
<environment include="Staging,Production">
|
||||
An error has occurred. This application may no longer respond until reloaded.
|
||||
</environment>
|
||||
<environment include="Development">
|
||||
An unhandled exception has occurred. See browser dev tools for details.
|
||||
</environment>
|
||||
<a href="" class="reload">Reload</a>
|
||||
<a class="dismiss">🗙</a>
|
||||
</div>
|
||||
|
||||
<script src="_framework/blazor.server.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue