1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9249],{56360:function(e,t,n){"use strict";var a,s=n(2784);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return s.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,className:"close_svg__icon",viewBox:"0 0 1024 1024"},e),a||(a=s.createElement("path",{d:"m557.312 513.248 265.28-263.904c12.544-12.48 12.608-32.704.128-45.248-12.512-12.576-32.704-12.608-45.248-.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-.064-12.512 12.48-12.544 32.736-.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-.128 45.248a31.94 31.94 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704.064-45.248z"})))}},4658:function(e,t,n){"use strict";var a,s=n(2784);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return s.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},e),a||(a=s.createElement("path",{d:"m21 21-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0z"})))}},45157:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/page",function(){return n(72025)}])},72025:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Page}});var a=n(52322),s=n(2784),i=n(53960),r=n(28879),l=n.n(r),o=n(46146),c=n(81064),d=n(27068),u=n(4658),g=n(56360),h=n(25067);function Page(){let[e,t]=(0,s.useState)([]),[n,r]=(0,s.useState)({page:0,pageSize:10,total:0}),[p,m]=(0,s.useState)(new Set),[x,f]=(0,s.useState)("");function loadPages(){let e=".*"+x+".*",a=x?["title","url","description","categories"].map(function(t){return{[t]:{$regex:e}}}):[];i.ZP.lightpage.queryPages({query:{deleted:!1,$or:a.length?a:void 0},pageSize:n.pageSize,page:n.page,sort:{updateAt:-1},projection:{title:1,url:1,key:1,updateAt:1,icon:1,categories:1}}).then(e=>{if(e.success){var a,s,i;t((null===(a=e.data)||void 0===a?void 0:a.list)||[]),r({page:n.page,total:(null===(s=e.data)||void 0===s?void 0:s.total)||0,pageSize:Math.ceil((null===(i=e.data)||void 0===i?void 0:i.total)||0/(n.pageSize||10))})}})}return(0,s.useEffect)(function(){return(0,d.$C)(function(){loadPages()})},[]),(0,s.useEffect)(function(){loadPages()},[n.page,n.pageSize,x]),(0,a.jsx)(h.Z,{children:(0,a.jsx)(o.Z,{requireVersion:"0.24.8",children:(0,a.jsxs)("div",{className:"mx-auto",children:[(0,a.jsxs)("div",{className:"my-4 input-group",children:[(0,a.jsx)("input",{value:x,onChange:e=>{f(e.target.value)},type:"text",placeholder:"æç´¢",className:"input input-bordered input-sm w-full max-w-xs"}),(0,a.jsx)("button",{className:"btn btn-square btn-sm",onClick:()=>{x&&f("")},children:x?(0,a.jsx)(g.Z,{width:20,height:20}):(0,a.jsx)(u.Z,{width:20,height:20})})]}),(0,a.jsx)(c.Z,{list:e,pagination:n,onPaginationChange:function(e,t){r({pageSize:t,page:e,total:n.total})},selectedIds:p,onSelectIds:m,primaryKey:"key",headLabels:["ç½é¡µ","æ ç¾","æ´æ°æ¶é´","æä½"],renderTDS:function(e,t){var n;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("td",{className:"w-10",children:[(0,a.jsxs)("div",{className:"max-w-md overflow-hidden overflow-ellipsis truncate",children:[(0,a.jsx)("img",{className:"inline",width:14,height:14,src:e.icon,alt:""}),e.title]}),(0,a.jsx)("div",{className:"max-w-xl break-words pre-wrap overflow-hidden overflow-ellipsis truncate ",children:(0,a.jsx)("a",{className:"hover:text-blue-400 text-blue-200",target:"_blank",href:e.url,children:e.url||e.key})})]}),(0,a.jsx)("td",{className:"pre-wrap max-w-xs break-words",children:null===(n=e.categories)||void 0===n?void 0:n.map(function(e,t){return(0,a.jsx)("span",{className:"badge badge-ghost badge-sm",children:e},t)})}),(0,a.jsx)("td",{className:"text-sm",children:l()(e.updateAt).format("YYYY-MM-DD HH:mm:ss")}),(0,a.jsx)("td",{children:(0,a.jsx)("button",{disabled:!0,onClick:()=>{!function(e){i.ZP.lightpage.queryPages({query:{key:e},limit:1}).then(function(){loadPages()})}(e.key)}
1,className:"m-2 btn btn-sm btn-success",children:"æ¥ç详æ
"})})]})},footerTD:(0,a.jsx)("div",{className:"mx-2",children:p.size>0&&(0,a.jsxs)("div",{className:"dropdown dropdown-top",children:[(0,a.jsxs)("label",{tabIndex:0,className:"btn m-1 btn-sm",children:[" æ¹éæä½(",p.size,")"]}),(0,a.jsxs)("ul",{tabIndex:0,className:"dropdown-content menu p-2 shadow bg-base-100 rounded-box w-52",children:[(0,a.jsx)("li",{children:(0,a.jsx)("button",{className:"btn",disabled:!0,children:"æ¹éå¤ä»½"})}),(0,a.jsx)("li",{onClick:function(){let e=Array.from(p);i.ZP.lightpage.updatePages(e.map(function(e){return{key:e,deleted:!0,updateAt:Date.now(),expiredAt:Date.now()+2592e6}})).then(function(){loadPages(),m(new Set)})},children:(0,a.jsx)("a",{children:"æ¹éå é¤"})})]})]})})})]})})})}}},function(e){e.O(0,[8903,5789,4424,4235,8898,1541,6150,9097,9297,7068,7360,8044,5707,9774,2888,179],function(){return e(e.s=45157)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.