@sjtdev/koishi-plugin-dota2tracker 2.2.2 → 2.2.3

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/changelog.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # 更新日志
2
2
 
3
+ ### [2.2.3](https://github.com/sjtdev/koishi-plugin-dota2tracker/compare/v2.2.2...v2.2.3) (2025-11-20)
4
+
5
+ ### 🎨 样式
6
+
7
+ * **console:** 为`OpenDotaAPI访问次数`添加“今日”使其描述更准确。 ([a77ced6](https://github.com/sjtdev/koishi-plugin-dota2tracker/commit/a77ced6619ea07612e2afbf762f0a4fa1e7a0e9a))
8
+
9
+ ### 🐛 Bug 修复
10
+
11
+ * **opendota:** 修复`cache`调用配置项失败导致`opendota`访问缓存失败的问题。 ([30fdb90](https://github.com/sjtdev/koishi-plugin-dota2tracker/commit/30fdb90a69d231590d665235f92c7f8287995278))
12
+
3
13
  ### [2.2.2](https://github.com/sjtdev/koishi-plugin-dota2tracker/compare/v2.2.1...v2.2.2) (2025-11-19)
4
14
 
5
15
  ### ✨ 新增功能
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{store as u,icons as _}from"@koishijs/client";import{resolveComponent as a,createBlock as m,openBlock as p,withCtx as n,createVNode as l,createTextVNode as s,toDisplayString as k,unref as f,createElementVNode as i,createElementBlock as h,createStaticVNode as g}from"vue";const w={__name:"page",setup(t){return(e,o)=>{const r=a("k-card"),c=a("k-comment"),d=a("k-layout");return p(),m(d,null,{default:n(()=>[l(r,null,{default:n(()=>[s("OpenDotaAPI 已访问 "+k(f(u).apiCount.opendota)+" 次。",1)]),_:1}),l(r,null,{default:n(()=>[l(c,{type:"warning"},{default:n(()=>[...o[0]||(o[0]=[i("p",null,[s("该页面正在开发中,关于这个页面有任何想法或建议欢迎投稿至 "),i("a",{target:"_blank",href:"https://github.com/sjtdev/koishi-plugin-dota2tracker/issues"},"项目issues"),s("。")],-1)])]),_:1})]),_:1})]),_:1})}}},x=(t,e)=>{const o=t.__vccOpts||t;for(const[r,c]of e)o[r]=c;return o},C={},v={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 600",fill:"currentColor"};function y(t,e){return p(),h("svg",v,[...e[0]||(e[0]=[g('<g><rect height="544" width="540" y="28.5" x="32" stroke="currentColor" fill="none" stroke-width="35" rx="50" ry="58"></rect><g transform="translate(300,300) scale(0.75) translate(-300,-300)" stroke-linejoin="round" stroke-linecap="round"><path d="m95,145.5l54,-30.5l361,306l-36,86l-113,-26l-266,-335.5z" stroke="currentColor" fill="none" stroke-width="35"></path><path transform="rotate(3.87406 449.593 151.279)" d="m458.26078,90.18786c0,0 61.75777,47.47474 61.75777,46.77658c0,0.69816 -8.66776,76.09922 -8.66776,75.40106c0,0.69816 -132.18329,-101.23291 -132.18329,-101.93106c0,0.69816 79.09328,-20.24658 79.09328,-20.24658z" stroke="currentColor" fill="none" stroke-width="35"></path><path d="m84,466.55926c0,0 16.71429,-92.78604 16.71429,-93.55926c0,0.77322 127.28571,110.57003 127.28571,109.79682c0,0.77322 -96.42857,23.96973 -96.42857,23.19651c0,0.77322 -47.57143,-39.43407 -47.57143,-39.43407z" stroke="currentColor" fill="none" stroke-width="35"></path></g></g>',1)])])}const B=x(C,[["render",y]]),V=t=>{_.register("dota2",B),t.page({name:"DOTA2Tracker(实验性)",path:"/dota2tracker",component:w,fields:["apiCount"],icon:"dota2"})};export{V as default};
1
+ import{store as u,icons as _}from"@koishijs/client";import{resolveComponent as a,createBlock as m,openBlock as p,withCtx as n,createVNode as l,createTextVNode as s,toDisplayString as k,unref as f,createElementVNode as i,createElementBlock as h,createStaticVNode as g}from"vue";const w={__name:"page",setup(t){return(e,o)=>{const r=a("k-card"),c=a("k-comment"),d=a("k-layout");return p(),m(d,null,{default:n(()=>[l(r,null,{default:n(()=>[s("OpenDotaAPI 今日已访问 "+k(f(u).apiCount.opendota)+" 次。",1)]),_:1}),l(r,null,{default:n(()=>[l(c,{type:"warning"},{default:n(()=>[...o[0]||(o[0]=[i("p",null,[s("该页面正在开发中,关于这个页面有任何想法或建议欢迎投稿至 "),i("a",{target:"_blank",href:"https://github.com/sjtdev/koishi-plugin-dota2tracker/issues"},"项目issues"),s("。")],-1)])]),_:1})]),_:1})]),_:1})}}},x=(t,e)=>{const o=t.__vccOpts||t;for(const[r,c]of e)o[r]=c;return o},C={},v={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 600",fill:"currentColor"};function y(t,e){return p(),h("svg",v,[...e[0]||(e[0]=[g('<g><rect height="544" width="540" y="28.5" x="32" stroke="currentColor" fill="none" stroke-width="35" rx="50" ry="58"></rect><g transform="translate(300,300) scale(0.75) translate(-300,-300)" stroke-linejoin="round" stroke-linecap="round"><path d="m95,145.5l54,-30.5l361,306l-36,86l-113,-26l-266,-335.5z" stroke="currentColor" fill="none" stroke-width="35"></path><path transform="rotate(3.87406 449.593 151.279)" d="m458.26078,90.18786c0,0 61.75777,47.47474 61.75777,46.77658c0,0.69816 -8.66776,76.09922 -8.66776,75.40106c0,0.69816 -132.18329,-101.23291 -132.18329,-101.93106c0,0.69816 79.09328,-20.24658 79.09328,-20.24658z" stroke="currentColor" fill="none" stroke-width="35"></path><path d="m84,466.55926c0,0 16.71429,-92.78604 16.71429,-93.55926c0,0.77322 127.28571,110.57003 127.28571,109.79682c0,0.77322 -96.42857,23.96973 -96.42857,23.19651c0,0.77322 -47.57143,-39.43407 -47.57143,-39.43407z" stroke="currentColor" fill="none" stroke-width="35"></path></g></g>',1)])])}const B=x(C,[["render",y]]),V=t=>{_.register("dota2",B),t.page({name:"DOTA2Tracker(实验性)",path:"/dota2tracker",component:w,fields:["apiCount"],icon:"dota2"})};export{V as default};
package/lib/index.js CHANGED
@@ -2221,6 +2221,7 @@ var CacheService = class extends import_koishi6.Service {
2221
2221
  }
2222
2222
  constructor(ctx) {
2223
2223
  super(ctx, "dota2tracker.cache", true);
2224
+ this.config = ctx.config;
2224
2225
  }
2225
2226
  get msUntilUTCEndOfDay() {
2226
2227
  const now = import_luxon4.DateTime.utc();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sjtdev/koishi-plugin-dota2tracker",
3
3
  "description": "koishi插件-追踪群友的DOTA2对局",
4
- "version": "2.2.2",
4
+ "version": "2.2.3",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [