filecat 5.50.8 → 5.51.0
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/214.24624e9dad7b9e6bb7a3.js +2 -0
- package/build/dist/{377.cb0340f3ae54559720ab.js → 377.4fca28ce7e66369426d5.js} +2 -2
- package/build/dist/603.b8a7591986c543ccd61e.js +2 -0
- package/build/dist/{943.24b700c91c1c267592ac.js → 943.3655884161e45fdaf29e.js} +2 -2
- package/build/dist/index.html +1 -1
- package/build/dist/main.b44d4075413d56febf0e.js +2 -0
- package/build/main.js +1 -1
- package/package.json +1 -1
- package/build/dist/214.d76bdae58c76d429f6ec.js +0 -2
- package/build/dist/603.70cd821596b670128f19.js +0 -2
- package/build/dist/main.dd972c0f3af3913b74e2.js +0 -2
- /package/build/dist/{214.d76bdae58c76d429f6ec.js.LICENSE.txt → 214.24624e9dad7b9e6bb7a3.js.LICENSE.txt} +0 -0
- /package/build/dist/{377.cb0340f3ae54559720ab.js.LICENSE.txt → 377.4fca28ce7e66369426d5.js.LICENSE.txt} +0 -0
- /package/build/dist/{603.70cd821596b670128f19.js.LICENSE.txt → 603.b8a7591986c543ccd61e.js.LICENSE.txt} +0 -0
- /package/build/dist/{943.24b700c91c1c267592ac.js.LICENSE.txt → 943.3655884161e45fdaf29e.js.LICENSE.txt} +0 -0
- /package/build/dist/{main.dd972c0f3af3913b74e2.js.LICENSE.txt → main.b44d4075413d56febf0e.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 214.24624e9dad7b9e6bb7a3.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[214],{4694(t,e,n){function r(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,u=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw u}}}}function i(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){var n=c(t,e);return null===n||n===t.length-1?t[0]:t[n+1]}function c(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return null}function f(t,e){var n=c(t,e);return null===n?null:t[n]}function l(t){if(!t)return{};var e,n,r,i=o(t);try{for(i.s();!(r=i.n()).done;){var u=r.value;(void 0===e||e<u)&&(e=u),(void 0===n||n>u)&&(n=u)}}catch(t){i.e(t)}finally{i.f()}return{max:e,min:n}}function s(t,e){var n=t.indexOf(e),o=r(t);return o.splice(n,1),o}function v(){for(var t="",e=0;e<arguments.length;e++){var n=e<0||arguments.length<=e?void 0:arguments[e];0===e?("/"!==n[0]&&(n="/"+n),"/"!==n[n.length-1]&&(n+="/")):e===arguments.length-1?"/"!==n[n.list-1]&&-1===n.indexOf(".")&&(n+="/"):("/"===n[0]&&(n=n.slice(1,n.length-1)),"/"!==n[n.length-1]&&(n+="/")),t+=n}return t}function d(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=e[0],o=1;o<e.length;o++)"/"!==e[o][e[o].length-1]?r+="/"+e[o]:r+=e[o];return r}function y(t,e){var n,r=[],i=o(e);try{for(i.s();!(n=i.n()).done;){var u=n.value;r.push(t[u])}}catch(t){i.e(t)}finally{i.f()}return r}function m(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||0===t.length)return t;for(var r=0;r<t.length;r++)for(var o=t.length-1;o>r;o--){var i=e?e(t[o]):t[o],u=e?e(t[o-1]):t[o-1],a=t[o];i<u?n&&(t[o]=t[o-1],t[o-1]=a):i>u&&(n||(t[o]=t[o-1],t[o-1]=a))}return t}function p(t,e){if(0===t.length)return null;var n,r,o=(n=0,r=t.length,n===r?-1:Math.floor(Math.random()*(r-n))+n);return e&&o===e?p(t,e):t[o]}function h(t,e){if(e)for(var n=0;n<t.length;n++)if(e(t[n]))return t.splice(n,1)[0]}n.d(e,{Bd:()=>y,HS:()=>d,I:()=>h,IO:()=>v,Lr:()=>p,P1:()=>s,a7:()=>l,di:()=>m,jH:()=>a,kW:()=>f})},9844(t,e,n){function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=null;return function(){for(var r=this,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];clearTimeout(n),n=setTimeout(function(){t.apply(r,i)},e)}}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0;return function(){var r=Date.now();if(r-n>=e){n=r;for(var o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];t.apply(this,i)}}}n.d(e,{nF:()=>o,sg:()=>r})},3496(t,e,n){n.d(e,{s:()=>r});var r=function(t){return t.setting_sys_option_status_save="sys_option/status/save",t.setting_customer_router="customer_router",t.setting_customer_router_save="customer_router/save",t.setting_customer_workflow_router="customer_router/workflow",t.setting_customer_workflow_router_save="customer_router/workflow/save",t.user_save_user_file_list_show_type="save_user_file_list_show_type",t}({})},9214(t,e,n){n.d(e,{LL:()=>T,OJ:()=>G,Ok:()=>x,SQ:()=>z,UK:()=>D,V$:()=>F,VD:()=>M,Vs:()=>H,Ys:()=>W,ei:()=>I,ib:()=>L,yC:()=>P});var r=n(4694),o=n(4289),i=n(3430),u=n(7444),a=n(6417),c=n(5726),f=n(6540),l=n(2042),s=n(9844),v=n(505),d=n(4284),y=n(3496),m=n(7523);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach(function(e){g(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function g(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==p(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof a?r:a,f=Object.create(c.prototype);return _(f,"_invoke",function(n,r,o){var i,a,c,f=0,l=o||[],s=!1,v={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,a=0,c=t,v.n=n,u}};function d(n,r){for(a=n,c=r,e=0;!s&&f&&!o&&e<l.length;e++){var o,i=l[e],d=v.p,y=i[2];n>3?(o=y===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(a=0,v.v=r,v.n=i[1]):d<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,v.n=y,a=0))}if(o||n>1)return u;throw s=!0,r}return function(o,l,y){if(f>1)throw TypeError("Generator is already running");for(s&&1===l&&d(l,y),a=l,c=y;(e=a<2?t:c)||!s;){i||(a?a<3?(a>1&&(v.n=-1),d(a,c)):v.n=c:v.v=c);try{if(f=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(s=v.n<0)?c:n.call(r,v))!==u)break}catch(e){i=t,a=1,c=e}finally{f=1}}return{value:e,done:s}}}(n,o,i),!0),f}var u={};function a(){}function c(){}function f(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(_(e={},r,function(){return this}),e),s=f.prototype=a.prototype=Object.create(l);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,_(t,o,"GeneratorFunction")),t.prototype=Object.create(s),t}return c.prototype=f,_(s,"constructor",f),_(f,"constructor",c),c.displayName="GeneratorFunction",_(f,o,"GeneratorFunction"),_(s),_(s,o,"Generator"),_(s,r,function(){return this}),_(s,"toString",function(){return"[object Generator]"}),(w=function(){return{w:i,m:v}})()}function _(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}_=function(t,e,n,r){function i(e,n){_(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},_(t,e,n,r)}function E(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function S(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function u(t){E(i,r,o,u,a,"next",t)}function a(t){E(i,r,o,u,a,"throw",t)}u(void 0)})}}function A(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,f=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(f)throw o}}return a}}(t,e)||j(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||j(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){if(t){if("string"==typeof t)return k(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(t,e):void 0}}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function L(t,e){var n=[];return t.folders&&n.push.apply(n,O(t.folders)),t.files&&n.push.apply(n,O(t.files)),(0,r.Bd)(n,e)}function x(t){return"".concat((0,o.GG)("file",(0,o.vX)())).concat(t)}function P(t,e){switch(e){case i.t8.size_max_min:case i.t8.size_min_max:var n=e===i.t8.size_min_max;(0,r.di)(t.files,function(t){return t.size},n),(0,r.di)(t.folders,function(t){return t.size},n);break;case i.t8.time_minx_max:case i.t8.time_max_min:var o=e===i.t8.time_minx_max;(0,r.di)(t.files,function(t){return t.mtime},o),(0,r.di)(t.folders,function(t){return t.mtime},o);break;case i.t8.name:(0,r.di)(t.folders,function(t){return t.name})}}function T(t,e){for(var n={},r={},o=0;o<t.length;o++){var i=t[o],u={r:i.note,items:[],v:{tag:"quick_cmd",cmd:i.cmd}};if(null==i.father_index)e.push(u),null!=i.index&&(n[i.index]=u,null!=r[i.index]&&u.items.push(r[i.index]));else{r[i.father_index]=u;var a=n[i.father_index];a&&a.items.push(u)}}}function I(t,e){var n=A((0,u.L4)(a.A.showPrompt),2),r=(n[0],n[1]),o=A((0,u.L4)(a.A.uploadFiles),2),i=(o[0],o[1]),l=function(){var t=S(w().m(function t(n){var o,u,a,f;return w().w(function(t){for(;;)switch(t.n){case 0:if(n.preventDefault(),n.stopPropagation(),o=n.dataTransfer,u=n.target,!(o.files.length<=0)){t.n=1;break}return t.a(2);case 1:for(a=0;a<5;a++)null===u||u.classList.contains("item")||(u=u.parentElement);return t.n=2,(0,c.T)(o);case 2:f=t.v,i(f),r({show:!0,type:e,overlay:!1,data:{}});case 3:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),s=function(t){t.preventDefault()};return t&&(0,f.useEffect)(function(){var e=t.current.ownerDocument;return e.addEventListener("dragover",s),e.addEventListener("drop",l),function(){e.removeEventListener("dragover",s),e.removeEventListener("drop",l)}},[]),{drop:l,dragover:s}}function D(t,e,n){var r=A((0,u.L4)(a.A.selectedFileList),2),o=(r[0],r[1]),i=A((0,u.L4)(a.A.enterKey),2),c=(i[0],i[1]),l=A((0,f.useState)(!1),2),s=l[0],v=l[1];(0,f.useEffect)(function(){var t=n.current;if(t){var e=function(){return v(!0)},r=function(){return v(!1)};return t.addEventListener("mouseenter",e),t.addEventListener("mouseleave",r),function(){t.removeEventListener("mouseenter",e),t.removeEventListener("mouseleave",r)}}},[]),(0,f.useEffect)(function(){var n=function(n){if(s)if(n.ctrlKey)if("a"===n.key||"A"===n.key){for(var r,i,u=null!==(r=null==t?void 0:t.length)&&void 0!==r?r:0,a=null!==(i=null==e?void 0:e.length)&&void 0!==i?i:0,f=[],l=0;l<u+a;l++)f.push(l);o(f)}else c("ctrl");else"Escape"===n.key?o([]):"Shift"===n.key&&c("shift")},r=function(t){t.ctrlKey||c("")};return window.addEventListener("keydown",n),window.addEventListener("keyup",r),function(){window.removeEventListener("keydown",n),window.removeEventListener("keyup",r)}},[t,e,s])}function z(t,e,n){(0,f.useEffect)(function(){var r=0,o=function(){var o=t.current;o&&(r<o.scrollTop&&o.scrollTop+o.clientHeight+500>=o.scrollHeight?e():r>o.scrollTop&&o.scrollTop-300<=0&&n(),r=o.scrollTop)};t.current.addEventListener("scroll",(0,s.sg)(o));return function(){var e;null==t||null===(e=t.current)||void 0===e||e.removeEventListener("scroll",o)}},[])}function G(){var t=A((0,f.useState)(a.A.file_item_width_atom),2),e=t[0],n=t[1],r=function(){var t=Math.floor(document.querySelector("main").offsetWidth/280);0===t&&(t=1),n("calc(".concat(100/t,"% - 1em)"))};return(0,f.useEffect)(function(){return r(),window.addEventListener("resize",r),function(){window.removeEventListener("resize",r)}},[]),e}function W(t){t.endsWith(".workflow.yml")?(0,l.LW)("".concat(t.slice(0,-13)," done!")):t.endsWith(".act")&&(0,l.LW)("".concat(t.slice(0,-4)," done!"))}function F(t){t.endsWith(".workflow.yml")?(0,l.zN)("".concat(t.slice(0,-13)," failed!")):t.endsWith(".act")&&(0,l.zN)("".concat(t.slice(0,-4)," failed!"))}var C=(0,s.nF)(function(t){(0,v.lW)(t),(0,l.LW)("复制成功")});function M(){(0,f.useEffect)(function(){var t=document.querySelectorAll(".copy-btn"),e=function(){t.forEach(function(t){t.removeEventListener("click",function(){var t=this.getAttribute("data-code");C(t)})})};return e(),t.forEach(function(t){t.addEventListener("click",function(){var t=this.getAttribute("data-code");C(t)})}),function(){e()}},[])}function H(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=A((0,u.L4)(a.A.user_base_info),2),n=e[0],o=e[1],c=(0,f.useContext)(m.F).initUserInfo;return S(w().m(function e(){var u,a,f;return w().w(function(e){for(;;)switch(e.n){case 0:if(f=(0,r.jH)(i.Ko,null!==(u=null==n||null===(a=n.user_data)||void 0===a?void 0:a.file_list_show_type)&&void 0!==u?u:""),!t){e.n=1;break}return o(function(t){return b(b({},t),{},{user_data:b(b({},null==t?void 0:t.user_data),{},{file_list_show_type:f})})}),e.a(2);case 1:return e.n=2,d.wm.post(y.s.user_save_user_file_list_show_type,{type:f});case 2:c();case 3:return e.a(2)}},e)}))}},5726(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,u=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw u}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function i(t){return new Promise(function(e){var n=0,o=[];if(void 0!==t.items){var i,u=r(t.items);try{for(u.s();!(i=u.n()).done;){var a=i.value;if("file"===a.kind&&"function"==typeof a.webkitGetAsEntry)c(a.webkitGetAsEntry())}}catch(t){u.e(t)}finally{u.f()}}else e(t.files);function c(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t.isFile)n++,t.file(function(t){n--,t.fullPath="".concat(r).concat(t.name),o.push(t),0===n&&e(o)});else if(t.isDirectory){var i={isDir:!0,size:0,fullPath:"".concat(r).concat(t.name),name:t.name};o.push(i),f(t.createReader(),"".concat(r).concat(t.name))}}function f(t,i){n++,t.readEntries(function(u){if(n--,u.length>0){var a,l=r(u);try{for(l.s();!(a=l.n()).done;){c(a.value,"".concat(i,"/"))}}catch(t){l.e(t)}finally{l.f()}f(t,"".concat(i,"/"))}0===n&&e(o)})}})}function u(t){return new Promise(function(e,n){var r=document.createElement("script");r.src=t,r.async=!0,r.onload=function(){e(null),console.log("脚本加载完成")},r.onerror=function(){n(n),console.error("脚本加载失败")},document.body.appendChild(r)})}n.d(e,{J:()=>u,T:()=>i})}}]);
|