nonebot-plugin-l4d2-server 1.1.0__tar.gz → 1.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/PKG-INFO +2 -2
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/__init__.py +1 -1
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/html_img.py +2 -2
- nonebot_plugin_l4d2_server-1.1.1/nonebot_plugin_l4d2_server/l4_image/img/template/normal.html +205 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/pyproject.toml +2 -2
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/LICENSE +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/README.md +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/__init__.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/__main__.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/config.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/data/font/loli.ttf +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/Help.json +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/draw.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//344/273/213/347/273/215.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//344/273/273/345/212/241.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//344/277/241/346/201/257.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//345/205/254/345/221/212.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//345/210/200/345/211/221.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//345/210/207/346/215/242.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//345/210/240/351/231/244.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//345/210/267/346/226/260.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//345/215/241/347/273/204.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//345/223/252/351/207/214.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//345/234/260/345/233/276.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//345/257/274/345/205/245.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//345/257/274/345/207/272.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//345/275/261.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//346/213/274/345/233/276.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//346/216/242/347/264/242.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//346/216/250/351/200/201.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//346/224/266/351/233/206.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//346/224/273/347/225/245.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//346/233/264/346/226/260.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//346/235/220/346/226/231.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//346/237/245/350/257/242.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//346/240/241/351/252/214.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//346/257/217/346/234/210.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//346/267/261/346/270/212.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//346/267/273/345/212/240.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//346/270/205/351/231/244.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//347/212/266/346/200/201.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//347/255/276/345/210/260.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//347/273/221/345/256/232.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//350/241/250.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//350/241/250/346/203/205.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//350/247/222/350/211/262.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//350/256/260/345/275/225.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//351/205/215/347/275/256.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/icon//351/207/215/345/220/257.png" +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/texture2d/badge.png +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/texture2d/banner.png +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/texture2d/bg.jpg +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/texture2d/button.png +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_help/texture2d/icon.png +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/__init__.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/convert.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/download.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/image_tools.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/anne/anne.html +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/anne/back.png +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/anne/back1.jpg +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/anne/group_ip.html +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/anne/ip.html +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/head/head.png +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/header/logo.png +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/header/player1.jpg +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/Bocchi_The_Rock.html +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/Bocchi_The_Rock.png +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/HYPixel11pxU-2.ttf +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/Pixel.html +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/Pixel.png +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/Rainbow.html +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/Rainbow.png +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/Tutumianhuatang-Bold-2.ttf +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/bilibili.svg +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/fingerprint.svg +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/github.svg +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/l.svg +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/m.svg +0 -0
- /nonebot_plugin_l4d2_server-1.1.0/nonebot_plugin_l4d2_server/l4_image/img/template/normal.html → /nonebot_plugin_l4d2_server-1.1.1/nonebot_plugin_l4d2_server/l4_image/img/template/normal_.html +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/vac.png +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/vac_white.png +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/vue.css +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/img/template/w.svg +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/model.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_image/vtfs.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_local/__init__.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_local/file.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_request/__init__.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_request/draw_msg.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/l4_request/utils.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/utils/api/api.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/utils/api/models.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/utils/api/request.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/utils/api/utils.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/utils/database/models.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.0 → nonebot_plugin_l4d2_server-1.1.1}/nonebot_plugin_l4d2_server/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nonebot-plugin-l4d2-server
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.1
|
4
4
|
Summary: L4D2 server related operations plugin for NoneBot2
|
5
5
|
Keywords: steam,game,l4d2,nonebot2,plugin
|
6
6
|
Author-Email: Agnes_Digital <Z735803792@163.com>
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
16
16
|
Project-URL: homepage, https://github.com/Agnes4m/nonebot_plugin_l4d2_server
|
17
17
|
Requires-Python: <4.0,>=3.9
|
18
|
-
Requires-Dist: nonebot2>=2.
|
18
|
+
Requires-Dist: nonebot2>=2.1.0
|
19
19
|
Requires-Dist: nonebot2[fastapi]>=2.3.3
|
20
20
|
Requires-Dist: nonebot-plugin-htmlrender>=0.3.0
|
21
21
|
Requires-Dist: nonebot-adapter-onebot>=2.4.4
|
@@ -10,7 +10,7 @@ from ..l4_image.convert import core_font
|
|
10
10
|
from ..l4_image.model import PluginHelp
|
11
11
|
from .draw import get_help
|
12
12
|
|
13
|
-
__version__ = "1.1.
|
13
|
+
__version__ = "1.1.1"
|
14
14
|
TEXT_PATH = Path(__file__).parent / "texture2d"
|
15
15
|
HELP_DATA = Path(__file__).parent / "Help.json"
|
16
16
|
|
@@ -76,7 +76,7 @@ async def get_server_img(plugins: List[OutServer]) -> Optional[bytes]:
|
|
76
76
|
else:
|
77
77
|
template = env.get_template("normal.html")
|
78
78
|
content = await template.render_async(
|
79
|
-
|
79
|
+
servers=plugins,
|
80
80
|
max_count=config.l4_players,
|
81
81
|
)
|
82
82
|
return await html_to_pic(
|
@@ -86,5 +86,5 @@ async def get_server_img(plugins: List[OutServer]) -> Optional[bytes]:
|
|
86
86
|
template_path=f"file://{template_path.absolute()}",
|
87
87
|
)
|
88
88
|
except Exception as e:
|
89
|
-
logger.warning(f"Error in
|
89
|
+
logger.warning(f"Error in get_server_img: {e}")
|
90
90
|
return None
|
@@ -0,0 +1,205 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="zh-CN">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
<title>Anne云服服务器状态</title>
|
7
|
+
<style>
|
8
|
+
body {
|
9
|
+
width: 900px;
|
10
|
+
margin: 0 auto;
|
11
|
+
/* 改为自动居中 */
|
12
|
+
font-family: 'Microsoft YaHei', 'Arial', sans-serif;
|
13
|
+
background-color: #f0f2f5;
|
14
|
+
padding: 10px 0;
|
15
|
+
/* 只保留上下padding */
|
16
|
+
}
|
17
|
+
|
18
|
+
.outer-frame {
|
19
|
+
width: 900px;
|
20
|
+
background-color: white;
|
21
|
+
border-radius: 12px;
|
22
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
23
|
+
overflow: hidden;
|
24
|
+
border: 1px solid #e0e3e7;
|
25
|
+
margin: 0 auto;
|
26
|
+
/* 确保居中 */
|
27
|
+
}
|
28
|
+
|
29
|
+
.container {
|
30
|
+
width: 880px;
|
31
|
+
/* 调整为更接近外层宽度 */
|
32
|
+
margin: 0 auto;
|
33
|
+
padding: 20px 10px;
|
34
|
+
/* 减少左右padding */
|
35
|
+
box-sizing: border-box;
|
36
|
+
}
|
37
|
+
|
38
|
+
h1 {
|
39
|
+
text-align: center;
|
40
|
+
color: #2c3e50;
|
41
|
+
margin: 0 0 20px 0;
|
42
|
+
padding-bottom: 10px;
|
43
|
+
border-bottom: 2px solid #eee;
|
44
|
+
font-size: 24px;
|
45
|
+
}
|
46
|
+
|
47
|
+
.server-grid {
|
48
|
+
display: grid;
|
49
|
+
grid-template-columns: repeat(3, 280px);
|
50
|
+
/* 调整为3列280px */
|
51
|
+
gap: 10px;
|
52
|
+
justify-content: center;
|
53
|
+
/* 确保居中 */
|
54
|
+
padding: 0 10px;
|
55
|
+
/* 添加内边距防止溢出 */
|
56
|
+
}
|
57
|
+
|
58
|
+
.server-card {
|
59
|
+
width: 100%;
|
60
|
+
/* 改为100%填充网格单元格 */
|
61
|
+
background-color: #fff;
|
62
|
+
border: 1px solid #e0e3e7;
|
63
|
+
border-radius: 8px;
|
64
|
+
padding: 12px;
|
65
|
+
box-sizing: border-box;
|
66
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
|
67
|
+
}
|
68
|
+
|
69
|
+
/* 其余样式保持不变... */
|
70
|
+
.server-name {
|
71
|
+
font-weight: bold;
|
72
|
+
font-size: 14px;
|
73
|
+
color: #3498db;
|
74
|
+
margin-bottom: 8px;
|
75
|
+
white-space: nowrap;
|
76
|
+
overflow: hidden;
|
77
|
+
text-overflow: ellipsis;
|
78
|
+
text-align: left;
|
79
|
+
}
|
80
|
+
|
81
|
+
.server-details {
|
82
|
+
display: grid;
|
83
|
+
grid-template-columns: 80px 1fr;
|
84
|
+
gap: 5px;
|
85
|
+
font-size: 12px;
|
86
|
+
}
|
87
|
+
|
88
|
+
.detail-label {
|
89
|
+
font-weight: bold;
|
90
|
+
color: #7f8c8d;
|
91
|
+
text-align: left;
|
92
|
+
}
|
93
|
+
|
94
|
+
.detail-value {
|
95
|
+
text-align: left;
|
96
|
+
}
|
97
|
+
|
98
|
+
.map-name {
|
99
|
+
font-size: 13px;
|
100
|
+
color: #e74c3c;
|
101
|
+
margin: 5px 0;
|
102
|
+
text-align: left;
|
103
|
+
font-style: normal;
|
104
|
+
padding-left: 5px;
|
105
|
+
}
|
106
|
+
|
107
|
+
.players {
|
108
|
+
text-align: left;
|
109
|
+
margin-top: 6px;
|
110
|
+
font-size: 12px;
|
111
|
+
padding-left: 0px;
|
112
|
+
}
|
113
|
+
|
114
|
+
.online {
|
115
|
+
color: #27ae60;
|
116
|
+
}
|
117
|
+
|
118
|
+
.offline {
|
119
|
+
color: #e74c3c;
|
120
|
+
}
|
121
|
+
|
122
|
+
.footer {
|
123
|
+
text-align: center;
|
124
|
+
margin-top: 20px;
|
125
|
+
color: #7f8c8d;
|
126
|
+
font-size: 12px;
|
127
|
+
border-top: 1px solid #eee;
|
128
|
+
padding-top: 10px;
|
129
|
+
}
|
130
|
+
|
131
|
+
.map-name:before,
|
132
|
+
.players:before {
|
133
|
+
margin-right: 5px;
|
134
|
+
}
|
135
|
+
|
136
|
+
.vac-icon {
|
137
|
+
width: 13px;
|
138
|
+
height: auto;
|
139
|
+
margin-left: 15px;
|
140
|
+
}
|
141
|
+
|
142
|
+
.platform {
|
143
|
+
width: 13px;
|
144
|
+
height: auto;
|
145
|
+
margin-left: 15px;
|
146
|
+
}
|
147
|
+
</style>
|
148
|
+
</head>
|
149
|
+
|
150
|
+
<body>
|
151
|
+
<div class="outer-frame">
|
152
|
+
<div class="container">
|
153
|
+
<h1>Anne云服服务器状态 (共 {{ servers|length }} 台)</h1>
|
154
|
+
|
155
|
+
<div class="server-grid">
|
156
|
+
{% for server in servers %}
|
157
|
+
<div class="server-card">
|
158
|
+
<div class="server-name" title="{{ server.server.server_name }}">
|
159
|
+
{{ server.server.server_name|replace('\n', ' ')|replace(' ', ' ')|trim }}
|
160
|
+
</div>
|
161
|
+
|
162
|
+
<div class="map-name" title="当前地图">
|
163
|
+
🗺️ {{ server.server.map_name }}
|
164
|
+
</div>
|
165
|
+
|
166
|
+
<div class="players">
|
167
|
+
{% if server.server.player_count >= 0 %}
|
168
|
+
<span class="online">
|
169
|
+
{% if server.server.max_players == 0 %}
|
170
|
+
🔴
|
171
|
+
{% elif server.server.player_count / server.server.max_players < 0.5 %} 🟢 {% elif
|
172
|
+
server.server.player_count>= server.server.max_players
|
173
|
+
%}
|
174
|
+
🟡
|
175
|
+
{% else %}
|
176
|
+
🔵
|
177
|
+
{% endif %}</span>
|
178
|
+
{{ server.server.player_count }}/{{ server.server.max_players}}
|
179
|
+
{% else %}
|
180
|
+
<span class="offline">🔴 错误</span>
|
181
|
+
{% endif %}
|
182
|
+
<img class="platform" src="{{server.server.platform}}.svg" width="13" height="13" />{% if server.server.vac_enabled %}<img class="vac-icon" src="vac.png">{% endif %}
|
183
|
+
<span class="platform">{{ (server.server.ping * 1000)|round(1) }} ms </span>
|
184
|
+
</div>
|
185
|
+
<div class="player">
|
186
|
+
{% set player_count = server.player|length %}
|
187
|
+
{% for i in range(max_count) %}
|
188
|
+
{% set player = server.player[i] if i < player_count else None %} {% if player and player.name %} <font
|
189
|
+
color="green">• {{ player.score }} | {{ player.name }}</font><br>
|
190
|
+
{% else %}
|
191
|
+
{% endif %}
|
192
|
+
{% endfor %}
|
193
|
+
</div>
|
194
|
+
</div>
|
195
|
+
{% endfor %}
|
196
|
+
</div>
|
197
|
+
|
198
|
+
<div class="footer">
|
199
|
+
111
|
200
|
+
</div>
|
201
|
+
</div>
|
202
|
+
</div>
|
203
|
+
</body>
|
204
|
+
|
205
|
+
</html>
|
@@ -14,7 +14,7 @@ keywords = [
|
|
14
14
|
"plugin",
|
15
15
|
]
|
16
16
|
dependencies = [
|
17
|
-
"nonebot2>=2.
|
17
|
+
"nonebot2>=2.1.0",
|
18
18
|
"nonebot2[fastapi]>=2.3.3",
|
19
19
|
"nonebot-plugin-htmlrender>=0.3.0",
|
20
20
|
"nonebot-adapter-onebot>=2.4.4",
|
@@ -47,7 +47,7 @@ classifiers = [
|
|
47
47
|
"Operating System :: OS Independent",
|
48
48
|
]
|
49
49
|
readme = "README.md"
|
50
|
-
version = "1.1.
|
50
|
+
version = "1.1.1"
|
51
51
|
|
52
52
|
[project.license]
|
53
53
|
text = "GPLv3"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|