filecat 6.2.0 → 6.3.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.
Files changed (70) hide show
  1. package/build/dist/1428.02adb26ebf34014f8a97.js +2 -0
  2. package/build/dist/1962.7d96b9a4f6e754b59988.js +2 -0
  3. package/build/dist/2502.229fe244a77764240b3d.js +2 -0
  4. package/build/dist/2542.482d6a17176f2f5b4b4f.js +2 -0
  5. package/build/dist/3029.7ea224397135b1f3799d.js +2 -0
  6. package/build/dist/306.174c7bcff88cdf3a9503.js +2 -0
  7. package/build/dist/3402.09670dff158f73c74e1f.js +2 -0
  8. package/build/dist/3441.394e6e800b831102e646.js +2 -0
  9. package/build/dist/4091.ef98e6988f74de1e2a68.js +1 -0
  10. package/build/dist/4273.ee9a61fa611d34dafb98.js +2 -0
  11. package/build/dist/4488.e65516e2d00d6477a1be.js +2 -0
  12. package/build/dist/{4943.ec3a53f0fdd8a049f9fe.js → 4943.b919d6b0f7e73a6d094b.js} +2 -2
  13. package/build/dist/5703.393fd7e487ca7855bacb.js +1 -0
  14. package/build/dist/5937.b65d64858533352cd4dd.js +2 -0
  15. package/build/dist/6247.359a059102e7897988f8.js +2 -0
  16. package/build/dist/{6775.36a89588c4bd3a120b98.js → 6775.5d9be68d30fef8176d57.js} +2 -2
  17. package/build/dist/7181.4425a8eb977ce399d5fd.js +2 -0
  18. package/build/dist/{7690.c15a960aaddce079f31b.js → 7690.2566e505f54400c890f1.js} +2 -2
  19. package/build/dist/{8603.2e501c49137b90a56956.js → 8603.dc7a76ac96b34ca323a9.js} +2 -2
  20. package/build/dist/8714.1c1478ae7a709150a9e9.js +2 -0
  21. package/build/dist/8931.b92c68f521e4a631fccf.js +2 -0
  22. package/build/dist/9704.d2fdb0966de7eb180034.js +2 -0
  23. package/build/dist/{9923.0632ad495c7a9f3ebb1c.js → 9923.a8bc705dedcd3666269e.js} +1 -1
  24. package/build/dist/dark.css +8 -0
  25. package/build/dist/google.css +1724 -0
  26. package/build/dist/index.html +1 -1
  27. package/build/dist/main.537b8b7a99a69a3e984a.js +2 -0
  28. package/build/main.js +1 -1
  29. package/package.json +1 -1
  30. package/shell/build.js +7 -1
  31. package/build/dist/1428.2b5b0b97204a1592e41e.js +0 -2
  32. package/build/dist/1962.ef9a71b3d275977f810a.js +0 -2
  33. package/build/dist/2502.f998a0e1e7f6fa351492.js +0 -2
  34. package/build/dist/2542.c6c7557d9a561c0cf001.js +0 -2
  35. package/build/dist/3029.77ce7299d453529118c6.js +0 -2
  36. package/build/dist/306.f2924db88878b8c95ba4.js +0 -2
  37. package/build/dist/3402.d8dcfdde4394e78b9e4e.js +0 -2
  38. package/build/dist/3441.c209f0fcc9ae0a263717.js +0 -2
  39. package/build/dist/4091.fb632f294690bf7b48e0.js +0 -1
  40. package/build/dist/4273.194482f6f200eb224e78.js +0 -2
  41. package/build/dist/4488.70b1212959f0de49b7c9.js +0 -2
  42. package/build/dist/5703.c675aaaa5f3ca72d1835.js +0 -1
  43. package/build/dist/5937.f05bea1e4260707ec998.js +0 -2
  44. package/build/dist/6247.1d1f8c38c16a7435f615.js +0 -2
  45. package/build/dist/7181.15ee23b9d9c01d90aaa5.js +0 -2
  46. package/build/dist/8714.7f15b43e63e50625e077.js +0 -2
  47. package/build/dist/8931.186665aaa403399ec70c.js +0 -2
  48. package/build/dist/9704.eb920f8a2fcf9c543f3b.js +0 -2
  49. package/build/dist/main.1b687bc5612861d1595c.js +0 -2
  50. /package/build/dist/{1428.2b5b0b97204a1592e41e.js.LICENSE.txt → 1428.02adb26ebf34014f8a97.js.LICENSE.txt} +0 -0
  51. /package/build/dist/{1962.ef9a71b3d275977f810a.js.LICENSE.txt → 1962.7d96b9a4f6e754b59988.js.LICENSE.txt} +0 -0
  52. /package/build/dist/{2502.f998a0e1e7f6fa351492.js.LICENSE.txt → 2502.229fe244a77764240b3d.js.LICENSE.txt} +0 -0
  53. /package/build/dist/{2542.c6c7557d9a561c0cf001.js.LICENSE.txt → 2542.482d6a17176f2f5b4b4f.js.LICENSE.txt} +0 -0
  54. /package/build/dist/{3029.77ce7299d453529118c6.js.LICENSE.txt → 3029.7ea224397135b1f3799d.js.LICENSE.txt} +0 -0
  55. /package/build/dist/{306.f2924db88878b8c95ba4.js.LICENSE.txt → 306.174c7bcff88cdf3a9503.js.LICENSE.txt} +0 -0
  56. /package/build/dist/{3402.d8dcfdde4394e78b9e4e.js.LICENSE.txt → 3402.09670dff158f73c74e1f.js.LICENSE.txt} +0 -0
  57. /package/build/dist/{3441.c209f0fcc9ae0a263717.js.LICENSE.txt → 3441.394e6e800b831102e646.js.LICENSE.txt} +0 -0
  58. /package/build/dist/{4273.194482f6f200eb224e78.js.LICENSE.txt → 4273.ee9a61fa611d34dafb98.js.LICENSE.txt} +0 -0
  59. /package/build/dist/{4488.70b1212959f0de49b7c9.js.LICENSE.txt → 4488.e65516e2d00d6477a1be.js.LICENSE.txt} +0 -0
  60. /package/build/dist/{4943.ec3a53f0fdd8a049f9fe.js.LICENSE.txt → 4943.b919d6b0f7e73a6d094b.js.LICENSE.txt} +0 -0
  61. /package/build/dist/{5937.f05bea1e4260707ec998.js.LICENSE.txt → 5937.b65d64858533352cd4dd.js.LICENSE.txt} +0 -0
  62. /package/build/dist/{6247.1d1f8c38c16a7435f615.js.LICENSE.txt → 6247.359a059102e7897988f8.js.LICENSE.txt} +0 -0
  63. /package/build/dist/{6775.36a89588c4bd3a120b98.js.LICENSE.txt → 6775.5d9be68d30fef8176d57.js.LICENSE.txt} +0 -0
  64. /package/build/dist/{7181.15ee23b9d9c01d90aaa5.js.LICENSE.txt → 7181.4425a8eb977ce399d5fd.js.LICENSE.txt} +0 -0
  65. /package/build/dist/{7690.c15a960aaddce079f31b.js.LICENSE.txt → 7690.2566e505f54400c890f1.js.LICENSE.txt} +0 -0
  66. /package/build/dist/{8603.2e501c49137b90a56956.js.LICENSE.txt → 8603.dc7a76ac96b34ca323a9.js.LICENSE.txt} +0 -0
  67. /package/build/dist/{8714.7f15b43e63e50625e077.js.LICENSE.txt → 8714.1c1478ae7a709150a9e9.js.LICENSE.txt} +0 -0
  68. /package/build/dist/{8931.186665aaa403399ec70c.js.LICENSE.txt → 8931.b92c68f521e4a631fccf.js.LICENSE.txt} +0 -0
  69. /package/build/dist/{9704.eb920f8a2fcf9c543f3b.js.LICENSE.txt → 9704.d2fdb0966de7eb180034.js.LICENSE.txt} +0 -0
  70. /package/build/dist/{main.1b687bc5612861d1595c.js.LICENSE.txt → main.537b8b7a99a69a3e984a.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 7181.4425a8eb977ce399d5fd.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[4091,7181],{4091(e,t,n){n.r(t),n.d(t,{default:()=>p});var r=n(6540),o=n(952),i=(n(2327),n(1766),n(4854),n(8),n(846),n(975),n(4286),n(766),n(1234),n(7507),n(7268),n(4522)),c=n(7444),a=n(6417),u=n(8247);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,c,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e,t)||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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e){var t,n=(0,r.useRef)(null),l=d((0,c.L4)(a.AG.user_base_info),2),m=l[0],p=(l[1],null!==(t=m.user_data.theme)&&void 0!==t&&t.includes("dark")?"cloud_editor_dark":"cloud9_day");return(0,r.useEffect)(function(){var t,r,c=o.edit(n.current,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({value:u.xK.get_value_temp(e.editor_id),showPrintMargin:!1,theme:"ace/theme/".concat(p),mode:null!==(t=e.model)&&void 0!==t?t:i.getModeForPath(null!==(r=e.name)&&void 0!==r?r:"").mode,wrap:!1,highlightActiveLine:!1,fontSize:14},e.options));return c.setOptions({}),c.container.addEventListener("wheel",function(e){e.preventDefault()}),c.focus(),c.on("change",function(t){e.on_change&&e.on_change()}),n.current=c,c.formatCode=function(){var e=o.require("ace/ext/beautify"),t=n.current;t&&e.beautify(t.session)},u.xK.set_editor_temp(c,e.editor_id),function(){u.xK.delete_editor_temp(e.editor_id),c.destroy()}},[]),r.createElement("div",{ref:n,style:{height:"100%",width:"100%"}})}o.config.set("basePath","https://gcore.jsdelivr.net/npm/ace-builds@".concat(o.version,"/src-min-noconflict/")),o.config.set("modePath","https://gcore.jsdelivr.net/npm/ace-builds@".concat(o.version,"/src-min-noconflict/")),o.config.set("themePath","https://gcore.jsdelivr.net/npm/ace-builds@".concat(o.version,"/src-min-noconflict/")),o.config.set("workerPath","https://gcore.jsdelivr.net/npm/ace-builds@".concat(o.version,"/src-min-noconflict/")),o.config.set("basePath","https://gcore.jsdelivr.net/npm/ace-builds@".concat(o.version,"/src-min-noconflict/"))},7181(e,t,n){n.r(t),n.d(t,{default:()=>h});var r=n(6540),o=n(5997),i=n(7952),c=n(7444),a=n(6417),u=n(8247),l=n(4091),f=n(4289),s=n(4251);function d(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof a?r:a,l=Object.create(u.prototype);return m(l,"_invoke",function(n,r,o){var i,a,u,l=0,f=o||[],s=!1,d={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,n){return i=t,a=0,u=e,d.n=n,c}};function m(n,r){for(a=n,u=r,t=0;!s&&l&&!o&&t<f.length;t++){var o,i=f[t],m=d.p,p=i[2];n>3?(o=p===r)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=m&&((o=n<2&&m<i[1])?(a=0,d.v=r,d.n=i[1]):m<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,d.n=p,a=0))}if(o||n>1)return c;throw s=!0,r}return function(o,f,p){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&m(f,p),a=f,u=p;(t=a<2?e:u)||!s;){i||(a?a<3?(a>1&&(d.n=-1),m(a,u)):d.n=u:d.v=u);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(s=d.n<0)?u:n.call(r,d))!==c)break}catch(t){i=e,a=1,u=t}finally{l=1}}return{value:t,done:s}}}(n,o,i),!0),l}var c={};function a(){}function u(){}function l(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(m(t={},r,function(){return this}),t),s=l.prototype=a.prototype=Object.create(f);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,m(e,o,"GeneratorFunction")),e.prototype=Object.create(s),e}return u.prototype=l,m(s,"constructor",l),m(l,"constructor",u),u.displayName="GeneratorFunction",m(l,o,"GeneratorFunction"),m(s),m(s,o,"Generator"),m(s,r,function(){return this}),m(s,"toString",function(){return"[object Generator]"}),(d=function(){return{w:i,m:p}})()}function m(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}m=function(e,t,n,r){function i(t,n){m(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},m(e,t,n,r)}function p(e,t,n,r,o,i,c){try{var a=e[i](c),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,c,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(){var e=v((0,c.L4)(a.AG.editorSetting),2),t=e[0],n=e[1],m=v((0,r.useState)(!1),2),y=m[0],h=m[1],b=v((0,c.L4)(a.AG.fileShellShow),2),g=b[0],_=b[1],j=v((0,c.L4)(a.AG.file_shell_hidden),2),w=j[0],O=j[1];function S(){return P.apply(this,arguments)}function P(){var e;return e=d().m(function e(){return d().w(function(e){for(;;)switch(e.n){case 0:if(!t.save||!y){e.n=2;break}return e.n=1,t.save(u.xK.get_editor_value());case 1:u.xK.set_value_temp(""),h(!1);case 2:return e.a(2)}},e)}),P=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function c(e){p(i,r,o,c,a,"next",e)}function a(e){p(i,r,o,c,a,"throw",e)}c(void 0)})},P.apply(this,arguments)}var E=function(e){e.ctrlKey&&"s"===e.key&&(e.preventDefault(),t.save&&y&&S())};return(0,r.useEffect)(function(){return function(){h(!1)}},[t]),(0,r.useEffect)(function(){return document.addEventListener("keydown",E),function(){document.removeEventListener("keydown",E)}},[y,t]),t.open&&r.createElement("div",{id:"editor-container"},r.createElement(i.A,{ignore_tags:!0,left_children:[r.createElement(o.rA,{key:1,title:"取消",icon:"close",onClick:function(){var e;u.xK.set_value_temp(""),n({open:!1,model:"",fileName:"",save:null}),null==t||null===(e=t.close)||void 0===e||e.call(t)}}),r.createElement("title",{key:2},t.fileName)]},t.menu_list&&t.menu_list,(t.can_format||(0,s.zr)(t.fileName))&&r.createElement(o.rA,{title:"格式化",icon:"data_object",onClick:function(){var e;null===(e=u.xK.get_editor())||void 0===e||e.formatCode()}}),t.opt_shell&&r.createElement(o.rA,{icon:"terminal",title:"shell",onClick:function(){g.show?O(!w):_({show:!0,path:(0,f.GG)("file",(0,f.vX)())})}}),y&&r.createElement(o.rA,{title:"保存",icon:"save",onClick:S})),r.createElement(l.default,{name:t.fileName,model:t.model,on_change:function(){y||h(!0)}}))}}}]);