bilitoolkit-plugin-image-downloader 0.0.1 → 0.0.2

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.html CHANGED
@@ -7,7 +7,7 @@
7
7
  <!-- 解决跨域请求问题-->
8
8
  <meta name="referrer" content="never" />
9
9
  <title>图片下载</title>
10
- <script type="module" crossorigin src="./assets/index-Vo9mHza8.js"></script>
10
+ <script type="module" crossorigin src="./assets/index-pBgDTaGA.js"></script>
11
11
  <link rel="stylesheet" crossorigin href="./assets/index-5uHFbSEk.css">
12
12
  </head>
13
13
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bilitoolkit-plugin-image-downloader",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "index.html",
@@ -36,8 +36,8 @@
36
36
  "vue-router": "^4.5.1",
37
37
  "@ybgnb/bili-api": "^0.0.5",
38
38
  "bilitoolkit-runtime": "^0.0.2",
39
- "bilitoolkit-types": "^0.0.2",
40
- "bilitoolkit-ui": "^0.0.6"
39
+ "bilitoolkit-ui": "^0.0.6",
40
+ "bilitoolkit-types": "^0.0.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@tsconfig/node22": "^22.0.2",
@@ -1 +0,0 @@
1
- .query-section[data-v-59a39abb]{width:100%;display:flex;flex-direction:column;gap:10px}.query-section[data-v-59a39abb] .el-button+.el-button{margin-left:0!important}.img-container[data-v-59a39abb]{display:flex;flex-wrap:wrap;overflow-y:auto;gap:10px}.img-container>img[data-v-59a39abb]{max-width:100%}
@@ -1 +0,0 @@
1
- import{v as V,c as b,f as w,E as x}from"./download-UkVLILCM.js";import{d as B,j as I,w as L,u as s,c as d,a as n,b as v,e as p,f as u,E as N,g as D,h as _,k as F,F as h,y as q,i as M,r as f,l as O,s as T,o as l,_ as U}from"./index-Vo9mHza8.js";const $={class:"query-section"},z={class:"img-container"},A=["src"],G=B({__name:"CommentEmoji",setup(H){const{loading:g,loadingData:m}=M(),r=f(""),a=f(),o=O(()=>{if(a.value){const i=a.value.content.emote;if(i)return Object.values(i)}return[]}),{assertLoggedIn:y}=I(),C=m(async()=>{y(),a.value=await b.comment.resolveCommentItem(r.value)??void 0,(!o.value||o.value.length===0)&&T("该评论暂无表情")}),k=m(async()=>{await w(o.value,a.value?.oid_str)});return(i,e)=>{const E=x,c=N,j=V;return L((l(),d(s(q),{class:"page"},{default:n(()=>[v("div",$,[p(E,{modelValue:r.value,"onUpdate:modelValue":e[0]||(e[0]=t=>r.value=t),modelModifiers:{trim:!0},placeholder:"请输入评论链接 / b23分享链接 (视频/动态/专栏底下的评论)"},{prepend:n(()=>[...e[2]||(e[2]=[u(" 评论链接 ",-1)])]),_:1},8,["modelValue"]),p(c,{type:"primary",onClick:s(C)},{default:n(()=>[...e[3]||(e[3]=[u("获取表情包",-1)])]),_:1},8,["onClick"]),o.value.length>0?(l(),d(c,{key:0,type:"primary",onClick:e[1]||(e[1]=t=>s(k)())},{default:n(()=>[...e[4]||(e[4]=[u("保存表情包",-1)])]),_:1})):D("",!0)]),v("div",z,[(l(!0),_(h,null,F(o.value,t=>(l(),_("img",{src:t.gif_url??t.url,alt:"cover",key:t.url},null,8,A))),128))])]),_:1})),[[j,s(g)]])}}}),P=U(G,[["__scopeId","data-v-59a39abb"]]);export{P as default};
@@ -1 +0,0 @@
1
- .query-section[data-v-5fd1d41f]{width:100%;display:flex;flex-direction:column;gap:10px}.query-section[data-v-5fd1d41f] .el-button+.el-button{margin-left:0!important}.img-container[data-v-5fd1d41f]{display:flex;flex-wrap:wrap;overflow-y:auto;gap:10px}.img-container>img[data-v-5fd1d41f]{max-width:100%}
@@ -1 +0,0 @@
1
- import{v as w,c as C,e as V,E as x}from"./download-UkVLILCM.js";import{d as B,j as I,w as N,u as n,c as m,a as i,b as _,e as p,f as d,E as L,g as T,h as v,k as b,F,y as O,i as h,r as f,l as q,q as M,s as H,o as l,_ as J}from"./index-Vo9mHza8.js";const P={class:"query-section"},R={class:"img-container"},U=["src"],X=B({__name:"DynamicEmoji",setup(Y){const{loading:y,loadingData:c}=h(),r=f(""),s=f(),t=q(()=>{if(s.value){const a=s.value.modules.module_dynamic.desc?.rich_text_nodes;return a?a.filter(e=>e.type==="RICH_TEXT_NODE_TYPE_EMOJI"):[]}else return[]}),{assertLoggedIn:g}=I(),E=c(async()=>{g();const a=await M(r.value);s.value=await C.dynamic.getDetail({id:a}),(!t.value||t.value.length===0)&&H("该动态暂无表情")}),k=c(async()=>{await V(t.value,s.value?.id_str)});return(a,e)=>{const D=x,u=L,j=w;return N((l(),m(n(O),{class:"page"},{default:i(()=>[_("div",P,[p(D,{modelValue:r.value,"onUpdate:modelValue":e[0]||(e[0]=o=>r.value=o),modelModifiers:{trim:!0},placeholder:"请输入动态链接 / b23分享链接 / 动态oid"},{prepend:i(()=>[...e[2]||(e[2]=[d(" 动态链接 ",-1)])]),_:1},8,["modelValue"]),p(u,{type:"primary",onClick:n(E)},{default:i(()=>[...e[3]||(e[3]=[d("获取表情包",-1)])]),_:1},8,["onClick"]),t.value.length>0?(l(),m(u,{key:0,type:"primary",onClick:e[1]||(e[1]=o=>n(k)())},{default:i(()=>[...e[4]||(e[4]=[d("保存表情包",-1)])]),_:1})):T("",!0)]),_("div",R,[(l(!0),v(F,null,b(t.value,o=>(l(),v("img",{src:o.emoji.icon_url,alt:"cover",key:o.emoji.icon_url},null,8,U))),128))])]),_:1})),[[j,n(y)]])}}}),A=J(X,[["__scopeId","data-v-5fd1d41f"]]);export{A as default};
@@ -1 +0,0 @@
1
- .query-section[data-v-3ad36e84]{width:100%;display:flex;flex-direction:column;gap:10px}.query-section[data-v-3ad36e84] .el-button+.el-button{margin-left:0!important}.img-container[data-v-3ad36e84]{display:flex;flex-wrap:wrap;overflow-y:auto;gap:10px}.img-container>img[data-v-3ad36e84]{max-width:100px;object-fit:cover;height:auto}