feat: 设置主机分组内元素.

This commit is contained in:
lijiahangmax
2024-01-11 01:25:58 +08:00
parent 7f9a97180e
commit 34ebad0b5f
4 changed files with 62 additions and 13 deletions

View File

@@ -21,9 +21,6 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
public class TerminalPreferenceModel implements PreferenceModel {
@Schema(description = "暗色主题")
private String darkTheme;
@Schema(description = "新建连接类型")
private String newConnectionType;
@@ -34,7 +31,7 @@ public class TerminalPreferenceModel implements PreferenceModel {
private JSONObject backgroundSetting;
@Schema(description = "终端主题")
private JSONObject themeSchema;
private JSONObject theme;
@Data
@Builder

View File

@@ -17,7 +17,6 @@ public class TerminalPreferenceStrategy implements IPreferenceStrategy<TerminalP
@Override
public TerminalPreferenceModel getDefault() {
return TerminalPreferenceModel.builder()
.darkTheme("auto")
.newConnectionType("group")
.displaySetting(TerminalPreferenceModel.DisplaySettingModel.builder()
.fontFamily("_")
@@ -31,7 +30,7 @@ public class TerminalPreferenceStrategy implements IPreferenceStrategy<TerminalP
.toJson()
)
.backgroundSetting(new JSONObject())
.themeSchema(new JSONObject())
.theme(new JSONObject())
.build();
}

View File

@@ -36,22 +36,36 @@
// 底部操作
const bottomActions: Array<SidebarAction> = [
{
icon: 'icon-drive-file',
content: InnerTabs.SFTP_SETTING.title,
click: () => tabManager.openTab(InnerTabs.SFTP_SETTING)
},
{
icon: 'icon-command',
content: InnerTabs.SHORTCUT_SETTING.title,
visible: false,
click: () => tabManager.openTab(InnerTabs.SHORTCUT_SETTING)
},
{
icon: 'icon-tool',
content: InnerTabs.TOOL_SETTING.title,
click: () => tabManager.openTab(InnerTabs.TOOL_SETTING)
icon: 'icon-desktop',
content: InnerTabs.DISPLAY_SETTING.title,
click: () => tabManager.openTab(InnerTabs.DISPLAY_SETTING)
},
{
icon: 'icon-stamp',
content: InnerTabs.INTERACT_SETTING.title,
click: () => tabManager.openTab(InnerTabs.INTERACT_SETTING)
},
{
icon: 'icon-palette',
content: InnerTabs.THEME_SETTING.title,
click: () => tabManager.openTab(InnerTabs.THEME_SETTING)
},
{
icon: 'icon-settings',
content: InnerTabs.TERMINAL_SETTING.title,
click: () => tabManager.openTab(InnerTabs.TERMINAL_SETTING)
},
];
</script>

View File

@@ -24,14 +24,24 @@ export const InnerTabs = {
title: '新建连接',
type: TabType.SETTING
},
SFTP_SETTING: {
key: 'sftpSetting',
title: 'sftp设置',
type: TabType.SETTING
},
SHORTCUT_SETTING: {
key: 'shortcutSetting',
title: '快捷键设置',
type: TabType.SETTING
},
TOOL_SETTING: {
key: 'toolSetting',
title: '终端设置',
DISPLAY_SETTING: {
key: 'displaySetting',
title: '显示设置',
type: TabType.SETTING
},
INTERACT_SETTING: {
key: 'interactSetting',
title: '交互设置',
type: TabType.SETTING
},
THEME_SETTING: {
@@ -39,8 +49,37 @@ export const InnerTabs = {
title: '主题设置',
type: TabType.SETTING
},
TERMINAL_SETTING: {
key: 'terminalSetting',
title: '终端设置',
type: TabType.SETTING
},
};
// TODO
// 显示设置
// 显示基础设置
// 右侧栏
// 交互设置
// 右键选中词条
// 右键粘贴
// 启用右键菜单
// 自动将选中内容复制到剪切板
// 粘贴时删除空格
// 复制时删除空格
// 分隔符 /\()"'-.,:;<>~!@#$%^&*|+=[]{}~?│ 在终端中双击文本将使用到这些符号
// 自动检测 url 并可以点击
// 支持显示图片 使用 sixel 打开图片
// 终端设置
// bell sound
// terminal emulation type: xterm 256color
// 回滚ScrollBack
// 保存在缓冲区的行数
// 新建连接类型
export const NewConnectionType = {
GROUP: 'group',