nonebot-plugin-dialectlist 2.1.4__tar.gz → 2.1.6__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_dialectlist-2.1.6/MANIFEST.in +3 -0
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/PKG-INFO +3 -3
- nonebot_plugin_dialectlist-2.1.6/nonebot_plugin_dialectlist/template/avatar/default.jpg +0 -0
- nonebot_plugin_dialectlist-2.1.6/nonebot_plugin_dialectlist/template/avatar/master.jpg +0 -0
- nonebot_plugin_dialectlist-2.1.6/nonebot_plugin_dialectlist/template/css/style.css +118 -0
- nonebot_plugin_dialectlist-2.1.6/nonebot_plugin_dialectlist/template/rank_template.j2 +39 -0
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/nonebot_plugin_dialectlist/utils.py +6 -1
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/nonebot_plugin_dialectlist.egg-info/PKG-INFO +3 -3
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/nonebot_plugin_dialectlist.egg-info/SOURCES.txt +6 -1
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/pyproject.toml +3 -3
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/README.md +0 -0
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/nonebot_plugin_dialectlist/__init__.py +0 -0
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/nonebot_plugin_dialectlist/config.py +0 -0
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/nonebot_plugin_dialectlist/model.py +0 -0
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/nonebot_plugin_dialectlist/storage.py +0 -0
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/nonebot_plugin_dialectlist/time.py +0 -0
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/nonebot_plugin_dialectlist/usage.py +0 -0
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/nonebot_plugin_dialectlist.egg-info/dependency_links.txt +0 -0
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/nonebot_plugin_dialectlist.egg-info/requires.txt +0 -0
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/nonebot_plugin_dialectlist.egg-info/top_level.txt +0 -0
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/setup.cfg +0 -0
- {nonebot_plugin_dialectlist-2.1.4 → nonebot_plugin_dialectlist-2.1.6}/setup.py +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 2.1.
|
|
2
|
+
Name: nonebot-plugin-dialectlist
|
|
3
|
+
Version: 2.1.6
|
|
4
4
|
Summary: 看看你群群友有多能说
|
|
5
5
|
Author-email: Chen_Xu233 <woyerpa@outlook.com>
|
|
6
6
|
License: MIT
|
|
7
|
-
Requires-Python: <4.0,>=3.
|
|
7
|
+
Requires-Python: <4.0,>=3.8
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
Requires-Dist: nonebot2>=2.3.1
|
|
10
10
|
Requires-Dist: nonebot-plugin-chatrecorder>=0.6.0
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
body {
|
|
2
|
+
background-image: url('https://image.anosu.top/pixiv/direct?size=regular');
|
|
3
|
+
background-attachment: scroll;
|
|
4
|
+
margin: 0;
|
|
5
|
+
background-size: cover;
|
|
6
|
+
background-position: center;
|
|
7
|
+
background-repeat: no-repeat;
|
|
8
|
+
width: 1024;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.container {
|
|
12
|
+
padding: 20px 40px;
|
|
13
|
+
position: relative;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
display: flex;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.card {
|
|
19
|
+
border: 5px solid rgba(200, 200, 200, 1);
|
|
20
|
+
text-align: center; /*设置文本水平居中*/
|
|
21
|
+
align-content: center;
|
|
22
|
+
margin: 1% 1% 1% 1%;
|
|
23
|
+
border-radius: 2rem;
|
|
24
|
+
background: rgba(255, 255, 255, .2);
|
|
25
|
+
-webkit-backdrop-filter: blur(3px);
|
|
26
|
+
backdrop-filter: blur(3px);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.card2 {
|
|
30
|
+
justify-content: center;
|
|
31
|
+
flex-wrap: wrap;
|
|
32
|
+
align-items: center;
|
|
33
|
+
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
|
+
}
|
|
44
|
+
|
|
45
|
+
.center_text {
|
|
46
|
+
text-align: center;
|
|
47
|
+
font-size: 300%;
|
|
48
|
+
font-weight: bolder;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.center_text2 {
|
|
52
|
+
text-align: center;
|
|
53
|
+
font-size: 150%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.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
|
+
display: flex;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
align-items: center;
|
|
66
|
+
background: rgba(243, 243, 240, 0.6);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.rank_card {
|
|
70
|
+
display: flex;
|
|
71
|
+
width: 90%;
|
|
72
|
+
flex-direction: row;
|
|
73
|
+
border: 3px solid rgba(255, 255, 255, 0.61);
|
|
74
|
+
margin: 20px 10px;
|
|
75
|
+
border-radius: 2rem;
|
|
76
|
+
/* padding: 20px 40px; */
|
|
77
|
+
align-content: center;
|
|
78
|
+
backdrop-filter: blur(10px);
|
|
79
|
+
-webkit-backdrop-filter: blur(10px);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.profile{
|
|
83
|
+
width: 20%;
|
|
84
|
+
height: 20%;
|
|
85
|
+
border: 3px solid rgba(255, 255, 255, 0.61);
|
|
86
|
+
border-radius: 2000px;
|
|
87
|
+
background-size: cover;
|
|
88
|
+
margin-right: 20px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.profile2{
|
|
92
|
+
width: 8%;
|
|
93
|
+
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
|
+
}
|
|
99
|
+
|
|
100
|
+
.rank_card_info {
|
|
101
|
+
width: 100%;
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.g-container {
|
|
107
|
+
width: 90%;
|
|
108
|
+
height: 25px;
|
|
109
|
+
border-radius: 25px;
|
|
110
|
+
background: #ffb2b25d;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.g-progress {
|
|
114
|
+
width: 50%;
|
|
115
|
+
height: inherit;
|
|
116
|
+
border-radius: 25px 20px 20px 25px;
|
|
117
|
+
background: linear-gradient(90deg,rgb(57, 230, 230), rgb(21, 161, 248));
|
|
118
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>
|
|
6
|
+
在 title 里夹一点私货应该不会被发现吧?——ddl 真是太厉害啦!
|
|
7
|
+
</title>
|
|
8
|
+
<link rel="stylesheet" href="./css/style.css">
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div class="container">
|
|
12
|
+
<div class="card" >
|
|
13
|
+
<p class="center_text">话痨排行榜</p>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<div class="rank_container">
|
|
17
|
+
|
|
18
|
+
{% for i in users %}
|
|
19
|
+
<div class="rank_card">
|
|
20
|
+
<img class="profile" src="{{ cache_path }}/{{ i.user_id }}.jpg"/>
|
|
21
|
+
<div class="rank_card_info">
|
|
22
|
+
<h1>第{{ i.user_index }}名:{{ i.user_name }}</h1>
|
|
23
|
+
<div class="g-container">
|
|
24
|
+
<div class="g-progress" style="width: {{ i.user_proportion }}%"></div>
|
|
25
|
+
</div>
|
|
26
|
+
<p>{{ i.user_gender }}一共废话了{{ i.user_bnum }}句,占比{{ i.user_proportion }}%</p>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
{% endfor %}
|
|
30
|
+
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div class="card2">
|
|
34
|
+
<img class="profile2" src="{{ file_path }}/template/avatar/master.jpg"/>
|
|
35
|
+
<p class="center_text2">Designed By ChenXu233</p>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</body>
|
|
39
|
+
</html>
|
|
@@ -148,4 +148,9 @@ async def get_rank_image(rank: List[UserRankInfo]) -> bytes:
|
|
|
148
148
|
|
|
149
149
|
path_dir, filename = os.path.split(path)
|
|
150
150
|
logger.debug(os.path.dirname(os.path.abspath(__file__)) + plugin_config.template_path[1:])
|
|
151
|
-
return await template_to_pic(path_dir,
|
|
151
|
+
return await template_to_pic(path_dir,
|
|
152
|
+
filename,
|
|
153
|
+
{'users': rank,
|
|
154
|
+
'cache_path': cache_path,
|
|
155
|
+
'file_path': os.path.dirname(os.path.abspath(__file__))},
|
|
156
|
+
pages={"viewport": {"width": 1366, "height": 10}})
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 2.1.
|
|
2
|
+
Name: nonebot-plugin-dialectlist
|
|
3
|
+
Version: 2.1.6
|
|
4
4
|
Summary: 看看你群群友有多能说
|
|
5
5
|
Author-email: Chen_Xu233 <woyerpa@outlook.com>
|
|
6
6
|
License: MIT
|
|
7
|
-
Requires-Python: <4.0,>=3.
|
|
7
|
+
Requires-Python: <4.0,>=3.8
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
Requires-Dist: nonebot2>=2.3.1
|
|
10
10
|
Requires-Dist: nonebot-plugin-chatrecorder>=0.6.0
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
MANIFEST.in
|
|
1
2
|
README.md
|
|
2
3
|
pyproject.toml
|
|
3
4
|
setup.py
|
|
@@ -12,4 +13,8 @@ nonebot_plugin_dialectlist.egg-info/PKG-INFO
|
|
|
12
13
|
nonebot_plugin_dialectlist.egg-info/SOURCES.txt
|
|
13
14
|
nonebot_plugin_dialectlist.egg-info/dependency_links.txt
|
|
14
15
|
nonebot_plugin_dialectlist.egg-info/requires.txt
|
|
15
|
-
nonebot_plugin_dialectlist.egg-info/top_level.txt
|
|
16
|
+
nonebot_plugin_dialectlist.egg-info/top_level.txt
|
|
17
|
+
nonebot_plugin_dialectlist/template/rank_template.j2
|
|
18
|
+
nonebot_plugin_dialectlist/template/avatar/default.jpg
|
|
19
|
+
nonebot_plugin_dialectlist/template/avatar/master.jpg
|
|
20
|
+
nonebot_plugin_dialectlist/template/css/style.css
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
|
-
name = "
|
|
3
|
-
version = "2.1.
|
|
2
|
+
name = "nonebot-plugin-dialectlist"
|
|
3
|
+
version = "2.1.6"
|
|
4
4
|
description = "看看你群群友有多能说"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "Chen_Xu233", email = "woyerpa@outlook.com"},
|
|
@@ -17,7 +17,7 @@ dependencies = [
|
|
|
17
17
|
"pyecharts>=2.0.5",
|
|
18
18
|
"nonebot-plugin-htmlrender>=0.3.2",
|
|
19
19
|
]
|
|
20
|
-
requires-python = ">=3.
|
|
20
|
+
requires-python = ">=3.8,<4.0"
|
|
21
21
|
readme = "README.md"
|
|
22
22
|
license = {text = "MIT"}
|
|
23
23
|
|
|
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
|