From 742cac1e9001a9a363fd15661ac0dc963a8a2eef Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 28 Nov 2022 17:57:33 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=BF=9E=E6=8E=A5=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/const.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/apps/terminal/const.py b/apps/terminal/const.py index 3f653aaf7..21d79fd0a 100644 --- a/apps/terminal/const.py +++ b/apps/terminal/const.py @@ -56,11 +56,7 @@ class NativeClient(TextChoices): xshell = 'xshell', 'Xshell' # Magnus - mysql = 'mysql', 'mysql' - psql = 'psql', 'psql' - sqlplus = 'sqlplus', 'sqlplus' - redis = 'redis-cli', 'redis-cli' - mongodb = 'mongo', 'mongo' + db_client = 'db_client', _('DB Client') # Razor mstsc = 'mstsc', 'Remote Desktop' @@ -73,11 +69,11 @@ class NativeClient(TextChoices): 'windows': [cls.putty], }, Protocol.rdp: [cls.mstsc], - Protocol.mysql: [cls.mysql], - Protocol.oracle: [cls.sqlplus], - Protocol.postgresql: [cls.psql], - Protocol.redis: [cls.redis], - Protocol.mongodb: [cls.mongodb], + Protocol.mysql: [cls.db_client], + Protocol.oracle: [cls.db_client], + Protocol.postgresql: [cls.db_client], + Protocol.redis: [cls.db_client], + Protocol.mongodb: [cls.db_client], } return clients @@ -183,8 +179,8 @@ class TerminalType(TextChoices): cls.magnus: { 'listen': [], 'support': [ - Protocol.mysql, Protocol.postgresql, Protocol.oracle, - Protocol.mariadb + Protocol.mysql, Protocol.postgresql, + Protocol.oracle, Protocol.mariadb ], 'match': 'map' },