feat(Documents) Notes/Docs page improvements and warning cleanup
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
@if (Entity.IdVanguards().Count > 0) {
|
||||
@if (Entity!.IdVanguards().Count > 0)
|
||||
{
|
||||
@if (StyleType.Equals("Plain"))
|
||||
{
|
||||
@foreach (var data in Entity.IdVanguards()) {
|
||||
@foreach (var data in Entity.IdVanguards())
|
||||
{
|
||||
var entity = EntityModel.Get(data.Id);
|
||||
|
||||
var requirements = entity.Requirements();
|
||||
@@ -9,7 +11,7 @@
|
||||
var replaced = DATA.Get()[vanguardAdded.ReplaceId];
|
||||
var immortal = DATA.Get()[vanguardAdded.ImmortalId];
|
||||
|
||||
|
||||
|
||||
var productionBuilding = (from building in requirements
|
||||
where building.Requirement == RequirementType.Production_Building
|
||||
select building).First().DataType;
|
||||
@@ -22,7 +24,7 @@
|
||||
<b>- Replaces:</b> @replaced.Info().Name
|
||||
</div>
|
||||
<div>
|
||||
<b>- Built From:</b> @immortal.Info().Name
|
||||
<b>- Built From:</b> @immortal.Info().Name
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@@ -30,7 +32,8 @@
|
||||
else
|
||||
{
|
||||
<EntityDisplayComponent Title="Vanguards">
|
||||
@foreach (var data in Entity.IdVanguards()) {
|
||||
@foreach (var data in Entity.IdVanguards())
|
||||
{
|
||||
var entity = EntityModel.Get(data.Id);
|
||||
|
||||
var requirements = entity.Requirements();
|
||||
@@ -44,7 +47,7 @@
|
||||
<b>Name:</b> <EntityLabelComponent EntityId="@entity.DataType"/>
|
||||
</div>
|
||||
<div>
|
||||
<b>Replaces:</b> <EntityLabelComponent EntityId="@vanguard.ReplaceId"/>
|
||||
<b>Replaces:</b> <EntityLabelComponent EntityId="@vanguard.ReplaceId"/>
|
||||
</div>
|
||||
<div>
|
||||
<b>Built From:</b> <EntityLabelComponent EntityId="@productionBuilding"/>
|
||||
@@ -52,17 +55,15 @@
|
||||
</div>
|
||||
}
|
||||
</EntityDisplayComponent>
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@code {
|
||||
|
||||
[CascadingParameter]
|
||||
public EntityModel? Entity { get; set; }
|
||||
|
||||
|
||||
public EntityModel? Entity { get; set; } = default!;
|
||||
|
||||
|
||||
[CascadingParameter]
|
||||
public string StyleType { get; set; } = "Detailed";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user