filecat 6.41.0 → 6.41.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/build/dist/{1472.1b087062f5c994ef9cb3.js → 1472.02f796fcc289487fd563.js} +1 -1
- package/build/dist/6247.cbbbe80520d738798cca.js +1 -0
- package/build/dist/index.html +1 -1
- package/build/dist/{main.0c5d57e6bf3be4bfa715.js → main.c54173da23809864bc45.js} +2 -2
- package/build/main.js +1 -1
- package/package.json +1 -1
- package/build/dist/6247.8116d7df0a5040d144c2.js +0 -1
- /package/build/dist/{main.0c5d57e6bf3be4bfa715.js.LICENSE.txt → main.c54173da23809864bc45.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[6247],{77481(e,n,t){t.d(n,{S:()=>o,X:()=>l});var i=t(96540),s=t(74848);function l(e){const[n,t]=i.useState([]);return(0,i.useEffect)(()=>{e.children?t(Array.isArray(e.children)?e.children:[e.children]):t(e.rows)},[e.rows,e.children]),(0,s.jsxs)("table",{children:[(0,s.jsx)("thead",{children:(0,s.jsx)("tr",{children:e.headers?.map((e,n)=>(0,s.jsx)("th",{children:e},n))})}),(0,s.jsx)("tbody",{children:n.map((n,t)=>(0,s.jsx)("tr",{onContextMenu:()=>{e.handleContextMenu&&e.handleContextMenu(n)},children:n.map((t,i)=>(0,s.jsx)("td",{style:{width:e.width??"auto"},className:i===n.length-1?"small":"",children:t},i))},t))})]})}function o(e){return(0,s.jsx)("div",{style:{display:e.isFlex?"flex":"block"},children:e.columns.map((e,n)=>(0,s.jsx)("div",{children:e},n))})}},66247(e,n,t){t.r(n),t.d(n,{default:()=>k});var i=t(96540),s=t(75725),l=t(70447),o=t(85997),r=t(77481),c=t(61443),a=t(22022),d=t(14284),h=t(53459),u=t(62042),x=t(87361),j=t(40505),_=t(57952),p=t(61973),f=t(34843),m=t(82893),w=t(21469),v=t(21499),C=t(74848);function k(){const{t:e,i18n:n}=(0,a.Bd)(),t=(0,p.Zp)(),k=[e("编号"),e("路径"),e("过期小时"),e("token"),e("备注"),e("剩余时间(h)"),e("下载次数")],[b,A]=(0,i.useState)([]),[S,y]=(0,f.fp)(m.AG.prompt_card),g=async()=>{const e=await d.XO.get("get_share_file_list");if(e.code===h.m.Success){const n=e.data??[],t=Date.now();for(const e of n)try{if(null!=e.left_hour&&e.left_hour>0){const n=t-e.time_stamp,i=36e5*e.left_hour-n;e.show_left_hour=parseFloat((i/36e5).toFixed(2))}else e.show_left_hour=e.left_hour}catch(e){}A(n)}};(0,i.useEffect)(()=>{g()},[]);return(0,C.jsxs)("div",{className:"common-box ",children:[(0,C.jsx)(_.A,{children:(0,C.jsx)(o.rA,{icon:"arrow_back",title:e("上一页"),onClick:()=>{t(-1)}})}),(0,C.jsx)(s.J,{widthPer:100,children:(0,C.jsx)(l.uF,{self_title:(0,C.jsxs)("span",{className:" div-row ",children:[(0,C.jsx)("h2",{children:e("文件分享列表")}),(0,C.jsx)(o.rA,{icon:"info",title:e("提示"),onClick:()=>{let e=(0,C.jsx)("div",{children:"小时设置为-1或者不设置就没有过期时间"});y({open:!0,title:"信息",context_div:(0,C.jsx)("div",{children:e})})}})]}),titleCom:(0,C.jsxs)("div",{children:[(0,C.jsx)(o.rA,{icon:"add",title:e("添加"),onClick:()=>{A([...b,{note:"",path:""}])}}),(0,C.jsx)(o.rA,{icon:"save",title:e("保存"),onClick:async()=>{(await d.XO.post("set_share_file_list",b)).code===h.m.Success&&((0,u.SK)("保存成功"),g())}})]}),children:(0,C.jsx)(r.X,{headers:k,rows:b.map((n,t)=>{const i=[(0,C.jsx)("div",{children:t}),(0,C.jsx)(c.Sm,{value:n.path,handleInputChange:e=>{n.path=e},no_border:!0}),(0,C.jsx)(c.Sm,{value:n.left_hour,handleInputChange:e=>{n.left_hour=parseFloat(e),n.time_stamp=Date.now()},no_border:!0}),(0,C.jsx)(c.Sm,{value:n.token,handleInputChange:e=>{n.token=e},no_border:!0}),(0,C.jsx)(c.Sm,{value:n.note,handleInputChange:e=>{n.note=e},no_border:!0}),(0,C.jsx)("p",{children:n.show_left_hour}),(0,C.jsx)("p",{children:n.download_num}),(0,C.jsxs)("div",{children:[(0,C.jsx)(o.rA,{icon:"delete",title:e("删除"),onClick:()=>(e=>{b.splice(e,1),A([...b])})(t)}),n.id&&(0,C.jsx)(o.rA,{icon:"content_copy",title:e("复制地址"),onClick:()=>{const e=(0,v.bi)(`${window.location.origin}${w.m.base_url}`,`${x.o.share}/${n.id}`);(0,j.lW)(e),(0,u.SK)(e)}}),n.id&&(0,C.jsx)(o.rA,{icon:"open_in_new",title:e("打开新页面"),onClick:()=>{const e=(0,v.bi)(`${window.location.origin}${w.m.base_url}`,`${x.o.share}/${n.id}`);window.open(e)}})]})];return i}),width:"10rem"})})})]})}}}]);
|
|
File without changes
|