yz-yuki-plugin 1.0.2-rc.4 → 1.0.2-rc.6
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.
- package/README.md +6 -12
- package/defaultConfig/help/help.yaml +1 -1
- package/lib/models/bilibili/bilibili.models.js +2 -2
- package/lib/utils/puppeteer.render.js +1 -1
- package/package.json +1 -1
- package/resources/css/dynamic/Content.css +0 -11
- package/resources/css/dynamic/Footer.css +0 -8
- package/resources/css/dynamic/MainPage.css +3 -3
- package/resources/css/help/help.css +5 -5
- package/resources/css/loginQrcode/Page.css +8 -0
- package/resources/css/version/version.css +6 -6
- package/resources/fonts/OPSans.woff2 +0 -0
- package/resources/img/readme/mini-help.jpg +0 -0
- package/resources/fonts/iconfont.16acc2.ttf +0 -0
package/README.md
CHANGED
|
@@ -31,19 +31,13 @@ export default defineConfig({
|
|
|
31
31
|
2. 旧的方式安装:
|
|
32
32
|
>gitee仓库:
|
|
33
33
|
>```
|
|
34
|
-
>git clone https://gitee.com/snowtafir/yuki-plugin.git ./plugins/yuki-plugin
|
|
34
|
+
>git clone --branch main https://gitee.com/snowtafir/yuki-plugin.git ./plugins/yuki-plugin
|
|
35
35
|
>```
|
|
36
36
|
|
|
37
37
|
>github仓库:
|
|
38
38
|
>```
|
|
39
|
-
>git clone https://github.com/snowtafir/yuki-plugin.git ./plugins/yuki-plugin
|
|
39
|
+
>git clone --branch main https://github.com/snowtafir/yuki-plugin.git ./plugins/yuki-plugin
|
|
40
40
|
>```
|
|
41
|
-
> [!NOTE]
|
|
42
|
-
> 如果你的网络环境较差,无法连接到 Github,可以使用 [GitHub Proxy](https://mirror.ghproxy.com/) 提供的文件代理加速下载服务
|
|
43
|
-
>
|
|
44
|
-
> ```
|
|
45
|
-
> git clone https://mirror.ghproxy.com/https://github.com/snowtafir/yuki-plugin.git ./plugins/yuki-plugin
|
|
46
|
-
> ```
|
|
47
41
|
|
|
48
42
|
##### ```Yunzai-V3:```
|
|
49
43
|
>gitee仓库:
|
|
@@ -129,8 +123,8 @@ https://m.weibo.cn/u/7643376782 # 7643376782 为崩坏星穹铁道博主uid
|
|
|
129
123
|
| --------- | ----------- | ------------ |
|
|
130
124
|
||||
|
|
131
125
|
| **B站功能** | ------------------------- | ---------- |
|
|
132
|
-
| 添加B站推送 | 检测up的B站动态进行推送,权限:Master。可选分类:直播、视频、图文、文章,不加分类则默认全部 | `#订阅B站推送uid` `#订阅B
|
|
133
|
-
| 取消B站推送 | 删除对应up的B站对应类型的动态推送,权限:Master,可选分类:直播、视频、图文、文章,不加分类则默认全部 | `#取消B站推送uid` `#取消B
|
|
126
|
+
| 添加B站推送 | 检测up的B站动态进行推送,权限:Master。可选分类:直播、视频、图文、文章,不加分类则默认全部 | `#订阅B站推送uid` `#订阅B站推送 图文 uid` |
|
|
127
|
+
| 取消B站推送 | 删除对应up的B站对应类型的动态推送,权限:Master,可选分类:直播、视频、图文、文章,不加分类则默认全部 | `#取消B站推送uid` `#取消B站推送 图文 uid` |
|
|
134
128
|
| 查看B站订阅列表 | 查看本Bot所有的B站订阅列表,权限:Bot的Master | `#B站全部订阅列表` |
|
|
135
129
|
| 查看本群/私聊B站订阅列表 | 查看 本群/私聊 添加的B站订阅列表 | `#B站订阅列表` |
|
|
136
130
|
| 手动推送B站订阅 | 手动触发定时推送任务,权限:Bot的Master | `#执行B站任务` |
|
|
@@ -145,8 +139,8 @@ https://m.weibo.cn/u/7643376782 # 7643376782 为崩坏星穹铁道博主uid
|
|
|
145
139
|
| 刷新B站临时ck | 重新获取并刷新redis缓存的未绑定自己的B站ck而自动获取的 临时B站cookie | `#刷新B站临时ck` |
|
|
146
140
|
||||
|
|
147
141
|
| **微博功能** | ------------------------- | ---------- |
|
|
148
|
-
| 添加微博推送 | 检测博主的微博动态进行推送,权限:Master,可选分类:视频、图文、文章,不加分类则默认全部 | `#订阅微博推送uid`
|
|
149
|
-
| 取消微博推送 | 删除对应博主的微博对应类型的动态推送,权限:Master,可选分类:视频、图文、文章,不加分类则默认全部 | `#取消微博推送uid` `#取消B
|
|
142
|
+
| 添加微博推送 | 检测博主的微博动态进行推送,权限:Master,可选分类:视频、图文、文章,不加分类则默认全部 | `#订阅微博推送uid` `#订阅微博推送 图文 uid` |
|
|
143
|
+
| 取消微博推送 | 删除对应博主的微博对应类型的动态推送,权限:Master,可选分类:视频、图文、文章,不加分类则默认全部 | `#取消微博推送uid` `#取消B站推送 图文 uid` |
|
|
150
144
|
| 查看微博订阅列表 | 查看本Bot所有的B站订阅列表,权限:Bot的Master | `#微博全部订阅列表` |
|
|
151
145
|
| 查看本群/私聊微博订阅列表 | 查看 本群/私聊 添加的微博订阅列表 | `#微博订阅列表` |
|
|
152
146
|
| 手动推送微博订阅 | 手动触发定时推送任务,权限:Bot的Master | `#执行微博任务` |
|
|
@@ -62,7 +62,7 @@ async function pollLoginQRCode(e, qrcodeKey) {
|
|
|
62
62
|
}
|
|
63
63
|
else if (data.data.code === 86101) {
|
|
64
64
|
await new Promise((resolve) => setTimeout(resolve, 2000));
|
|
65
|
-
(logger ?? Bot.logger)?.mark(
|
|
65
|
+
(logger ?? Bot.logger)?.mark(`优纪插件:扫码B站登录:未扫码,轮询中...`);
|
|
66
66
|
return pollLoginQRCode(e, qrcodeKey);
|
|
67
67
|
}
|
|
68
68
|
else if (data.data.code === 86090) {
|
|
@@ -91,7 +91,7 @@ async function checkBiliLogin(e) {
|
|
|
91
91
|
redirect: "follow",
|
|
92
92
|
});
|
|
93
93
|
const resData = await res.json();
|
|
94
|
-
Bot.logger?.
|
|
94
|
+
Bot.logger?.debug(`B站验证登录状态:${JSON.stringify(resData)}`);
|
|
95
95
|
if (resData.code === 0) {
|
|
96
96
|
let uname = resData.data?.uname;
|
|
97
97
|
let mid = resData.data?.mid;
|
|
@@ -22,7 +22,7 @@ class YukiPuppeteerRender extends Puppeteer {
|
|
|
22
22
|
if (Options?.header) {
|
|
23
23
|
await page.setExtraHTTPHeaders(Options.header);
|
|
24
24
|
}
|
|
25
|
-
await page.goto(`file://${htmlPath}`, { timeout: Options?.timeout ?? 120000, waitUntil: ["load", "
|
|
25
|
+
await page.goto(`file://${htmlPath}`, { timeout: Options?.timeout ?? 120000, waitUntil: ["load", "networkidle0"] });
|
|
26
26
|
const body = await page.$(Options?.tab ?? 'body');
|
|
27
27
|
if (!body)
|
|
28
28
|
return false;
|
package/package.json
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: "iconfont";
|
|
3
|
-
src: url("./../../fonts/iconfont.16acc2.ttf");
|
|
4
|
-
font-weight: normal;
|
|
5
|
-
font-style: normal;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
1
|
.content-text-title {
|
|
9
2
|
margin-top: 10px;
|
|
10
3
|
}
|
|
@@ -17,10 +10,6 @@
|
|
|
17
10
|
padding-right: 20px;
|
|
18
11
|
}
|
|
19
12
|
|
|
20
|
-
.content-text {
|
|
21
|
-
font-family: "iconfont", Arial, sans-serif;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
13
|
.content img {
|
|
25
14
|
max-width: 100%;
|
|
26
15
|
height: auto;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: "iconfont";
|
|
3
|
-
src: url("./../../fonts/iconfont.16acc2.ttf");
|
|
4
|
-
font-weight: normal;
|
|
5
|
-
font-style: normal;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
1
|
.footer {
|
|
9
2
|
display: flex;
|
|
10
3
|
justify-content: space-between;
|
|
@@ -31,7 +24,6 @@
|
|
|
31
24
|
flex-direction: column;
|
|
32
25
|
align-items: flex-start;
|
|
33
26
|
font-size: 20px;
|
|
34
|
-
font-family: "iconfont", Arial, sans-serif;
|
|
35
27
|
}
|
|
36
28
|
|
|
37
29
|
.bili-logo-0 {
|
|
@@ -19,14 +19,14 @@ body::-webkit-scrollbar {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
@font-face {
|
|
22
|
-
font-family: "
|
|
23
|
-
src: url("./../../fonts/
|
|
22
|
+
font-family: "OPSans";
|
|
23
|
+
src: url("./../../fonts/OPSans.woff2");
|
|
24
24
|
font-weight: normal;
|
|
25
25
|
font-style: normal;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
body {
|
|
29
|
-
font-family: "
|
|
29
|
+
font-family: "OPSans", Arial, sans-serif;
|
|
30
30
|
background-color: #f9f9f9;
|
|
31
31
|
margin: 0;
|
|
32
32
|
padding: 0;
|
|
@@ -19,8 +19,8 @@ body::-webkit-scrollbar {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
@font-face {
|
|
22
|
-
font-family: "
|
|
23
|
-
src: url("./../../fonts/
|
|
22
|
+
font-family: "OPSans";
|
|
23
|
+
src: url("./../../fonts/OPSans.woff2");
|
|
24
24
|
font-weight: normal;
|
|
25
25
|
font-style: normal;
|
|
26
26
|
}
|
|
@@ -33,7 +33,7 @@ body::-webkit-scrollbar {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
body {
|
|
36
|
-
font-family: "
|
|
36
|
+
font-family: "OPSans";
|
|
37
37
|
font-size: 16px;
|
|
38
38
|
color: #1e1f20;
|
|
39
39
|
transform: scale(1.5);
|
|
@@ -50,7 +50,7 @@ body {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.head_box {
|
|
53
|
-
font-family: "
|
|
53
|
+
font-family: "OPSans";
|
|
54
54
|
border-radius: 10px;
|
|
55
55
|
padding: 10px 20px;
|
|
56
56
|
position: relative;
|
|
@@ -178,5 +178,5 @@ body {
|
|
|
178
178
|
text-align: center;
|
|
179
179
|
font-size: 14px;
|
|
180
180
|
color: rgb(0, 0, 0);
|
|
181
|
-
font-family: "
|
|
181
|
+
font-family: "OPSans";
|
|
182
182
|
}
|
|
@@ -19,8 +19,8 @@ body::-webkit-scrollbar {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
@font-face {
|
|
22
|
-
font-family: "
|
|
23
|
-
src: url("./../../fonts/
|
|
22
|
+
font-family: "OPSans";
|
|
23
|
+
src: url("./../../fonts/OPSans.woff2");
|
|
24
24
|
font-weight: normal;
|
|
25
25
|
font-style: normal;
|
|
26
26
|
}
|
|
@@ -34,7 +34,7 @@ body::-webkit-scrollbar {
|
|
|
34
34
|
|
|
35
35
|
body {
|
|
36
36
|
font-size: 16px;
|
|
37
|
-
font-family: "
|
|
37
|
+
font-family: "OPSans", Arial, sans-serif;
|
|
38
38
|
transform: scale(1.5);
|
|
39
39
|
transform-origin: 0 0;
|
|
40
40
|
color: white;
|
|
@@ -78,7 +78,7 @@ body {
|
|
|
78
78
|
padding: 10px 15px;
|
|
79
79
|
font-size: 12px;
|
|
80
80
|
font-weight: normal;
|
|
81
|
-
font-family: "
|
|
81
|
+
font-family: "OPSans";
|
|
82
82
|
background: transparent;
|
|
83
83
|
color: rgba(0, 0, 0);
|
|
84
84
|
}
|
|
@@ -112,5 +112,5 @@ body {
|
|
|
112
112
|
text-align: center;
|
|
113
113
|
font-size: 14px;
|
|
114
114
|
color: rgb(15, 15, 15);
|
|
115
|
-
font-family: '
|
|
116
|
-
}
|
|
115
|
+
font-family: 'OPSans';
|
|
116
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|