Normalize
This commit is contained in:
13
Normalize/ClientHub/Pages/Counter.razor
Normal file
13
Normalize/ClientHub/Pages/Counter.razor
Normal file
@ -0,0 +1,13 @@
|
||||
@page "/"
|
||||
@page "/Counter"
|
||||
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
@using MudBlazor
|
||||
|
||||
@namespace Normalize.ClientHub.Pages
|
||||
|
||||
<PageTitle>Counter</PageTitle>
|
||||
|
||||
<MudText Typo="Typo.h3" GutterBottom="true">Counter</MudText>
|
||||
<MudText Class="mb-4">Current count: @_CurrentCount</MudText>
|
||||
<MudButton Color="Color.Primary" Variant="Variant.Filled" @onclick="IncrementCount">Click me</MudButton>
|
10
Normalize/ClientHub/Pages/Counter.razor.cs
Normal file
10
Normalize/ClientHub/Pages/Counter.razor.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Normalize.ClientHub.Pages;
|
||||
|
||||
public partial class Counter
|
||||
{
|
||||
|
||||
private int _CurrentCount = 0;
|
||||
|
||||
private void IncrementCount() => _CurrentCount++;
|
||||
|
||||
}
|
53
Normalize/ClientHub/Pages/_Host.cshtml
Normal file
53
Normalize/ClientHub/Pages/_Host.cshtml
Normal file
@ -0,0 +1,53 @@
|
||||
@page "/"
|
||||
@model Normalize.ClientHub.Pages.Host
|
||||
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
|
||||
@namespace Normalize.ClientHub.Pages
|
||||
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
|
||||
<!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="lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="css/site.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="ClientHub.styles.css" asp-append-version="true" />
|
||||
|
||||
<link href="manifest.json" rel="manifest" />
|
||||
<link rel="icon" type="image/png" href="favicon.png" />
|
||||
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" />
|
||||
<link rel="apple-touch-icon" sizes="192x192" href="icon-192.png" />
|
||||
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
|
||||
|
||||
<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>
|
||||
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
|
||||
<script src="lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="js/site.js" asp-append-version="true"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
6
Normalize/ClientHub/Pages/_Host.cshtml.cs
Normal file
6
Normalize/ClientHub/Pages/_Host.cshtml.cs
Normal file
@ -0,0 +1,6 @@
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace Normalize.ClientHub.Pages;
|
||||
|
||||
public partial class Host : PageModel
|
||||
{ }
|
Reference in New Issue
Block a user