feat: 添加终端右键菜单逻辑.
This commit is contained in:
@@ -8,6 +8,8 @@ import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 终端偏好模型
|
||||
*
|
||||
@@ -33,6 +35,9 @@ public class TerminalPreferenceModel implements PreferenceModel {
|
||||
@Schema(description = "操作栏设置")
|
||||
private JSONObject actionBarSetting;
|
||||
|
||||
@Schema(description = "右键菜单设置")
|
||||
private List<String> rightMenuSetting;
|
||||
|
||||
@Schema(description = "交互设置")
|
||||
private JSONObject interactSetting;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.orion.ops.module.infra.handler.preference.strategy;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.orion.lang.utils.collect.Lists;
|
||||
import com.orion.net.host.ssh.TerminalType;
|
||||
import com.orion.ops.module.infra.handler.preference.model.TerminalPreferenceModel;
|
||||
import org.springframework.stereotype.Component;
|
||||
@@ -63,6 +64,7 @@ public class TerminalPreferenceStrategy implements IPreferenceStrategy<TerminalP
|
||||
.theme(new JSONObject())
|
||||
.displaySetting(JSONObject.parseObject(defaultDisplaySetting))
|
||||
.actionBarSetting(new JSONObject())
|
||||
.rightMenuSetting(Lists.of("copy", "paste", "checkAll", "search", "clear"))
|
||||
.interactSetting(JSONObject.parseObject(defaultInteractSetting))
|
||||
.pluginsSetting(JSONObject.parseObject(defaultPluginsSetting))
|
||||
.sessionSetting(JSONObject.parseObject(defaultSessionSetting))
|
||||
|
||||
Reference in New Issue
Block a user