@whyour/qinglong 0.7.7 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/package.json +4 -1
  2. package/sample/config.sample.sh +5 -0
  3. package/sample/notify.js +3 -3
  4. package/sample/notify.py +2 -2
  5. package/shell/task.sh +1 -1
  6. package/static/build/api/log.js +1 -1
  7. package/static/build/api/subscription.js +5 -1
  8. package/static/build/config/util.js +1 -1
  9. package/static/build/data/cron.js +1 -1
  10. package/static/build/data/dependence.js +1 -1
  11. package/static/build/loaders/initData.js +4 -1
  12. package/static/build/schedule/addCron.js +9 -1
  13. package/static/build/schedule/health.js +1 -1
  14. package/static/build/services/cron.js +5 -5
  15. package/static/build/services/dependence.js +5 -2
  16. package/static/build/services/notify.js +2 -3
  17. package/static/build/services/subscription.js +41 -4
  18. package/static/build/shared/pLimit.js +4 -1
  19. package/static/dist/1925.c5a319f8.async.js +6 -0
  20. package/static/dist/2536.f6b15c54.async.js +1 -0
  21. package/static/dist/3271.913214bd.async.js +1 -0
  22. package/static/dist/3330.962bc898.async.js +1 -0
  23. package/static/dist/{4424.daf21491.async.js → 4424.98b4bd4c.async.js} +1 -1
  24. package/static/dist/4674.403f1511.async.js +1 -0
  25. package/static/dist/4714.6f75a879.async.js +4 -0
  26. package/static/dist/4906.119e3e0f.async.js +81 -0
  27. package/static/dist/6035.8de00e43.async.js +9 -0
  28. package/static/dist/6329.c3cd1754.async.js +26 -0
  29. package/static/dist/7708.b1e590e4.async.js +1 -0
  30. package/static/dist/8037.386b415d.async.js +1 -0
  31. package/static/dist/8044.06e91ce9.async.js +18 -0
  32. package/static/dist/8130.97ce9ff6.async.js +4 -0
  33. package/static/dist/819.c1b8de99.async.js +4 -0
  34. package/static/dist/9532.a47c2a0e.async.js +1 -0
  35. package/static/dist/9673.6cf1fa68.async.js +3 -0
  36. package/static/dist/9692.aca6cd4e.async.js +4 -0
  37. package/static/dist/index.html +1 -1
  38. package/static/dist/layouts__index.47395c48.chunk.css +1 -0
  39. package/static/dist/layouts__index.f45c1c77.async.js +1 -0
  40. package/static/dist/src__pages__404.da927616.async.js +1 -0
  41. package/static/dist/src__pages__config__index.638ee578.async.js +22 -0
  42. package/static/dist/src__pages__crontab__detail.8548570c.async.js +2 -0
  43. package/static/dist/src__pages__crontab__index.ea0ad17d.chunk.css +1 -0
  44. package/static/dist/src__pages__crontab__index.f7d7651f.async.js +19 -0
  45. package/static/dist/src__pages__crontab__logModal.7a8ca1b8.async.js +1 -0
  46. package/static/dist/src__pages__crontab__modal.c94bad49.async.js +4 -0
  47. package/static/dist/src__pages__crontab__viewCreateModal.090fb218.async.js +1 -0
  48. package/static/dist/src__pages__crontab__viewManageModal.f79bdbdd.async.js +1 -0
  49. package/static/dist/src__pages__dependence__index.288f8cb2.async.js +2 -0
  50. package/static/dist/src__pages__dependence__logModal.80ff90bc.async.js +4 -0
  51. package/static/dist/src__pages__dependence__modal.8c434892.async.js +5 -0
  52. package/static/dist/src__pages__diff__index.9bff5d4a.async.js +5 -0
  53. package/static/dist/src__pages__env__editNameModal.7e592361.async.js +4 -0
  54. package/static/dist/src__pages__env__index.b9a18b25.async.js +2 -0
  55. package/static/dist/src__pages__env__modal.12d3d833.async.js +5 -0
  56. package/static/dist/src__pages__error__index.b3c10262.async.js +4 -0
  57. package/static/dist/src__pages__initialization__index.4e7bbbb9.async.js +21 -0
  58. package/static/dist/src__pages__log__index.fe97493d.async.js +1 -0
  59. package/static/dist/src__pages__login__index.7f920198.async.js +1 -0
  60. package/static/dist/src__pages__script__editModal.2a16e662.async.js +4 -0
  61. package/static/dist/src__pages__script__editNameModal.a3391e87.async.js +4 -0
  62. package/static/dist/src__pages__script__index.b772364f.async.js +6 -0
  63. package/static/dist/src__pages__script__renameModal.2bf73e46.async.js +4 -0
  64. package/static/dist/src__pages__script__saveModal.422f1cd7.async.js +4 -0
  65. package/static/dist/src__pages__script__setting.2b76ab6a.async.js +4 -0
  66. package/static/dist/src__pages__setting__about.c3cdad66.async.js +1 -0
  67. package/static/dist/src__pages__setting__appModal.b85e6aeb.async.js +4 -0
  68. package/static/dist/src__pages__setting__index.baad795d.async.js +1 -0
  69. package/static/dist/src__pages__setting__loginLog.e74c10b2.async.js +18 -0
  70. package/static/dist/src__pages__setting__notification.af705cea.async.js +21 -0
  71. package/static/dist/src__pages__setting__other.e735251a.async.js +1 -0
  72. package/static/dist/src__pages__setting__security.b65e9b12.async.js +4 -0
  73. package/static/dist/src__pages__subscription__index.682c6e4b.async.js +1 -0
  74. package/static/dist/src__pages__subscription__logModal.c1a59322.async.js +1 -0
  75. package/static/dist/src__pages__subscription__modal.7cdfec68.async.js +4 -0
  76. package/static/dist/umi.f39c4587.js +105 -0
  77. package/version.yaml +11 -5
  78. package/static/dist/1138.4ccf8136.async.js +0 -4
  79. package/static/dist/1295.06026141.async.js +0 -27
  80. package/static/dist/2536.a60b8e3c.async.js +0 -1
  81. package/static/dist/3330.950e8570.async.js +0 -1
  82. package/static/dist/37.8af37a28.async.js +0 -6
  83. package/static/dist/4378.70083a42.async.js +0 -4
  84. package/static/dist/5035.ac19ee2f.async.js +0 -67
  85. package/static/dist/6556.f0e353dc.async.js +0 -5
  86. package/static/dist/7745.4df6fd01.async.js +0 -1
  87. package/static/dist/8044.fd8552ee.async.js +0 -18
  88. package/static/dist/806.b28198b3.async.js +0 -81
  89. package/static/dist/819.157d1b93.async.js +0 -4
  90. package/static/dist/8347.c3ea8f4e.async.js +0 -6
  91. package/static/dist/9047.273bd90f.async.js +0 -10
  92. package/static/dist/9673.18a70227.async.js +0 -3
  93. package/static/dist/986.f443bd87.async.js +0 -1
  94. package/static/dist/layouts__index.285d8505.chunk.css +0 -1
  95. package/static/dist/layouts__index.34e4586a.async.js +0 -1
  96. package/static/dist/src__pages__404.970a2ae1.async.js +0 -1
  97. package/static/dist/src__pages__config__index.4cdf4d33.async.js +0 -22
  98. package/static/dist/src__pages__crontab__detail.bd91d91a.async.js +0 -3
  99. package/static/dist/src__pages__crontab__index.51efe6ff.async.js +0 -19
  100. package/static/dist/src__pages__crontab__index.ccd9e16b.chunk.css +0 -1
  101. package/static/dist/src__pages__crontab__logModal.c4254d3f.async.js +0 -2
  102. package/static/dist/src__pages__crontab__modal.0a4c9842.async.js +0 -5
  103. package/static/dist/src__pages__crontab__viewCreateModal.d1f29d19.async.js +0 -1
  104. package/static/dist/src__pages__crontab__viewManageModal.4013da38.async.js +0 -1
  105. package/static/dist/src__pages__dependence__index.bb83ee10.async.js +0 -2
  106. package/static/dist/src__pages__dependence__logModal.76717b79.async.js +0 -4
  107. package/static/dist/src__pages__dependence__modal.23a556bf.async.js +0 -5
  108. package/static/dist/src__pages__diff__index.baccd0de.async.js +0 -5
  109. package/static/dist/src__pages__env__editNameModal.004070ce.async.js +0 -4
  110. package/static/dist/src__pages__env__index.f90a2f57.async.js +0 -2
  111. package/static/dist/src__pages__env__modal.f1c2841c.async.js +0 -5
  112. package/static/dist/src__pages__error__index.74e3f663.async.js +0 -4
  113. package/static/dist/src__pages__initialization__index.c40de447.async.js +0 -21
  114. package/static/dist/src__pages__log__index.e6c628e8.async.js +0 -1
  115. package/static/dist/src__pages__login__index.419baa77.async.js +0 -2
  116. package/static/dist/src__pages__script__editModal.3ae4162a.async.js +0 -4
  117. package/static/dist/src__pages__script__editNameModal.fbc5b667.async.js +0 -4
  118. package/static/dist/src__pages__script__index.13e710a9.async.js +0 -23
  119. package/static/dist/src__pages__script__renameModal.7d65398c.async.js +0 -4
  120. package/static/dist/src__pages__script__saveModal.e063656e.async.js +0 -4
  121. package/static/dist/src__pages__script__setting.44ec32a9.async.js +0 -4
  122. package/static/dist/src__pages__setting__about.5138ea49.async.js +0 -1
  123. package/static/dist/src__pages__setting__appModal.87ba69a3.async.js +0 -4
  124. package/static/dist/src__pages__setting__index.3ed4e0d8.async.js +0 -2
  125. package/static/dist/src__pages__setting__loginLog.195a2809.async.js +0 -18
  126. package/static/dist/src__pages__setting__notification.182edc7d.async.js +0 -21
  127. package/static/dist/src__pages__setting__other.8e242852.async.js +0 -1
  128. package/static/dist/src__pages__setting__security.d4e2007a.async.js +0 -4
  129. package/static/dist/src__pages__subscription__index.3233e4c5.async.js +0 -2
  130. package/static/dist/src__pages__subscription__logModal.ef8e52b8.async.js +0 -2
  131. package/static/dist/src__pages__subscription__modal.5753eaa4.async.js +0 -4
  132. package/static/dist/umi.d752df42.js +0 -12
