generated from project-mirai/mirai-console-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
32 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 10 additions & 4 deletions
14
src/main/kotlin/xyz/cssxsh/mirai/plugin/data/SeleniumToolConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
package xyz.cssxsh.mirai.plugin.data | ||
|
||
import net.mamoe.mirai.console.data.ReadOnlyPluginConfig | ||
import net.mamoe.mirai.console.data.ValueName | ||
import net.mamoe.mirai.console.data.ValueDescription | ||
import net.mamoe.mirai.console.data.value | ||
|
||
object SeleniumToolConfig : ReadOnlyPluginConfig("SeleniumConfig") { | ||
@ValueName("device_name") | ||
val device: String by value("iPad") | ||
@ValueName("setup") | ||
private const val IPAD = "Mozilla/5.0 (iPad; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) Version/11.0 Mobile/15A5341f Safari/604.1" | ||
|
||
@ValueDescription("截图UA") | ||
val ua: String by value(IPAD) | ||
@ValueDescription("截图宽度") | ||
val width: Int by value(768) | ||
@ValueDescription("截图高度") | ||
val height: Int by value(1024) | ||
@ValueDescription("是否截图模式") | ||
val setup: Boolean by value(true) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters