feat(Documents) Notes/Docs page improvements and warning cleanup

This commit is contained in:
2022-04-07 13:30:00 -04:00
parent b270453030
commit d82e60efdf
223 changed files with 4396 additions and 2861 deletions
+1 -1
View File
@@ -22,6 +22,6 @@
@code {
[Parameter]
public RenderFragment ChildContent { get; set; }
public RenderFragment ChildContent { get; set; } = default!;
}
+5 -5
View File
@@ -1,4 +1,4 @@
@if (IsOnDev) {
@if (isOnDev) {
<div class="devOnlyContainer">
<div class="devOnlyTitleContainer">
<div class="devOnlyTitle">
@@ -58,15 +58,15 @@
@code {
[Inject]
NavigationManager NavigationManager { get; set; }
NavigationManager NavigationManager { get; set; } = default!;
[Parameter]
public RenderFragment ChildContent { get; set; }
public RenderFragment ChildContent { get; set; } = default!;
bool IsOnDev;
bool isOnDev;
protected override void OnInitialized() {
IsOnDev = NavigationManager.BaseUri.Contains("https://localhost");
isOnDev = NavigationManager.BaseUri.Contains("https://localhost");
}
}
@@ -70,9 +70,9 @@
@code {
[Parameter]
public RenderFragment ChildContent { get; set; }
public RenderFragment ChildContent { get; set; } = default!;
[Parameter]
public string Title { get; set; }
public string Title { get; set; } = default!;
}
@@ -50,15 +50,16 @@
margin-bottom: 20px;
position: absolute;
}
}
</style>
@code {
[Parameter]
public RenderFragment ChildContent { get; set; }
public RenderFragment ChildContent { get; set; } = default!;
[Parameter]
public string InfoText { get; set; }
public string InfoText { get; set; } = default!;
[Parameter]
public int? Margin { get; set; }
+5 -5
View File
@@ -98,19 +98,19 @@
@code {
[Parameter]
public RenderFragment Title { get; set; }
public RenderFragment Title { get; set; } = default!;
[Parameter]
public RenderFragment Description { get; set; }
public RenderFragment Description { get; set; } = default!;
[Parameter]
public RenderFragment Example { get; set; }
public RenderFragment Example { get; set; } = default!;
[Parameter]
public RenderFragment Usage { get; set; }
public RenderFragment Usage { get; set; } = default!;
[Parameter]
public RenderFragment Code { get; set; }
public RenderFragment Code { get; set; } = default!;
}
@@ -23,10 +23,10 @@
@code {
[Parameter]
public string Title { get; set; }
public string Title { get; set; } = default!;
[Parameter]
public RenderFragment ChildContent { get; set; }
public RenderFragment ChildContent { get; set; } = default!;
}
+4 -6
View File
@@ -1,29 +1,27 @@
<div class="paper">
<div class="paperDisplay">
@ChildContent
</div>
<style>
.paper {
.paperDisplay {
padding-top: 24px;
padding-left: 24px;
padding-right: 24px;
padding-bottom: 24px;
margin: auto;
overflow-y: auto;
overflow-x: hidden;
border: 4px solid var(--paper-border);
background-color: var(--paper);
box-shadow: 0px 6px var(--paper-border);
width: 100%;
}
</style>
@code {
[Parameter]
public RenderFragment ChildContent { get; set; }
public RenderFragment ChildContent { get; set; } = default!;
[Parameter]
public string Title { get; set; }
public string Title { get; set; } = default!;
}