perf: add nec vnc component and endpoint migrations

This commit is contained in:
Eric
2024-11-11 15:59:28 +08:00
committed by 老广
parent 5724912480
commit b660bfb7ff
6 changed files with 36 additions and 2 deletions

View File

@@ -35,6 +35,9 @@ class NativeClient(TextChoices):
# Razor
mstsc = 'mstsc', _('Remote Desktop')
rdp_guide = 'rdp_guide', _('RDP Guide')
# NEC
vnc_client = 'vnc_client', _('VNC Client')
vnc_guide = 'vnc_guide', _('VNC Guide')
@classmethod
def get_native_clients(cls):
@@ -51,6 +54,7 @@ class NativeClient(TextChoices):
Protocol.oracle: [cls.db_client, cls.db_guide],
Protocol.postgresql: [cls.db_client, cls.db_guide],
Protocol.sqlserver: [cls.db_client, cls.db_guide],
Protocol.vnc: [cls.vnc_guide,]
}
return clients
@@ -201,6 +205,12 @@ class ConnectMethodUtil:
'listen': [Protocol.http],
'support': [Protocol.chatgpt],
'match': 'm2m'
},
TerminalType.nec: {
'web_methods': [],
'listen': [Protocol.vnc],
'support': [Protocol.vnc],
'match': 'map'
}
}
return protocols