nonebot-plugin-l4d2-server 0.6.6__py3-none-any.whl → 1.0.0a2__py3-none-any.whl
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/__init__.py +10 -93
- nonebot_plugin_l4d2_server/__main__.py +140 -0
- nonebot_plugin_l4d2_server/config.py +35 -0
- nonebot_plugin_l4d2_server/data/font/loli.ttf +0 -0
- nonebot_plugin_l4d2_server/l4_anne/__init__.py +124 -0
- nonebot_plugin_l4d2_server/l4_anne/ranne.py +18 -0
- nonebot_plugin_l4d2_server/l4_help/Help.json +102 -0
- nonebot_plugin_l4d2_server/l4_help/__init__.py +57 -0
- nonebot_plugin_l4d2_server/l4_help/draw.py +206 -0
- nonebot_plugin_l4d2_server/l4_help/icon//344/273/213/347/273/215.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//344/273/273/345/212/241.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//344/277/241/346/201/257.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//345/205/254/345/221/212.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//345/210/200/345/211/221.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//345/210/207/346/215/242.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//345/210/240/351/231/244.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//345/210/267/346/226/260.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//345/215/241/347/273/204.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//345/223/252/351/207/214.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//345/234/260/345/233/276.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//345/257/274/345/205/245.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//345/257/274/345/207/272.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//345/275/261.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//346/213/274/345/233/276.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//346/216/242/347/264/242.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//346/216/250/351/200/201.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//346/224/266/351/233/206.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//346/224/273/347/225/245.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//346/233/264/346/226/260.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//346/235/220/346/226/231.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//346/237/245/350/257/242.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//346/240/241/351/252/214.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//346/257/217/346/234/210.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//346/267/261/346/270/212.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//346/267/273/345/212/240.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//346/270/205/351/231/244.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//347/212/266/346/200/201.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//347/255/276/345/210/260.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//347/273/221/345/256/232.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//350/241/250.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//350/241/250/346/203/205.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//350/247/222/350/211/262.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//350/256/260/345/275/225.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//351/205/215/347/275/256.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/icon//351/207/215/345/220/257.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/texture2d/badge.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/texture2d/banner.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/texture2d/bg.jpg +0 -0
- nonebot_plugin_l4d2_server/l4_help/texture2d/button.png +0 -0
- nonebot_plugin_l4d2_server/l4_help/texture2d/icon.png +0 -0
- nonebot_plugin_l4d2_server/l4_image/__init__.py +16 -0
- nonebot_plugin_l4d2_server/l4_image/anne_pil.py +17 -0
- nonebot_plugin_l4d2_server/l4_image/convert.py +175 -0
- nonebot_plugin_l4d2_server/{l4d2_image → l4_image}/download.py +11 -35
- nonebot_plugin_l4d2_server/l4_image/html_img.py +105 -0
- nonebot_plugin_l4d2_server/l4_image/image_tools.py +468 -0
- nonebot_plugin_l4d2_server/{data/L4D2/image/template → l4_image/img/anne}/back.png +0 -0
- nonebot_plugin_l4d2_server/l4_image/img/anne/back1.jpg +0 -0
- nonebot_plugin_l4d2_server/{data/L4D2/image → l4_image/img}/head/head.png +0 -0
- nonebot_plugin_l4d2_server/{data/L4D2/image → l4_image/img}/header/logo.png +0 -0
- nonebot_plugin_l4d2_server/{data/L4D2/image → l4_image/img}/header/player1.jpg +0 -0
- nonebot_plugin_l4d2_server/l4_image/img/template/Bocchi_The_Rock.html +299 -0
- nonebot_plugin_l4d2_server/l4_image/img/template/Bocchi_The_Rock.png +0 -0
- nonebot_plugin_l4d2_server/l4_image/img/template/HYPixel11pxU-2.ttf +0 -0
- nonebot_plugin_l4d2_server/l4_image/img/template/Pixel.html +341 -0
- nonebot_plugin_l4d2_server/l4_image/img/template/Pixel.png +0 -0
- nonebot_plugin_l4d2_server/l4_image/img/template/Rainbow.html +355 -0
- nonebot_plugin_l4d2_server/l4_image/img/template/Rainbow.png +0 -0
- nonebot_plugin_l4d2_server/l4_image/img/template/Tutumianhuatang-Bold-2.ttf +0 -0
- nonebot_plugin_l4d2_server/l4_image/img/template/bilibili.svg +1 -0
- nonebot_plugin_l4d2_server/l4_image/img/template/github.svg +1 -0
- nonebot_plugin_l4d2_server/{data/L4D2/image → l4_image/img}/template/l.svg +0 -1
- nonebot_plugin_l4d2_server/l4_image/img/template/m.svg +1 -0
- nonebot_plugin_l4d2_server/l4_image/img/template/normal.html +247 -0
- nonebot_plugin_l4d2_server/l4_image/img/template/vac.png +0 -0
- nonebot_plugin_l4d2_server/l4_image/img/template/vac_white.png +0 -0
- nonebot_plugin_l4d2_server/{data/L4D2/image → l4_image/img}/template/w.svg +1 -1
- nonebot_plugin_l4d2_server/l4_image/model.py +15 -0
- nonebot_plugin_l4d2_server/{l4d2_image → l4_image}/vtfs.py +4 -2
- nonebot_plugin_l4d2_server/l4_request/__init__.py +143 -0
- nonebot_plugin_l4d2_server/l4_request/draw_msg.py +83 -0
- nonebot_plugin_l4d2_server/utils/api/api.py +10 -0
- nonebot_plugin_l4d2_server/utils/api/models.py +137 -0
- nonebot_plugin_l4d2_server/utils/api/request.py +337 -0
- nonebot_plugin_l4d2_server/utils/database/models.py +18 -0
- nonebot_plugin_l4d2_server/{l4d2_utils → utils}/utils.py +60 -63
- {nonebot_plugin_l4d2_server-0.6.6.dist-info → nonebot_plugin_l4d2_server-1.0.0a2.dist-info}/METADATA +57 -66
- nonebot_plugin_l4d2_server-1.0.0a2.dist-info/RECORD +96 -0
- {nonebot_plugin_l4d2_server-0.6.6.dist-info → nonebot_plugin_l4d2_server-1.0.0a2.dist-info}/WHEEL +1 -1
- nonebot_plugin_l4d2_server/data/L4D2/image/template/help.html +0 -263
- nonebot_plugin_l4d2_server/data/L4D2/image/template/help_dack.html +0 -231
- nonebot_plugin_l4d2_server/data/L4D2/image/template/m.svg +0 -1
- nonebot_plugin_l4d2_server/data/img/white.png +0 -0
- nonebot_plugin_l4d2_server/l4d2_anne/__init__.py +0 -95
- nonebot_plugin_l4d2_server/l4d2_anne/analysis.py +0 -54
- nonebot_plugin_l4d2_server/l4d2_anne/anne_telecom.py +0 -79
- nonebot_plugin_l4d2_server/l4d2_anne/server.py +0 -47
- nonebot_plugin_l4d2_server/l4d2_anne/startand.py +0 -17
- nonebot_plugin_l4d2_server/l4d2_anne/utils.py +0 -294
- nonebot_plugin_l4d2_server/l4d2_data/__init__.py +0 -105
- nonebot_plugin_l4d2_server/l4d2_data/config.py +0 -18
- nonebot_plugin_l4d2_server/l4d2_data/players.py +0 -100
- nonebot_plugin_l4d2_server/l4d2_data/serverip.py +0 -40
- nonebot_plugin_l4d2_server/l4d2_file/__init__.py +0 -222
- nonebot_plugin_l4d2_server/l4d2_file/ayromote.py +0 -64
- nonebot_plugin_l4d2_server/l4d2_file/input_json.py +0 -77
- nonebot_plugin_l4d2_server/l4d2_file/remote.py +0 -86
- nonebot_plugin_l4d2_server/l4d2_file/utils.py +0 -104
- nonebot_plugin_l4d2_server/l4d2_image/__init__.py +0 -125
- nonebot_plugin_l4d2_server/l4d2_image/htmlimg.py +0 -18
- nonebot_plugin_l4d2_server/l4d2_image/images.py +0 -92
- nonebot_plugin_l4d2_server/l4d2_image/one.py +0 -44
- nonebot_plugin_l4d2_server/l4d2_image/send_image_tool.py +0 -32
- nonebot_plugin_l4d2_server/l4d2_image/steam.py +0 -63
- nonebot_plugin_l4d2_server/l4d2_push/__init__.py +0 -225
- nonebot_plugin_l4d2_server/l4d2_queries/__init__.py +0 -326
- nonebot_plugin_l4d2_server/l4d2_queries/himi.py +0 -113
- nonebot_plugin_l4d2_server/l4d2_queries/local_ip.py +0 -41
- nonebot_plugin_l4d2_server/l4d2_queries/qqgroup.py +0 -370
- nonebot_plugin_l4d2_server/l4d2_queries/send_msg.py +0 -131
- nonebot_plugin_l4d2_server/l4d2_queries/utils.py +0 -212
- nonebot_plugin_l4d2_server/l4d2_server/__init__.py +0 -118
- nonebot_plugin_l4d2_server/l4d2_server/index.py +0 -0
- nonebot_plugin_l4d2_server/l4d2_server/rcon.py +0 -53
- nonebot_plugin_l4d2_server/l4d2_server/workshop.py +0 -82
- nonebot_plugin_l4d2_server/l4d2_update/__init__.py +0 -137
- nonebot_plugin_l4d2_server/l4d2_update/draw_update_log.py +0 -45
- nonebot_plugin_l4d2_server/l4d2_update/restart.py +0 -69
- nonebot_plugin_l4d2_server/l4d2_update/update.py +0 -53
- nonebot_plugin_l4d2_server/l4d2_utils/classcal.py +0 -53
- nonebot_plugin_l4d2_server/l4d2_utils/command.py +0 -23
- nonebot_plugin_l4d2_server/l4d2_utils/config.py +0 -201
- nonebot_plugin_l4d2_server/l4d2_utils/message.py +0 -59
- nonebot_plugin_l4d2_server/l4d2_utils/rule.py +0 -35
- nonebot_plugin_l4d2_server/l4d2_utils/seach.py +0 -43
- nonebot_plugin_l4d2_server/l4d2_utils/txt_to_img.py +0 -32
- nonebot_plugin_l4d2_server/l4d2_web/web.py +0 -277
- nonebot_plugin_l4d2_server/l4d2_web/webUI.py +0 -506
- nonebot_plugin_l4d2_server/l4d2_web/webUI_s.py +0 -94
- nonebot_plugin_l4d2_server-0.6.6.dist-info/RECORD +0 -70
- /nonebot_plugin_l4d2_server/{data/L4D2/image/template → l4_image/img/anne}/anne.html +0 -0
- /nonebot_plugin_l4d2_server/{data/L4D2/image/template → l4_image/img/anne}/group_ip.html +0 -0
- /nonebot_plugin_l4d2_server/{data/L4D2/image/template → l4_image/img/anne}/ip.html +0 -0
- /nonebot_plugin_l4d2_server/{data/L4D2/image → l4_image/img}/template/fingerprint.svg +0 -0
- /nonebot_plugin_l4d2_server/{data/L4D2/image → l4_image/img}/template/vue.css +0 -0
- /nonebot_plugin_l4d2_server/{l4d2_data/database.py → l4_request/utils.py} +0 -0
- {nonebot_plugin_l4d2_server-0.6.6.dist-info → nonebot_plugin_l4d2_server-1.0.0a2.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,355 @@
|
|
1
|
+
<html>
|
2
|
+
|
3
|
+
<head>
|
4
|
+
<style>
|
5
|
+
body {
|
6
|
+
background-image: url("Rainbow.png");
|
7
|
+
background-repeat: repeat;
|
8
|
+
background-size: cover;
|
9
|
+
margin: 0px;
|
10
|
+
zoom: 150%;
|
11
|
+
}
|
12
|
+
|
13
|
+
/*页眉页脚文字颜色*/
|
14
|
+
.loaded-text {
|
15
|
+
color: #000000;
|
16
|
+
/* 设置 .loaded-text 类的文字颜色 */
|
17
|
+
font-family: "Tutumianhuatang", sans-serif;
|
18
|
+
/* 设置第一个字体 */
|
19
|
+
}
|
20
|
+
|
21
|
+
/* Vac图标样式 */
|
22
|
+
.vac-icon {
|
23
|
+
width: 13px;
|
24
|
+
height: auto;
|
25
|
+
margin-left: 190px;
|
26
|
+
}
|
27
|
+
|
28
|
+
.image {
|
29
|
+
display: flex;
|
30
|
+
flex-direction: column;
|
31
|
+
overflow: scroll;
|
32
|
+
width: max-content;
|
33
|
+
padding: 20px;
|
34
|
+
}
|
35
|
+
|
36
|
+
/*服务器序号及服务器名称颜色*/
|
37
|
+
.plugin_name,
|
38
|
+
.plugin_description {
|
39
|
+
color: #000000;
|
40
|
+
/* 将特定类的文字颜色改为你想要的颜色 */
|
41
|
+
font-weight: bold;
|
42
|
+
/* 将文字加粗 */
|
43
|
+
font-family: "Tutumianhuatang", sans-serif;
|
44
|
+
/* 设置第一个字体 */
|
45
|
+
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
|
46
|
+
/* 水平偏移量、垂直偏移量、模糊半径、阴影颜色 */
|
47
|
+
}
|
48
|
+
|
49
|
+
.head {
|
50
|
+
display: flex;
|
51
|
+
flex-direction: row;
|
52
|
+
align-items: center;
|
53
|
+
justify-content: space-between;
|
54
|
+
background-color: #f5f6f75e;
|
55
|
+
padding-left: 20px;
|
56
|
+
padding-right: 20px;
|
57
|
+
padding-top: 10px;
|
58
|
+
padding-bottom: 10px;
|
59
|
+
border: 2px solid;
|
60
|
+
border-radius: 50px;
|
61
|
+
border-color: #e5e7eb;
|
62
|
+
box-shadow: 0px 2px 6px 1px rgba(150, 150, 150, 0.3);
|
63
|
+
font-size: 16px;
|
64
|
+
margin-bottom: 20px;
|
65
|
+
font-family: "Tutumianhuatang", sans-serif;
|
66
|
+
/* 设置第一个字体 */
|
67
|
+
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
|
68
|
+
/* 水平偏移量、垂直偏移量、模糊半径、阴影颜色 */
|
69
|
+
}
|
70
|
+
|
71
|
+
.plugins {
|
72
|
+
display: grid;
|
73
|
+
grid-template-columns: auto auto auto;
|
74
|
+
row-gap: 20px;
|
75
|
+
column-gap: 20px;
|
76
|
+
margin-bottom: 20px;
|
77
|
+
}
|
78
|
+
|
79
|
+
/*每个服务器卡片样式*/
|
80
|
+
.plugin {
|
81
|
+
display: flex;
|
82
|
+
padding: 5px;
|
83
|
+
border: 1.5px solid;
|
84
|
+
border-radius: 20px;
|
85
|
+
border-color: #e5e7eb;
|
86
|
+
box-shadow: 0px 2px 6px 1px rgba(150, 150, 150, 0.3);
|
87
|
+
background-color: #f5f5f530;
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
.plugin_meta {
|
92
|
+
display: flex;
|
93
|
+
flex-direction: column;
|
94
|
+
padding: 5px;
|
95
|
+
width: 250px;
|
96
|
+
justify-content: space-between;
|
97
|
+
}
|
98
|
+
|
99
|
+
.plugin_name {
|
100
|
+
font-size: 20px;
|
101
|
+
font-family: "Tutumianhuatang", sans-serif;
|
102
|
+
/* 设置第一个字体 */
|
103
|
+
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
|
104
|
+
/* 水平偏移量、垂直偏移量、模糊半径、阴影颜色 */
|
105
|
+
}
|
106
|
+
|
107
|
+
.plugin_description {
|
108
|
+
font-size: 15px;
|
109
|
+
color: #efefef;
|
110
|
+
margin-top: 5px;
|
111
|
+
margin-bottom: 5px;
|
112
|
+
font-family: "Tutumianhuatang", sans-serif;
|
113
|
+
/* 设置第一个字体 */
|
114
|
+
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
|
115
|
+
/* 水平偏移量、垂直偏移量、模糊半径、阴影颜色 */
|
116
|
+
}
|
117
|
+
|
118
|
+
.plugin_meta_line1 {
|
119
|
+
display: flex;
|
120
|
+
flex-direction: row;
|
121
|
+
align-items: center;
|
122
|
+
justify-content: space-between;
|
123
|
+
}
|
124
|
+
|
125
|
+
.plugin_meta_line2 {
|
126
|
+
font-family: "Tutumianhuatang", sans-serif;
|
127
|
+
/* 设置第一个字体 */
|
128
|
+
color: #000000;
|
129
|
+
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
|
130
|
+
/* 水平偏移量、垂直偏移量、模糊半径、阴影颜色 */
|
131
|
+
}
|
132
|
+
|
133
|
+
.plugin_meta_line3 {
|
134
|
+
display: flex;
|
135
|
+
flex-direction: row;
|
136
|
+
align-items: center;
|
137
|
+
color: #000000;
|
138
|
+
font-family: "Tutumianhuatang", sans-serif;
|
139
|
+
/* 设置第一个字体 */
|
140
|
+
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
|
141
|
+
/* 水平偏移量、垂直偏移量、模糊半径、阴影颜色 */
|
142
|
+
}
|
143
|
+
|
144
|
+
/*这个选择器 > svg > image 会只选择 .plugin_meta_line3 下直接子元素的 SVG 图像
|
145
|
+
.plugin_meta_line3 > svg > image {
|
146
|
+
filter: drop-shadow(#fff 100px 0); /* 将阴影颜色改为白色
|
147
|
+
transform: translateX(-100px);
|
148
|
+
}*/
|
149
|
+
|
150
|
+
.package_name_label {
|
151
|
+
background-image: url(./fingerprint.svg);
|
152
|
+
width: 13px;
|
153
|
+
height: 13px;
|
154
|
+
color: #efefef;
|
155
|
+
margin-right: 8px;
|
156
|
+
}
|
157
|
+
|
158
|
+
.package_name {
|
159
|
+
font-size: 13px;
|
160
|
+
color: #000000;
|
161
|
+
}
|
162
|
+
|
163
|
+
.switch {
|
164
|
+
position: relative;
|
165
|
+
display: inline-block;
|
166
|
+
width: 40px;
|
167
|
+
height: 24px;
|
168
|
+
}
|
169
|
+
|
170
|
+
.slider.round {
|
171
|
+
border-radius: 24px;
|
172
|
+
}
|
173
|
+
|
174
|
+
.status_text {
|
175
|
+
position: absolute;
|
176
|
+
top: 50%;
|
177
|
+
left: 50%;
|
178
|
+
transform: translate(-50%, -50%);
|
179
|
+
white-space: nowrap;
|
180
|
+
/* 防止换行 */
|
181
|
+
padding: 2px 6px;
|
182
|
+
/* 添加一些内边距以增加可读性 */
|
183
|
+
border-radius: 16px;
|
184
|
+
/* 圆角 */
|
185
|
+
font-family: "Tutumianhuatan", sans-serif;
|
186
|
+
/* 设置第一个字体 */
|
187
|
+
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
|
188
|
+
/* 水平偏移量、垂直偏移量、模糊半径、阴影颜色 */
|
189
|
+
}
|
190
|
+
|
191
|
+
.error {
|
192
|
+
background-color: #999;
|
193
|
+
/* 灰色背景 */
|
194
|
+
color: white;
|
195
|
+
/* 白色文字 */
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
.lack {
|
200
|
+
background-color: #4CAF50;
|
201
|
+
/* 绿色背景 */
|
202
|
+
color: white;
|
203
|
+
/* 白色文字 */
|
204
|
+
}
|
205
|
+
|
206
|
+
.full {
|
207
|
+
background-color: #f44336;
|
208
|
+
/* 红色背景 */
|
209
|
+
color: white;
|
210
|
+
/* 白色文字 */
|
211
|
+
}
|
212
|
+
|
213
|
+
.not_full {
|
214
|
+
background-color: #2196F3;
|
215
|
+
/* 蓝色背景 */
|
216
|
+
color: white;
|
217
|
+
/* 白色文字 */
|
218
|
+
}
|
219
|
+
</style>
|
220
|
+
</head>
|
221
|
+
|
222
|
+
<body>
|
223
|
+
<div class="image">
|
224
|
+
<div class="head">
|
225
|
+
<span class="loaded-text"><b>已加载服务器</b></span>
|
226
|
+
<span class="loaded-text">发送 “<b>查询指令+序号</b>” 查看详情</span>
|
227
|
+
</div>
|
228
|
+
<div class="plugins">
|
229
|
+
{% for plugin in plugins %}
|
230
|
+
<div class="plugin">
|
231
|
+
<div class="plugin_meta">
|
232
|
+
<div class="plugin_meta_line1">
|
233
|
+
<div class="plugin_name">{{ plugin.command }}{{ plugin.id_ }}:{{ plugin.server.server_name }}</div>
|
234
|
+
<div class="plugin_status">
|
235
|
+
<label class="switch">
|
236
|
+
<input class="checkbox" type="checkbox" {% if plugin.enabled %} checked {% endif %} />
|
237
|
+
<span
|
238
|
+
class="slider round {% if plugin.server.player_count >= plugin.server.max_players %} locked {% endif %}">
|
239
|
+
<span
|
240
|
+
class="lock {% if plugin.server.player_count >= plugin.server.max_players %} locked {% endif %}"></span>
|
241
|
+
<span
|
242
|
+
class="status_text {% if plugin.server.max_players == 0 %}error{% elif plugin.server.player_count / plugin.server.max_players < 0.5 %}lack{% elif plugin.server.player_count >= plugin.server.max_players %}full{% else %}not_full{% endif %}">
|
243
|
+
{% if plugin.server.max_players == 0 %}
|
244
|
+
错误
|
245
|
+
{% elif plugin.server.player_count / plugin.server.max_players < 0.5 %} 缺人 {% elif
|
246
|
+
plugin.server.player_count>= plugin.server.max_players
|
247
|
+
%}
|
248
|
+
已满
|
249
|
+
{% else %}
|
250
|
+
未满
|
251
|
+
{% endif %}
|
252
|
+
</span>
|
253
|
+
</span>
|
254
|
+
</label>
|
255
|
+
</div>
|
256
|
+
</div>
|
257
|
+
<div class="plugin_meta_line2">
|
258
|
+
<font color="#113DEE">地图:{{ plugin.server.map_name }}</font><br>
|
259
|
+
{% set player_count = plugin.player|length %}
|
260
|
+
{% for i in range(max_count) %}
|
261
|
+
{% set player = plugin.player[i] if i < player_count else None %} {% if player and player.name %} <font
|
262
|
+
color="#282d2f">• {{ player.score }} | {{ player.name }}</font><br>
|
263
|
+
{% else %}
|
264
|
+
<!-- 如果玩家不存在或没有名字,则显示空行或占位符 -->
|
265
|
+
<br>
|
266
|
+
{% endif %}
|
267
|
+
{% endfor %}
|
268
|
+
</div>
|
269
|
+
<div class="plugin_meta_line3">
|
270
|
+
{% if plugin.server.platform == 'l' %}
|
271
|
+
<svg t="1721445719912" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
272
|
+
p-id="2665" width="13" height="13">
|
273
|
+
<path
|
274
|
+
d="M433.700571 234.861714c-11.446857 1.133714-7.424 11.446857-13.714285 11.446857-5.705143 0.585143-4.571429-12.580571 13.714285-11.446857z m49.737143 8.009143c-5.705143 1.718857-6.290286-9.142857-16.566857-6.290286 16.566857-7.424 22.272 3.986286 16.566857 6.290286z m-200.594285 243.968c-5.156571-1.718857-3.986286 8.557714-9.142858 16.566857-3.986286 7.424-14.299429 13.129143-6.290285 14.299429 2.852571 0.585143 10.861714-6.290286 14.299428-14.299429 2.852571-9.728 5.705143-14.848 1.133715-16.566857z m488.594285 205.165714c0-10.276571-22.272-20.004571-31.414857-23.990857 15.433143-51.419429 8.557714-72.009143-1.718857-120.576-8.009143-36.571429-41.728-86.272-67.986286-101.705143 6.838857 5.705143 19.419429 22.272 32.585143 47.433143 22.857143 42.861714 45.714286 106.276571 30.866286 158.866286-5.705143 20.553143-19.419429 23.442286-28.562286 23.990857-40.009143 4.571429-16.566857-48.018286-33.133714-119.442286-18.870857-80.018286-38.290286-85.723429-42.861714-92.013714-23.442286-104.009143-49.152-93.696-56.576-132.571428-6.290286-34.852571 30.281143-63.414857-19.419429-73.142858-15.433143-2.852571-37.156571-18.285714-45.714286-19.419428s-13.129143-57.709714 18.870857-59.428572c31.414857-2.304 37.156571 35.437714 31.414858 50.285715-9.142857 14.848 0.585143 20.553143 16.018285 15.433143 12.580571-3.986286 4.571429-37.156571 7.424-41.728-8.009143-48.018286-28.013714-54.857143-48.566857-58.843429-78.848 6.290286-43.446857 93.147429-51.419428 85.138286-11.446857-11.995429-44.580571-1.133714-44.580572-8.557715 0.585143-44.580571-14.299429-70.290286-34.852571-70.838857-22.857143-0.585143-32 31.414857-33.133715 49.700572-1.718857 17.152 9.728 53.138286 18.285715 50.285714 5.705143-1.718857 15.433143-13.129143 5.156571-12.580571-5.156571 0-13.129143-12.580571-14.299428-27.428572-0.585143-14.848 5.156571-29.696 24.576-29.147428 22.272 0.585143 22.272 45.129143 20.004571 46.848a104.850286 104.850286 0 0 0-17.700571 16.566857c-7.424 11.995429-21.723429 15.433143-27.428572 20.553143-9.728 10.276571-11.995429 21.723429-4.571428 25.709714 26.294857 14.848 17.700571 32 54.272 33.133714 23.990857 1.133714 41.728-3.437714 58.294857-8.557714 12.580571-3.986286 53.138286-12.580571 61.696-27.428572 3.986286-6.290286 8.557714-6.290286 11.446857-4.571428 5.705143 2.852571 6.838857 13.714286-7.424 17.152-20.004571 5.705143-40.009143 16.566857-58.294857 23.442286-17.700571 7.424-23.442286 10.276571-40.009143 13.129142-37.705143 6.838857-65.718857-13.714286-40.557714 10.861715 8.557714 8.009143 16.566857 13.129143 38.290285 12.580571 48.018286-1.718857 101.156571-59.428571 106.276572-33.718857 1.133714 5.705143-14.848 12.580571-27.428572 18.870857-44.580571 21.723429-75.995429 65.133714-104.557714 50.285714-25.709714-13.714286-51.419429-77.129143-50.870857-48.566857 0.585143 43.995429-57.709714 82.870857-30.866286 133.156572-17.700571 4.571429-57.161143 88.576-62.866286 131.986285-3.437714 25.161143 2.304 55.990857-3.986285 73.142858-8.557714 25.161143-47.433143-23.990857-34.852572-84.004572 2.304-10.276571 0-12.580571-2.852571-7.424-15.433143 28.013714-6.838857 67.437714 5.705143 94.866286 5.156571 11.995429 18.285714 17.152 28.013714 27.428571 20.004571 22.857143 98.852571 81.152 112.566857 95.414857 17.700571 16.566857 12.580571 55.442286-23.990857 59.428572 18.870857 35.437714 37.156571 38.838857 36.571429 96.585143 21.723429-11.446857 13.129143-36.571429 3.986285-52.553143-6.290286-11.446857-14.299429-16.566857-12.580571-19.419429 1.133714-1.718857 12.580571-11.446857 18.870857-3.986285 19.419429 21.723429 55.990857 25.709714 94.866286 20.553142 39.424-4.571429 81.700571-18.285714 101.156571-49.700571 9.142857-14.848 15.433143-20.004571 19.419429-17.152 4.571429 2.304 6.290286 12.580571 5.705143 29.696-0.585143 18.285714-8.009143 37.156571-13.129143 52.553143-5.156571 17.700571-6.838857 29.696 10.276571 30.281143 4.571429-32 13.714286-63.414857 16.018286-95.414857 2.852571-36.571429-23.442286-104.009143 5.156571-137.728 7.424-9.142857 16.566857-10.276571 29.147429-10.276572 1.718857-45.714286 72.009143-42.276571 95.414857-23.442286zM412.562286 219.428571c2.304-14.299429-4.571429-24.576-8.009143-25.709714-6.838857-1.718857-5.705143 8.557714-2.304 7.424 2.304 0 5.156571 3.437714 3.986286 8.557714-1.133714 6.838857-0.585143 11.446857 4.571428 11.446858 0.585143 0 1.718857 0 1.718857-1.718858z m239.433143 112.566858c-2.304-10.861714-10.276571-6.838857-19.419429-12.580572-10.861714-6.838857-13.129143-18.285714-17.152-14.299428-11.995429 13.129143 14.848 40.557714 26.294857 42.861714 6.838857 1.133714 11.995429-8.009143 10.276572-16.018286zM550.290286 210.285714c0.585143-13.714286-11.446857-20.553143-14.299429-20.004571-7.424 0.585143-5.156571 3.986286-1.718857 5.156571 4.571429 1.133714 9.142857 9.142857 10.276571 17.700572 0 1.133714 5.705143-1.133714 5.705143-2.852572z m30.866285-133.156571c0.585143-2.852571-6.838857-6.290286-11.995428-10.276572-4.571429-4.571429-9.142857-8.557714-13.714286-8.557714-11.446857 1.133714-5.705143 13.129143-7.424 18.870857-2.304 6.290286-10.861714 11.446857-5.156571 16.018286 5.156571 3.986286 8.557714-6.290286 19.419428-10.276571 2.852571-1.133714 16.018286 0.585143 18.870857-5.705143z m322.852572 766.317714c70.290286 43.446857-26.294857 79.433143-67.986286 100.571429-32.585143 16.566857-75.995429 53.138286-92.013714 68.571428-11.995429 11.446857-61.696 17.152-89.709714 2.852572-32.585143-16.566857-15.433143-42.861714-65.718858-44.580572-25.161143-0.585143-49.700571-0.585143-74.276571-0.585143-21.723429 0.585143-43.446857 1.718857-65.718857 2.304-75.446857 1.718857-82.870857 50.285714-131.437714 48.566858-33.133714-1.133714-74.861714-27.428571-146.870858-42.276572-50.285714-10.276571-98.852571-13.129143-109.129142-35.437714s12.580571-47.433143 14.299428-69.156572c1.718857-29.147429-21.723429-68.571429-4.571428-83.419428 14.848-13.129143 46.299429-3.437714 66.852571-14.848 21.723429-12.580571 30.866286-22.272 30.866286-49.152 8.009143 27.428571-0.585143 49.700571-18.285715 60.562286-10.861714 6.838857-30.866286 10.276571-47.433142 8.557714-13.129143-1.133714-21.138286 0.585143-24.576 5.705143-5.156571 6.290286-3.437714 17.700571 2.852571 32.585143s13.714286 24.576 12.580571 42.861714c-0.585143 18.285714-21.138286 40.009143-17.700571 55.442286 1.133714 5.705143 6.838857 10.861714 21.138286 14.848 22.857143 6.290286 64.585143 12.580571 105.142857 22.272 45.129143 11.446857 92.013714 32 121.161143 28.013714 86.857143-11.995429 37.156571-105.142857 23.442285-127.414857-73.728-115.419429-122.294857-190.866286-161.133714-161.133715-9.728 8.009143-10.276571-19.419429-9.728-30.281142 1.718857-37.705143 20.553143-51.419429 32-80.566858 21.723429-55.442286 38.290286-118.857143 71.424-151.442285 24.576-32 63.414857-84.004571 70.838857-111.433143-6.290286-59.428571-8.009143-122.294857-9.142857-177.152-1.133714-58.843429 8.009143-110.299429 74.276572-146.285714C431.469714 3.437714 452.608 0 474.88 0c39.424-0.585143 83.419429 10.861714 111.433143 31.414857 44.580571 33.133714 72.557714 103.424 69.156571 153.709714-2.304 39.424 4.571429 80.018286 17.152 122.294858 14.848 49.700571 38.290286 84.553143 75.995429 124.562285 45.129143 48.018286 80.566857 142.299429 90.843428 202.276572 9.142857 55.990857-3.437714 90.843429-15.433142 92.562285-18.285714 2.852571-29.696 60.562286-86.857143 58.294858-36.571429-1.718857-40.009143-23.442286-50.285715-42.276572-16.566857-29.147429-33.133714-20.004571-39.424 10.861714-3.437714 15.433143-1.133714 38.290286 3.986286 55.442286 10.276571 35.986286 6.838857 69.705143 0.585143 111.433143-11.995429 78.848 55.442286 93.696 100.571429 55.990857 44.580571-37.156571 54.272-42.861714 110.299428-62.281143 85.138286-29.147429 56.576-54.857143 10.861714-70.290285-41.142857-13.714286-42.861714-82.870857-28.013714-96 3.437714 74.276571 42.276571 85.138286 58.294857 95.414857z"
|
275
|
+
fill="" p-id="2666"></path>
|
276
|
+
</svg>
|
277
|
+
{% elif plugin.server.platform == 'w' %}
|
278
|
+
<svg t="1721445856168" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
279
|
+
p-id="3630" width="13" height="13">
|
280
|
+
<path
|
281
|
+
d="M456 484V160.1l-335.9 72V484H456zM512 484h391.8V64.2l-391.8 84V484zM456 540H120.2v251.9l335.9 72V540zM512 540v335.9l391.8 84V540H512z"
|
282
|
+
fill="#00adef" p-id="3631"></path>
|
283
|
+
</svg>
|
284
|
+
{% else %}
|
285
|
+
<svg t="1721445911301" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
286
|
+
p-id="5446" width="13" height="13">
|
287
|
+
<path
|
288
|
+
d="M185.952 688l23.872-33.824c85.536 43.232 186.816 67.808 333.184 62.272 0.992-42.304 5.696-82.72 14.496-118.848H396.736c3.776-172.288 67.168-325.024 138.592-441.28H51.264l0.192 740.32h512.64a658.112 658.112 0 0 1-20.832-138.048c-132.8 5.664-269.856-18.304-357.312-70.592z m86.752-422.016h46.848V375.52h-46.848V265.984z"
|
289
|
+
fill="#4F8FCC" p-id="5447"></path>
|
290
|
+
<path
|
291
|
+
d="M959.04 156.352H584.8c-65.472 100.576-129.984 236-144.32 398.976h169.44c-13.792 50.304-24.448 102.176-24.96 157.952 95.072-11.68 145.408-23.872 215.904-59.456l23.84 33.824c-61.312 36.672-148.224 59.2-239.744 67.584 1.408 46.944 8.448 93.984 22.08 141.472h352V156.352zM707.808 375.456h-46.88V265.92h46.88v109.536z"
|
292
|
+
fill="#BABEE0" p-id="5448"></path>
|
293
|
+
<path
|
294
|
+
d="M319.584 375.52h-46.88V265.984h46.848V375.52zM209.792 654.176L185.952 688c87.456 52.288 224.544 76.256 357.312 70.624a618.4 618.4 0 0 1-0.256-42.144c-146.368 5.536-247.68-19.072-333.216-62.304zM707.808 265.92v109.536h-46.88V265.92h46.88zM584.96 755.232c91.52-8.416 178.432-30.944 239.744-67.584l-23.84-33.824C730.368 689.408 680.032 701.6 584.96 713.28c0.544-55.744 11.2-107.616 24.96-157.952H440.48c14.336-163.008 78.848-298.432 144.32-398.976a1182.144 1182.144 0 0 1 73.76-101.024l-31.616-26.4a1066.656 1066.656 0 0 0-91.68 127.424C463.84 272.576 400.48 425.344 396.672 597.632H557.44c-8.8 36.128-13.504 76.544-14.496 118.848-0.32 13.92-0.352 27.872 0.256 42.144 1.92 45.056 8.704 91.68 20.832 138.048a604.48 604.48 0 0 0 46.624 124.256l38.016-18.304a602.912 602.912 0 0 1-41.632-105.952 571.936 571.936 0 0 1-22.08-141.44z"
|
295
|
+
fill="#224477" p-id="5449"></path>
|
296
|
+
</svg>
|
297
|
+
{% endif %}
|
298
|
+
<div class="package_name"> {{ plugin.server.player_count }}/{{ plugin.server.max_players }} </div>
|
299
|
+
{% if plugin.server.vac_enabled %}
|
300
|
+
<img class="vac-icon" src="vac_white.png" alt="VAC Enabled">
|
301
|
+
{% else %}
|
302
|
+
{% endif %}
|
303
|
+
</div>
|
304
|
+
</div>
|
305
|
+
</div>
|
306
|
+
{% endfor %}
|
307
|
+
</div>
|
308
|
+
<div class="head">
|
309
|
+
<span class="loaded-text">
|
310
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"
|
311
|
+
style="vertical-align: middle;">
|
312
|
+
<image xlink:href="github.svg" width="20" height="20" />
|
313
|
+
</svg>
|
314
|
+
<b style="vertical-align: middle;">插件:Agnes4m</b>
|
315
|
+
</span>
|
316
|
+
<span class="loaded-text"><b>———— ©爱丽数码 ————</b></span>
|
317
|
+
<span class="loaded-text">
|
318
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"
|
319
|
+
style="vertical-align: middle;">
|
320
|
+
<image xlink:href="bilibili.svg" width="20" height="20" fill="red" />
|
321
|
+
</svg>
|
322
|
+
<b style="vertical-align: middle;">插画:吃咖喱的poi</b>
|
323
|
+
</span>
|
324
|
+
</div>
|
325
|
+
</div>
|
326
|
+
|
327
|
+
|
328
|
+
<script>
|
329
|
+
// 创建一个函数,用于随机生成带透明度的颜色
|
330
|
+
function getRandomColorWithOpacity(opacity) {
|
331
|
+
// 生成随机的 RGB 颜色值
|
332
|
+
var r = Math.floor(Math.random() * 256);
|
333
|
+
var g = Math.floor(Math.random() * 256);
|
334
|
+
var b = Math.floor(Math.random() * 256);
|
335
|
+
// 返回带有透明度的 CSS 格式的颜色字符串
|
336
|
+
return "rgba(" + r + "," + g + "," + b + "," + opacity + ")";
|
337
|
+
}
|
338
|
+
|
339
|
+
// 在文档加载完成后执行
|
340
|
+
document.addEventListener("DOMContentLoaded", function () {
|
341
|
+
// 获取所有具有 "plugin" 类的元素
|
342
|
+
var pluginElements = document.querySelectorAll(".plugin, .head");
|
343
|
+
// 设置透明度
|
344
|
+
var opacity = 0.2; // 可以根据需要调整透明度值
|
345
|
+
// 遍历每个元素
|
346
|
+
pluginElements.forEach(function (element) {
|
347
|
+
// 为每个元素添加一个带透明度的随机背景颜色
|
348
|
+
element.style.backgroundColor = getRandomColorWithOpacity(opacity);
|
349
|
+
|
350
|
+
});
|
351
|
+
});
|
352
|
+
</script>
|
353
|
+
</body>
|
354
|
+
|
355
|
+
</html>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg t="1713753996361" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7579" width="200" height="200"><path d="M129.36 208c131.28-4.88 760.4 0 760.4 0s122.88 25.6 126.16 160.4c-1.6 134.8 0 404.16 0 404.16s-6.8 131.6-124.56 152.48c-50.48-1.68-67.2 0-67.2 0s-3.36 55.36-52.96 56.16c-49.76 0.72-57.2-38.56-58.88-52.96-28.48 0-352.88 1.44-390.16 1.6h-3.52s-6 51.36-55.6 51.36c-49.76 0-52.16-42.56-55.52-51.28-32 0-75.68-0.8-75.68-0.8s-109.6-21.6-123.76-157.2c1.84-130.4 0.24-383.12 0.08-402.32v-1.28C7.84 362.88 1.04 242.56 129.36 208z m745.92 98.4H158.96c-21.76 0-39.44 17.28-39.44 38.56v452.4c0 21.36 17.68 38.56 39.44 38.56h716.32c21.76 0 39.36-17.28 39.36-38.56V344.88c0-21.28-17.6-38.48-39.36-38.48zM527.92 610.96c49.92 108.56 105.04 28.8 105.04 28.8l31.28 20.4s-58.48 94.16-135.6 22.96c-65.2 71.28-133.76-22.64-133.76-22.64l34.8-22.32 0.24 0.48c3.92 6.56 48.56 78.56 98-27.68zM413.68 399.68l16 79.76-210.08 40.72-17.76-79.76 211.84-40.72z m235.44 0l211.76 40.72-17.84 79.76-210.16-40.72 16.24-79.76z m85.6-337.92c8.4-6 9.68-15.6 34.32 6 21.76 19.2 12.96 36.48 10.56 40.24l-0.48 0.8-93.12 97.04H596.24S726.4 67.84 734.72 61.76zM328 58.16c8.32 6 138.48 144.08 138.48 144.08H376.72L283.68 105.2s-14.56-19.28 10-41.04c24.8-21.6 26-12 34.32-6z m0 0" fill="currentColor" p-id="7580"></path></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg t="1713694955384" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6685" width="128" height="128"><path d="M512 42.666667A464.64 464.64 0 0 0 42.666667 502.186667 460.373333 460.373333 0 0 0 363.52 938.666667c23.466667 4.266667 32-9.813333 32-22.186667v-78.08c-130.56 27.733333-158.293333-61.44-158.293333-61.44a122.026667 122.026667 0 0 0-52.053334-67.413333c-42.666667-28.16 3.413333-27.733333 3.413334-27.733334a98.56 98.56 0 0 1 71.68 47.36 101.12 101.12 0 0 0 136.533333 37.973334 99.413333 99.413333 0 0 1 29.866667-61.44c-104.106667-11.52-213.333333-50.773333-213.333334-226.986667a177.066667 177.066667 0 0 1 47.36-124.16 161.28 161.28 0 0 1 4.693334-121.173333s39.68-12.373333 128 46.933333a455.68 455.68 0 0 1 234.666666 0c89.6-59.306667 128-46.933333 128-46.933333a161.28 161.28 0 0 1 4.693334 121.173333A177.066667 177.066667 0 0 1 810.666667 477.866667c0 176.64-110.08 215.466667-213.333334 226.986666a106.666667 106.666667 0 0 1 32 85.333334v125.866666c0 14.933333 8.533333 26.88 32 22.186667A460.8 460.8 0 0 0 981.333333 502.186667 464.64 464.64 0 0 0 512 42.666667" fill="currentColor" p-id="6686"></path></svg>
|
@@ -5,6 +5,5 @@
|
|
5
5
|
<title>Linux</title>
|
6
6
|
>
|
7
7
|
<path
|
8
|
-
fill="currentColor"
|
9
8
|
d="M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.043c-.06-.003-.12 0-.18 0h-.016c.151-.467-.182-.825-1.065-1.224-.915-.4-1.646-.336-1.77.465-.008.043-.013.066-.018.135-.068.023-.139.053-.209.064-.43.268-.662.669-.793 1.187-.13.533-.17 1.156-.205 1.869v.003c-.02.334-.17.838-.319 1.35-1.5 1.072-3.58 1.538-5.348.334a2.645 2.645 0 00-.402-.533 1.45 1.45 0 00-.275-.333c.182 0 .338-.03.465-.067a.615.615 0 00.314-.334c.108-.267 0-.697-.345-1.163-.345-.467-.931-.995-1.788-1.521-.63-.4-.986-.87-1.15-1.396-.165-.534-.143-1.085-.015-1.645.245-1.07.873-2.11 1.274-2.763.107-.065.037.135-.408.974-.396.751-1.14 2.497-.122 3.854a8.123 8.123 0 01.647-2.876c.564-1.278 1.743-3.504 1.836-5.268.048.036.217.135.289.202.218.133.38.333.59.465.21.201.477.335.876.335.039.003.075.006.11.006.412 0 .73-.134.997-.268.29-.134.52-.334.74-.4h.005c.467-.135.835-.402 1.044-.7zm2.185 8.958c.037.6.343 1.245.882 1.377.588.134 1.434-.333 1.791-.765l.211-.01c.315-.007.577.01.847.268l.003.003c.208.199.305.53.391.876.085.4.154.78.409 1.066.486.527.645.906.636 1.14l.003-.007v.018l-.003-.012c-.015.262-.185.396-.498.595-.63.401-1.746.712-2.457 1.57-.618.737-1.37 1.14-2.036 1.191-.664.053-1.237-.2-1.574-.898l-.005-.003c-.21-.4-.12-1.025.056-1.69.176-.668.428-1.344.463-1.897.037-.714.076-1.335.195-1.814.12-.465.308-.797.641-.984l.045-.022zm-10.814.049h.01c.053 0 .105.005.157.014.376.055.706.333 1.023.752l.91 1.664.003.003c.243.533.754 1.064 1.189 1.637.434.598.77 1.131.729 1.57v.006c-.057.744-.48 1.148-1.125 1.294-.645.135-1.52.002-2.395-.464-.968-.536-2.118-.469-2.857-.602-.369-.066-.61-.2-.723-.4-.11-.2-.113-.602.123-1.23v-.004l.002-.003c.117-.334.03-.752-.027-1.118-.055-.401-.083-.71.043-.94.16-.334.396-.4.69-.533.294-.135.64-.202.915-.47h.002v-.002c.256-.268.445-.601.668-.838.19-.201.38-.336.663-.336zm7.159-9.074c-.435.201-.945.535-1.488.535-.542 0-.97-.267-1.28-.466-.154-.134-.28-.268-.373-.335-.164-.134-.144-.333-.074-.333.109.016.129.134.199.2.096.066.215.2.36.333.292.2.68.467 1.167.467.485 0 1.053-.267 1.398-.466.195-.135.445-.334.648-.467.156-.136.149-.267.279-.267.128.016.034.134-.147.332a8.097 8.097 0 01-.69.468zm-1.082-1.583V5.64c-.006-.02.013-.042.029-.05.074-.043.18-.027.26.004.063 0 .16.067.15.135-.006.049-.085.066-.135.066-.055 0-.092-.043-.141-.068-.052-.018-.146-.008-.163-.065zm-.551 0c-.02.058-.113.049-.166.066-.047.025-.086.068-.14.068-.05 0-.13-.02-.136-.068-.01-.066.088-.133.15-.133.08-.031.184-.047.259-.005.019.009.036.03.03.05v.02h.003z"/>
|
10
9
|
</svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="150px" height="150px"> <path fill="currentColor" d="M 2.0996094 6.9609375 L 2.0996094 42.939453 L 27.550781 42.939453 L 29.679688 42.939453 L 48 42.939453 L 48 6.9609375 L 29.039062 6.9609375 L 26.599609 6.9609375 L 2.0996094 6.9609375 z M 27.679688 8.9609375 L 46 8.9609375 L 46 40.939453 L 29.009766 40.939453 C 28.739766 39.989453 28.540391 39.020781 28.400391 38.050781 C 28.290391 37.280781 28.229453 36.530547 28.189453 35.810547 L 28.189453 35.800781 C 28.197008 35.799475 28.20345 35.796383 28.210938 35.794922 C 28.213204 35.858583 28.208154 35.916455 28.210938 35.980469 C 28.870937 35.940469 29.529453 35.890547 30.189453 35.810547 C 33.709453 35.400547 37.179688 34.469062 40.429688 33.039062 L 39.630859 31.210938 C 36.640859 32.520937 33.450937 33.389063 30.210938 33.789062 C 29.550938 33.869062 28.880938 33.940469 28.210938 33.980469 C 28.21 34.000469 28.211816 34.02291 28.210938 34.042969 C 28.207058 34.04213 28.203118 34.041812 28.199219 34.041016 C 28.199457 34.034135 28.198978 34.026406 28.199219 34.019531 C 28.199219 33.999531 28.200937 33.990469 28.210938 33.980469 C 28.200937 33.910469 28.210938 33.849063 28.210938 33.789062 C 28.300938 32.099063 28.580156 30.600313 28.910156 29.320312 C 28.960156 29.130312 29.010547 28.949297 29.060547 28.779297 C 29.070547 28.769297 29.070078 28.750469 29.080078 28.730469 C 29.210078 28.270469 29.36 27.839453 29.5 27.439453 L 29.990234 26.099609 L 29.966797 26.099609 L 21.25 26.099609 C 21.83 22.079609 22.980156 18.180469 24.660156 14.480469 C 25.530156 12.570469 26.529688 10.720937 27.679688 8.9609375 z M 11.910156 13.972656 L 13.947266 13.972656 C 13.948266 15.658656 13.950172 17.34425 13.951172 19.03125 C 13.267172 19.02625 12.582437 19.021625 11.898438 19.015625 C 11.901438 17.334625 11.906156 15.653656 11.910156 13.972656 z M 34.009766 14.009766 L 34.009766 18.980469 L 35.875 18.980469 L 35.875 14.009766 L 34.009766 14.009766 z M 10.365234 31.150391 C 14.376234 32.920391 18.626281 33.889297 22.988281 34.029297 C 24.051281 34.059297 25.115734 34.050469 26.177734 33.980469 C 26.147734 34.620469 26.147734 35.290469 26.177734 35.980469 C 25.465734 36.030469 24.74225 36.050781 24.03125 36.050781 C 23.66025 36.050781 23.300687 36.039297 22.929688 36.029297 C 18.307688 35.879297 13.804734 34.860469 9.5527344 32.980469 L 10.365234 31.150391 z"/></svg>
|
@@ -0,0 +1,247 @@
|
|
1
|
+
<html>
|
2
|
+
|
3
|
+
<head>
|
4
|
+
<style>
|
5
|
+
body {
|
6
|
+
margin: 0px;
|
7
|
+
zoom: 150%;
|
8
|
+
}
|
9
|
+
|
10
|
+
/* Vac图标样式 */
|
11
|
+
.vac-icon {
|
12
|
+
width: 13px;
|
13
|
+
height: auto;
|
14
|
+
margin-left: 190px;
|
15
|
+
}
|
16
|
+
|
17
|
+
.image {
|
18
|
+
display: flex;
|
19
|
+
flex-direction: column;
|
20
|
+
overflow: scroll;
|
21
|
+
width: max-content;
|
22
|
+
padding: 20px;
|
23
|
+
}
|
24
|
+
|
25
|
+
.head {
|
26
|
+
display: flex;
|
27
|
+
flex-direction: row;
|
28
|
+
align-items: center;
|
29
|
+
justify-content: space-between;
|
30
|
+
background-color: #f5f6f7;
|
31
|
+
padding-left: 20px;
|
32
|
+
padding-right: 20px;
|
33
|
+
padding-top: 10px;
|
34
|
+
padding-bottom: 10px;
|
35
|
+
border: 2px solid;
|
36
|
+
border-radius: 50px;
|
37
|
+
border-color: #e5e7eb;
|
38
|
+
font-size: 16px;
|
39
|
+
margin-bottom: 20px;
|
40
|
+
}
|
41
|
+
|
42
|
+
.plugins {
|
43
|
+
display: grid;
|
44
|
+
grid-template-columns: auto auto auto;
|
45
|
+
row-gap: 20px;
|
46
|
+
column-gap: 20px;
|
47
|
+
margin-bottom: 20px;
|
48
|
+
}
|
49
|
+
|
50
|
+
.plugin {
|
51
|
+
display: flex;
|
52
|
+
padding: 5px;
|
53
|
+
border: 1px solid;
|
54
|
+
border-radius: 5px;
|
55
|
+
border-color: #e5e7eb;
|
56
|
+
box-shadow: 0px 2px 6px 1px rgba(0, 0, 0, 0.2);
|
57
|
+
background-color: #f5f6f7;
|
58
|
+
}
|
59
|
+
|
60
|
+
.plugin_meta {
|
61
|
+
display: flex;
|
62
|
+
flex-direction: column;
|
63
|
+
padding: 5px;
|
64
|
+
width: 250px;
|
65
|
+
justify-content: space-between;
|
66
|
+
}
|
67
|
+
|
68
|
+
.plugin_name {
|
69
|
+
font-size: 20px;
|
70
|
+
}
|
71
|
+
|
72
|
+
.plugin_description {
|
73
|
+
font-size: 15px;
|
74
|
+
color: gray;
|
75
|
+
margin-top: 5px;
|
76
|
+
margin-bottom: 5px;
|
77
|
+
}
|
78
|
+
|
79
|
+
.plugin_meta_line1 {
|
80
|
+
display: flex;
|
81
|
+
flex-direction: row;
|
82
|
+
align-items: center;
|
83
|
+
justify-content: space-between;
|
84
|
+
}
|
85
|
+
|
86
|
+
.plugin_meta_line3 {
|
87
|
+
display: flex;
|
88
|
+
flex-direction: row;
|
89
|
+
align-items: center;
|
90
|
+
}
|
91
|
+
|
92
|
+
.package_name_label {
|
93
|
+
background-image: url(./fingerprint.svg);
|
94
|
+
width: 13px;
|
95
|
+
height: 13px;
|
96
|
+
margin-right: 8px;
|
97
|
+
}
|
98
|
+
|
99
|
+
.package_name {
|
100
|
+
font-size: 13px;
|
101
|
+
color: gray;
|
102
|
+
}
|
103
|
+
|
104
|
+
.switch {
|
105
|
+
position: relative;
|
106
|
+
display: inline-block;
|
107
|
+
width: 40px;
|
108
|
+
height: 24px;
|
109
|
+
}
|
110
|
+
|
111
|
+
.slider {
|
112
|
+
position: absolute;
|
113
|
+
cursor: pointer;
|
114
|
+
top: 0;
|
115
|
+
left: 0;
|
116
|
+
right: 0;
|
117
|
+
bottom: 0;
|
118
|
+
background-color: #ccc;
|
119
|
+
}
|
120
|
+
|
121
|
+
.slider.round {
|
122
|
+
border-radius: 24px;
|
123
|
+
}
|
124
|
+
|
125
|
+
.status_text {
|
126
|
+
position: absolute;
|
127
|
+
top: 50%;
|
128
|
+
left: 50%;
|
129
|
+
transform: translate(-50%, -50%);
|
130
|
+
white-space: nowrap;
|
131
|
+
/* 防止换行 */
|
132
|
+
padding: 2px 6px;
|
133
|
+
/* 添加一些内边距以增加可读性 */
|
134
|
+
border-radius: 16px;
|
135
|
+
/* 圆角 */
|
136
|
+
}
|
137
|
+
|
138
|
+
.error {
|
139
|
+
background-color: #999;
|
140
|
+
/* 灰色背景 */
|
141
|
+
color: white;
|
142
|
+
/* 白色文字 */
|
143
|
+
}
|
144
|
+
|
145
|
+
.lack {
|
146
|
+
background-color: #4CAF50;
|
147
|
+
/* 绿色背景 */
|
148
|
+
color: white;
|
149
|
+
/* 白色文字 */
|
150
|
+
}
|
151
|
+
|
152
|
+
.full {
|
153
|
+
background-color: #f44336;
|
154
|
+
/* 红色背景 */
|
155
|
+
color: white;
|
156
|
+
/* 白色文字 */
|
157
|
+
}
|
158
|
+
|
159
|
+
.not_full {
|
160
|
+
background-color: #2196F3;
|
161
|
+
/* 蓝色背景 */
|
162
|
+
color: white;
|
163
|
+
/* 白色文字 */
|
164
|
+
}
|
165
|
+
</style>
|
166
|
+
</head>
|
167
|
+
|
168
|
+
<body>
|
169
|
+
<div class="image">
|
170
|
+
<div class="head">
|
171
|
+
<span><b>已加载服务器</b></span>
|
172
|
+
<span>发送 “<b>查询指令+序号</b>” 查看详情</span>
|
173
|
+
</div>
|
174
|
+
<div class="plugins">
|
175
|
+
{% for plugin in plugins %}
|
176
|
+
<div class="plugin">
|
177
|
+
<div class="plugin_meta">
|
178
|
+
<div class="plugin_meta_line1">
|
179
|
+
<div class="plugin_name">{{ plugin.command }}{{ plugin.id_ }}:{{ plugin.server.server_name }}</div>
|
180
|
+
<div class="plugin_status">
|
181
|
+
<label class="switch">
|
182
|
+
<input class="checkbox" type="checkbox" {% if plugin.enabled %} checked {% endif %} />
|
183
|
+
<span
|
184
|
+
class="slider round {% if plugin.server.player_count >= plugin.server.max_players %} locked {% endif %}">
|
185
|
+
<span
|
186
|
+
class="lock {% if plugin.server.player_count >= plugin.server.max_players %} locked {% endif %}"></span>
|
187
|
+
<span
|
188
|
+
class="status_text {% if plugin.server.max_players == 0 %}error{% elif plugin.server.player_count / plugin.server.max_players < 0.5 %}lack{% elif plugin.server.player_count >= plugin.server.max_players %}full{% else %}not_full{% endif %}">
|
189
|
+
{% if plugin.server.max_players == 0 %}
|
190
|
+
错误
|
191
|
+
{% elif plugin.server.player_count / plugin.server.max_players < 0.5 %} 缺人 {% elif
|
192
|
+
plugin.server.player_count>= plugin.server.max_players
|
193
|
+
%}
|
194
|
+
已满
|
195
|
+
{% else %}
|
196
|
+
未满
|
197
|
+
{% endif %}
|
198
|
+
</span>
|
199
|
+
</span>
|
200
|
+
</label>
|
201
|
+
</div>
|
202
|
+
</div>
|
203
|
+
<div class="plugin_meta_line2">
|
204
|
+
<font color="blue">地图:{{ plugin.server.map_name }}</font><br>
|
205
|
+
{% set player_count = plugin.player|length %}
|
206
|
+
{% for i in range(max_count) %}
|
207
|
+
{% set player = plugin.player[i] if i < player_count else None %} {% if player and player.name %} <font
|
208
|
+
color="green">• {{ player.score }} | {{ player.name }}</font><br>
|
209
|
+
{% else %}
|
210
|
+
<!-- 如果玩家不存在或没有名字,则显示空行或占位符 -->
|
211
|
+
<br>
|
212
|
+
{% endif %}
|
213
|
+
{% endfor %}
|
214
|
+
</div>
|
215
|
+
<div class="plugin_meta_line3">
|
216
|
+
{% if plugin.server.platform == 'l' %}
|
217
|
+
<image xlink:href="l.svg" width="13" height="13" />
|
218
|
+
</svg>
|
219
|
+
{% elif plugin.server.platform == 'w' %}
|
220
|
+
<image xlink:href="w.svg" width="13" height="13" />
|
221
|
+
{% else %}
|
222
|
+
<image xlink:href="m.svg" width="13" height="13" />
|
223
|
+
{% endif %}
|
224
|
+
<div class="package_name"> {{ plugin.server.player_count }}/{{ plugin.server.max_players }} </div>
|
225
|
+
{% if plugin.server.vac_enabled %}
|
226
|
+
<img class="vac-icon" src="vac.png">
|
227
|
+
{% else %}
|
228
|
+
{% endif %}
|
229
|
+
</div>
|
230
|
+
</div>
|
231
|
+
</div>
|
232
|
+
{% endfor %}
|
233
|
+
</div>
|
234
|
+
<div class="head">
|
235
|
+
<span class="loaded-text">
|
236
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"
|
237
|
+
style="vertical-align: middle;">
|
238
|
+
<image xlink:href="github.svg" width="20" height="20" />
|
239
|
+
</svg>
|
240
|
+
<b style="vertical-align: middle;">插件:Agnes4m</b>
|
241
|
+
</span>
|
242
|
+
<span class="loaded-text"><b>©爱丽数码</b></span>
|
243
|
+
</div>
|
244
|
+
</div>
|
245
|
+
|
246
|
+
</html>
|
247
|
+
</body>
|
Binary file
|
Binary file
|
@@ -1 +1 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|