nonebot-plugin-dialectlist 2.2.3__py3-none-any.whl → 2.2.4__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_dialectlist/__init__.py +3 -3
- nonebot_plugin_dialectlist/template/css/style.css +104 -52
- nonebot_plugin_dialectlist/template/rank_template.j2 +14 -6
- nonebot_plugin_dialectlist/utils.py +1 -1
- {nonebot_plugin_dialectlist-2.2.3.dist-info → nonebot_plugin_dialectlist-2.2.4.dist-info}/METADATA +1 -1
- nonebot_plugin_dialectlist-2.2.4.dist-info/RECORD +15 -0
- {nonebot_plugin_dialectlist-2.2.3.dist-info → nonebot_plugin_dialectlist-2.2.4.dist-info}/WHEEL +1 -1
- nonebot_plugin_dialectlist-2.2.3.dist-info/RECORD +0 -15
- {nonebot_plugin_dialectlist-2.2.3.dist-info → nonebot_plugin_dialectlist-2.2.4.dist-info}/top_level.txt +0 -0
|
@@ -280,14 +280,14 @@ async def handle_rank(
|
|
|
280
280
|
**model_dump(user_info),
|
|
281
281
|
user_bnum=i[1],
|
|
282
282
|
user_proportion=round(i[1] / total * 100, 2),
|
|
283
|
-
user_index=
|
|
283
|
+
user_index=index,
|
|
284
284
|
user_nickname=user_nickname,
|
|
285
285
|
user_avatar_bytes=user_avatar,
|
|
286
286
|
)
|
|
287
287
|
user.user_gender = (
|
|
288
|
-
"
|
|
288
|
+
"♀"
|
|
289
289
|
if user_info.user_gender == "female"
|
|
290
|
-
else "
|
|
290
|
+
else "♂" if user_info.user_gender == "male" else ""
|
|
291
291
|
)
|
|
292
292
|
rank2.append(user)
|
|
293
293
|
index += 1
|
|
@@ -1,100 +1,114 @@
|
|
|
1
1
|
body {
|
|
2
|
-
background-
|
|
3
|
-
|
|
4
|
-
margin: 0;
|
|
2
|
+
background-color: #1A1A1A;
|
|
3
|
+
/* Dark gradient */
|
|
5
4
|
background-size: cover;
|
|
6
|
-
background-
|
|
7
|
-
background
|
|
8
|
-
|
|
5
|
+
background-attachment: fixed;
|
|
6
|
+
/* Ensure background stays fixed during scroll */
|
|
7
|
+
margin: 0;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
font-family: "text", sans-serif;
|
|
11
|
+
color: #E0E0E0;
|
|
12
|
+
/* Light gray text for better contrast */
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@font-face {
|
|
16
|
+
font-family: "text";
|
|
17
|
+
src: url("../res/HarmonyOS_Sans_SC.woff2");
|
|
9
18
|
}
|
|
10
19
|
|
|
11
20
|
.container {
|
|
12
21
|
padding: 20px 40px;
|
|
13
22
|
position: relative;
|
|
14
|
-
flex-direction: column;
|
|
15
23
|
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.glow {
|
|
28
|
+
border: 2px solid rgba(77, 228, 255, 0.8);
|
|
29
|
+
box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
|
|
30
|
+
/* Neon glow */
|
|
16
31
|
}
|
|
17
32
|
|
|
18
|
-
.card
|
|
19
|
-
|
|
20
|
-
text-align: center;
|
|
33
|
+
.card,
|
|
34
|
+
.card2 {
|
|
35
|
+
text-align: center;
|
|
21
36
|
align-content: center;
|
|
22
|
-
margin: 1
|
|
23
|
-
border-radius:
|
|
24
|
-
background: rgba(
|
|
25
|
-
-webkit-backdrop-filter: blur(
|
|
26
|
-
backdrop-filter: blur(
|
|
37
|
+
margin: 1%;
|
|
38
|
+
border-radius: 1rem;
|
|
39
|
+
/* background: rgba(25, 25, 25, 0.9); Darker background */
|
|
40
|
+
-webkit-backdrop-filter: blur(5px);
|
|
41
|
+
backdrop-filter: blur(5px);
|
|
27
42
|
}
|
|
28
43
|
|
|
29
44
|
.card2 {
|
|
45
|
+
display: flex;
|
|
30
46
|
justify-content: center;
|
|
31
47
|
flex-wrap: wrap;
|
|
32
|
-
align-items: center;
|
|
33
48
|
flex-direction: revert;
|
|
34
|
-
display: flex;
|
|
35
|
-
border: 5px solid rgba(200, 200, 200, 1);
|
|
36
|
-
text-align: center; /*设置文本水平居中*/
|
|
37
|
-
align-content: center;
|
|
38
|
-
margin: 1% 1% 1% 1%;
|
|
39
|
-
border-radius: 2rem;
|
|
40
|
-
background: rgba(255, 255, 255, .2);
|
|
41
|
-
-webkit-backdrop-filter: blur(3px);
|
|
42
|
-
backdrop-filter: blur(3px);
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
.center_text {
|
|
46
52
|
text-align: center;
|
|
47
|
-
font-size:
|
|
48
|
-
font-weight:
|
|
53
|
+
font-size: 3rem;
|
|
54
|
+
font-weight: 900;
|
|
55
|
+
color: #00FFFF;
|
|
56
|
+
/* Cyan color for a techno vibe */
|
|
49
57
|
}
|
|
50
58
|
|
|
51
59
|
.center_text2 {
|
|
52
60
|
text-align: center;
|
|
53
|
-
font-size:
|
|
61
|
+
font-size: 1.5rem;
|
|
62
|
+
color: #A0A0A0;
|
|
63
|
+
/* Slightly lighter gray */
|
|
54
64
|
}
|
|
55
65
|
|
|
56
66
|
.rank_container {
|
|
57
|
-
flex-direction: column;
|
|
58
|
-
display: flex;
|
|
59
|
-
border: 5px solid rgba(200, 200, 200, 1);
|
|
60
|
-
border-radius: 2rem;
|
|
61
|
-
padding: 10px 20px;
|
|
62
|
-
margin: 1% 1% 1% 1%;
|
|
63
67
|
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
border-radius: 1rem;
|
|
70
|
+
padding: 10px 10px;
|
|
71
|
+
margin: 1%;
|
|
64
72
|
justify-content: center;
|
|
65
73
|
align-items: center;
|
|
66
|
-
background: rgba(
|
|
74
|
+
/* background: rgba(30, 30, 30, 0.9); Dark background */
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
.rank_card {
|
|
70
78
|
display: flex;
|
|
71
|
-
width:
|
|
79
|
+
width: 100%;
|
|
72
80
|
flex-direction: row;
|
|
73
|
-
border:
|
|
74
|
-
margin:
|
|
75
|
-
border-radius:
|
|
76
|
-
/* padding: 20px 40px; */
|
|
81
|
+
/* border: 2px solid rgba(100, 100, 100, 0.7); */
|
|
82
|
+
margin: 10px 10px;
|
|
83
|
+
border-radius: 1rem;
|
|
77
84
|
align-content: center;
|
|
78
85
|
backdrop-filter: blur(10px);
|
|
79
86
|
-webkit-backdrop-filter: blur(10px);
|
|
87
|
+
/* background: rgba(40, 40, 40, 0.8); Slightly lighter for contrast */
|
|
80
88
|
}
|
|
81
89
|
|
|
82
|
-
.profile
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
border:
|
|
86
|
-
border-radius: 2000px;
|
|
90
|
+
.profile,
|
|
91
|
+
.profile2 {
|
|
92
|
+
border: 2px solid rgba(100, 100, 100, 0.7);
|
|
93
|
+
border-radius: 50%;
|
|
87
94
|
background-size: cover;
|
|
88
95
|
margin-right: 20px;
|
|
89
96
|
}
|
|
90
97
|
|
|
91
|
-
.
|
|
98
|
+
.avatar {
|
|
99
|
+
display: flex;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
align-items: center;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.profile {
|
|
105
|
+
width: 12vw;
|
|
106
|
+
height: 12vw;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.profile2 {
|
|
92
110
|
width: 8%;
|
|
93
111
|
height: 8%;
|
|
94
|
-
border: 3px solid rgba(255, 255, 255, 0.61);
|
|
95
|
-
border-radius: 2000px;
|
|
96
|
-
background-size: cover;
|
|
97
|
-
margin-right: 20px;
|
|
98
112
|
}
|
|
99
113
|
|
|
100
114
|
.rank_card_info {
|
|
@@ -107,12 +121,50 @@ body {
|
|
|
107
121
|
width: 90%;
|
|
108
122
|
height: 25px;
|
|
109
123
|
border-radius: 25px;
|
|
110
|
-
background:
|
|
124
|
+
background: rgb(0 0 0 / 31%);
|
|
111
125
|
}
|
|
112
126
|
|
|
113
127
|
.g-progress {
|
|
114
128
|
width: 50%;
|
|
115
129
|
height: inherit;
|
|
116
130
|
border-radius: 25px 20px 20px 25px;
|
|
117
|
-
background: linear-gradient(90deg,rgb(
|
|
131
|
+
background: linear-gradient(90deg, rgb(0, 128, 255), rgb(255, 0, 174));
|
|
132
|
+
/* Neon cyan to magenta gradient */
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.rank {
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: row;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.rank_number {
|
|
143
|
+
margin: 50px;
|
|
144
|
+
font-size: 32px;
|
|
145
|
+
width: 32px;
|
|
146
|
+
height: 32px;
|
|
147
|
+
padding: 6px;
|
|
148
|
+
display: flex;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
align-items: center;
|
|
151
|
+
font-weight: 600;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.rank_number_1 {
|
|
155
|
+
border-radius: 999px;
|
|
156
|
+
background-color: gold;
|
|
157
|
+
color: rgb(154, 105, 14);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.rank_number_2 {
|
|
161
|
+
border-radius: 999px;
|
|
162
|
+
background-color: silver;
|
|
163
|
+
color: rgb(80, 80, 80);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.rank_number_3 {
|
|
167
|
+
border-radius: 999px;
|
|
168
|
+
background-color: #CD7F32;
|
|
169
|
+
color: rgb(95 52 14);
|
|
118
170
|
}
|
|
@@ -9,28 +9,36 @@
|
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div class="container">
|
|
12
|
-
<div class="card" >
|
|
12
|
+
<div class="card glow" >
|
|
13
13
|
<p class="center_text">话痨排行榜</p>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
-
<div class="rank_container">
|
|
16
|
+
<div class="rank_container glow">
|
|
17
17
|
|
|
18
18
|
{% for i in users %}
|
|
19
19
|
<div class="rank_card">
|
|
20
|
-
<
|
|
20
|
+
<div class="rank">
|
|
21
|
+
<div class="rank_number rank_number_{{ i.user_index }}">{{ i.user_index }}</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="avatar">
|
|
24
|
+
<img class="profile" src="{{ cache_path }}/{{ i.user_id }}.jpg"/>
|
|
25
|
+
</div>
|
|
21
26
|
<div class="rank_card_info">
|
|
22
|
-
<h1
|
|
27
|
+
<h1>{{ i.user_nickname }} {{ i.user_gender }}</h1>
|
|
23
28
|
<div class="g-container">
|
|
24
29
|
<div class="g-progress" style="width: {{ i.user_proportion }}%"></div>
|
|
25
30
|
</div>
|
|
26
|
-
<p>{{ i.
|
|
31
|
+
<p>{{ i.user_proportion }}%</p>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="rank">
|
|
34
|
+
<div class="rank_number">{{ i.user_bnum }}</div>
|
|
27
35
|
</div>
|
|
28
36
|
</div>
|
|
29
37
|
{% endfor %}
|
|
30
38
|
|
|
31
39
|
</div>
|
|
32
40
|
|
|
33
|
-
<div class="card2">
|
|
41
|
+
<div class="card2 glow">
|
|
34
42
|
<img class="profile2" src="{{ file_path }}/template/avatar/master.jpg"/>
|
|
35
43
|
<p class="center_text2">Designed By ChenXu233</p>
|
|
36
44
|
</div>
|
|
@@ -178,5 +178,5 @@ async def get_rank_image(rank: List[UserRankInfo]) -> bytes:
|
|
|
178
178
|
"cache_path": cache_path,
|
|
179
179
|
"file_path": os.path.dirname(os.path.abspath(__file__)),
|
|
180
180
|
},
|
|
181
|
-
pages={"viewport": {"width":
|
|
181
|
+
pages={"viewport": {"width": 1000, "height": 10}},
|
|
182
182
|
)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
nonebot_plugin_dialectlist/__init__.py,sha256=fFPwykYfijDSAe3rVhy2JRQthrZRYwDc2aOI-zYjqlY,10316
|
|
2
|
+
nonebot_plugin_dialectlist/config.py,sha256=IHBngoMopgiREx3tdt_53o4BRDG7k0KI8Mro3cBtQ1E,914
|
|
3
|
+
nonebot_plugin_dialectlist/model.py,sha256=rbWYYwfHAomtYjPpbKjbmin7fv8AUxvxPUeO5DFRRB8,425
|
|
4
|
+
nonebot_plugin_dialectlist/storage.py,sha256=7Qdg7pPnikibt4h0cFlcJGWC5gDnkmti21OlINAvxuU,147
|
|
5
|
+
nonebot_plugin_dialectlist/time.py,sha256=AxcVwH-zEz1CJCpfy65hWV9B3wzLgznWgjPIZcizXIc,2623
|
|
6
|
+
nonebot_plugin_dialectlist/usage.py,sha256=x5f5OXXHGobR6zWovYbkYX-t6EywCt_wnHTYmrwlbkw,220
|
|
7
|
+
nonebot_plugin_dialectlist/utils.py,sha256=z6fm-KIGi8GO9XSjl-Z6HNPsHj2MHRhdgj_ocfjAmug,5810
|
|
8
|
+
nonebot_plugin_dialectlist/template/rank_template.j2,sha256=tsXyeoKuEbjUswJByJlEWM3-1qEghk3kDsrdZSvyOMc,1733
|
|
9
|
+
nonebot_plugin_dialectlist/template/avatar/default.jpg,sha256=RLqZqVdemMSbJXrIVFIqlbA4LVJ6y1vW751HAD1HRPI,7124
|
|
10
|
+
nonebot_plugin_dialectlist/template/avatar/master.jpg,sha256=2Ux0CMkHOYckOERgvzwvlKfa1qL5SUdAVVRIGQUndq8,38939
|
|
11
|
+
nonebot_plugin_dialectlist/template/css/style.css,sha256=-eOIA47cGu_iA81adIz_IJFf-abcjz-moDGA4rUU1Jo,3240
|
|
12
|
+
nonebot_plugin_dialectlist-2.2.4.dist-info/METADATA,sha256=RjhooEWlRY4FxXDK1HGisvFuachOmXzleQhgVbR-_KU,7481
|
|
13
|
+
nonebot_plugin_dialectlist-2.2.4.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
14
|
+
nonebot_plugin_dialectlist-2.2.4.dist-info/top_level.txt,sha256=M9CUbtGOXZGGzqgpux36SnQJ5t1aA3V4FCZ_wEK1g2I,27
|
|
15
|
+
nonebot_plugin_dialectlist-2.2.4.dist-info/RECORD,,
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
nonebot_plugin_dialectlist/__init__.py,sha256=ekjlsh8cgcoccNXS35nrdcT0gK2d7w3ZkuyZvvgMvfA,10331
|
|
2
|
-
nonebot_plugin_dialectlist/config.py,sha256=IHBngoMopgiREx3tdt_53o4BRDG7k0KI8Mro3cBtQ1E,914
|
|
3
|
-
nonebot_plugin_dialectlist/model.py,sha256=rbWYYwfHAomtYjPpbKjbmin7fv8AUxvxPUeO5DFRRB8,425
|
|
4
|
-
nonebot_plugin_dialectlist/storage.py,sha256=7Qdg7pPnikibt4h0cFlcJGWC5gDnkmti21OlINAvxuU,147
|
|
5
|
-
nonebot_plugin_dialectlist/time.py,sha256=AxcVwH-zEz1CJCpfy65hWV9B3wzLgznWgjPIZcizXIc,2623
|
|
6
|
-
nonebot_plugin_dialectlist/usage.py,sha256=x5f5OXXHGobR6zWovYbkYX-t6EywCt_wnHTYmrwlbkw,220
|
|
7
|
-
nonebot_plugin_dialectlist/utils.py,sha256=tEwLeC6B5Gn1McG59OHIu5LqwDB1QZ_X49k9WG-DFOg,5810
|
|
8
|
-
nonebot_plugin_dialectlist/template/rank_template.j2,sha256=S3eP3kn5Zt_JPLE-S3d8vf6jEXTRUQOx7MWOvTSBKh8,1404
|
|
9
|
-
nonebot_plugin_dialectlist/template/avatar/default.jpg,sha256=RLqZqVdemMSbJXrIVFIqlbA4LVJ6y1vW751HAD1HRPI,7124
|
|
10
|
-
nonebot_plugin_dialectlist/template/avatar/master.jpg,sha256=2Ux0CMkHOYckOERgvzwvlKfa1qL5SUdAVVRIGQUndq8,38939
|
|
11
|
-
nonebot_plugin_dialectlist/template/css/style.css,sha256=Gb_YOot9HLbfYrrWpJZ_BWBmui6Q8fjobIC3I5LOkCM,2527
|
|
12
|
-
nonebot_plugin_dialectlist-2.2.3.dist-info/METADATA,sha256=-Hc965YiQt2rLAXqV_Ooed1IyAMWXAMb0BWwRqzfta4,7481
|
|
13
|
-
nonebot_plugin_dialectlist-2.2.3.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
|
|
14
|
-
nonebot_plugin_dialectlist-2.2.3.dist-info/top_level.txt,sha256=M9CUbtGOXZGGzqgpux36SnQJ5t1aA3V4FCZ_wEK1g2I,27
|
|
15
|
-
nonebot_plugin_dialectlist-2.2.3.dist-info/RECORD,,
|
|
File without changes
|