feat(adminui): wire all 9 typed pages into DriverEditRouter map
DriverEditRouter now dispatches every known DriverType to its typed page. The legacy DriverEdit fallback remains in ResolveComponentType for forward-compatibility with as-yet-unknown driver types but is no longer reached for any current driver.
This commit is contained in:
+9
-3
@@ -41,9 +41,15 @@ else
|
|||||||
private static readonly IReadOnlyDictionary<string, Type> _componentMap =
|
private static readonly IReadOnlyDictionary<string, Type> _componentMap =
|
||||||
new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase)
|
new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase)
|
||||||
{
|
{
|
||||||
// Populated by Phase 4 — until then, all driver types fall back to DriverEdit.
|
["ModbusTcp"] = typeof(ModbusDriverPage),
|
||||||
// Keys must match DriverInstance.DriverType strings:
|
["AbCip"] = typeof(AbCipDriverPage),
|
||||||
// ModbusTcp, AbCip, AbLegacy, S7, TwinCat, Focas, OpcUaClient, Galaxy, Historian.Wonderware
|
["AbLegacy"] = typeof(AbLegacyDriverPage),
|
||||||
|
["S7"] = typeof(S7DriverPage),
|
||||||
|
["TwinCat"] = typeof(TwinCATDriverPage),
|
||||||
|
["Focas"] = typeof(FocasDriverPage),
|
||||||
|
["OpcUaClient"] = typeof(OpcUaClientDriverPage),
|
||||||
|
["Galaxy"] = typeof(GalaxyDriverPage),
|
||||||
|
["Historian.Wonderware"] = typeof(HistorianWonderwareDriverPage),
|
||||||
};
|
};
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
|
|||||||
Reference in New Issue
Block a user