@@ -1,23 +0,0 @@
1
- (self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[6534,9064,8673,440,8044],{75909:function(F,c,e){"use strict";var v=e(14797),h=e(87807),p=e(16803),f=e(63313),a=e.n(f),D=e(84875),y=e.n(D),T=e(12888),b=e(57439),A=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],g=f.forwardRef(function(M,I){var O=M.className,s=M.component,r=M.viewBox,u=M.spin,m=M.rotate,_=M.tabIndex,E=M.onClick,d=M.children,C=(0,p.Z)(M,A);(0,b.Kp)(!!(s||d),"Should have `component` prop or `children`."),(0,b.C3)();var n=f.useContext(T.Z),t=n.prefixCls,o=t===void 0?"anticon":t,i=n.rootClassName,l=y()(i,o,O),x=y()((0,h.Z)({},"".concat(o,"-spin"),!!u)),j=m?{msTransform:"rotate(".concat(m,"deg)"),transform:"rotate(".concat(m,"deg)")}:void 0,R=(0,v.Z)((0,v.Z)({},b.vD),{},{className:x,style:j,viewBox:r});r||delete R.viewBox;var K=function(){return s?f.createElement(s,(0,v.Z)({},R),d):d?((0,b.Kp)(!!r||f.Children.count(d)===1&&f.isValidElement(d)&&f.Children.only(d).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),f.createElement("svg",(0,v.Z)((0,v.Z)({},R),{},{viewBox:r}),d)):null},Z=_;return Z===void 0&&E&&(Z=-1),f.createElement("span",(0,v.Z)((0,v.Z)({role:"img"},C),{},{ref:I,tabIndex:Z,onClick:E,className:l}),K())});g.displayName="AntdIcon",c.Z=g},55258:function(F,c,e){"use strict";e.d(c,{Z:function(){return A}});var v=e(14797),h=e(16803),p=e(63313),f=e.n(p),a=e(75909),D=["type","children"],y=new Set;function T(g){return!!(typeof g=="string"&&g.length&&!y.has(g))}function b(g){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=g[M];if(T(I)){var O=document.createElement("script");O.setAttribute("src",I),O.setAttribute("data-namespace",I),g.length>M+1&&(O.onload=function(){b(g,M+1)},O.onerror=function(){b(g,M+1)}),y.add(I),document.body.appendChild(O)}}function A(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=g.scriptUrl,I=g.extraCommonProps,O=I===void 0?{}:I;M&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(M)?b(M.reverse()):b([M]));var s=p.forwardRef(function(r,u){var m=r.type,_=r.children,E=(0,h.Z)(r,D),d=null;return r.type&&(d=p.createElement("use",{xlinkHref:"#".concat(m)})),_&&(d=_),p.createElement(a.Z,(0,v.Z)((0,v.Z)((0,v.Z)({},O),E),{},{ref:u}),d)});return s.displayName="Iconfont",s}},86755:function(F,c,e){"use strict";var v=e(55258),h=(0,v.Z)({scriptUrl:["//at.alicdn.com/t/c/font_3354854_ob5y15ewlyq.js"]});c.Z=h},38102:function(F,c,e){"use strict";var v=e(57213),h=e.n(v),p=e(63313),f=e.n(p);c.Z=function(a,D,y){var T=y.treeNodeFilterProp;return(0,p.useMemo)(function(){var b=[];if(!D)return{treeData:a,keys:b};var A=D.toUpperCase();function g(I,O){var s=O[T];return String(s).toUpperCase().includes(A)}function M(I){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return I.map(function(s){var r=s.children,u=O||g(D,s),m=M(r||[],u);return u||m.length?(m.length&&b.push(s.key),h()(h()({},s),{},{children:m})):null}).filter(function(s){return s})}return{treeData:M(a),keys:b}},[a,D,T])}},30675:function(F,c,e){"use strict";e.r(c);var v=e(57213),h=e.n(v),p=e(54306),f=e.n(p),a=e(63313),D=e.n(a),y=e(28756),T=e(60858),b=e(75310),A=e(24378),g=e(95176),M=e(5558),I=e(36035),O=e(82755),s=e(10726),r=e(77385),u=e(62753),m=e(82428),_=e(11527),E=y.Z.Option,d={".py":"python",".js":"javascript",".sh":"shell",".ts":"typescript"},C={python:".py",javascript:".js",shell:".sh",typescript:".ts"},n=function(o){var i=o.treeData,l=o.currentNode,x=o.content,j=o.handleCancel,R=o.visible,K=o.socketMessage,Z=(0,a.useState)(""),B=f()(Z,2),G=B[0],J=B[1],oe=(0,a.useState)("javascript"),U=f()(oe,2),Q=U[0],P=U[1],ae=(0,a.useState)(),le=f()(ae,2),te=le[0],ie=le[1],Se=(0,a.useState)(""),_e=f()(Se,2),De=_e[0],me=_e[1],Oe=(0,a.useState)(!1),ve=f()(Oe,2),Be=ve[0],Pe=ve[1],ce=(0,a.useState)(!1),se=f()(ce,2),Ie=se[0],ne=se[1],w=(0,a.useState)(""),V=f()(w,2),ue=V[0],Y=V[1],N=(0,u.F)(),ge=N.theme,fe=(0,a.useRef)(null),de=(0,a.useState)(!1),je=f()(de,2),he=je[0],pe=je[1],ye=(0,a.useState)(null),Me=f()(ye,2),be=Me[0],Ce=Me[1],Re=function(){j()},Ne=function($,q){if(!(q.key===De||!$)&&q.type!=="directory"){var Ee=d[$.slice(-3)]||"";ie(q),P(Ee),Ve(q),me(q.key)}},Ve=function($){g.W.get("".concat(M.Z.apiPrefix,"scripts/").concat($.title,"?path=").concat($.parent||"")).then(function(q){var Ee=q.code,Ae=q.data;Ee===200&&J(Ae)})},xe=function(){Y("");var $=fe.current.getValue().replace(/\r\n/g,`
2
- `);g.W.put("".concat(M.Z.apiPrefix,"scripts/run"),{filename:te.title,path:te.parent||"",content:$}).then(function(q){var Ee=q.code,Ae=q.data;Ee===200&&(pe(!0),Ce(Ae))})},Ue=function(){!te||!te.title||!be||g.W.put("".concat(M.Z.apiPrefix,"scripts/stop"),{filename:te.title,path:te.parent||"",pid:be}).then(function($){var q=$.code,Ee=$.data;q===200&&pe(!1)})};return(0,a.useEffect)(function(){if(K){var z=K.type,$=K.message,q=K.references;z==="manuallyRunScript"&&((0,m.x$)($)&&setTimeout(function(){pe(!1)},300),ue&&($=`
3
- `.concat($)),Y("".concat(ue).concat($)))}},[K]),(0,a.useEffect)(function(){if(Y(""),l){ie(l),J(x),me(l.key);var z=d[l.title.slice(-3)]||"";P(z)}},[x,l]),(0,_.jsxs)(T.Z,{className:"edit-modal",closable:!1,title:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(b.Z,{treeExpandAction:"click",style:{marginRight:8,width:150},value:De,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:i,placeholder:"\u8BF7\u9009\u62E9\u811A\u672C\u6587\u4EF6",fieldNames:{value:"key",label:"title"},showSearch:!0,onSelect:Ne}),(0,_.jsxs)(y.Z,{value:Q,style:{width:110,marginRight:8},onChange:function($){P($)},children:[(0,_.jsx)(E,{value:"javascript",children:"javascript"}),(0,_.jsx)(E,{value:"typescript",children:"typescript"}),(0,_.jsx)(E,{value:"shell",children:"shell"}),(0,_.jsx)(E,{value:"python",children:"python"})]}),(0,_.jsx)(A.Z,{type:"primary",style:{marginRight:8},onClick:he?Ue:xe,children:he?"\u505C\u6B62":"\u8FD0\u884C"}),(0,_.jsx)(A.Z,{type:"primary",style:{marginRight:8},onClick:function(){Y("")},children:"\u6E05\u7A7A\u65E5\u5FD7"}),(0,_.jsx)(A.Z,{type:"primary",style:{marginRight:8},onClick:function(){ne(!0)},children:"\u8BBE\u7F6E"}),(0,_.jsx)(A.Z,{type:"primary",style:{marginRight:8},onClick:function(){Pe(!0)},children:"\u4FDD\u5B58"}),(0,_.jsx)(A.Z,{type:"primary",style:{marginRight:8},onClick:function(){Ue(),j()},children:"\u9000\u51FA"})]}),width:"100%",headerStyle:{padding:"11px 24px"},onClose:Re,open:R,children:[(0,_.jsxs)(I.Z,{split:"vertical",minSize:200,defaultSize:"50%",style:{height:"calc(100vh - 55px)"},children:[(0,_.jsx)(O.ZP,{language:Q,value:G,theme:ge,options:{fontSize:12,minimap:{enabled:!1},lineNumbersMinChars:3,glyphMargin:!1},onMount:function($){fe.current=$}}),(0,_.jsx)("pre",{style:{height:"100%",padding:"0 15px"},children:ue})]}),(0,_.jsx)(s.default,{visible:Be,handleCancel:function(){Pe(!1)},file:h()({content:fe.current&&fe.current.getValue().replace(/\r\n/g,`
4
- `)},te)}),(0,_.jsx)(r.default,{visible:Ie,handleCancel:function(){ne(!1)}})]})};c.default=n},55667:function(F,c,e){"use strict";e.r(c);var v=e(57213),h=e.n(v),p=e(54689),f=e.n(p),a=e(25359),D=e.n(a),y=e(49811),T=e.n(y),b=e(54306),A=e.n(b),g=e(63313),M=e.n(g),I=e(28756),O=e(67393),s=e(9835),r=e(84163),u=e(84468),m=e(22159),_=e(75310),E=e(57679),d=e(95176),C=e(5558),n=e(59953),t=e(11527),o=I.Z.Option,i=function(x){var j=x.handleCancel,R=x.treeData,K=x.visible,Z=O.Z.useForm(),B=A()(Z,1),G=B[0],J=(0,g.useState)(!1),oe=A()(J,2),U=oe[0],Q=oe[1],P=(0,g.useState)([]),ae=A()(P,2),le=ae[0],te=ae[1],ie=(0,g.useState)(),Se=A()(ie,2),_e=Se[0],De=Se[1],me=(0,g.useState)("blank"),Oe=A()(me,2),ve=Oe[0],Be=Oe[1],Pe=function(){var ne=T()(D()().mark(function w(V){var ue,Y,N,ge,fe,de;return D()().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:Q(!0),ue=V.path,Y=ue===void 0?"":ue,N=V.filename,ge=V.directory,fe=ge===void 0?"":ge,de=new FormData,de.append("file",_e),de.append("filename",N),de.append("path",Y),de.append("content",""),de.append("directory",fe),d.W.post("".concat(C.Z.apiPrefix,"scripts"),de).then(function(pe){var ye=pe.code,Me=pe.data;if(ye===200){s.ZP.success(fe?"\u65B0\u5EFA\u6587\u4EF6\u5939\u6210\u529F":"\u65B0\u5EFA\u6587\u4EF6\u6210\u529F");var be=Y?"".concat(Y,"/"):"",Ce=_e?_e.name:N;j({filename:Ce,path:Y,key:"".concat(be).concat(Ce)})}Q(!1)}).finally(function(){return Q(!1)});case 9:case"end":return he.stop()}},w)}));return function(V){return ne.apply(this,arguments)}}(),ce=function(w){return De(w),!1},se=function(w){Be(w.target.value)},Ie=function ne(w){var V=f()(w),ue;try{for(V.s();!(ue=V.n()).done;){var Y=ue.value;Y.children&&Y.children.length>0&&(Y.children=Y.children.filter(function(N){return N.type==="directory"}).map(function(N){return h()(h()({},N),{},{disabled:!1})}),ne(Y.children))}}catch(N){V.e(N)}finally{V.f()}return w};return(0,g.useEffect)(function(){var ne=R.filter(function(V){return V.type==="directory"}).map(function(V){return h()(h()({},V),{},{disabled:!1})}),w=Ie(ne);te(w)},[R]),(0,g.useEffect)(function(){G.resetFields()},[K]),(0,t.jsx)(r.Z,{title:"\u65B0\u5EFA",open:K,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){G.validateFields().then(function(w){Pe(w)}).catch(function(w){console.log("Validate Failed:",w)})},onCancel:function(){return j()},confirmLoading:U,children:(0,t.jsxs)(O.Z,{form:G,layout:"vertical",name:"edit_name_modal",children:[(0,t.jsx)(O.Z.Item,{name:"type",label:"\u7C7B\u578B",rules:[{required:!0}],initialValue:"blank",children:(0,t.jsxs)(u.ZP.Group,{onChange:se,children:[(0,t.jsx)(u.ZP,{value:"blank",children:"\u7A7A\u6587\u4EF6"}),(0,t.jsx)(u.ZP,{value:"upload",children:"\u672C\u5730\u6587\u4EF6"}),(0,t.jsx)(u.ZP,{value:"directory",children:"\u6587\u4EF6\u5939"})]})}),ve==="blank"&&(0,t.jsx)(O.Z.Item,{name:"filename",label:"\u6587\u4EF6\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"},{validator:function(w,V){return V.includes("/")?Promise.reject(new Error("\u6587\u4EF6\u540D\u4E0D\u80FD\u5305\u542B\u659C\u6760")):Promise.resolve()}}],children:(0,t.jsx)(m.Z,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"})}),ve==="directory"&&(0,t.jsx)(O.Z.Item,{name:"directory",label:"\u6587\u4EF6\u5939\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D"}],children:(0,t.jsx)(m.Z,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D"})}),(0,t.jsx)(O.Z.Item,{label:"\u7236\u76EE\u5F55",name:"path",children:(0,t.jsx)(_.Z,{allowClear:!0,treeData:le,fieldNames:{value:"key",label:"title"},placeholder:"\u8BF7\u9009\u62E9\u7236\u76EE\u5F55",treeDefaultExpandAll:!0})}),ve==="upload"&&(0,t.jsx)(O.Z.Item,{label:"\u6587\u4EF6",name:"file",children:(0,t.jsxs)(E.Z.Dragger,{beforeUpload:ce,maxCount:1,children:[(0,t.jsx)("p",{className:"ant-upload-drag-icon",children:(0,t.jsx)(n.Z,{})}),(0,t.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u8005\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"})]})})]})})};c.default=i},13116:function(F,c,e){"use strict";e.r(c),e.d(c,{default:function(){return ie}});var v=e(93525),h=e.n(v),p=e(54306),f=e.n(p),a=e(63313),D=e(92260),y=e(84163),T=e(9835),b=e(75310),A=e(34133),g=e(24378),M=e(15367),I=e(22159),O=e(43209),s=e(84540),r=e(5558),u=e(78969),m=e(82755),_=e(95176),E={"left-tree-container":"left-tree-container___z9VeF","left-tree-scroller":"left-tree-scroller___MRc8C","log-container":"log-container___Iva4k"},d=e(30675),C=e(76661),n=e(36035),t=e(26839),o=e(32132),i=e(13740),l=e(23831),x=e(55667),j=e(66292),R=e.n(j),K=e(87075),Z=e(97508),B=e(82428),G=e(38102),J=e(4363),oe=e.n(J),U=e(86755),Q=e(72186),P=e(11527),ae=D.Z.Text,le={".py":"python",".js":"javascript",".sh":"shell",".ts":"typescript"},te=function(){var _e=(0,K.useOutletContext)(),De=_e.headerStyle,me=_e.isPhone,Oe=_e.theme,ve=_e.socketMessage,Be=(0,a.useState)("\u8BF7\u9009\u62E9\u811A\u672C\u6587\u4EF6"),Pe=f()(Be,2),ce=Pe[0],se=Pe[1],Ie=(0,a.useState)(""),ne=f()(Ie,2),w=ne[0],V=ne[1],ue=(0,a.useState)([]),Y=f()(ue,2),N=Y[0],ge=Y[1],fe=(0,a.useState)(!1),de=f()(fe,2),je=de[0],he=de[1],pe=(0,a.useState)(""),ye=f()(pe,2),Me=ye[0],be=ye[1],Ce=(0,a.useState)(),Re=f()(Ce,2),Ne=Re[0],Ve=Re[1],xe=(0,a.useRef)(),Ue=(0,a.useState)(!1),z=f()(Ue,2),$=z[0],q=z[1],Ee=(0,a.useState)(""),Ae=f()(Ee,2),fn=Ae[0],mn=Ae[1],gn=(0,a.useState)(!1),He=f()(gn,2),Le=He[0],Fe=He[1],Te=(0,a.useRef)(null),hn=(0,a.useState)(!1),Ge=f()(hn,2),vn=Ge[0],Ye=Ge[1],pn=(0,a.useState)(!1),ze=f()(pn,2),En=ze[0],Xe=ze[1],Pn=(0,a.useState)(),Qe=f()(Pn,2),re=Qe[0],Je=Qe[1],Dn=(0,a.useState)([]),qe=f()(Dn,2),$e=qe[0],We=qe[1],en=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;S&&he(!0),_.W.get("".concat(r.Z.apiPrefix,"scripts")).then(function(L){var W=L.code,H=L.data;W===200&&(ge(H),cn(),On(H))}).finally(function(){return S&&he(!1)})},nn=function(S){_.W.get("".concat(r.Z.apiPrefix,"scripts/").concat(encodeURIComponent(S.title),"?path=").concat(S.parent||"")).then(function(L){var W=L.code,H=L.data;W===200&&se(H)})},On=function(S){var L=(0,Z.parse)(K.history.location.search),W=L.p,H=L.s;if(H){var ee="".concat(W,"/").concat(H),X={node:{title:H,key:W?ee:H,parent:W}},Ze=(0,B.DY)(S,function(we){return we.key===X.node.key});Ze&&(We([W]),tn([ee],X))}},Ke=function(S,L){if(V(L.key),Je(L),!(L.key===w||!S)){if(L.type==="directory"){se("\u8BF7\u9009\u62E9\u811A\u672C\u6587\u4EF6");return}var W=S?le[S.slice(-3)]:"";be(me&&W==="typescript"?"javascript":W),se("\u52A0\u8F7D\u4E2D..."),nn(L)}},tn=(0,a.useCallback)(function(k,S){var L=Te.current?Te.current.getValue().replace(/\r\n/g,`
5
- `):ce;L!==ce?y.Z.confirm({title:"\u786E\u8BA4\u79BB\u5F00",content:(0,P.jsx)(P.Fragment,{children:"\u5F53\u524D\u4FEE\u6539\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u79BB\u5F00\u5417"}),onOk:function(){Ke(k[0],S.node),Fe(!1)},onCancel:function(){console.log("Cancel")}}):(Fe(!1),Ke(k[0],S.node))},[ce]),yn=(0,a.useCallback)(function(k){var S=k.target.value;Mn(S)},[N]),Mn=(0,a.useCallback)(R()(function(k){mn(k)},300),[N]),rn=(0,G.Z)(N,fn,{treeNodeFilterProp:"title"}),bn=rn.treeData,an=rn.keys;(0,a.useEffect)(function(){We(oe()([].concat(h()($e),h()(an))))},[an]);var Cn=function(S){We(S)},on=function(){setTimeout(function(){Fe(!0)},300)},ln=function(){Fe(!1),se("\u52A0\u8F7D\u4E2D..."),nn(re)},sn=function(){y.Z.confirm({title:"\u786E\u8BA4\u4FDD\u5B58",content:(0,P.jsxs)(P.Fragment,{children:["\u786E\u8BA4\u4FDD\u5B58\u6587\u4EF6",(0,P.jsx)(ae,{style:{wordBreak:"break-all"},type:"warning",children:re.title})," ","\uFF0C\u4FDD\u5B58\u540E\u4E0D\u53EF\u6062\u590D"]}),onOk:function(){var L=Te.current?Te.current.getValue().replace(/\r\n/g,`
6
- `):ce;return new Promise(function(W,H){_.W.put("".concat(r.Z.apiPrefix,"scripts"),{filename:re.title,path:re.parent||"",content:L}).then(function(ee){var X=ee.code,Ze=ee.data;X===200&&(T.ZP.success("\u4FDD\u5B58\u6210\u529F"),se(L),Fe(!1)),W(null)}).catch(function(ee){return H(ee)})})},onCancel:function(){console.log("Cancel")}})},un=function(){y.Z.confirm({title:"\u786E\u8BA4\u5220\u9664",content:(0,P.jsxs)(P.Fragment,{children:["\u786E\u8BA4\u5220\u9664",(0,P.jsx)(ae,{style:{wordBreak:"break-all"},type:"warning",children:w}),"\u6587\u4EF6",re.type==="directory"?"\u5939\u53CA\u5176\u5B50\u6587\u4EF6":"","\uFF0C\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D"]}),onOk:function(){_.W.delete("".concat(r.Z.apiPrefix,"scripts"),{data:{filename:re.title,path:re.parent||"",type:re.type}}).then(function(L){var W=L.code;if(W===200){T.ZP.success("\u5220\u9664\u6210\u529F");var H=h()(N);if(re.parent)H=(0,B.I1)(H,function(X){return X.key===re.key});else{var ee=H.findIndex(function(X){return X.key===re.key});ee!==-1&&H.splice(ee,1)}ge(H),cn()}})},onCancel:function(){console.log("Cancel")}})},dn=function(){Xe(!0)},xn=function(){Xe(!1),en(!1)},_n=function(){Ye(!0)},An=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{filename:"",path:"",key:""},L=S.filename,W=S.path,H=S.key;if(L){var ee=h()(N),X={title:L,key:H,parent:W};if(W){ee=(0,B.I1)(ee,function(ke){return ke.key===W},X);var Ze=W.split("/"),we=[];Ze.reduce(function(ke,In){return we.push(ke),"".concat(ke,"/").concat(In)}),We([].concat(h()($e),we,[W]))}else ee.unshift(X);ge(ee),Ke(X.title,X),Fe(!0)}Ye(!1)},jn=function(){_.W.post("".concat(r.Z.apiPrefix,"scripts/download"),{filename:re.title}).then(function(S){var L=S.code,W=S.data;if(L===200){var H=new Blob([W],{type:"application/json"}),ee=URL.createObjectURL(H),X=document.createElement("a");X.href=ee,X.download=re.title,document.documentElement.appendChild(X),X.click(),document.documentElement.removeChild(X)}})},cn=function(){V(""),Je(null),se("\u8BF7\u9009\u62E9\u811A\u672C\u6587\u4EF6")};(0,a.useEffect)(function(){en()},[]),(0,a.useEffect)(function(){xe.current&&Ve(xe.current.clientHeight)},[xe.current,N]);var Fn=function(S){switch(S){case"save":sn();break;case"exit":ln();break;default:break}},Sn=function(S){switch(S){case"add":_n();break;case"edit":on();break;case"delete":un();break;case"rename":dn();break;default:break}},Bn=Le?{items:[{label:"\u4FDD\u5B58",key:"save",icon:(0,P.jsx)(t.Z,{})},{label:"\u9000\u51FA\u7F16\u8F91",key:"exit",icon:(0,P.jsx)(o.Z,{})}],onClick:function(S){var L=S.key,W=S.domEvent;W.stopPropagation(),Fn(L)}}:{items:[{label:"\u65B0\u5EFA",key:"add",icon:(0,P.jsx)(t.Z,{})},{label:"\u7F16\u8F91",key:"edit",icon:(0,P.jsx)(o.Z,{}),disabled:!w},{label:"\u91CD\u547D\u540D",key:"rename",icon:(0,P.jsx)(U.Z,{type:"ql-icon-rename"}),disabled:!w},{label:"\u5220\u9664",key:"delete",icon:(0,P.jsx)(i.Z,{}),disabled:!w}],onClick:function(S){var L=S.key,W=S.domEvent;W.stopPropagation(),Sn(L)}};return(0,P.jsx)(u.ZP,{className:"ql-container-wrapper log-wrapper",title:w,loading:je,extra:me?[(0,P.jsx)(b.Z,{treeExpandAction:"click",className:"log-select",value:w,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:N,placeholder:"\u8BF7\u9009\u62E9\u811A\u672C",fieldNames:{value:"key"},treeNodeFilterProp:"title",showSearch:!0,allowClear:!0,onSelect:Ke}),(0,P.jsx)(A.Z,{menu:Bn,trigger:["click"],children:(0,P.jsx)(g.Z,{type:"primary",icon:(0,P.jsx)(l.Z,{})})})]:Le?[(0,P.jsx)(g.Z,{type:"primary",onClick:sn,children:"\u4FDD\u5B58"}),(0,P.jsx)(g.Z,{type:"primary",onClick:ln,children:"\u9000\u51FA\u7F16\u8F91"})]:[(0,P.jsx)(M.Z,{title:"\u65B0\u5EFA",children:(0,P.jsx)(g.Z,{type:"primary",onClick:_n,icon:(0,P.jsx)(t.Z,{})})}),(0,P.jsx)(M.Z,{title:"\u7F16\u8F91",children:(0,P.jsx)(g.Z,{disabled:!w,type:"primary",onClick:on,icon:(0,P.jsx)(o.Z,{})})}),(0,P.jsx)(M.Z,{title:"\u91CD\u547D\u540D",children:(0,P.jsx)(g.Z,{disabled:!w,type:"primary",onClick:dn,icon:(0,P.jsx)(U.Z,{type:"ql-icon-rename"})})}),(0,P.jsx)(M.Z,{title:"\u5220\u9664",children:(0,P.jsx)(g.Z,{type:"primary",disabled:!w,onClick:un,icon:(0,P.jsx)(i.Z,{})})}),(0,P.jsx)(g.Z,{type:"primary",onClick:function(){q(!0)},children:"\u8C03\u8BD5"})],header:{style:De},children:(0,P.jsxs)("div",{className:"".concat(E["log-container"]," log-container"),children:[!me&&(0,P.jsxs)(n.Z,{split:"vertical",size:200,maxSize:-100,children:[(0,P.jsx)("div",{className:E["left-tree-container"],children:N.length>0?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(I.Z.Search,{className:E["left-tree-search"],onChange:yn,placeholder:"\u8BF7\u8F93\u5165\u811A\u672C\u540D",allowClear:!0}),(0,P.jsx)("div",{className:E["left-tree-scroller"],ref:xe,children:(0,P.jsx)(O.Z,{expandAction:"click",className:E["left-tree"],treeData:bn,showIcon:!0,height:Ne,selectedKeys:[w],expandedKeys:$e,onExpand:Cn,showLine:{showLeafIcon:!0},onSelect:tn})})]}):(0,P.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,P.jsx)(s.Z,{description:"\u6682\u65E0\u811A\u672C",image:s.Z.PRESENTED_IMAGE_SIMPLE})})}),(0,P.jsx)(m.ZP,{language:Me,value:ce,theme:Oe,options:{readOnly:!Le,fontSize:12,lineNumbersMinChars:3,glyphMargin:!1},onMount:function(S){Te.current=S}})]}),me&&(0,P.jsx)(C.fk,{value:ce,options:{lineNumbers:!0,lineWrapping:!0,styleActiveLine:!0,matchBrackets:!0,mode:Me,readOnly:!Le},onBeforeChange:function(S,L,W){se(W)},onChange:function(S,L,W){}}),(0,P.jsx)(d.default,{visible:$,treeData:N,currentNode:re,content:ce,socketMessage:ve,handleCancel:function(){q(!1)}}),(0,P.jsx)(x.default,{visible:vn,treeData:N,handleCancel:An}),(0,P.jsx)(Q.default,{visible:En,handleCancel:xn,currentNode:re})]})})},ie=te},72186:function(F,c,e){"use strict";e.r(c);var v=e(25359),h=e.n(v),p=e(49811),f=e.n(p),a=e(54306),D=e.n(a),y=e(63313),T=e.n(y),b=e(67393),A=e(9835),g=e(84163),M=e(22159),I=e(95176),O=e(5558),s=e(11527),r=function(m){var _=m.currentNode,E=m.handleCancel,d=m.visible,C=b.Z.useForm(),n=D()(C,1),t=n[0],o=(0,y.useState)(!1),i=D()(o,2),l=i[0],x=i[1],j=function(){var R=f()(h()().mark(function K(Z){var B,G,J;return h()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return x(!0),U.prev=1,U.next=4,I.W.put("".concat(O.Z.apiPrefix,"scripts/rename"),{filename:_.title,path:_.parent||"",newFilename:Z.name});case 4:B=U.sent,G=B.code,J=B.data,G===200&&(A.ZP.success("\u66F4\u65B0\u540D\u79F0\u6210\u529F"),E()),x(!1),U.next=14;break;case 11:U.prev=11,U.t0=U.catch(1),x(!1);case 14:case"end":return U.stop()}},K,null,[[1,11]])}));return function(Z){return R.apply(this,arguments)}}();return(0,y.useEffect)(function(){t.resetFields()},[_,d]),(0,s.jsx)(g.Z,{title:"\u91CD\u547D\u540D",open:d,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){t.validateFields().then(function(K){j(K)}).catch(function(K){console.log("Validate Failed:",K)})},onCancel:function(){return E()},confirmLoading:l,children:(0,s.jsx)(b.Z,{form:t,layout:"vertical",name:"edit_name_modal",children:(0,s.jsx)(b.Z.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u65B0\u540D\u79F0"}],children:(0,s.jsx)(M.Z,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u540D\u79F0"})})})})};c.default=r},10726:function(F,c,e){"use strict";e.r(c);var v=e(25359),h=e.n(v),p=e(57213),f=e.n(p),a=e(49811),D=e.n(a),y=e(54306),T=e.n(y),b=e(63313),A=e.n(b),g=e(67393),M=e(9835),I=e(84163),O=e(22159),s=e(95176),r=e(5558),u=e(11527),m=function(E){var d=E.file,C=E.handleCancel,n=E.visible,t=g.Z.useForm(),o=T()(t,1),i=o[0],l=(0,b.useState)(!1),x=T()(l,2),j=x[0],R=x[1],K=function(){var Z=D()(h()().mark(function B(G){var J;return h()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:R(!0),J=f()(f()(f()({},d),G),{},{originFilename:d.title}),s.W.post("".concat(r.Z.apiPrefix,"scripts"),J).then(function(Q){var P=Q.code,ae=Q.data;P===200&&(M.ZP.success("\u4FDD\u5B58\u6587\u4EF6\u6210\u529F"),C(ae)),R(!1)});case 3:case"end":return U.stop()}},B)}));return function(G){return Z.apply(this,arguments)}}();return(0,b.useEffect)(function(){i.resetFields(),R(!1)},[d,n]),(0,u.jsx)(I.Z,{title:"\u4FDD\u5B58\u6587\u4EF6",open:n,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){i.validateFields().then(function(B){K(B)}).catch(function(B){console.log("Validate Failed:",B)})},onCancel:function(){return C()},confirmLoading:j,children:(0,u.jsxs)(g.Z,{form:i,layout:"vertical",name:"script_modal",initialValues:{filename:d==null?void 0:d.title,path:(d==null?void 0:d.parent)||""},children:[(0,u.jsx)(g.Z.Item,{name:"filename",label:"\u6587\u4EF6\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"}],children:(0,u.jsx)(O.Z,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"})}),(0,u.jsx)(g.Z.Item,{name:"path",label:"\u4FDD\u5B58\u76EE\u5F55",children:(0,u.jsx)(O.Z,{placeholder:"\u8BF7\u8F93\u5165\u4FDD\u5B58\u76EE\u5F55\uFF0C\u9ED8\u8BA4scripts\u76EE\u5F55"})})]})})};c.default=m},77385:function(F,c,e){"use strict";e.r(c);var v=e(25359),h=e.n(v),p=e(57213),f=e.n(p),a=e(49811),D=e.n(a),y=e(54306),T=e.n(y),b=e(63313),A=e.n(b),g=e(67393),M=e(9835),I=e(84163),O=e(22159),s=e(95176),r=e(5558),u=e(11527),m=function(E){var d=E.file,C=E.handleCancel,n=E.visible,t=g.Z.useForm(),o=T()(t,1),i=o[0],l=(0,b.useState)(!1),x=T()(l,2),j=x[0],R=x[1],K=function(){var Z=D()(h()().mark(function B(G){var J;return h()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:R(!0),J=f()(f()({},d),G),s.W.post("".concat(r.Z.apiPrefix,"scripts"),J).then(function(Q){var P=Q.code,ae=Q.data;P===200&&(M.ZP.success("\u4FDD\u5B58\u6587\u4EF6\u6210\u529F"),C(ae)),R(!1)});case 3:case"end":return U.stop()}},B)}));return function(G){return Z.apply(this,arguments)}}();return(0,b.useEffect)(function(){i.resetFields(),R(!1)},[d,n]),(0,u.jsx)(I.Z,{title:"\u8FD0\u884C\u8BBE\u7F6E",open:n,forceRender:!0,centered:!0,onCancel:function(){return C()},children:(0,u.jsx)(g.Z,{form:i,layout:"vertical",name:"setting_modal",initialValues:d,children:(0,u.jsx)(g.Z.Item,{name:"filename",label:"\u5F85\u5F00\u53D1",rules:[{required:!0,message:"\u5F85\u5F00\u53D1"}],children:(0,u.jsx)(O.Z,{placeholder:"\u5F85\u5F00\u53D1"})})})})};c.default=m},5558:function(F,c){"use strict";var e=window.__ENV__QlBaseUrl||"/";c.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:"pushMe",label:"PushMe"},{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}],pushMe:[{label:"pushMeKey",tip:"PushMe\u7684Key\uFF0Chttps://push.i-i.me/",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
7
- `},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
8
- 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
9
- 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"]}},62753:function(F,c,e){"use strict";e.d(c,{F:function(){return y},e:function(){return D}});var v=e(54306),h=e.n(v),p=e(63313),f=e.n(p),a=e(82428),D=function(){var b=(0,p.useState)("100%"),A=h()(b,2),g=A[0],M=A[1],I=(0,p.useState)(0),O=h()(I,2),s=O[0],r=O[1],u=(0,p.useState)(-48),m=h()(u,2),_=m[0],E=m[1],d=(0,p.useState)(!1),C=h()(d,2),n=C[0],t=C[1],o=(0,p.useMemo)(function(){return(0,a.ZP)()},[]),i=o.platform;return(0,p.useEffect)(function(){i==="mobile"&&document.body.offsetWidth<768?(M("auto"),r(0),E(0),t(!0),document.body.setAttribute("data-mode","phone")):(M("100%"),r(0),E(-48),t(!1),document.body.setAttribute("data-mode","desktop"))},[]),{headerStyle:{padding:"4px 16px 4px 15px",position:"sticky",top:0,left:0,zIndex:20,marginTop:_,width:g,marginLeft:s},isPhone:n}},y=function(){var b=(0,p.useState)(),A=h()(b,2),g=A[0],M=A[1],I=function(){var s=window.matchMedia("(prefers-color-scheme: dark)"),r=localStorage.getItem("qinglong_dark_theme"),u=s.matches&&r!=="light"||r==="dark";M(u?"vs-dark":"vs")};return(0,p.useEffect)(function(){var O=window.matchMedia("(prefers-color-scheme: dark)"),s=localStorage.getItem("qinglong_dark_theme"),r=O.matches&&s!=="light"||s==="dark";M(r?"vs-dark":"vs");var u=function(_){(s==="auto"||!s)&&(_.matches?M("vs-dark"):M("vs"))};typeof O.addEventListener=="function"?O.addEventListener("change",u):typeof O.addListener=="function"&&O.addListener(u)},[]),{theme:g,reloadTheme:I}}},95176:function(F,c,e){"use strict";e.d(c,{W:function(){return I}});var v=e(25359),h=e.n(v),p=e(49811),f=e.n(p),a=e(9835),D=e(5558),y=e(87075),T=e(73669);a.ZP.config({duration:2});var b=Date.now(),A=function(s){if(s.response){var r=s.response.data?s.response.data.message||s.message||s.response.data:s.response.statusText,u=s.response.status;[502,504].includes(u)?y.history.push("/error"):u===401?y.history.location.pathname!=="/login"&&(a.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(D.Z.authKey),y.history.push("/login")):a.ZP.error({content:r,style:{maxWidth:500,margin:"0 auto"}})}else console.log(s.message);return Promise.reject(s)},g=T.Z.create({timeout:6e4,params:{t:b}}),M=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];g.interceptors.request.use(function(O){var s=localStorage.getItem(D.Z.authKey);return s&&!M.includes(O.url)&&(O.headers.Authorization="Bearer ".concat(s)),O}),g.interceptors.response.use(function(){var O=f()(h()().mark(function s(r){var u,m,_;return h()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(u=r.status,![502,504].includes(u)){d.next=5;break}y.history.push("/error"),d.next=18;break;case 5:if(u!==401){d.next=9;break}y.history.location.pathname!=="/login"&&(localStorage.removeItem(D.Z.authKey),y.history.push("/login")),d.next=18;break;case 9:return d.prev=9,m=r.data,m.code!==200&&(_=m.message||m.data,_&&a.ZP.error({content:_,style:{maxWidth:500,margin:"0 auto"}})),d.abrupt("return",m);case 15:d.prev=15,d.t0=d.catch(9);case 17:return d.abrupt("return",r);case 18:return d.abrupt("return",r);case 19:case"end":return d.stop()}},s,null,[[9,15]])}));return function(s){return O.apply(this,arguments)}}(),A);var I=g},82428:function(F,c,e){"use strict";e.d(c,{ZP:function(){return D},I1:function(){return A},w7:function(){return b},DY:function(){return g},FA:function(){return I},W9:function(){return y},x$:function(){return M},n$:function(){return O}});var v=e(93525),h=e.n(v),p="\u3000\u3000\u3000\u3000\u3000",f=e(11186),a=e.n(f);function D(){var s=navigator.userAgent.toLowerCase(),r=function(j){return j.test(s)},u=function(j){return(s.match(j)||[]).toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")},m="unknow";r(/windows|win32|win64|wow32|wow64/g)?m="windows":r(/macintosh|macintel/g)?m="macos":r(/x11/g)?m="linux":r(/android|adr/g)?m="android":r(/ios|iphone|ipad|ipod|iwatch/g)&&(m="ios");var _="unknow";m==="windows"?r(/windows nt 5.0|windows 2000/g)?_="2000":r(/windows nt 5.1|windows xp/g)?_="xp":r(/windows nt 5.2|windows 2003/g)?_="2003":r(/windows nt 6.0|windows vista/g)?_="vista":r(/windows nt 6.1|windows 7/g)?_="7":r(/windows nt 6.2|windows 8/g)?_="8":r(/windows nt 6.3|windows 8.1/g)?_="8.1":r(/windows nt 10.0|windows 10/g)&&(_="10"):m==="macos"?_=u(/os x [\d._]+/g):m==="android"?_=u(/android [\d._]+/g):m==="ios"&&(_=u(/os [\d._]+/g));var E="unknow";m==="windows"||m==="macos"||m==="linux"?E="desktop":(m==="android"||m==="ios"||r(/mobile/g))&&(E="mobile");var d="unknow",C="unknow";r(/applewebkit/g)?(d="webkit",r(/edge/g)?C="edge":r(/opr/g)?C="opera":r(/chrome/g)?C="chrome":r(/safari/g)&&(C="safari")):r(/gecko/g)&&r(/firefox/g)?(d="gecko",C="firefox"):r(/presto/g)?(d="presto",C="opera"):r(/trident|compatible|msie/g)&&(d="trident",C="iexplore");var n="unknow";d==="webkit"?n=u(/applewebkit\/[\d._]+/g):d==="gecko"?n=u(/gecko\/[\d._]+/g):d==="presto"?n=u(/presto\/[\d._]+/g):d==="trident"&&(n=u(/trident\/[\d._]+/g));var t="unknow";C==="chrome"?t=u(/chrome\/[\d._]+/g):C==="safari"?t=u(/version\/[\d._]+/g):C==="firefox"?t=u(/firefox\/[\d._]+/g):C==="opera"?t=u(/opr\/[\d._]+/g):C==="iexplore"?t=u(/(msie [\d._]+)|(rv:[\d._]+)/g):C==="edge"&&(t=u(/edge\/[\d._]+/g));var o="none",i="unknow";r(/micromessenger/g)?(o="wechat",i=u(/micromessenger\/[\d._]+/g)):r(/qqbrowser/g)?(o="qq",i=u(/qqbrowser\/[\d._]+/g)):r(/ucbrowser/g)?(o="uc",i=u(/ucbrowser\/[\d._]+/g)):r(/qihu 360se/g)?o="360":r(/2345explorer/g)?(o="2345",i=u(/2345explorer\/[\d._]+/g)):r(/metasr/g)?o="sougou":r(/lbbrowser/g)?o="liebao":r(/maxthon/g)&&(o="maxthon",i=u(/maxthon\/[\d._]+/g));var l=Object.assign({engine:d,engineVs:n,platform:E,supporter:C,supporterVs:t,system:m,systemVs:_},o==="none"?{}:{shell:o,shellVs:i});return console.log(`%c
10
- .d88b. d888888b d8b db d888b db .d88b. d8b db d888b
11
- .8P Y8. \`88' 888o 88 88' Y8b 88 .8P Y8. 888o 88 88' Y8b
12
- 88 88 88 88V8o 88 88 88 88 88 88V8o 88 88
13
- 88 88 88 88 V8o88 88 ooo 88 88 88 88 V8o88 88 ooo
14
- \`8P d8' .88. 88 V888 88. ~8~ 88booo. \`8b d8' 88 V888 88. ~8~
15
- \`Y88'Y8 Y888888P VP V8P Y888P Y88888P \`Y88P' VP V8P Y888P
16
-
17
-
18
- `,"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
19
- `,"color: yellow;font-size: 18px;"),console.log(`%c\u9752\u9F99\u8FD0\u884C\u73AF\u5883:
20
-
21
- \u7CFB\u7EDF\uFF1A`.concat(l.system,"/").concat(l.systemVs,`
22
- \u6D4F\u89C8\u5668\uFF1A`).concat(l.supporter,"/").concat(l.supporterVs,`
23
- \u5185\u6838\uFF1A`).concat(l.engine,"/").concat(l.engineVs),"color: green;font-size: 14px;font-weight: bold;"),l}function y(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=s.extraHeight,u=s.target;typeof r=="undefined"&&(r=99);var m=null;u?m=u:m=document.querySelector(".ant-table-wrapper");var _=0;m&&(_=m.getBoundingClientRect().top);var E=document.body.clientHeight-_-r;return E}function T(s){var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),s.dispatchEvent(r)}function b(s,r){var u=window.URL||window.webkitURL||window,m=new Blob([r]),_=document.createElementNS("http://www.w3.org/1999/xhtml","a");_.href=u.createObjectURL(m),_.download=s,T(_)}function A(s,r,u){var m=h()(s),_=[];return function E(d){if(d)for(var C=0;C<(d==null?void 0:d.length);C++){if(r(d[C])){if(!u){d.splice(C,1);return}d[C].children?d[C].children.unshift(u):d[C].children=[u];return}d[C].children&&(_.push(d[C].key),E(d[C].children))}}(m),m}function g(s,r){var u=h()(s),m;function _(E){if(E)for(var d=0;d<(E==null?void 0:E.length);d++)r(E[d])?m=E[d]:E[d].children&&_(E[d].children)}return _(u),m}function M(s){var r=[p,"\u6267\u884C\u7ED3\u675F"];return r.some(function(u){return s.includes(u)})}function I(s){var r=s.split(" ");if(r[1]==="repo"||r[1]==="raw")return r[2];var u=r.find(function(d){return[".js",".ts",".sh",".py"].some(function(C){return d.endsWith(C)})});if(u){u.startsWith("/ql/data/scripts")&&(u=u.replace("/ql/data/scripts/",""));var m,_,E=u.lastIndexOf("/");return E>=0?(_=u.slice(E+1),m=u.slice(0,E)):(_=u,m=""),[_,m]}}function O(s){try{var r=a().parseExpression(s);if(r)return r.next().toDate()}catch(u){}return new Date("1970")}},97508:function(F,c,e){"use strict";var v=e(52510).default,h=e(54306).default,p=e(54689).default,f=e(37635).default,a=e(93525).default,D=e(41274),y=e(54525),T=e(31230),b=e(1469),A=function(t){return t==null},g=Symbol("encodeFragmentIdentifier");function M(n){switch(n.arrayFormat){case"index":return function(o){return function(i,l){var x=i.length;return l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[].concat(a(i),[[s(o,n),"[",x,"]"].join("")]):[].concat(a(i),[[s(o,n),"[",s(x,n),"]=",s(l,n)].join("")])}};case"bracket":return function(o){return function(i,l){return l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[].concat(a(i),[[s(o,n),"[]"].join("")]):[].concat(a(i),[[s(o,n),"[]=",s(l,n)].join("")])}};case"colon-list-separator":return function(o){return function(i,l){return l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[].concat(a(i),[[s(o,n),":list="].join("")]):[].concat(a(i),[[s(o,n),":list=",s(l,n)].join("")])}};case"comma":case"separator":case"bracket-separator":{var t=n.arrayFormat==="bracket-separator"?"[]=":"=";return function(o){return function(i,l){return l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:(l=l===null?"":l,i.length===0?[[s(o,n),t,s(l,n)].join("")]:[[i,s(l,n)].join(n.arrayFormatSeparator)])}}}default:return function(o){return function(i,l){return l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[].concat(a(i),[s(o,n)]):[].concat(a(i),[[s(o,n),"=",s(l,n)].join("")])}}}}function I(n){var t;switch(n.arrayFormat){case"index":return function(o,i,l){if(t=/\[(\d*)\]$/.exec(o),o=o.replace(/\[\d*\]$/,""),!t){l[o]=i;return}l[o]===void 0&&(l[o]={}),l[o][t[1]]=i};case"bracket":return function(o,i,l){if(t=/(\[\])$/.exec(o),o=o.replace(/\[\]$/,""),!t){l[o]=i;return}if(l[o]===void 0){l[o]=[i];return}l[o]=[].concat(l[o],i)};case"colon-list-separator":return function(o,i,l){if(t=/(:list)$/.exec(o),o=o.replace(/:list$/,""),!t){l[o]=i;return}if(l[o]===void 0){l[o]=[i];return}l[o]=[].concat(l[o],i)};case"comma":case"separator":return function(o,i,l){var x=typeof i=="string"&&i.includes(n.arrayFormatSeparator),j=typeof i=="string"&&!x&&r(i,n).includes(n.arrayFormatSeparator);i=j?r(i,n):i;var R=x||j?i.split(n.arrayFormatSeparator).map(function(K){return r(K,n)}):i===null?i:r(i,n);l[o]=R};case"bracket-separator":return function(o,i,l){var x=/(\[\])$/.test(o);if(o=o.replace(/\[\]$/,""),!x){l[o]=i&&r(i,n);return}var j=i===null?[]:i.split(n.arrayFormatSeparator).map(function(R){return r(R,n)});if(l[o]===void 0){l[o]=j;return}l[o]=[].concat(l[o],j)};default:return function(o,i,l){if(l[o]===void 0){l[o]=i;return}l[o]=[].concat(l[o],i)}}}function O(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function s(n,t){return t.encode?t.strict?D(n):encodeURIComponent(n):n}function r(n,t){return t.decode?y(n):n}function u(n){return Array.isArray(n)?n.sort():f(n)==="object"?u(Object.keys(n)).sort(function(t,o){return Number(t)-Number(o)}).map(function(t){return n[t]}):n}function m(n){var t=n.indexOf("#");return t!==-1&&(n=n.slice(0,t)),n}function _(n){var t="",o=n.indexOf("#");return o!==-1&&(t=n.slice(o)),t}function E(n){n=m(n);var t=n.indexOf("?");return t===-1?"":n.slice(t+1)}function d(n,t){return t.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?n=Number(n):t.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")&&(n=n.toLowerCase()==="true"),n}function C(n,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),O(t.arrayFormatSeparator);var o=I(t),i=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return i;var l=p(n.split("&")),x;try{for(l.s();!(x=l.n()).done;){var j=x.value;if(j!==""){var R=T(t.decode?j.replace(/\+/g," "):j,"="),K=h(R,2),Z=K[0],B=K[1];B=B===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?B:r(B,t),o(r(Z,t),B,i)}}}catch(le){l.e(le)}finally{l.f()}for(var G=0,J=Object.keys(i);G<J.length;G++){var oe=J[G],U=i[oe];if(f(U)==="object"&&U!==null)for(var Q=0,P=Object.keys(U);Q<P.length;Q++){var ae=P[Q];U[ae]=d(U[ae],t)}else i[oe]=d(U,t)}return t.sort===!1?i:(t.sort===!0?Object.keys(i).sort():Object.keys(i).sort(t.sort)).reduce(function(le,te){var ie=i[te];return ie&&f(ie)==="object"&&!Array.isArray(ie)?le[te]=u(ie):le[te]=ie,le},Object.create(null))}c.extract=E,c.parse=C,c.stringify=function(n,t){if(!n)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),O(t.arrayFormatSeparator);for(var o=function(B){return t.skipNull&&A(n[B])||t.skipEmptyString&&n[B]===""},i=M(t),l={},x=0,j=Object.keys(n);x<j.length;x++){var R=j[x];o(R)||(l[R]=n[R])}var K=Object.keys(l);return t.sort!==!1&&K.sort(t.sort),K.map(function(Z){var B=n[Z];return B===void 0?"":B===null?s(Z,t):Array.isArray(B)?B.length===0&&t.arrayFormat==="bracket-separator"?s(Z,t)+"[]":B.reduce(i(Z),[]).join("&"):s(Z,t)+"="+s(B,t)}).filter(function(Z){return Z.length>0}).join("&")},c.parseUrl=function(n,t){t=Object.assign({decode:!0},t);var o=T(n,"#"),i=h(o,2),l=i[0],x=i[1];return Object.assign({url:l.split("?")[0]||"",query:C(E(n),t)},t&&t.parseFragmentIdentifier&&x?{fragmentIdentifier:r(x,t)}:{})},c.stringifyUrl=function(n,t){t=Object.assign(v({encode:!0,strict:!0},g,!0),t);var o=m(n.url).split("?")[0]||"",i=c.extract(n.url),l=c.parse(i,{sort:!1}),x=Object.assign(l,n.query),j=c.stringify(x,t);j&&(j="?".concat(j));var R=_(n.url);return n.fragmentIdentifier&&(R="#".concat(t[g]?s(n.fragmentIdentifier,t):n.fragmentIdentifier)),"".concat(o).concat(j).concat(R)},c.pick=function(n,t,o){o=Object.assign(v({parseFragmentIdentifier:!0},g,!1),o);var i=c.parseUrl(n,o),l=i.url,x=i.query,j=i.fragmentIdentifier;return c.stringifyUrl({url:l,query:b(x,t),fragmentIdentifier:j},o)},c.exclude=function(n,t,o){var i=Array.isArray(t)?function(l){return!t.includes(l)}:function(l,x){return!t(l,x)};return c.pick(n,i,o)}},31230:function(F){"use strict";F.exports=function(c,e){if(!(typeof c=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[c];var v=c.indexOf(e);return v===-1?[c]:[c.slice(0,v),c.slice(v+e.length)]}},41274:function(F){"use strict";F.exports=function(c){return encodeURIComponent(c).replace(/[!'()*]/g,function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})}},34133:function(F,c,e){"use strict";var v=e(70029);c.Z=v.Z},54525:function(F){"use strict";var c="%[a-f0-9]{2}",e=new RegExp("("+c+")|([^%]+?)","gi"),v=new RegExp("("+c+")+","gi");function h(a,D){try{return[decodeURIComponent(a.join(""))]}catch(b){}if(a.length===1)return a;D=D||1;var y=a.slice(0,D),T=a.slice(D);return Array.prototype.concat.call([],h(y),h(T))}function p(a){try{return decodeURIComponent(a)}catch(T){for(var D=a.match(e)||[],y=1;y<D.length;y++)a=h(D,y).join(""),D=a.match(e)||[];return a}}function f(a){for(var D={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},y=v.exec(a);y;){try{D[y[0]]=decodeURIComponent(y[0])}catch(M){var T=p(y[0]);T!==y[0]&&(D[y[0]]=T)}y=v.exec(a)}D["%C2"]="\uFFFD";for(var b=Object.keys(D),A=0;A<b.length;A++){var g=b[A];a=a.replace(new RegExp(g,"g"),D[g])}return a}F.exports=function(a){if(typeof a!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof a+"`");try{return a=a.replace(/\+/g," "),decodeURIComponent(a)}catch(D){return f(a)}}},1469:function(F){"use strict";F.exports=function(c,e){for(var v={},h=Object.keys(c),p=Array.isArray(e),f=0;f<h.length;f++){var a=h[f],D=c[a];(p?e.indexOf(a)!==-1:e(a,D,c))&&(v[a]=D)}return v}},45170:function(F,c,e){var v=e(13807);function h(p,f){var a=p==null?0:p.length;return!!a&&v(p,f,0)>-1}F.exports=h},94936:function(F){function c(e,v,h){for(var p=-1,f=e==null?0:e.length;++p<f;)if(h(v,e[p]))return!0;return!1}F.exports=c},92504:function(F){function c(e,v,h,p){for(var f=e.length,a=h+(p?1:-1);p?a--:++a<f;)if(v(e[a],a,e))return a;return-1}F.exports=c},13807:function(F,c,e){var v=e(92504),h=e(99940),p=e(3729);function f(a,D,y){return D===D?p(a,D,y):v(a,h,y)}F.exports=f},99940:function(F){function c(e){return e!==e}F.exports=c},95453:function(F,c,e){var v=e(78188),h=e(45170),p=e(94936),f=e(29880),a=e(17319),D=e(79967),y=200;function T(b,A,g){var M=-1,I=h,O=b.length,s=!0,r=[],u=r;if(g)s=!1,I=p;else if(O>=y){var m=A?null:a(b);if(m)return D(m);s=!1,I=f,u=new v}else u=A?[]:r;e:for(;++M<O;){var _=b[M],E=A?A(_):_;if(_=g||_!==0?_:0,s&&E===E){for(var d=u.length;d--;)if(u[d]===E)continue e;A&&u.push(E),r.push(_)}else I(u,E,g)||(u!==r&&u.push(E),r.push(_))}return r}F.exports=T},17319:function(F,c,e){var v=e(81956),h=e(43226),p=e(79967),f=1/0,a=v&&1/p(new v([,-0]))[1]==f?function(D){return new v(D)}:h;F.exports=a},3729:function(F){function c(e,v,h){for(var p=h-1,f=e.length;++p<f;)if(e[p]===v)return p;return-1}F.exports=c},43226:function(F){function c(){}F.exports=c},4363:function(F,c,e){var v=e(95453);function h(p){return p&&p.length?v(p):[]}F.exports=h},38433:function(){}}]);
@@ -1,4 +0,0 @@
1
- "use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[9064],{72186:function(C,_,e){e.r(_);var b=e(25359),h=e.n(b),v=e(49811),P=e.n(v),p=e(54306),d=e.n(p),r=e(63313),T=e.n(r),g=e(67393),f=e(9835),c=e(84163),E=e(22159),y=e(95176),n=e(5558),a=e(11527),i=function(o){var s=o.currentNode,k=o.handleCancel,t=o.visible,A=g.Z.useForm(),U=d()(A,1),M=U[0],R=(0,r.useState)(!1),q=d()(R,2),W=q[0],D=q[1],I=function(){var B=P()(h()().mark(function m(K){var O,w,L;return h()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return D(!0),l.prev=1,l.next=4,y.W.put("".concat(n.Z.apiPrefix,"scripts/rename"),{filename:s.title,path:s.parent||"",newFilename:K.name});case 4:O=l.sent,w=O.code,L=O.data,w===200&&(f.ZP.success("\u66F4\u65B0\u540D\u79F0\u6210\u529F"),k()),D(!1),l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),D(!1);case 14:case"end":return l.stop()}},m,null,[[1,11]])}));return function(K){return B.apply(this,arguments)}}();return(0,r.useEffect)(function(){M.resetFields()},[s,t]),(0,a.jsx)(c.Z,{title:"\u91CD\u547D\u540D",open:t,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){M.validateFields().then(function(m){I(m)}).catch(function(m){console.log("Validate Failed:",m)})},onCancel:function(){return k()},confirmLoading:W,children:(0,a.jsx)(g.Z,{form:M,layout:"vertical",name:"edit_name_modal",children:(0,a.jsx)(g.Z.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u65B0\u540D\u79F0"}],children:(0,a.jsx)(E.Z,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u540D\u79F0"})})})})};_.default=i},5558:function(C,_){var e=window.__ENV__QlBaseUrl||"/";_.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:"pushMe",label:"PushMe"},{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}],pushMe:[{label:"pushMeKey",tip:"PushMe\u7684Key\uFF0Chttps://push.i-i.me/",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
2
- `},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
3
- 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
4
- 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(C,_,e){e.d(_,{W:function(){return y}});var b=e(25359),h=e.n(b),v=e(49811),P=e.n(v),p=e(9835),d=e(5558),r=e(87075),T=e(73669);p.ZP.config({duration:2});var g=Date.now(),f=function(a){if(a.response){var i=a.response.data?a.response.data.message||a.message||a.response.data:a.response.statusText,u=a.response.status;[502,504].includes(u)?r.history.push("/error"):u===401?r.history.location.pathname!=="/login"&&(p.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(d.Z.authKey),r.history.push("/login")):p.ZP.error({content:i,style:{maxWidth:500,margin:"0 auto"}})}else console.log(a.message);return Promise.reject(a)},c=T.Z.create({timeout:6e4,params:{t:g}}),E=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];c.interceptors.request.use(function(n){var a=localStorage.getItem(d.Z.authKey);return a&&!E.includes(n.url)&&(n.headers.Authorization="Bearer ".concat(a)),n}),c.interceptors.response.use(function(){var n=P()(h()().mark(function a(i){var u,o,s;return h()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(u=i.status,![502,504].includes(u)){t.next=5;break}r.history.push("/error"),t.next=18;break;case 5:if(u!==401){t.next=9;break}r.history.location.pathname!=="/login"&&(localStorage.removeItem(d.Z.authKey),r.history.push("/login")),t.next=18;break;case 9:return t.prev=9,o=i.data,o.code!==200&&(s=o.message||o.data,s&&p.ZP.error({content:s,style:{maxWidth:500,margin:"0 auto"}})),t.abrupt("return",o);case 15:t.prev=15,t.t0=t.catch(9);case 17:return t.abrupt("return",i);case 18:return t.abrupt("return",i);case 19:case"end":return t.stop()}},a,null,[[9,15]])}));return function(a){return n.apply(this,arguments)}}(),f);var y=c}}]);
@@ -1,4 +0,0 @@
1
- "use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[8673],{10726:function(O,_,e){e.r(_);var E=e(25359),d=e.n(E),P=e(57213),m=e.n(P),s=e(49811),h=e.n(s),n=e(54306),b=e.n(n),g=e(63313),C=e.n(g),o=e(67393),f=e(9835),y=e(84163),r=e(22159),a=e(95176),i=e(5558),l=e(11527),u=function(v){var t=v.file,T=v.handleCancel,q=v.visible,W=o.Z.useForm(),I=b()(W,1),D=I[0],R=(0,g.useState)(!1),K=b()(R,2),x=K[0],k=K[1],L=function(){var M=h()(d()().mark(function p(A){var U;return d()().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:k(!0),U=m()(m()(m()({},t),A),{},{originFilename:t.title}),a.W.post("".concat(i.Z.apiPrefix,"scripts"),U).then(function(w){var j=w.code,F=w.data;j===200&&(f.ZP.success("\u4FDD\u5B58\u6587\u4EF6\u6210\u529F"),T(F)),k(!1)});case 3:case"end":return B.stop()}},p)}));return function(A){return M.apply(this,arguments)}}();return(0,g.useEffect)(function(){D.resetFields(),k(!1)},[t,q]),(0,l.jsx)(y.Z,{title:"\u4FDD\u5B58\u6587\u4EF6",open:q,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){D.validateFields().then(function(p){L(p)}).catch(function(p){console.log("Validate Failed:",p)})},onCancel:function(){return T()},confirmLoading:x,children:(0,l.jsxs)(o.Z,{form:D,layout:"vertical",name:"script_modal",initialValues:{filename:t==null?void 0:t.title,path:(t==null?void 0:t.parent)||""},children:[(0,l.jsx)(o.Z.Item,{name:"filename",label:"\u6587\u4EF6\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"}],children:(0,l.jsx)(r.Z,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"})}),(0,l.jsx)(o.Z.Item,{name:"path",label:"\u4FDD\u5B58\u76EE\u5F55",children:(0,l.jsx)(r.Z,{placeholder:"\u8BF7\u8F93\u5165\u4FDD\u5B58\u76EE\u5F55\uFF0C\u9ED8\u8BA4scripts\u76EE\u5F55"})})]})})};_.default=u},5558:function(O,_){var e=window.__ENV__QlBaseUrl||"/";_.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:"pushMe",label:"PushMe"},{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}],pushMe:[{label:"pushMeKey",tip:"PushMe\u7684Key\uFF0Chttps://push.i-i.me/",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
2
- `},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
3
- 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
4
- 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,_,e){e.d(_,{W:function(){return y}});var E=e(25359),d=e.n(E),P=e(49811),m=e.n(P),s=e(9835),h=e(5558),n=e(87075),b=e(73669);s.ZP.config({duration:2});var g=Date.now(),C=function(a){if(a.response){var i=a.response.data?a.response.data.message||a.message||a.response.data:a.response.statusText,l=a.response.status;[502,504].includes(l)?n.history.push("/error"):l===401?n.history.location.pathname!=="/login"&&(s.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(h.Z.authKey),n.history.push("/login")):s.ZP.error({content:i,style:{maxWidth:500,margin:"0 auto"}})}else console.log(a.message);return Promise.reject(a)},o=b.Z.create({timeout:6e4,params:{t:g}}),f=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];o.interceptors.request.use(function(r){var a=localStorage.getItem(h.Z.authKey);return a&&!f.includes(r.url)&&(r.headers.Authorization="Bearer ".concat(a)),r}),o.interceptors.response.use(function(){var r=m()(d()().mark(function a(i){var l,u,c;return d()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(l=i.status,![502,504].includes(l)){t.next=5;break}n.history.push("/error"),t.next=18;break;case 5:if(l!==401){t.next=9;break}n.history.location.pathname!=="/login"&&(localStorage.removeItem(h.Z.authKey),n.history.push("/login")),t.next=18;break;case 9:return t.prev=9,u=i.data,u.code!==200&&(c=u.message||u.data,c&&s.ZP.error({content:c,style:{maxWidth:500,margin:"0 auto"}})),t.abrupt("return",u);case 15:t.prev=15,t.t0=t.catch(9);case 17:return t.abrupt("return",i);case 18:return t.abrupt("return",i);case 19:case"end":return t.stop()}},a,null,[[9,15]])}));return function(a){return r.apply(this,arguments)}}(),C);var y=o}}]);
@@ -1,4 +0,0 @@
1
- "use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[440],{77385:function(M,u,e){e.r(u);var v=e(25359),p=e.n(v),P=e(57213),g=e.n(P),s=e(49811),d=e.n(s),n=e(54306),h=e.n(n),m=e(63313),D=e.n(m),i=e(67393),E=e(9835),f=e(84163),r=e(22159),a=e(95176),o=e(5558),l=e(11527),_=function(c){var t=c.file,B=c.handleCancel,O=c.visible,W=i.Z.useForm(),R=h()(W,1),T=R[0],I=(0,m.useState)(!1),C=h()(I,2),j=C[0],y=C[1],S=function(){var q=d()(p()().mark(function K(A){var U;return p()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:y(!0),U=g()(g()({},t),A),a.W.post("".concat(o.Z.apiPrefix,"scripts"),U).then(function(w){var x=w.code,L=w.data;x===200&&(E.ZP.success("\u4FDD\u5B58\u6587\u4EF6\u6210\u529F"),B(L)),y(!1)});case 3:case"end":return k.stop()}},K)}));return function(A){return q.apply(this,arguments)}}();return(0,m.useEffect)(function(){T.resetFields(),y(!1)},[t,O]),(0,l.jsx)(f.Z,{title:"\u8FD0\u884C\u8BBE\u7F6E",open:O,forceRender:!0,centered:!0,onCancel:function(){return B()},children:(0,l.jsx)(i.Z,{form:T,layout:"vertical",name:"setting_modal",initialValues:t,children:(0,l.jsx)(i.Z.Item,{name:"filename",label:"\u5F85\u5F00\u53D1",rules:[{required:!0,message:"\u5F85\u5F00\u53D1"}],children:(0,l.jsx)(r.Z,{placeholder:"\u5F85\u5F00\u53D1"})})})})};u.default=_},5558:function(M,u){var e=window.__ENV__QlBaseUrl||"/";u.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:"pushMe",label:"PushMe"},{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}],pushMe:[{label:"pushMeKey",tip:"PushMe\u7684Key\uFF0Chttps://push.i-i.me/",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
2
- `},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
3
- 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
4
- 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(M,u,e){e.d(u,{W:function(){return f}});var v=e(25359),p=e.n(v),P=e(49811),g=e.n(P),s=e(9835),d=e(5558),n=e(87075),h=e(73669);s.ZP.config({duration:2});var m=Date.now(),D=function(a){if(a.response){var o=a.response.data?a.response.data.message||a.message||a.response.data:a.response.statusText,l=a.response.status;[502,504].includes(l)?n.history.push("/error"):l===401?n.history.location.pathname!=="/login"&&(s.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(d.Z.authKey),n.history.push("/login")):s.ZP.error({content:o,style:{maxWidth:500,margin:"0 auto"}})}else console.log(a.message);return Promise.reject(a)},i=h.Z.create({timeout:6e4,params:{t:m}}),E=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];i.interceptors.request.use(function(r){var a=localStorage.getItem(d.Z.authKey);return a&&!E.includes(r.url)&&(r.headers.Authorization="Bearer ".concat(a)),r}),i.interceptors.response.use(function(){var r=g()(p()().mark(function a(o){var l,_,b;return p()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(l=o.status,![502,504].includes(l)){t.next=5;break}n.history.push("/error"),t.next=18;break;case 5:if(l!==401){t.next=9;break}n.history.location.pathname!=="/login"&&(localStorage.removeItem(d.Z.authKey),n.history.push("/login")),t.next=18;break;case 9:return t.prev=9,_=o.data,_.code!==200&&(b=_.message||_.data,b&&s.ZP.error({content:b,style:{maxWidth:500,margin:"0 auto"}})),t.abrupt("return",_);case 15:t.prev=15,t.t0=t.catch(9);case 17:return t.abrupt("return",o);case 18:return t.abrupt("return",o);case 19:case"end":return t.stop()}},a,null,[[9,15]])}));return function(a){return r.apply(this,arguments)}}(),D);var f=i}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[154],{59673:function(X,F,t){"use strict";t.d(F,{Z:function(){return T}});var d=t(14797),y=t(63313),g={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"},U=g,O=t(46420),A=function(H,S){return y.createElement(O.Z,(0,d.Z)((0,d.Z)({},H),{},{ref:S,icon:U}))};A.displayName="CheckOutlined";var T=y.forwardRef(A)},9532:function(X,F,t){"use strict";t.r(F),t.d(F,{default:function(){return p}});var d=t(63313),y=t(92260),g=t(87807),U=t(17079),O=t(18790),A=t(84875),T=t.n(A),I=t(52604),H=t(82259),S=t(25515),b=t(11847),j=function(i){var o=i.children;return o},R=j,x=t(60795);function B(a){return a!=null}var G=function(i){var o=i.itemPrefixCls,v=i.component,M=i.span,E=i.className,h=i.style,C=i.labelStyle,L=i.contentStyle,P=i.bordered,w=i.label,K=i.content,V=i.colon,_=v;if(P){var D;return d.createElement(_,{className:T()((D={},(0,g.Z)(D,"".concat(o,"-item-label"),B(w)),(0,g.Z)(D,"".concat(o,"-item-content"),B(K)),D),E),style:h,colSpan:M},B(w)&&d.createElement("span",{style:C},w),B(K)&&d.createElement("span",{style:L},K))}return d.createElement(_,{className:T()("".concat(o,"-item"),E),style:h,colSpan:M},d.createElement("div",{className:"".concat(o,"-item-container")},(w||w===0)&&d.createElement("span",{className:T()("".concat(o,"-item-label"),(0,g.Z)({},"".concat(o,"-item-no-colon"),!V)),style:C},w),(K||K===0)&&d.createElement("span",{className:T()("".concat(o,"-item-content")),style:L},K)))},Q=G;function W(a,i,o){var v=i.colon,M=i.prefixCls,E=i.bordered,h=o.component,C=o.type,L=o.showLabel,P=o.showContent,w=o.labelStyle,K=o.contentStyle;return a.map(function(V,_){var D=V.props,q=D.label,tt=D.children,et=D.prefixCls,nt=et===void 0?M:et,rt=D.className,Z=D.style,ct=D.labelStyle,st=D.contentStyle,ot=D.span,lt=ot===void 0?1:ot,at=V.key;return typeof h=="string"?d.createElement(Q,{key:"".concat(C,"-").concat(at||_),className:rt,style:Z,labelStyle:(0,x.Z)((0,x.Z)({},w),ct),contentStyle:(0,x.Z)((0,x.Z)({},K),st),span:lt,colon:v,component:h,itemPrefixCls:nt,bordered:E,label:L?q:null,content:P?tt:null}):[d.createElement(Q,{key:"label-".concat(at||_),className:rt,style:(0,x.Z)((0,x.Z)((0,x.Z)({},w),Z),ct),span:1,colon:v,component:h[0],itemPrefixCls:nt,bordered:E,label:q}),d.createElement(Q,{key:"content-".concat(at||_),className:rt,style:(0,x.Z)((0,x.Z)((0,x.Z)({},K),Z),st),span:lt*2-1,component:h[1],itemPrefixCls:nt,bordered:E,content:tt})]})}var Y=function(i){var o=d.useContext(k),v=i.prefixCls,M=i.vertical,E=i.row,h=i.index,C=i.bordered;return M?d.createElement(d.Fragment,null,d.createElement("tr",{key:"label-".concat(h),className:"".concat(v,"-row")},W(E,i,(0,x.Z)({component:"th",type:"label",showLabel:!0},o))),d.createElement("tr",{key:"content-".concat(h),className:"".concat(v,"-row")},W(E,i,(0,x.Z)({component:"td",type:"content",showContent:!0},o)))):d.createElement("tr",{key:h,className:"".concat(v,"-row")},W(E,i,(0,x.Z)({component:C?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},o)))},J=Y,k=d.createContext({}),$={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function m(a,i){if(typeof a=="number")return a;if((0,O.Z)(a)==="object")for(var o=0;o<b.c4.length;o++){var v=b.c4[o];if(i[v]&&a[v]!==void 0)return a[v]||$[v]}return 3}function z(a,i,o){var v=a;return(i===void 0||i>o)&&(v=(0,S.Tm)(a,{span:o})),v}function it(a,i){var o=(0,I.Z)(a).filter(function(h){return h}),v=[],M=[],E=i;return o.forEach(function(h,C){var L,P=(L=h.props)===null||L===void 0?void 0:L.span,w=P||1;if(C===o.length-1){M.push(z(h,P,E)),v.push(M);return}w<E?(E-=w,M.push(h)):(M.push(z(h,w,E)),v.push(M),E=i,M=[])}),v}function l(a){var i,o=a.prefixCls,v=a.title,M=a.extra,E=a.column,h=E===void 0?$:E,C=a.colon,L=C===void 0?!0:C,P=a.bordered,w=a.layout,K=a.children,V=a.className,_=a.style,D=a.size,q=a.labelStyle,tt=a.contentStyle,et=d.useContext(H.E_),nt=et.getPrefixCls,rt=et.direction,Z=nt("descriptions",o),ct=d.useState({}),st=(0,U.Z)(ct,2),ot=st[0],lt=st[1],at=m(h,ot);d.useEffect(function(){var dt=b.ZP.subscribe(function(ut){(0,O.Z)(h)==="object"&&lt(ut)});return function(){b.ZP.unsubscribe(dt)}},[]);var ht=it(K,at),ft=d.useMemo(function(){return{labelStyle:q,contentStyle:tt}},[q,tt]);return d.createElement(k.Provider,{value:ft},d.createElement("div",{className:T()(Z,(i={},(0,g.Z)(i,"".concat(Z,"-").concat(D),D&&D!=="default"),(0,g.Z)(i,"".concat(Z,"-bordered"),!!P),(0,g.Z)(i,"".concat(Z,"-rtl"),rt==="rtl"),i),V),style:_},(v||M)&&d.createElement("div",{className:"".concat(Z,"-header")},v&&d.createElement("div",{className:"".concat(Z,"-title")},v),M&&d.createElement("div",{className:"".concat(Z,"-extra")},M)),d.createElement("div",{className:"".concat(Z,"-view")},d.createElement("table",null,d.createElement("tbody",null,ht.map(function(dt,ut){return d.createElement(J,{key:ut,index:ut,colon:L,prefixCls:Z,vertical:w==="vertical",bordered:P,row:dt})}))))))}l.Item=R;var n=l,e={container:"container___nww32",right:"right___o0xXT",title:"title___DHxWh",desc:"desc___frhI6"},u=t(52053),r=t.n(u),s=t(11527),c=y.Z.Link,f=function(a){return a.develop="\u5F00\u53D1\u7248",a.master="\u6B63\u5F0F\u7248",a}(f||{}),N=function(i){var o=i.systemInfo;return(0,s.jsxs)("div",{className:e.container,children:[(0,s.jsx)("img",{alt:"logo",style:{width:140,marginRight:20},src:"https://qn.whyour.cn/logo.png"}),(0,s.jsxs)("div",{className:e.right,children:[(0,s.jsx)("span",{className:e.title,children:"\u9752\u9F99"}),(0,s.jsx)("span",{className:e.desc,children:"\u652F\u6301python3\u3001javaScript\u3001shell\u3001typescript \u7684\u5B9A\u65F6\u4EFB\u52A1\u7BA1\u7406\u9762\u677F\uFF08A timed task management panel that supports typescript, javaScript, python3, and shell.\uFF09"}),(0,s.jsxs)(n,{children:[(0,s.jsxs)(n.Item,{label:"\u7248\u672C",span:3,children:[f[o.branch]," v",o.version]}),(0,s.jsx)(n.Item,{label:"\u66F4\u65B0\u65F6\u95F4",span:3,children:r()(o.publishTime*1e3).format("YYYY-MM-DD HH:mm")}),(0,s.jsx)(n.Item,{label:"\u66F4\u65B0\u65E5\u5FD7",span:3,children:(0,s.jsx)(c,{href:"https://qn.whyour.cn/version.yaml?t=".concat(Date.now()),target:"_blank",children:"\u67E5\u770B"})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(c,{href:"https://github.com/whyour/qinglong",target:"_blank",style:{marginRight:15},children:"Github"}),(0,s.jsx)(c,{href:"https://t.me/jiao_long",target:"_blank",style:{marginRight:15},children:"Telegram\u9891\u9053"}),(0,s.jsx)(c,{href:"https://github.com/whyour/qinglong/issues",target:"_blank",children:"\u63D0\u4EA4BUG"})]})]})]})},p=N},11847:function(X,F,t){"use strict";t.d(F,{c4:function(){return g}});var d=t(87807),y=t(60795),g=["xxl","xl","lg","md","sm","xs"],U={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},O=new Map,A=-1,T={},I={matchHandlers:{},dispatch:function(S){return T=S,O.forEach(function(b){return b(T)}),O.size>=1},subscribe:function(S){return O.size||this.register(),A+=1,O.set(A,S),S(T),A},unsubscribe:function(S){O.delete(S),O.size||this.unregister()},unregister:function(){var S=this;Object.keys(U).forEach(function(b){var j=U[b],R=S.matchHandlers[j];R==null||R.mql.removeListener(R==null?void 0:R.listener)}),O.clear()},register:function(){var S=this;Object.keys(U).forEach(function(b){var j=U[b],R=function(G){var Q=G.matches;S.dispatch((0,y.Z)((0,y.Z)({},T),(0,d.Z)({},b,Q)))},x=window.matchMedia(j);x.addListener(R),S.matchHandlers[j]={mql:x,listener:R},R(x)})}};F.ZP=I},52053:function(X){(function(F,t){X.exports=t()})(this,function(){"use strict";var F=1e3,t=6e4,d=36e5,y="millisecond",g="second",U="minute",O="hour",A="day",T="week",I="month",H="quarter",S="year",b="date",j="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,B={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var n=["th","st","nd","rd"],e=l%100;return"["+l+(n[(e-20)%10]||n[e]||n[0])+"]"}},G=function(l,n,e){var u=String(l);return!u||u.length>=n?l:""+Array(n+1-u.length).join(e)+l},Q={s:G,z:function(l){var n=-l.utcOffset(),e=Math.abs(n),u=Math.floor(e/60),r=e%60;return(n<=0?"+":"-")+G(u,2,"0")+":"+G(r,2,"0")},m:function l(n,e){if(n.date()<e.date())return-l(e,n);var u=12*(e.year()-n.year())+(e.month()-n.month()),r=n.clone().add(u,I),s=e-r<0,c=n.clone().add(u+(s?-1:1),I);return+(-(u+(e-r)/(s?r-c:c-r))||0)},a:function(l){return l<0?Math.ceil(l)||0:Math.floor(l)},p:function(l){return{M:I,y:S,w:T,d:A,D:b,h:O,m:U,s:g,ms:y,Q:H}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},W="en",Y={};Y[W]=B;var J=function(l){return l instanceof z},k=function l(n,e,u){var r;if(!n)return W;if(typeof n=="string"){var s=n.toLowerCase();Y[s]&&(r=s),e&&(Y[s]=e,r=s);var c=n.split("-");if(!r&&c.length>1)return l(c[0])}else{var f=n.name;Y[f]=n,r=f}return!u&&r&&(W=r),r||!u&&W},$=function(l,n){if(J(l))return l.clone();var e=typeof n=="object"?n:{};return e.date=l,e.args=arguments,new z(e)},m=Q;m.l=k,m.i=J,m.w=function(l,n){return $(l,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var z=function(){function l(e){this.$L=k(e.locale,null,!0),this.parse(e)}var n=l.prototype;return n.parse=function(e){this.$d=function(u){var r=u.date,s=u.utc;if(r===null)return new Date(NaN);if(m.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var c=r.match(R);if(c){var f=c[2]-1||0,N=(c[7]||"0").substring(0,3);return s?new Date(Date.UTC(c[1],f,c[3]||1,c[4]||0,c[5]||0,c[6]||0,N)):new Date(c[1],f,c[3]||1,c[4]||0,c[5]||0,c[6]||0,N)}}return new Date(r)}(e),this.$x=e.x||{},this.init()},n.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},n.$utils=function(){return m},n.isValid=function(){return this.$d.toString()!==j},n.isSame=function(e,u){var r=$(e);return this.startOf(u)<=r&&r<=this.endOf(u)},n.isAfter=function(e,u){return $(e)<this.startOf(u)},n.isBefore=function(e,u){return this.endOf(u)<$(e)},n.$g=function(e,u,r){return m.u(e)?this[u]:this.set(r,e)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(e,u){var r=this,s=!!m.u(u)||u,c=m.p(e),f=function(E,h){var C=m.w(r.$u?Date.UTC(r.$y,h,E):new Date(r.$y,h,E),r);return s?C:C.endOf(A)},N=function(E,h){return m.w(r.toDate()[E].apply(r.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(h)),r)},p=this.$W,a=this.$M,i=this.$D,o="set"+(this.$u?"UTC":"");switch(c){case S:return s?f(1,0):f(31,11);case I:return s?f(1,a):f(0,a+1);case T:var v=this.$locale().weekStart||0,M=(p<v?p+7:p)-v;return f(s?i-M:i+(6-M),a);case A:case b:return N(o+"Hours",0);case O:return N(o+"Minutes",1);case U:return N(o+"Seconds",2);case g:return N(o+"Milliseconds",3);default:return this.clone()}},n.endOf=function(e){return this.startOf(e,!1)},n.$set=function(e,u){var r,s=m.p(e),c="set"+(this.$u?"UTC":""),f=(r={},r[A]=c+"Date",r[b]=c+"Date",r[I]=c+"Month",r[S]=c+"FullYear",r[O]=c+"Hours",r[U]=c+"Minutes",r[g]=c+"Seconds",r[y]=c+"Milliseconds",r)[s],N=s===A?this.$D+(u-this.$W):u;if(s===I||s===S){var p=this.clone().set(b,1);p.$d[f](N),p.init(),this.$d=p.set(b,Math.min(this.$D,p.daysInMonth())).$d}else f&&this.$d[f](N);return this.init(),this},n.set=function(e,u){return this.clone().$set(e,u)},n.get=function(e){return this[m.p(e)]()},n.add=function(e,u){var r,s=this;e=Number(e);var c=m.p(u),f=function(a){var i=$(s);return m.w(i.date(i.date()+Math.round(a*e)),s)};if(c===I)return this.set(I,this.$M+e);if(c===S)return this.set(S,this.$y+e);if(c===A)return f(1);if(c===T)return f(7);var N=(r={},r[U]=t,r[O]=d,r[g]=F,r)[c]||1,p=this.$d.getTime()+e*N;return m.w(p,this)},n.subtract=function(e,u){return this.add(-1*e,u)},n.format=function(e){var u=this,r=this.$locale();if(!this.isValid())return r.invalidDate||j;var s=e||"YYYY-MM-DDTHH:mm:ssZ",c=m.z(this),f=this.$H,N=this.$m,p=this.$M,a=r.weekdays,i=r.months,o=function(h,C,L,P){return h&&(h[C]||h(u,s))||L[C].slice(0,P)},v=function(h){return m.s(f%12||12,h,"0")},M=r.meridiem||function(h,C,L){var P=h<12?"AM":"PM";return L?P.toLowerCase():P},E={YY:String(this.$y).slice(-2),YYYY:m.s(this.$y,4,"0"),M:p+1,MM:m.s(p+1,2,"0"),MMM:o(r.monthsShort,p,i,3),MMMM:o(i,p),D:this.$D,DD:m.s(this.$D,2,"0"),d:String(this.$W),dd:o(r.weekdaysMin,this.$W,a,2),ddd:o(r.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(f),HH:m.s(f,2,"0"),h:v(1),hh:v(2),a:M(f,N,!0),A:M(f,N,!1),m:String(N),mm:m.s(N,2,"0"),s:String(this.$s),ss:m.s(this.$s,2,"0"),SSS:m.s(this.$ms,3,"0"),Z:c};return s.replace(x,function(h,C){return C||E[h]||c.replace(":","")})},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(e,u,r){var s,c=m.p(u),f=$(e),N=(f.utcOffset()-this.utcOffset())*t,p=this-f,a=m.m(this,f);return a=(s={},s[S]=a/12,s[I]=a,s[H]=a/3,s[T]=(p-N)/6048e5,s[A]=(p-N)/864e5,s[O]=p/d,s[U]=p/t,s[g]=p/F,s)[c]||p,r?a:m.a(a)},n.daysInMonth=function(){return this.endOf(I).$D},n.$locale=function(){return Y[this.$L]},n.locale=function(e,u){if(!e)return this.$L;var r=this.clone(),s=k(e,u,!0);return s&&(r.$L=s),r},n.clone=function(){return m.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},l}(),it=z.prototype;return $.prototype=it,[["$ms",y],["$s",g],["$m",U],["$H",O],["$W",A],["$M",I],["$y",S],["$D",b]].forEach(function(l){it[l[1]]=function(n){return this.$g(n,l[0],l[1])}}),$.extend=function(l,n){return l.$i||(l(n,z,$),l.$i=!0),$},$.locale=k,$.isDayjs=J,$.unix=function(l){return $(1e3*l)},$.en=Y[W],$.Ls=Y,$.p={},$})},25641:function(X,F){"use strict";var t={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(y){var g=y.keyCode;if(y.altKey&&!y.ctrlKey||y.metaKey||g>=t.F1&&g<=t.F12)return!1;switch(g){case t.ALT:case t.CAPS_LOCK:case t.CONTEXT_MENU:case t.CTRL:case t.DOWN:case t.END:case t.ESC:case t.HOME:case t.INSERT:case t.LEFT:case t.MAC_FF_META:case t.META:case t.NUMLOCK:case t.NUM_CENTER:case t.PAGE_DOWN:case t.PAGE_UP:case t.PAUSE:case t.PRINT_SCREEN:case t.RIGHT:case t.SHIFT:case t.UP:case t.WIN_KEY:case t.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(y){if(y>=t.ZERO&&y<=t.NINE||y>=t.NUM_ZERO&&y<=t.NUM_MULTIPLY||y>=t.A&&y<=t.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&y===0)return!0;switch(y){case t.SPACE:case t.QUESTION_MARK:case t.NUM_PLUS:case t.NUM_MINUS:case t.NUM_PERIOD:case t.NUM_DIVISION:case t.SEMICOLON:case t.DASH:case t.EQUALS:case t.COMMA:case t.PERIOD:case t.SLASH:case t.APOSTROPHE:case t.SINGLE_QUOTE:case t.OPEN_SQUARE_BRACKET:case t.BACKSLASH:case t.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};F.Z=t}}]);
@@ -1,4 +0,0 @@
1
- "use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[2313],{47240:function($,f,e){e.r(f);var m=e(25359),b=e.n(m),U=e(57213),I=e.n(U),p=e(49811),M=e.n(p),o=e(54306),K=e.n(o),D=e(63313),q=e.n(D),c=e(67393),W=e(9835),k=e(84163),_=e(22159),a=e(28756),g=e(95176),u=e(5558),i=e(11527),P=function(t){var l=t.app,r=t.handleCancel,O=t.visible,n=c.Z.useForm(),h=K()(n,1),y=h[0],Q=(0,D.useState)(!1),H=K()(Q,2),V=H[0],x=H[1],Y=function(){var d=M()(b()().mark(function E(C){var w,L,S,B,Z;return b()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return x(!0),w=l?"put":"post",L=I()({},C),l&&(L.id=l.id),s.prev=4,s.next=7,g.W[w]("".concat(u.Z.apiPrefix,"apps"),L);case 7:S=s.sent,B=S.code,Z=S.data,B===200&&(W.ZP.success(l?"\u66F4\u65B0\u5E94\u7528\u6210\u529F":"\u65B0\u5EFA\u5E94\u7528\u6210\u529F"),r(Z)),x(!1),s.next=17;break;case 14:s.prev=14,s.t0=s.catch(4),x(!1);case 17:case"end":return s.stop()}},E,null,[[4,14]])}));return function(C){return d.apply(this,arguments)}}();return(0,D.useEffect)(function(){y.resetFields()},[l,O]),(0,i.jsx)(k.Z,{title:l?"\u7F16\u8F91\u5E94\u7528":"\u65B0\u5EFA\u5E94\u7528",open:O,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){y.validateFields().then(function(E){Y(E)}).catch(function(E){console.log("Validate Failed:",E)})},onCancel:function(){return r()},confirmLoading:V,children:(0,i.jsxs)(c.Z,{form:y,layout:"vertical",name:"form_app_modal",initialValues:l,children:[(0,i.jsx)(c.Z.Item,{name:"name",label:"\u540D\u79F0",rules:[{validator:function(E,C){return["system"].includes(C)?Promise.reject(new Error("\u540D\u79F0\u4E0D\u80FD\u4E3A\u4FDD\u7559\u5173\u952E\u5B57")):Promise.resolve()}}],children:(0,i.jsx)(_.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D\u79F0"})}),(0,i.jsx)(c.Z.Item,{name:"scopes",label:"\u6743\u9650",rules:[{required:!0}],children:(0,i.jsx)(a.Z,{mode:"multiple",placeholder:"\u8BF7\u9009\u62E9\u6A21\u5757\u6743\u9650",allowClear:!0,style:{width:"100%"},children:u.Z.scopes.map(function(d){return(0,i.jsx)(a.Z.Option,{value:d.value,children:d.name},d.value)})})})]})})};f.default=P},5558:function($,f){var e=window.__ENV__QlBaseUrl||"/";f.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:"pushMe",label:"PushMe"},{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}],pushMe:[{label:"pushMeKey",tip:"PushMe\u7684Key\uFF0Chttps://push.i-i.me/",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
2
- `},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
3
- 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
4
- 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($,f,e){e.d(f,{W:function(){return k}});var m=e(25359),b=e.n(m),U=e(49811),I=e.n(U),p=e(9835),M=e(5558),o=e(87075),K=e(73669);p.ZP.config({duration:2});var D=Date.now(),q=function(a){if(a.response){var g=a.response.data?a.response.data.message||a.message||a.response.data:a.response.statusText,u=a.response.status;[502,504].includes(u)?o.history.push("/error"):u===401?o.history.location.pathname!=="/login"&&(p.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(M.Z.authKey),o.history.push("/login")):p.ZP.error({content:g,style:{maxWidth:500,margin:"0 auto"}})}else console.log(a.message);return Promise.reject(a)},c=K.Z.create({timeout:6e4,params:{t:D}}),W=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];c.interceptors.request.use(function(_){var a=localStorage.getItem(M.Z.authKey);return a&&!W.includes(_.url)&&(_.headers.Authorization="Bearer ".concat(a)),_}),c.interceptors.response.use(function(){var _=I()(b()().mark(function a(g){var u,i,P;return b()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(u=g.status,![502,504].includes(u)){t.next=5;break}o.history.push("/error"),t.next=18;break;case 5:if(u!==401){t.next=9;break}o.history.location.pathname!=="/login"&&(localStorage.removeItem(M.Z.authKey),o.history.push("/login")),t.next=18;break;case 9:return t.prev=9,i=g.data,i.code!==200&&(P=i.message||i.data,P&&p.ZP.error({content:P,style:{maxWidth:500,margin:"0 auto"}})),t.abrupt("return",i);case 15:t.prev=15,t.t0=t.catch(9);case 17:return t.abrupt("return",g);case 18:return t.abrupt("return",g);case 19:case"end":return t.stop()}},a,null,[[9,15]])}));return function(a){return _.apply(this,arguments)}}(),q);var k=c},28756:function($,f,e){var m=e(87807),b=e(60795),U=e(84875),I=e.n(U),p=e(40804),M=e(92976),o=e(63313),K=e.n(o),D=e(82259),q=e(23474),c=e(7893),W=e(65189),k=e(76737),_=e(16082),a=e(1020),g=e(91967),u=e(60934),i=function(l,r){var O={};for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&r.indexOf(n)<0&&(O[n]=l[n]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,n=Object.getOwnPropertySymbols(l);h<n.length;h++)r.indexOf(n[h])<0&&Object.prototype.propertyIsEnumerable.call(l,n[h])&&(O[n[h]]=l[n[h]]);return O},P="SECRET_COMBOBOX_MODE_DO_NOT_USE",z=function(r,O){var n,h=r.prefixCls,y=r.bordered,Q=y===void 0?!0:y,H=r.className,V=r.getPopupContainer,x=r.dropdownClassName,Y=r.popupClassName,d=r.listHeight,E=d===void 0?256:d,C=r.placement,w=r.listItemHeight,L=w===void 0?24:w,S=r.size,B=r.disabled,Z=r.notFoundContent,ee=r.status,s=r.showArrow,T=i(r,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),A=o.useContext(D.E_),oe=A.getPopupContainer,te=A.getPrefixCls,le=A.renderEmpty,R=A.direction,ie=A.virtual,se=A.dropdownMatchSelectWidth,_e=o.useContext(W.Z),v=te("select",h),ue=te(),ae=(0,u.ri)(v,R),de=ae.compactSize,me=ae.compactItemClassnames,j=o.useMemo(function(){var G=T.mode;if(G!=="combobox")return G===P?"combobox":G},[T.mode]),re=j==="multiple"||j==="tags",pe=s!==void 0?s:T.loading||!(re||j==="combobox"),F=(0,o.useContext)(k.aM),ce=F.status,J=F.hasFeedback,ge=F.isFormItemInput,he=F.feedbackIcon,ve=(0,a.F)(ce,ee),N;Z!==void 0?N=Z:j==="combobox"?N=null:N=(le||q.Z)("Select");var X=(0,g.Z)((0,b.Z)((0,b.Z)({},T),{multiple:re,hasFeedback:J,feedbackIcon:he,showArrow:pe,prefixCls:v})),be=X.suffixIcon,Ee=X.itemIcon,fe=X.removeIcon,Pe=X.clearIcon,Oe=(0,M.Z)(T,["suffixIcon","itemIcon"]),Ce=I()(Y||x,(0,m.Z)({},"".concat(v,"-dropdown-").concat(R),R==="rtl")),ne=de||S||_e,Me=o.useContext(c.Z),De=B!=null?B:Me,Ie=I()((n={},(0,m.Z)(n,"".concat(v,"-lg"),ne==="large"),(0,m.Z)(n,"".concat(v,"-sm"),ne==="small"),(0,m.Z)(n,"".concat(v,"-rtl"),R==="rtl"),(0,m.Z)(n,"".concat(v,"-borderless"),!Q),(0,m.Z)(n,"".concat(v,"-in-form-item"),ge),n),(0,a.Z)(v,ve,J),me,H),ye=function(){return C!==void 0?C:R==="rtl"?"bottomRight":"bottomLeft"};return o.createElement(p.ZP,(0,b.Z)({ref:O,virtual:ie,dropdownMatchSelectWidth:se},Oe,{transitionName:(0,_.mL)(ue,(0,_.q0)(C),T.transitionName),listHeight:E,listItemHeight:L,mode:j,prefixCls:v,placement:ye(),direction:R,inputIcon:be,menuItemSelectedIcon:Ee,removeIcon:fe,clearIcon:Pe,notFoundContent:N,className:Ie,getPopupContainer:V||oe,dropdownClassName:Ce,showArrow:J||s,disabled:De}))},t=o.forwardRef(z);t.SECRET_COMBOBOX_MODE_DO_NOT_USE=P,t.Option=p.Wx,t.OptGroup=p.Xo,f.Z=t}}]);
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[2340],{9532:function($,B,e){"use strict";e.r(B),e.d(B,{default:function(){return C}});var h=e(63313),Z=e(92260),x=e(87807),W=e(17079),S=e(18790),A=e(84875),y=e.n(A),g=e(52604),H=e(82259),V=e(25515),L=e(11847),U=function(o){var u=o.children;return u},D=U,P=e(60795);function w(t){return t!=null}var oe=function(o){var u=o.itemPrefixCls,p=o.component,O=o.span,j=o.className,c=o.style,F=o.labelStyle,Y=o.contentStyle,X=o.bordered,z=o.label,te=o.content,se=o.colon,ee=p;if(X){var J;return h.createElement(ee,{className:y()((J={},(0,x.Z)(J,"".concat(u,"-item-label"),w(z)),(0,x.Z)(J,"".concat(u,"-item-content"),w(te)),J),j),style:c,colSpan:O},w(z)&&h.createElement("span",{style:F},z),w(te)&&h.createElement("span",{style:Y},te))}return h.createElement(ee,{className:y()("".concat(u,"-item"),j),style:c,colSpan:O},h.createElement("div",{className:"".concat(u,"-item-container")},(z||z===0)&&h.createElement("span",{className:y()("".concat(u,"-item-label"),(0,x.Z)({},"".concat(u,"-item-no-colon"),!se)),style:F},z),(te||te===0)&&h.createElement("span",{className:y()("".concat(u,"-item-content")),style:Y},te)))},G=oe;function K(t,o,u){var p=o.colon,O=o.prefixCls,j=o.bordered,c=u.component,F=u.type,Y=u.showLabel,X=u.showContent,z=u.labelStyle,te=u.contentStyle;return t.map(function(se,ee){var J=se.props,ie=J.label,ue=J.children,ce=J.prefixCls,le=ce===void 0?O:ce,de=J.className,Q=J.style,fe=J.labelStyle,he=J.contentStyle,Ee=J.span,k=Ee===void 0?1:Ee,v=se.key;return typeof c=="string"?h.createElement(G,{key:"".concat(F,"-").concat(v||ee),className:de,style:Q,labelStyle:(0,P.Z)((0,P.Z)({},z),fe),contentStyle:(0,P.Z)((0,P.Z)({},te),he),span:k,colon:p,component:c,itemPrefixCls:le,bordered:j,label:Y?ie:null,content:X?ue:null}):[h.createElement(G,{key:"label-".concat(v||ee),className:de,style:(0,P.Z)((0,P.Z)((0,P.Z)({},z),Q),fe),span:1,colon:p,component:c[0],itemPrefixCls:le,bordered:j,label:ie}),h.createElement(G,{key:"content-".concat(v||ee),className:de,style:(0,P.Z)((0,P.Z)((0,P.Z)({},te),Q),he),span:k*2-1,component:c[1],itemPrefixCls:le,bordered:j,content:ue})]})}var N=function(o){var u=h.useContext(T),p=o.prefixCls,O=o.vertical,j=o.row,c=o.index,F=o.bordered;return O?h.createElement(h.Fragment,null,h.createElement("tr",{key:"label-".concat(c),className:"".concat(p,"-row")},K(j,o,(0,P.Z)({component:"th",type:"label",showLabel:!0},u))),h.createElement("tr",{key:"content-".concat(c),className:"".concat(p,"-row")},K(j,o,(0,P.Z)({component:"td",type:"content",showContent:!0},u)))):h.createElement("tr",{key:c,className:"".concat(p,"-row")},K(j,o,(0,P.Z)({component:F?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},u)))},re=N,T=h.createContext({}),a={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function m(t,o){if(typeof t=="number")return t;if((0,S.Z)(t)==="object")for(var u=0;u<L.c4.length;u++){var p=L.c4[u];if(o[p]&&t[p]!==void 0)return t[p]||a[p]}return 3}function E(t,o,u){var p=t;return(o===void 0||o>u)&&(p=(0,V.Tm)(t,{span:u})),p}function R(t,o){var u=(0,g.Z)(t).filter(function(c){return c}),p=[],O=[],j=o;return u.forEach(function(c,F){var Y,X=(Y=c.props)===null||Y===void 0?void 0:Y.span,z=X||1;if(F===u.length-1){O.push(E(c,X,j)),p.push(O);return}z<j?(j-=z,O.push(c)):(O.push(E(c,z,j)),p.push(O),j=o,O=[])}),p}function l(t){var o,u=t.prefixCls,p=t.title,O=t.extra,j=t.column,c=j===void 0?a:j,F=t.colon,Y=F===void 0?!0:F,X=t.bordered,z=t.layout,te=t.children,se=t.className,ee=t.style,J=t.size,ie=t.labelStyle,ue=t.contentStyle,ce=h.useContext(H.E_),le=ce.getPrefixCls,de=ce.direction,Q=le("descriptions",u),fe=h.useState({}),he=(0,W.Z)(fe,2),Ee=he[0],k=he[1],v=m(c,Ee);h.useEffect(function(){var ve=L.ZP.subscribe(function(ge){(0,S.Z)(c)==="object"&&k(ge)});return function(){L.ZP.unsubscribe(ve)}},[]);var b=R(te,v),ae=h.useMemo(function(){return{labelStyle:ie,contentStyle:ue}},[ie,ue]);return h.createElement(T.Provider,{value:ae},h.createElement("div",{className:y()(Q,(o={},(0,x.Z)(o,"".concat(Q,"-").concat(J),J&&J!=="default"),(0,x.Z)(o,"".concat(Q,"-bordered"),!!X),(0,x.Z)(o,"".concat(Q,"-rtl"),de==="rtl"),o),se),style:ee},(p||O)&&h.createElement("div",{className:"".concat(Q,"-header")},p&&h.createElement("div",{className:"".concat(Q,"-title")},p),O&&h.createElement("div",{className:"".concat(Q,"-extra")},O)),h.createElement("div",{className:"".concat(Q,"-view")},h.createElement("table",null,h.createElement("tbody",null,b.map(function(ve,ge){return h.createElement(re,{key:ge,index:ge,colon:Y,prefixCls:Q,vertical:z==="vertical",bordered:X,row:ve})}))))))}l.Item=D;var s=l,n={container:"container___nww32",right:"right___o0xXT",title:"title___DHxWh",desc:"desc___frhI6"},d=e(52053),r=e.n(d),i=e(11527),f=Z.Z.Link,_=function(t){return t.develop="\u5F00\u53D1\u7248",t.master="\u6B63\u5F0F\u7248",t}(_||{}),M=function(o){var u=o.systemInfo;return(0,i.jsxs)("div",{className:n.container,children:[(0,i.jsx)("img",{alt:"logo",style:{width:140,marginRight:20},src:"https://qn.whyour.cn/logo.png"}),(0,i.jsxs)("div",{className:n.right,children:[(0,i.jsx)("span",{className:n.title,children:"\u9752\u9F99"}),(0,i.jsx)("span",{className:n.desc,children:"\u652F\u6301python3\u3001javaScript\u3001shell\u3001typescript \u7684\u5B9A\u65F6\u4EFB\u52A1\u7BA1\u7406\u9762\u677F\uFF08A timed task management panel that supports typescript, javaScript, python3, and shell.\uFF09"}),(0,i.jsxs)(s,{children:[(0,i.jsxs)(s.Item,{label:"\u7248\u672C",span:3,children:[_[u.branch]," v",u.version]}),(0,i.jsx)(s.Item,{label:"\u66F4\u65B0\u65F6\u95F4",span:3,children:r()(u.publishTime*1e3).format("YYYY-MM-DD HH:mm")}),(0,i.jsx)(s.Item,{label:"\u66F4\u65B0\u65E5\u5FD7",span:3,children:(0,i.jsx)(f,{href:"https://qn.whyour.cn/version.yaml?t=".concat(Date.now()),target:"_blank",children:"\u67E5\u770B"})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(f,{href:"https://github.com/whyour/qinglong",target:"_blank",style:{marginRight:15},children:"Github"}),(0,i.jsx)(f,{href:"https://t.me/jiao_long",target:"_blank",style:{marginRight:15},children:"Telegram\u9891\u9053"}),(0,i.jsx)(f,{href:"https://github.com/whyour/qinglong/issues",target:"_blank",children:"\u63D0\u4EA4BUG"})]})]})]})},C=M},47240:function($,B,e){"use strict";e.r(B);var h=e(25359),Z=e.n(h),x=e(57213),W=e.n(x),S=e(49811),A=e.n(S),y=e(54306),g=e.n(y),H=e(63313),V=e.n(H),L=e(67393),U=e(9835),D=e(84163),P=e(22159),w=e(28756),oe=e(95176),G=e(5558),K=e(11527),N=function(T){var a=T.app,m=T.handleCancel,E=T.visible,R=L.Z.useForm(),l=g()(R,1),s=l[0],n=(0,H.useState)(!1),d=g()(n,2),r=d[0],i=d[1],f=function(){var _=A()(Z()().mark(function M(C){var t,o,u,p,O;return Z()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return i(!0),t=a?"put":"post",o=W()({},C),a&&(o.id=a.id),c.prev=4,c.next=7,oe.W[t]("".concat(G.Z.apiPrefix,"apps"),o);case 7:u=c.sent,p=u.code,O=u.data,p===200&&(U.ZP.success(a?"\u66F4\u65B0\u5E94\u7528\u6210\u529F":"\u65B0\u5EFA\u5E94\u7528\u6210\u529F"),m(O)),i(!1),c.next=17;break;case 14:c.prev=14,c.t0=c.catch(4),i(!1);case 17:case"end":return c.stop()}},M,null,[[4,14]])}));return function(C){return _.apply(this,arguments)}}();return(0,H.useEffect)(function(){s.resetFields()},[a,E]),(0,K.jsx)(D.Z,{title:a?"\u7F16\u8F91\u5E94\u7528":"\u65B0\u5EFA\u5E94\u7528",open:E,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){s.validateFields().then(function(M){f(M)}).catch(function(M){console.log("Validate Failed:",M)})},onCancel:function(){return m()},confirmLoading:r,children:(0,K.jsxs)(L.Z,{form:s,layout:"vertical",name:"form_app_modal",initialValues:a,children:[(0,K.jsx)(L.Z.Item,{name:"name",label:"\u540D\u79F0",rules:[{validator:function(M,C){return["system"].includes(C)?Promise.reject(new Error("\u540D\u79F0\u4E0D\u80FD\u4E3A\u4FDD\u7559\u5173\u952E\u5B57")):Promise.resolve()}}],children:(0,K.jsx)(P.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D\u79F0"})}),(0,K.jsx)(L.Z.Item,{name:"scopes",label:"\u6743\u9650",rules:[{required:!0}],children:(0,K.jsx)(w.Z,{mode:"multiple",placeholder:"\u8BF7\u9009\u62E9\u6A21\u5757\u6743\u9650",allowClear:!0,style:{width:"100%"},children:G.Z.scopes.map(function(_){return(0,K.jsx)(w.Z.Option,{value:_.value,children:_.name},_.value)})})})]})})};B.default=N},77207:function($,B,e){"use strict";e.r(B),e.d(B,{default:function(){return O}});var h=e(57213),Z=e.n(h),x=e(93525),W=e.n(x),S=e(54306),A=e.n(S),y=e(63313),g=e(92260),H=e(51704),V=e(2947),L=e(15367),U=e(84163),D=e(9835),P=e(24378),w=e(86986),oe=e(60986),G=e(5558),K=e(78969),N=e(95176),re=e(47240),T=e(32132),a=e(14797),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},E=m,R=e(46420),l=function(c,F){return y.createElement(R.Z,(0,a.Z)((0,a.Z)({},c),{},{ref:F,icon:E}))};l.displayName="ReloadOutlined";var s=y.forwardRef(l),n=e(13740),d=e(17322),r=e(23980),i=e(15257),f=e(14761),_=e(9532),M=e(87075),C=e(56508),t=e(11527),o=g.Z.Text,u=window.__ENV__DeployEnv==="demo",p=function(){var c=(0,M.useOutletContext)(),F=c.headerStyle,Y=c.isPhone,X=c.user,z=c.reloadUser,te=c.reloadTheme,se=c.socketMessage,ee=c.systemInfo,J=[{title:"\u540D\u79F0",dataIndex:"name",key:"name"},{title:"Client ID",dataIndex:"client_id",key:"client_id",render:function(I,q){return(0,t.jsx)(o,{copyable:!0,children:q.client_id})}},{title:"Client Secret",dataIndex:"client_secret",key:"client_secret",render:function(I,q){return(0,t.jsx)(o,{copyable:{text:q.client_secret},children:"*******"})}},{title:"\u6743\u9650",dataIndex:"scopes",key:"scopes",width:"40%",render:function(I,q){return q.scopes.map(function(ne){return(0,t.jsx)(H.Z,{children:G.Z.scopesMap[ne]},ne)})}},{title:"\u64CD\u4F5C",key:"action",render:function(I,q,ne){var _e=!Y;return(0,t.jsxs)(V.Z,{size:"middle",style:{paddingLeft:8},children:[(0,t.jsx)(L.Z,{title:_e?"\u7F16\u8F91":"",children:(0,t.jsx)("a",{onClick:function(){return We(q,ne)},children:(0,t.jsx)(T.Z,{})})}),(0,t.jsx)(L.Z,{title:_e?"\u91CD\u7F6Esecret":"",children:(0,t.jsx)("a",{onClick:function(){return Ue(q,ne)},children:(0,t.jsx)(s,{})})}),(0,t.jsx)(L.Z,{title:_e?"\u5220\u9664":"",children:(0,t.jsx)("a",{onClick:function(){return $e(q,ne)},children:(0,t.jsx)(n.Z,{})})})]})}}],ie=(0,y.useState)(!0),ue=A()(ie,2),ce=ue[0],le=ue[1],de=(0,y.useState)([]),Q=A()(de,2),fe=Q[0],he=Q[1],Ee=(0,y.useState)(!1),k=A()(Ee,2),v=k[0],b=k[1],ae=(0,y.useState)(),ve=A()(ae,2),ge=ve[0],ye=ve[1],Se=(0,y.useState)("security"),Ce=A()(Se,2),je=Ce[0],Te=Ce[1],Ie=(0,y.useState)([]),De=A()(Ie,2),Be=De[0],Ze=De[1],Re=(0,y.useState)(),Me=A()(Re,2),Le=Me[0],Fe=Me[1],xe=function(){le(!0),N.W.get("".concat(G.Z.apiPrefix,"apps")).then(function(I){var q=I.code,ne=I.data;q===200&&he(ne)}).finally(function(){return le(!1)})},be=function(){ye(null),b(!0)},We=function(I,q){ye(I),b(!0)},$e=function(I,q){U.Z.confirm({title:"\u786E\u8BA4\u5220\u9664",content:(0,t.jsxs)(t.Fragment,{children:["\u786E\u8BA4\u5220\u9664\u5E94\u7528"," ",(0,t.jsx)(o,{style:{wordBreak:"break-all"},type:"warning",children:I.name})," ","\u5417"]}),onOk:function(){N.W.delete("".concat(G.Z.apiPrefix,"apps"),{data:[I.id]}).then(function(_e){var pe=_e.code,Oe=_e.data;if(pe===200){D.ZP.success("\u5220\u9664\u6210\u529F");var Ae=W()(fe);Ae.splice(q,1),he(Ae)}})},onCancel:function(){console.log("Cancel")}})},Ue=function(I,q){U.Z.confirm({title:"\u786E\u8BA4\u91CD\u7F6E",content:(0,t.jsxs)(t.Fragment,{children:["\u786E\u8BA4\u91CD\u7F6E\u5E94\u7528"," ",(0,t.jsx)(o,{style:{wordBreak:"break-all"},type:"warning",children:I.name})," ","\u7684Secret\u5417",(0,t.jsx)("br",{}),(0,t.jsx)(o,{type:"secondary",children:"\u91CD\u7F6ESecret\u4F1A\u8BA9\u5F53\u524D\u5E94\u7528\u6240\u6709token\u5931\u6548"})]}),onOk:function(){N.W.put("".concat(G.Z.apiPrefix,"apps/").concat(I.id,"/reset-secret")).then(function(_e){var pe=_e.code,Oe=_e.data;pe===200&&(D.ZP.success("\u91CD\u7F6E\u6210\u529F"),Pe(Oe))})},onCancel:function(){console.log("Cancel")}})},Ke=function(I){b(!1),I&&Pe(I)},Pe=function(I){var q=fe.findIndex(function(_e){return _e.id===I.id}),ne=W()(fe);q===-1?ne.push(I):ne.splice(q,1,Z()({},I)),he(ne)},Ne=function(){N.W.get("".concat(G.Z.apiPrefix,"user/login-log")).then(function(I){var q=I.code,ne=I.data;q===200&&Ze(ne)}).catch(function(I){console.log(I)})},ze=function(I){Te(I),I==="app"?xe():I==="login"?Ne():I==="notification"&&we()},we=function(){N.W.get("".concat(G.Z.apiPrefix,"user/notification")).then(function(I){var q=I.code,ne=I.data;q===200&&Fe(ne)}).catch(function(I){console.log(I)})};return(0,y.useEffect)(function(){u&&xe()},[]),(0,t.jsxs)(K.ZP,{className:"ql-container-wrapper ql-container-wrapper-has-tab ql-setting-container",title:"\u7CFB\u7EDF\u8BBE\u7F6E",header:{style:F},extra:je==="app"?[(0,t.jsx)(P.Z,{type:"primary",onClick:function(){return be()},children:"\u65B0\u5EFA\u5E94\u7528"},"2")]:[],children:[(0,t.jsx)(w.Z,{defaultActiveKey:"security",size:"small",tabPosition:"top",onChange:ze,items:[].concat(W()(u?[]:[{key:"security",label:"\u5B89\u5168\u8BBE\u7F6E",children:(0,t.jsx)(d.default,{user:X,userChange:z})}]),[{key:"app",label:"\u5E94\u7528\u8BBE\u7F6E",children:(0,t.jsx)(oe.Z,{columns:J,pagination:!1,dataSource:fe,rowKey:"id",size:"middle",scroll:{x:768},loading:ce})},{key:"notification",label:"\u901A\u77E5\u8BBE\u7F6E",children:(0,t.jsx)(i.default,{data:Le})},{key:"login",label:"\u767B\u5F55\u65E5\u5FD7",children:(0,t.jsx)(r.default,{data:Be})},{key:"other",label:"\u5176\u4ED6\u8BBE\u7F6E",children:(0,t.jsx)(f.default,{reloadTheme:te,socketMessage:se,systemInfo:ee})},{key:"about",label:"\u5173\u4E8E",children:(0,t.jsx)(_.default,{systemInfo:ee})}])}),(0,t.jsx)(re.default,{visible:v,handleCancel:Ke,app:ge})]})},O=p},23980:function($,B,e){"use strict";e.r(B);var h=e(63313),Z=e.n(h),x=e(92260),W=e(51704),S=e(60986),A=e(11527),y=x.Z.Text,g=x.Z.Link,H=function(D){return D[D.\u6210\u529F=0]="\u6210\u529F",D[D.\u5931\u8D25=1]="\u5931\u8D25",D}(H||{}),V=function(D){return D[D.success=0]="success",D[D.error=1]="error",D}(V||{}),L=[{title:"\u5E8F\u53F7",width:50,render:function(P,w,oe){return oe+1}},{title:"\u767B\u5F55\u65F6\u95F4",dataIndex:"timestamp",key:"timestamp",render:function(P,w){return new Date(w.timestamp).toLocaleString()}},{title:"\u767B\u5F55\u5730\u5740",dataIndex:"address",key:"address"},{title:"\u767B\u5F55IP",dataIndex:"ip",key:"ip"},{title:"\u767B\u5F55\u8BBE\u5907",dataIndex:"platform",key:"platform",width:80},{title:"\u767B\u5F55\u72B6\u6001",dataIndex:"status",key:"status",width:80,render:function(P,w){return(0,A.jsx)(W.Z,{color:V[w.status],style:{marginRight:0},children:H[w.status]})}}],U=function(P){var w=P.data;return(0,A.jsx)(A.Fragment,{children:(0,A.jsx)(S.Z,{columns:L,pagination:!1,dataSource:w,rowKey:"id",size:"middle",scroll:{x:768},sticky:!0})})};B.default=U},15257:function($,B,e){"use strict";e.r(B);var h=e(57213),Z=e.n(h),x=e(54306),W=e.n(x),S=e(63313),A=e.n(S),y=e(28756),g=e(67393),H=e(9835),V=e(22159),L=e(24378),U=e(95176),D=e(5558),P=e(11527),w=y.Z.Option,oe=function(K){var N=K.data,re=(0,S.useState)(!1),T=W()(re,2),a=T[0],m=T[1],E=(0,S.useState)("closed"),R=W()(E,2),l=R[0],s=R[1],n=(0,S.useState)([]),d=W()(n,2),r=d[0],i=d[1],f=g.Z.useForm(),_=W()(f,1),M=_[0],C=function(u){m(!0);var p=u.type;p=="closed"&&(u.type=""),U.W.put("".concat(D.Z.apiPrefix,"user/notification"),u).then(function(O){var j=O.code,c=O.data;j===200&&H.ZP.success(u.type?"\u901A\u77E5\u53D1\u9001\u6210\u529F":"\u901A\u77E5\u5173\u95ED\u6210\u529F")}).catch(function(O){console.log(O)}).finally(function(){return m(!1)})},t=function(u){s(u);var p=D.Z.notificationModeMap[u];i(p||[])};return(0,S.useEffect)(function(){N&&N.type&&(t(N.type),M.setFieldsValue(Z()({},N)))},[N]),(0,P.jsx)("div",{children:(0,P.jsxs)(g.Z,{onFinish:C,form:M,layout:"vertical",children:[(0,P.jsx)(g.Z.Item,{label:"\u901A\u77E5\u65B9\u5F0F",name:"type",rules:[{required:!0}],style:{maxWidth:400},initialValue:l,children:(0,P.jsx)(y.Z,{onChange:t,disabled:a,children:D.Z.notificationModes.map(function(o){return(0,P.jsx)(w,{value:o.value,children:o.label},o.value)})})}),r.map(function(o){return(0,P.jsx)(g.Z.Item,{label:o.label,name:o.label,extra:o.tip,rules:[{required:o.required}],style:{maxWidth:400},children:o.items?(0,P.jsx)(y.Z,{placeholder:o.placeholder||"\u8BF7\u9009\u62E9".concat(o.label),disabled:a,children:o.items.map(function(u){return(0,P.jsx)(w,{value:u.value,children:u.label||u.value},u.value)})}):(0,P.jsx)(V.Z.TextArea,{disabled:a,autoSize:!0,placeholder:o.placeholder||"\u8BF7\u8F93\u5165".concat(o.label)})},o.label)}),(0,P.jsx)(L.Z,{type:"primary",htmlType:"submit",disabled:a,children:a?"\u6D4B\u8BD5\u4E2D...":"\u4FDD\u5B58"})]})})};B.default=oe},14761:function($,B,e){"use strict";e.r(B);var h=e(57213),Z=e.n(h),x=e(54306),W=e.n(x),S=e(63313),A=e.n(S),y=e(67393),g=e(9835),H=e(84163),V=e(84468),L=e(22159),U=e(55484),D=e(24378),P=e(57679),w=e(71571),oe=e.n(w),G=e(5558),K=e(95176),N=e(60819),re=e(11227),T=e.n(re),a=e(56508),m=e(59953),E=e(41422),R=e(54700),l=e(11527),s=[{label:"\u4EAE\u8272",value:"light"},{label:"\u6697\u8272",value:"dark"},{label:"\u8DDF\u968F\u7CFB\u7EDF",value:"auto"}],n=function(r){var i=r.systemInfo,f=r.socketMessage,_=r.reloadTheme,M=localStorage.getItem("qinglong_dark_theme")||"auto",C=(0,S.useState)(),t=W()(C,2),o=t[0],u=t[1],p=y.Z.useForm(),O=W()(p,1),j=O[0],c=(0,S.useRef)(),F=(0,S.useState)(!1),Y=W()(F,2),X=Y[0],z=Y[1],te=(0,R.default)("\u4E0A\u4F20"),se=(0,R.default)("\u4E0B\u8F7D"),ee=w||{},J=ee.enable,ie=ee.disable,ue=ee.exportGeneratedCSS,ce=ee.setFetchMethod,le=ee.auto,de=function(v){var b=v.target.value;localStorage.setItem("qinglong_dark_theme",v.target.value),ce(fetch),b==="dark"?J({}):b==="light"?ie():le({}),_()},Q=function(){K.W.get("".concat(G.Z.apiPrefix,"system/config")).then(function(v){var b=v.code,ae=v.data;b===200&&ae.info&&u(ae.info)}).catch(function(v){console.log(v)})},fe=function(){K.W.put("".concat(G.Z.apiPrefix,"system/config"),o).then(function(v){var b=v.code,ae=v.data;b===200&&g.ZP.success("\u66F4\u65B0\u6210\u529F")}).catch(function(v){console.log(v)})},he=function(){z(!0),K.W.put("".concat(G.Z.apiPrefix,"system/data/export"),{},{responseType:"blob",timeout:864e5,onDownloadProgress:function(b){b.progress&&se(parseFloat((b.progress*100).toFixed(1)))}}).then(function(v){(0,re.saveAs)(v,"data.tgz")}).catch(function(v){console.log(v)}).finally(function(){return z(!1)})},Ee=function(){H.Z.confirm({width:600,maskClosable:!1,title:"\u786E\u8BA4\u91CD\u542F",centered:!0,content:"\u5907\u4EFD\u6570\u636E\u4E0A\u4F20\u6210\u529F\uFF0C\u786E\u8BA4\u8986\u76D6\u6570\u636E",okText:"\u91CD\u542F",onOk:function(){K.W.put("".concat(G.Z.apiPrefix,"system/reload"),{type:"data"}).then(function(){g.ZP.success({content:(0,l.jsxs)("span",{children:["\u7CFB\u7EDF\u5C06\u5728",(0,l.jsx)(E.Z,{className:"inline-countdown",format:"ss",value:Date.now()+1e3*30}),"\u79D2\u540E\u81EA\u52A8\u5237\u65B0"]}),duration:30}),setTimeout(function(){window.location.reload()},3e4)}).catch(function(b){console.log(b)})}})};return(0,S.useEffect)(function(){Q()},[]),(0,l.jsxs)(y.Z,{layout:"vertical",form:j,children:[(0,l.jsx)(y.Z.Item,{label:"\u4E3B\u9898\u8BBE\u7F6E",name:"theme",initialValue:M,children:(0,l.jsx)(V.ZP.Group,{options:s,onChange:de,value:M,optionType:"button",buttonStyle:"solid"})}),(0,l.jsx)(y.Z.Item,{label:"\u65E5\u5FD7\u5220\u9664\u9891\u7387",name:"frequency",tooltip:"\u6BCFx\u5929\u81EA\u52A8\u5220\u9664x\u5929\u4EE5\u524D\u7684\u65E5\u5FD7",children:(0,l.jsxs)(L.Z.Group,{compact:!0,children:[(0,l.jsx)(U.Z,{addonBefore:"\u6BCF",addonAfter:"\u5929",style:{width:142},min:0,value:o==null?void 0:o.logRemoveFrequency,onChange:function(v){u(Z()(Z()({},o),{},{logRemoveFrequency:v}))}}),(0,l.jsx)(D.Z,{type:"primary",onClick:fe,children:"\u786E\u8BA4"})]})}),(0,l.jsx)(y.Z.Item,{label:"\u5B9A\u65F6\u4EFB\u52A1\u5E76\u53D1\u6570",name:"frequency",children:(0,l.jsxs)(L.Z.Group,{compact:!0,children:[(0,l.jsx)(U.Z,{style:{width:142},min:1,value:o==null?void 0:o.cronConcurrency,onChange:function(v){u(Z()(Z()({},o),{},{cronConcurrency:v}))}}),(0,l.jsx)(D.Z,{type:"primary",onClick:fe,children:"\u786E\u8BA4"})]})}),(0,l.jsxs)(y.Z.Item,{label:"\u6570\u636E\u5907\u4EFD\u8FD8\u539F",name:"frequency",children:[(0,l.jsx)(D.Z,{type:"primary",onClick:he,loading:X,children:"\u5907\u4EFD"}),(0,l.jsx)(P.Z,{method:"put",showUploadList:!1,maxCount:1,action:"/api/system/data/import",onChange:function(v){var b;if((b=v.event)!==null&&b!==void 0&&b.percent){var ae,ve;te(parseFloat((ae=v.event)===null||ae===void 0?void 0:ae.percent.toFixed(1))),((ve=v.event)===null||ve===void 0?void 0:ve.percent)===100&&Ee()}},name:"data",headers:{Authorization:"Bearer ".concat(localStorage.getItem(G.Z.authKey))},children:(0,l.jsx)(D.Z,{icon:(0,l.jsx)(m.Z,{}),style:{marginLeft:8},children:"\u8FD8\u539F\u6570\u636E"})})]}),(0,l.jsx)(y.Z.Item,{label:"\u68C0\u67E5\u66F4\u65B0",name:"update",children:(0,l.jsx)(N.default,{systemInfo:i,socketMessage:f})})]})};B.default=n},54700:function($,B,e){"use strict";e.r(B),e.d(B,{default:function(){return A}});var h=e(13800),Z=e(84163),x=e(63313),W=e.n(x),S=e(11527);function A(y){var g=(0,x.useRef)(),H=function(U){var D=U.percent;return(0,S.jsx)(h.Z,{style:{display:"flex",justifyContent:"center"},type:"circle",percent:D})},V=function(U){g.current?g.current.update({title:"".concat(y).concat(U>=100?"\u6210\u529F":"\u4E2D..."),content:(0,S.jsx)(H,{percent:U})}):g.current=Z.Z.info({width:600,maskClosable:!1,title:"".concat(y).concat(U>=100?"\u6210\u529F":"\u4E2D..."),centered:!0,content:(0,S.jsx)(H,{percent:U})})};return V}},17322:function($,B,e){"use strict";e.r(B);var h=e(54306),Z=e.n(h),x=e(63313),W=e.n(x),S=e(92260),A=e(9835),y=e(22159),g=e(24378),H=e(67393),V=e(83535),L=e(57679),U=e(95176),D=e(5558),P=e(87075),w=e(48039),oe=e.n(w),G=e(91796),K=e(3513),N=e(59953),re=e(59151),T=e(3057),a=e(11527),m=S.Z.Title,E=S.Z.Link,R=function(s){var n=s.user,d=s.userChange,r=(0,x.useState)(!1),i=Z()(r,2),f=i[0],_=i[1],M=(0,x.useState)(),C=Z()(M,2),t=C[0],o=C[1],u=(0,x.useState)(!1),p=Z()(u,2),O=p[0],j=p[1],c=(0,x.useState)(),F=Z()(c,2),Y=F[0],X=F[1],z=(0,x.useState)(),te=Z()(z,2),se=te[0],ee=te[1],J=(0,x.useState)(),ie=Z()(J,2),ue=ie[0],ce=ie[1],le=function(v){U.W.put("".concat(D.Z.apiPrefix,"user"),{username:v.username,password:v.password}).then(function(b){var ae=b.code,ve=b.data;ae===200&&(localStorage.removeItem(D.Z.authKey),P.history.push("/login"))}).catch(function(b){console.log(b)})},de=function(){t?Q():(he(),j(!0))},Q=function(){U.W.put("".concat(D.Z.apiPrefix,"user/two-factor/deactive")).then(function(v){var b=v.code,ae=v.data;b===200&&ae&&(o(!1),d())}).catch(function(v){console.log(v)})},fe=function(){_(!0),U.W.put("".concat(D.Z.apiPrefix,"user/two-factor/active"),{code:se}).then(function(v){var b=v.code,ae=v.data;b===200&&(ae?(A.ZP.success("\u6FC0\u6D3B\u6210\u529F"),j(!1),o(!0),d()):A.ZP.success("\u9A8C\u8BC1\u5931\u8D25"))}).catch(function(v){console.log(v)}).finally(function(){return _(!1)})},he=function(){U.W.get("".concat(D.Z.apiPrefix,"user/two-factor/init")).then(function(v){var b=v.code,ae=v.data;b===200&&X(ae)}).catch(function(v){console.log(v)})},Ee=function(v){v.file&&v.file.response&&(ce("/api/static/".concat(v.file.response.data)),d())};return(0,x.useEffect)(function(){o(n&&n.twoFactorActivated),ce(n.avatar&&"/api/static/".concat(n.avatar))},[n]),O?(0,a.jsx)(a.Fragment,{children:Y?(0,a.jsxs)("div",{children:[(0,a.jsx)(m,{level:5,children:"\u7B2C\u4E00\u6B65"}),"\u4E0B\u8F7D\u4E24\u6B65\u9A8C\u8BC1\u624B\u673A\u5E94\u7528\uFF0C\u6BD4\u5982 Google Authenticator \u3001",(0,a.jsx)(E,{href:"https://www.microsoft.com/en-us/security/mobile-authenticator-app",target:"_blank",children:"Microsoft Authenticator"}),"\u3001",(0,a.jsx)(E,{href:"https://authy.com/download/",target:"_blank",children:"Authy"}),"\u3001",(0,a.jsx)(E,{href:"https://support.1password.com/one-time-passwords/",target:"_blank",children:"1Password"}),"\u3001",(0,a.jsx)(E,{href:"https://support.logmeininc.com/lastpass/help/lastpass-authenticator-lp030014",target:"_blank",children:"LastPass Authenticator"}),(0,a.jsx)(m,{style:{marginTop:5},level:5,children:"\u7B2C\u4E8C\u6B65"}),"\u4F7F\u7528\u624B\u673A\u5E94\u7528\u626B\u63CF\u4E8C\u7EF4\u7801\uFF0C\u6216\u8005\u8F93\u5165\u79D8\u94A5 ",Y==null?void 0:Y.secret,(0,a.jsx)("div",{style:{marginTop:10},children:(0,a.jsx)(oe(),{style:{border:"1px solid #21262d",borderRadius:6},includeMargin:!0,size:187,value:Y==null?void 0:Y.url})}),(0,a.jsx)(m,{style:{marginTop:5},level:5,children:"\u7B2C\u4E09\u6B65"}),"\u8F93\u5165\u624B\u673A\u5E94\u7528\u4E0A\u76846\u4F4D\u6570\u5B57",(0,a.jsx)(y.Z,{style:{margin:"10px 0 10px 0",display:"block",maxWidth:200},value:se,onChange:function(v){return ee(v.target.value)},placeholder:"123456"}),(0,a.jsx)(g.Z,{type:"primary",loading:f,onClick:fe,children:"\u5B8C\u6210\u8BBE\u7F6E"})]}):(0,a.jsx)(G.Z,{})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{style:{fontSize:18,borderBottom:"1px solid #f0f0f0",marginBottom:8,paddingBottom:4},children:"\u4FEE\u6539\u7528\u6237\u540D\u5BC6\u7801"}),(0,a.jsxs)(H.Z,{onFinish:le,layout:"vertical",children:[(0,a.jsx)(H.Z.Item,{label:"\u7528\u6237\u540D",name:"username",rules:[{required:!0}],hasFeedback:!0,style:{maxWidth:300},children:(0,a.jsx)(y.Z,{placeholder:"\u7528\u6237\u540D"})}),(0,a.jsx)(H.Z.Item,{label:"\u5BC6\u7801",name:"password",rules:[{required:!0},{pattern:/^(?!admin$).*$/,message:"\u5BC6\u7801\u4E0D\u80FD\u4E3Aadmin"}],hasFeedback:!0,style:{maxWidth:300},children:(0,a.jsx)(y.Z,{type:"password",placeholder:"\u5BC6\u7801"})}),(0,a.jsx)(g.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})]}),(0,a.jsx)("div",{style:{fontSize:18,borderBottom:"1px solid #f0f0f0",marginBottom:8,paddingBottom:4,marginTop:16},children:"\u4E24\u6B65\u9A8C\u8BC1"}),(0,a.jsx)(g.Z,{type:"primary",danger:t,onClick:de,children:t?"\u7981\u7528":"\u542F\u7528"}),(0,a.jsx)("div",{style:{fontSize:18,borderBottom:"1px solid #f0f0f0",marginBottom:8,paddingBottom:4,marginTop:16},children:"\u5934\u50CF"}),(0,a.jsx)(V.C,{size:128,shape:"square",icon:(0,a.jsx)(K.Z,{}),src:ue}),(0,a.jsx)(re.Z,{rotationSlider:!0,children:(0,a.jsx)(L.Z,{method:"put",showUploadList:!1,maxCount:1,action:"/api/user/avatar",onChange:Ee,name:"avatar",headers:{Authorization:"Bearer ".concat(localStorage.getItem(D.Z.authKey))},children:(0,a.jsx)(g.Z,{icon:(0,a.jsx)(N.Z,{}),style:{marginLeft:8},children:"\u66F4\u6362\u5934\u50CF"})})})]})};B.default=R},56508:function(){"use strict"},51704:function($,B,e){"use strict";e.d(B,{Z:function(){return re}});var h=e(87807),Z=e(60795),x=e(17079),W=e(5132),S=e(84875),A=e.n(S),y=e(92976),g=e(63313),H=e(82259),V=e(31124),L=e(1570),U=function(T,a){var m={};for(var E in T)Object.prototype.hasOwnProperty.call(T,E)&&a.indexOf(E)<0&&(m[E]=T[E]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,E=Object.getOwnPropertySymbols(T);R<E.length;R++)a.indexOf(E[R])<0&&Object.prototype.propertyIsEnumerable.call(T,E[R])&&(m[E[R]]=T[E[R]]);return m},D=function(a){var m,E=a.prefixCls,R=a.className,l=a.checked,s=a.onChange,n=a.onClick,d=U(a,["prefixCls","className","checked","onChange","onClick"]),r=g.useContext(H.E_),i=r.getPrefixCls,f=function(t){s==null||s(!l),n==null||n(t)},_=i("tag",E),M=A()(_,(m={},(0,h.Z)(m,"".concat(_,"-checkable"),!0),(0,h.Z)(m,"".concat(_,"-checkable-checked"),l),m),R);return g.createElement("span",(0,Z.Z)({},d,{className:M,onClick:f}))},P=D,w=function(T,a){var m={};for(var E in T)Object.prototype.hasOwnProperty.call(T,E)&&a.indexOf(E)<0&&(m[E]=T[E]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,E=Object.getOwnPropertySymbols(T);R<E.length;R++)a.indexOf(E[R])<0&&Object.prototype.propertyIsEnumerable.call(T,E[R])&&(m[E[R]]=T[E[R]]);return m},oe=new RegExp("^(".concat(V.Y.join("|"),")(-inverse)?$")),G=new RegExp("^(".concat(V.E.join("|"),")$")),K=function(a,m){var E,R=a.prefixCls,l=a.className,s=a.style,n=a.children,d=a.icon,r=a.color,i=a.onClose,f=a.closeIcon,_=a.closable,M=_===void 0?!1:_,C=w(a,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),t=g.useContext(H.E_),o=t.getPrefixCls,u=t.direction,p=g.useState(!0),O=(0,x.Z)(p,2),j=O[0],c=O[1];g.useEffect(function(){"visible"in C&&c(C.visible)},[C.visible]);var F=function(){return r?oe.test(r)||G.test(r):!1},Y=(0,Z.Z)({backgroundColor:r&&!F()?r:void 0},s),X=F(),z=o("tag",R),te=A()(z,(E={},(0,h.Z)(E,"".concat(z,"-").concat(r),X),(0,h.Z)(E,"".concat(z,"-has-color"),r&&!X),(0,h.Z)(E,"".concat(z,"-hidden"),!j),(0,h.Z)(E,"".concat(z,"-rtl"),u==="rtl"),E),l),se=function(Q){Q.stopPropagation(),i==null||i(Q),!Q.defaultPrevented&&("visible"in C||c(!1))},ee=function(){return M?f?g.createElement("span",{className:"".concat(z,"-close-icon"),onClick:se},f):g.createElement(W.Z,{className:"".concat(z,"-close-icon"),onClick:se}):null},J="onClick"in C||n&&n.type==="a",ie=(0,y.Z)(C,["visible"]),ue=d||null,ce=ue?g.createElement(g.Fragment,null,ue,g.createElement("span",null,n)):n,le=g.createElement("span",(0,Z.Z)({},ie,{ref:m,className:te,style:Y}),ce,ee());return J?g.createElement(L.Z,null,le):le},N=g.forwardRef(K);N.CheckableTag=P;var re=N},52053:function($){(function(B,e){$.exports=e()})(this,function(){"use strict";var B=1e3,e=6e4,h=36e5,Z="millisecond",x="second",W="minute",S="hour",A="day",y="week",g="month",H="quarter",V="year",L="date",U="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var s=["th","st","nd","rd"],n=l%100;return"["+l+(s[(n-20)%10]||s[n]||s[0])+"]"}},oe=function(l,s,n){var d=String(l);return!d||d.length>=s?l:""+Array(s+1-d.length).join(n)+l},G={s:oe,z:function(l){var s=-l.utcOffset(),n=Math.abs(s),d=Math.floor(n/60),r=n%60;return(s<=0?"+":"-")+oe(d,2,"0")+":"+oe(r,2,"0")},m:function l(s,n){if(s.date()<n.date())return-l(n,s);var d=12*(n.year()-s.year())+(n.month()-s.month()),r=s.clone().add(d,g),i=n-r<0,f=s.clone().add(d+(i?-1:1),g);return+(-(d+(n-r)/(i?r-f:f-r))||0)},a:function(l){return l<0?Math.ceil(l)||0:Math.floor(l)},p:function(l){return{M:g,y:V,w:y,d:A,D:L,h:S,m:W,s:x,ms:Z,Q:H}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},K="en",N={};N[K]=w;var re=function(l){return l instanceof E},T=function l(s,n,d){var r;if(!s)return K;if(typeof s=="string"){var i=s.toLowerCase();N[i]&&(r=i),n&&(N[i]=n,r=i);var f=s.split("-");if(!r&&f.length>1)return l(f[0])}else{var _=s.name;N[_]=s,r=_}return!d&&r&&(K=r),r||!d&&K},a=function(l,s){if(re(l))return l.clone();var n=typeof s=="object"?s:{};return n.date=l,n.args=arguments,new E(n)},m=G;m.l=T,m.i=re,m.w=function(l,s){return a(l,{locale:s.$L,utc:s.$u,x:s.$x,$offset:s.$offset})};var E=function(){function l(n){this.$L=T(n.locale,null,!0),this.parse(n)}var s=l.prototype;return s.parse=function(n){this.$d=function(d){var r=d.date,i=d.utc;if(r===null)return new Date(NaN);if(m.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var f=r.match(D);if(f){var _=f[2]-1||0,M=(f[7]||"0").substring(0,3);return i?new Date(Date.UTC(f[1],_,f[3]||1,f[4]||0,f[5]||0,f[6]||0,M)):new Date(f[1],_,f[3]||1,f[4]||0,f[5]||0,f[6]||0,M)}}return new Date(r)}(n),this.$x=n.x||{},this.init()},s.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},s.$utils=function(){return m},s.isValid=function(){return this.$d.toString()!==U},s.isSame=function(n,d){var r=a(n);return this.startOf(d)<=r&&r<=this.endOf(d)},s.isAfter=function(n,d){return a(n)<this.startOf(d)},s.isBefore=function(n,d){return this.endOf(d)<a(n)},s.$g=function(n,d,r){return m.u(n)?this[d]:this.set(r,n)},s.unix=function(){return Math.floor(this.valueOf()/1e3)},s.valueOf=function(){return this.$d.getTime()},s.startOf=function(n,d){var r=this,i=!!m.u(d)||d,f=m.p(n),_=function(j,c){var F=m.w(r.$u?Date.UTC(r.$y,c,j):new Date(r.$y,c,j),r);return i?F:F.endOf(A)},M=function(j,c){return m.w(r.toDate()[j].apply(r.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(c)),r)},C=this.$W,t=this.$M,o=this.$D,u="set"+(this.$u?"UTC":"");switch(f){case V:return i?_(1,0):_(31,11);case g:return i?_(1,t):_(0,t+1);case y:var p=this.$locale().weekStart||0,O=(C<p?C+7:C)-p;return _(i?o-O:o+(6-O),t);case A:case L:return M(u+"Hours",0);case S:return M(u+"Minutes",1);case W:return M(u+"Seconds",2);case x:return M(u+"Milliseconds",3);default:return this.clone()}},s.endOf=function(n){return this.startOf(n,!1)},s.$set=function(n,d){var r,i=m.p(n),f="set"+(this.$u?"UTC":""),_=(r={},r[A]=f+"Date",r[L]=f+"Date",r[g]=f+"Month",r[V]=f+"FullYear",r[S]=f+"Hours",r[W]=f+"Minutes",r[x]=f+"Seconds",r[Z]=f+"Milliseconds",r)[i],M=i===A?this.$D+(d-this.$W):d;if(i===g||i===V){var C=this.clone().set(L,1);C.$d[_](M),C.init(),this.$d=C.set(L,Math.min(this.$D,C.daysInMonth())).$d}else _&&this.$d[_](M);return this.init(),this},s.set=function(n,d){return this.clone().$set(n,d)},s.get=function(n){return this[m.p(n)]()},s.add=function(n,d){var r,i=this;n=Number(n);var f=m.p(d),_=function(t){var o=a(i);return m.w(o.date(o.date()+Math.round(t*n)),i)};if(f===g)return this.set(g,this.$M+n);if(f===V)return this.set(V,this.$y+n);if(f===A)return _(1);if(f===y)return _(7);var M=(r={},r[W]=e,r[S]=h,r[x]=B,r)[f]||1,C=this.$d.getTime()+n*M;return m.w(C,this)},s.subtract=function(n,d){return this.add(-1*n,d)},s.format=function(n){var d=this,r=this.$locale();if(!this.isValid())return r.invalidDate||U;var i=n||"YYYY-MM-DDTHH:mm:ssZ",f=m.z(this),_=this.$H,M=this.$m,C=this.$M,t=r.weekdays,o=r.months,u=function(c,F,Y,X){return c&&(c[F]||c(d,i))||Y[F].slice(0,X)},p=function(c){return m.s(_%12||12,c,"0")},O=r.meridiem||function(c,F,Y){var X=c<12?"AM":"PM";return Y?X.toLowerCase():X},j={YY:String(this.$y).slice(-2),YYYY:m.s(this.$y,4,"0"),M:C+1,MM:m.s(C+1,2,"0"),MMM:u(r.monthsShort,C,o,3),MMMM:u(o,C),D:this.$D,DD:m.s(this.$D,2,"0"),d:String(this.$W),dd:u(r.weekdaysMin,this.$W,t,2),ddd:u(r.weekdaysShort,this.$W,t,3),dddd:t[this.$W],H:String(_),HH:m.s(_,2,"0"),h:p(1),hh:p(2),a:O(_,M,!0),A:O(_,M,!1),m:String(M),mm:m.s(M,2,"0"),s:String(this.$s),ss:m.s(this.$s,2,"0"),SSS:m.s(this.$ms,3,"0"),Z:f};return i.replace(P,function(c,F){return F||j[c]||f.replace(":","")})},s.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},s.diff=function(n,d,r){var i,f=m.p(d),_=a(n),M=(_.utcOffset()-this.utcOffset())*e,C=this-_,t=m.m(this,_);return t=(i={},i[V]=t/12,i[g]=t,i[H]=t/3,i[y]=(C-M)/6048e5,i[A]=(C-M)/864e5,i[S]=C/h,i[W]=C/e,i[x]=C/B,i)[f]||C,r?t:m.a(t)},s.daysInMonth=function(){return this.endOf(g).$D},s.$locale=function(){return N[this.$L]},s.locale=function(n,d){if(!n)return this.$L;var r=this.clone(),i=T(n,d,!0);return i&&(r.$L=i),r},s.clone=function(){return m.w(this.$d,this)},s.toDate=function(){return new Date(this.valueOf())},s.toJSON=function(){return this.isValid()?this.toISOString():null},s.toISOString=function(){return this.$d.toISOString()},s.toString=function(){return this.$d.toUTCString()},l}(),R=E.prototype;return a.prototype=R,[["$ms",Z],["$s",x],["$m",W],["$H",S],["$W",A],["$M",g],["$y",V],["$D",L]].forEach(function(l){R[l[1]]=function(s){return this.$g(s,l[0],l[1])}}),a.extend=function(l,s){return l.$i||(l(s,E,a),l.$i=!0),a},a.locale=T,a.isDayjs=re,a.unix=function(l){return a(1e3*l)},a.en=N[K],a.Ls=N,a.p={},a})},30006:function($,B,e){var h=e(25705);function Z(x){if(Array.isArray(x))return h(x)}$.exports=Z,$.exports.__esModule=!0,$.exports.default=$.exports},16660:function($){function B(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}$.exports=B,$.exports.__esModule=!0,$.exports.default=$.exports},95848:function($){function B(){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.`)}$.exports=B,$.exports.__esModule=!0,$.exports.default=$.exports},93525:function($,B,e){var h=e(30006),Z=e(16660),x=e(41442),W=e(95848);function S(A){return h(A)||Z(A)||x(A)||W()}$.exports=S,$.exports.__esModule=!0,$.exports.default=$.exports}}]);
@@ -1,18 +0,0 @@
1
- "use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[5722],{5132:function(T,v,e){e.d(v,{Z:function(){return i}});var l=e(14797),a=e(63313),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},h=s,d=e(46420),n=function(m,u){return a.createElement(d.Z,(0,l.Z)((0,l.Z)({},m),{},{ref:u,icon:h}))};n.displayName="CloseOutlined";var i=a.forwardRef(n)},23980:function(T,v,e){e.r(v);var l=e(63313),a=e.n(l),s=e(92260),h=e(51704),d=e(60986),n=e(11527),i=s.Z.Text,o=s.Z.Link,m=function(r){return r[r.\u6210\u529F=0]="\u6210\u529F",r[r.\u5931\u8D25=1]="\u5931\u8D25",r}(m||{}),u=function(r){return r[r.success=0]="success",r[r.error=1]="error",r}(u||{}),p=[{title:"\u5E8F\u53F7",width:50,render:function(I,g,D){return D+1}},{title:"\u767B\u5F55\u65F6\u95F4",dataIndex:"timestamp",key:"timestamp",render:function(I,g){return new Date(g.timestamp).toLocaleString()}},{title:"\u767B\u5F55\u5730\u5740",dataIndex:"address",key:"address"},{title:"\u767B\u5F55IP",dataIndex:"ip",key:"ip"},{title:"\u767B\u5F55\u8BBE\u5907",dataIndex:"platform",key:"platform",width:80},{title:"\u767B\u5F55\u72B6\u6001",dataIndex:"status",key:"status",width:80,render:function(I,g){return(0,n.jsx)(h.Z,{color:u[g.status],style:{marginRight:0},children:m[g.status]})}}],S=function(I){var g=I.data;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(d.Z,{columns:p,pagination:!1,dataSource:g,rowKey:"id",size:"middle",scroll:{x:768},sticky:!0})})};v.default=S},68098:function(T,v,e){e.d(v,{fk:function(){return h},jD:function(){return a}});var l=e(65021),a=function(){return(0,l.Z)()&&window.document.documentElement},s,h=function(){if(!a())return!1;if(s!==void 0)return s;var n=document.createElement("div");return n.style.display="flex",n.style.flexDirection="column",n.style.rowGap="1px",n.appendChild(document.createElement("div")),n.appendChild(document.createElement("div")),document.body.appendChild(n),s=n.scrollHeight===1,document.body.removeChild(n),s}},51704:function(T,v,e){e.d(v,{Z:function(){return z}});var l=e(87807),a=e(60795),s=e(17079),h=e(5132),d=e(84875),n=e.n(d),i=e(92976),o=e(63313),m=e(82259),u=e(31124),p=e(1570),S=function(f,c){var C={};for(var t in f)Object.prototype.hasOwnProperty.call(f,t)&&c.indexOf(t)<0&&(C[t]=f[t]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,t=Object.getOwnPropertySymbols(f);E<t.length;E++)c.indexOf(t[E])<0&&Object.prototype.propertyIsEnumerable.call(f,t[E])&&(C[t[E]]=f[t[E]]);return C},r=function(c){var C,t=c.prefixCls,E=c.className,A=c.checked,x=c.onChange,N=c.onClick,L=S(c,["prefixCls","className","checked","onChange","onClick"]),O=o.useContext(m.E_),U=O.getPrefixCls,R=function(_){x==null||x(!A),N==null||N(_)},y=U("tag",t),b=n()(y,(C={},(0,l.Z)(C,"".concat(y,"-checkable"),!0),(0,l.Z)(C,"".concat(y,"-checkable-checked"),A),C),E);return o.createElement("span",(0,a.Z)({},L,{className:b,onClick:R}))},I=r,g=function(f,c){var C={};for(var t in f)Object.prototype.hasOwnProperty.call(f,t)&&c.indexOf(t)<0&&(C[t]=f[t]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,t=Object.getOwnPropertySymbols(f);E<t.length;E++)c.indexOf(t[E])<0&&Object.prototype.propertyIsEnumerable.call(f,t[E])&&(C[t[E]]=f[t[E]]);return C},D=new RegExp("^(".concat(u.Y.join("|"),")(-inverse)?$")),Q=new RegExp("^(".concat(u.E.join("|"),")$")),V=function(c,C){var t,E=c.prefixCls,A=c.className,x=c.style,N=c.children,L=c.icon,O=c.color,U=c.onClose,R=c.closeIcon,y=c.closable,b=y===void 0?!1:y,M=g(c,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),_=o.useContext(m.E_),Y=_.getPrefixCls,$=_.direction,X=o.useState(!0),w=(0,s.Z)(X,2),J=w[0],Z=w[1];o.useEffect(function(){"visible"in M&&Z(M.visible)},[M.visible]);var W=function(){return O?D.test(O)||Q.test(O):!1},q=(0,a.Z)({backgroundColor:O&&!W()?O:void 0},x),H=W(),P=Y("tag",E),ee=n()(P,(t={},(0,l.Z)(t,"".concat(P,"-").concat(O),H),(0,l.Z)(t,"".concat(P,"-has-color"),O&&!H),(0,l.Z)(t,"".concat(P,"-hidden"),!J),(0,l.Z)(t,"".concat(P,"-rtl"),$==="rtl"),t),A),k=function(K){K.stopPropagation(),U==null||U(K),!K.defaultPrevented&&("visible"in M||Z(!1))},ne=function(){return b?R?o.createElement("span",{className:"".concat(P,"-close-icon"),onClick:k},R):o.createElement(h.Z,{className:"".concat(P,"-close-icon"),onClick:k}):null},te="onClick"in M||N&&N.type==="a",ae=(0,i.Z)(M,["visible"]),B=L||null,oe=B?o.createElement(o.Fragment,null,B,o.createElement("span",null,N)):N,G=o.createElement("span",(0,a.Z)({},ae,{ref:C,className:ee,style:q}),oe,ne());return te?o.createElement(p.Z,null,G):G},F=o.forwardRef(V);F.CheckableTag=I;var z=F},25641:function(T,v){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 s=a.keyCode;if(a.altKey&&!a.ctrlKey||a.metaKey||s>=e.F1&&s<=e.F12)return!1;switch(s){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}}};v.Z=e},7941:function(T,v,e){e.d(v,{Z:function(){return a},o:function(){return h}});var l;function a(d){if(typeof document=="undefined")return 0;if(d||l===void 0){var n=document.createElement("div");n.style.width="100%",n.style.height="200px";var i=document.createElement("div"),o=i.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",i.appendChild(n),document.body.appendChild(i);var m=n.offsetWidth;i.style.overflow="scroll";var u=n.offsetWidth;m===u&&(u=i.clientWidth),document.body.removeChild(i),l=m-u}return l}function s(d){var n=d.match(/^(.*)px$/),i=Number(n==null?void 0:n[1]);return Number.isNaN(i)?a():i}function h(d){if(typeof document=="undefined"||!d||!(d instanceof Element))return{width:0,height:0};var n=getComputedStyle(d,"::-webkit-scrollbar"),i=n.width,o=n.height;return{width:s(i),height:s(o)}}},43595:function(T,v,e){e.d(v,{Z:function(){return o}});var l=e(14797),a=`accept acceptCharset accessKey action allowFullScreen allowTransparency
2
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
3
- charSet checked classID className colSpan cols content contentEditable contextMenu
4
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
5
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
6
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
7
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
8
- mediaGroup method min minLength multiple muted name noValidate nonce open
9
- optimum pattern placeholder poster preload radioGroup readOnly rel required
10
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
11
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
12
- summary tabIndex target title type useMap value width wmode wrap`,s=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
13
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
14
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
15
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
16
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
17
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
18
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,h="".concat(a," ").concat(s).split(/[\s\n]+/),d="aria-",n="data-";function i(m,u){return m.indexOf(u)===0}function o(m){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p;u===!1?p={aria:!0,data:!0,attr:!0}:u===!0?p={aria:!0}:p=(0,l.Z)({},u);var S={};return Object.keys(m).forEach(function(r){(p.aria&&(r==="role"||i(r,d))||p.data&&i(r,n)||p.attr&&h.includes(r))&&(S[r]=m[r])}),S}}}]);