Move machines admin index to Blazor.

This commit is contained in:
2020-05-24 15:28:47 +01:00
parent ecdc4210d2
commit 4aabb169f9
8 changed files with 162 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using Marechai.Database;
namespace Marechai.ViewModels
{
@@ -18,5 +19,10 @@ namespace Marechai.ViewModels
public List<ProcessorViewModel> Processors { get; set; }
public List<SoundSynthViewModel> SoundSynthesizers { get; set; }
public List<StorageViewModel> Storage { get; set; }
public string Company { get; set; }
public MachineType Type { get; set; }
public string Family { get; set; }
public string IntroducedView =>
Introduced?.Year == 1000 ? "Prototype" : Introduced?.ToShortDateString() ?? "Unknown";
}
}