forked from mirror/MCSM-Daemon
新增 终端配置设置
This commit is contained in:
parent
f0d47d54be
commit
1a285a6928
@ -44,6 +44,11 @@ export default class InstanceConfig {
|
||||
public fileCode: string = "utf-8";
|
||||
public processType: string = "general";
|
||||
|
||||
// terminal option
|
||||
public terminalOption = {
|
||||
haveColor: true
|
||||
};
|
||||
|
||||
// Event task
|
||||
public eventTask = {
|
||||
autoStart: false,
|
||||
@ -61,7 +66,7 @@ export default class InstanceConfig {
|
||||
cpuUsage: null,
|
||||
maxSpace: null,
|
||||
io: null,
|
||||
network: null,
|
||||
network: null
|
||||
};
|
||||
|
||||
public pingConfig = {
|
||||
|
@ -148,6 +148,9 @@ export default class Instance extends EventEmitter {
|
||||
configureEntityParams(this.config.eventTask, cfg.eventTask, "autoRestart", Boolean);
|
||||
configureEntityParams(this.config.eventTask, cfg.eventTask, "ignore", Boolean);
|
||||
}
|
||||
if (cfg.terminalOption) {
|
||||
configureEntityParams(this.config.terminalOption, cfg.terminalOption, "haveColor", Boolean);
|
||||
}
|
||||
StorageSubsystem.store("InstanceConfig", this.instanceUuid, this.config);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user