mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-05 09:21:02 +00:00
perf: 优化优先使用系统设置中的 rdp_resolution 配置
This commit is contained in:
@@ -38,3 +38,16 @@ class TerminalSettingSerializer(serializers.Serializer):
|
||||
TERMINAL_MAGNUS_ENABLED = serializers.BooleanField(label=_("Enable database proxy"))
|
||||
TERMINAL_RAZOR_ENABLED = serializers.BooleanField(label=_("Enable Razor"))
|
||||
TERMINAL_KOKO_SSH_ENABLED = serializers.BooleanField(label=_("Enable SSH Client"))
|
||||
|
||||
RESOLUTION_CHOICES = (
|
||||
('Auto', 'Auto'),
|
||||
('1024x768', '1024x768'),
|
||||
('1366x768', '1366x768'),
|
||||
('1600x900', '1600x900'),
|
||||
('1920x1080', '1920x1080')
|
||||
)
|
||||
TERMINAL_GRAPHICAL_RESOLUTION = serializers.ChoiceField(
|
||||
default='Auto', choices=RESOLUTION_CHOICES, required=False,
|
||||
label=_('Default graphics resolution'),
|
||||
help_text=_('Tip: Default resolution to use when connecting graphical assets in Luna pages')
|
||||
)
|
||||
|
Reference in New Issue
Block a user