⚡ 使用webp背景图压缩资源包大小
@ -18,7 +18,6 @@ placeholder = {
|
|||||||
"&": "&",
|
"&": "&",
|
||||||
",": ",",
|
",": ",",
|
||||||
"\n" : r"\n",
|
"\n" : r"\n",
|
||||||
"\"" : r'\\\"'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,7 +19,11 @@ __author__ = "snowykami"
|
|||||||
__plugin_meta__ = PluginMetadata(
|
__plugin_meta__ = PluginMetadata(
|
||||||
name="签名服务器状态",
|
name="签名服务器状态",
|
||||||
description="适用于ntqq的签名状态查看",
|
description="适用于ntqq的签名状态查看",
|
||||||
usage="",
|
usage=(
|
||||||
|
"sign count 查看当前签名数\n"
|
||||||
|
"sign data 查看签名数变化\n"
|
||||||
|
"sign chart [limit] 查看签名数变化图表\n"
|
||||||
|
),
|
||||||
type="application",
|
type="application",
|
||||||
homepage="https://github.com/snowykami/LiteyukiBot",
|
homepage="https://github.com/snowykami/LiteyukiBot",
|
||||||
extra={
|
extra={
|
0
liteyuki/plugins/liteyuki_statistics/__init__.py
Normal file
Before Width: | Height: | Size: 9.1 MiB |
BIN
liteyuki/resources/vanilla_resource/templates/img/bg1.webp
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
liteyuki/resources/vanilla_resource/templates/img/bg2.webp
Normal file
After Width: | Height: | Size: 397 KiB |
Before Width: | Height: | Size: 5.1 MiB |
BIN
liteyuki/resources/vanilla_resource/templates/img/bg3.webp
Normal file
After Width: | Height: | Size: 433 KiB |
Before Width: | Height: | Size: 5.4 MiB |
BIN
liteyuki/resources/vanilla_resource/templates/img/bg4.webp
Normal file
After Width: | Height: | Size: 412 KiB |
Before Width: | Height: | Size: 5.4 MiB |
BIN
liteyuki/resources/vanilla_resource/templates/img/bg5.webp
Normal file
After Width: | Height: | Size: 314 KiB |
Before Width: | Height: | Size: 3.8 MiB |
BIN
liteyuki/resources/vanilla_resource/templates/img/bg6.webp
Normal file
After Width: | Height: | Size: 410 KiB |
Before Width: | Height: | Size: 2.9 MiB |
BIN
liteyuki/resources/vanilla_resource/templates/img/bg7.webp
Normal file
After Width: | Height: | Size: 270 KiB |
Before Width: | Height: | Size: 2.6 MiB |
@ -1,11 +1,11 @@
|
|||||||
const bgs = [
|
const bgs = [
|
||||||
"bg1.png",
|
"bg1.webp",
|
||||||
"bg3.png",
|
"bg2.webp",
|
||||||
"bg4.png",
|
"bg3.webp",
|
||||||
"bg5.png",
|
"bg4.webp",
|
||||||
"bg6.png",
|
"bg5.webp",
|
||||||
"bg7.png",
|
"bg6.webp",
|
||||||
"bg9.png",
|
"bg7.webp",
|
||||||
]
|
]
|
||||||
// 随机选择背景图片
|
// 随机选择背景图片
|
||||||
document.body.style.backgroundImage = `url(./img/${bgs[Math.floor(Math.random() * bgs.length)]})`;
|
document.body.style.backgroundImage = `url(./img/${bgs[Math.floor(Math.random() * bgs.length)]})`;
|
||||||
|