From 002772bfd71925b9b25ac9bc70a2f78ca8dac52f Mon Sep 17 00:00:00 2001 From: 0O0o0oOoO00 <11174151+0O0o0oOoO00@users.noreply.github.com> Date: Sat, 4 Oct 2025 15:24:04 +0800 Subject: [PATCH] add: add remark --- config/template.json | 14 ++++++++++ module/config/argument/args.json | 34 ++++++++++++++++++++++++ module/config/argument/argument.yaml | 13 ++++++++++ module/config/argument/menu.json | 3 ++- module/config/argument/task.yaml | 3 +++ module/config/config_generated.py | 9 +++++++ module/config/full_config_generated.py | 8 ++++++ module/config/i18n/en-US.json | 36 ++++++++++++++++++++++++++ module/config/i18n/ja-JP.json | 36 ++++++++++++++++++++++++++ module/config/i18n/zh-CN.json | 36 ++++++++++++++++++++++++++ module/config/i18n/zh-TW.json | 36 ++++++++++++++++++++++++++ 11 files changed, 227 insertions(+), 1 deletion(-) diff --git a/config/template.json b/config/template.json index d5faf91ed..e9a6cca72 100644 --- a/config/template.json +++ b/config/template.json @@ -168,6 +168,20 @@ "Storage": {} } }, + "Remark": { + "Boss": { + "Name": null, + "Account": null, + "Password": null, + "SecondPassword": null + }, + "Comment": { + "Content": null + }, + "Storage": { + "Storage": {} + } + }, "PowerLimit": { "PowerLimit": { "Enable": true, diff --git a/module/config/argument/args.json b/module/config/argument/args.json index e40efe381..611304bcd 100644 --- a/module/config/argument/args.json +++ b/module/config/argument/args.json @@ -698,6 +698,40 @@ } } }, + "Remark": { + "Boss": { + "Name": { + "type": "input", + "value": "" + }, + "Account": { + "type": "input", + "value": "" + }, + "Password": { + "type": "input", + "value": "" + }, + "SecondPassword": { + "type": "input", + "value": "" + } + }, + "Comment": { + "Content": { + "type": "textarea", + "value": "" + } + }, + "Storage": { + "Storage": { + "type": "storage", + "value": {}, + "valuetype": "ignore", + "display": "disabled" + } + } + }, "PowerLimit": { "PowerLimit": { "Enable": { diff --git a/module/config/argument/argument.yaml b/module/config/argument/argument.yaml index 7d2cbe73a..1e45b0562 100644 --- a/module/config/argument/argument.yaml +++ b/module/config/argument/argument.yaml @@ -991,3 +991,16 @@ OthersLogin: CloseTask: Enable: false MaxErrorOccur: 2 + +# ==================== Remark ====================== + +Boss: + Name: '' + Account: '' + Password: '' + SecondPassword: '' + +Comment: + Content: + type: textarea + value: '' diff --git a/module/config/argument/menu.json b/module/config/argument/menu.json index 0035f8a88..929d2cedb 100644 --- a/module/config/argument/menu.json +++ b/module/config/argument/menu.json @@ -5,7 +5,8 @@ "tasks": [ "Alas", "General", - "Restart" + "Restart", + "Remark" ] }, "Cheat": { diff --git a/module/config/argument/task.yaml b/module/config/argument/task.yaml index a6068ad30..17e0d5f84 100644 --- a/module/config/argument/task.yaml +++ b/module/config/argument/task.yaml @@ -26,6 +26,9 @@ Alas: - CloseTask - InstanceRestart - OthersLogin + Remark: + - Boss + - Comment # ==================== Cheat ==================== diff --git a/module/config/config_generated.py b/module/config/config_generated.py index c7641b608..3f6a2b0ea 100644 --- a/module/config/config_generated.py +++ b/module/config/config_generated.py @@ -630,5 +630,14 @@ class GeneratedConfig: CloseTask_Enable = False CloseTask_MaxErrorOccur = 2 + # Group `Boss` + Boss_Name = None + Boss_Account = None + Boss_Password = None + Boss_SecondPassword = None + + # Group `Comment` + Comment_Content = None + # Group `Storage` Storage_Storage = {} diff --git a/module/config/full_config_generated.py b/module/config/full_config_generated.py index 57b0a0f65..b39b41f00 100644 --- a/module/config/full_config_generated.py +++ b/module/config/full_config_generated.py @@ -114,6 +114,14 @@ class FullGeneratedConfig: Restart_OthersLogin_Notify = None Restart_Storage_Storage = None + # Task `Remark` + Remark_Boss_Name = None + Remark_Boss_Account = None + Remark_Boss_Password = None + Remark_Boss_SecondPassword = None + Remark_Comment_Content = None + Remark_Storage_Storage = None + # Task `PowerLimit` PowerLimit_PowerLimit_Enable = None PowerLimit_PowerLimit_Exercise = None diff --git a/module/config/i18n/en-US.json b/module/config/i18n/en-US.json index 8a8677d95..1ba20c16f 100644 --- a/module/config/i18n/en-US.json +++ b/module/config/i18n/en-US.json @@ -50,6 +50,10 @@ "name": "Restart", "help": "" }, + "Remark": { + "name": "Task.Remark.name", + "help": "Task.Remark.help" + }, "PowerLimit": { "name": "Task.PowerLimit.name", "help": "Task.PowerLimit.help" @@ -3426,6 +3430,38 @@ "help": "CloseTask.MaxErrorOccur.help" } }, + "Boss": { + "_info": { + "name": "Boss._info.name", + "help": "Boss._info.help" + }, + "Name": { + "name": "Boss.Name.name", + "help": "Boss.Name.help" + }, + "Account": { + "name": "Boss.Account.name", + "help": "Boss.Account.help" + }, + "Password": { + "name": "Boss.Password.name", + "help": "Boss.Password.help" + }, + "SecondPassword": { + "name": "Boss.SecondPassword.name", + "help": "Boss.SecondPassword.help" + } + }, + "Comment": { + "_info": { + "name": "Comment._info.name", + "help": "Comment._info.help" + }, + "Content": { + "name": "Comment.Content.name", + "help": "Comment.Content.help" + } + }, "Storage": { "_info": { "name": "Task status", diff --git a/module/config/i18n/ja-JP.json b/module/config/i18n/ja-JP.json index f47ff4fee..2ccb2c9c5 100644 --- a/module/config/i18n/ja-JP.json +++ b/module/config/i18n/ja-JP.json @@ -50,6 +50,10 @@ "name": "再起動設定", "help": "" }, + "Remark": { + "name": "Task.Remark.name", + "help": "Task.Remark.help" + }, "PowerLimit": { "name": "Task.PowerLimit.name", "help": "Task.PowerLimit.help" @@ -3426,6 +3430,38 @@ "help": "CloseTask.MaxErrorOccur.help" } }, + "Boss": { + "_info": { + "name": "Boss._info.name", + "help": "Boss._info.help" + }, + "Name": { + "name": "Boss.Name.name", + "help": "Boss.Name.help" + }, + "Account": { + "name": "Boss.Account.name", + "help": "Boss.Account.help" + }, + "Password": { + "name": "Boss.Password.name", + "help": "Boss.Password.help" + }, + "SecondPassword": { + "name": "Boss.SecondPassword.name", + "help": "Boss.SecondPassword.help" + } + }, + "Comment": { + "_info": { + "name": "Comment._info.name", + "help": "Comment._info.help" + }, + "Content": { + "name": "Comment.Content.name", + "help": "Comment.Content.help" + } + }, "Storage": { "_info": { "name": "Storage._info.name", diff --git a/module/config/i18n/zh-CN.json b/module/config/i18n/zh-CN.json index dad829ab9..146b2d659 100644 --- a/module/config/i18n/zh-CN.json +++ b/module/config/i18n/zh-CN.json @@ -50,6 +50,10 @@ "name": "重启设置", "help": "" }, + "Remark": { + "name": "备注", + "help": "" + }, "PowerLimit": { "name": "战力限制", "help": "" @@ -3426,6 +3430,38 @@ "help": "" } }, + "Boss": { + "_info": { + "name": "账号信息", + "help": "" + }, + "Name": { + "name": "名称", + "help": "" + }, + "Account": { + "name": "账号", + "help": "" + }, + "Password": { + "name": "密码", + "help": "" + }, + "SecondPassword": { + "name": "二级密码", + "help": "" + } + }, + "Comment": { + "_info": { + "name": "其他信息", + "help": "" + }, + "Content": { + "name": "", + "help": "" + } + }, "Storage": { "_info": { "name": "任务状态", diff --git a/module/config/i18n/zh-TW.json b/module/config/i18n/zh-TW.json index ead491f5c..27cf3776a 100644 --- a/module/config/i18n/zh-TW.json +++ b/module/config/i18n/zh-TW.json @@ -50,6 +50,10 @@ "name": "重啟設定", "help": "" }, + "Remark": { + "name": "Task.Remark.name", + "help": "Task.Remark.help" + }, "PowerLimit": { "name": "Task.PowerLimit.name", "help": "Task.PowerLimit.help" @@ -3426,6 +3430,38 @@ "help": "CloseTask.MaxErrorOccur.help" } }, + "Boss": { + "_info": { + "name": "Boss._info.name", + "help": "Boss._info.help" + }, + "Name": { + "name": "Boss.Name.name", + "help": "Boss.Name.help" + }, + "Account": { + "name": "Boss.Account.name", + "help": "Boss.Account.help" + }, + "Password": { + "name": "Boss.Password.name", + "help": "Boss.Password.help" + }, + "SecondPassword": { + "name": "Boss.SecondPassword.name", + "help": "Boss.SecondPassword.help" + } + }, + "Comment": { + "_info": { + "name": "Comment._info.name", + "help": "Comment._info.help" + }, + "Content": { + "name": "Comment.Content.name", + "help": "Comment.Content.help" + } + }, "Storage": { "_info": { "name": "任務狀態",