1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-07-13 19:05:16 +08:00

Feat: add module smart_mgmt

This commit is contained in:
positnuec
2026-07-10 07:25:18 +08:00
parent f92ee9907d
commit 9cc7aa804b
16 changed files with 727 additions and 6 deletions

View File

@@ -669,6 +669,78 @@
}
}
},
"DowntimeFetch": {
"Scheduler": {
"Enable": {
"type": "checkbox",
"value": false,
"option": [
true,
false
]
},
"NextRun": {
"type": "datetime",
"value": "2020-01-01 00:00:00",
"validate": "datetime"
},
"Command": {
"type": "input",
"value": "DowntimeFetch",
"display": "hide"
},
"SuccessInterval": {
"type": "input",
"value": 30,
"display": "hide"
},
"FailureInterval": {
"type": "input",
"value": 30,
"display": "hide"
},
"ServerUpdate": {
"type": "input",
"value": "22:30",
"display": "hide"
}
},
"Storage": {
"Storage": {
"type": "storage",
"value": {},
"valuetype": "ignore",
"display": "disabled"
}
}
},
"DowntimeMgmt": {
"Downtime": {
"Window": {
"type": "input",
"value": ""
},
"Title": {
"type": "input",
"value": "",
"display": "disabled"
}
},
"DowntimeStrategy": {
"ManageExercise": {
"type": "checkbox",
"value": false
}
},
"Storage": {
"Storage": {
"type": "storage",
"value": {},
"valuetype": "ignore",
"display": "disabled"
}
}
},
"Main": {
"Scheduler": {
"Enable": {

View File

@@ -153,6 +153,16 @@ OldRetire:
value: retire_all
option: [ retire_all, retire_10 ]
# ==================== SmartMgmt ====================
Downtime:
Window: ''
Title:
value: ''
display: disabled
DowntimeStrategy:
ManageExercise: false
# ==================== Farm ====================
Campaign:

View File

@@ -8,6 +8,14 @@
"Restart"
]
},
"SmartMgmt": {
"menu": "collapse",
"page": "setting",
"tasks": [
"DowntimeFetch",
"DowntimeMgmt"
]
},
"Farm": {
"menu": "collapse",
"page": "setting",

View File

@@ -15,6 +15,14 @@ Restart:
FailureInterval: 0
ServerUpdate: 00:00
# ==================== SmartMgmt ====================
DowntimeFetch:
Scheduler:
SuccessInterval: 30
FailureInterval: 30
ServerUpdate: "22:30"
# ==================== Farm ====================
Main:

View File

@@ -22,6 +22,18 @@ Alas:
Restart:
- Scheduler
# ==================== SmartMgmt ====================
SmartMgmt:
menu: 'collapse'
page: 'setting'
tasks:
DowntimeFetch:
- Scheduler
DowntimeMgmt:
- Downtime
- DowntimeStrategy
# ==================== Farm ====================
Farm: