@whyour/qinglong 0.5.4 → 0.6.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/README-en.md +18 -0
- package/README.md +18 -0
- package/docker/docker-entrypoint.sh +4 -3
- package/docker/nginx.conf +1 -1
- package/package.json +7 -3
- package/shell/share.sh +6 -70
- package/shell/update.sh +66 -22
- package/static/build/api/system.js +47 -9
- package/static/build/config/index.js +5 -0
- package/static/build/config/util.js +9 -1
- package/static/build/data/dependence.js +16 -4
- package/static/build/loaders/initTask.js +3 -3
- package/static/build/loaders/server.js +23 -8
- package/static/build/services/dependence.js +37 -10
- package/static/build/services/system.js +44 -1
- package/static/build/shared/pLimit.js +6 -6
- package/static/dist/1138.c3a50127.async.js +4 -0
- package/static/dist/{4804.183d71af.async.js → 1295.06026141.async.js} +3 -3
- package/static/dist/3330.950e8570.async.js +1 -0
- package/static/dist/3669.4f05548e.async.js +3 -0
- package/static/dist/37.8af37a28.async.js +6 -0
- package/static/dist/3800.34124d62.async.js +2 -0
- package/static/dist/{4163.a1d279c3.async.js → 4163.a363bae0.async.js} +1 -1
- package/static/dist/5035.ac19ee2f.async.js +67 -0
- package/static/dist/{7567.a224d0a6.async.js → 6556.f0e353dc.async.js} +2 -2
- package/static/dist/6644.5df1dec2.async.js +62 -0
- package/static/dist/7393.86229389.async.js +1 -0
- package/static/dist/8044.a70b53d2.async.js +18 -0
- package/static/dist/{8844.8525fd2e.async.js → 806.b28198b3.async.js} +2 -2
- package/static/dist/819.a02c513d.async.js +4 -0
- package/static/dist/8347.c3ea8f4e.async.js +6 -0
- package/static/dist/8969.2ad6c360.async.js +1 -0
- package/static/dist/index.html +1 -1
- package/static/dist/layouts__index.34e4586a.async.js +1 -0
- package/static/dist/{src__pages__404.8794c158.async.js → src__pages__404.970a2ae1.async.js} +1 -1
- package/static/dist/src__pages__config__index.215d2363.async.js +22 -0
- package/static/dist/src__pages__crontab__detail.bd91d91a.async.js +3 -0
- package/static/dist/src__pages__crontab__index.26308df9.async.js +19 -0
- package/static/dist/src__pages__crontab__logModal.c4254d3f.async.js +2 -0
- package/static/dist/src__pages__crontab__modal.eebf3433.async.js +5 -0
- package/static/dist/src__pages__crontab__type.136454fe.async.js +1 -0
- package/static/dist/src__pages__crontab__viewManageModal.4013da38.async.js +1 -0
- package/static/dist/src__pages__dependence__index.c863e8a7.async.js +2 -0
- package/static/dist/{src__pages__script__saveModal.312a0beb.async.js → src__pages__dependence__logModal.d1ee1a9f.async.js} +2 -2
- package/static/dist/src__pages__dependence__modal.58ad2c1a.async.js +5 -0
- package/static/dist/src__pages__diff__index.9f5c7a8e.async.js +5 -0
- package/static/dist/src__pages__env__editNameModal.07873464.async.js +4 -0
- package/static/dist/src__pages__env__index.f90a2f57.async.js +2 -0
- package/static/dist/src__pages__env__modal.50ed7bfe.async.js +5 -0
- package/static/dist/src__pages__error__index.dd1a4c16.async.js +4 -0
- package/static/dist/src__pages__initialization__index.af6852bf.async.js +21 -0
- package/static/dist/src__pages__log__index.e6c628e8.async.js +1 -0
- package/static/dist/src__pages__login__index.419baa77.async.js +2 -0
- package/static/dist/src__pages__script__editModal.3ae4162a.async.js +4 -0
- package/static/dist/{src__pages__script__renameModal.ea3b6689.async.js → src__pages__script__editNameModal.c2c2fd10.async.js} +2 -2
- package/static/dist/src__pages__script__index.a1f04db0.async.js +23 -0
- package/static/dist/src__pages__script__renameModal.c7990ca9.async.js +4 -0
- package/static/dist/src__pages__script__saveModal.d0a7e413.async.js +4 -0
- package/static/dist/src__pages__script__setting.d79e1f45.async.js +4 -0
- package/static/dist/src__pages__setting__about.5138ea49.async.js +1 -0
- package/static/dist/src__pages__setting__appModal.457f03c0.async.js +4 -0
- package/static/dist/src__pages__setting__checkUpdate.e8512ada.async.js +1 -0
- package/static/dist/src__pages__setting__index.b8a741cf.async.js +2 -0
- package/static/dist/src__pages__setting__loginLog.195a2809.async.js +18 -0
- package/static/dist/src__pages__setting__notification.5156672c.async.js +21 -0
- package/static/dist/src__pages__setting__other.8e242852.async.js +1 -0
- package/static/dist/src__pages__setting__progress.bd2dfeee.async.js +1 -0
- package/static/dist/src__pages__setting__security.70bccf38.async.js +4 -0
- package/static/dist/src__pages__subscription__index.3233e4c5.async.js +2 -0
- package/static/dist/src__pages__subscription__logModal.ef8e52b8.async.js +2 -0
- package/static/dist/src__pages__subscription__modal.b8fe92d2.async.js +4 -0
- package/static/dist/umi.f60e35ef.js +12 -0
- package/version.yaml +6 -5
- package/static/dist/1654.e06fbac5.async.js +0 -1
- package/static/dist/3800.5488ae14.async.js +0 -2
- package/static/dist/4346.5ab6fdc1.async.js +0 -1
- package/static/dist/4491.3c2d8653.async.js +0 -4
- package/static/dist/5008.c612bbdb.async.js +0 -11
- package/static/dist/5035.2489750b.async.js +0 -67
- package/static/dist/7393.d9ed4b3a.async.js +0 -1
- package/static/dist/8037.386b415d.async.js +0 -1
- package/static/dist/8612.b6557431.async.js +0 -1
- package/static/dist/8657.805a96f7.async.js +0 -18
- package/static/dist/921.198cefa6.async.js +0 -6
- package/static/dist/9583.b067717f.async.js +0 -4
- package/static/dist/layouts__index.3db43e0b.async.js +0 -1
- package/static/dist/src__pages__config__index.7fb61af5.async.js +0 -22
- package/static/dist/src__pages__crontab__detail.b108a060.async.js +0 -3
- package/static/dist/src__pages__crontab__index.6753ace9.async.js +0 -19
- package/static/dist/src__pages__crontab__logModal.f9578959.async.js +0 -2
- package/static/dist/src__pages__crontab__modal.6d17fdcf.async.js +0 -5
- package/static/dist/src__pages__crontab__type.38d7a0b6.async.js +0 -1
- package/static/dist/src__pages__crontab__viewManageModal.2dea2918.async.js +0 -1
- package/static/dist/src__pages__dependence__index.3b140a79.async.js +0 -2
- package/static/dist/src__pages__dependence__logModal.e49658d5.async.js +0 -4
- package/static/dist/src__pages__dependence__modal.94ff002a.async.js +0 -5
- package/static/dist/src__pages__diff__index.240e4991.async.js +0 -5
- package/static/dist/src__pages__env__editNameModal.047bb3ba.async.js +0 -4
- package/static/dist/src__pages__env__index.48602d18.async.js +0 -2
- package/static/dist/src__pages__env__modal.8b48ffa4.async.js +0 -5
- package/static/dist/src__pages__error__index.a4305d27.async.js +0 -4
- package/static/dist/src__pages__initialization__index.978a7f09.async.js +0 -21
- package/static/dist/src__pages__log__index.ae245070.async.js +0 -1
- package/static/dist/src__pages__login__index.8eb4df8e.async.js +0 -2
- package/static/dist/src__pages__script__editModal.02b12902.async.js +0 -4
- package/static/dist/src__pages__script__editNameModal.2773cb7b.async.js +0 -4
- package/static/dist/src__pages__script__index.679510cd.async.js +0 -6
- package/static/dist/src__pages__script__setting.11abc6ae.async.js +0 -4
- package/static/dist/src__pages__setting__about.1460b7fa.async.js +0 -1
- package/static/dist/src__pages__setting__appModal.74267529.async.js +0 -4
- package/static/dist/src__pages__setting__checkUpdate.ce2e30bb.async.js +0 -4
- package/static/dist/src__pages__setting__index.0bfefeff.async.js +0 -2
- package/static/dist/src__pages__setting__loginLog.0708083b.async.js +0 -18
- package/static/dist/src__pages__setting__notification.15a286d0.async.js +0 -21
- package/static/dist/src__pages__setting__other.00a69cf4.async.js +0 -1
- package/static/dist/src__pages__setting__security.62b6b562.async.js +0 -4
- package/static/dist/src__pages__subscription__index.708b6c8f.async.js +0 -2
- package/static/dist/src__pages__subscription__logModal.3a1a8e58.async.js +0 -2
- package/static/dist/src__pages__subscription__modal.c034f25a.async.js +0 -4
- package/static/dist/umi.152e69cd.js +0 -11
- /package/static/dist/{9439.59dcf306.chunk.css → 1095.59dcf306.chunk.css} +0 -0
- /package/static/dist/{8612.d2d0a2c7.chunk.css → 8969.d2d0a2c7.chunk.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[8969],{8930:function(Ze,q,l){var z=l(63313),S=l.n(z),A=(0,z.createContext)({});q.Z=A},78969:function(Ze,q,l){l.d(q,{ZP:function(){return Ft}});var z=l(90265),S=l(60795),A=l(87807),_=l(54183),Ee=l(9924),Ne=l(46954),rt=l(49994),Fe=l(18790),g=l(84875),W=l.n(g),Re=l(71860),at=l(92976),i=l(63313),Me=l.n(i),oe=l(82259),He=l(14402),Ie=l(4202);function nt(n){var e,r=function(o){return function(){e=null,n.apply(void 0,(0,He.Z)(o))}},t=function(){if(e==null){for(var o=arguments.length,c=new Array(o),d=0;d<o;d++)c[d]=arguments[d];e=(0,Ie.Z)(r(c))}};return t.cancel=function(){Ie.Z.cancel(e),e=null},t}function Se(){return function(e,r,t){var a=t.value,o=!1;return{configurable:!0,get:function(){if(o||this===e.prototype||this.hasOwnProperty(r))return a;var d=nt(a.bind(this));return o=!0,Object.defineProperty(this,r,{value:d,configurable:!0,writable:!0}),o=!1,d}}}}var ot=l(50416);function xe(n){return n!==window?n.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Oe(n,e,r){if(r!==void 0&&e.top>n.top-r)return r+e.top}function De(n,e,r){if(r!==void 0&&e.bottom<n.bottom+r){var t=window.innerHeight-e.bottom;return r+t}}var We=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],ie=[];function gt(){return ie}function Ue(n,e){if(n){var r=ie.find(function(t){return t.target===n});r?r.affixList.push(e):(r={target:n,affixList:[e],eventHandlers:{}},ie.push(r),We.forEach(function(t){r.eventHandlers[t]=(0,ot.Z)(n,t,function(){r.affixList.forEach(function(a){a.lazyUpdatePosition()})})}))}}function ke(n){var e=ie.find(function(r){var t=r.affixList.some(function(a){return a===n});return t&&(r.affixList=r.affixList.filter(function(a){return a!==n})),t});e&&e.affixList.length===0&&(ie=ie.filter(function(r){return r!==e}),We.forEach(function(r){var t=e.eventHandlers[r];t&&t.remove&&t.remove()}))}var Ge=function(n,e,r,t){var a=arguments.length,o=a<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,r):t,c;if((typeof Reflect=="undefined"?"undefined":(0,Fe.Z)(Reflect))==="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,r,t);else for(var d=n.length-1;d>=0;d--)(c=n[d])&&(o=(a<3?c(o):a>3?c(e,r,o):c(e,r))||o);return a>3&&o&&Object.defineProperty(e,r,o),o};function it(){return typeof window!="undefined"?window:null}var ee;(function(n){n[n.None=0]="None",n[n.Prepare=1]="Prepare"})(ee||(ee={}));var ye=function(n){(0,Ne.Z)(r,n);var e=(0,rt.Z)(r);function r(){var t;return(0,_.Z)(this,r),t=e.apply(this,arguments),t.state={status:ee.None,lastAffix:!1,prevTarget:null},t.getOffsetTop=function(){var a=t.props,o=a.offsetBottom,c=a.offsetTop;return o===void 0&&c===void 0?0:c},t.getOffsetBottom=function(){return t.props.offsetBottom},t.savePlaceholderNode=function(a){t.placeholderNode=a},t.saveFixedNode=function(a){t.fixedNode=a},t.measure=function(){var a=t.state,o=a.status,c=a.lastAffix,d=t.props.onChange,m=t.getTargetFunc();if(!(o!==ee.Prepare||!t.fixedNode||!t.placeholderNode||!m)){var x=t.getOffsetTop(),C=t.getOffsetBottom(),P=m();if(P){var s={status:ee.None},N=xe(P),v=xe(t.placeholderNode),Z=Oe(v,N,x),O=De(v,N,C);v.top===0&&v.left===0&&v.width===0&&v.height===0||(Z!==void 0?(s.affixStyle={position:"fixed",top:Z,width:v.width,height:v.height},s.placeholderStyle={width:v.width,height:v.height}):O!==void 0&&(s.affixStyle={position:"fixed",bottom:O,width:v.width,height:v.height},s.placeholderStyle={width:v.width,height:v.height}),s.lastAffix=!!s.affixStyle,d&&c!==s.lastAffix&&d(s.lastAffix),t.setState(s))}}},t.prepareMeasure=function(){if(t.setState({status:ee.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var a},t}return(0,Ee.Z)(r,[{key:"getTargetFunc",value:function(){var a=this.context.getTargetContainer,o=this.props.target;return o!==void 0?o:a!=null?a:it}},{key:"componentDidMount",value:function(){var a=this,o=this.getTargetFunc();o&&(this.timeout=setTimeout(function(){Ue(o(),a),a.updatePosition()}))}},{key:"componentDidUpdate",value:function(a){var o=this.state.prevTarget,c=this.getTargetFunc(),d=(c==null?void 0:c())||null;o!==d&&(ke(this),d&&(Ue(d,this),this.updatePosition()),this.setState({prevTarget:d})),(a.offsetTop!==this.props.offsetTop||a.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),ke(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var a=this.getTargetFunc(),o=this.state.affixStyle;if(a&&o){var c=this.getOffsetTop(),d=this.getOffsetBottom(),m=a();if(m&&this.placeholderNode){var x=xe(m),C=xe(this.placeholderNode),P=Oe(C,x,c),s=De(C,x,d);if(P!==void 0&&o.top===P||s!==void 0&&o.bottom===s)return}}this.prepareMeasure()}},{key:"render",value:function(){var a=this,o=this.state,c=o.affixStyle,d=o.placeholderStyle,m=this.props,x=m.affixPrefixCls,C=m.children,P=W()((0,A.Z)({},x,!!c)),s=(0,at.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls"]);return i.createElement(Re.Z,{onResize:function(){a.updatePosition()}},i.createElement("div",(0,S.Z)({},s,{ref:this.savePlaceholderNode}),c&&i.createElement("div",{style:d,"aria-hidden":"true"}),i.createElement("div",{className:P,ref:this.saveFixedNode,style:c},i.createElement(Re.Z,{onResize:function(){a.updatePosition()}},C))))}}]),r}(i.Component);ye.contextType=oe.E_,Ge([Se()],ye.prototype,"updatePosition",null),Ge([Se()],ye.prototype,"lazyUpdatePosition",null);var b=i.forwardRef(function(n,e){var r=n.prefixCls,t=i.useContext(oe.E_),a=t.getPrefixCls,o=a("affix",r),c=(0,S.Z)((0,S.Z)({},n),{affixPrefixCls:o});return i.createElement(ye,(0,S.Z)({},c,{ref:e}))}),u=b,T=l(41498),h=l(58347),p=l(82621),le=l(17079),f=l(14797),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},M=se,te=l(46420),G=function(e,r){return i.createElement(te.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:r,icon:M}))};G.displayName="ArrowLeftOutlined";var K=i.forwardRef(G),re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},fe=re,X=function(e,r){return i.createElement(te.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:r,icon:fe}))};X.displayName="ArrowRightOutlined";var ce=i.forwardRef(X),Y=l(5641),de=l(83535),H=l(52604),I=l(21903),ue=l(25515),Te=l(99604),je=l(70029),Ce=function(n,e){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(r[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(n);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(n,t[a])&&(r[t[a]]=n[t[a]]);return r},Ke=function(e){var r=e.prefixCls,t=e.separator,a=t===void 0?"/":t,o=e.children,c=e.menu,d=e.overlay,m=e.dropdownProps,x=Ce(e,["prefixCls","separator","children","menu","overlay","dropdownProps"]),C=i.useContext(oe.E_),P=C.getPrefixCls,s=P("breadcrumb",r),N=function(O){return c||d?i.createElement(je.Z,(0,S.Z)({menu:c,overlay:d,placement:"bottom"},m),i.createElement("span",{className:"".concat(s,"-overlay-link")},O,i.createElement(Te.Z,null))):O},v;return"href"in x?v=i.createElement("a",(0,S.Z)({className:"".concat(s,"-link")},x),o):v=i.createElement("span",(0,S.Z)({className:"".concat(s,"-link")},x),o),v=N(v),o!=null?i.createElement("li",null,v,a&&i.createElement("span",{className:"".concat(s,"-separator")},a)):null};Ke.__ANT_BREADCRUMB_ITEM=!0;var Xe=Ke,we=function(e){var r=e.children,t=i.useContext(oe.E_),a=t.getPrefixCls,o=a("breadcrumb");return i.createElement("span",{className:"".concat(o,"-separator")},r||"/")};we.__ANT_BREADCRUMB_SEPARATOR=!0;var Ye=we,Ve=function(n,e){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(r[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(n);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(n,t[a])&&(r[t[a]]=n[t[a]]);return r};function Qe(n,e){if(!n.breadcrumbName)return null;var r=Object.keys(e).join("|"),t=n.breadcrumbName.replace(new RegExp(":(".concat(r,")"),"g"),function(a,o){return e[o]||a});return t}function ve(n,e,r,t){var a=r.indexOf(n)===r.length-1,o=Qe(n,e);return a?i.createElement("span",null,o):i.createElement("a",{href:"#/".concat(t.join("/"))},o)}var Je=function(e,r){return e=(e||"").replace(/^\//,""),Object.keys(r).forEach(function(t){e=e.replace(":".concat(t),r[t])}),e},me=function(e,r,t){var a=(0,He.Z)(e),o=Je(r||"",t);return o&&a.push(o),a},Be=function(e){var r=e.prefixCls,t=e.separator,a=t===void 0?"/":t,o=e.style,c=e.className,d=e.routes,m=e.children,x=e.itemRender,C=x===void 0?ve:x,P=e.params,s=P===void 0?{}:P,N=Ve(e,["prefixCls","separator","style","className","routes","children","itemRender","params"]),v=i.useContext(oe.E_),Z=v.getPrefixCls,O=v.direction,E,w=Z("breadcrumb",r);if(d&&d.length>0){var B=[];E=d.map(function(R){var U=Je(R.path,s);U&&B.push(U);var D;R.children&&R.children.length&&(D=i.createElement(I.Z,{items:R.children.map(function(k){return{key:k.path||k.breadcrumbName,label:C(k,s,d,me(B,k.path,s))}})}));var J={separator:a};return D&&(J.overlay=D),i.createElement(Xe,(0,S.Z)({},J,{key:U||R.breadcrumbName}),C(R,s,d,B))})}else m&&(E=(0,H.Z)(m).map(function(R,U){return R&&(0,ue.Tm)(R,{separator:a,key:U})}));var $=W()(w,(0,A.Z)({},"".concat(w,"-rtl"),O==="rtl"),c);return i.createElement("nav",(0,S.Z)({className:$,style:o},N),i.createElement("ol",null,E))};Be.Item=Xe,Be.Separator=Ye;var lt=Be,st=lt,qe=l(76557),ct=l(2947),be=l(20277),j=function(e,r,t){return!r||!t?null:i.createElement(qe.Z,{componentName:"PageHeader"},function(a){return i.createElement("div",{className:"".concat(e,"-back")},i.createElement(be.Z,{onClick:function(c){t==null||t(c)},className:"".concat(e,"-back-button"),"aria-label":a.back},r))})},dt=function(e){return i.createElement(st,(0,S.Z)({},e))},_e=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return e.backIcon!==void 0?e.backIcon:r==="rtl"?i.createElement(ce,null):i.createElement(K,null)},ut=function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",a=r.title,o=r.avatar,c=r.subTitle,d=r.tags,m=r.extra,x=r.onBack,C="".concat(e,"-heading"),P=a||c||d||m;if(!P)return null;var s=_e(r,t),N=j(e,s,x),v=N||o||P;return i.createElement("div",{className:C},v&&i.createElement("div",{className:"".concat(C,"-left")},N,o&&i.createElement(de.C,(0,S.Z)({},o)),a&&i.createElement("span",{className:"".concat(C,"-title"),title:typeof a=="string"?a:void 0},a),c&&i.createElement("span",{className:"".concat(C,"-sub-title"),title:typeof c=="string"?c:void 0},c),d&&i.createElement("span",{className:"".concat(C,"-tags")},d)),m&&i.createElement("span",{className:"".concat(C,"-extra")},i.createElement(ct.Z,null,m)))},V=function(e,r){return r?i.createElement("div",{className:"".concat(e,"-footer")},r):null},ft=function(e,r){return i.createElement("div",{className:"".concat(e,"-content")},r)},et=function(e){var r=(0,Y.Z)(!1),t=(0,le.Z)(r,2),a=t[0],o=t[1],c=function(m){var x=m.width;o(x<768,!0)};return i.createElement(oe.C,null,function(d){var m,x=d.getPrefixCls,C=d.pageHeader,P=d.direction,s,N=e.prefixCls,v=e.style,Z=e.footer,O=e.children,E=e.breadcrumb,w=e.breadcrumbRender,B=e.className,$=!0;"ghost"in e?$=e.ghost:C&&"ghost"in C&&($=C.ghost);var R=x("page-header",N),U=function(){return E!=null&&E.routes?dt(E):null},D=U(),J=E&&"props"in E,k=(s=w==null?void 0:w(e,D))!==null&&s!==void 0?s:D,L=J?E:k,pe=W()(R,B,(m={"has-breadcrumb":!!L,"has-footer":!!Z},(0,A.Z)(m,"".concat(R,"-ghost"),$),(0,A.Z)(m,"".concat(R,"-rtl"),P==="rtl"),(0,A.Z)(m,"".concat(R,"-compact"),a),m));return i.createElement(Re.Z,{onResize:c},i.createElement("div",{className:pe,style:v},L,ut(R,e,P),O&&ft(R,O),V(R,Z)))})},vt=et,ze=l(16803),ae=l(86986),y=l(11527),Pe=l(8930),mt=l(71770),he=["children","className","extra","style","renderContent"],F=function(e){var r=e.children,t=e.className,a=e.extra,o=e.style,c=e.renderContent,d=(0,ze.Z)(e,he),m=(0,i.useContext)(h.ZP.ConfigContext),x=m.getPrefixCls,C=e.prefixCls||x("pro"),P="".concat(C,"-footer-bar"),s=(0,i.useContext)(Pe.Z),N=(0,i.useMemo)(function(){var Z=s.hasSiderMenu,O=s.isMobile,E=s.siderWidth;if(Z)return E?O?"100%":"calc(100% - ".concat(E,"px)"):"100%"},[s.collapsed,s.hasSiderMenu,s.isMobile,s.siderWidth]),v=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"".concat(P,"-left"),children:a}),(0,y.jsx)("div",{className:"".concat(P,"-right"),children:r})]});return(0,i.useEffect)(function(){return!s||!(s!=null&&s.setHasFooterToolbar)?function(){}:(s==null||s.setHasFooterToolbar(!0),function(){var Z;s==null||(Z=s.setHasFooterToolbar)===null||Z===void 0||Z.call(s,!1)})},[]),(0,y.jsx)("div",(0,f.Z)((0,f.Z)({className:W()(t,"".concat(P)),style:(0,f.Z)({width:N},o)},(0,mt.Z)(d,["prefixCls"])),{},{children:c?c((0,f.Z)((0,f.Z)((0,f.Z)({},e),s),{},{leftWidth:N}),v):v}))},Q=F,tt=function(e){var r=(0,i.useContext)(Pe.Z),t=e.children,a=e.contentWidth,o=e.className,c=e.style,d=(0,i.useContext)(h.ZP.ConfigContext),m=d.getPrefixCls,x=e.prefixCls||m("pro"),C=a||r.contentWidth,P="".concat(x,"-grid-content");return(0,y.jsx)("div",{className:W()(P,o,{wide:C==="Fixed"}),style:c,children:(0,y.jsx)("div",{className:"".concat(x,"-grid-content-children"),children:t})})},Ae=tt,Rt=l(91796),St=function(e){if(!e)return 1;var r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r},Ot=function(e){var r=e.children,t=e.style,a=e.className,o=e.markStyle,c=e.markClassName,d=e.zIndex,m=d===void 0?9:d,x=e.gapX,C=x===void 0?212:x,P=e.gapY,s=P===void 0?222:P,N=e.width,v=N===void 0?120:N,Z=e.height,O=Z===void 0?64:Z,E=e.rotate,w=E===void 0?-22:E,B=e.image,$=e.content,R=e.offsetLeft,U=e.offsetTop,D=e.fontStyle,J=D===void 0?"normal":D,k=e.fontWeight,L=k===void 0?"normal":k,pe=e.fontColor,ht=pe===void 0?"rgba(0,0,0,.15)":pe,xt=e.fontSize,yt=xt===void 0?16:xt,Ct=e.fontFamily,bt=Ct===void 0?"sans-serif":Ct,Mt=e.prefixCls,Ht=(0,i.useContext)(h.ZP.ConfigContext),It=Ht.getPrefixCls,Pt=It("pro-layout-watermark",Mt),Dt=W()("".concat(Pt,"-wrapper"),a),Wt=W()(Pt,c),Ut=(0,i.useState)(""),pt=(0,le.Z)(Ut,2),Zt=pt[0],Et=pt[1];return(0,i.useEffect)(function(){var $e=document.createElement("canvas"),ne=$e.getContext("2d"),ge=St(ne),kt="".concat((C+v)*ge,"px"),Gt="".concat((s+O)*ge,"px"),Kt=R||C/2,Xt=U||s/2;if($e.setAttribute("width",kt),$e.setAttribute("height",Gt),ne){ne.translate(Kt*ge,Xt*ge),ne.rotate(Math.PI/180*Number(w));var Yt=v*ge,Nt=O*ge;if(B){var Le=new Image;Le.crossOrigin="anonymous",Le.referrerPolicy="no-referrer",Le.src=B,Le.onload=function(){ne.drawImage(Le,0,0,Yt,Nt),Et($e.toDataURL())}}else if($){var Vt=Number(yt)*ge;ne.font="".concat(J," normal ").concat(L," ").concat(Vt,"px/").concat(Nt,"px ").concat(bt),ne.fillStyle=ht,Array.isArray($)?$==null||$.forEach(function(Qt,Jt){return ne.fillText(Qt,0,Jt*50)}):ne.fillText($,0,0),Et($e.toDataURL())}}else console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas")},[C,s,R,U,w,J,L,v,O,bt,ht,B,$,yt]),(0,y.jsxs)("div",{style:(0,f.Z)({position:"relative"},t),className:Dt,children:[r,(0,y.jsx)("div",{className:Wt,style:(0,f.Z)((0,f.Z)({zIndex:m,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(C+v,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},Zt?{backgroundImage:"url('".concat(Zt,"')")}:null),o)})]})},Tt=Ot,jt=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","style","prefixCls","breadcrumbRender"],wt=["children","loading","className","style","footer","affixProps","ghost","fixedHeader","breadcrumbRender"];function Bt(n){return(0,Fe.Z)(n)==="object"?n:{spinning:n}}var zt=function(e){var r=e.tabList,t=e.tabActiveKey,a=e.onTabChange,o=e.tabBarExtraContent,c=e.tabProps,d=e.prefixedClassName;return Array.isArray(r)||o?(0,y.jsx)(ae.Z,(0,f.Z)((0,f.Z)({className:"".concat(d,"-tabs"),activeKey:t,onChange:function(x){a&&a(x)},tabBarExtraContent:o},c),{},{children:r==null?void 0:r.map(function(m,x){return(0,i.createElement)(ae.Z.TabPane,(0,f.Z)((0,f.Z)({},m),{},{tab:m.tab,key:m.key||x}))})})):null},At=function(e,r,t){return!e&&!r?null:(0,y.jsx)("div",{className:"".concat(t,"-detail"),children:(0,y.jsx)("div",{className:"".concat(t,"-main"),children:(0,y.jsxs)("div",{className:"".concat(t,"-row"),children:[e&&(0,y.jsx)("div",{className:"".concat(t,"-content"),children:e}),r&&(0,y.jsx)("div",{className:"".concat(t,"-extraContent"),children:r})]})})})},qt=function(e){var r=useContext(RouteContext);return _jsx("div",{style:{height:"100%",display:"flex",alignItems:"center"},children:_jsx(_Breadcrumb,_objectSpread(_objectSpread(_objectSpread({},r==null?void 0:r.breadcrumb),r==null?void 0:r.breadcrumbProps),e))})},$t=function(e){var r,t=(0,i.useContext)(Pe.Z),a=e.title,o=e.content,c=e.pageHeaderRender,d=e.header,m=e.prefixedClassName,x=e.extraContent,C=e.style,P=e.prefixCls,s=e.breadcrumbRender,N=(0,ze.Z)(e,jt),v=(0,i.useMemo)(function(){if(s)return s},[s]);if(c===!1)return null;if(c)return(0,y.jsxs)(y.Fragment,{children:[" ",c((0,f.Z)((0,f.Z)({},e),t))]});var Z=a;!a&&a!==!1&&(Z=t.title);var O=(0,f.Z)((0,f.Z)((0,f.Z)({},t),{},{title:Z},N),{},{footer:zt((0,f.Z)((0,f.Z)({},N),{},{breadcrumbRender:s,prefixedClassName:m}))},d),E=O.breadcrumb,w=(!E||!(E!=null&&E.itemRender)&&!(!(E==null||(r=E.routes)===null||r===void 0)&&r.length))&&!s;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(B){return!O[B]})&&w&&!o&&!x?null:(0,y.jsx)("div",{className:"".concat(m,"-warp"),children:(0,y.jsx)(vt,(0,f.Z)((0,f.Z)({},O),{},{breadcrumb:s===!1?void 0:(0,f.Z)((0,f.Z)({},O.breadcrumb),t.breadcrumbProps),breadcrumbRender:v,prefixCls:P,children:(d==null?void 0:d.children)||At(o,x,m)}))})},Lt=function(e){var r,t,a=e.children,o=e.loading,c=o===void 0?!1:o,d=e.className,m=e.style,x=e.footer,C=e.affixProps,P=e.ghost,s=e.fixedHeader,N=e.breadcrumbRender,v=(0,ze.Z)(e,wt),Z=(0,i.useContext)(Pe.Z),O=(0,i.useContext)(h.ZP.ConfigContext),E=O.getPrefixCls,w=e.prefixCls||E("pro"),B="".concat(w,"-page-container"),$=W()(B,d,(r={},(0,A.Z)(r,"".concat(w,"-page-container-ghost"),P),(0,A.Z)(r,"".concat(w,"-page-container-with-footer"),x),r)),R=(0,i.useMemo)(function(){return a?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"".concat(B,"-children-content"),children:a}),Z.hasFooterToolbar&&(0,y.jsx)("div",{style:{height:48,marginTop:24}})]}):null},[a,B,Z.hasFooterToolbar]),U=(0,i.useMemo)(function(){var L;return N==!1?!1:N||(v==null||(L=v.header)===null||L===void 0?void 0:L.breadcrumbRender)},[N,v==null||(t=v.header)===null||t===void 0?void 0:t.breadcrumbRender]),D=(0,y.jsx)($t,(0,f.Z)((0,f.Z)({},v),{},{breadcrumbRender:U,ghost:P,prefixCls:void 0,prefixedClassName:B})),J=(0,i.useMemo)(function(){if(Me().isValidElement(c))return c;if(typeof c=="boolean"&&!c)return null;var L=Bt(c);return L.spinning?(0,y.jsx)(Rt.Z,(0,f.Z)({},L)):null},[c]),k=(0,i.useMemo)(function(){var L=J||R;if(e.waterMarkProps||Z.waterMarkProps){var pe=(0,f.Z)((0,f.Z)({},Z.waterMarkProps),e.waterMarkProps);return(0,y.jsx)(Tt,(0,f.Z)((0,f.Z)({},pe),{},{children:L}))}return L},[e.waterMarkProps,Z.waterMarkProps,J,R]);return(0,y.jsxs)("div",{style:m,className:$,children:[s&&D?(0,y.jsx)(u,(0,f.Z)((0,f.Z)({offsetTop:Z.hasHeader&&Z.fixedHeader?Z.headerHeight:0},C),{},{children:D})):D,k&&(0,y.jsx)(Ae,{children:k}),x&&(0,y.jsx)(Q,{prefixCls:w,children:x})]})},Ft=Lt},83535:function(Ze,q,l){l.d(q,{C:function(){return ye}});var z=l(60795),S=l(87807),A=l(18790),_=l(17079),Ee=l(84875),Ne=l.n(Ee),rt=l(71860),Fe=l(33951),g=l(63313),W=l(82259),Re=l(99043),at=l(11847),i=g.createContext("default"),Me=function(u){var T=u.children,h=u.size;return g.createElement(i.Consumer,null,function(p){return g.createElement(i.Provider,{value:h||p},T)})},oe=i,He=function(b,u){var T={};for(var h in b)Object.prototype.hasOwnProperty.call(b,h)&&u.indexOf(h)<0&&(T[h]=b[h]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,h=Object.getOwnPropertySymbols(b);p<h.length;p++)u.indexOf(h[p])<0&&Object.prototype.propertyIsEnumerable.call(b,h[p])&&(T[h[p]]=b[h[p]]);return T},Ie=function(u,T){var h,p,le=g.useContext(oe),f=g.useState(1),se=(0,_.Z)(f,2),M=se[0],te=se[1],G=g.useState(!1),K=(0,_.Z)(G,2),re=K[0],fe=K[1],X=g.useState(!0),ce=(0,_.Z)(X,2),Y=ce[0],de=ce[1],H=g.useRef(null),I=g.useRef(null),ue=(0,Fe.sQ)(T,H),Te=g.useContext(W.E_),je=Te.getPrefixCls,Ce=function(){if(!(!I.current||!H.current)){var F=I.current.offsetWidth,Q=H.current.offsetWidth;if(F!==0&&Q!==0){var tt=u.gap,Ae=tt===void 0?4:tt;Ae*2<Q&&te(Q-Ae*2<F?(Q-Ae*2)/F:1)}}};g.useEffect(function(){fe(!0)},[]),g.useEffect(function(){de(!0),te(1)},[u.src]),g.useEffect(function(){Ce()},[u.gap]);var Ke=function(){var F=u.onError,Q=F?F():void 0;Q!==!1&&de(!1)},Xe=u.prefixCls,we=u.shape,Ye=we===void 0?"circle":we,Ve=u.size,Qe=Ve===void 0?"default":Ve,ve=u.src,Je=u.srcSet,me=u.icon,Be=u.className,lt=u.alt,st=u.draggable,qe=u.children,ct=u.crossOrigin,be=He(u,["prefixCls","shape","size","src","srcSet","icon","className","alt","draggable","children","crossOrigin"]),j=Qe==="default"?le:Qe,dt=Object.keys((0,A.Z)(j)==="object"?j||{}:{}).some(function(he){return["xs","sm","md","lg","xl","xxl"].includes(he)}),_e=(0,Re.Z)(dt),ut=g.useMemo(function(){if((0,A.Z)(j)!=="object")return{};var he=at.c4.find(function(Q){return _e[Q]}),F=j[he];return F?{width:F,height:F,lineHeight:"".concat(F,"px"),fontSize:me?F/2:18}:{}},[_e,j]),V=je("avatar",Xe),ft=Ne()((h={},(0,S.Z)(h,"".concat(V,"-lg"),j==="large"),(0,S.Z)(h,"".concat(V,"-sm"),j==="small"),h)),et=g.isValidElement(ve),vt=Ne()(V,ft,(p={},(0,S.Z)(p,"".concat(V,"-").concat(Ye),!!Ye),(0,S.Z)(p,"".concat(V,"-image"),et||ve&&Y),(0,S.Z)(p,"".concat(V,"-icon"),!!me),p),Be),ze=typeof j=="number"?{width:j,height:j,lineHeight:"".concat(j,"px"),fontSize:me?j/2:18}:{},ae;if(typeof ve=="string"&&Y)ae=g.createElement("img",{src:ve,draggable:st,srcSet:Je,onError:Ke,alt:lt,crossOrigin:ct});else if(et)ae=ve;else if(me)ae=me;else if(re||M!==1){var y="scale(".concat(M,") translateX(-50%)"),Pe={msTransform:y,WebkitTransform:y,transform:y},mt=typeof j=="number"?{lineHeight:"".concat(j,"px")}:{};ae=g.createElement(rt.Z,{onResize:Ce},g.createElement("span",{className:"".concat(V,"-string"),ref:I,style:(0,z.Z)((0,z.Z)({},mt),Pe)},qe))}else ae=g.createElement("span",{className:"".concat(V,"-string"),style:{opacity:0},ref:I},qe);return delete be.onError,delete be.gap,g.createElement("span",(0,z.Z)({},be,{style:(0,z.Z)((0,z.Z)((0,z.Z)({},ze),ut),be.style),className:vt,ref:ue}),ae)},nt=g.forwardRef(Ie),Se=nt,ot=l(52604),xe=l(15367),Oe=function(u){return u?typeof u=="function"?u():u:null},De=l(16082),We=function(b,u){var T={};for(var h in b)Object.prototype.hasOwnProperty.call(b,h)&&u.indexOf(h)<0&&(T[h]=b[h]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,h=Object.getOwnPropertySymbols(b);p<h.length;p++)u.indexOf(h[p])<0&&Object.prototype.propertyIsEnumerable.call(b,h[p])&&(T[h[p]]=b[h[p]]);return T},ie=function(u){var T=u.title,h=u.content,p=u.prefixCls;return!T&&!h?null:g.createElement(g.Fragment,null,T&&g.createElement("div",{className:"".concat(p,"-title")},Oe(T)),g.createElement("div",{className:"".concat(p,"-inner-content")},Oe(h)))},gt=g.forwardRef(function(b,u){var T=b.prefixCls,h=b.title,p=b.content,le=b._overlay,f=b.placement,se=f===void 0?"top":f,M=b.trigger,te=M===void 0?"hover":M,G=b.mouseEnterDelay,K=G===void 0?.1:G,re=b.mouseLeaveDelay,fe=re===void 0?.1:re,X=b.overlayStyle,ce=X===void 0?{}:X,Y=We(b,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),de=g.useContext(W.E_),H=de.getPrefixCls,I=H("popover",T),ue=H();return g.createElement(xe.Z,(0,z.Z)({placement:se,trigger:te,mouseEnterDelay:K,mouseLeaveDelay:fe,overlayStyle:ce},Y,{prefixCls:I,ref:u,overlay:le||g.createElement(ie,{prefixCls:I,title:h,content:p}),transitionName:(0,De.mL)(ue,"zoom-big",Y.transitionName)}))}),Ue=gt,ke=l(25515),Ge=function(u){var T=g.useContext(W.E_),h=T.getPrefixCls,p=T.direction,le=u.prefixCls,f=u.className,se=f===void 0?"":f,M=u.maxCount,te=u.maxStyle,G=u.size,K=h("avatar-group",le),re=Ne()(K,(0,S.Z)({},"".concat(K,"-rtl"),p==="rtl"),se),fe=u.children,X=u.maxPopoverPlacement,ce=X===void 0?"top":X,Y=u.maxPopoverTrigger,de=Y===void 0?"hover":Y,H=(0,ot.Z)(fe).map(function(je,Ce){return(0,ke.Tm)(je,{key:"avatar-key-".concat(Ce)})}),I=H.length;if(M&&M<I){var ue=H.slice(0,M),Te=H.slice(M,I);return ue.push(g.createElement(Ue,{key:"avatar-popover-key",content:Te,trigger:de,placement:ce,overlayClassName:"".concat(K,"-popover")},g.createElement(Se,{style:te},"+".concat(I-M)))),g.createElement(Me,{size:G},g.createElement("div",{className:re,style:u.style},ue))}return g.createElement(Me,{size:G},g.createElement("div",{className:re,style:u.style},H))},it=Ge,ee=Se;ee.Group=it;var ye=ee},41498:function(){},82621:function(Ze,q,l){var z=l(90265),S=l(34626)},34626:function(Ze,q,l){var z=l(90265)},71770:function(Ze,q){function l(z,S){for(var A=Object.assign({},z),_=0;_<S.length;_+=1){var Ee=S[_];delete A[Ee]}return A}q.Z=l}}]);
|
package/static/dist/index.html
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[1717],{86755:function(Q,E,e){var T=e(55258),r=(0,T.Z)({scriptUrl:["//at.alicdn.com/t/c/font_3354854_ob5y15ewlyq.js"]});E.Z=r},10966:function(Q,E,e){e.r(E),e.d(E,{default:function(){return ce}});var T=e(57213),r=e.n(T),c=e(54306),C=e.n(c),i=e(63313),P=e(91796),z=e(28706),D=e(71571),Z=e(68834),l=e(86755),t=e(11527),x={route:{routes:[{name:"\u767B\u5F55",path:"/login",hideInMenu:!0,component:"@/pages/login/index"},{name:"\u521D\u59CB\u5316",path:"/initialization",hideInMenu:!0,component:"@/pages/initialization/index"},{name:"\u9519\u8BEF",path:"/error",hideInMenu:!0,component:"@/pages/error/index"},{path:"/crontab",name:"\u5B9A\u65F6\u4EFB\u52A1",icon:(0,t.jsx)(l.Z,{type:"ql-icon-crontab"}),component:"@/pages/crontab/index"},{path:"/subscription",name:"\u8BA2\u9605\u7BA1\u7406",icon:(0,t.jsx)(l.Z,{type:"ql-icon-subs"}),component:"@/pages/subscription/index"},{path:"/env",name:"\u73AF\u5883\u53D8\u91CF",icon:(0,t.jsx)(l.Z,{type:"ql-icon-env"}),component:"@/pages/env/index"},{path:"/config",name:"\u914D\u7F6E\u6587\u4EF6",icon:(0,t.jsx)(l.Z,{type:"ql-icon-config"}),component:"@/pages/config/index"},{path:"/script",name:"\u811A\u672C\u7BA1\u7406",icon:(0,t.jsx)(l.Z,{type:"ql-icon-script"}),component:"@/pages/script/index"},{path:"/dependence",name:"\u4F9D\u8D56\u7BA1\u7406",icon:(0,t.jsx)(l.Z,{type:"ql-icon-dependence"}),component:"@/pages/dependence/index"},{path:"/log",name:"\u65E5\u5FD7\u7BA1\u7406",icon:(0,t.jsx)(l.Z,{type:"ql-icon-log"}),component:"@/pages/log/index"},{path:"/diff",name:"\u5BF9\u6BD4\u5DE5\u5177",icon:(0,t.jsx)(l.Z,{type:"ql-icon-diff"}),component:"@/pages/diff/index"},{path:"/setting",name:"\u7CFB\u7EDF\u8BBE\u7F6E",icon:(0,t.jsx)(Z.Z,{}),component:"@/pages/password/index"}]},navTheme:"light",fixSiderbar:!0,contentWidth:"Fixed",splitMenus:!1,siderWidth:180},u=e(87075),f=e(50988),h=e(3513),S=e(63386),y=e(85153),m=e(5558),j=e(95176),O=e(86563),K=e.n(O),L=e(62753),k=e(12094),A=e(15367),N=e(13217),R=e(34133),H=e(83535),ae=e(78078),oe=e.n(ae),se=e(45638),ie=e(79516),re=e(42078),le=e(25940),ue=e(82755);function de(v){re.S({dsn:"https://3406424fb1dc4813a62d39e844a9d0ac@o1098464.ingest.sentry.io/6122818",integrations:[new le.jK.BrowserTracing({shouldCreateSpanForRequest:function(g){return!g.includes("/api/ws")&&!g.includes("/api/static")}})],release:v,tracesSampleRate:.1,beforeBreadcrumb:function(g,F){if(g.data&&g.data.url){var B=g.data.url.replace(/token=.*/,"");g.data.url=B}return g}}),ue._m.config({paths:{vs:"https://cdn.staticfile.org/monaco-editor/0.33.0/min/vs"},"vs/nls":{availableLanguages:{"*":"zh-cn"}}})}var Re=e(23836),Be=e(34637),Ue=e(85797);function ce(){var v=(0,u.useLocation)(),M=(0,L.e)(),g=(0,L.F)(),F=g.theme,B=g.reloadTheme,fe=(0,i.useState)({}),w=C()(fe,2),d=w[0],he=w[1],me=(0,i.useState)(!0),G=C()(me,2),J=G[0],V=G[1],ge=(0,i.useState)(),$=C()(ge,2),s=$[0],ve=$[1],U=(0,i.useRef)(null),pe=(0,i.useState)(),X=C()(pe,2),xe=X[0],Se=X[1],ye=(0,i.useState)(!1),Y=C()(ye,2),je=Y[0],q=Y[1],Ce=(0,i.useState)(!0),_=C()(Ce,2),Ee=_[0],Me=_[1],I=D||{},Te=I.enable,ee=I.disable,We=I.exportGeneratedCSS,Ze=I.setFetchMethod,Le=I.auto,Fe=function(){j.W.post("".concat(m.Z.apiPrefix,"user/logout")).then(function(){localStorage.removeItem(m.Z.authKey),u.history.push("/login")})},Ie=function(){j.W.get("".concat(m.Z.apiPrefix,"system")).then(function(n){var o=n.code,p=n.data;o===200&&(ve(p),p.isInitialized?(de(p.version),b()):u.history.push("/initialization"))}).catch(function(n){console.log(n)})},b=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n&&V(!0),j.W.get("".concat(m.Z.apiPrefix,"user")).then(function(o){var p=o.code,W=o.data;p===200&&W.username&&(he(W),v.pathname==="/"&&u.history.push("/crontab")),n&&V(!1)}).catch(function(o){console.log(o)})},Pe=function(){j.W.get("".concat(m.Z.apiPrefix,"public/health")).then(function(n){var o;(n==null||(o=n.data)===null||o===void 0?void 0:o.status)===1?Ie():u.history.push("/error")}).catch(function(n){u.history.push("/error")}).finally(function(){return Me(!1)})},te=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;b(n)};if((0,i.useEffect)(function(){s&&s.isInitialized&&!d&&b()},[v.pathname]),(0,i.useEffect)(function(){Pe()},[]),(0,i.useEffect)(function(){F==="vs-dark"?document.body.setAttribute("data-dark","true"):document.body.setAttribute("data-dark","false")},[F]),(0,i.useEffect)(function(){K()();var a=localStorage.getItem("qinglong_dark_theme")||"auto";if(typeof window!="undefined"&&typeof window.matchMedia!="undefined")return D?(Ze(fetch),a==="dark"?Te({}):a==="light"?ee():Le({}),function(){ee()}):function(){return null}},[]),(0,i.useEffect)(function(){if(!(!d||!d.username)){U.current=new(oe())("".concat(window.location.origin,"/api/ws?token=").concat(localStorage.getItem(m.Z.authKey))),U.current.onmessage=function(n){try{var o=JSON.parse(n.data);o.type==="ping"&&(o&&o.message==="hanhh"?console.log("WS connection succeeded !!!"):console.log("WS connection Failed !!!",n)),Se(o)}catch(p){console.log("websocket\u8FDE\u63A5\u5931\u8D25",n)}};var a=U.current;return function(){a.close()}}},[d]),(0,i.useEffect)(function(){window.onload=function(){var a=performance.timing;console.log("\u767D\u5C4F\u65F6\u95F4: ".concat(a.responseStart-a.navigationStart)),console.log("\u8BF7\u6C42\u5B8C\u6BD5\u81F3DOM\u52A0\u8F7D: ".concat(a.domInteractive-a.responseEnd)),console.log("\u89E3\u91CAdom\u6811\u8017\u65F6: ".concat(a.domComplete-a.domInteractive)),console.log("\u4ECE\u5F00\u59CB\u81F3load\u603B\u8017\u65F6: ".concat(a.loadEventEnd-a.navigationStart)),se.uT("\u767D\u5C4F\u65F6\u95F4 ".concat(a.responseStart-a.navigationStart))}},[]),Ee)return(0,t.jsx)(P.Z,{});if(["/login","/initialization","/error"].includes(v.pathname)&&(s!=null&&s.isInitialized&&v.pathname==="/initialization"&&u.history.push("/crontab"),s||v.pathname==="/error"))return(0,t.jsx)(u.Outlet,{context:r()(r()({},M),{},{theme:F,user:d,reloadUser:te,reloadTheme:B,ws:U.current})});var De=navigator.userAgent.includes("Firefox"),Oe=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"),Ae=navigator.userAgent.includes("QQBrowser"),ne={items:[{label:"\u9000\u51FA\u767B\u5F55",className:"side-menu-user-drop-menu",onClick:Fe,key:"logout",icon:(0,t.jsx)(f.Z,{})}]};return J?(0,t.jsx)(P.Z,{}):(0,t.jsx)(z.ZP,r()(r()({selectedKeys:[v.pathname],loading:J,ErrorBoundary:ie.SV,logo:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.Z,{preview:!1,src:"https://qn.whyour.cn/logo.png"}),(0,t.jsxs)("div",{className:"title",children:[(0,t.jsx)("span",{className:"title",children:"\u9752\u9F99"}),(0,t.jsx)("a",{href:s==null?void 0:s.changeLogLink,target:"_blank",rel:"noopener noreferrer",onClick:function(n){n.stopPropagation()},children:(0,t.jsx)(A.Z,{title:(s==null?void 0:s.branch)==="develop"?"\u5F00\u53D1\u7248":"\u6B63\u5F0F\u7248",children:(0,t.jsx)(N.Z,{size:"small",dot:(s==null?void 0:s.branch)==="develop",children:(0,t.jsxs)("span",{style:{fontSize:De?9:12,color:"#666",marginLeft:2,zoom:Oe?.66:.8,letterSpacing:Ae?-2:0},children:["v",s==null?void 0:s.version]})})})})]})]}),title:!1,menuItemRender:function(n,o){return n.isUrl||!n.path||v.pathname===n.path?o:(0,t.jsx)(u.Link,{to:n.path,children:o})},pageTitleRender:function(n,o,p){var W=m.Z.documentTitleMap[v.pathname]||"\u672A\u627E\u5230";return"".concat(W," - \u9752\u9F99")},onCollapse:q,collapsed:je,rightContentRender:function(){return M.isPhone&&(0,t.jsx)(R.Z,{menu:ne,placement:"bottomRight",trigger:["click"],children:(0,t.jsxs)("span",{className:"side-menu-user-wrapper",children:[(0,t.jsx)(H.C,{shape:"square",size:"small",icon:(0,t.jsx)(h.Z,{}),src:d.avatar?"/api/static/".concat(d.avatar):""}),(0,t.jsx)("span",{style:{marginLeft:5},children:d.username})]})})},collapsedButtonRender:function(n){return(0,t.jsxs)("span",{className:"side-menu-container",onClick:function(p){p.preventDefault(),p.stopPropagation()},children:[!n&&!M.isPhone&&(0,t.jsx)(R.Z,{menu:ne,placement:"topLeft",trigger:["hover"],children:(0,t.jsxs)("span",{className:"side-menu-user-wrapper",children:[(0,t.jsx)(H.C,{shape:"square",size:"small",icon:(0,t.jsx)(h.Z,{}),src:d.avatar?"/api/static/".concat(d.avatar):""}),(0,t.jsx)("span",{style:{marginLeft:5},children:d.username})]})}),(0,t.jsx)("span",{className:"side-menu-collapse-button",onClick:function(){return q(!n)},children:n?(0,t.jsx)(S.Z,{}):(0,t.jsx)(y.Z,{})})]})}},x),{},{children:(0,t.jsx)(u.Outlet,{context:r()(r()({},M),{},{theme:F,user:d,reloadUser:te,reloadTheme:B,socketMessage:xe,systemInfo:s})})}))}},62753:function(Q,E,e){e.d(E,{F:function(){return z},e:function(){return P}});var T=e(54306),r=e.n(T),c=e(63313),C=e.n(c),i=e(82428),P=function(){var Z=(0,c.useState)("100%"),l=r()(Z,2),t=l[0],x=l[1],u=(0,c.useState)(0),f=r()(u,2),h=f[0],S=f[1],y=(0,c.useState)(-48),m=r()(y,2),j=m[0],O=m[1],K=(0,c.useState)(!1),L=r()(K,2),k=L[0],A=L[1],N=(0,c.useMemo)(function(){return(0,i.ZP)()},[]),R=N.platform;return(0,c.useEffect)(function(){R==="mobile"&&document.body.offsetWidth<768?(x("auto"),S(0),O(0),A(!0),document.body.setAttribute("data-mode","phone")):(x("100%"),S(0),O(-48),A(!1),document.body.setAttribute("data-mode","desktop"))},[]),{headerStyle:{padding:"4px 16px 4px 15px",position:"sticky",top:0,left:0,zIndex:20,marginTop:j,width:t,marginLeft:h},isPhone:k}},z=function(){var Z=(0,c.useState)(),l=r()(Z,2),t=l[0],x=l[1],u=function(){var h=window.matchMedia("(prefers-color-scheme: dark)"),S=localStorage.getItem("qinglong_dark_theme"),y=h.matches&&S!=="light"||S==="dark";x(y?"vs-dark":"vs")};return(0,c.useEffect)(function(){var f=window.matchMedia("(prefers-color-scheme: dark)"),h=localStorage.getItem("qinglong_dark_theme"),S=f.matches&&h!=="light"||h==="dark";x(S?"vs-dark":"vs");var y=function(j){(h==="auto"||!h)&&(j.matches?x("vs-dark"):x("vs"))};typeof f.addEventListener=="function"?f.addEventListener("change",y):typeof f.addListener=="function"&&f.addListener(y)},[]),{theme:t,reloadTheme:u}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[4650],{65905:function(C,n,e){e.d(n,{Z:function(){return i}});var c=e(14797),a=e(63313),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},l=E,r=e(46420),t=function(s,N){return a.createElement(r.Z,(0,c.Z)((0,c.Z)({},s),{},{ref:N,icon:l}))};t.displayName="CheckCircleFilled";var i=a.forwardRef(t)},59673:function(C,n,e){e.d(n,{Z:function(){return i}});var c=e(14797),a=e(63313),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},l=E,r=e(46420),t=function(s,N){return a.createElement(r.Z,(0,c.Z)((0,c.Z)({},s),{},{ref:N,icon:l}))};t.displayName="CheckOutlined";var i=a.forwardRef(t)},47679:function(C,n,e){e.d(n,{Z:function(){return i}});var c=e(14797),a=e(63313),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},l=E,r=e(46420),t=function(s,N){return a.createElement(r.Z,(0,c.Z)((0,c.Z)({},s),{},{ref:N,icon:l}))};t.displayName="ExclamationCircleFilled";var i=a.forwardRef(t)},
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[4650],{65905:function(C,n,e){e.d(n,{Z:function(){return i}});var c=e(14797),a=e(63313),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},l=E,r=e(46420),t=function(s,N){return a.createElement(r.Z,(0,c.Z)((0,c.Z)({},s),{},{ref:N,icon:l}))};t.displayName="CheckCircleFilled";var i=a.forwardRef(t)},59673:function(C,n,e){e.d(n,{Z:function(){return i}});var c=e(14797),a=e(63313),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},l=E,r=e(46420),t=function(s,N){return a.createElement(r.Z,(0,c.Z)((0,c.Z)({},s),{},{ref:N,icon:l}))};t.displayName="CheckOutlined";var i=a.forwardRef(t)},47679:function(C,n,e){e.d(n,{Z:function(){return i}});var c=e(14797),a=e(63313),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},l=E,r=e(46420),t=function(s,N){return a.createElement(r.Z,(0,c.Z)((0,c.Z)({},s),{},{ref:N,icon:l}))};t.displayName="ExclamationCircleFilled";var i=a.forwardRef(t)},51967:function(C,n,e){e.r(n);var c=e(63313),a=e.n(c),E=e(92260),l=e(4925),r=e(24378),t=e(11527),i=E.Z.Link,d=function(){return(0,t.jsx)(l.ZP,{status:"404",title:"404",extra:(0,t.jsx)(r.Z,{type:"primary",children:(0,t.jsx)(i,{href:"/",children:"\u8FD4\u56DE\u9996\u9875"})})})};n.default=d},25641:function(C,n){var e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(a){var E=a.keyCode;if(a.altKey&&!a.ctrlKey||a.metaKey||E>=e.F1&&E<=e.F12)return!1;switch(E){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(a){if(a>=e.ZERO&&a<=e.NINE||a>=e.NUM_ZERO&&a<=e.NUM_MULTIPLY||a>=e.A&&a<=e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&a===0)return!0;switch(a){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};n.Z=e}}]);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[5825],{37126:function(O,d,e){e.d(d,{Z:function(){return c}});var i=e(14797),t=e(63313),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},h=r,u=e(46420),l=function(s,n){return t.createElement(u.Z,(0,i.Z)((0,i.Z)({},s),{},{ref:n,icon:h}))};l.displayName="SearchOutlined";var c=t.forwardRef(l)},47787:function(O,d,e){e.r(d);var i=e(54306),t=e.n(i),r=e(63313),h=e.n(r),u=e(9835),l=e(75310),c=e(24378),o=e(5558),s=e(78969),n=e(95176),a=e(82755),p=e(76661),_=e(87075),E=e(11527),m=function(){var v=(0,_.useOutletContext)(),P=v.headerStyle,y=v.isPhone,D=v.theme,g=(0,r.useState)(""),A=t()(g,2),T=A[0],I=A[1],H=(0,r.useState)(!0),R=t()(H,2),F=R[0],K=R[1],G=(0,r.useState)("config.sh"),L=t()(G,2),j=L[0],q=L[1],Q=(0,r.useState)("config.sh"),N=t()(Q,2),B=N[0],X=N[1],V=(0,r.useState)([]),x=t()(V,2),z=x[0],$=x[1],U=(0,r.useRef)(null),Y=(0,r.useState)(!1),W=t()(Y,2),J=W[0],k=W[1],w=function(M){n.W.get("".concat(o.Z.apiPrefix,"configs/").concat(M)).then(function(b){var C=b.code,Z=b.data;C===200&&I(Z)})},ee=function(){K(!0),n.W.get("".concat(o.Z.apiPrefix,"configs/files")).then(function(M){var b=M.code,C=M.data;b===200&&$(C)}).finally(function(){return K(!1)})},te=function(){k(!0);var M=U.current?U.current.getValue().replace(/\r\n/g,`
|
|
2
|
+
`):T;n.W.post("".concat(o.Z.apiPrefix,"configs/save"),{content:M,name:B}).then(function(b){var C=b.code,Z=b.data;C===200&&u.ZP.success("\u4FDD\u5B58\u6210\u529F"),k(!1)})},ae=function(M,b){X(M),q(b.value),w(b.value)};return(0,r.useEffect)(function(){ee(),w("config.sh")},[]),(0,E.jsx)(s.ZP,{className:"ql-container-wrapper config-wrapper",title:j,loading:F,extra:[(0,E.jsx)(l.Z,{treeExpandAction:"click",className:"config-select",value:B,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:z,defaultValue:"config.sh",onSelect:ae},"value"),(0,E.jsx)(c.Z,{loading:J,type:"primary",onClick:te,children:"\u4FDD\u5B58"},"1")],header:{style:P},children:y?(0,E.jsx)(p.fk,{value:T,options:{lineNumbers:!0,styleActiveLine:!0,matchBrackets:!0,mode:"shell"},onBeforeChange:function(M,b,C){I(C)},onChange:function(M,b,C){}}):(0,E.jsx)(a.ZP,{defaultLanguage:"shell",value:T,theme:D,options:{fontSize:12,lineNumbersMinChars:3,folding:!1,glyphMargin:!1},onMount:function(M){U.current=M}})})};d.default=m},5558:function(O,d){var e=window.__ENV__QlBaseUrl||"/";d.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
|
|
3
|
+
`},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
|
|
4
|
+
Custom-Header2: Header2`},{label:"webhookBody",tip:"\u8BF7\u6C42\u4F53\u683C\u5F0Fkey1: value1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",placeholder:`key1: $title
|
|
5
|
+
key2: $content`}]},documentTitleMap:{"/login":"\u767B\u5F55","/initialization":"\u521D\u59CB\u5316","/crontab":"\u5B9A\u65F6\u4EFB\u52A1","/env":"\u73AF\u5883\u53D8\u91CF","/subscription":"\u8BA2\u9605\u7BA1\u7406","/config":"\u914D\u7F6E\u6587\u4EF6","/script":"\u811A\u672C\u7BA1\u7406","/diff":"\u5BF9\u6BD4\u5DE5\u5177","/log":"\u65E5\u5FD7\u7BA1\u7406","/setting":"\u7CFB\u7EDF\u8BBE\u7F6E","/error":"\u9519\u8BEF\u65E5\u5FD7","/dependence":"\u4F9D\u8D56\u7BA1\u7406"},dependenceTypes:["nodejs","python3","linux"]}},95176:function(O,d,e){e.d(d,{W:function(){return _}});var i=e(25359),t=e.n(i),r=e(49811),h=e.n(r),u=e(9835),l=e(5558),c=e(87075),o=e(73669);u.ZP.config({duration:2});var s=Date.now(),n=function(m){if(m.response){var f=m.response.data?m.response.data.message||m.message||m.response.data:m.response.statusText,v=m.response.status;[502,504].includes(v)?c.history.push("/error"):v===401?c.history.location.pathname!=="/login"&&(u.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(l.Z.authKey),c.history.push("/login")):u.ZP.error({content:f,style:{maxWidth:500,margin:"0 auto"}})}else console.log(m.message);return Promise.reject(m)},a=o.Z.create({timeout:6e4,params:{t:s}}),p=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];a.interceptors.request.use(function(E){var m=localStorage.getItem(l.Z.authKey);return m&&!p.includes(E.url)&&(E.headers.Authorization="Bearer ".concat(m)),E}),a.interceptors.response.use(function(){var E=h()(t()().mark(function m(f){var v,P,y;return t()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(v=f.status,![502,504].includes(v)){g.next=5;break}c.history.push("/error"),g.next=18;break;case 5:if(v!==401){g.next=9;break}c.history.location.pathname!=="/login"&&(localStorage.removeItem(l.Z.authKey),c.history.push("/login")),g.next=18;break;case 9:return g.prev=9,P=f.data,P.code!==200&&(y=P.message||P.data,y&&u.ZP.error({content:y,style:{maxWidth:500,margin:"0 auto"}})),g.abrupt("return",P);case 15:g.prev=15,g.t0=g.catch(9);case 17:return g.abrupt("return",f);case 18:return g.abrupt("return",f);case 19:case"end":return g.stop()}},m,null,[[9,15]])}));return function(m){return E.apply(this,arguments)}}(),n);var _=a},52105:function(O,d,e){var i=e(17079),t=e(63313),r=e.n(t),h=e(68098);d.Z=function(){var u=t.useState(!1),l=(0,i.Z)(u,2),c=l[0],o=l[1];return t.useEffect(function(){o((0,h.fk)())},[]),c}},11847:function(O,d,e){e.d(d,{c4:function(){return r}});var i=e(87807),t=e(60795),r=["xxl","xl","lg","md","sm","xs"],h={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},u=new Map,l=-1,c={},o={matchHandlers:{},dispatch:function(n){return c=n,u.forEach(function(a){return a(c)}),u.size>=1},subscribe:function(n){return u.size||this.register(),l+=1,u.set(l,n),n(c),l},unsubscribe:function(n){u.delete(n),u.size||this.unregister()},unregister:function(){var n=this;Object.keys(h).forEach(function(a){var p=h[a],_=n.matchHandlers[p];_==null||_.mql.removeListener(_==null?void 0:_.listener)}),u.clear()},register:function(){var n=this;Object.keys(h).forEach(function(a){var p=h[a],_=function(f){var v=f.matches;n.dispatch((0,t.Z)((0,t.Z)({},c),(0,i.Z)({},a,v)))},E=window.matchMedia(p);E.addListener(_),n.matchHandlers[p]={mql:E,listener:_},_(E)})}};d.ZP=o},1020:function(O,d,e){e.d(d,{F:function(){return c},Z:function(){return l}});var i=e(87807),t=e(84875),r=e.n(t),h=e(20341),u=(0,h.b)("warning","error","");function l(o,s,n){var a;return r()((a={},(0,i.Z)(a,"".concat(o,"-status-success"),s==="success"),(0,i.Z)(a,"".concat(o,"-status-warning"),s==="warning"),(0,i.Z)(a,"".concat(o,"-status-error"),s==="error"),(0,i.Z)(a,"".concat(o,"-status-validating"),s==="validating"),(0,i.Z)(a,"".concat(o,"-has-feedback"),n),a))}var c=function(s,n){return n||s}},68098:function(O,d,e){e.d(d,{fk:function(){return h},jD:function(){return t}});var i=e(65021),t=function(){return(0,i.Z)()&&window.document.documentElement},r,h=function(){if(!t())return!1;if(r!==void 0)return r;var l=document.createElement("div");return l.style.display="flex",l.style.flexDirection="column",l.style.rowGap="1px",l.appendChild(document.createElement("div")),l.appendChild(document.createElement("div")),document.body.appendChild(l),r=l.scrollHeight===1,document.body.removeChild(l),r}},20277:function(O,d,e){var i=e(60795),t=e(25641),r=e(63313),h=e.n(r),u=function(o,s){var n={};for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&s.indexOf(a)<0&&(n[a]=o[a]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,a=Object.getOwnPropertySymbols(o);p<a.length;p++)s.indexOf(a[p])<0&&Object.prototype.propertyIsEnumerable.call(o,a[p])&&(n[a[p]]=o[a[p]]);return n},l={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},c=r.forwardRef(function(o,s){var n=function(P){var y=P.keyCode;y===t.Z.ENTER&&P.preventDefault()},a=function(P){var y=P.keyCode,D=o.onClick;y===t.Z.ENTER&&D&&D()},p=o.style,_=o.noStyle,E=o.disabled,m=u(o,["style","noStyle","disabled"]),f={};return _||(f=(0,i.Z)({},l)),E&&(f.pointerEvents="none"),f=(0,i.Z)((0,i.Z)({},f),p),r.createElement("div",(0,i.Z)({role:"button",tabIndex:0,ref:s},m,{onKeyDown:n,onKeyUp:a,style:f}))});d.Z=c},25641:function(O,d){var e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=e.F1&&r<=e.F12)return!1;switch(r){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=e.ZERO&&t<=e.NINE||t>=e.NUM_ZERO&&t<=e.NUM_MULTIPLY||t>=e.A&&t<=e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};d.Z=e},43595:function(O,d,e){e.d(d,{Z:function(){return o}});var i=e(14797),t=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
6
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
7
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
8
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
9
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
10
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
11
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
12
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
13
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
14
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
15
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
16
|
+
summary tabIndex target title type useMap value width wmode wrap`,r=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
17
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
18
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
19
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
20
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
21
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
22
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,h="".concat(t," ").concat(r).split(/[\s\n]+/),u="aria-",l="data-";function c(s,n){return s.indexOf(n)===0}function o(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a;n===!1?a={aria:!0,data:!0,attr:!0}:n===!0?a={aria:!0}:a=(0,i.Z)({},n);var p={};return Object.keys(s).forEach(function(_){(a.aria&&(_==="role"||c(_,u))||a.data&&c(_,l)||a.attr&&h.includes(_))&&(p[_]=s[_])}),p}}}]);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[9558,5812],{25265:function(g,v,e){"use strict";e.d(v,{Z:function(){return m}});var l=e(14797),r=e(63313),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},t=u,d=e(46420),E=function(y,D){return r.createElement(d.Z,(0,l.Z)((0,l.Z)({},y),{},{ref:D,icon:t}))};E.displayName="FileOutlined";var m=r.forwardRef(E)},37126:function(g,v,e){"use strict";e.d(v,{Z:function(){return m}});var l=e(14797),r=e(63313),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},t=u,d=e(46420),E=function(y,D){return r.createElement(d.Z,(0,l.Z)((0,l.Z)({},y),{},{ref:D,icon:t}))};E.displayName="SearchOutlined";var m=r.forwardRef(E)},86755:function(g,v,e){"use strict";var l=e(55258),r=(0,l.Z)({scriptUrl:["//at.alicdn.com/t/c/font_3354854_ob5y15ewlyq.js"]});v.Z=r},62814:function(g,v,e){"use strict";e.r(v);var l=e(57213),r=e.n(l),u=e(54306),t=e.n(u),d=e(63313),E=e.n(d),m=e(92260),h=e(64865),y=e(84163),D=e(9835),P=e(394),L=e(51704),Z=e(15367),a=e(24378),q=e(1953),B=e(25265),A=e(44968),S=e(69685),_=e(20209),$=e(65601),c=e(7688),i=e(76657),C=e(3563),o=e(33538),x=e(80755),R=e(95176),M=e(5558),T=e(42792),W=e(82755),j=e(86755),Y=e(82428),n=e(11527),U=m.Z.Text,ee=[{key:"log",tab:"\u65E5\u5FD7"},{key:"script",tab:"\u811A\u672C"}],p={".py":"python",".js":"javascript",".sh":"shell",".ts":"typescript"},G=navigator.language||navigator.languages[0],te=function(X){var z,N,K,O=X.cron,F=O===void 0?{}:O,ae=X.handleCancel,I=X.visible,re=X.theme,H=X.isPhone,k=(0,d.useState)("log"),le=t()(k,2),w=le[0],ne=le[1],ue=(0,d.useState)(!0),de=t()(ue,2),_e=de[0],se=de[1],he=(0,d.useState)([]),Pe=t()(he,2),xe=Pe[0],ce=Pe[1],ie=(0,d.useState)(""),fe=t()(ie,2),Oe=fe[0],Ee=fe[1],me=(0,d.useState)(""),pe=t()(me,2),be=pe[0],Ae=pe[1],Ue=(0,d.useState)(!1),Ze=t()(Ue,2),Ke=Ze[0],Re=Ze[1],De=(0,d.useRef)(null),Fe=(0,d.useState)({}),je=t()(Fe,2),ge=je[0],Ne=je[1],$e=(0,d.useState)(""),Te=t()($e,2),ze=Te[0],we=Te[1],Ve=(0,d.useState)(ee),Be=t()(Ve,2),Me=Be[0],Se=Be[1],Ge=(0,d.useState)({}),Ie=t()(Ge,2),s=Ie[0],Ce=Ie[1],He={log:(0,n.jsx)(h.ZP,{dataSource:xe,loading:_e,renderItem:function(f){return(0,n.jsxs)(h.ZP.Item,{className:"log-item",onClick:function(){return Je(f)},children:[(0,n.jsx)(B.Z,{style:{marginRight:10}}),f.directory,"/",f.filename]})}}),script:ge.filename&&(0,n.jsx)(W.ZP,{language:p[ge.filename.slice(-3)]||"",theme:re,value:be,options:{fontSize:12,lineNumbersMinChars:3,fontFamily:"Source Code Pro",glyphMargin:!1,wordWrap:"on"},onMount:function(f,b){De.current=f}})},Je=function(f){localStorage.setItem("logCron",s.id),we("".concat(M.Z.apiPrefix,"logs/").concat(f.filename,"?path=").concat(f.directory||"")),R.W.get("".concat(M.Z.apiPrefix,"logs/").concat(f.filename,"?path=").concat(f.directory||"")).then(function(b){var J=b.code,oe=b.data;J===200&&(Ee(oe),Re(!0))})},Qe=function(f){ne(f)},Le=function(){se(!0),R.W.get("".concat(M.Z.apiPrefix,"crons/").concat(F.id,"/logs")).then(function(f){var b=f.code,J=f.data;b===200&&ce(J)}).finally(function(){return se(!1)})},Ye=function(){var f=(0,Y.FA)(F.command);if(Array.isArray(f)){Se(Me);var b=t()(f,2),J=b[0],oe=b[1];Ne({parent:oe,filename:J}),R.W.get("".concat(M.Z.apiPrefix,"scripts/").concat(J,"?path=").concat(oe||"")).then(function(ve){var ye=ve.code,We=ve.data;ye===200&&Ae(We)})}else f&&Se([Me[0]])},Xe=function(){y.Z.confirm({title:"\u786E\u8BA4\u4FDD\u5B58",content:(0,n.jsxs)(n.Fragment,{children:["\u786E\u8BA4\u4FDD\u5B58\u6587\u4EF6",(0,n.jsx)(U,{style:{wordBreak:"break-all"},type:"warning",children:ge.filename})," ","\uFF0C\u4FDD\u5B58\u540E\u4E0D\u53EF\u6062\u590D"]}),onOk:function(){var b=De.current?De.current.getValue().replace(/\r\n/g,`
|
|
2
|
+
`):be;return new Promise(function(J,oe){R.W.put("".concat(M.Z.apiPrefix,"scripts"),{filename:ge.filename,path:ge.parent||"",content:b}).then(function(ve){var ye=ve.code,We=ve.data;ye===200&&(Ae(b),D.ZP.success("\u4FDD\u5B58\u6210\u529F")),J(null)}).catch(function(ve){return oe(ve)})})},onCancel:function(){console.log("Cancel")}})},ke=function(){y.Z.confirm({title:"\u786E\u8BA4\u8FD0\u884C",content:(0,n.jsxs)(n.Fragment,{children:["\u786E\u8BA4\u8FD0\u884C\u5B9A\u65F6\u4EFB\u52A1"," ",(0,n.jsx)(U,{style:{wordBreak:"break-all"},type:"warning",children:s.name})," ","\u5417"]}),onOk:function(){R.W.put("".concat(M.Z.apiPrefix,"crons/run"),[s.id]).then(function(b){var J=b.code,oe=b.data;J===200&&(Ce(r()(r()({},s),{},{status:o.CrontabStatus.running})),setTimeout(function(){Le()},1e3))})},onCancel:function(){console.log("Cancel")}})},qe=function(){y.Z.confirm({title:"\u786E\u8BA4\u505C\u6B62",content:(0,n.jsxs)(n.Fragment,{children:["\u786E\u8BA4\u505C\u6B62\u5B9A\u65F6\u4EFB\u52A1"," ",(0,n.jsx)(U,{style:{wordBreak:"break-all"},type:"warning",children:s.name})," ","\u5417"]}),onOk:function(){R.W.put("".concat(M.Z.apiPrefix,"crons/stop"),[s.id]).then(function(b){var J=b.code,oe=b.data;J===200&&Ce(r()(r()({},s),{},{status:o.CrontabStatus.idle}))})},onCancel:function(){console.log("Cancel")}})},en=function(){y.Z.confirm({title:"\u786E\u8BA4".concat(s.isDisabled===1?"\u542F\u7528":"\u7981\u7528"),content:(0,n.jsxs)(n.Fragment,{children:["\u786E\u8BA4",s.isDisabled===1?"\u542F\u7528":"\u7981\u7528","\u5B9A\u65F6\u4EFB\u52A1"," ",(0,n.jsx)(U,{style:{wordBreak:"break-all"},type:"warning",children:s.name})," ","\u5417"]}),onOk:function(){R.W.put("".concat(M.Z.apiPrefix,"crons/").concat(s.isDisabled===1?"enable":"disable"),[s.id]).then(function(b){var J=b.code,oe=b.data;J===200&&Ce(r()(r()({},s),{},{isDisabled:s.isDisabled===1?0:1}))})},onCancel:function(){console.log("Cancel")}})},nn=function(){y.Z.confirm({title:"\u786E\u8BA4".concat(s.isPinned===1?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"),content:(0,n.jsxs)(n.Fragment,{children:["\u786E\u8BA4",s.isPinned===1?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876","\u5B9A\u65F6\u4EFB\u52A1"," ",(0,n.jsx)(U,{style:{wordBreak:"break-all"},type:"warning",children:s.name})," ","\u5417"]}),onOk:function(){R.W.put("".concat(M.Z.apiPrefix,"crons/").concat(s.isPinned===1?"unpin":"pin"),[s.id]).then(function(b){var J=b.code,oe=b.data;J===200&&Ce(r()(r()({},s),{},{isPinned:s.isPinned===1?0:1}))})},onCancel:function(){console.log("Cancel")}})},tn=function(){var f,b=De.current._domElement;(f=b.parentElement)===null||f===void 0||f.requestFullscreen()};return(0,d.useEffect)(function(){F&&F.id&&(Ce(F),Le(),Ye())},[F]),(0,n.jsxs)(y.Z,{title:(0,n.jsxs)("div",{className:"crontab-title-wrapper",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{children:s.name}),((z=s.labels)===null||z===void 0?void 0:z.length)>0&&s.labels[0]!==""&&(0,n.jsx)(P.Z,{type:"vertical"}),((N=s.labels)===null||N===void 0?void 0:N.length)>0&&s.labels[0]!==""&&((K=s.labels)===null||K===void 0?void 0:K.map(function(V,f){return(0,n.jsx)(L.Z,{color:"blue",style:{marginRight:5},children:V},V)}))]}),(0,n.jsxs)("div",{className:"operations",children:[(0,n.jsx)(Z.Z,{title:s.status===o.CrontabStatus.idle?"\u8FD0\u884C":"\u505C\u6B62",children:(0,n.jsx)(a.Z,{type:"link",icon:s.status===o.CrontabStatus.idle?(0,n.jsx)(A.Z,{}):(0,n.jsx)(S.Z,{}),size:"small",onClick:s.status===o.CrontabStatus.idle?ke:qe})}),(0,n.jsx)(Z.Z,{title:s.isDisabled===1?"\u542F\u7528":"\u7981\u7528",children:(0,n.jsx)(a.Z,{type:"link",icon:(0,n.jsx)(j.Z,{type:s.isDisabled===1?"ql-icon-enable":"ql-icon-disable"}),size:"small",onClick:en})}),(0,n.jsx)(Z.Z,{title:s.isPinned===1?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876",children:(0,n.jsx)(a.Z,{type:"link",icon:(0,n.jsx)(j.Z,{type:s.isPinned===1?"ql-icon-untop":"ql-icon-top"}),size:"small",onClick:nn})})]})]}),centered:!0,open:I,forceRender:!0,footer:!1,onCancel:function(){return ae()},wrapClassName:"crontab-detail",width:H?"":"80vw",children:[(0,n.jsxs)("div",{className:"card-wrapper",children:[(0,n.jsx)(q.Z,{children:(0,n.jsxs)("div",{className:"cron-detail-info-item",children:[(0,n.jsx)("div",{className:"cron-detail-info-title",children:"\u4EFB\u52A1"}),(0,n.jsx)("div",{className:"cron-detail-info-value",children:s.command})]})}),(0,n.jsxs)(q.Z,{style:{marginTop:10},children:[(0,n.jsxs)("div",{className:"cron-detail-info-item",children:[(0,n.jsx)("div",{className:"cron-detail-info-title",children:"\u72B6\u6001"}),(0,n.jsxs)("div",{className:"cron-detail-info-value",children:[(!s.isDisabled||s.status!==o.CrontabStatus.idle)&&(0,n.jsxs)(n.Fragment,{children:[s.status===o.CrontabStatus.idle&&(0,n.jsx)(L.Z,{icon:(0,n.jsx)(_.Z,{}),color:"default",children:"\u7A7A\u95F2\u4E2D"}),s.status===o.CrontabStatus.running&&(0,n.jsx)(L.Z,{icon:(0,n.jsx)($.Z,{spin:!0}),color:"processing",children:"\u8FD0\u884C\u4E2D"}),s.status===o.CrontabStatus.queued&&(0,n.jsx)(L.Z,{icon:(0,n.jsx)(c.Z,{}),color:"default",children:"\u961F\u5217\u4E2D"})]}),s.isDisabled===1&&s.status===o.CrontabStatus.idle&&(0,n.jsx)(L.Z,{icon:(0,n.jsx)(i.Z,{}),color:"error",children:"\u5DF2\u7981\u7528"})]})]}),(0,n.jsxs)("div",{className:"cron-detail-info-item",children:[(0,n.jsx)("div",{className:"cron-detail-info-title",children:"\u5B9A\u65F6"}),(0,n.jsx)("div",{className:"cron-detail-info-value",children:s.schedule})]}),(0,n.jsxs)("div",{className:"cron-detail-info-item",children:[(0,n.jsx)("div",{className:"cron-detail-info-title",children:"\u6700\u540E\u8FD0\u884C\u65F6\u95F4"}),(0,n.jsx)("div",{className:"cron-detail-info-value",children:s.last_execution_time?new Date(s.last_execution_time*1e3).toLocaleString(G,{hour12:!1}).replace(" 24:"," 00:"):"-"})]}),(0,n.jsxs)("div",{className:"cron-detail-info-item",children:[(0,n.jsx)("div",{className:"cron-detail-info-title",children:"\u6700\u540E\u8FD0\u884C\u65F6\u957F"}),(0,n.jsx)("div",{className:"cron-detail-info-value",children:s.last_running_time?(0,x.E)(s.last_running_time):"-"})]}),(0,n.jsxs)("div",{className:"cron-detail-info-item",children:[(0,n.jsx)("div",{className:"cron-detail-info-title",children:"\u4E0B\u6B21\u8FD0\u884C\u65F6\u95F4"}),(0,n.jsx)("div",{className:"cron-detail-info-value",children:s.nextRunTime&&s.nextRunTime.toLocaleString(G,{hour12:!1}).replace(" 24:"," 00:")})]})]}),(0,n.jsx)(q.Z,{style:{marginTop:10},tabList:Me,activeTabKey:w,onTabChange:function(f){Qe(f)},tabBarExtraContent:w==="script"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.Z,{type:"primary",style:{marginRight:8},onClick:Xe,children:"\u4FDD\u5B58"}),(0,n.jsx)(a.Z,{type:"primary",icon:(0,n.jsx)(C.Z,{}),onClick:tn})]}),children:He[w]})]}),(0,n.jsx)(T.default,{visible:Ke,handleCancel:function(){Re(!1)},cron:F,data:Oe,logUrl:ze})]})};v.default=te},42792:function(g,v,e){"use strict";e.r(v);var l=e(54306),r=e.n(l),u=e(63313),t=e.n(u),d=e(89065),E=e(84163),m=e(24378),h=e(95176),y=e(5558),D=e(65601),P=e(38101),L=e(91796),Z=e(82428),a=e(11527),q=d.Z.Countdown,B=function(S){var _=S.cron,$=S.handleCancel,c=S.visible,i=S.data,C=S.logUrl,o=(0,u.useState)("\u542F\u52A8\u4E2D..."),x=r()(o,2),R=x[0],M=x[1],T=(0,u.useState)(!0),W=r()(T,2),j=W[0],Y=W[1],n=(0,u.useState)(!0),U=r()(n,2),ee=U[0],p=U[1],G=(0,u.useState)(!1),te=r()(G,2),Q=te[0],X=te[1],z=(0,u.useRef)({value:0,down:!0}),N=function I(re){re&&Y(!0),h.W.get(C||"".concat(y.Z.apiPrefix,"crons/").concat(_.id,"/log")).then(function(H){var k=H.code,le=H.data;if(k===200&&localStorage.getItem("logCron")===String(_.id)&&le!==R){var w=le;M(w||"\u6682\u65E0\u65E5\u5FD7");var ne=!!(w&&!(0,Z.x$)(w)&&!w.includes("\u4EFB\u52A1\u672A\u8FD0\u884C"));p(ne),K(),ne&&setTimeout(function(){I()},2e3)}}).finally(function(){re&&Y(!1)})},K=function(){z.current.down&&setTimeout(function(){document.querySelector("#log-flag").scrollIntoView({behavior:"smooth"})},1e3)},O=function(){localStorage.removeItem("logCron"),$()},F=function(re){var H=re.target.scrollTop;z.current.down&&(z.current={value:H,down:H>z.current.value})},ae=function(){return(0,a.jsxs)(a.Fragment,{children:[(ee||j)&&(0,a.jsx)(D.Z,{spin:!0}),!ee&&!j&&(0,a.jsx)(P.Z,{}),(0,a.jsx)("span",{style:{marginLeft:5},children:_&&_.name})]})};return(0,u.useEffect)(function(){_&&_.id&&c&&N(!0)},[_,c]),(0,u.useEffect)(function(){i&&M(i)},[i]),(0,u.useEffect)(function(){X(document.body.clientWidth<768)},[]),(0,a.jsx)(E.Z,{title:ae(),open:c,centered:!0,className:"log-modal",bodyStyle:{minHeight:"300px"},forceRender:!0,onOk:function(){return O()},onCancel:function(){return O()},footer:[(0,a.jsx)(m.Z,{type:"primary",onClick:function(){return O()},children:"\u77E5\u9053\u4E86"})],children:(0,a.jsxs)("div",{onScroll:F,className:"log-container",children:[j?(0,a.jsx)(L.Z,{}):(0,a.jsx)("pre",{style:Q?{fontFamily:"Source Code Pro",width:375,zoom:.83}:{},children:R}),(0,a.jsx)("div",{id:"log-flag"})]})})};v.default=B},33538:function(g,v,e){"use strict";e.r(v),e.d(v,{CrontabStatus:function(){return l},OperationName:function(){return r},OperationPath:function(){return u}});var l=function(t){return t[t.running=0]="running",t[t.queued=.5]="queued",t[t.idle=1]="idle",t[t.disabled=2]="disabled",t}({}),r=function(t){return t[t.\u542F\u7528=0]="\u542F\u7528",t[t.\u7981\u7528=1]="\u7981\u7528",t[t.\u8FD0\u884C=2]="\u8FD0\u884C",t[t.\u505C\u6B62=3]="\u505C\u6B62",t[t.\u7F6E\u9876=4]="\u7F6E\u9876",t[t.\u53D6\u6D88\u7F6E\u9876=5]="\u53D6\u6D88\u7F6E\u9876",t}({}),u=function(t){return t[t.enable=0]="enable",t[t.disable=1]="disable",t[t.run=2]="run",t[t.stop=3]="stop",t[t.pin=4]="pin",t[t.unpin=5]="unpin",t}({})},80755:function(g,v,e){"use strict";e.d(v,{E:function(){return l}});function l(r){var u=r*1e3,t=Math.floor(u/(24*3600*1e3)),d=u%(24*3600*1e3),E=Math.floor(d/(3600*1e3)),m=d%(3600*1e3),h=Math.floor(m/(60*1e3)),y=m%(60*1e3),D=Math.round(y/1e3),P=D+"\u79D2";return h>0&&(P=h+"\u5206"+P),E>0&&(P=E+"\u5C0F\u65F6"+P),t>0&&(P=t+"\u5929"+P),P}},52105:function(g,v,e){"use strict";var l=e(17079),r=e(63313),u=e.n(r),t=e(68098);v.Z=function(){var d=r.useState(!1),E=(0,l.Z)(d,2),m=E[0],h=E[1];return r.useEffect(function(){h((0,t.fk)())},[]),m}},11847:function(g,v,e){"use strict";e.d(v,{c4:function(){return u}});var l=e(87807),r=e(60795),u=["xxl","xl","lg","md","sm","xs"],t={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},d=new Map,E=-1,m={},h={matchHandlers:{},dispatch:function(D){return m=D,d.forEach(function(P){return P(m)}),d.size>=1},subscribe:function(D){return d.size||this.register(),E+=1,d.set(E,D),D(m),E},unsubscribe:function(D){d.delete(D),d.size||this.unregister()},unregister:function(){var D=this;Object.keys(t).forEach(function(P){var L=t[P],Z=D.matchHandlers[L];Z==null||Z.mql.removeListener(Z==null?void 0:Z.listener)}),d.clear()},register:function(){var D=this;Object.keys(t).forEach(function(P){var L=t[P],Z=function(B){var A=B.matches;D.dispatch((0,r.Z)((0,r.Z)({},m),(0,l.Z)({},P,A)))},a=window.matchMedia(L);a.addListener(Z),D.matchHandlers[L]={mql:a,listener:Z},Z(a)})}};v.ZP=h},66216:function(g,v,e){"use strict";var l=e(63313),r=e.n(l),u=(0,l.createContext)({});v.Z=u},40630:function(g,v,e){"use strict";var l=e(87807),r=e(60795),u=e(18790),t=e(84875),d=e.n(t),E=e(63313),m=e.n(E),h=e(82259),y=e(66216),D=function(a,q){var B={};for(var A in a)Object.prototype.hasOwnProperty.call(a,A)&&q.indexOf(A)<0&&(B[A]=a[A]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,A=Object.getOwnPropertySymbols(a);S<A.length;S++)q.indexOf(A[S])<0&&Object.prototype.propertyIsEnumerable.call(a,A[S])&&(B[A[S]]=a[A[S]]);return B};function P(a){return typeof a=="number"?"".concat(a," ").concat(a," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(a)?"0 0 ".concat(a):a}var L=["xs","sm","md","lg","xl","xxl"],Z=E.forwardRef(function(a,q){var B,A=E.useContext(h.E_),S=A.getPrefixCls,_=A.direction,$=E.useContext(y.Z),c=$.gutter,i=$.wrap,C=$.supportFlexGap,o=a.prefixCls,x=a.span,R=a.order,M=a.offset,T=a.push,W=a.pull,j=a.className,Y=a.children,n=a.flex,U=a.style,ee=D(a,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),p=S("col",o),G={};L.forEach(function(N){var K,O={},F=a[N];typeof F=="number"?O.span=F:(0,u.Z)(F)==="object"&&(O=F||{}),delete ee[N],G=(0,r.Z)((0,r.Z)({},G),(K={},(0,l.Z)(K,"".concat(p,"-").concat(N,"-").concat(O.span),O.span!==void 0),(0,l.Z)(K,"".concat(p,"-").concat(N,"-order-").concat(O.order),O.order||O.order===0),(0,l.Z)(K,"".concat(p,"-").concat(N,"-offset-").concat(O.offset),O.offset||O.offset===0),(0,l.Z)(K,"".concat(p,"-").concat(N,"-push-").concat(O.push),O.push||O.push===0),(0,l.Z)(K,"".concat(p,"-").concat(N,"-pull-").concat(O.pull),O.pull||O.pull===0),(0,l.Z)(K,"".concat(p,"-rtl"),_==="rtl"),K))});var te=d()(p,(B={},(0,l.Z)(B,"".concat(p,"-").concat(x),x!==void 0),(0,l.Z)(B,"".concat(p,"-order-").concat(R),R),(0,l.Z)(B,"".concat(p,"-offset-").concat(M),M),(0,l.Z)(B,"".concat(p,"-push-").concat(T),T),(0,l.Z)(B,"".concat(p,"-pull-").concat(W),W),B),j,G),Q={};if(c&&c[0]>0){var X=c[0]/2;Q.paddingLeft=X,Q.paddingRight=X}if(c&&c[1]>0&&!C){var z=c[1]/2;Q.paddingTop=z,Q.paddingBottom=z}return n&&(Q.flex=P(n),i===!1&&!Q.minWidth&&(Q.minWidth=0)),E.createElement("div",(0,r.Z)({},ee,{style:(0,r.Z)((0,r.Z)({},Q),U),className:te,ref:q}),Y)});v.Z=Z},19698:function(g,v,e){"use strict";var l=e(60795),r=e(87807),u=e(18790),t=e(17079),d=e(84875),E=e.n(d),m=e(63313),h=e.n(m),y=e(82259),D=e(52105),P=e(11847),L=e(20341),Z=e(66216),a=function(_,$){var c={};for(var i in _)Object.prototype.hasOwnProperty.call(_,i)&&$.indexOf(i)<0&&(c[i]=_[i]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,i=Object.getOwnPropertySymbols(_);C<i.length;C++)$.indexOf(i[C])<0&&Object.prototype.propertyIsEnumerable.call(_,i[C])&&(c[i[C]]=_[i[C]]);return c},q=(0,L.b)("top","middle","bottom","stretch"),B=(0,L.b)("start","end","center","space-around","space-between","space-evenly");function A(_,$){var c=m.useState(typeof _=="string"?_:""),i=(0,t.Z)(c,2),C=i[0],o=i[1],x=function(){if(typeof _=="string"&&o(_),(0,u.Z)(_)==="object")for(var M=0;M<P.c4.length;M++){var T=P.c4[M];if($[T]){var W=_[T];if(W!==void 0){o(W);return}}}};return m.useEffect(function(){x()},[JSON.stringify(_),$]),C}var S=m.forwardRef(function(_,$){var c,i=_.prefixCls,C=_.justify,o=_.align,x=_.className,R=_.style,M=_.children,T=_.gutter,W=T===void 0?0:T,j=_.wrap,Y=a(_,["prefixCls","justify","align","className","style","children","gutter","wrap"]),n=m.useContext(y.E_),U=n.getPrefixCls,ee=n.direction,p=m.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),G=(0,t.Z)(p,2),te=G[0],Q=G[1],X=m.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),z=(0,t.Z)(X,2),N=z[0],K=z[1],O=A(o,N),F=A(C,N),ae=(0,D.Z)(),I=m.useRef(W);m.useEffect(function(){var xe=P.ZP.subscribe(function(ce){K(ce);var ie=I.current||0;(!Array.isArray(ie)&&(0,u.Z)(ie)==="object"||Array.isArray(ie)&&((0,u.Z)(ie[0])==="object"||(0,u.Z)(ie[1])==="object"))&&Q(ce)});return function(){return P.ZP.unsubscribe(xe)}},[]);var re=function(){var ce=[void 0,void 0],ie=Array.isArray(W)?W:[W,void 0];return ie.forEach(function(fe,Oe){if((0,u.Z)(fe)==="object")for(var Ee=0;Ee<P.c4.length;Ee++){var me=P.c4[Ee];if(te[me]&&fe[me]!==void 0){ce[Oe]=fe[me];break}}else ce[Oe]=fe}),ce},H=U("row",i),k=re(),le=E()(H,(c={},(0,r.Z)(c,"".concat(H,"-no-wrap"),j===!1),(0,r.Z)(c,"".concat(H,"-").concat(F),F),(0,r.Z)(c,"".concat(H,"-").concat(O),O),(0,r.Z)(c,"".concat(H,"-rtl"),ee==="rtl"),c),x),w={},ne=k[0]!=null&&k[0]>0?k[0]/-2:void 0,ue=k[1]!=null&&k[1]>0?k[1]/-2:void 0;if(ne&&(w.marginLeft=ne,w.marginRight=ne),ae){var de=(0,t.Z)(k,2);w.rowGap=de[1]}else ue&&(w.marginTop=ue,w.marginBottom=ue);var _e=(0,t.Z)(k,2),se=_e[0],he=_e[1],Pe=m.useMemo(function(){return{gutter:[se,he],wrap:j,supportFlexGap:ae}},[se,he,j,ae]);return m.createElement(Z.Z.Provider,{value:Pe},m.createElement("div",(0,l.Z)({},Y,{className:le,style:(0,l.Z)((0,l.Z)({},w),R),ref:$}),M))});v.Z=S},51704:function(g,v,e){"use strict";e.d(v,{Z:function(){return $}});var l=e(87807),r=e(60795),u=e(17079),t=e(5132),d=e(84875),E=e.n(d),m=e(92976),h=e(63313),y=e(82259),D=e(31124),P=e(1570),L=function(c,i){var C={};for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&i.indexOf(o)<0&&(C[o]=c[o]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,o=Object.getOwnPropertySymbols(c);x<o.length;x++)i.indexOf(o[x])<0&&Object.prototype.propertyIsEnumerable.call(c,o[x])&&(C[o[x]]=c[o[x]]);return C},Z=function(i){var C,o=i.prefixCls,x=i.className,R=i.checked,M=i.onChange,T=i.onClick,W=L(i,["prefixCls","className","checked","onChange","onClick"]),j=h.useContext(y.E_),Y=j.getPrefixCls,n=function(G){M==null||M(!R),T==null||T(G)},U=Y("tag",o),ee=E()(U,(C={},(0,l.Z)(C,"".concat(U,"-checkable"),!0),(0,l.Z)(C,"".concat(U,"-checkable-checked"),R),C),x);return h.createElement("span",(0,r.Z)({},W,{className:ee,onClick:n}))},a=Z,q=function(c,i){var C={};for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&i.indexOf(o)<0&&(C[o]=c[o]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,o=Object.getOwnPropertySymbols(c);x<o.length;x++)i.indexOf(o[x])<0&&Object.prototype.propertyIsEnumerable.call(c,o[x])&&(C[o[x]]=c[o[x]]);return C},B=new RegExp("^(".concat(D.Y.join("|"),")(-inverse)?$")),A=new RegExp("^(".concat(D.E.join("|"),")$")),S=function(i,C){var o,x=i.prefixCls,R=i.className,M=i.style,T=i.children,W=i.icon,j=i.color,Y=i.onClose,n=i.closeIcon,U=i.closable,ee=U===void 0?!1:U,p=q(i,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),G=h.useContext(y.E_),te=G.getPrefixCls,Q=G.direction,X=h.useState(!0),z=(0,u.Z)(X,2),N=z[0],K=z[1];h.useEffect(function(){"visible"in p&&K(p.visible)},[p.visible]);var O=function(){return j?B.test(j)||A.test(j):!1},F=(0,r.Z)({backgroundColor:j&&!O()?j:void 0},M),ae=O(),I=te("tag",x),re=E()(I,(o={},(0,l.Z)(o,"".concat(I,"-").concat(j),ae),(0,l.Z)(o,"".concat(I,"-has-color"),j&&!ae),(0,l.Z)(o,"".concat(I,"-hidden"),!N),(0,l.Z)(o,"".concat(I,"-rtl"),Q==="rtl"),o),R),H=function(se){se.stopPropagation(),Y==null||Y(se),!se.defaultPrevented&&("visible"in p||K(!1))},k=function(){return ee?n?h.createElement("span",{className:"".concat(I,"-close-icon"),onClick:H},n):h.createElement(t.Z,{className:"".concat(I,"-close-icon"),onClick:H}):null},le="onClick"in p||T&&T.type==="a",w=(0,m.Z)(p,["visible"]),ne=W||null,ue=ne?h.createElement(h.Fragment,null,ne,h.createElement("span",null,T)):T,de=h.createElement("span",(0,r.Z)({},w,{ref:C,className:re,style:F}),ue,k());return le?h.createElement(P.Z,null,de):de},_=h.forwardRef(S);_.CheckableTag=a;var $=_},30006:function(g,v,e){var l=e(25705);function r(u){if(Array.isArray(u))return l(u)}g.exports=r,g.exports.__esModule=!0,g.exports.default=g.exports},16660:function(g){function v(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}g.exports=v,g.exports.__esModule=!0,g.exports.default=g.exports},95848:function(g){function v(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}g.exports=v,g.exports.__esModule=!0,g.exports.default=g.exports},93525:function(g,v,e){var l=e(30006),r=e(16660),u=e(41442),t=e(95848);function d(E){return l(E)||r(E)||u(E)||t()}g.exports=d,g.exports.__esModule=!0,g.exports.default=g.exports}}]);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[4473,5812,8044,1138],{13740:function(we,K,e){"use strict";e.d(K,{Z:function(){return b}});var m=e(14797),p=e(63313),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},s=z,F=e(46420),h=function(Z,k){return p.createElement(F.Z,(0,m.Z)((0,m.Z)({},Z),{},{ref:k,icon:s}))};h.displayName="DeleteOutlined";var b=p.forwardRef(h)},97674:function(we,K,e){"use strict";e.d(K,{Z:function(){return b}});var m=e(14797),p=e(63313),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},s=z,F=e(46420),h=function(Z,k){return p.createElement(F.Z,(0,m.Z)((0,m.Z)({},Z),{},{ref:k,icon:s}))};h.displayName="FileTextOutlined";var b=p.forwardRef(h)},68834:function(we,K,e){"use strict";e.d(K,{Z:function(){return b}});var m=e(14797),p=e(63313),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},s=z,F=e(46420),h=function(Z,k){return p.createElement(F.Z,(0,m.Z)((0,m.Z)({},Z),{},{ref:k,icon:s}))};h.displayName="SettingOutlined";var b=p.forwardRef(h)},23421:function(we,K,e){"use strict";e.d(K,{Z:function(){return b}});var m=e(14797),p=e(63313),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},s=z,F=e(46420),h=function(Z,k){return p.createElement(F.Z,(0,m.Z)((0,m.Z)({},Z),{},{ref:k,icon:s}))};h.displayName="StopOutlined";var b=p.forwardRef(h)},86755:function(we,K,e){"use strict";var m=e(55258),p=(0,m.Z)({scriptUrl:["//at.alicdn.com/t/c/font_3354854_ob5y15ewlyq.js"]});K.Z=p},66150:function(we,K,e){"use strict";var m=e(54306),p=e.n(m),z=e(63313),s=e.n(z),F=e(61761),h=e(82428);K.Z=function(b,W){var Z=(0,z.useState)(0),k=p()(Z,2),Q=k[0],I=k[1];return(0,F.Z)(b,function($){var L=$.target;L.classList.contains("ant-table-wrapper")||(L=$.target.querySelector(".ant-table-wrapper")),I((0,h.W9)({extraHeight:W,target:L}))}),Q}},62814:function(we,K,e){"use strict";e.r(K);var m=e(57213),p=e.n(m),z=e(54306),s=e.n(z),F=e(63313),h=e.n(F),b=e(92260),W=e(64865),Z=e(84163),k=e(9835),Q=e(394),I=e(51704),$=e(15367),L=e(24378),M=e(1953),f=e(25265),E=e(44968),x=e(69685),S=e(20209),g=e(65601),C=e(7688),j=e(76657),H=e(3563),_=e(33538),de=e(80755),ae=e(95176),R=e(5558),ye=e(42792),y=e(82755),fe=e(86755),ie=e(82428),i=e(11527),me=b.Z.Text,re=[{key:"log",tab:"\u65E5\u5FD7"},{key:"script",tab:"\u811A\u672C"}],ve={".py":"python",".js":"javascript",".sh":"shell",".ts":"typescript"},le=navigator.language||navigator.languages[0],Ce=function(he){var G,ge,ee,U=he.cron,n=U===void 0?{}:U,a=he.handleCancel,l=he.visible,t=he.theme,d=he.isPhone,P=(0,F.useState)("log"),D=s()(P,2),c=D[0],B=D[1],ne=(0,F.useState)(!0),u=s()(ne,2),Be=u[0],X=u[1],Ze=(0,F.useState)([]),N=s()(Ze,2),r=N[0],oe=N[1],J=(0,F.useState)(""),V=s()(J,2),A=V[0],Y=V[1],ue=(0,F.useState)(""),Oe=s()(ue,2),Ee=Oe[0],Ae=Oe[1],be=(0,F.useState)(!1),_e=s()(be,2),Le=_e[0],Ue=_e[1],Te=(0,F.useRef)(null),Re=(0,F.useState)({}),Ne=s()(Re,2),Ke=Ne[0],nn=Ne[1],Ve=(0,F.useState)(""),tn=s()(Ve,2),an=tn[0],gn=tn[1],Ye=(0,F.useState)(re),rn=s()(Ye,2),$e=rn[0],on=rn[1],ln=(0,F.useState)({}),sn=s()(ln,2),T=sn[0],ze=sn[1],un={log:(0,i.jsx)(W.ZP,{dataSource:r,loading:Be,renderItem:function(q){return(0,i.jsxs)(W.ZP.Item,{className:"log-item",onClick:function(){return pn(q)},children:[(0,i.jsx)(f.Z,{style:{marginRight:10}}),q.directory,"/",q.filename]})}}),script:Ke.filename&&(0,i.jsx)(y.ZP,{language:ve[Ke.filename.slice(-3)]||"",theme:t,value:Ee,options:{fontSize:12,lineNumbersMinChars:3,fontFamily:"Source Code Pro",glyphMargin:!1,wordWrap:"on"},onMount:function(q,pe){Te.current=q}})},pn=function(q){localStorage.setItem("logCron",T.id),gn("".concat(R.Z.apiPrefix,"logs/").concat(q.filename,"?path=").concat(q.directory||"")),ae.W.get("".concat(R.Z.apiPrefix,"logs/").concat(q.filename,"?path=").concat(q.directory||"")).then(function(pe){var De=pe.code,Se=pe.data;De===200&&(Y(Se),Ue(!0))})},cn=function(q){B(q)},Xe=function(){X(!0),ae.W.get("".concat(R.Z.apiPrefix,"crons/").concat(n.id,"/logs")).then(function(q){var pe=q.code,De=q.data;pe===200&&oe(De)}).finally(function(){return X(!1)})},Cn=function(){var q=(0,ie.FA)(n.command);if(Array.isArray(q)){on($e);var pe=s()(q,2),De=pe[0],Se=pe[1];nn({parent:Se,filename:De}),ae.W.get("".concat(R.Z.apiPrefix,"scripts/").concat(De,"?path=").concat(Se||"")).then(function(We){var Qe=We.code,Je=We.data;Qe===200&&Ae(Je)})}else q&&on([$e[0]])},_n=function(){Z.Z.confirm({title:"\u786E\u8BA4\u4FDD\u5B58",content:(0,i.jsxs)(i.Fragment,{children:["\u786E\u8BA4\u4FDD\u5B58\u6587\u4EF6",(0,i.jsx)(me,{style:{wordBreak:"break-all"},type:"warning",children:Ke.filename})," ","\uFF0C\u4FDD\u5B58\u540E\u4E0D\u53EF\u6062\u590D"]}),onOk:function(){var pe=Te.current?Te.current.getValue().replace(/\r\n/g,`
|
|
2
|
+
`):Ee;return new Promise(function(De,Se){ae.W.put("".concat(R.Z.apiPrefix,"scripts"),{filename:Ke.filename,path:Ke.parent||"",content:pe}).then(function(We){var Qe=We.code,Je=We.data;Qe===200&&(Ae(pe),k.ZP.success("\u4FDD\u5B58\u6210\u529F")),De(null)}).catch(function(We){return Se(We)})})},onCancel:function(){console.log("Cancel")}})},dn=function(){Z.Z.confirm({title:"\u786E\u8BA4\u8FD0\u884C",content:(0,i.jsxs)(i.Fragment,{children:["\u786E\u8BA4\u8FD0\u884C\u5B9A\u65F6\u4EFB\u52A1"," ",(0,i.jsx)(me,{style:{wordBreak:"break-all"},type:"warning",children:T.name})," ","\u5417"]}),onOk:function(){ae.W.put("".concat(R.Z.apiPrefix,"crons/run"),[T.id]).then(function(pe){var De=pe.code,Se=pe.data;De===200&&(ze(p()(p()({},T),{},{status:_.CrontabStatus.running})),setTimeout(function(){Xe()},1e3))})},onCancel:function(){console.log("Cancel")}})},En=function(){Z.Z.confirm({title:"\u786E\u8BA4\u505C\u6B62",content:(0,i.jsxs)(i.Fragment,{children:["\u786E\u8BA4\u505C\u6B62\u5B9A\u65F6\u4EFB\u52A1"," ",(0,i.jsx)(me,{style:{wordBreak:"break-all"},type:"warning",children:T.name})," ","\u5417"]}),onOk:function(){ae.W.put("".concat(R.Z.apiPrefix,"crons/stop"),[T.id]).then(function(pe){var De=pe.code,Se=pe.data;De===200&&ze(p()(p()({},T),{},{status:_.CrontabStatus.idle}))})},onCancel:function(){console.log("Cancel")}})},fn=function(){Z.Z.confirm({title:"\u786E\u8BA4".concat(T.isDisabled===1?"\u542F\u7528":"\u7981\u7528"),content:(0,i.jsxs)(i.Fragment,{children:["\u786E\u8BA4",T.isDisabled===1?"\u542F\u7528":"\u7981\u7528","\u5B9A\u65F6\u4EFB\u52A1"," ",(0,i.jsx)(me,{style:{wordBreak:"break-all"},type:"warning",children:T.name})," ","\u5417"]}),onOk:function(){ae.W.put("".concat(R.Z.apiPrefix,"crons/").concat(T.isDisabled===1?"enable":"disable"),[T.id]).then(function(pe){var De=pe.code,Se=pe.data;De===200&&ze(p()(p()({},T),{},{isDisabled:T.isDisabled===1?0:1}))})},onCancel:function(){console.log("Cancel")}})},yn=function(){Z.Z.confirm({title:"\u786E\u8BA4".concat(T.isPinned===1?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"),content:(0,i.jsxs)(i.Fragment,{children:["\u786E\u8BA4",T.isPinned===1?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876","\u5B9A\u65F6\u4EFB\u52A1"," ",(0,i.jsx)(me,{style:{wordBreak:"break-all"},type:"warning",children:T.name})," ","\u5417"]}),onOk:function(){ae.W.put("".concat(R.Z.apiPrefix,"crons/").concat(T.isPinned===1?"unpin":"pin"),[T.id]).then(function(pe){var De=pe.code,Se=pe.data;De===200&&ze(p()(p()({},T),{},{isPinned:T.isPinned===1?0:1}))})},onCancel:function(){console.log("Cancel")}})},vn=function(){var q,pe=Te.current._domElement;(q=pe.parentElement)===null||q===void 0||q.requestFullscreen()};return(0,F.useEffect)(function(){n&&n.id&&(ze(n),Xe(),Cn())},[n]),(0,i.jsxs)(Z.Z,{title:(0,i.jsxs)("div",{className:"crontab-title-wrapper",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{children:T.name}),((G=T.labels)===null||G===void 0?void 0:G.length)>0&&T.labels[0]!==""&&(0,i.jsx)(Q.Z,{type:"vertical"}),((ge=T.labels)===null||ge===void 0?void 0:ge.length)>0&&T.labels[0]!==""&&((ee=T.labels)===null||ee===void 0?void 0:ee.map(function(xe,q){return(0,i.jsx)(I.Z,{color:"blue",style:{marginRight:5},children:xe},xe)}))]}),(0,i.jsxs)("div",{className:"operations",children:[(0,i.jsx)($.Z,{title:T.status===_.CrontabStatus.idle?"\u8FD0\u884C":"\u505C\u6B62",children:(0,i.jsx)(L.Z,{type:"link",icon:T.status===_.CrontabStatus.idle?(0,i.jsx)(E.Z,{}):(0,i.jsx)(x.Z,{}),size:"small",onClick:T.status===_.CrontabStatus.idle?dn:En})}),(0,i.jsx)($.Z,{title:T.isDisabled===1?"\u542F\u7528":"\u7981\u7528",children:(0,i.jsx)(L.Z,{type:"link",icon:(0,i.jsx)(fe.Z,{type:T.isDisabled===1?"ql-icon-enable":"ql-icon-disable"}),size:"small",onClick:fn})}),(0,i.jsx)($.Z,{title:T.isPinned===1?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876",children:(0,i.jsx)(L.Z,{type:"link",icon:(0,i.jsx)(fe.Z,{type:T.isPinned===1?"ql-icon-untop":"ql-icon-top"}),size:"small",onClick:yn})})]})]}),centered:!0,open:l,forceRender:!0,footer:!1,onCancel:function(){return a()},wrapClassName:"crontab-detail",width:d?"":"80vw",children:[(0,i.jsxs)("div",{className:"card-wrapper",children:[(0,i.jsx)(M.Z,{children:(0,i.jsxs)("div",{className:"cron-detail-info-item",children:[(0,i.jsx)("div",{className:"cron-detail-info-title",children:"\u4EFB\u52A1"}),(0,i.jsx)("div",{className:"cron-detail-info-value",children:T.command})]})}),(0,i.jsxs)(M.Z,{style:{marginTop:10},children:[(0,i.jsxs)("div",{className:"cron-detail-info-item",children:[(0,i.jsx)("div",{className:"cron-detail-info-title",children:"\u72B6\u6001"}),(0,i.jsxs)("div",{className:"cron-detail-info-value",children:[(!T.isDisabled||T.status!==_.CrontabStatus.idle)&&(0,i.jsxs)(i.Fragment,{children:[T.status===_.CrontabStatus.idle&&(0,i.jsx)(I.Z,{icon:(0,i.jsx)(S.Z,{}),color:"default",children:"\u7A7A\u95F2\u4E2D"}),T.status===_.CrontabStatus.running&&(0,i.jsx)(I.Z,{icon:(0,i.jsx)(g.Z,{spin:!0}),color:"processing",children:"\u8FD0\u884C\u4E2D"}),T.status===_.CrontabStatus.queued&&(0,i.jsx)(I.Z,{icon:(0,i.jsx)(C.Z,{}),color:"default",children:"\u961F\u5217\u4E2D"})]}),T.isDisabled===1&&T.status===_.CrontabStatus.idle&&(0,i.jsx)(I.Z,{icon:(0,i.jsx)(j.Z,{}),color:"error",children:"\u5DF2\u7981\u7528"})]})]}),(0,i.jsxs)("div",{className:"cron-detail-info-item",children:[(0,i.jsx)("div",{className:"cron-detail-info-title",children:"\u5B9A\u65F6"}),(0,i.jsx)("div",{className:"cron-detail-info-value",children:T.schedule})]}),(0,i.jsxs)("div",{className:"cron-detail-info-item",children:[(0,i.jsx)("div",{className:"cron-detail-info-title",children:"\u6700\u540E\u8FD0\u884C\u65F6\u95F4"}),(0,i.jsx)("div",{className:"cron-detail-info-value",children:T.last_execution_time?new Date(T.last_execution_time*1e3).toLocaleString(le,{hour12:!1}).replace(" 24:"," 00:"):"-"})]}),(0,i.jsxs)("div",{className:"cron-detail-info-item",children:[(0,i.jsx)("div",{className:"cron-detail-info-title",children:"\u6700\u540E\u8FD0\u884C\u65F6\u957F"}),(0,i.jsx)("div",{className:"cron-detail-info-value",children:T.last_running_time?(0,de.E)(T.last_running_time):"-"})]}),(0,i.jsxs)("div",{className:"cron-detail-info-item",children:[(0,i.jsx)("div",{className:"cron-detail-info-title",children:"\u4E0B\u6B21\u8FD0\u884C\u65F6\u95F4"}),(0,i.jsx)("div",{className:"cron-detail-info-value",children:T.nextRunTime&&T.nextRunTime.toLocaleString(le,{hour12:!1}).replace(" 24:"," 00:")})]})]}),(0,i.jsx)(M.Z,{style:{marginTop:10},tabList:$e,activeTabKey:c,onTabChange:function(q){cn(q)},tabBarExtraContent:c==="script"&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(L.Z,{type:"primary",style:{marginRight:8},onClick:_n,children:"\u4FDD\u5B58"}),(0,i.jsx)(L.Z,{type:"primary",icon:(0,i.jsx)(H.Z,{}),onClick:vn})]}),children:un[c]})]}),(0,i.jsx)(ye.default,{visible:Le,handleCancel:function(){Ue(!1)},cron:n,data:A,logUrl:an})]})};K.default=Ce},34194:function(we,K,e){"use strict";e.r(K),e.d(K,{default:function(){return Y}});var m=e(93525),p=e.n(m),z=e(54306),s=e.n(z),F=e(57213),h=e.n(F),b=e(63313),W=e(92260),Z=e(22159),k=e(51704),Q=e(2947),I=e(15367),$=e(84163),L=e(9835),M=e(34133),f=e(24378),E=e(86986),x=e(60986),S=e(14797),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 00-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 01-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z"}}]},name:"pushpin",theme:"outlined"},C=g,j=e(46420),H=function(Oe,Ee){return b.createElement(j.Z,(0,S.Z)((0,S.Z)({},Oe),{},{ref:Ee,icon:C}))};H.displayName="PushpinOutlined";var _=b.forwardRef(H),de=e(20209),ae=e(65601),R=e(7688),ye=e(76657),y=e(44968),fe=e(69685),ie=e(97674),i=e(32132),me=e(38101),re=e(23421),ve=e(13740),le=e(23831),Ce=e(59673),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"unordered-list",theme:"outlined"},he=se,G=function(Oe,Ee){return b.createElement(j.Z,(0,S.Z)((0,S.Z)({},Oe),{},{ref:Ee,icon:he}))};G.displayName="UnorderedListOutlined";var ge=b.forwardRef(G),ee=e(26839),U=e(68834),n=e(99604),a=e(5558),l=e(78969),t=e(95176),d=e(8879),P=e(42792),D=e(62814),c=e(80755),B=e(87075),ne=e(71138),u=e(87421),Be=e(66150),X=e(82428),Ze=e(33503),N=e(33538),r=e(11527),oe=W.Z.Text,J=W.Z.Paragraph,V=Z.Z.Search,A=function(){var Oe=(0,B.useOutletContext)(),Ee=Oe.headerStyle,Ae=Oe.isPhone,be=Oe.theme,_e=[{title:"\u540D\u79F0",dataIndex:"name",key:"name",width:150,render:function(o,v){var w,te;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("a",{onClick:function(){$n(v),Dn(!0)},children:[(((w=v.labels)===null||w===void 0?void 0:w.length)>0&&v.labels[0],v.name||"-"),v.isPinned?(0,r.jsx)("span",{children:(0,r.jsx)(_,{})}):""]})})},sorter:{compare:function(o,v){var w;return o==null||(w=o.name)===null||w===void 0?void 0:w.localeCompare(v==null?void 0:v.name)}}},{title:"\u547D\u4EE4/\u811A\u672C",dataIndex:"command",key:"command",width:300,render:function(o,v){return(0,r.jsx)(J,{style:{wordBreak:"break-all",marginBottom:0},ellipsis:{tooltip:o,rows:2},children:(0,r.jsx)("a",{onClick:function(){ct(v)},children:o})})},sorter:{compare:function(o,v){return o.command.localeCompare(v.command)}}},{title:"\u5B9A\u65F6\u89C4\u5219",dataIndex:"schedule",key:"schedule",width:110,sorter:{compare:function(o,v){return o.schedule.localeCompare(v.schedule)}}},{title:"\u6700\u540E\u8FD0\u884C\u65F6\u95F4",dataIndex:"last_execution_time",key:"last_execution_time",width:150,sorter:{compare:function(o,v){return(o.last_execution_time||0)-(v.last_execution_time||0)}},render:function(o,v){var w=navigator.language||navigator.languages[0];return(0,r.jsx)("span",{style:{display:"block"},children:v.last_execution_time?new Date(v.last_execution_time*1e3).toLocaleString(w,{hour12:!1}).replace(" 24:"," 00:"):"-"})}},{title:"\u6700\u540E\u8FD0\u884C\u65F6\u957F",width:120,dataIndex:"last_running_time",key:"last_running_time",sorter:{compare:function(o,v){return o.last_running_time-v.last_running_time}},render:function(o,v){return v.last_running_time?(0,c.E)(v.last_running_time):"-"}},{title:"\u4E0B\u6B21\u8FD0\u884C\u65F6\u95F4",width:150,sorter:{compare:function(o,v){return o.nextRunTime-v.nextRunTime}},render:function(o,v){var w=navigator.language||navigator.languages[0];return v.nextRunTime.toLocaleString(w,{hour12:!1}).replace(" 24:"," 00:")}},{title:"\u72B6\u6001",key:"status",dataIndex:"status",width:88,filters:[{text:"\u8FD0\u884C\u4E2D",value:N.CrontabStatus.running},{text:"\u7A7A\u95F2\u4E2D",value:N.CrontabStatus.idle},{text:"\u5DF2\u7981\u7528",value:N.CrontabStatus.disabled},{text:"\u961F\u5217\u4E2D",value:N.CrontabStatus.queued}],render:function(o,v){return(0,r.jsxs)(r.Fragment,{children:[(!v.isDisabled||v.status!==N.CrontabStatus.idle)&&(0,r.jsxs)(r.Fragment,{children:[v.status===N.CrontabStatus.idle&&(0,r.jsx)(k.Z,{icon:(0,r.jsx)(de.Z,{}),color:"default",children:"\u7A7A\u95F2\u4E2D"}),v.status===N.CrontabStatus.running&&(0,r.jsx)(k.Z,{icon:(0,r.jsx)(ae.Z,{spin:!0}),color:"processing",children:"\u8FD0\u884C\u4E2D"}),v.status===N.CrontabStatus.queued&&(0,r.jsx)(k.Z,{icon:(0,r.jsx)(R.Z,{}),color:"default",children:"\u961F\u5217\u4E2D"})]}),v.isDisabled===1&&v.status===N.CrontabStatus.idle&&(0,r.jsx)(k.Z,{icon:(0,r.jsx)(ye.Z,{}),color:"error",children:"\u5DF2\u7981\u7528"})]})}},{title:"\u64CD\u4F5C",key:"action",width:130,render:function(o,v,w){var te=!Ae;return(0,r.jsxs)(Q.Z,{size:"middle",children:[v.status===N.CrontabStatus.idle&&(0,r.jsx)(I.Z,{title:te?"\u8FD0\u884C":"",children:(0,r.jsx)("a",{onClick:function(Me){Me.stopPropagation(),mt(v,w)},children:(0,r.jsx)(y.Z,{})})}),v.status!==N.CrontabStatus.idle&&(0,r.jsx)(I.Z,{title:te?"\u505C\u6B62":"",children:(0,r.jsx)("a",{onClick:function(Me){Me.stopPropagation(),ht(v,w)},children:(0,r.jsx)(fe.Z,{})})}),(0,r.jsx)(I.Z,{title:te?"\u65E5\u5FD7":"",children:(0,r.jsx)("a",{onClick:function(Me){Me.stopPropagation(),q(h()(h()({},v),{},{timestamp:Date.now()}))},children:(0,r.jsx)(ie.Z,{})})}),(0,r.jsx)(_t,{record:v,index:w},"more")]})}}],Le=(0,b.useState)([]),Ue=s()(Le,2),Te=Ue[0],Re=Ue[1],Ne=(0,b.useState)(!0),Ke=s()(Ne,2),nn=Ke[0],Ve=Ke[1],tn=(0,b.useState)(!1),an=s()(tn,2),gn=an[0],Ye=an[1],rn=(0,b.useState)(!1),$e=s()(rn,2),on=$e[0],ln=$e[1],sn=(0,b.useState)(),T=s()(sn,2),ze=T[0],un=T[1],pn=(0,b.useState)(""),cn=s()(pn,2),Xe=cn[0],Cn=cn[1],_n=(0,b.useState)(!1),dn=s()(_n,2),En=dn[0],fn=dn[1],yn=(0,b.useState)(),vn=s()(yn,2),xe=vn[0],q=vn[1],pe=(0,b.useState)([]),De=s()(pe,2),Se=De[0],We=De[1],Qe=(0,b.useState)({}),Je=s()(Qe,2),ke=Je[0],mn=Je[1],Nn=(0,b.useState)(),On=s()(Nn,2),Ie=On[0],hn=On[1],Kn=(0,b.useState)(!1),Pn=s()(Kn,2),Vn=Pn[0],Dn=Pn[1],zn=(0,b.useState)(),Sn=s()(zn,2),Hn=Sn[0],$n=Sn[1],Gn=(0,b.useState)(""),jn=s()(Gn,2),Yn=jn[0],Xn=jn[1],Qn=(0,b.useState)(),wn=s()(Qn,2),Mn=wn[0],Jn=wn[1],qn=(0,b.useState)(!1),Bn=s()(qn,2),et=Bn[0],An=Bn[1],nt=(0,b.useState)(!1),Tn=s()(nt,2),tt=Tn[0],Zn=Tn[1],at=(0,b.useState)([]),In=s()(at,2),rt=In[0],ot=In[1],it=(0,b.useState)([]),Rn=s()(it,2),He=Rn[0],lt=Rn[1],st=(0,b.useState)(!1),Fn=s()(st,2),Ln=Fn[0],ut=Fn[1],Wn=(0,b.useRef)(),bn=(0,Be.Z)(Wn),ct=function(o){var v=(0,X.FA)(o.command);if(Array.isArray(v)){var w=s()(v,2),te=w[0],ce=w[1];B.history.push("/script?p=".concat(ce,"&s=").concat(te))}else v&&(location.href=v)},qe=function(){Ve(!0);var o=ke.page,v=ke.size,w=ke.sorter,te=ke.filters,ce="".concat(a.Z.apiPrefix,"crons?searchValue=").concat(Xe,"&page=").concat(o,"&size=").concat(v,"&filters=").concat(JSON.stringify(te));w&&w.column&&w.order&&(ce+="&sorter=".concat(JSON.stringify({field:w.column.key,type:w.order==="ascend"?"ASC":"DESC"}))),Ie&&(ce+="&queryString=".concat(JSON.stringify({filters:Ie.filters,sorts:Ie.sorts,filterRelation:Ie.filterRelation||"and"}))),t.W.get(ce).then(function(Me){var Pe=Me.code,je=Me.data;if(Pe===200){var Fe=je.data,en=je.total;Re(Fe.map(function(Un){return h()(h()({},Un),{},{nextRunTime:(0,X.n$)(Un.schedule)})})),Jn(en)}}).finally(function(){return Ve(!1)})},dt=function(){un(null),Ye(!0)},ft=function(o,v){un(o),Ye(!0)},vt=function(o,v){$.Z.confirm({title:"\u786E\u8BA4\u5220\u9664",content:(0,r.jsxs)(r.Fragment,{children:["\u786E\u8BA4\u5220\u9664\u5B9A\u65F6\u4EFB\u52A1"," ",(0,r.jsx)(oe,{style:{wordBreak:"break-all"},type:"warning",children:o.name})," ","\u5417"]}),onOk:function(){t.W.delete("".concat(a.Z.apiPrefix,"crons"),{data:[o.id]}).then(function(te){var ce=te.code,Me=te.data;if(ce===200){L.ZP.success("\u5220\u9664\u6210\u529F");var Pe=p()(Te),je=Pe.findIndex(function(Fe){return Fe.id===o.id});je!==-1&&(Pe.splice(je,1),Re(Pe))}})},onCancel:function(){console.log("Cancel")}})},mt=function(o,v){$.Z.confirm({title:"\u786E\u8BA4\u8FD0\u884C",content:(0,r.jsxs)(r.Fragment,{children:["\u786E\u8BA4\u8FD0\u884C\u5B9A\u65F6\u4EFB\u52A1"," ",(0,r.jsx)(oe,{style:{wordBreak:"break-all"},type:"warning",children:o.name})," ","\u5417"]}),onOk:function(){t.W.put("".concat(a.Z.apiPrefix,"crons/run"),[o.id]).then(function(te){var ce=te.code,Me=te.data;if(ce===200){var Pe=p()(Te),je=Pe.findIndex(function(Fe){return Fe.id===o.id});je!==-1&&(Pe.splice(je,1,h()(h()({},o),{},{status:N.CrontabStatus.running})),Re(Pe))}})},onCancel:function(){console.log("Cancel")}})},ht=function(o,v){$.Z.confirm({title:"\u786E\u8BA4\u505C\u6B62",content:(0,r.jsxs)(r.Fragment,{children:["\u786E\u8BA4\u505C\u6B62\u5B9A\u65F6\u4EFB\u52A1"," ",(0,r.jsx)(oe,{style:{wordBreak:"break-all"},type:"warning",children:o.name})," ","\u5417"]}),onOk:function(){t.W.put("".concat(a.Z.apiPrefix,"crons/stop"),[o.id]).then(function(te){var ce=te.code,Me=te.data;if(ce===200){var Pe=p()(Te),je=Pe.findIndex(function(Fe){return Fe.id===o.id});je!==-1&&(Pe.splice(je,1,h()(h()({},o),{},{pid:null,status:N.CrontabStatus.idle})),Re(Pe))}})},onCancel:function(){console.log("Cancel")}})},gt=function(o,v){$.Z.confirm({title:"\u786E\u8BA4".concat(o.isDisabled===1?"\u542F\u7528":"\u7981\u7528"),content:(0,r.jsxs)(r.Fragment,{children:["\u786E\u8BA4",o.isDisabled===1?"\u542F\u7528":"\u7981\u7528","\u5B9A\u65F6\u4EFB\u52A1"," ",(0,r.jsx)(oe,{style:{wordBreak:"break-all"},type:"warning",children:o.name})," ","\u5417"]}),onOk:function(){t.W.put("".concat(a.Z.apiPrefix,"crons/").concat(o.isDisabled===1?"enable":"disable"),[o.id]).then(function(te){var ce=te.code,Me=te.data;if(ce===200){var Pe=o.isDisabled===1?0:1,je=p()(Te),Fe=je.findIndex(function(en){return en.id===o.id});Fe!==-1&&(je.splice(Fe,1,h()(h()({},o),{},{isDisabled:Pe})),Re(je))}})},onCancel:function(){console.log("Cancel")}})},pt=function(o,v){$.Z.confirm({title:"\u786E\u8BA4".concat(o.isPinned===1?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"),content:(0,r.jsxs)(r.Fragment,{children:["\u786E\u8BA4",o.isPinned===1?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876","\u5B9A\u65F6\u4EFB\u52A1"," ",(0,r.jsx)(oe,{style:{wordBreak:"break-all"},type:"warning",children:o.name})," ","\u5417"]}),onOk:function(){t.W.put("".concat(a.Z.apiPrefix,"crons/").concat(o.isPinned===1?"unpin":"pin"),[o.id]).then(function(te){var ce=te.code,Me=te.data;if(ce===200){var Pe=o.isPinned===1?0:1,je=p()(Te),Fe=je.findIndex(function(en){return en.id===o.id});Fe!==-1&&(je.splice(Fe,1,h()(h()({},o),{},{isPinned:Pe})),Re(je))}})},onCancel:function(){console.log("Cancel")}})},Ct=function(o){return[{label:"\u7F16\u8F91",key:"edit",icon:(0,r.jsx)(i.Z,{})},{label:o.isDisabled===1?"\u542F\u7528":"\u7981\u7528",key:"enableOrDisable",icon:o.isDisabled===1?(0,r.jsx)(me.Z,{}):(0,r.jsx)(re.Z,{})},{label:"\u5220\u9664",key:"delete",icon:(0,r.jsx)(ve.Z,{})},{label:o.isPinned===1?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876",key:"pinOrUnPin",icon:o.isPinned===1?(0,r.jsx)(re.Z,{}):(0,r.jsx)(_,{})}]},_t=function(o){var v=o.record,w=o.index;return(0,r.jsx)(M.Z,{placement:"bottomRight",trigger:["click"],menu:{items:Ct(v),onClick:function(ce){var Me=ce.key,Pe=ce.domEvent;Pe.stopPropagation(),Et(Me,v,w)}},children:(0,r.jsx)("a",{onClick:function(ce){return ce.stopPropagation()},children:(0,r.jsx)(le.Z,{})})})},Et=function(o,v,w){switch(o){case"edit":ft(v,w);break;case"enableOrDisable":gt(v,w);break;case"delete":vt(v,w);break;case"pinOrUnPin":pt(v,w);break;default:break}},yt=function(){Ye(!1),qe()},bt=function(o){Cn(o.trim())},xt=function(o){t.W.get("".concat(a.Z.apiPrefix,"crons/").concat(o.id)).then(function(v){var w=v.code,te=v.data;if(w===200){var ce=Te.findIndex(function(Pe){return Pe.id===o.id}),Me=p()(Te);te.nextRunTime=(0,X.n$)(te.schedule),ce!==-1&&(Me.splice(ce,1,h()(h()({},o),te)),Re(Me))}}).finally(function(){return Ve(!1)})},Ot=function(o){We(o)},Pt={selectedRowKeys:Se,onChange:Ot},Dt=function(){$.Z.confirm({title:"\u786E\u8BA4\u5220\u9664",content:(0,r.jsx)(r.Fragment,{children:"\u786E\u8BA4\u5220\u9664\u9009\u4E2D\u7684\u5B9A\u65F6\u4EFB\u52A1\u5417"}),onOk:function(){t.W.delete("".concat(a.Z.apiPrefix,"crons"),{data:Se}).then(function(v){var w=v.code,te=v.data;w===200&&(L.ZP.success("\u6279\u91CF\u5220\u9664\u6210\u529F"),We([]),qe())})},onCancel:function(){console.log("Cancel")}})},Ge=function(o){$.Z.confirm({title:"\u786E\u8BA4".concat(N.OperationName[o]),content:(0,r.jsxs)(r.Fragment,{children:["\u786E\u8BA4",N.OperationName[o],"\u9009\u4E2D\u7684\u5B9A\u65F6\u4EFB\u52A1\u5417"]}),onOk:function(){t.W.put("".concat(a.Z.apiPrefix,"crons/").concat(N.OperationPath[o]),Se).then(function(w){var te=w.code,ce=w.data;te===200&&qe()})},onCancel:function(){console.log("Cancel")}})},St=function(o,v,w){var te=o.current,ce=o.pageSize;mn({page:te,size:ce,sorter:w,filters:v}),localStorage.setItem("pageSize",String(ce))},jt=function(o,v){return o.isPinned?"pinned-cron cron":"cron"};(0,b.useEffect)(function(){xe&&(localStorage.setItem("logCron",xe.id),fn(!0))},[xe]),(0,b.useEffect)(function(){mn(h()(h()({},ke),{},{page:1}))},[Xe]),(0,b.useEffect)(function(){ke.page&&ke.size&&qe()},[ke,Ie]),(0,b.useEffect)(function(){if(Ie&&He&&He.length>0){var O=He.slice(4).find(function(o){return o.id===Ie.id});ut(!!O)}},[Ie,He]),(0,b.useEffect)(function(){xn()},[]);var wt=function(o){switch(o){case"new":An(!0);break;case"manage":Zn(!0);break;default:kn(o);break}},Mt={onClick:function(o){var v=o.key,w=o.domEvent;w.stopPropagation(),wt(v)},items:[].concat(p()(p()(He).slice(4).map(function(O){return{label:(0,r.jsxs)(Q.Z,{style:{display:"flex",justifyContent:"space-between"},children:[(0,r.jsx)("span",{children:O.name}),(Ie==null?void 0:Ie.id)===O.id&&(0,r.jsx)(Ce.Z,{style:{color:"#1890ff"}})]}),key:O.id,icon:(0,r.jsx)(ge,{})}})),[{type:"divider"},{label:"\u65B0\u5EFA\u89C6\u56FE",key:"new",icon:(0,r.jsx)(ee.Z,{})},{label:"\u89C6\u56FE\u7BA1\u7406",key:"manage",icon:(0,r.jsx)(U.Z,{})}])},xn=function(){Ve(!0),t.W.get("".concat(a.Z.apiPrefix,"crons/views")).then(function(o){var v=o.code,w=o.data;if(v===200){ot(w);var te=w.filter(function(ce){return!ce.isDisabled});lt(te),mn({page:1,size:parseInt(localStorage.getItem("pageSize")||"20"),sorter:{},filters:{}}),hn(h()({},te[0]))}}).finally(function(){Ve(!1)})},kn=function(o){var v=He.find(function(w){return w.id==o});We([]),mn(h()(h()({},ke),{},{page:1})),hn(v||null)},Bt=(0,Ze.u)(function(){return{scroll:{y:bn}}},[bn]),At=s()(Bt,1),Tt=At[0];return(0,r.jsxs)(l.ZP,{className:"ql-container-wrapper crontab-wrapper ql-container-wrapper-has-tab",title:"\u5B9A\u65F6\u4EFB\u52A1",extra:[(0,r.jsx)(V,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\u6216\u8005\u5173\u952E\u8BCD",style:{width:"auto"},enterButton:!0,allowClear:!0,loading:nn,value:Yn,onChange:function(o){return Xn(o.target.value)},onSearch:bt}),(0,r.jsx)(f.Z,{type:"primary",onClick:function(){return dt()},children:"\u65B0\u5EFA\u4EFB\u52A1"},"2")],header:{style:Ee},children:[(0,r.jsx)(E.Z,{defaultActiveKey:"all",size:"small",tabPosition:"top",className:"crontab-view ".concat(Ln?"more-active":""),tabBarExtraContent:(0,r.jsx)(M.Z,{menu:Mt,trigger:["click"],overlayStyle:{minWidth:200},children:(0,r.jsxs)("div",{className:"view-more ".concat(Ln?"active":""),children:[(0,r.jsxs)(Q.Z,{children:["\u66F4\u591A",(0,r.jsx)(n.Z,{})]}),(0,r.jsx)("div",{className:"ant-tabs-ink-bar ant-tabs-ink-bar-animated"})]})}),onTabClick:kn,items:p()(p()(He).slice(0,4).map(function(O){return{key:O.id,label:O.name}}))}),(0,r.jsxs)("div",{ref:Wn,children:[Se.length>0&&(0,r.jsxs)("div",{style:{marginBottom:16},children:[(0,r.jsx)(f.Z,{type:"primary",style:{marginBottom:5},onClick:Dt,children:"\u6279\u91CF\u5220\u9664"}),(0,r.jsx)(f.Z,{type:"primary",onClick:function(){return Ge(0)},style:{marginLeft:8,marginBottom:5},children:"\u6279\u91CF\u542F\u7528"}),(0,r.jsx)(f.Z,{type:"primary",onClick:function(){return Ge(1)},style:{marginLeft:8,marginRight:8},children:"\u6279\u91CF\u7981\u7528"}),(0,r.jsx)(f.Z,{type:"primary",style:{marginRight:8},onClick:function(){return Ge(2)},children:"\u6279\u91CF\u8FD0\u884C"}),(0,r.jsx)(f.Z,{type:"primary",onClick:function(){return Ge(3)},children:"\u6279\u91CF\u505C\u6B62"}),(0,r.jsx)(f.Z,{type:"primary",onClick:function(){return Ge(4)},style:{marginLeft:8,marginRight:8},children:"\u6279\u91CF\u7F6E\u9876"}),(0,r.jsx)(f.Z,{type:"primary",onClick:function(){return Ge(5)},style:{marginLeft:8,marginRight:8},children:"\u6279\u91CF\u53D6\u6D88\u7F6E\u9876"}),(0,r.jsx)(f.Z,{type:"primary",onClick:function(){return ln(!0)},style:{marginLeft:8,marginRight:8},children:"\u6279\u91CF\u4FEE\u6539\u6807\u7B7E"}),(0,r.jsxs)("span",{style:{marginLeft:8},children:["\u5DF2\u9009\u62E9",(0,r.jsx)("a",{children:Se==null?void 0:Se.length}),"\u9879"]})]}),(0,r.jsx)(x.Z,{columns:_e,pagination:{current:ke.page,pageSize:ke.size,showSizeChanger:!0,simple:Ae,total:Mn,showTotal:function(o,v){return"\u7B2C ".concat(v[0],"-").concat(v[1]," \u6761/\u603B\u5171 ").concat(o," \u6761")},pageSizeOptions:[10,20,50,100,200,500,Mn||1e4].sort(function(O,o){return O-o})},dataSource:Te,rowKey:"id",size:"middle",scroll:{x:1e3,y:bn},loading:nn,rowSelection:Pt,rowClassName:jt,onChange:St})]}),(0,r.jsx)(P.default,{visible:En,handleCancel:function(){xt(xe),fn(!1)},cron:xe}),(0,r.jsx)(d.default,{visible:gn,handleCancel:yt,cron:ze}),(0,r.jsx)(d.CronLabelModal,{visible:on,handleCancel:function(o){ln(!1),o&&qe()},ids:Se}),(0,r.jsx)(D.default,{visible:Vn,handleCancel:function(){Dn(!1)},cron:Hn,theme:be,isPhone:Ae}),(0,r.jsx)(ne.default,{visible:et,handleCancel:function(o){An(!1),xn(),o&&o.id===Ie.id&&hn(h()(h()({},Ie),o))}}),(0,r.jsx)(u.default,{cronViews:rt,visible:tt,handleCancel:function(){Zn(!1)},cronViewChange:function(o){xn(),o&&o.id===Ie.id&&hn(h()(h()({},Ie),o))}})]})},Y=A},42792:function(we,K,e){"use strict";e.r(K);var m=e(54306),p=e.n(m),z=e(63313),s=e.n(z),F=e(89065),h=e(84163),b=e(24378),W=e(95176),Z=e(5558),k=e(65601),Q=e(38101),I=e(91796),$=e(82428),L=e(11527),M=F.Z.Countdown,f=function(x){var S=x.cron,g=x.handleCancel,C=x.visible,j=x.data,H=x.logUrl,_=(0,z.useState)("\u542F\u52A8\u4E2D..."),de=p()(_,2),ae=de[0],R=de[1],ye=(0,z.useState)(!0),y=p()(ye,2),fe=y[0],ie=y[1],i=(0,z.useState)(!0),me=p()(i,2),re=me[0],ve=me[1],le=(0,z.useState)(!1),Ce=p()(le,2),se=Ce[0],he=Ce[1],G=(0,z.useRef)({value:0,down:!0}),ge=function l(t){t&&ie(!0),W.W.get(H||"".concat(Z.Z.apiPrefix,"crons/").concat(S.id,"/log")).then(function(d){var P=d.code,D=d.data;if(P===200&&localStorage.getItem("logCron")===String(S.id)&&D!==ae){var c=D;R(c||"\u6682\u65E0\u65E5\u5FD7");var B=!!(c&&!(0,$.x$)(c)&&!c.includes("\u4EFB\u52A1\u672A\u8FD0\u884C"));ve(B),ee(),B&&setTimeout(function(){l()},2e3)}}).finally(function(){t&&ie(!1)})},ee=function(){G.current.down&&setTimeout(function(){document.querySelector("#log-flag").scrollIntoView({behavior:"smooth"})},1e3)},U=function(){localStorage.removeItem("logCron"),g()},n=function(t){var d=t.target.scrollTop;G.current.down&&(G.current={value:d,down:d>G.current.value})},a=function(){return(0,L.jsxs)(L.Fragment,{children:[(re||fe)&&(0,L.jsx)(k.Z,{spin:!0}),!re&&!fe&&(0,L.jsx)(Q.Z,{}),(0,L.jsx)("span",{style:{marginLeft:5},children:S&&S.name})]})};return(0,z.useEffect)(function(){S&&S.id&&C&&ge(!0)},[S,C]),(0,z.useEffect)(function(){j&&R(j)},[j]),(0,z.useEffect)(function(){he(document.body.clientWidth<768)},[]),(0,L.jsx)(h.Z,{title:a(),open:C,centered:!0,className:"log-modal",bodyStyle:{minHeight:"300px"},forceRender:!0,onOk:function(){return U()},onCancel:function(){return U()},footer:[(0,L.jsx)(b.Z,{type:"primary",onClick:function(){return U()},children:"\u77E5\u9053\u4E86"})],children:(0,L.jsxs)("div",{onScroll:n,className:"log-container",children:[fe?(0,L.jsx)(I.Z,{}):(0,L.jsx)("pre",{style:se?{fontFamily:"Source Code Pro",width:375,zoom:.83}:{},children:ae}),(0,L.jsx)("div",{id:"log-flag"})]})})};K.default=f},8879:function(we,K,e){"use strict";e.r(K),e.d(K,{CronLabelModal:function(){return ye},default:function(){return R}});var m=e(25359),p=e.n(m),z=e(57213),s=e.n(z),F=e(49811),h=e.n(F),b=e(54306),W=e.n(b),Z=e(63313),k=e(67393),Q=e(9835),I=e(84163),$=e(22159),L=e(24378),M=e(95176),f=e(5558),E=e(11186),x=e.n(E),S=e(93525),g=e.n(S),C=e(51704),j=e(8297),H=e(26839),_=e(11527),de=function(fe){var ie=fe.value,i=fe.onChange,me=(0,Z.useState)(""),re=W()(me,2),ve=re[0],le=re[1],Ce=(0,Z.useState)(!1),se=W()(Ce,2),he=se[0],G=se[1],ge=(0,Z.useState)([]),ee=W()(ge,2),U=ee[0],n=ee[1],a=(0,Z.useRef)(),l=function(B){var ne=U.filter(function(u){return u!==B});n(ne),i==null||i(ne)},t=function(){G(!0)},d=function(B){le(B.target.value)},P=function(){ve&&!U.includes(ve)&&(n([].concat(g()(U),[ve])),i==null||i([].concat(g()(U),[ve]))),G(!1),le("")},D=U.map(function(c){var B=(0,_.jsx)(C.Z,{closable:!0,onClose:function(u){u.preventDefault(),l(c)},children:c});return(0,_.jsx)("span",{style:{display:"inline-block",marginBottom:8},children:B},c)});return(0,Z.useEffect)(function(){he&&a&&a.current.focus()},[he]),(0,Z.useEffect)(function(){ie&&n(ie)},[ie]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(j.Z,{enter:{scale:.8,opacity:0,type:"from",duration:100},leave:{opacity:0,width:0,scale:0,duration:200},appear:!1,children:D}),he&&(0,_.jsx)($.Z,{ref:a,type:"text",size:"small",style:{width:78},value:ve,onChange:d,onBlur:P,onPressEnter:P}),!he&&(0,_.jsxs)(C.Z,{onClick:t,style:{borderStyle:"dashed",cursor:"pointer"},children:[(0,_.jsx)(H.Z,{})," \u65B0\u5EFA"]})]})},ae=de,R=function(fe){var ie=fe.cron,i=fe.handleCancel,me=fe.visible,re=k.Z.useForm(),ve=W()(re,1),le=ve[0],Ce=(0,Z.useState)(!1),se=W()(Ce,2),he=se[0],G=se[1],ge=function(){var ee=h()(p()().mark(function U(n){var a,l,t,d,P;return p()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return G(!0),a=ie?"put":"post",l=s()({},n),ie&&(l.id=ie.id),c.prev=4,c.next=7,M.W[a]("".concat(f.Z.apiPrefix,"crons"),l);case 7:t=c.sent,d=t.code,P=t.data,d===200&&(Q.ZP.success(ie?"\u66F4\u65B0Cron\u6210\u529F":"\u65B0\u5EFACron\u6210\u529F"),i(P)),G(!1),c.next=17;break;case 14:c.prev=14,c.t0=c.catch(4),G(!1);case 17:case"end":return c.stop()}},U,null,[[4,14]])}));return function(n){return ee.apply(this,arguments)}}();return(0,Z.useEffect)(function(){le.resetFields()},[ie,me]),(0,_.jsx)(I.Z,{title:ie?"\u7F16\u8F91\u4EFB\u52A1":"\u65B0\u5EFA\u4EFB\u52A1",open:me,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){le.validateFields().then(function(U){ge(U)}).catch(function(U){console.log("Validate Failed:",U)})},onCancel:function(){return i()},confirmLoading:he,children:(0,_.jsxs)(k.Z,{form:le,layout:"vertical",name:"form_in_modal",initialValues:ie,children:[(0,_.jsx)(k.Z.Item,{name:"name",label:"\u540D\u79F0",children:(0,_.jsx)($.Z,{placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"})}),(0,_.jsx)(k.Z.Item,{name:"command",label:"\u547D\u4EE4/\u811A\u672C",rules:[{required:!0,whitespace:!0}],children:(0,_.jsx)($.Z.TextArea,{rows:4,autoSize:!0,placeholder:"\u652F\u6301\u8F93\u5165\u811A\u672C\u8DEF\u5F84/\u4EFB\u610F\u7CFB\u7EDF\u53EF\u6267\u884C\u547D\u4EE4/task \u811A\u672C\u8DEF\u5F84"})}),(0,_.jsx)(k.Z.Item,{name:"schedule",label:"\u5B9A\u65F6\u89C4\u5219",rules:[{required:!0},{validator:function(U,n){return!n||x().parseExpression(n).hasNext()?Promise.resolve():Promise.reject("Cron\u8868\u8FBE\u5F0F\u683C\u5F0F\u6709\u8BEF")}}],children:(0,_.jsx)($.Z,{placeholder:"\u79D2(\u53EF\u9009) \u5206 \u65F6 \u5929 \u6708 \u5468"})}),(0,_.jsx)(k.Z.Item,{name:"labels",label:"\u6807\u7B7E",children:(0,_.jsx)(ae,{})})]})})},ye=function(fe){var ie=fe.ids,i=fe.handleCancel,me=fe.visible,re=k.Z.useForm(),ve=W()(re,1),le=ve[0],Ce=(0,Z.useState)(!1),se=W()(Ce,2),he=se[0],G=se[1],ge=function(){var U=h()(p()().mark(function n(a){return p()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:le.validateFields().then(function(){var d=h()(p()().mark(function P(D){var c,B,ne,u;return p()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return G(!0),c={ids:ie,labels:D.labels},X.prev=2,X.next=5,M.W[a]("".concat(f.Z.apiPrefix,"crons/labels"),c);case 5:B=X.sent,ne=B.code,u=B.data,ne===200&&(Q.ZP.success(a==="post"?"\u6DFB\u52A0Labels\u6210\u529F":"\u5220\u9664Labels\u6210\u529F"),i(!0)),G(!1),X.next=15;break;case 12:X.prev=12,X.t0=X.catch(2),G(!1);case 15:case"end":return X.stop()}},P,null,[[2,12]])}));return function(P){return d.apply(this,arguments)}}()).catch(function(d){console.log("Validate Failed:",d)});case 1:case"end":return t.stop()}},n)}));return function(a){return U.apply(this,arguments)}}();(0,Z.useEffect)(function(){le.resetFields()},[ie,me]);var ee=[(0,_.jsx)(L.Z,{onClick:function(){return i(!1)},children:"\u53D6\u6D88"}),(0,_.jsx)(L.Z,{type:"primary",danger:!0,onClick:function(){return ge("delete")},children:"\u5220\u9664"}),(0,_.jsx)(L.Z,{type:"primary",onClick:function(){return ge("post")},children:"\u6DFB\u52A0"})];return(0,_.jsx)(I.Z,{title:"\u6279\u91CF\u4FEE\u6539\u6807\u7B7E",open:me,footer:ee,centered:!0,maskClosable:!1,forceRender:!0,onCancel:function(){return i(!1)},confirmLoading:he,children:(0,_.jsx)(k.Z,{form:le,layout:"vertical",name:"form_in_label_modal",children:(0,_.jsx)(k.Z.Item,{name:"labels",label:"\u6807\u7B7E",children:(0,_.jsx)(ae,{})})})})}},33538:function(we,K,e){"use strict";e.r(K),e.d(K,{CrontabStatus:function(){return m},OperationName:function(){return p},OperationPath:function(){return z}});var m=function(s){return s[s.running=0]="running",s[s.queued=.5]="queued",s[s.idle=1]="idle",s[s.disabled=2]="disabled",s}({}),p=function(s){return s[s.\u542F\u7528=0]="\u542F\u7528",s[s.\u7981\u7528=1]="\u7981\u7528",s[s.\u8FD0\u884C=2]="\u8FD0\u884C",s[s.\u505C\u6B62=3]="\u505C\u6B62",s[s.\u7F6E\u9876=4]="\u7F6E\u9876",s[s.\u53D6\u6D88\u7F6E\u9876=5]="\u53D6\u6D88\u7F6E\u9876",s}({}),z=function(s){return s[s.enable=0]="enable",s[s.disable=1]="disable",s[s.run=2]="run",s[s.stop=3]="stop",s[s.pin=4]="pin",s[s.unpin=5]="unpin",s}({})},71138:function(we,K,e){"use strict";e.r(K),e.d(K,{default:function(){return he}});var m=e(12342),p=e.n(m),z=e(25359),s=e.n(z),F=e(57213),h=e.n(F),b=e(49811),W=e.n(b),Z=e(54306),k=e.n(Z),Q=e(63313),I=e(67393),$=e(28756),L=e(84163),M=e(22159),f=e(24378),E=e(2947),x=e(95176),S=e(5558),g=e(14797),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},j=C,H=e(46420),_=function(ge,ee){return Q.createElement(H.Z,(0,g.Z)((0,g.Z)({},ge),{},{ref:ee,icon:j}))};_.displayName="MinusCircleOutlined";var de=Q.forwardRef(_),ae=e(26839),R=e(86755),ye=e(33538),y=e(11527),fe=["key","name"],ie=["key","name"],i=[{name:"\u547D\u4EE4",value:"command"},{name:"\u540D\u79F0",value:"name"},{name:"\u5B9A\u65F6\u89C4\u5219",value:"schedule"},{name:"\u72B6\u6001",value:"status"},{name:"\u6807\u7B7E",value:"labels"}],me={Reg:"",NotReg:"",In:"select",Nin:"select"},re=[{name:"\u5305\u542B",value:"Reg"},{name:"\u4E0D\u5305\u542B",value:"NotReg"},{name:"\u5C5E\u4E8E",value:"In",type:"select"},{name:"\u4E0D\u5C5E\u4E8E",value:"Nin",type:"select"}],ve=[{name:"\u987A\u5E8F",value:"ASC"},{name:"\u5012\u5E8F",value:"DESC"}],le={status:[{name:"\u8FD0\u884C\u4E2D",value:ye.CrontabStatus.running},{name:"\u7A7A\u95F2\u4E2D",value:ye.CrontabStatus.idle},{name:"\u5DF2\u7981\u7528",value:ye.CrontabStatus.disabled}]},Ce=function(G){return G.and="\u4E14",G.or="\u6216",G}(Ce||{}),se=function(ge){var ee=ge.view,U=ge.handleCancel,n=ge.visible,a=I.Z.useForm(),l=k()(a,1),t=l[0],d=(0,Q.useState)(!1),P=k()(d,2),D=P[0],c=P[1],B=(0,Q.useState)("and"),ne=k()(B,2),u=ne[0],Be=ne[1],X=I.Z.useWatch("filters",t),Ze=function(){var V=W()(s()().mark(function A(Y){var ue,Oe,Ee,Ae;return s()().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return c(!0),Y.filterRelation=u,ue=ee?"put":"post",_e.prev=3,_e.next=6,x.W[ue]("".concat(S.Z.apiPrefix,"crons/views"),ee?h()(h()({},Y),{},{id:ee.id}):Y);case 6:Oe=_e.sent,Ee=Oe.code,Ae=Oe.data,Ee===200&&U(Ae),c(!1),_e.next=16;break;case 13:_e.prev=13,_e.t0=_e.catch(3),c(!1);case 16:case"end":return _e.stop()}},A,null,[[3,13]])}));return function(Y){return V.apply(this,arguments)}}();(0,Q.useEffect)(function(){ee||t.resetFields(),t.setFieldsValue(ee||{filters:[{property:"command",operation:"Reg"}]})},[ee,n]);var N=(0,y.jsx)($.Z,{style:{width:80},children:re.map(function(V){return(0,y.jsx)($.Z.Option,{value:V.value,children:V.name},V.name)})}),r=function(A){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,y.jsx)($.Z,{style:Y,children:A.map(function(ue){return(0,y.jsx)($.Z.Option,{value:ue.value,children:ue.name},ue.name)})})},oe=(0,y.jsx)($.Z,{style:{width:80},children:ve.map(function(V){return(0,y.jsx)($.Z.Option,{value:V.value,children:V.name},V.name)})}),J=function(A){var Y;return(0,y.jsx)($.Z,{mode:"tags",allowClear:!0,placeholder:"\u8F93\u5165\u540E\u56DE\u8F66\u589E\u52A0\u81EA\u5B9A\u4E49\u9009\u9879",children:(Y=le[A])===null||Y===void 0?void 0:Y.map(function(ue){return(0,y.jsx)($.Z.Option,{value:ue.value,children:ue.name},ue.name)})})};return(0,y.jsx)(L.Z,{title:ee?"\u7F16\u8F91\u89C6\u56FE":"\u65B0\u5EFA\u89C6\u56FE",open:n,forceRender:!0,width:580,centered:!0,maskClosable:!1,onOk:function(){t.validateFields().then(function(A){Ze(A)}).catch(function(A){console.log("Validate Failed:",A)})},onCancel:function(){return U()},confirmLoading:D,children:(0,y.jsxs)(I.Z,{form:t,layout:"vertical",name:"env_modal",children:[(0,y.jsx)(I.Z.Item,{name:"name",label:"\u89C6\u56FE\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u89C6\u56FE\u540D\u79F0"}],children:(0,y.jsx)(M.Z,{placeholder:"\u8BF7\u8F93\u5165\u89C6\u56FE\u540D\u79F0"})}),(0,y.jsx)(I.Z.List,{name:"filters",children:function(A,Y){var ue=Y.add,Oe=Y.remove;return(0,y.jsxs)("div",{style:{position:"relative"},className:"view-filters-container ".concat(A.length>1?"active":""),children:[A.length>1&&(0,y.jsx)("div",{style:{position:"absolute",width:50,borderRadius:10,border:"1px solid rgb(190, 220, 255)",borderRight:"none",height:56*(A.length-1),top:46,left:15},children:(0,y.jsx)(f.Z,{type:"primary",size:"small",style:{position:"absolute",top:"50%",translate:"-50% -50%",padding:"0 3px",cursor:"pointer"},onClick:function(){Be(u==="and"?"or":"and")},children:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("span",{children:Ce[u]}),(0,y.jsx)(R.Z,{type:"ql-icon-d-caret"})]})})}),(0,y.jsxs)("div",{children:[A.map(function(Ee){var Ae=Ee.key,be=Ee.name,_e=p()(Ee,fe);return(0,y.jsx)(I.Z.Item,{label:be===0?"\u7B5B\u9009\u6761\u4EF6":"",style:{marginBottom:0},required:!0,className:"filter-item",children:(0,y.jsxs)(E.Z,{className:"view-create-modal-filters",align:"baseline",children:[(0,y.jsx)(I.Z.Item,h()(h()({},_e),{},{name:[be,"property"],rules:[{required:!0}],children:r(i,{width:90})})),(0,y.jsx)(I.Z.Item,h()(h()({},_e),{},{name:[be,"operation"],rules:[{required:!0}],children:N})),(0,y.jsx)(I.Z.Item,h()(h()({},_e),{},{name:[be,"value"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}],children:me[X==null?void 0:X[be].operation]==="select"?J(X==null?void 0:X[be].property):(0,y.jsx)(M.Z,{placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"})})),be!==0&&(0,y.jsx)(de,{onClick:function(){return Oe(be)}})]})},Ae)}),(0,y.jsx)(I.Z.Item,{children:(0,y.jsxs)("a",{onClick:function(){return ue({property:"command",operation:"Reg"})},children:[(0,y.jsx)(ae.Z,{}),"\u65B0\u589E\u7B5B\u9009\u6761\u4EF6"]})})]})]})}}),(0,y.jsx)(I.Z.List,{name:"sorts",children:function(A,Y){var ue=Y.add,Oe=Y.remove;return(0,y.jsxs)("div",{style:{position:"relative"},className:"view-filters-container ".concat(A.length>1?"active":""),children:[A.length>1&&(0,y.jsx)("div",{style:{position:"absolute",width:50,borderRadius:10,border:"1px solid rgb(190, 220, 255)",borderRight:"none",height:56*(A.length-1),top:46,left:15},children:(0,y.jsx)(f.Z,{type:"primary",size:"small",style:{position:"absolute",top:"50%",translate:"-50% -50%",padding:"0 3px",cursor:"pointer"},children:(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("span",{children:Ce[u]})})})}),(0,y.jsxs)("div",{children:[A.map(function(Ee){var Ae=Ee.key,be=Ee.name,_e=p()(Ee,ie);return(0,y.jsx)(I.Z.Item,{label:be===0?"\u6392\u5E8F\u65B9\u5F0F":"",style:{marginBottom:0},className:"filter-item",children:(0,y.jsxs)(E.Z,{className:"view-create-modal-sorts",align:"baseline",children:[(0,y.jsx)(I.Z.Item,h()(h()({},_e),{},{name:[be,"property"],rules:[{required:!0}],children:r(i)})),(0,y.jsx)(I.Z.Item,h()(h()({},_e),{},{name:[be,"type"],rules:[{required:!0}],children:oe})),(0,y.jsx)(de,{onClick:function(){return Oe(be)}})]})},Ae)}),(0,y.jsx)(I.Z.Item,{children:(0,y.jsxs)("a",{onClick:function(){return ue({property:"command",type:"ASC"})},children:[(0,y.jsx)(ae.Z,{}),"\u65B0\u589E\u6392\u5E8F\u65B9\u5F0F"]})})]})]})}})]})})},he=se},87421:function(we,K,e){"use strict";e.r(K);var m=e(93525),p=e.n(m),z=e(57213),s=e.n(z),F=e(54306),h=e.n(F),b=e(12342),W=e.n(b),Z=e(63313),k=e.n(Z),Q=e(92260),I=e(16861),$=e(2947),L=e(84163),M=e(9835),f=e(24378),E=e(60986),x=e(95176),S=e(5558),g=e(32132),C=e(13740),j=e(18141),H=e(9058),_=e(33328),de=e(66255),ae=e(71138),R=e(11527),ye=["index","moveRow","className","style"],y=Q.Z.Text,fe="DragableBodyRow",ie=function(re){var ve=re.index,le=re.moveRow,Ce=re.className,se=re.style,he=W()(re,ye),G=(0,Z.useRef)(),ge=(0,j.L)({accept:fe,collect:function(c){var B=c.getItem()||{},ne=B.index;return ne===ve?{}:{isOver:c.isOver(),dropClassName:ne<ve?" drop-over-downward":" drop-over-upward"}},drop:function(c){le(c.index,ve)}}),ee=h()(ge,2),U=ee[0],n=U.isOver,a=U.dropClassName,l=ee[1],t=(0,H.c)({type:fe,item:{index:ve},collect:function(c){return{isDragging:c.isDragging()}}}),d=h()(t,2),P=d[1];return l(P(G)),(0,R.jsx)("tr",s()({ref:G,className:"".concat(Ce).concat(n?a:""),style:s()({cursor:"move"},se)},he))},i=function(re){var ve=re.cronViews,le=re.handleCancel,Ce=re.visible,se=re.cronViewChange,he=function(r){return U.filter(function(oe){return!oe.isDisabled}).length<=1&&!r.isDisabled},G=[{title:"\u540D\u79F0",dataIndex:"name",key:"name"},{title:"\u7C7B\u578B",dataIndex:"type",key:"type",render:function(r){return r===1?"\u7CFB\u7EDF":"\u4E2A\u4EBA"}},{title:"\u663E\u793A",key:"isDisabled",dataIndex:"isDisabled",width:100,render:function(r,oe,J){return(0,R.jsx)(I.Z,{disabled:he(oe),checked:!oe.isDisabled,onChange:function(A){return Be(A,oe,J)}})}},{title:"\u64CD\u4F5C",key:"action",width:100,render:function(r,oe,J){return oe.type!==1?(0,R.jsxs)($.Z,{size:"middle",children:[(0,R.jsx)("a",{onClick:function(){return ne(oe,J)},children:(0,R.jsx)(g.Z,{})}),!he(oe)&&(0,R.jsx)("a",{onClick:function(){return u(oe,J)},children:(0,R.jsx)(C.Z,{})})]}):"-"}}],ge=(0,Z.useState)([]),ee=h()(ge,2),U=ee[0],n=ee[1],a=(0,Z.useState)(!1),l=h()(a,2),t=l[0],d=l[1],P=(0,Z.useState)(null),D=h()(P,2),c=D[0],B=D[1],ne=function(r,oe){B(r),d(!0)},u=function(r,oe){L.Z.confirm({title:"\u786E\u8BA4\u5220\u9664",content:(0,R.jsxs)(R.Fragment,{children:["\u786E\u8BA4\u5220\u9664\u89C6\u56FE"," ",(0,R.jsx)(y,{style:{wordBreak:"break-all"},type:"warning",children:r.name})," ","\u5417"]}),onOk:function(){x.W.delete("".concat(S.Z.apiPrefix,"crons/views"),{data:[r.id]}).then(function(V){var A=V.code,Y=V.data;A===200&&(M.ZP.success("\u5220\u9664\u6210\u529F"),se())})},onCancel:function(){console.log("Cancel")}})},Be=function(r,oe,J){x.W.put("".concat(S.Z.apiPrefix,"crons/views/").concat(r?"enable":"disable"),[oe.id]).then(function(V){var A=V.code,Y=V.data;if(A===200){var ue=p()(U);ue.splice(J,1,s()(s()({},U[J]),{},{isDisabled:!r})),n(ue),se()}})},X={body:{row:ie}},Ze=(0,Z.useCallback)(function(N,r){if(N!==r){var oe=U[N];x.W.put("".concat(S.Z.apiPrefix,"crons/views/move"),{fromIndex:N,toIndex:r,id:oe.id}).then(function(J){var V=J.code,A=J.data;if(V===200){var Y=p()(U);Y.splice(N,1),Y.splice(r,0,s()(s()({},oe),A)),n(Y),se()}})}},[U]);return(0,Z.useEffect)(function(){n(ve)},[ve]),(0,R.jsxs)(L.Z,{title:"\u89C6\u56FE\u7BA1\u7406",open:Ce,centered:!0,width:620,onCancel:function(){return le()},className:"view-manage-modal",forceRender:!0,footer:!1,maskClosable:!1,children:[(0,R.jsx)($.Z,{style:{display:"flex",justifyContent:"flex-end",marginBottom:10},children:(0,R.jsx)(f.Z,{type:"primary",onClick:function(){B(null),d(!0)},children:"\u65B0\u5EFA\u89C6\u56FE"},"2")}),(0,R.jsx)(_.W,{backend:de.PD,children:(0,R.jsx)(E.Z,{bordered:!0,columns:G,pagination:!1,dataSource:U,rowKey:"id",size:"middle",style:{marginBottom:20},components:X,onRow:function(r,oe){return{index:oe,moveRow:Ze}}})}),(0,R.jsx)(ae.default,{view:c,visible:t,handleCancel:function(r){d(!1),se(r)}})]})};K.default=i},5558:function(we,K){"use strict";var e=window.__ENV__QlBaseUrl||"/";K.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
|
|
3
|
+
`},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
|
|
4
|
+
Custom-Header2: Header2`},{label:"webhookBody",tip:"\u8BF7\u6C42\u4F53\u683C\u5F0Fkey1: value1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",placeholder:`key1: $title
|
|
5
|
+
key2: $content`}]},documentTitleMap:{"/login":"\u767B\u5F55","/initialization":"\u521D\u59CB\u5316","/crontab":"\u5B9A\u65F6\u4EFB\u52A1","/env":"\u73AF\u5883\u53D8\u91CF","/subscription":"\u8BA2\u9605\u7BA1\u7406","/config":"\u914D\u7F6E\u6587\u4EF6","/script":"\u811A\u672C\u7BA1\u7406","/diff":"\u5BF9\u6BD4\u5DE5\u5177","/log":"\u65E5\u5FD7\u7BA1\u7406","/setting":"\u7CFB\u7EDF\u8BBE\u7F6E","/error":"\u9519\u8BEF\u65E5\u5FD7","/dependence":"\u4F9D\u8D56\u7BA1\u7406"},dependenceTypes:["nodejs","python3","linux"]}},80755:function(we,K,e){"use strict";e.d(K,{E:function(){return m}});function m(p){var z=p*1e3,s=Math.floor(z/(24*3600*1e3)),F=z%(24*3600*1e3),h=Math.floor(F/(3600*1e3)),b=F%(3600*1e3),W=Math.floor(b/(60*1e3)),Z=b%(60*1e3),k=Math.round(Z/1e3),Q=k+"\u79D2";return W>0&&(Q=W+"\u5206"+Q),h>0&&(Q=h+"\u5C0F\u65F6"+Q),s>0&&(Q=s+"\u5929"+Q),Q}},95176:function(we,K,e){"use strict";e.d(K,{W:function(){return $}});var m=e(25359),p=e.n(m),z=e(49811),s=e.n(z),F=e(9835),h=e(5558),b=e(87075),W=e(73669);F.ZP.config({duration:2});var Z=Date.now(),k=function(M){if(M.response){var f=M.response.data?M.response.data.message||M.message||M.response.data:M.response.statusText,E=M.response.status;[502,504].includes(E)?b.history.push("/error"):E===401?b.history.location.pathname!=="/login"&&(F.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(h.Z.authKey),b.history.push("/login")):F.ZP.error({content:f,style:{maxWidth:500,margin:"0 auto"}})}else console.log(M.message);return Promise.reject(M)},Q=W.Z.create({timeout:6e4,params:{t:Z}}),I=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];Q.interceptors.request.use(function(L){var M=localStorage.getItem(h.Z.authKey);return M&&!I.includes(L.url)&&(L.headers.Authorization="Bearer ".concat(M)),L}),Q.interceptors.response.use(function(){var L=s()(p()().mark(function M(f){var E,x,S;return p()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(E=f.status,![502,504].includes(E)){C.next=5;break}b.history.push("/error"),C.next=18;break;case 5:if(E!==401){C.next=9;break}b.history.location.pathname!=="/login"&&(localStorage.removeItem(h.Z.authKey),b.history.push("/login")),C.next=18;break;case 9:return C.prev=9,x=f.data,x.code!==200&&(S=x.message||x.data,S&&F.ZP.error({content:S,style:{maxWidth:500,margin:"0 auto"}})),C.abrupt("return",x);case 15:C.prev=15,C.t0=C.catch(9);case 17:return C.abrupt("return",f);case 18:return C.abrupt("return",f);case 19:case"end":return C.stop()}},M,null,[[9,15]])}));return function(M){return L.apply(this,arguments)}}(),k);var $=Q},82428:function(we,K,e){"use strict";e.d(K,{ZP:function(){return h},I1:function(){return k},w7:function(){return Z},DY:function(){return Q},FA:function(){return $},W9:function(){return b},x$:function(){return I},n$:function(){return L}});var m=e(93525),p=e.n(m),z="\u3000\u3000\u3000\u3000\u3000",s=e(11186),F=e.n(s);function h(){var M=navigator.userAgent.toLowerCase(),f=function(y){return y.test(M)},E=function(y){return(M.match(y)||[]).toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")},x="unknow";f(/windows|win32|win64|wow32|wow64/g)?x="windows":f(/macintosh|macintel/g)?x="macos":f(/x11/g)?x="linux":f(/android|adr/g)?x="android":f(/ios|iphone|ipad|ipod|iwatch/g)&&(x="ios");var S="unknow";x==="windows"?f(/windows nt 5.0|windows 2000/g)?S="2000":f(/windows nt 5.1|windows xp/g)?S="xp":f(/windows nt 5.2|windows 2003/g)?S="2003":f(/windows nt 6.0|windows vista/g)?S="vista":f(/windows nt 6.1|windows 7/g)?S="7":f(/windows nt 6.2|windows 8/g)?S="8":f(/windows nt 6.3|windows 8.1/g)?S="8.1":f(/windows nt 10.0|windows 10/g)&&(S="10"):x==="macos"?S=E(/os x [\d._]+/g):x==="android"?S=E(/android [\d._]+/g):x==="ios"&&(S=E(/os [\d._]+/g));var g="unknow";x==="windows"||x==="macos"||x==="linux"?g="desktop":(x==="android"||x==="ios"||f(/mobile/g))&&(g="mobile");var C="unknow",j="unknow";f(/applewebkit/g)?(C="webkit",f(/edge/g)?j="edge":f(/opr/g)?j="opera":f(/chrome/g)?j="chrome":f(/safari/g)&&(j="safari")):f(/gecko/g)&&f(/firefox/g)?(C="gecko",j="firefox"):f(/presto/g)?(C="presto",j="opera"):f(/trident|compatible|msie/g)&&(C="trident",j="iexplore");var H="unknow";C==="webkit"?H=E(/applewebkit\/[\d._]+/g):C==="gecko"?H=E(/gecko\/[\d._]+/g):C==="presto"?H=E(/presto\/[\d._]+/g):C==="trident"&&(H=E(/trident\/[\d._]+/g));var _="unknow";j==="chrome"?_=E(/chrome\/[\d._]+/g):j==="safari"?_=E(/version\/[\d._]+/g):j==="firefox"?_=E(/firefox\/[\d._]+/g):j==="opera"?_=E(/opr\/[\d._]+/g):j==="iexplore"?_=E(/(msie [\d._]+)|(rv:[\d._]+)/g):j==="edge"&&(_=E(/edge\/[\d._]+/g));var de="none",ae="unknow";f(/micromessenger/g)?(de="wechat",ae=E(/micromessenger\/[\d._]+/g)):f(/qqbrowser/g)?(de="qq",ae=E(/qqbrowser\/[\d._]+/g)):f(/ucbrowser/g)?(de="uc",ae=E(/ucbrowser\/[\d._]+/g)):f(/qihu 360se/g)?de="360":f(/2345explorer/g)?(de="2345",ae=E(/2345explorer\/[\d._]+/g)):f(/metasr/g)?de="sougou":f(/lbbrowser/g)?de="liebao":f(/maxthon/g)&&(de="maxthon",ae=E(/maxthon\/[\d._]+/g));var R=Object.assign({engine:C,engineVs:H,platform:g,supporter:j,supporterVs:_,system:x,systemVs:S},de==="none"?{}:{shell:de,shellVs:ae});return console.log(`%c
|
|
6
|
+
.d88b. d888888b d8b db d888b db .d88b. d8b db d888b
|
|
7
|
+
.8P Y8. \`88' 888o 88 88' Y8b 88 .8P Y8. 888o 88 88' Y8b
|
|
8
|
+
88 88 88 88V8o 88 88 88 88 88 88V8o 88 88
|
|
9
|
+
88 88 88 88 V8o88 88 ooo 88 88 88 88 V8o88 88 ooo
|
|
10
|
+
\`8P d8' .88. 88 V888 88. ~8~ 88booo. \`8b d8' 88 V888 88. ~8~
|
|
11
|
+
\`Y88'Y8 Y888888P VP V8P Y888P Y88888P \`Y88P' VP V8P Y888P
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
`,"color: blue;font-size: 14px;"),console.log(`%c\u5FD8\u5F62\u96E8\u7B20\u70DF\u84D1\uFF0C\u77E5\u5FC3\u7267\u5531\u6A35\u6B4C\u3002\u660E\u6708\u6E05\u98CE\u5171\u6211\uFF0C\u95F2\u4EBA\u4E09\u4E2A\uFF0C\u4ECE\u4ED6\u4ECA\u53E4\u6D88\u78E8\u3002
|
|
15
|
+
`,"color: yellow;font-size: 18px;"),console.log(`%c\u9752\u9F99\u8FD0\u884C\u73AF\u5883:
|
|
16
|
+
|
|
17
|
+
\u7CFB\u7EDF\uFF1A`.concat(R.system,"/").concat(R.systemVs,`
|
|
18
|
+
\u6D4F\u89C8\u5668\uFF1A`).concat(R.supporter,"/").concat(R.supporterVs,`
|
|
19
|
+
\u5185\u6838\uFF1A`).concat(R.engine,"/").concat(R.engineVs),"color: green;font-size: 14px;font-weight: bold;"),R}function b(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=M.extraHeight,E=M.target;typeof f=="undefined"&&(f=99);var x=null;E?x=E:x=document.querySelector(".ant-table-wrapper");var S=0;x&&(S=x.getBoundingClientRect().top);var g=document.body.clientHeight-S-f;return g}function W(M){var f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),M.dispatchEvent(f)}function Z(M,f){var E=window.URL||window.webkitURL||window,x=new Blob([f]),S=document.createElementNS("http://www.w3.org/1999/xhtml","a");S.href=E.createObjectURL(x),S.download=M,W(S)}function k(M,f,E){var x=p()(M),S=[];return function g(C){if(C)for(var j=0;j<(C==null?void 0:C.length);j++){if(f(C[j])){if(!E){C.splice(j,1);return}C[j].children?C[j].children.unshift(E):C[j].children=[E];return}C[j].children&&(S.push(C[j].key),g(C[j].children))}}(x),x}function Q(M,f){var E=p()(M),x;function S(g){if(g)for(var C=0;C<(g==null?void 0:g.length);C++)f(g[C])?x=g[C]:g[C].children&&S(g[C].children)}return S(E),x}function I(M){var f=[z,"\u6267\u884C\u7ED3\u675F"];return f.some(function(E){return M.includes(E)})}function $(M){var f=M.split(" ");if(f[1]==="repo"||f[1]==="raw")return f[2];var E=f.find(function(C){return[".js",".ts",".sh",".py"].some(function(j){return C.endsWith(j)})});if(E){E.startsWith("/ql/data/scripts")&&(E=E.replace("/ql/data/scripts/",""));var x,S,g=E.lastIndexOf("/");return g>=0?(S=E.slice(g+1),x=E.slice(0,g)):(S=E,x=""),[S,x]}}function L(M){try{var f=F().parseExpression(M);if(f)return f.next().toDate()}catch(E){}return new Date("1970")}},16861:function(we,K,e){"use strict";e.d(K,{Z:function(){return S}});var m=e(60795),p=e(87807),z=e(24090),s=e(84875),F=e.n(s),h=e(17079),b=e(16803),W=e(63313),Z=e(26230),k=e(25641),Q=W.forwardRef(function(g,C){var j,H=g.prefixCls,_=H===void 0?"rc-switch":H,de=g.className,ae=g.checked,R=g.defaultChecked,ye=g.disabled,y=g.loadingIcon,fe=g.checkedChildren,ie=g.unCheckedChildren,i=g.onClick,me=g.onChange,re=g.onKeyDown,ve=(0,b.Z)(g,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),le=(0,Z.Z)(!1,{value:ae,defaultValue:R}),Ce=(0,h.Z)(le,2),se=Ce[0],he=Ce[1];function G(n,a){var l=se;return ye||(l=n,he(l),me==null||me(l,a)),l}function ge(n){n.which===k.Z.LEFT?G(!1,n):n.which===k.Z.RIGHT&&G(!0,n),re==null||re(n)}function ee(n){var a=G(!se,n);i==null||i(a,n)}var U=F()(_,de,(j={},(0,p.Z)(j,"".concat(_,"-checked"),se),(0,p.Z)(j,"".concat(_,"-disabled"),ye),j));return W.createElement("button",Object.assign({},ve,{type:"button",role:"switch","aria-checked":se,disabled:ye,className:U,ref:C,onKeyDown:ge,onClick:ee}),y,W.createElement("span",{className:"".concat(_,"-inner")},se?fe:ie))});Q.displayName="Switch";var I=Q,$=e(82259),L=e(7893),M=e(65189),f=e(1570),E=function(g,C){var j={};for(var H in g)Object.prototype.hasOwnProperty.call(g,H)&&C.indexOf(H)<0&&(j[H]=g[H]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,H=Object.getOwnPropertySymbols(g);_<H.length;_++)C.indexOf(H[_])<0&&Object.prototype.propertyIsEnumerable.call(g,H[_])&&(j[H[_]]=g[H[_]]);return j},x=W.forwardRef(function(g,C){var j,H=g.prefixCls,_=g.size,de=g.disabled,ae=g.loading,R=g.className,ye=R===void 0?"":R,y=E(g,["prefixCls","size","disabled","loading","className"]),fe=W.useContext($.E_),ie=fe.getPrefixCls,i=fe.direction,me=W.useContext(M.Z),re=W.useContext(L.Z),ve=(de!=null?de:re)||ae,le=ie("switch",H),Ce=W.createElement("div",{className:"".concat(le,"-handle")},ae&&W.createElement(z.Z,{className:"".concat(le,"-loading-icon")})),se=F()((j={},(0,p.Z)(j,"".concat(le,"-small"),(_||me)==="small"),(0,p.Z)(j,"".concat(le,"-loading"),ae),(0,p.Z)(j,"".concat(le,"-rtl"),i==="rtl"),j),ye);return W.createElement(f.Z,{insertExtraNode:!0},W.createElement(I,(0,m.Z)({},y,{prefixCls:le,className:se,disabled:ve,ref:C,loadingIcon:Ce})))});x.__ANT_SWITCH=!0;var S=x},33503:function(we,K,e){"use strict";e.d(K,{u:function(){return U}});var m=e(63313);function p(n){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},p(n)}var z=["style","context"],s=["ctx"];function F(n,a){var l=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);a&&(t=t.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),l.push.apply(l,t)}return l}function h(n){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?F(Object(l),!0).forEach(function(t){b(n,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(l)):F(Object(l)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(l,t))})}return n}function b(n,a,l){return a=W(a),a in n?Object.defineProperty(n,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[a]=l,n}function W(n){var a=Z(n,"string");return p(a)==="symbol"?a:String(a)}function Z(n,a){if(p(n)!=="object"||n===null)return n;var l=n[Symbol.toPrimitive];if(l!==void 0){var t=l.call(n,a||"default");if(p(t)!=="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}function k(n,a){if(n==null)return{};var l=Q(n,a),t,d;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(n);for(d=0;d<P.length;d++)t=P[d],!(a.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(l[t]=n[t])}return l}function Q(n,a){if(n==null)return{};var l={},t=Object.keys(n),d,P;for(P=0;P<t.length;P++)d=t[P],!(a.indexOf(d)>=0)&&(l[d]=n[d]);return l}function I(){return I=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var l=arguments[a];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(n[t]=l[t])}return n},I.apply(this,arguments)}var $=0,L=1,M=2,f=8,E=64,x=0,S=1,g;(function(n){n[n.INIT=1]="INIT",n[n.LOADED=2]="LOADED",n[n.RUNNING=4]="RUNNING"})(g||(g={}));function C(){return{vt_state:g.INIT,possible_hight_per_tr:-1,computed_h:0,re_computed:0,row_height:[],row_count:0,prev_row_count:0,_offset_top:0,_offset_head:0,_offset_tail:1,WH:0,top:0,left:0,evt:$,end:!1,final_top:0,f_final_top:S,update_count:0,indexMap:new WeakMap,HND_PAINT:0,retry_count:5}}function j(n){if(Object.prototype.hasOwnProperty.call(n,"CLICK~__DIAGNOSIS__"))return;function a(t){for(var d=0,P=0;P<n.row_count;++P)d+=n.row_height[P];var D,c;d>n.computed_h?(D="color:rgb(15, 179, 9)",c="lower than expected"):d<n.computed_h?(D="color:rgb(202, 61, 81)",c="higher than expected"):(D="color:rgba(0, 0, 0, 0.85)",c="normal");var B=n.computed_h-d;return t&&(console.debug("OoOoOoO DIAGNOSIS OoOoOoO"),console.debug("%c%d(%d)(".concat(c,")"),D,d,n.computed_h-d),console.debug("OoOoOoOoOoOoOOoOoOoOoOoOo")),B}Object.defineProperty(n,"CLICK~__DIAGNOSIS__",{get:function(){a(!0)},configurable:!1,enumerable:!1});function l(){if(a(!1)!==0){window.alert("vt: an error occurred!");return}window.requestIdleCallback?window.requestIdleCallback(l):window.setTimeout(l)}n.debug&&l()}function H(n,a){if(n.debug){if(a[0]==="+")return console.debug(a.slice(1));var l=new Date,t="".concat(l.toLocaleTimeString(),".").concat(l.getMilliseconds());console.debug("%c[".concat(n.id,"][").concat(t,"][").concat(a,"]"),"color:#a00",n)}}var _=m.forwardRef(function(a,l){return m.createElement("table",I({ref:l},a))});function de(n){return m.createElement("tbody",n)}var ae=m.forwardRef(function(a,l){return m.createElement("tr",I({ref:l},a))});function R(n,a){var l=n.row_height,t=n.row_count,d=n.overscanRowCount;n._scroll_y=n.scroll.y,typeof n._scroll_y=="number"?n._y=n._scroll_y:(typeof n._scroll_y=="string"||console.assert(!1,"VT: did you forget to set `scroll.y`?"),n._y=n.wrap_inst.current.parentElement.offsetHeight),console.assert(n._y>=0);var P=0,D=0,c=0,B=0;if(a===-1&&t>0){for(D=t;D>0&&B<n._y;)B+=l[--D];return[0|D,0|t,0|n.computed_h-B]}for(;D<t&&P<a;++D)P+=l[D];for(c=D;c<t&&B<n._y;++c)B+=l[c];for(var ne=d<0?0:d;D>0&&ne--;)P-=l[--D];return c+=d,c>t&&(c=t),[0|D,0|c,0|P]}function ye(n,a,l,t){n._offset_top=0|a,n._offset_head=0|l,n._offset_tail=0|t}function y(n,a,l,t,d){n.top=a,n.left=l,n.evt=t,n.end=d}function fe(n,a,l){if(n.wrap_inst.current){var t=n.wrap_inst.current.parentElement;t.scrollTop=a,t.scrollLeft=Math.max(l,t.scrollLeft)}}function ie(n){if(!n.HND_PAINT){var a=n.cq,l=n.wrap_inst,t=function(){n.HND_PAINT=0;for(var P=0;P<a.length;++P)a[P].index>=n._offset_head&&a[P].index<n._offset_tail&&a[P].func();if(!(n.vt_state!==g.RUNNING||!l.current)){var D=n.computed_h;if(n.WH!==D){n.WH=D;var c=l.current.style;c.height=D?(c.maxHeight=D+"px",c.maxHeight):(c.maxHeight="unset",c.maxHeight),n.on_update_wrap_style()}}};n.HND_PAINT=n.evt===f?window.requestAnimationFrame(t):window.setTimeout(t)}}function i(n,a,l,t){var d=a-l,P=new Array(d).fill(t);n.row_height=n.row_height.concat(P),n.computed_h+=d*t}function me(n,a,l){if(a===0){n.computed_h=0,n.row_height.length=0,n.top=0;return}for(var t=n.row_height,d=0,P=a;P<l;++P)d+=t[P];n.computed_h-=d}function re(n,a){n.re_computed=a-n.row_count,n.prev_row_count=n.row_count,n.row_count=a}var ve=function(a,l){var t=a.style,d=a.context,P=k(a,z),D=(0,m.useState)(0),c=(0,m.useRef)(function(){}),B,ne=(0,m.useMemo)(function(){return m.createRef()},[]),u=(0,m.useContext)(d);(0,m.useMemo)(function(){Object.assign(u,C()),u.wrap_inst&&u.wrap_inst.current&&u.wrap_inst.current.parentElement.removeEventListener("scroll",B),u.wrap_inst=ne,u.top=u.initTop,u.on_update_wrap_style=function(){u._y===0&&"".concat(u._scroll_y).length&&B({flag:E,target:{scrollTop:u.top,scrollLeft:u.left}})},u.cq=[];var J=0,V=0;u.cq.push=function(A){if(u.vt_state===g.RUNNING){var Y=u._offset_tail-u._offset_head+u.overscanRowCount*2+10;return V=Math.max(V,Y),J>V&&(J=0),u.cq[J++]=A,0}}},[]);var Be=(0,m.useRef)([]).current,X;B=(0,m.useCallback)(function(J){if(u.vt_state===g.RUNNING){var V=performance.now();if(J){if("flag"in J)Be.push(J);else{var A=J.target,Y=Math.max(A.scrollTop,0);Be.push({target:{scrollTop:Y,scrollLeft:A.scrollLeft},end:A.scrollHeight-A.clientHeight===Math.round(Y),flag:f})}if(u.f_final_top===x)return X(V)}u.HND_RAF||(u.HND_RAF=window.setTimeout(function(){return Promise.resolve().then(function(){return X(V)})}))}},[]),X=(0,m.useCallback)(function(J){u.HND_RAF=0;var V=performance.now();if(V-J>10&&u.retry_count-- >0){B();return}if(u.retry_count=5,u.vt_state===g.RUNNING){var A=Be,Y;if(A.length){Y=A.pop(),A.length=0;var ue=Y.target.scrollTop,Oe=Y.target.scrollLeft,Ee=Y.flag;H(u,"top: ".concat(ue,", left: ").concat(Oe));var Ae=R(u,u.f_final_top===x?u.final_top:ue),be=Ae[0],_e=Ae[1],Le=Ae[2],Ue=u._offset_head,Te=u._offset_tail,Re=u._offset_top,Ne=!1;switch(Ee){case L:H(u,"SCROLLEVT_INIT");break;case E:H(u,"SCROLLEVT_BY_HOOK"),be===Ue&&_e===Te&&Le===Re?(u.f_final_top=S,u.final_top===-1&&(ue=u.computed_h-u._y),Ne=!0):u.final_top===-1&&(ue=Le);break;case M:if(be===Ue&&_e===Te&&Le===Re)return;H(u,"SCROLLEVT_RECOMPUTE");break;case f:if(be===Ue&&_e===Te&&Le===Re)return;H(u,"SCROLLEVT_NATIVE"),u.onScroll&&u.onScroll({top:ue,left:Oe,isEnd:Y.end}),Ne=Y.end;break}ye(u,Le,be,_e),y(u,ue,Oe,Ee,Ne),D[1](++u.update_count)}}},[]),(0,m.useImperativeHandle)(l,function(){var J=function(A){u.f_final_top=x,u.final_top=A,B({target:{scrollTop:A,scrollLeft:-1},flag:E})};return{scrollTo:function(A){c.current=function(){return J(A)},c.current()},scrollToIndex:function(A){c.current=function(){A>u.row_count-1&&(A=u.row_count-1),A<0&&(A=0);for(var Y=0,ue=0;ue<A;++ue)Y+=u.row_height[ue];J(Y)},c.current()}}},[]),(0,m.useEffect)(function(){var J=ne.current.parentElement;try{J.addEventListener("scroll",B,{passive:!0})}catch(V){J.addEventListener("scroll",B,!1)}},[ne.current]),(0,m.useEffect)(function(){B({flag:E,target:{scrollLeft:u.left,scrollTop:u.top}})},[u.scroll.y]),(0,m.useEffect)(function(){switch(u.evt){case E:u.f_final_top===x?c.current():fe(u,u.top,u.left);break;case L:case M:fe(u,u.top,u.left);break}},[D[0]]),(0,m.useEffect)(function(){switch(u.vt_state){case g.LOADED:u.vt_state=g.RUNNING,B({target:{scrollTop:u.top,scrollLeft:0},flag:E});break;case g.RUNNING:u.re_computed!==0&&(u.re_computed=0,B({target:{scrollTop:u.top,scrollLeft:u.left},flag:M}));break}});var Ze=(0,m.useMemo)(function(){return{width:t.width,minWidth:"100%",position:"relative",transform:"translate(0)"}},[t.width]),N=(0,m.useMemo)(function(){return h(h({},t),{},{width:void 0,position:"relative",top:u._offset_top,transform:"translate(0)"})},[u._offset_top]),r=(0,m.useMemo)(function(){return h({},u)},[u.update_count]),oe=u.components.table;return m.createElement("div",{ref:ne,style:Ze},m.createElement(d.Provider,{value:r},m.createElement(oe,I({},P,{style:N}))))},le=function(a){var l=a.children,t=a.className,d=a.ctx,P=l[0],D=l[1],c=Array.isArray(D)?D.length:0,B=d._offset_head,ne=d._offset_tail,u=[];switch(d.vt_state){case g.INIT:c>=0&&(console.assert(B===0),console.assert(ne===1),Array.isArray(D)?(u=D.slice(B,ne),d.indexMap.set(u[0].props.record,0)):u=D,d.re_computed=c,d.prev_row_count=c,d.row_count=c);break;case g.RUNNING:{if(ne>c){var Be=ne-c;ne-=Be,B-=Be,B<0&&(B=0),ne<0&&(ne=0),ye(d,d._offset_top,B,ne)}d.row_count!==c&&re(d,c),c=d.row_count;var X=d.prev_row_count;if(c<X)me(d,c,X);else if(c>X){var Ze=d.row_height;c-Ze.length>0?i(d,c,X,d.possible_hight_per_tr):(Ze.fill(d.possible_hight_per_tr,X,c),d.computed_h+=d.possible_hight_per_tr*(c-X))}if(c){var N=B;u=D.slice(N,ne),u.forEach(function(oe){return d.indexMap.set(oe.props.record,N++)})}else u=D;d.prev_row_count=d.row_count}break;case g.LOADED:console.assert(!1);break}var r=d.components.body.wrapper;return m.createElement(r,{className:t},P,u)},Ce=function(a){var l=m.createRef(),t=a.ctx,d=k(a,s),P=a.children,D=t.components.body.row;if(!Array.isArray(P))return m.createElement(D,d,P);var c=P[0].props,B=t.indexMap.get(c.record),ne=(0,m.useRef)(B),u=(0,m.useMemo)(function(){return".".concat(c.prefixCls,"-expanded-row")},[c.prefixCls]),Be=performance.now();return(0,m.useLayoutEffect)(function(){var X=performance.now();return H(t,"+idx ".concat(B," tooks ").concat(X-Be," ms")),t.vt_state===g.RUNNING?ie(t):(t.possible_hight_per_tr=l.current.offsetHeight,i(t,t.row_count,0,t.possible_hight_per_tr),ie(t),t.vt_state=g.LOADED),function(){ie(t)}},[]),(0,m.useEffect)(function(){t.cq.push({index:B,func:function(){var Ze=l.current;if(Ze){for(var N=Ze.offsetHeight,r=Ze.nextSibling;r&&r.matches(u);)N+=r.offsetHeight,r=r.nextSibling;var oe=t.row_height[B],J=t.row_height[ne.current];t.computed_h-=oe,t.computed_h+=J,t.computed_h+=N-J,t.row_height[B]=N}}}),ie(t)}),m.createElement(D,I({},d,{ref:l}))};function se(n,a){var l=a.table,t=a.body,d=a.header;n.components.body=h(h({},n.components.body),t),t&&t.cell&&(n._vtcomponents.body.cell=t.cell),d&&(n.components.header=d,n._vtcomponents.header=d),l&&(n.components.table=l)}function he(n,a){var l=(0,m.useRef)(m.createContext({})).current,t=(0,m.useContext)(l),d=(0,m.useRef)({scrollTo:function(D){},scrollToIndex:function(D){}});return(0,m.useMemo)(function(){return Object.assign(t,{id:(+new Date).toString(36).slice(4),initTop:0,overscanRowCount:5,debug:!1,ref:d},n())},a),(0,m.useMemo)(function(){var P=m.forwardRef(ve);t._vtcomponents={table:function(c){return m.createElement(P,I({},c,{context:l,ref:t.ref}))},body:{wrapper:function(c){return m.createElement(l.Consumer,null,function(){return m.createElement(le,I({},c,{ctx:t}))})},row:function(c){return m.createElement(Ce,I({},c,{ctx:t}))}}},t.components={},se(t,{table:_,body:{wrapper:de,row:ae}}),t.vt_state=g.INIT},[]),t}function G(n){"@babel/helpers - typeof";return G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},G(n)}var ge=1,ee=2;(function(){var n=(typeof window=="undefined"?"undefined":G(window))==="object"&&window instanceof Window?ge:ee;if(n&ge&&!Object.hasOwnProperty.call(window,"requestAnimationFrame")&&!window.requestAnimationFrame)throw new Error("Please using the modern browers or appropriate polyfill!")})();function U(n,a){var l=he(n,a||[]);return[l._vtcomponents,function(t){return se(l,t)},l.ref]}console.log("wubostc/virtualized-table-for-antd")},38433:function(){}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[3249,3830],{65601:function(n,r,t){"use strict";t.d(r,{Z:function(){return d}});var u=t(14797),o=t(63313),e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 1024c-69.1 0-136.2-13.5-199.3-40.2C251.7 958 197 921 150 874c-47-47-84-101.7-109.8-162.7C13.5 648.2 0 581.1 0 512c0-19.9 16.1-36 36-36s36 16.1 36 36c0 59.4 11.6 117 34.6 171.3 22.2 52.4 53.9 99.5 94.3 139.9 40.4 40.4 87.5 72.2 139.9 94.3C395 940.4 452.6 952 512 952c59.4 0 117-11.6 171.3-34.6 52.4-22.2 99.5-53.9 139.9-94.3 40.4-40.4 72.2-87.5 94.3-139.9C940.4 629 952 571.4 952 512c0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.2C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3s-13.5 136.2-40.2 199.3C958 772.3 921 827 874 874c-47 47-101.8 83.9-162.7 109.7-63.1 26.8-130.2 40.3-199.3 40.3z"}}]},name:"loading-3-quarters",theme:"outlined"},_=e,i=t(46420),s=function(M,m){return o.createElement(i.Z,(0,u.Z)((0,u.Z)({},M),{},{ref:m,icon:_}))};s.displayName="Loading3QuartersOutlined";var d=o.forwardRef(s)},42792:function(n,r,t){"use strict";t.r(r);var u=t(54306),o=t.n(u),e=t(63313),_=t.n(e),i=t(89065),s=t(84163),d=t(24378),E=t(95176),M=t(5558),m=t(65601),K=t(38101),j=t(91796),b=t(82428),a=t(11527),q=i.Z.Countdown,Z=function(f){var c=f.cron,Q=f.handleCancel,P=f.visible,y=f.data,p=f.logUrl,H=(0,e.useState)("\u542F\u52A8\u4E2D..."),D=o()(H,2),A=D[0],L=D[1],$=(0,e.useState)(!0),S=o()($,2),h=S[0],T=S[1],z=(0,e.useState)(!0),I=o()(z,2),R=I[0],F=I[1],N=(0,e.useState)(!1),U=o()(N,2),V=U[0],w=U[1],g=(0,e.useRef)({value:0,down:!0}),G=function l(O){O&&T(!0),E.W.get(p||"".concat(M.Z.apiPrefix,"crons/").concat(c.id,"/log")).then(function(v){var k=v.code,W=v.data;if(k===200&&localStorage.getItem("logCron")===String(c.id)&&W!==A){var C=W;L(C||"\u6682\u65E0\u65E5\u5FD7");var B=!!(C&&!(0,b.x$)(C)&&!C.includes("\u4EFB\u52A1\u672A\u8FD0\u884C"));F(B),J(),B&&setTimeout(function(){l()},2e3)}}).finally(function(){O&&T(!1)})},J=function(){g.current.down&&setTimeout(function(){document.querySelector("#log-flag").scrollIntoView({behavior:"smooth"})},1e3)},x=function(){localStorage.removeItem("logCron"),Q()},X=function(O){var v=O.target.scrollTop;g.current.down&&(g.current={value:v,down:v>g.current.value})},Y=function(){return(0,a.jsxs)(a.Fragment,{children:[(R||h)&&(0,a.jsx)(m.Z,{spin:!0}),!R&&!h&&(0,a.jsx)(K.Z,{}),(0,a.jsx)("span",{style:{marginLeft:5},children:c&&c.name})]})};return(0,e.useEffect)(function(){c&&c.id&&P&&G(!0)},[c,P]),(0,e.useEffect)(function(){y&&L(y)},[y]),(0,e.useEffect)(function(){w(document.body.clientWidth<768)},[]),(0,a.jsx)(s.Z,{title:Y(),open:P,centered:!0,className:"log-modal",bodyStyle:{minHeight:"300px"},forceRender:!0,onOk:function(){return x()},onCancel:function(){return x()},footer:[(0,a.jsx)(d.Z,{type:"primary",onClick:function(){return x()},children:"\u77E5\u9053\u4E86"})],children:(0,a.jsxs)("div",{onScroll:X,className:"log-container",children:[h?(0,a.jsx)(j.Z,{}):(0,a.jsx)("pre",{style:V?{fontFamily:"Source Code Pro",width:375,zoom:.83}:{},children:A}),(0,a.jsx)("div",{id:"log-flag"})]})})};r.default=Z},92235:function(n,r,t){"use strict";t.d(r,{Z:function(){return _}});var u=t(17079),o=t(63313),e=t.n(o);function _(){var i=o.useReducer(function(E){return E+1},0),s=(0,u.Z)(i,2),d=s[1];return d}},24669:function(n){var r=Array.isArray;n.exports=r},30006:function(n,r,t){var u=t(25705);function o(e){if(Array.isArray(e))return u(e)}n.exports=o,n.exports.__esModule=!0,n.exports.default=n.exports},16660:function(n){function r(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}n.exports=r,n.exports.__esModule=!0,n.exports.default=n.exports},95848:function(n){function r(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}n.exports=r,n.exports.__esModule=!0,n.exports.default=n.exports},93525:function(n,r,t){var u=t(30006),o=t(16660),e=t(41442),_=t(95848);function i(s){return u(s)||o(s)||e(s)||_()}n.exports=i,n.exports.__esModule=!0,n.exports.default=n.exports}}]);
|