Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
@using Model.Website.Enums
|
||||
@using Model.Website
|
||||
@if (isDisplayable) {
|
||||
@ChildContent
|
||||
}
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public WebDeploymentType DeploymentType { get; set; }
|
||||
|
||||
[Inject]
|
||||
public NavigationManager MyNavigationManager { get; set; }
|
||||
|
||||
bool isDisplayable;
|
||||
|
||||
protected override void OnInitialized() {
|
||||
isDisplayable = DeploymentType == WebDeploymentModel.DeploymentType;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
@using Model.Website
|
||||
@if (isDisplayable) {
|
||||
@ChildContent
|
||||
}
|
||||
else {
|
||||
<LayoutView Layout="@typeof(MainLayout)">
|
||||
<p>Sorry, there's nothing at this address.</p>
|
||||
</LayoutView>
|
||||
}
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
|
||||
[Inject]
|
||||
public NavigationManager MyNavigationManager { get; set; }
|
||||
|
||||
bool isDisplayable;
|
||||
|
||||
protected override void OnInitialized() {
|
||||
var page = MyNavigationManager.Uri.Remove(0, MyNavigationManager.BaseUri.Length);
|
||||
isDisplayable = WebDeploymentModel.Get().Contains(page);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
|
||||
@Body
|
||||
@@ -0,0 +1,19 @@
|
||||
<div style="display:inline; width: 12px;">
|
||||
<div style="height: 0px; display:flex; flex-direction:column; align-items:center;">
|
||||
<div style="height: 0px;">
|
||||
―
|
||||
</div>
|
||||
<div style="height: 0px;position: relative; top: -6px; left:0px; white-space:pre">@Dividee</div>
|
||||
<div style="height: 0px; position: relative; top: 6px; left:0px; white-space:pre">@Divider</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment Dividee { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment Divider { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<div style="display:flex; flex-direction:column; align-items:center;padding-right: 12px;padding-left: 4px; font-family:monospace">
|
||||
<div style="height: 0px;display:flex; flex-direction:row; ">
|
||||
<div style="font-size: 18px; height: 0px;">
|
||||
∑
|
||||
</div>
|
||||
<div style="position:relative; left: 2px; top: 1px;">@IndexSymbol</div>
|
||||
</div>
|
||||
|
||||
<div style="height: 0px;position: relative; top: -18px; left:0px; font-size: 80%; display:flex;">@LoopEnd</div>
|
||||
<div style="height: 0px; position: relative; top: 22px; left:0px; font-size: 80%; display:flex;">@LoopStart</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment LoopEnd { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment LoopStart { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment IndexSymbol { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<span class="spoiler">
|
||||
<u>@ChildContent</u>
|
||||
</span>
|
||||
|
||||
<style>
|
||||
.spoiler {
|
||||
color: black;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
u {
|
||||
text-decoration-color: inherit;
|
||||
text-decoration-thickness:1px;
|
||||
}
|
||||
|
||||
.spoiler:hover {
|
||||
color: inherit;
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user