koishi-plugin-bilibili-notify 3.6.4 → 3.6.5
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/dist/index.js +1 -1
- package/lib/index.cjs +9 -42
- package/lib/index.mjs +10 -42
- package/package.json +1 -1
- package/lib/font/HYZhengYuan-75W.ttf +0 -0
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as F,inject as T,ref as c,watch as D,resolveComponent as S,createElementBlock as o,openBlock as i,Fragment as N,createCommentVNode as u,createBlock as
|
|
1
|
+
import{defineComponent as F,inject as T,ref as c,watch as D,resolveComponent as S,createElementBlock as o,openBlock as i,Fragment as N,createCommentVNode as u,createBlock as f,createElementVNode as e,toDisplayString as a,withCtx as d,createVNode as y,createTextVNode as b,withDirectives as E,vShow as M}from"vue";import{store as m,send as g}from"@koishijs/client";const $={key:0,class:"loading-wrapper"},j={class:"comment"},A={key:0,class:"comment"},G=["src"],L={key:1,class:"comment"},O={class:"comment"},R={class:"comment"},z={key:0,class:"loading-wrapper"},H={key:1,class:"logged-in fade-in"},J={class:"user-bg-wrapper"},K=["src"],P={class:"user-info"},Q=["src"],U={class:"name-sign"},W={class:"udesc"},X={class:"uname"},Y=["src"],Z={class:"usign"},e1={class:"user-status"},t1=F({__name:"settings",setup(w){const I=T("manager.settings.local"),C=c(""),q=c(""),x=c(""),p=c(""),s=c({}),h=c(false),l=c(""),B=c(false);D(()=>[m["bilibili-notify"].status,m["bilibili-notify"].msg],async()=>{if(I.value.name==="koishi-plugin-bilibili-notify")switch(s.value=m["bilibili-notify"],m["bilibili-notify"].status){case 1:return l.value="loading";case 0:return l.value="not_login";case 5:{const r=setTimeout(()=>{B.value=true},6e4),t=m["bilibili-notify"].data,v=async()=>{await g("bilibili-notify/request-cors",t.card.face).then(async n=>{C.value=n}),await g("bilibili-notify/request-cors",t.space.l_img).then(async n=>{q.value=n}),await g("bilibili-notify/request-cors",t.card.vip.label.img_label_uri_hans_static).then(async n=>{x.value=n}),clearTimeout(r),h.value=true};l.value="logged_in",await v();return}case 2:return p.value=s.value.data,l.value="logging_qr";case 3:return l.value="logging_qr";case 4:return l.value="logging_in";case 7:return l.value="login_failed";case 6:return l.value="login_success"}},{immediate:true});const _=()=>{g("bilibili-notify/start-login")},V=()=>{g("bilibili-notify/restart-plugin")},k=r=>r>=1e8?(r/1e8).toFixed(1).replace(/\.0$/,"")+"亿":r>=1e4?(r/1e4).toFixed(1).replace(/\.0$/,"")+"万":r.toString();return(r,t)=>{const v=S("k-button"),n=S("k-comment");return i(),o(N,null,[l.value==="loading"?(i(),o("div",$,[t[0]||(t[0]=e("div",{class:"spinner"},null,-1)),e("p",null,a(s.value.msg),1)])):u("v-if",true),l.value==="not_login"?(i(),f(n,{key:1,type:"error"},{default:d(()=>[e("div",j,[e("p",null,a(s.value.msg),1),y(v,{onClick:_},{default:d(()=>[...t[1]||(t[1]=[b("登录",-1)])]),_:1})])]),_:1})):u("v-if",true),l.value==="logging_qr"?(i(),f(n,{key:2,type:"warning"},{default:d(()=>[p.value?(i(),o("div",A,[t[2]||(t[2]=e("p",null,"请使用Bilibili App扫码登录",-1)),e("img",{class:"qrcode",src:p.value,alt:"qrcode"},null,8,G),e("p",null,a(s.value.msg),1)])):u("v-if",true),p.value?u("v-if",true):(i(),o("div",L,[t[4]||(t[4]=e("p",null,"二维码显示失败,请重新登录",-1)),y(v,{onClick:_},{default:d(()=>[...t[3]||(t[3]=[b("重新登录",-1)])]),_:1})]))]),_:1})):u("v-if",true),l.value==="login_failed"?(i(),f(n,{key:3,type:"error"},{default:d(()=>[e("div",O,[e("p",null,a(s.value.msg),1),y(v,{onClick:_},{default:d(()=>[...t[5]||(t[5]=[b("重新登录",-1)])]),_:1})])]),_:1})):u("v-if",true),l.value==="login_success"?(i(),f(n,{key:4,type:"success"},{default:d(()=>[e("div",R,[e("p",null,a(s.value.msg),1),y(v,{onClick:V},{default:d(()=>[...t[6]||(t[6]=[b("重启插件",-1)])]),_:1})])]),_:1})):u("v-if",true),l.value==="logged_in"?(i(),o(N,{key:5},[h.value?(i(),o("div",H,[e("div",J,[e("img",{class:"user-bg",src:q.value,alt:"user-bg"},null,8,K)]),e("div",P,[e("img",{class:"avatar",src:C.value,alt:"avatar"},null,8,Q),e("div",U,[e("div",W,[e("span",X,a(s.value.data.card.name),1),s.value.data.card.vip.vipStatus===1?(i(),o("img",{key:0,class:"uvip",src:x.value,alt:"vip"},null,8,Y)):u("v-if",true)]),e("span",Z,a(s.value.data.card.sign),1)])]),e("div",e1,[e("div",null,[t[10]||(t[10]=e("span",null,"关注数",-1)),e("span",null,a(k(s.value.data.card.attention)),1)]),e("div",null,[t[11]||(t[11]=e("span",null,"粉丝数",-1)),e("span",null,a(k(s.value.data.card.fans)),1)]),e("div",null,[t[12]||(t[12]=e("span",null,"获赞数",-1)),e("span",null,a(k(s.value.data.like_num)),1)])]),(i(),o("svg",{onClick:_,class:"logo",t:"1645466458357",viewBox:"0 0 2299 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2663",width:"180",style:{fill:"var(--bew-theme-color)"}},[...t[13]||(t[13]=[e("path",{d:"M1775.840814 322.588002c6.0164 1.002733 53.144869-9.525967 55.150336-6.016401 3.0082 4.5123 24.065601 155.92504 18.550567 156.927774s-44.621635 10.027334-44.621635 10.027334c-3.0082-20.556034-28.577901-147.903173-29.079268-160.938707m75.205003-14.539634l20.556034 162.944174c10.5287-0.501367 53.144869-3.509567 57.155803-4.010934-6.0164-61.668103-16.545101-158.933241-16.545101-158.93324-20.054668-4.010934-41.112069-4.010934-61.166736 0m-40.610702 226.116376s92.752838-23.564234 126.344406-12.0328c17.046467 61.668103 48.131202 407.611118 51.139402 421.649386-21.057401 2.506833-90.246004 8.523234-95.761037 10.027333-4.5123-26.071068-81.72277-403.098818-81.722771-419.643919m343.436183-207.565809c5.515034 1.5041 54.648969-5.013667 55.150335-1.5041 1.002733 12.032801 6.0164 157.42914 0.501367 157.930507s-44.621635 4.010934-44.621635 4.010934c-1.002733-20.054668-12.032801-146.90044-11.030067-160.437341m75.70637-4.010933l4.010933 160.938707c10.5287 0 52.643502 2.506833 57.155803 2.005467-1.002733-61.668103 0-158.933241 0-158.933241-20.054668-3.509567-40.610702-5.013667-61.166736-4.010933m-64.676303 216.089043s94.758304-12.534167 126.845772 2.506833c7.019134 72.196803 6.0164 408.613852 7.019134 422.652119-21.558768 0-90.246004 1.002733-95.761038 2.005467-1.002733-26.071068-39.607968-410.619319-38.103868-427.164419m-220.099977-413.627519c54.648969 278.759879 96.262404 755.058234 97.766504 785.641602 0 0 43.117535 1.002733 91.750105 4.010934C2105.740095 614.383415 2070.644427 134.575493 2071.145794 119.033126c-12.032801-13.536901-126.344406 6.0164-126.344406 6.0164m-120.328005 659.297196c-10.5287-78.213204-290.291313-166.955108-447.720454-138.377206 0 0-19.553301-172.470141-27.073801-339.425248-6.517767-143.390873-1.002733-282.770813 0.501366-305.833681-10.5287-7.5205-123.837572 46.627102-185.004308 69.188603 0 0 73.199537 309.844614 126.344406 952.59671 0 0 84.730971 9.0246 230.12731-19.051934s317.365114-115.815705 302.825481-219.097244m-341.932083 140.88404l-24.566967-176.982441c6.0164-3.0082 156.927774 53.144869 172.971507 63.172203-2.506833 11.030067-148.40454 113.810238-148.40454 113.810238M610.664628 322.588002c6.0164 1.002733 53.144869-9.525967 55.150335-6.016401 3.0082 4.5123 24.065601 155.92504 18.550568 156.927774s-44.621635 10.027334-44.621635 10.027334c-3.0082-20.556034-28.577901-147.903173-29.079268-160.938707m75.205003-14.539634l20.556034 162.944174c10.5287-0.501367 53.144869-3.509567 57.155803-4.010934-6.517767-61.668103-16.545101-158.933241-16.545101-158.93324-20.054668-4.010934-41.112069-4.010934-61.166736 0m-40.610702 226.116376s92.752838-23.564234 126.344406-12.0328c17.046467 61.668103 48.131202 407.611118 51.139402 421.649386-21.057401 2.506833-90.246004 8.523234-95.761037 10.027333-4.5123-26.071068-81.72277-403.098818-81.722771-419.643919m343.436182-207.565809c5.515034 1.5041 54.648969-5.013667 55.150336-1.5041 1.002733 12.032801 6.0164 157.42914 0.501367 157.930507s-44.621635 4.010934-44.621635 4.010934c-1.002733-20.054668-11.531434-146.90044-11.030068-160.437341m75.706371-4.010933l4.010933 160.938707c10.5287 0 52.643502 2.506833 57.155803 2.005467-1.002733-61.668103 0-158.933241 0-158.933241-20.054668-3.509567-40.610702-4.5123-61.166736-4.010933m-64.676303 216.089043s94.758304-12.534167 126.845772 2.506833c7.019134 72.196803 6.0164 408.613852 7.019134 422.652119-21.558768 0-90.246004 1.002733-95.761038 2.005467-0.501367-26.071068-39.607968-410.619319-38.103868-427.164419m-220.099977-413.627519c54.648969 278.759879 96.262404 755.058234 97.766504 785.641602 0 0 43.117535 1.002733 91.750105 4.010934-28.577901-300.318647-63.67357-780.126569-63.172203-796.170303-12.032801-13.035534-126.344406 6.517767-126.344406 6.517767m-120.328005 659.297196c-10.5287-78.213204-290.291313-166.955108-447.720454-138.377206 0 0-19.553301-172.470141-27.073801-339.425248-6.517767-143.390873-1.002733-282.770813 0.501366-305.833681C174.475608-6.308547 61.166736 47.337689 0 69.89919c0 0 73.199537 309.844614 126.344406 952.59671 0 0 84.730971 9.0246 230.12731-19.051934s317.365114-115.815705 302.825481-219.097244m-341.932083 140.88404l-24.566967-176.982441c6.0164-3.0082 156.927774 53.144869 172.971507 63.172203-2.506833 11.030067-148.40454 113.810238-148.40454 113.810238","p-id":"2664"},null,-1)])]))])):(i(),o("div",z,[t[8]||(t[8]=e("div",{class:"spinner"},null,-1)),t[9]||(t[9]=e("p",null,"正在加载登录账号信息中...",-1)),E(e("div",null,[...t[7]||(t[7]=[e("span",null,"加载太久?可能是网络错误,可以尝试切换到其他插件页再切回来;加载不出来也不影响使用哦~",-1)])],512),[[M,B.value]])]))],64)):u("v-if",true)],64)}}}),i1=w=>{w.slot({type:"plugin-details",component:t1,order:0})};export{i1 as default};
|
package/lib/index.cjs
CHANGED
|
@@ -42,7 +42,6 @@ let koishi = require("koishi");
|
|
|
42
42
|
require("@koishijs/plugin-notifier");
|
|
43
43
|
let _koishijs_plugin_console = require("@koishijs/plugin-console");
|
|
44
44
|
let node_path = require("node:path");
|
|
45
|
-
node_path = __toESM(node_path);
|
|
46
45
|
require("@koishijs/plugin-help");
|
|
47
46
|
let blive_message_listener = require("blive-message-listener");
|
|
48
47
|
let qrcode = require("qrcode");
|
|
@@ -929,7 +928,7 @@ var ComRegister = class ComRegister {
|
|
|
929
928
|
if (this.loginTimer) this.loginTimer();
|
|
930
929
|
if (this.dynamicJob) this.dynamicJob.stop();
|
|
931
930
|
if (this.liveAPIJob) this.liveAPIJob.stop();
|
|
932
|
-
for (const [roomId, timer] of this.liveWSManager) {
|
|
931
|
+
if (this.liveWSManager || this.liveWSManager.size > 0) for (const [roomId, timer] of this.liveWSManager) {
|
|
933
932
|
this.ctx["bilibili-notify-live"].closeListener(roomId);
|
|
934
933
|
if (timer) timer();
|
|
935
934
|
}
|
|
@@ -2058,11 +2057,9 @@ const ADDITIONAL_TYPE_RESERVE = "ADDITIONAL_TYPE_RESERVE";
|
|
|
2058
2057
|
var GenerateImg = class GenerateImg extends koishi.Service {
|
|
2059
2058
|
static inject = ["puppeteer"];
|
|
2060
2059
|
giConfig;
|
|
2061
|
-
fontPath;
|
|
2062
2060
|
constructor(ctx, config) {
|
|
2063
2061
|
super(ctx, "bilibili-notify-generate-img");
|
|
2064
2062
|
this.giConfig = config;
|
|
2065
|
-
this.fontPath = node_path.default.resolve(__dirname, "font/HYZhengYuan-75W.ttf");
|
|
2066
2063
|
}
|
|
2067
2064
|
numberToStr(num) {
|
|
2068
2065
|
return num > 1e4 ? `${(num / 1e4).toFixed(1)}万` : num.toString();
|
|
@@ -2095,17 +2092,11 @@ var GenerateImg = class GenerateImg extends koishi.Service {
|
|
|
2095
2092
|
<head>
|
|
2096
2093
|
<title>直播通知</title>
|
|
2097
2094
|
<style>
|
|
2098
|
-
@font-face {
|
|
2099
|
-
font-family: "NotoColorEmoji";
|
|
2100
|
-
src: url('file://${this.fontPath}') format('truetype');
|
|
2101
|
-
font-display: swap;
|
|
2102
|
-
}
|
|
2103
|
-
|
|
2104
2095
|
* {
|
|
2105
2096
|
margin: 0;
|
|
2106
2097
|
padding: 0;
|
|
2107
2098
|
box-sizing: border-box;
|
|
2108
|
-
font-family: "${this.giConfig.font}", "
|
|
2099
|
+
font-family: "${this.giConfig.font}", "Microsoft YaHei", "Source Han Sans", "Noto Sans CJK", sans-serif;
|
|
2109
2100
|
}
|
|
2110
2101
|
|
|
2111
2102
|
html {
|
|
@@ -2264,17 +2255,11 @@ var GenerateImg = class GenerateImg extends koishi.Service {
|
|
|
2264
2255
|
<head>
|
|
2265
2256
|
<title>上舰通知</title>
|
|
2266
2257
|
<style>
|
|
2267
|
-
@font-face {
|
|
2268
|
-
font-family: "NotoColorEmoji";
|
|
2269
|
-
src: url('file://${this.fontPath}') format('truetype');
|
|
2270
|
-
font-display: swap;
|
|
2271
|
-
}
|
|
2272
|
-
|
|
2273
2258
|
* {
|
|
2274
2259
|
margin: 0;
|
|
2275
2260
|
padding: 0;
|
|
2276
2261
|
box-sizing: border-box;
|
|
2277
|
-
font-family: "${this.giConfig.font}", "
|
|
2262
|
+
font-family: "${this.giConfig.font}", "Microsoft YaHei", "Source Han Sans", "Noto Sans CJK", sans-serif;
|
|
2278
2263
|
}
|
|
2279
2264
|
|
|
2280
2265
|
html {
|
|
@@ -2706,17 +2691,11 @@ var GenerateImg = class GenerateImg extends koishi.Service {
|
|
|
2706
2691
|
const [main] = await getDynamicMajor(data, false);
|
|
2707
2692
|
let style;
|
|
2708
2693
|
if (this.giConfig.enableLargeFont) style = `
|
|
2709
|
-
@font-face {
|
|
2710
|
-
font-family: "NotoColorEmoji";
|
|
2711
|
-
src: url('file://${this.fontPath}') format('truetype');
|
|
2712
|
-
font-display: swap;
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
2694
|
* {
|
|
2716
2695
|
margin: 0;
|
|
2717
2696
|
padding: 0;
|
|
2718
2697
|
box-sizing: border-box;
|
|
2719
|
-
font-family: "${this.giConfig.font}", "
|
|
2698
|
+
font-family: "${this.giConfig.font}", "Microsoft YaHei", "Source Han Sans", "Noto Sans CJK", sans-serif;
|
|
2720
2699
|
}
|
|
2721
2700
|
|
|
2722
2701
|
html {
|
|
@@ -3075,17 +3054,11 @@ var GenerateImg = class GenerateImg extends koishi.Service {
|
|
|
3075
3054
|
}
|
|
3076
3055
|
`;
|
|
3077
3056
|
else style = `
|
|
3078
|
-
@font-face {
|
|
3079
|
-
font-family: "NotoColorEmoji";
|
|
3080
|
-
src: url('file://${this.fontPath}') format('truetype');
|
|
3081
|
-
font-display: swap;
|
|
3082
|
-
}
|
|
3083
|
-
|
|
3084
3057
|
* {
|
|
3085
3058
|
margin: 0;
|
|
3086
3059
|
padding: 0;
|
|
3087
3060
|
box-sizing: border-box;
|
|
3088
|
-
font-family: "${this.giConfig.font}", "
|
|
3061
|
+
font-family: "${this.giConfig.font}", "Microsoft YaHei", "Source Han Sans", "Noto Sans CJK", sans-serif;
|
|
3089
3062
|
}
|
|
3090
3063
|
|
|
3091
3064
|
html {
|
|
@@ -3540,17 +3513,11 @@ var GenerateImg = class GenerateImg extends koishi.Service {
|
|
|
3540
3513
|
<meta charset="UTF-8">
|
|
3541
3514
|
<title>高清词云展示</title>
|
|
3542
3515
|
<style>
|
|
3543
|
-
@font-face {
|
|
3544
|
-
font-family: "NotoColorEmoji";
|
|
3545
|
-
src: url('file://${this.fontPath}') format('truetype');
|
|
3546
|
-
font-display: swap;
|
|
3547
|
-
}
|
|
3548
|
-
|
|
3549
3516
|
* {
|
|
3550
3517
|
margin: 0;
|
|
3551
3518
|
padding: 0;
|
|
3552
3519
|
box-sizing: border-box;
|
|
3553
|
-
font-family: "${this.giConfig.font}", "
|
|
3520
|
+
font-family: "${this.giConfig.font}", "Microsoft YaHei", "Source Han Sans", "Noto Sans CJK", sans-serif;
|
|
3554
3521
|
}
|
|
3555
3522
|
|
|
3556
3523
|
html {
|
|
@@ -4393,7 +4360,7 @@ var BiliAPI = class extends koishi.Service {
|
|
|
4393
4360
|
let csrf;
|
|
4394
4361
|
let expires;
|
|
4395
4362
|
let domain;
|
|
4396
|
-
let path
|
|
4363
|
+
let path;
|
|
4397
4364
|
let secure;
|
|
4398
4365
|
let httpOnly;
|
|
4399
4366
|
let sameSite;
|
|
@@ -4402,7 +4369,7 @@ var BiliAPI = class extends koishi.Service {
|
|
|
4402
4369
|
csrf = cookieData.value;
|
|
4403
4370
|
expires = cookieData.expires ? luxon.DateTime.fromISO(cookieData.expires).toJSDate() : "Infinity";
|
|
4404
4371
|
domain = cookieData.domain;
|
|
4405
|
-
path
|
|
4372
|
+
path = cookieData.path;
|
|
4406
4373
|
secure = cookieData.secure;
|
|
4407
4374
|
httpOnly = cookieData.httpOnly;
|
|
4408
4375
|
sameSite = cookieData.sameSite;
|
|
@@ -4429,7 +4396,7 @@ var BiliAPI = class extends koishi.Service {
|
|
|
4429
4396
|
value: "some_non_empty_value",
|
|
4430
4397
|
expires,
|
|
4431
4398
|
domain,
|
|
4432
|
-
path
|
|
4399
|
+
path,
|
|
4433
4400
|
secure,
|
|
4434
4401
|
httpOnly,
|
|
4435
4402
|
sameSite
|
package/lib/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import "node:module";
|
|
|
2
2
|
import { Schema, Service, Universal, h } from "koishi";
|
|
3
3
|
import "@koishijs/plugin-notifier";
|
|
4
4
|
import { DataService } from "@koishijs/plugin-console";
|
|
5
|
-
import
|
|
5
|
+
import { resolve } from "node:path";
|
|
6
6
|
import "@koishijs/plugin-help";
|
|
7
7
|
import { GuardLevel, startListen } from "blive-message-listener";
|
|
8
8
|
import QRCode from "qrcode";
|
|
@@ -899,7 +899,7 @@ var ComRegister = class ComRegister {
|
|
|
899
899
|
if (this.loginTimer) this.loginTimer();
|
|
900
900
|
if (this.dynamicJob) this.dynamicJob.stop();
|
|
901
901
|
if (this.liveAPIJob) this.liveAPIJob.stop();
|
|
902
|
-
for (const [roomId, timer] of this.liveWSManager) {
|
|
902
|
+
if (this.liveWSManager || this.liveWSManager.size > 0) for (const [roomId, timer] of this.liveWSManager) {
|
|
903
903
|
this.ctx["bilibili-notify-live"].closeListener(roomId);
|
|
904
904
|
if (timer) timer();
|
|
905
905
|
}
|
|
@@ -2028,11 +2028,9 @@ const ADDITIONAL_TYPE_RESERVE = "ADDITIONAL_TYPE_RESERVE";
|
|
|
2028
2028
|
var GenerateImg = class GenerateImg extends Service {
|
|
2029
2029
|
static inject = ["puppeteer"];
|
|
2030
2030
|
giConfig;
|
|
2031
|
-
fontPath;
|
|
2032
2031
|
constructor(ctx, config) {
|
|
2033
2032
|
super(ctx, "bilibili-notify-generate-img");
|
|
2034
2033
|
this.giConfig = config;
|
|
2035
|
-
this.fontPath = path.resolve(__dirname, "font/HYZhengYuan-75W.ttf");
|
|
2036
2034
|
}
|
|
2037
2035
|
numberToStr(num) {
|
|
2038
2036
|
return num > 1e4 ? `${(num / 1e4).toFixed(1)}万` : num.toString();
|
|
@@ -2065,17 +2063,11 @@ var GenerateImg = class GenerateImg extends Service {
|
|
|
2065
2063
|
<head>
|
|
2066
2064
|
<title>直播通知</title>
|
|
2067
2065
|
<style>
|
|
2068
|
-
@font-face {
|
|
2069
|
-
font-family: "NotoColorEmoji";
|
|
2070
|
-
src: url('file://${this.fontPath}') format('truetype');
|
|
2071
|
-
font-display: swap;
|
|
2072
|
-
}
|
|
2073
|
-
|
|
2074
2066
|
* {
|
|
2075
2067
|
margin: 0;
|
|
2076
2068
|
padding: 0;
|
|
2077
2069
|
box-sizing: border-box;
|
|
2078
|
-
font-family: "${this.giConfig.font}", "
|
|
2070
|
+
font-family: "${this.giConfig.font}", "Microsoft YaHei", "Source Han Sans", "Noto Sans CJK", sans-serif;
|
|
2079
2071
|
}
|
|
2080
2072
|
|
|
2081
2073
|
html {
|
|
@@ -2234,17 +2226,11 @@ var GenerateImg = class GenerateImg extends Service {
|
|
|
2234
2226
|
<head>
|
|
2235
2227
|
<title>上舰通知</title>
|
|
2236
2228
|
<style>
|
|
2237
|
-
@font-face {
|
|
2238
|
-
font-family: "NotoColorEmoji";
|
|
2239
|
-
src: url('file://${this.fontPath}') format('truetype');
|
|
2240
|
-
font-display: swap;
|
|
2241
|
-
}
|
|
2242
|
-
|
|
2243
2229
|
* {
|
|
2244
2230
|
margin: 0;
|
|
2245
2231
|
padding: 0;
|
|
2246
2232
|
box-sizing: border-box;
|
|
2247
|
-
font-family: "${this.giConfig.font}", "
|
|
2233
|
+
font-family: "${this.giConfig.font}", "Microsoft YaHei", "Source Han Sans", "Noto Sans CJK", sans-serif;
|
|
2248
2234
|
}
|
|
2249
2235
|
|
|
2250
2236
|
html {
|
|
@@ -2676,17 +2662,11 @@ var GenerateImg = class GenerateImg extends Service {
|
|
|
2676
2662
|
const [main] = await getDynamicMajor(data, false);
|
|
2677
2663
|
let style;
|
|
2678
2664
|
if (this.giConfig.enableLargeFont) style = `
|
|
2679
|
-
@font-face {
|
|
2680
|
-
font-family: "NotoColorEmoji";
|
|
2681
|
-
src: url('file://${this.fontPath}') format('truetype');
|
|
2682
|
-
font-display: swap;
|
|
2683
|
-
}
|
|
2684
|
-
|
|
2685
2665
|
* {
|
|
2686
2666
|
margin: 0;
|
|
2687
2667
|
padding: 0;
|
|
2688
2668
|
box-sizing: border-box;
|
|
2689
|
-
font-family: "${this.giConfig.font}", "
|
|
2669
|
+
font-family: "${this.giConfig.font}", "Microsoft YaHei", "Source Han Sans", "Noto Sans CJK", sans-serif;
|
|
2690
2670
|
}
|
|
2691
2671
|
|
|
2692
2672
|
html {
|
|
@@ -3045,17 +3025,11 @@ var GenerateImg = class GenerateImg extends Service {
|
|
|
3045
3025
|
}
|
|
3046
3026
|
`;
|
|
3047
3027
|
else style = `
|
|
3048
|
-
@font-face {
|
|
3049
|
-
font-family: "NotoColorEmoji";
|
|
3050
|
-
src: url('file://${this.fontPath}') format('truetype');
|
|
3051
|
-
font-display: swap;
|
|
3052
|
-
}
|
|
3053
|
-
|
|
3054
3028
|
* {
|
|
3055
3029
|
margin: 0;
|
|
3056
3030
|
padding: 0;
|
|
3057
3031
|
box-sizing: border-box;
|
|
3058
|
-
font-family: "${this.giConfig.font}", "
|
|
3032
|
+
font-family: "${this.giConfig.font}", "Microsoft YaHei", "Source Han Sans", "Noto Sans CJK", sans-serif;
|
|
3059
3033
|
}
|
|
3060
3034
|
|
|
3061
3035
|
html {
|
|
@@ -3510,17 +3484,11 @@ var GenerateImg = class GenerateImg extends Service {
|
|
|
3510
3484
|
<meta charset="UTF-8">
|
|
3511
3485
|
<title>高清词云展示</title>
|
|
3512
3486
|
<style>
|
|
3513
|
-
@font-face {
|
|
3514
|
-
font-family: "NotoColorEmoji";
|
|
3515
|
-
src: url('file://${this.fontPath}') format('truetype');
|
|
3516
|
-
font-display: swap;
|
|
3517
|
-
}
|
|
3518
|
-
|
|
3519
3487
|
* {
|
|
3520
3488
|
margin: 0;
|
|
3521
3489
|
padding: 0;
|
|
3522
3490
|
box-sizing: border-box;
|
|
3523
|
-
font-family: "${this.giConfig.font}", "
|
|
3491
|
+
font-family: "${this.giConfig.font}", "Microsoft YaHei", "Source Han Sans", "Noto Sans CJK", sans-serif;
|
|
3524
3492
|
}
|
|
3525
3493
|
|
|
3526
3494
|
html {
|
|
@@ -4363,7 +4331,7 @@ var BiliAPI = class extends Service {
|
|
|
4363
4331
|
let csrf;
|
|
4364
4332
|
let expires;
|
|
4365
4333
|
let domain;
|
|
4366
|
-
let path
|
|
4334
|
+
let path;
|
|
4367
4335
|
let secure;
|
|
4368
4336
|
let httpOnly;
|
|
4369
4337
|
let sameSite;
|
|
@@ -4372,7 +4340,7 @@ var BiliAPI = class extends Service {
|
|
|
4372
4340
|
csrf = cookieData.value;
|
|
4373
4341
|
expires = cookieData.expires ? DateTime.fromISO(cookieData.expires).toJSDate() : "Infinity";
|
|
4374
4342
|
domain = cookieData.domain;
|
|
4375
|
-
path
|
|
4343
|
+
path = cookieData.path;
|
|
4376
4344
|
secure = cookieData.secure;
|
|
4377
4345
|
httpOnly = cookieData.httpOnly;
|
|
4378
4346
|
sameSite = cookieData.sameSite;
|
|
@@ -4399,7 +4367,7 @@ var BiliAPI = class extends Service {
|
|
|
4399
4367
|
value: "some_non_empty_value",
|
|
4400
4368
|
expires,
|
|
4401
4369
|
domain,
|
|
4402
|
-
path
|
|
4370
|
+
path,
|
|
4403
4371
|
secure,
|
|
4404
4372
|
httpOnly,
|
|
4405
4373
|
sameSite
|
package/package.json
CHANGED
|
Binary file
|