qq-bot-roost 0.8.2 → 0.8.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/package.json +3 -3
- package/src/markdown.js +65 -0
- package/src/message.js +35 -5
- package/src/plugin/context.js +171 -1
- package/src/plugin/subprocess.js +10 -0
- package/src/plugin/testkit.js +46 -3
- package/src/plugin/tools.js +101 -0
- package/src/qq/qrlogin.js +151 -0
- package/src/qq/qrsvg.js +39 -0
- package/src/web/server.js +76 -0
- package/src/webhook.js +21 -1
- package/web/app.js +92 -0
- package/web/index.html +815 -801
- package/web/style.css +53 -0
- package/web/vendor/qrcode.js +2302 -0
package/web/style.css
CHANGED
|
@@ -1308,3 +1308,56 @@ label.switch.small { font-size: 12.5px; color: var(--muted); }
|
|
|
1308
1308
|
.gplug-item .gp-ver { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
|
|
1309
1309
|
|
|
1310
1310
|
.gplug-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
|
|
1311
|
+
|
|
1312
|
+
/* 扫码建机器人:手机 QQ 扫一下,AppID / AppSecret 自动填 */
|
|
1313
|
+
.nb-qr-wrap {
|
|
1314
|
+
display: flex;
|
|
1315
|
+
align-items: center;
|
|
1316
|
+
gap: 10px;
|
|
1317
|
+
margin: -4px 0 12px;
|
|
1318
|
+
}
|
|
1319
|
+
.nb-qr-hint {
|
|
1320
|
+
font-style: normal;
|
|
1321
|
+
font-size: 12px;
|
|
1322
|
+
opacity: 0.6;
|
|
1323
|
+
}
|
|
1324
|
+
.nb-qr {
|
|
1325
|
+
display: flex;
|
|
1326
|
+
flex-direction: column;
|
|
1327
|
+
align-items: center;
|
|
1328
|
+
gap: 8px;
|
|
1329
|
+
margin-bottom: 12px;
|
|
1330
|
+
}
|
|
1331
|
+
/* 二维码必须白底黑码,深色主题下也一样 */
|
|
1332
|
+
.nb-qr-code {
|
|
1333
|
+
background: #fff;
|
|
1334
|
+
padding: 8px;
|
|
1335
|
+
border-radius: 10px;
|
|
1336
|
+
line-height: 0;
|
|
1337
|
+
}
|
|
1338
|
+
.nb-qr-code svg {
|
|
1339
|
+
display: block;
|
|
1340
|
+
}
|
|
1341
|
+
.nb-qr-tip {
|
|
1342
|
+
font-size: 12px;
|
|
1343
|
+
opacity: 0.75;
|
|
1344
|
+
text-align: center;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
/* 「或者手动填」分隔线:扫码优先,手动填作为次选 */
|
|
1348
|
+
.nb-or {
|
|
1349
|
+
display: flex;
|
|
1350
|
+
align-items: center;
|
|
1351
|
+
gap: 10px;
|
|
1352
|
+
margin: 4px 0 10px;
|
|
1353
|
+
font-size: 12px;
|
|
1354
|
+
opacity: 0.55;
|
|
1355
|
+
}
|
|
1356
|
+
.nb-or::before,
|
|
1357
|
+
.nb-or::after {
|
|
1358
|
+
content: '';
|
|
1359
|
+
flex: 1;
|
|
1360
|
+
height: 1px;
|
|
1361
|
+
background: currentColor;
|
|
1362
|
+
opacity: 0.25;
|
|
1363
|
+
}
|