feature(BuildCalc) Added reset button, can change micro delay, and can alter timing interval again

This commit is contained in:
2022-04-14 22:28:14 -04:00
parent 4cef578cd0
commit 04c1718259
115 changed files with 1561 additions and 1308 deletions
+5 -5
View File
@@ -1,6 +1,5 @@
@using Model.Website.Enums
@using Model.Website
@if (isDisplayable) {
@if (isDisplayable)
{
@ChildContent
}
@@ -10,14 +9,15 @@
public RenderFragment ChildContent { get; set; } = default!;
[Parameter]
public WebDeploymentType DeploymentType { get; set; } = default!;
public WebDeploymentType DeploymentType { get; set; }
[Inject]
public NavigationManager MyNavigationManager { get; set; } = default!;
bool isDisplayable;
protected override void OnInitialized() {
protected override void OnInitialized()
{
isDisplayable = DeploymentType == WebDeploymentModel.DeploymentType;
}
+6 -4
View File
@@ -1,8 +1,9 @@
@using Model.Website
@if (isDisplayable) {
@if (isDisplayable)
{
@ChildContent
}
else {
else
{
<LayoutView Layout="@typeof(MainLayout)">
<p>Sorry, there's nothing at this address.</p>
</LayoutView>
@@ -18,7 +19,8 @@ else {
bool isDisplayable;
protected override void OnInitialized() {
protected override void OnInitialized()
{
var page = MyNavigationManager.Uri.Remove(0, MyNavigationManager.BaseUri.Length);
isDisplayable = WebDeploymentModel.Get().Contains(page);
}