@whyour/qinglong 0.3.2 → 0.4.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 (173) hide show
  1. package/README-en.md +47 -88
  2. package/README.md +48 -87
  3. package/package.json +5 -1
  4. package/sample/notify.js +19 -9
  5. package/sample/notify.py +89 -47
  6. package/shell/api.sh +15 -15
  7. package/shell/otask.sh +1 -1
  8. package/shell/update.sh +12 -13
  9. package/static/build/api/system.js +1 -2
  10. package/static/build/api/user.js +5 -1
  11. package/static/build/config/serverEnv.js +1 -1
  12. package/static/build/data/dependence.js +1 -1
  13. package/static/build/data/notify.js +2 -0
  14. package/static/build/data/open.js +1 -8
  15. package/static/build/loaders/express.js +1 -9
  16. package/static/build/loaders/initFile.js +24 -6
  17. package/static/build/loaders/sentry.js +7 -1
  18. package/static/build/schedule/addCron.js +2 -2
  19. package/static/build/schedule/health.js +2 -2
  20. package/static/build/services/cron.js +50 -44
  21. package/static/build/services/dependence.js +82 -79
  22. package/static/build/services/env.js +1 -1
  23. package/static/build/services/notify.js +5 -5
  24. package/static/build/services/open.js +1 -1
  25. package/static/build/services/schedule.js +42 -40
  26. package/static/build/services/subscription.js +7 -13
  27. package/static/build/services/system.js +2 -2
  28. package/static/build/shared/pLimit.js +16 -0
  29. package/static/build/shared/runCron.js +29 -0
  30. package/static/dist/{1571.a97c18af.async.js → 1571.68121491.async.js} +3 -3
  31. package/static/dist/{9371.27629d57.async.js → 1654.e06fbac5.async.js} +1 -1
  32. package/static/dist/2260.d9fbd460.async.js +1 -0
  33. package/static/dist/2536.a60b8e3c.async.js +1 -0
  34. package/static/dist/{2618.2d258f44.async.js → 2618.1484edc2.async.js} +2 -2
  35. package/static/dist/2715.80e099e1.async.js +1 -0
  36. package/static/dist/{3490.8aaeafbb.async.js → 3490.8d2d9399.async.js} +1 -1
  37. package/static/dist/3639.58c3a3f1.async.js +5 -0
  38. package/static/dist/3800.5488ae14.async.js +2 -0
  39. package/static/dist/3820.faa46a6a.async.js +1 -0
  40. package/static/dist/4124.8cba8410.async.js +1 -0
  41. package/static/dist/4163.a1d279c3.async.js +1 -0
  42. package/static/dist/4346.5ab6fdc1.async.js +1 -0
  43. package/static/dist/{4378.70f18b85.async.js → 4378.70083a42.async.js} +2 -2
  44. package/static/dist/4491.96ee9a9f.async.js +4 -0
  45. package/static/dist/4804.183d71af.async.js +27 -0
  46. package/static/dist/4925.eca85085.async.js +1 -0
  47. package/static/dist/5008.c612bbdb.async.js +11 -0
  48. package/static/dist/5035.2489750b.async.js +67 -0
  49. package/static/dist/5310.6c4eff46.async.js +1 -0
  50. package/static/dist/5484.826c5ee3.async.js +1 -0
  51. package/static/dist/5969.87aeb075.async.js +1 -0
  52. package/static/dist/6304.51c52839.async.js +1 -0
  53. package/static/dist/6433.69941426.async.js +22 -0
  54. package/static/dist/6661.5cda5ce0.async.js +1 -0
  55. package/static/dist/6805.798ec30a.async.js +1 -0
  56. package/static/dist/{412.7e4d2d42.async.js → 7382.305c10b2.async.js} +2 -2
  57. package/static/dist/{7393.b7603b10.async.js → 7393.d9ed4b3a.async.js} +1 -1
  58. package/static/dist/7567.a224d0a6.async.js +5 -0
  59. package/static/dist/{7742.eec663d7.async.js → 7742.dd8a0112.async.js} +2 -2
  60. package/static/dist/8037.386b415d.async.js +1 -0
  61. package/static/dist/8297.e6ac1ce9.async.js +1 -0
  62. package/static/dist/8432.5bbc2cdd.async.js +1 -0
  63. package/static/dist/858.d51fc4e2.async.js +1 -0
  64. package/static/dist/8612.84caf0a5.async.js +1 -0
  65. package/static/dist/{8966.d92806db.async.js → 8657.805a96f7.async.js} +2 -2
  66. package/static/dist/8844.8525fd2e.async.js +81 -0
  67. package/static/dist/9065.6684b5d0.async.js +1 -0
  68. package/static/dist/921.198cefa6.async.js +6 -0
  69. package/static/dist/{9504.06cb7ea5.async.js → 9504.6d4e29e7.async.js} +1 -1
  70. package/static/dist/9673.18a70227.async.js +3 -0
  71. package/static/dist/986.ab6a48a4.async.js +1 -0
  72. package/static/dist/index.html +1 -1
  73. package/static/dist/layouts__index.285d8505.chunk.css +1 -0
  74. package/static/dist/layouts__index.3db43e0b.async.js +1 -0
  75. package/static/dist/src__pages__404.8794c158.async.js +1 -0
  76. package/static/dist/{src__pages__config__index.b5bde963.async.js → src__pages__config__index.7fb61af5.async.js} +3 -3
  77. package/static/dist/{src__pages__crontab__index.be4295e5.async.js → src__pages__crontab__index.5cfa7d5b.async.js} +2 -2
  78. package/static/dist/src__pages__crontab__logModal.44ad577c.async.js +2 -0
  79. package/static/dist/src__pages__crontab__modal.6d17fdcf.async.js +5 -0
  80. package/static/dist/src__pages__crontab__viewCreateModal.3db14204.async.js +4 -0
  81. package/static/dist/src__pages__crontab__viewManageModal.9f899650.async.js +4 -0
  82. package/static/dist/src__pages__dependence__index.3b140a79.async.js +2 -0
  83. package/static/dist/src__pages__dependence__logModal.e49658d5.async.js +4 -0
  84. package/static/dist/src__pages__dependence__modal.94ff002a.async.js +5 -0
  85. package/static/dist/{src__pages__diff__index.200be0dc.async.js → src__pages__diff__index.240e4991.async.js} +3 -3
  86. package/static/dist/{src__pages__env__editNameModal.9898b16a.async.js → src__pages__env__editNameModal.047bb3ba.async.js} +2 -2
  87. package/static/dist/src__pages__env__index.48602d18.async.js +2 -0
  88. package/static/dist/src__pages__env__modal.8b48ffa4.async.js +5 -0
  89. package/static/dist/src__pages__error__index.c0477141.async.js +4 -0
  90. package/static/dist/{src__pages__initialization__index.bcf87634.chunk.css → src__pages__initialization__index.66819338.chunk.css} +1 -1
  91. package/static/dist/src__pages__initialization__index.978a7f09.async.js +21 -0
  92. package/static/dist/src__pages__log__index.ae245070.async.js +1 -0
  93. package/static/dist/src__pages__login__index.8eb4df8e.async.js +2 -0
  94. package/static/dist/{src__pages__script__editModal.9a8934a1.async.js → src__pages__script__editModal.02b12902.async.js} +2 -2
  95. package/static/dist/{src__pages__script__editNameModal.42003a2f.async.js → src__pages__script__editNameModal.2773cb7b.async.js} +2 -2
  96. package/static/dist/{src__pages__script__index.670d9577.async.js → src__pages__script__index.679510cd.async.js} +3 -3
  97. package/static/dist/{src__pages__script__renameModal.3b9285b0.async.js → src__pages__script__renameModal.ea3b6689.async.js} +2 -2
  98. package/static/dist/{src__pages__script__saveModal.475c369d.async.js → src__pages__script__saveModal.312a0beb.async.js} +2 -2
  99. package/static/dist/{src__pages__script__setting.d41d33ae.async.js → src__pages__script__setting.11abc6ae.async.js} +2 -2
  100. package/static/dist/src__pages__setting__about.1460b7fa.async.js +1 -0
  101. package/static/dist/{src__pages__setting__appModal.4edca962.async.js → src__pages__setting__appModal.74267529.async.js} +2 -2
  102. package/static/dist/src__pages__setting__checkUpdate.ce2e30bb.async.js +4 -0
  103. package/static/dist/src__pages__setting__index.9fcd6dc2.async.js +2 -0
  104. package/static/dist/src__pages__setting__loginLog.0708083b.async.js +18 -0
  105. package/static/dist/src__pages__setting__notification.15a286d0.async.js +21 -0
  106. package/static/dist/src__pages__setting__other.00a69cf4.async.js +1 -0
  107. package/static/dist/src__pages__setting__security.62b6b562.async.js +4 -0
  108. package/static/dist/src__pages__subscription__index.708b6c8f.async.js +2 -0
  109. package/static/dist/src__pages__subscription__logModal.3a1a8e58.async.js +2 -0
  110. package/static/dist/src__pages__subscription__modal.c034f25a.async.js +4 -0
  111. package/static/dist/umi.cb44a99a.js +11 -0
  112. package/version.yaml +10 -5
  113. package/static/dist/1655.37556417.async.js +0 -4
  114. package/static/dist/1766.e0c12c07.async.js +0 -27
  115. package/static/dist/2260.04ae2823.async.js +0 -1
  116. package/static/dist/2715.30714799.async.js +0 -1
  117. package/static/dist/3639.62e1ddf6.async.js +0 -5
  118. package/static/dist/3820.ad340d47.async.js +0 -1
  119. package/static/dist/4011.3a02258a.async.js +0 -22
  120. package/static/dist/4124.6a5a1531.async.js +0 -1
  121. package/static/dist/4163.5180a456.async.js +0 -1
  122. package/static/dist/4180.e830b6e6.async.js +0 -2
  123. package/static/dist/4925.4425d963.async.js +0 -1
  124. package/static/dist/5008.8fcc2d24.async.js +0 -11
  125. package/static/dist/5310.9c3e0c09.async.js +0 -1
  126. package/static/dist/5319.dd84246e.async.js +0 -1
  127. package/static/dist/5484.ac83d6b4.async.js +0 -1
  128. package/static/dist/5544.6baaab99.async.js +0 -81
  129. package/static/dist/6304.613145ef.async.js +0 -1
  130. package/static/dist/6661.f5843bf4.async.js +0 -1
  131. package/static/dist/6794.4c503d6d.async.js +0 -5
  132. package/static/dist/6805.f5be6007.async.js +0 -1
  133. package/static/dist/7461.ed40fa5f.async.js +0 -1
  134. package/static/dist/7466.15597d4f.async.js +0 -1
  135. package/static/dist/7938.4e3377e7.async.js +0 -67
  136. package/static/dist/8037.61d0095e.async.js +0 -1
  137. package/static/dist/8297.3d6c376d.async.js +0 -1
  138. package/static/dist/8352.e0fbb494.async.js +0 -1
  139. package/static/dist/8432.30267db1.async.js +0 -1
  140. package/static/dist/8447.d0f63993.async.js +0 -1
  141. package/static/dist/9065.0806f3e5.async.js +0 -1
  142. package/static/dist/9280.aacaa172.async.js +0 -6
  143. package/static/dist/9673.a1545ea3.async.js +0 -3
  144. package/static/dist/986.c108246f.async.js +0 -1
  145. package/static/dist/layouts__index.3de47467.chunk.css +0 -1
  146. package/static/dist/layouts__index.a6451a2c.async.js +0 -1
  147. package/static/dist/src__pages__404.b5140a4b.async.js +0 -1
  148. package/static/dist/src__pages__crontab__logModal.0f6a4945.async.js +0 -2
  149. package/static/dist/src__pages__crontab__modal.cb176c70.async.js +0 -5
  150. package/static/dist/src__pages__crontab__viewCreateModal.f2b8a69a.async.js +0 -4
  151. package/static/dist/src__pages__crontab__viewManageModal.b86bbb79.async.js +0 -4
  152. package/static/dist/src__pages__dependence__index.c17201d7.async.js +0 -2
  153. package/static/dist/src__pages__dependence__logModal.42c56e18.async.js +0 -4
  154. package/static/dist/src__pages__dependence__modal.58620a62.async.js +0 -5
  155. package/static/dist/src__pages__env__index.c79218f4.async.js +0 -2
  156. package/static/dist/src__pages__env__modal.07f411f1.async.js +0 -5
  157. package/static/dist/src__pages__error__index.2f9d7c50.async.js +0 -4
  158. package/static/dist/src__pages__initialization__index.af82f7e1.async.js +0 -21
  159. package/static/dist/src__pages__log__index.5e63a6b7.async.js +0 -1
  160. package/static/dist/src__pages__login__index.44d624a7.async.js +0 -2
  161. package/static/dist/src__pages__setting__about.7ca2707b.async.js +0 -1
  162. package/static/dist/src__pages__setting__checkUpdate.dd497877.async.js +0 -4
  163. package/static/dist/src__pages__setting__index.4a85066e.async.js +0 -2
  164. package/static/dist/src__pages__setting__loginLog.c8ddd712.async.js +0 -18
  165. package/static/dist/src__pages__setting__notification.e124b7ae.async.js +0 -21
  166. package/static/dist/src__pages__setting__other.a58b5fae.async.js +0 -1
  167. package/static/dist/src__pages__setting__security.aabc2d21.async.js +0 -4
  168. package/static/dist/src__pages__subscription__index.04531731.async.js +0 -2
  169. package/static/dist/src__pages__subscription__logModal.b86a5c9b.async.js +0 -2
  170. package/static/dist/src__pages__subscription__modal.ea198f81.async.js +0 -4
  171. package/static/dist/umi.29bfaff2.js +0 -11
  172. /package/static/dist/{8352.d2d0a2c7.chunk.css → 8612.d2d0a2c7.chunk.css} +0 -0
  173. /package/static/dist/{7394.59dcf306.chunk.css → 9439.59dcf306.chunk.css} +0 -0
@@ -0,0 +1,4 @@
1
+ (self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[4453],{75909:function(x,O,e){"use strict";var r=e(14797),m=e(87807),p=e(16803),d=e(63313),P=e.n(d),l=e(84875),a=e.n(l),A=e(12888),b=e(57439),y=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],f=d.forwardRef(function(g,i){var E=g.className,W=g.component,C=g.viewBox,v=g.spin,M=g.rotate,o=g.tabIndex,_=g.onClick,s=g.children,u=(0,p.Z)(g,y);(0,b.Kp)(!!(W||s),"Should have `component` prop or `children`."),(0,b.C3)();var n=d.useContext(A.Z),t=n.prefixCls,c=t===void 0?"anticon":t,Z=n.rootClassName,T=a()(Z,c,E),$=a()((0,m.Z)({},"".concat(c,"-spin"),!!v)),ee=M?{msTransform:"rotate(".concat(M,"deg)"),transform:"rotate(".concat(M,"deg)")}:void 0,k=(0,r.Z)((0,r.Z)({},b.vD),{},{className:$,style:ee,viewBox:C});C||delete k.viewBox;var X=function(){return W?d.createElement(W,(0,r.Z)({},k),s):s?((0,b.Kp)(!!C||d.Children.count(s)===1&&d.isValidElement(s)&&d.Children.only(s).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),d.createElement("svg",(0,r.Z)((0,r.Z)({},k),{},{viewBox:C}),s)):null},D=o;return D===void 0&&_&&(D=-1),d.createElement("span",(0,r.Z)((0,r.Z)({role:"img"},u),{},{ref:i,tabIndex:D,onClick:_,className:T}),X())});f.displayName="AntdIcon",O.Z=f},55258:function(x,O,e){"use strict";e.d(O,{Z:function(){return y}});var r=e(14797),m=e(16803),p=e(63313),d=e.n(p),P=e(75909),l=["type","children"],a=new Set;function A(f){return!!(typeof f=="string"&&f.length&&!a.has(f))}function b(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=f[g];if(A(i)){var E=document.createElement("script");E.setAttribute("src",i),E.setAttribute("data-namespace",i),f.length>g+1&&(E.onload=function(){b(f,g+1)},E.onerror=function(){b(f,g+1)}),a.add(i),document.body.appendChild(E)}}function y(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=f.scriptUrl,i=f.extraCommonProps,E=i===void 0?{}:i;g&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(g)?b(g.reverse()):b([g]));var W=p.forwardRef(function(C,v){var M=C.type,o=C.children,_=(0,m.Z)(C,l),s=null;return C.type&&(s=p.createElement("use",{xlinkHref:"#".concat(M)})),o&&(s=o),p.createElement(P.Z,(0,r.Z)((0,r.Z)((0,r.Z)({},E),_),{},{ref:v}),s)});return W.displayName="Iconfont",W}},32320:function(x,O,e){"use strict";e.d(O,{Z:function(){return a}});var r=e(14797),m=e(63313),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},d=p,P=e(46420),l=function(b,y){return m.createElement(P.Z,(0,r.Z)((0,r.Z)({},b),{},{ref:y,icon:d}))};l.displayName="MinusCircleOutlined";var a=m.forwardRef(l)},26839:function(x,O,e){"use strict";e.d(O,{Z:function(){return a}});var r=e(14797),m=e(63313),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},d=p,P=e(46420),l=function(b,y){return m.createElement(P.Z,(0,r.Z)((0,r.Z)({},b),{},{ref:y,icon:d}))};l.displayName="PlusOutlined";var a=m.forwardRef(l)},44639:function(x,O,e){"use strict";var r=e(55258),m=(0,r.Z)({scriptUrl:["//at.alicdn.com/t/c/font_3354854_ob5y15ewlyq.js"]});O.Z=m},77853:function(x,O,e){"use strict";e.r(O);var r=e(12342),m=e.n(r),p=e(25359),d=e.n(p),P=e(57213),l=e.n(P),a=e(49811),A=e.n(a),b=e(54306),y=e.n(b),f=e(63313),g=e.n(f),i=e(67393),E=e(28756),W=e(84163),C=e(22159),v=e(24378),M=e(2947),o=e(35911),_=e(90717),s=e(32320),u=e(26839),n=e(44639),t=e(11527),c=["key","name"],Z=["key","name"],T=[{name:"\u547D\u4EE4",value:"command"},{name:"\u540D\u79F0",value:"name"},{name:"\u5B9A\u65F6\u89C4\u5219",value:"schedule"},{name:"\u72B6\u6001",value:"status"},{name:"\u6807\u7B7E",value:"labels"}],$={Reg:"",NotReg:"",In:"select",Nin:"select"},ee=[{name:"\u5305\u542B",value:"Reg"},{name:"\u4E0D\u5305\u542B",value:"NotReg"},{name:"\u5C5E\u4E8E",value:"In",type:"select"},{name:"\u4E0D\u5C5E\u4E8E",value:"Nin",type:"select"}],k=[{name:"\u987A\u5E8F",value:"ASC"},{name:"\u5012\u5E8F",value:"DESC"}],X={status:[{name:"\u8FD0\u884C\u4E2D",value:0},{name:"\u7A7A\u95F2\u4E2D",value:1},{name:"\u5DF2\u7981\u7528",value:2}]},D;(function(oe){oe.and="\u4E14",oe.or="\u6216"})(D||(D={}));var ae=function(te){var N=te.view,le=te.handleCancel,se=te.visible,q=i.Z.useForm(),ue=y()(q,1),Q=ue[0],ne=(0,f.useState)(!1),K=y()(ne,2),G=K[0],re=K[1],V=(0,f.useState)("and"),de=y()(V,2),L=de[0],_e=de[1],F=i.Z.useWatch("filters",Q),ce=function(){var I=A()(d()().mark(function h(B){var S,H,U,J;return d()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return re(!0),B.filterRelation=L,S=N?"put":"post",R.prev=3,R.next=6,o.W[S]("".concat(_.Z.apiPrefix,"crons/views"),{data:N?l()(l()({},B),{},{id:N.id}):B});case 6:H=R.sent,U=H.code,J=H.data,U===200&&le(J),re(!1),R.next=16;break;case 13:R.prev=13,R.t0=R.catch(3),re(!1);case 16:case"end":return R.stop()}},h,null,[[3,13]])}));return function(B){return I.apply(this,arguments)}}();(0,f.useEffect)(function(){N||Q.resetFields(),Q.setFieldsValue(N||{filters:[{property:"command",operation:"Reg"}]})},[N,se]);var w=(0,t.jsx)(E.Z,{style:{width:80},children:ee.map(function(I){return(0,t.jsx)(E.Z.Option,{value:I.value,children:I.name},I.name)})}),Y=function(h){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,t.jsx)(E.Z,{style:B,children:h.map(function(S){return(0,t.jsx)(E.Z.Option,{value:S.value,children:S.name},S.name)})})},z=(0,t.jsx)(E.Z,{style:{width:80},children:k.map(function(I){return(0,t.jsx)(E.Z.Option,{value:I.value,children:I.name},I.name)})}),ie=function(h){var B;return(0,t.jsx)(E.Z,{mode:"tags",allowClear:!0,placeholder:"\u8F93\u5165\u540E\u56DE\u8F66\u589E\u52A0\u81EA\u5B9A\u4E49\u9009\u9879",children:(B=X[h])===null||B===void 0?void 0:B.map(function(S){return(0,t.jsx)(E.Z.Option,{value:S.value,children:S.name},S.name)})})};return(0,t.jsx)(W.Z,{title:N?"\u7F16\u8F91\u89C6\u56FE":"\u65B0\u5EFA\u89C6\u56FE",open:se,forceRender:!0,width:580,centered:!0,maskClosable:!1,onOk:function(){Q.validateFields().then(function(h){ce(h)}).catch(function(h){console.log("Validate Failed:",h)})},onCancel:function(){return le()},confirmLoading:G,children:(0,t.jsxs)(i.Z,{form:Q,layout:"vertical",name:"env_modal",children:[(0,t.jsx)(i.Z.Item,{name:"name",label:"\u89C6\u56FE\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u89C6\u56FE\u540D\u79F0"}],children:(0,t.jsx)(C.Z,{placeholder:"\u8BF7\u8F93\u5165\u89C6\u56FE\u540D\u79F0"})}),(0,t.jsx)(i.Z.List,{name:"filters",children:function(h,B){var S=B.add,H=B.remove;return(0,t.jsxs)("div",{style:{position:"relative"},className:"view-filters-container ".concat(h.length>1?"active":""),children:[h.length>1&&(0,t.jsx)("div",{style:{position:"absolute",width:50,borderRadius:10,border:"1px solid rgb(190, 220, 255)",borderRight:"none",height:56*(h.length-1),top:46,left:15},children:(0,t.jsx)(v.Z,{type:"primary",size:"small",style:{position:"absolute",top:"50%",translate:"-50% -50%",padding:"0 3px",cursor:"pointer"},onClick:function(){_e(L==="and"?"or":"and")},children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:D[L]}),(0,t.jsx)(n.Z,{type:"ql-icon-d-caret"})]})})}),(0,t.jsxs)("div",{children:[h.map(function(U){var J=U.key,j=U.name,R=m()(U,c);return(0,t.jsx)(i.Z.Item,{label:j===0?"\u7B5B\u9009\u6761\u4EF6":"",style:{marginBottom:0},required:!0,className:"filter-item",children:(0,t.jsxs)(M.Z,{className:"view-create-modal-filters",align:"baseline",children:[(0,t.jsx)(i.Z.Item,l()(l()({},R),{},{name:[j,"property"],rules:[{required:!0}],children:Y(T,{width:90})})),(0,t.jsx)(i.Z.Item,l()(l()({},R),{},{name:[j,"operation"],rules:[{required:!0}],children:w})),(0,t.jsx)(i.Z.Item,l()(l()({},R),{},{name:[j,"value"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}],children:$[F==null?void 0:F[j].operation]==="select"?ie(F==null?void 0:F[j].property):(0,t.jsx)(C.Z,{placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"})})),j!==0&&(0,t.jsx)(s.Z,{onClick:function(){return H(j)}})]})},J)}),(0,t.jsx)(i.Z.Item,{children:(0,t.jsxs)("a",{onClick:function(){return S({property:"command",operation:"Reg"})},children:[(0,t.jsx)(u.Z,{}),"\u65B0\u589E\u7B5B\u9009\u6761\u4EF6"]})})]})]})}}),(0,t.jsx)(i.Z.List,{name:"sorts",children:function(h,B){var S=B.add,H=B.remove;return(0,t.jsxs)("div",{style:{position:"relative"},className:"view-filters-container ".concat(h.length>1?"active":""),children:[h.length>1&&(0,t.jsx)("div",{style:{position:"absolute",width:50,borderRadius:10,border:"1px solid rgb(190, 220, 255)",borderRight:"none",height:56*(h.length-1),top:46,left:15},children:(0,t.jsx)(v.Z,{type:"primary",size:"small",style:{position:"absolute",top:"50%",translate:"-50% -50%",padding:"0 3px",cursor:"pointer"},children:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("span",{children:D[L]})})})}),(0,t.jsxs)("div",{children:[h.map(function(U){var J=U.key,j=U.name,R=m()(U,Z);return(0,t.jsx)(i.Z.Item,{label:j===0?"\u6392\u5E8F\u65B9\u5F0F":"",style:{marginBottom:0},className:"filter-item",children:(0,t.jsxs)(M.Z,{className:"view-create-modal-sorts",align:"baseline",children:[(0,t.jsx)(i.Z.Item,l()(l()({},R),{},{name:[j,"property"],rules:[{required:!0}],children:Y(T)})),(0,t.jsx)(i.Z.Item,l()(l()({},R),{},{name:[j,"type"],rules:[{required:!0}],children:z})),(0,t.jsx)(s.Z,{onClick:function(){return H(j)}})]})},J)}),(0,t.jsx)(i.Z.Item,{children:(0,t.jsxs)("a",{onClick:function(){return S({property:"command",type:"ASC"})},children:[(0,t.jsx)(u.Z,{}),"\u65B0\u589E\u6392\u5E8F\u65B9\u5F0F"]})})]})]})}})]})})};O.default=ae},90717:function(x,O){"use strict";var e=window.__ENV__QlBaseUrl||"/";O.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
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"]}},35911:function(x,O,e){"use strict";e.d(O,{W:function(){return W}});var r=e(25359),m=e.n(r),p=e(49811),d=e.n(p),P=e(57213),l=e.n(P),a=e(50659),A=e(9835),b=e(90717),y=e(40440);A.ZP.config({duration:2});var f=Date.now(),g=function(v){if(v.response){var M=v.data?v.data.message||v.message||v.data:v.response.statusText,o=v.response.status;[502,504].includes(o)?y.history.push("/error"):o===401?y.history.location.pathname!=="/login"&&(A.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(b.Z.authKey),y.history.push("/login")):A.ZP.error({content:M,style:{maxWidth:500,margin:"0 auto"}})}else console.log(v.message);throw v},i=(0,a.l7)({timeout:6e4,params:{t:f},errorHandler:g}),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(C,v){var M=localStorage.getItem(b.Z.authKey);if(M&&!E.includes(C)){var o={Authorization:"Bearer ".concat(M)};return{url:C,options:l()(l()({},v),{},{headers:o})}}return{url:C,options:v}}),i.interceptors.response.use(function(){var C=d()(m()().mark(function v(M){var o,_,s;return m()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(o=M.status,![502,504].includes(o)){n.next=5;break}y.history.push("/error"),n.next=14;break;case 5:if(o!==401){n.next=9;break}y.history.location.pathname!=="/login"&&(localStorage.removeItem(b.Z.authKey),y.history.push("/login")),n.next=14;break;case 9:return n.next=11,M.clone().json();case 11:return _=n.sent,_.code!==200&&(s=_.message||_.data,s&&A.ZP.error({content:s,style:{maxWidth:500,margin:"0 auto"}})),n.abrupt("return",_);case 14:return n.abrupt("return",M);case 15:case"end":return n.stop()}},v)}));return function(v){return C.apply(this,arguments)}}());var W=i},28756:function(x,O,e){"use strict";var r=e(87807),m=e(60795),p=e(84875),d=e.n(p),P=e(40804),l=e(92976),a=e(63313),A=e.n(a),b=e(82259),y=e(23474),f=e(7893),g=e(65189),i=e(76737),E=e(16082),W=e(1020),C=e(91967),v=e(60934),M=function(u,n){var t={};for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&n.indexOf(c)<0&&(t[c]=u[c]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,c=Object.getOwnPropertySymbols(u);Z<c.length;Z++)n.indexOf(c[Z])<0&&Object.prototype.propertyIsEnumerable.call(u,c[Z])&&(t[c[Z]]=u[c[Z]]);return t},o="SECRET_COMBOBOX_MODE_DO_NOT_USE",_=function(n,t){var c,Z=n.prefixCls,T=n.bordered,$=T===void 0?!0:T,ee=n.className,k=n.getPopupContainer,X=n.dropdownClassName,D=n.popupClassName,ae=n.listHeight,oe=ae===void 0?256:ae,te=n.placement,N=n.listItemHeight,le=N===void 0?24:N,se=n.size,q=n.disabled,ue=n.notFoundContent,Q=n.status,ne=n.showArrow,K=M(n,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),G=a.useContext(b.E_),re=G.getPopupContainer,V=G.getPrefixCls,de=G.renderEmpty,L=G.direction,_e=G.virtual,F=G.dropdownMatchSelectWidth,ce=a.useContext(g.Z),w=V("select",Z),Y=V(),z=(0,v.ri)(w,L),ie=z.compactSize,I=z.compactItemClassnames,h=a.useMemo(function(){var ve=K.mode;if(ve!=="combobox")return ve===o?"combobox":ve},[K.mode]),B=h==="multiple"||h==="tags",S=ne!==void 0?ne:K.loading||!(B||h==="combobox"),H=(0,a.useContext)(i.aM),U=H.status,J=H.hasFeedback,j=H.isFormItemInput,R=H.feedbackIcon,ge=(0,W.F)(U,Q),me;ue!==void 0?me=ue:h==="combobox"?me=null:me=(de||y.Z)("Select");var pe=(0,C.Z)((0,m.Z)((0,m.Z)({},K),{multiple:B,hasFeedback:J,feedbackIcon:R,showArrow:S,prefixCls:w})),fe=pe.suffixIcon,Ee=pe.itemIcon,Pe=pe.removeIcon,Oe=pe.clearIcon,be=(0,l.Z)(K,["suffixIcon","itemIcon"]),Ce=d()(D||X,(0,r.Z)({},"".concat(w,"-dropdown-").concat(L),L==="rtl")),he=ie||se||ce,ye=a.useContext(f.Z),Me=q!=null?q:ye,xe=d()((c={},(0,r.Z)(c,"".concat(w,"-lg"),he==="large"),(0,r.Z)(c,"".concat(w,"-sm"),he==="small"),(0,r.Z)(c,"".concat(w,"-rtl"),L==="rtl"),(0,r.Z)(c,"".concat(w,"-borderless"),!$),(0,r.Z)(c,"".concat(w,"-in-form-item"),j),c),(0,W.Z)(w,ge,J),I,ee),De=function(){return te!==void 0?te:L==="rtl"?"bottomRight":"bottomLeft"};return a.createElement(P.ZP,(0,m.Z)({ref:t,virtual:_e,dropdownMatchSelectWidth:F},be,{transitionName:(0,E.mL)(Y,(0,E.q0)(te),K.transitionName),listHeight:oe,listItemHeight:le,mode:h,prefixCls:w,placement:De(),direction:L,inputIcon:fe,menuItemSelectedIcon:Ee,removeIcon:Pe,clearIcon:Oe,notFoundContent:me,className:xe,getPopupContainer:k||re,dropdownClassName:Ce,showArrow:J||ne,disabled:Me}))},s=a.forwardRef(_);s.SECRET_COMBOBOX_MODE_DO_NOT_USE=o,s.Option=P.Wx,s.OptGroup=P.Xo,O.Z=s},2947:function(x,O,e){"use strict";e.d(O,{u:function(){return i},Z:function(){return M}});var r=e(60795),m=e(87807),p=e(17079),d=e(84875),P=e.n(d),l=e(52604),a=e(63313),A=e(82259),b=e(52105);function y(o){var _=o.className,s=o.direction,u=o.index,n=o.marginDirection,t=o.children,c=o.split,Z=o.wrap,T=a.useContext(i),$=T.horizontalSize,ee=T.verticalSize,k=T.latestIndex,X=T.supportFlexGap,D={};return X||(s==="vertical"?u<k&&(D={marginBottom:$/(c?2:1)}):D=(0,r.Z)((0,r.Z)({},u<k&&(0,m.Z)({},n,$/(c?2:1))),Z&&{paddingBottom:ee})),t==null?null:a.createElement(a.Fragment,null,a.createElement("div",{className:_,style:D},t),u<k&&c&&a.createElement("span",{className:"".concat(_,"-split"),style:D},c))}var f=e(60934),g=function(o,_){var s={};for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&_.indexOf(u)<0&&(s[u]=o[u]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,u=Object.getOwnPropertySymbols(o);n<u.length;n++)_.indexOf(u[n])<0&&Object.prototype.propertyIsEnumerable.call(o,u[n])&&(s[u[n]]=o[u[n]]);return s},i=a.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),E={small:8,middle:16,large:24};function W(o){return typeof o=="string"?E[o]:o||0}var C=function(_){var s,u=a.useContext(A.E_),n=u.getPrefixCls,t=u.space,c=u.direction,Z=_.size,T=Z===void 0?(t==null?void 0:t.size)||"small":Z,$=_.align,ee=_.className,k=_.children,X=_.direction,D=X===void 0?"horizontal":X,ae=_.prefixCls,oe=_.split,te=_.style,N=_.wrap,le=N===void 0?!1:N,se=g(_,["size","align","className","children","direction","prefixCls","split","style","wrap"]),q=(0,b.Z)(),ue=a.useMemo(function(){return(Array.isArray(T)?T:[T,T]).map(function(z){return W(z)})},[T]),Q=(0,p.Z)(ue,2),ne=Q[0],K=Q[1],G=(0,l.Z)(k,{keepEmpty:!0}),re=$===void 0&&D==="horizontal"?"center":$,V=n("space",ae),de=P()(V,"".concat(V,"-").concat(D),(s={},(0,m.Z)(s,"".concat(V,"-rtl"),c==="rtl"),(0,m.Z)(s,"".concat(V,"-align-").concat(re),re),s),ee),L="".concat(V,"-item"),_e=c==="rtl"?"marginLeft":"marginRight",F=0,ce=G.map(function(z,ie){z!=null&&(F=ie);var I=z&&z.key||"".concat(L,"-").concat(ie);return a.createElement(y,{className:L,key:I,direction:D,index:ie,marginDirection:_e,split:oe,wrap:le},z)}),w=a.useMemo(function(){return{horizontalSize:ne,verticalSize:K,latestIndex:F,supportFlexGap:q}},[ne,K,F,q]);if(G.length===0)return null;var Y={};return le&&(Y.flexWrap="wrap",q||(Y.marginBottom=-K)),q&&(Y.columnGap=ne,Y.rowGap=K),a.createElement("div",(0,r.Z)({className:de,style:(0,r.Z)((0,r.Z)({},Y),te)},se),a.createElement(i.Provider,{value:w},ce))},v=C;v.Compact=f.ZP;var M=v},57002:function(){},12342:function(x,O,e){var r=e(20006);function m(p,d){if(p==null)return{};var P=r(p,d),l,a;if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(p);for(a=0;a<A.length;a++)l=A[a],!(d.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(p,l)&&(P[l]=p[l])}return P}x.exports=m,x.exports.__esModule=!0,x.exports.default=x.exports},20006:function(x){function O(e,r){if(e==null)return{};var m={},p=Object.keys(e),d,P;for(P=0;P<p.length;P++)d=p[P],!(r.indexOf(d)>=0)&&(m[d]=e[d]);return m}x.exports=O,x.exports.__esModule=!0,x.exports.default=x.exports}}]);
@@ -0,0 +1,4 @@
1
+ (self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[349],{75909:function(I,b,e){"use strict";var n=e(14797),i=e(87807),f=e(16803),d=e(63313),E=e.n(d),v=e(84875),C=e.n(v),r=e(12888),s=e(57439),c=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],m=d.forwardRef(function(l,P){var O=l.className,x=l.component,p=l.viewBox,u=l.spin,h=l.rotate,y=l.tabIndex,t=l.onClick,o=l.children,g=(0,f.Z)(l,c);(0,s.Kp)(!!(x||o),"Should have `component` prop or `children`."),(0,s.C3)();var a=d.useContext(r.Z),_=a.prefixCls,k=_===void 0?"anticon":_,Z=a.rootClassName,R=C()(Z,k,O),T=C()((0,i.Z)({},"".concat(k,"-spin"),!!u)),S=h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0,B=(0,n.Z)((0,n.Z)({},s.vD),{},{className:T,style:S,viewBox:p});p||delete B.viewBox;var W=function(){return x?d.createElement(x,(0,n.Z)({},B),o):o?((0,s.Kp)(!!p||d.Children.count(o)===1&&d.isValidElement(o)&&d.Children.only(o).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),d.createElement("svg",(0,n.Z)((0,n.Z)({},B),{},{viewBox:p}),o)):null},M=y;return M===void 0&&t&&(M=-1),d.createElement("span",(0,n.Z)((0,n.Z)({role:"img"},g),{},{ref:P,tabIndex:M,onClick:t,className:R}),W())});m.displayName="AntdIcon",b.Z=m},55258:function(I,b,e){"use strict";e.d(b,{Z:function(){return c}});var n=e(14797),i=e(16803),f=e(63313),d=e.n(f),E=e(75909),v=["type","children"],C=new Set;function r(m){return!!(typeof m=="string"&&m.length&&!C.has(m))}function s(m){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=m[l];if(r(P)){var O=document.createElement("script");O.setAttribute("src",P),O.setAttribute("data-namespace",P),m.length>l+1&&(O.onload=function(){s(m,l+1)},O.onerror=function(){s(m,l+1)}),C.add(P),document.body.appendChild(O)}}function c(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=m.scriptUrl,P=m.extraCommonProps,O=P===void 0?{}:P;l&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(l)?s(l.reverse()):s([l]));var x=f.forwardRef(function(p,u){var h=p.type,y=p.children,t=(0,i.Z)(p,v),o=null;return p.type&&(o=f.createElement("use",{xlinkHref:"#".concat(h)})),y&&(o=y),f.createElement(E.Z,(0,n.Z)((0,n.Z)((0,n.Z)({},O),t),{},{ref:u}),o)});return x.displayName="Iconfont",x}},13740:function(I,b,e){"use strict";e.d(b,{Z:function(){return C}});var n=e(14797),i=e(63313),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},d=f,E=e(46420),v=function(s,c){return i.createElement(E.Z,(0,n.Z)((0,n.Z)({},s),{},{ref:c,icon:d}))};v.displayName="DeleteOutlined";var C=i.forwardRef(v)},32320:function(I,b,e){"use strict";e.d(b,{Z:function(){return C}});var n=e(14797),i=e(63313),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},d=f,E=e(46420),v=function(s,c){return i.createElement(E.Z,(0,n.Z)((0,n.Z)({},s),{},{ref:c,icon:d}))};v.displayName="MinusCircleOutlined";var C=i.forwardRef(v)},26839:function(I,b,e){"use strict";e.d(b,{Z:function(){return C}});var n=e(14797),i=e(63313),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},d=f,E=e(46420),v=function(s,c){return i.createElement(E.Z,(0,n.Z)((0,n.Z)({},s),{},{ref:c,icon:d}))};v.displayName="PlusOutlined";var C=i.forwardRef(v)},90717:function(I,b){"use strict";var e=window.__ENV__QlBaseUrl||"/";b.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
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"]}},35911:function(I,b,e){"use strict";e.d(b,{W:function(){return x}});var n=e(25359),i=e.n(n),f=e(49811),d=e.n(f),E=e(57213),v=e.n(E),C=e(50659),r=e(9835),s=e(90717),c=e(40440);r.ZP.config({duration:2});var m=Date.now(),l=function(u){if(u.response){var h=u.data?u.data.message||u.message||u.data:u.response.statusText,y=u.response.status;[502,504].includes(y)?c.history.push("/error"):y===401?c.history.location.pathname!=="/login"&&(r.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(s.Z.authKey),c.history.push("/login")):r.ZP.error({content:h,style:{maxWidth:500,margin:"0 auto"}})}else console.log(u.message);throw u},P=(0,C.l7)({timeout:6e4,params:{t:m},errorHandler:l}),O=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];P.interceptors.request.use(function(p,u){var h=localStorage.getItem(s.Z.authKey);if(h&&!O.includes(p)){var y={Authorization:"Bearer ".concat(h)};return{url:p,options:v()(v()({},u),{},{headers:y})}}return{url:p,options:u}}),P.interceptors.response.use(function(){var p=d()(i()().mark(function u(h){var y,t,o;return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(y=h.status,![502,504].includes(y)){a.next=5;break}c.history.push("/error"),a.next=14;break;case 5:if(y!==401){a.next=9;break}c.history.location.pathname!=="/login"&&(localStorage.removeItem(s.Z.authKey),c.history.push("/login")),a.next=14;break;case 9:return a.next=11,h.clone().json();case 11:return t=a.sent,t.code!==200&&(o=t.message||t.data,o&&r.ZP.error({content:o,style:{maxWidth:500,margin:"0 auto"}})),a.abrupt("return",t);case 14:return a.abrupt("return",h);case 15:case"end":return a.stop()}},u)}));return function(u){return p.apply(this,arguments)}}());var x=P},16861:function(I,b,e){"use strict";e.d(b,{Z:function(){return y}});var n=e(60795),i=e(87807),f=e(24090),d=e(84875),E=e.n(d),v=e(17079),C=e(16803),r=e(63313),s=e(26230),c=e(25641),m=r.forwardRef(function(t,o){var g,a=t.prefixCls,_=a===void 0?"rc-switch":a,k=t.className,Z=t.checked,R=t.defaultChecked,T=t.disabled,S=t.loadingIcon,B=t.checkedChildren,W=t.unCheckedChildren,M=t.onClick,A=t.onChange,U=t.onKeyDown,H=(0,C.Z)(t,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),w=(0,s.Z)(!1,{value:Z,defaultValue:R}),N=(0,v.Z)(w,2),K=N[0],z=N[1];function j(D,q){var L=K;return T||(L=D,z(L),A==null||A(L,q)),L}function X(D){D.which===c.Z.LEFT?j(!1,D):D.which===c.Z.RIGHT&&j(!0,D),U==null||U(D)}function G(D){var q=j(!K,D);M==null||M(q,D)}var $=E()(_,k,(g={},(0,i.Z)(g,"".concat(_,"-checked"),K),(0,i.Z)(g,"".concat(_,"-disabled"),T),g));return r.createElement("button",Object.assign({},H,{type:"button",role:"switch","aria-checked":K,disabled:T,className:$,ref:o,onKeyDown:X,onClick:G}),S,r.createElement("span",{className:"".concat(_,"-inner")},K?B:W))});m.displayName="Switch";var l=m,P=e(82259),O=e(7893),x=e(65189),p=e(1570),u=function(t,o){var g={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&o.indexOf(a)<0&&(g[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,a=Object.getOwnPropertySymbols(t);_<a.length;_++)o.indexOf(a[_])<0&&Object.prototype.propertyIsEnumerable.call(t,a[_])&&(g[a[_]]=t[a[_]]);return g},h=r.forwardRef(function(t,o){var g,a=t.prefixCls,_=t.size,k=t.disabled,Z=t.loading,R=t.className,T=R===void 0?"":R,S=u(t,["prefixCls","size","disabled","loading","className"]),B=r.useContext(P.E_),W=B.getPrefixCls,M=B.direction,A=r.useContext(x.Z),U=r.useContext(O.Z),H=(k!=null?k:U)||Z,w=W("switch",a),N=r.createElement("div",{className:"".concat(w,"-handle")},Z&&r.createElement(f.Z,{className:"".concat(w,"-loading-icon")})),K=E()((g={},(0,i.Z)(g,"".concat(w,"-small"),(_||A)==="small"),(0,i.Z)(g,"".concat(w,"-loading"),Z),(0,i.Z)(g,"".concat(w,"-rtl"),M==="rtl"),g),T);return r.createElement(p.Z,{insertExtraNode:!0},r.createElement(l,(0,n.Z)({},S,{prefixCls:w,className:K,disabled:H,ref:o,loadingIcon:N})))});h.__ANT_SWITCH=!0;var y=h},57002:function(){}}]);
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[9914],{20209:function(ae,D,e){e.d(D,{Z:function(){return l}});var p=e(14797),i=e(63313),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},m=f,Z=e(46420),s=function(C,M){return i.createElement(Z.Z,(0,p.Z)((0,p.Z)({},C),{},{ref:M,icon:m}))};s.displayName="ClockCircleOutlined";var l=i.forwardRef(s)},13740:function(ae,D,e){e.d(D,{Z:function(){return l}});var p=e(14797),i=e(63313),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},m=f,Z=e(46420),s=function(C,M){return i.createElement(Z.Z,(0,p.Z)((0,p.Z)({},C),{},{ref:M,icon:m}))};s.displayName="DeleteOutlined";var l=i.forwardRef(s)},97674:function(ae,D,e){e.d(D,{Z:function(){return l}});var p=e(14797),i=e(63313),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},m=f,Z=e(46420),s=function(C,M){return i.createElement(Z.Z,(0,p.Z)((0,p.Z)({},C),{},{ref:M,icon:m}))};s.displayName="FileTextOutlined";var l=i.forwardRef(s)},535:function(ae,D,e){var p=e(54306),i=e.n(p),f=e(63313),m=e.n(f),Z=e(61761),s=e(60001);D.Z=function(l,A){var C=(0,f.useState)(0),M=i()(C,2),k=M[0],E=M[1];return(0,Z.Z)(l,function(L){var v=L.target;v.classList.contains("ant-table-wrapper")||(v=L.target.querySelector(".ant-table-wrapper")),E((0,s.W9)({extraHeight:A,target:v}))}),k}},54141:function(ae,D,e){e.r(D),e.d(D,{default:function(){return S}});var p=e(93525),i=e.n(p),f=e(54306),m=e.n(f),Z=e(57213),s=e.n(Z),l=e(63313),A=e(92260),C=e(22159),M=e(2947),k=e(51704),E=e(15367),L=e(84163),v=e(24378),le=e(86986),Ee=e(60986),y=e(14797),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},he=u,H=e(46420),b=function(F,K){return l.createElement(H.Z,(0,y.Z)((0,y.Z)({},F),{},{ref:K,icon:he}))};b.displayName="SyncOutlined";var I=l.forwardRef(b),z=e(38101),B=e(76657),Y=e(20209),oe=e(97674),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},re=ie,Q=function(F,K){return l.createElement(H.Z,(0,y.Z)((0,y.Z)({},F),{},{ref:K,icon:re}))};Q.displayName="BugOutlined";var X=l.forwardRef(Q),ue=e(13740),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},ge=ce,N=function(F,K){return l.createElement(H.Z,(0,y.Z)((0,y.Z)({},F),{},{ref:K,icon:ge}))};N.displayName="DeleteFilled";var se=l.forwardRef(N),P=e(90717),j=e(38612),O=e(35911),V=e(91756),w=e(70011),$=e(66255),q=e(5509),ee=e(40440),G=e(535),n=e(11527),W=A.Z.Text,de=C.Z.Search,g;(function(o){o[o.\u5B89\u88C5\u4E2D=0]="\u5B89\u88C5\u4E2D",o[o.\u5DF2\u5B89\u88C5=1]="\u5DF2\u5B89\u88C5",o[o.\u5B89\u88C5\u5931\u8D25=2]="\u5B89\u88C5\u5931\u8D25",o[o.\u5220\u9664\u4E2D=3]="\u5220\u9664\u4E2D",o[o.\u5DF2\u5220\u9664=4]="\u5DF2\u5220\u9664",o[o.\u5220\u9664\u5931\u8D25=5]="\u5220\u9664\u5931\u8D25",o[o.\u961F\u5217\u4E2D=6]="\u961F\u5217\u4E2D"})(g||(g={}));var De;(function(o){o[o.processing=0]="processing",o[o.success=1]="success",o[o.error=2]="error"})(De||(De={}));var x={0:{icon:(0,n.jsx)(I,{spin:!0}),color:"processing"},1:{icon:(0,n.jsx)(z.Z,{}),color:"success"},2:{icon:(0,n.jsx)(B.Z,{}),color:"error"},3:{icon:(0,n.jsx)(I,{spin:!0}),color:"processing"},4:{icon:(0,n.jsx)(z.Z,{}),color:"success"},5:{icon:(0,n.jsx)(B.Z,{}),color:"error"},6:{icon:(0,n.jsx)(Y.Z,{}),color:"default"}},T=function(){var F=(0,ee.useOutletContext)(),K=F.headerStyle,$e=F.isPhone,fe=F.socketMessage,Ge=[{title:"\u5E8F\u53F7",width:50,render:function(t,a,r){return(0,n.jsxs)("span",{style:{cursor:"text"},children:[r+1," "]})}},{title:"\u540D\u79F0",dataIndex:"name",key:"name"},{title:"\u72B6\u6001",key:"status",dataIndex:"status",render:function(t,a,r){return(0,n.jsx)(M.Z,{size:"middle",style:{cursor:"text"},children:(0,n.jsx)(k.Z,{color:x[a.status].color,icon:x[a.status].icon,style:{marginRight:0},children:g[a.status]})})}},{title:"\u5907\u6CE8",dataIndex:"remark",key:"remark"},{title:"\u521B\u5EFA\u65F6\u95F4",key:"timestamp",dataIndex:"timestamp",render:function(t,a){var r=navigator.language||navigator.languages[0],c=a.createdAt||a.timestamp,_=new Date(c).toLocaleString(r,{hour12:!1}).replace(" 24:"," 00:");return(0,n.jsx)(E.Z,{placement:"topLeft",title:_,trigger:["hover","click"],children:(0,n.jsx)("span",{children:_})})}},{title:"\u64CD\u4F5C",key:"action",render:function(t,a,r){var c=!$e;return(0,n.jsxs)(M.Z,{size:"middle",children:[(0,n.jsx)(E.Z,{title:c?"\u65E5\u5FD7":"",children:(0,n.jsx)("a",{onClick:function(){ln(s()(s()({},a),{},{timestamp:Date.now()}))},children:(0,n.jsx)(oe.Z,{})})}),a.status!==g.\u5B89\u88C5\u4E2D&&a.status!==g.\u5220\u9664\u4E2D&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(E.Z,{title:c?"\u91CD\u65B0\u5B89\u88C5":"",children:(0,n.jsx)("a",{onClick:function(){return fn(a,r)},children:(0,n.jsx)(X,{})})}),(0,n.jsx)(E.Z,{title:c?"\u5220\u9664":"",children:(0,n.jsx)("a",{onClick:function(){return He(a,r)},children:(0,n.jsx)(ue.Z,{})})}),(0,n.jsx)(E.Z,{title:c?"\u5F3A\u5236\u5220\u9664":"",children:(0,n.jsx)("a",{onClick:function(){return He(a,r,!0)},children:(0,n.jsx)(se,{})})})]})]})}}],Je=(0,l.useState)([]),Ze=m()(Je,2),h=Ze[0],J=Ze[1],Ye=(0,l.useState)(!0),Be=m()(Ye,2),Se=Be[0],Me=Be[1],Qe=(0,l.useState)(!1),Ae=m()(Qe,2),Xe=Ae[0],ye=Ae[1],we=(0,l.useState)(),Ie=m()(we,2),qe=Ie[0],Te=Ie[1],en=(0,l.useState)([]),Fe=m()(en,2),ne=Fe[0],Ce=Fe[1],nn=(0,l.useState)(""),Re=m()(nn,2),Le=Re[0],tn=Re[1],an=(0,l.useState)(),We=m()(an,2),te=We[0],ln=We[1],on=(0,l.useState)(!1),Ke=m()(on,2),rn=Ke[0],Ue=Ke[1],un=(0,l.useState)("nodejs"),be=m()(un,2),Pe=be[0],cn=be[1],ze=(0,l.useRef)(),sn=(0,G.Z)(ze,59),je=function(){Me(!0),O.W.get("".concat(P.Z.apiPrefix,"dependencies?searchValue=").concat(Le,"&type=").concat(Pe)).then(function(t){var a=t.code,r=t.data;a===200&&J(r)}).finally(function(){return Me(!1)})},dn=function(){Te(null),ye(!0)},On=function(t,a){Te(t),ye(!0)},He=function(t,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;L.Z.confirm({title:"\u786E\u8BA4\u5220\u9664",content:(0,n.jsxs)(n.Fragment,{children:["\u786E\u8BA4\u5220\u9664\u4F9D\u8D56"," ",(0,n.jsx)(W,{style:{wordBreak:"break-all"},type:"warning",children:t.name})," ","\u5417"]}),onOk:function(){O.W.delete("".concat(P.Z.apiPrefix,"dependencies").concat(r?"/force":""),{data:[t.id]}).then(function(_){var R=_.code,ve=_.data;if(R===200&&r){var Oe=h.findIndex(function(_e){return _e.id===ve[0].id});if(Oe!==-1){var me=i()(h);me.splice(Oe,1),J(me)}}})},onCancel:function(){console.log("Cancel")}})},fn=function(t,a){L.Z.confirm({title:"\u786E\u8BA4\u91CD\u65B0\u5B89\u88C5",content:(0,n.jsxs)(n.Fragment,{children:["\u786E\u8BA4\u91CD\u65B0\u5B89\u88C5"," ",(0,n.jsx)(W,{style:{wordBreak:"break-all"},type:"warning",children:t.name})," ","\u5417"]}),onOk:function(){O.W.put("".concat(P.Z.apiPrefix,"dependencies/reinstall"),{data:[t.id]}).then(function(c){var _=c.code,R=c.data;_===200&&Ve(R[0])})},onCancel:function(){console.log("Cancel")}})},vn=function(t){ye(!1),t&&Ve(t)},Ve=function(t){var a=i()(h);if(Array.isArray(t))a.push.apply(a,i()(t));else{var r=h.findIndex(function(c){return c.id===t.id});r!==-1&&a.splice(r,1,s()({},t))}J(a)},mn=function(t){Ce(t)},_n={selectedRowKeys:ne,onChange:mn},ke=function(t){var a=t?"/force":"";L.Z.confirm({title:"\u786E\u8BA4\u5220\u9664",content:(0,n.jsx)(n.Fragment,{children:"\u786E\u8BA4\u5220\u9664\u9009\u4E2D\u7684\u4F9D\u8D56\u5417"}),onOk:function(){O.W.delete("".concat(P.Z.apiPrefix,"dependencies").concat(a),{data:ne}).then(function(c){var _=c.code,R=c.data;_===200&&(Ce([]),je())})},onCancel:function(){console.log("Cancel")}})},hn=function(){L.Z.confirm({title:"\u786E\u8BA4\u91CD\u65B0\u5B89\u88C5",content:(0,n.jsx)(n.Fragment,{children:"\u786E\u8BA4\u91CD\u65B0\u5B89\u88C5\u9009\u4E2D\u7684\u4F9D\u8D56\u5417"}),onOk:function(){O.W.put("".concat(P.Z.apiPrefix,"dependencies/reinstall"),{data:ne}).then(function(a){var r=a.code,c=a.data;r===200&&(Ce([]),je())})},onCancel:function(){console.log("Cancel")}})},gn=function(t){O.W.get("".concat(P.Z.apiPrefix,"dependencies/").concat(t.id)).then(function(a){var r=a.code,c=a.data;if(r===200){var _=h.findIndex(function(ve){return ve.id===t.id}),R=i()(h);_!==-1&&(R.splice(_,1,s()(s()({},t),c)),J(R))}}).finally(function(){return Me(!1)})},Dn=function(t){tn(t.trim())};(0,l.useEffect)(function(){je()},[Le,Pe]),(0,l.useEffect)(function(){te&&(localStorage.setItem("logDependence",te.id),Ue(!0))},[te]),(0,l.useEffect)(function(){if(fe){var d=fe.type,t=fe.message,a=fe.references;if(d==="installDependence"&&t.includes("\u5F00\u59CB\u65F6\u95F4")&&a.length>0){for(var r=i()(h),c=function(pe){var U=h.findIndex(function(xe){return xe.id===a[pe]});U!==-1&&r.splice(U,1,s()(s()({},h[U]),{},{status:t.includes("\u5B89\u88C5")?g.\u5B89\u88C5\u4E2D:g.\u5220\u9664\u4E2D}))},_=0;_<a.length;_++)c(_);J(r)}if(d==="installDependence"&&t.includes("\u7ED3\u675F\u65F6\u95F4")&&a.length>0){var R;t.includes("\u5B89\u88C5")?R=t.includes("\u6210\u529F")?g.\u5DF2\u5B89\u88C5:g.\u5B89\u88C5\u5931\u8D25:R=t.includes("\u6210\u529F")?g.\u5DF2\u5220\u9664:g.\u5220\u9664\u5931\u8D25;for(var ve=i()(h),Oe=function(pe){var U=h.findIndex(function(xe){return xe.id===a[pe]});U!==-1&&ve.splice(U,1,s()(s()({},h[U]),{},{status:R}))},me=0;me<a.length;me++)Oe(me);J(ve),R===g.\u5DF2\u5220\u9664&&setTimeout(function(){for(var _e=i()(h),pe=function(En){var Ne=h.findIndex(function(Cn){return Cn.id===a[En]});Ne!==-1&&_e.splice(Ne,1)},U=0;U<a.length;U++)pe(U);J(_e)},5e3)}}},[fe]);var pn=function(t){Ce([]),cn(t)};return(0,n.jsxs)(j.ZP,{className:"ql-container-wrapper dependence-wrapper ql-container-wrapper-has-tab",title:"\u4F9D\u8D56\u7BA1\u7406",extra:[(0,n.jsx)(de,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",style:{width:"auto"},enterButton:!0,loading:Se,onSearch:Dn}),(0,n.jsx)(v.Z,{type:"primary",onClick:function(){return dn()},children:"\u65B0\u5EFA\u4F9D\u8D56"},"2")],header:{style:K},children:[(0,n.jsx)(le.Z,{defaultActiveKey:"nodejs",size:"small",tabPosition:"top",onChange:pn,items:[{key:"nodejs",label:"NodeJs"},{key:"python3",label:"Python3"},{key:"linux",label:"Linux"}]}),(0,n.jsxs)("div",{ref:ze,children:[ne.length>0&&(0,n.jsxs)("div",{style:{marginBottom:16},children:[(0,n.jsx)(v.Z,{type:"primary",style:{marginBottom:5,marginLeft:8},onClick:function(){return hn()},children:"\u6279\u91CF\u5B89\u88C5"}),(0,n.jsx)(v.Z,{type:"primary",style:{marginBottom:5,marginLeft:8},onClick:function(){return ke(!1)},children:"\u6279\u91CF\u5220\u9664"}),(0,n.jsx)(v.Z,{type:"primary",style:{marginBottom:5,marginLeft:8},onClick:function(){return ke(!0)},children:"\u6279\u91CF\u5F3A\u5236\u5220\u9664"}),(0,n.jsxs)("span",{style:{marginLeft:8},children:["\u5DF2\u9009\u62E9",(0,n.jsx)("a",{children:ne==null?void 0:ne.length}),"\u9879"]})]}),(0,n.jsx)(w.W,{backend:$.PD,children:(0,n.jsx)(Ee.Z,{columns:Ge,rowSelection:_n,pagination:!1,dataSource:h,rowKey:"id",size:"middle",scroll:{x:768,y:sn},loading:Se})})]}),(0,n.jsx)(V.default,{visible:Xe,handleCancel:vn,dependence:qe,defaultType:Pe}),(0,n.jsx)(q.default,{visible:rn,handleCancel:function(t){if(Ue(!1),t){var a=h.findIndex(function(c){return c.id===te.id}),r=i()(h);a!==-1&&(r.splice(a,1),J(r))}else i()(h).map(function(c){return c.id}).includes(te.id)&&gn(te)},socketMessage:fe,dependence:te})]})},S=T},5509:function(ae,D,e){e.r(D);var p=e(54306),i=e.n(p),f=e(63313),m=e.n(f),Z=e(84163),s=e(24378),l=e(35911),A=e(90717),C=e(65601),M=e(38101),k=e(55974),E=e(99120),L=e.n(E),v=e(11527),le=function(y){var u=y.dependence,he=y.handleCancel,H=y.visible,b=y.socketMessage,I=(0,f.useState)(""),z=i()(I,2),B=z[0],Y=z[1],oe=(0,f.useState)(!0),ie=i()(oe,2),re=ie[0],Q=ie[1],X=(0,f.useState)(!1),ue=i()(X,2),ce=ue[0],ge=ue[1],N=(0,f.useState)(!0),se=i()(N,2),P=se[0],j=se[1],O=(0,f.useState)(!1),V=i()(O,2),w=V[0],$=V[1],q=(0,f.useState)(!1),ee=i()(q,2),G=ee[0],n=ee[1],W=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;localStorage.removeItem("logDependence"),he(S)},de=function(){return(0,v.jsxs)(v.Fragment,{children:[re&&(0,v.jsx)(C.Z,{spin:!0}),!re&&(0,v.jsx)(M.Z,{}),(0,v.jsxs)("span",{style:{marginLeft:5},children:["\u65E5\u5FD7 - ",u&&u.name]})," "]})},g=function(){j(!0),l.W.get("".concat(A.Z.apiPrefix,"dependencies/").concat(u.id)).then(function(S){var o=S.code,F=S.data;if(o===200&&localStorage.getItem("logDependence")===String(u.id)){var K=(F.log||[]).join("");Y(K),Q(!K.includes("\u7ED3\u675F\u65F6\u95F4")),$(K.includes("\u5220\u9664\u5931\u8D25"))}}).finally(function(){j(!1)})},De=function(){n(!0),l.W.delete("".concat(A.Z.apiPrefix,"dependencies/force"),{data:[u.id]}).then(function(S){var o=S.code,F=S.data;o===200&&W(!0)}).finally(function(){n(!1)})},x=function(){w?De():W()};return(0,f.useEffect)(function(){u&&g()},[u]),(0,f.useEffect)(function(){if(!(!b||!u)){var T=b.type,S=b.message,o=b.references;T==="installDependence"&&o.length>0&&o.includes(u.id)&&(S.includes("\u7ED3\u675F\u65F6\u95F4")&&(Q(!1),$(S.includes("\u5220\u9664\u5931\u8D25"))),Y("".concat(B).concat(S)))}},[b]),(0,f.useEffect)(function(){ge(document.body.clientWidth<768)},[]),(0,v.jsx)(Z.Z,{title:de(),open:H,centered:!0,className:"log-modal",bodyStyle:{overflowY:"auto",maxHeight:"calc(70vh - var(--vh-offset, 0px))",minHeight:"300px"},forceRender:!0,onOk:function(){return W()},onCancel:function(){return W()},footer:[(0,v.jsx)(s.Z,{type:"primary",onClick:x,loading:G,children:w?"\u5F3A\u5236\u5220\u9664":"\u77E5\u9053\u4E86"})],children:P?(0,v.jsx)(k.Z,{}):(0,v.jsx)("pre",{style:ce?{fontFamily:"Source Code Pro",width:375,zoom:.83}:{},children:(0,v.jsx)(L(),{children:B})})})};D.default=le},91756:function(ae,D,e){e.r(D);var p=e(25359),i=e.n(p),f=e(57213),m=e.n(f),Z=e(49811),s=e.n(Z),l=e(54306),A=e.n(l),C=e(63313),M=e.n(C),k=e(28756),E=e(67393),L=e(84163),v=e(84468),le=e(22159),Ee=e(35911),y=e(90717),u=e(11527),he=k.Z.Option,H;(function(I){I[I.nodejs=0]="nodejs",I[I.python3=1]="python3",I[I.linux=2]="linux"})(H||(H={}));var b=function(z){var B=z.dependence,Y=z.handleCancel,oe=z.visible,ie=z.defaultType,re=E.Z.useForm(),Q=A()(re,1),X=Q[0],ue=(0,C.useState)(!1),ce=A()(ue,2),ge=ce[0],N=ce[1],se=function(){var P=s()(i()().mark(function j(O){var V,w,$,q,ee,G,n,W,de,g;return i()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return N(!0),V=O.name,w=O.split,$=O.type,q=O.remark,ee=B?"put":"post",B?G=m()(m()({},O),{},{id:B.id}):w==="1"?(n=V.includes("&")?"&":`
2
+ `,G=V.split(n).map(function(T){return{name:T,type:$,remark:q}})):G=[{name:V,type:$,remark:q}],x.prev=4,x.next=7,Ee.W[ee]("".concat(y.Z.apiPrefix,"dependencies"),{data:G});case 7:W=x.sent,de=W.code,g=W.data,de===200&&Y(g),N(!1),x.next=17;break;case 14:x.prev=14,x.t0=x.catch(4),N(!1);case 17:case"end":return x.stop()}},j,null,[[4,14]])}));return function(O){return P.apply(this,arguments)}}();return(0,C.useEffect)(function(){X.resetFields()},[B,oe]),(0,u.jsx)(L.Z,{title:B?"\u7F16\u8F91\u4F9D\u8D56":"\u65B0\u5EFA\u4F9D\u8D56",open:oe,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){X.validateFields().then(function(j){se(j)}).catch(function(j){console.log("Validate Failed:",j)})},onCancel:function(){return Y()},confirmLoading:ge,children:(0,u.jsxs)(E.Z,{form:X,layout:"vertical",name:"dependence_modal",initialValues:B,children:[(0,u.jsx)(E.Z.Item,{name:"type",label:"\u4F9D\u8D56\u7C7B\u578B",initialValue:H[ie],children:(0,u.jsx)(k.Z,{children:y.Z.dependenceTypes.map(function(P,j){return(0,u.jsx)(he,{value:j,children:P},j)})})}),!B&&(0,u.jsx)(E.Z.Item,{name:"split",label:"\u81EA\u52A8\u62C6\u5206",initialValue:"0",tooltip:"\u591A\u4E2A\u4F9D\u8D56\u662F\u5426\u6362\u884C\u5206\u5272",children:(0,u.jsxs)(v.ZP.Group,{children:[(0,u.jsx)(v.ZP,{value:"1",children:"\u662F"}),(0,u.jsx)(v.ZP,{value:"0",children:"\u5426"})]})}),(0,u.jsx)(E.Z.Item,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F9D\u8D56\u540D\u79F0",whitespace:!0}],children:(0,u.jsx)(le.Z.TextArea,{rows:4,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165\u4F9D\u8D56\u540D\u79F0"})}),(0,u.jsx)(E.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,u.jsx)(le.Z,{placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"})})]})})};D.default=b}}]);
@@ -0,0 +1,4 @@
1
+ (self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[1406],{5509:function(C,g,e){"use strict";e.r(g);var y=e(54306),s=e.n(y),l=e(63313),T=e.n(l),D=e(84163),f=e(24378),E=e(35911),p=e(90717),v=e(65601),_=e(38101),k=e(55974),M=e(99120),b=e.n(M),r=e(11527),O=function(t){var a=t.dependence,i=t.handleCancel,m=t.visible,u=t.socketMessage,x=(0,l.useState)(""),n=s()(x,2),S=n[0],K=n[1],G=(0,l.useState)(!0),R=s()(G,2),W=R[0],A=R[1],Q=(0,l.useState)(!1),U=s()(Q,2),$=U[0],F=U[1],z=(0,l.useState)(!0),q=s()(z,2),N=q[0],I=q[1],V=(0,l.useState)(!1),w=s()(V,2),L=w[0],j=w[1],Y=(0,l.useState)(!1),H=s()(Y,2),J=H[0],X=H[1],P=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;localStorage.removeItem("logDependence"),i(o)},ee=function(){return(0,r.jsxs)(r.Fragment,{children:[W&&(0,r.jsx)(v.Z,{spin:!0}),!W&&(0,r.jsx)(_.Z,{}),(0,r.jsxs)("span",{style:{marginLeft:5},children:["\u65E5\u5FD7 - ",a&&a.name]})," "]})},te=function(){I(!0),E.W.get("".concat(p.Z.apiPrefix,"dependencies/").concat(a.id)).then(function(o){var h=o.code,Z=o.data;if(h===200&&localStorage.getItem("logDependence")===String(a.id)){var B=(Z.log||[]).join("");K(B),A(!B.includes("\u7ED3\u675F\u65F6\u95F4")),j(B.includes("\u5220\u9664\u5931\u8D25"))}}).finally(function(){I(!1)})},ae=function(){X(!0),E.W.delete("".concat(p.Z.apiPrefix,"dependencies/force"),{data:[a.id]}).then(function(o){var h=o.code,Z=o.data;h===200&&P(!0)}).finally(function(){X(!1)})},ne=function(){L?ae():P()};return(0,l.useEffect)(function(){a&&te()},[a]),(0,l.useEffect)(function(){if(!(!u||!a)){var d=u.type,o=u.message,h=u.references;d==="installDependence"&&h.length>0&&h.includes(a.id)&&(o.includes("\u7ED3\u675F\u65F6\u95F4")&&(A(!1),j(o.includes("\u5220\u9664\u5931\u8D25"))),K("".concat(S).concat(o)))}},[u]),(0,l.useEffect)(function(){F(document.body.clientWidth<768)},[]),(0,r.jsx)(D.Z,{title:ee(),open:m,centered:!0,className:"log-modal",bodyStyle:{overflowY:"auto",maxHeight:"calc(70vh - var(--vh-offset, 0px))",minHeight:"300px"},forceRender:!0,onOk:function(){return P()},onCancel:function(){return P()},footer:[(0,r.jsx)(f.Z,{type:"primary",onClick:ne,loading:J,children:L?"\u5F3A\u5236\u5220\u9664":"\u77E5\u9053\u4E86"})],children:N?(0,r.jsx)(k.Z,{}):(0,r.jsx)("pre",{style:$?{fontFamily:"Source Code Pro",width:375,zoom:.83}:{},children:(0,r.jsx)(b(),{children:S})})})};g.default=O},90717:function(C,g){"use strict";var e=window.__ENV__QlBaseUrl||"/";g.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
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"]}},35911:function(C,g,e){"use strict";e.d(g,{W:function(){return O}});var y=e(25359),s=e.n(y),l=e(49811),T=e.n(l),D=e(57213),f=e.n(D),E=e(50659),p=e(9835),v=e(90717),_=e(40440);p.ZP.config({duration:2});var k=Date.now(),M=function(t){if(t.response){var a=t.data?t.data.message||t.message||t.data:t.response.statusText,i=t.response.status;[502,504].includes(i)?_.history.push("/error"):i===401?_.history.location.pathname!=="/login"&&(p.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(v.Z.authKey),_.history.push("/login")):p.ZP.error({content:a,style:{maxWidth:500,margin:"0 auto"}})}else console.log(t.message);throw t},b=(0,E.l7)({timeout:6e4,params:{t:k},errorHandler:M}),r=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];b.interceptors.request.use(function(c,t){var a=localStorage.getItem(v.Z.authKey);if(a&&!r.includes(c)){var i={Authorization:"Bearer ".concat(a)};return{url:c,options:f()(f()({},t),{},{headers:i})}}return{url:c,options:t}}),b.interceptors.response.use(function(){var c=T()(s()().mark(function t(a){var i,m,u;return s()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(i=a.status,![502,504].includes(i)){n.next=5;break}_.history.push("/error"),n.next=14;break;case 5:if(i!==401){n.next=9;break}_.history.location.pathname!=="/login"&&(localStorage.removeItem(v.Z.authKey),_.history.push("/login")),n.next=14;break;case 9:return n.next=11,a.clone().json();case 11:return m=n.sent,m.code!==200&&(u=m.message||m.data,u&&p.ZP.error({content:u,style:{maxWidth:500,margin:"0 auto"}})),n.abrupt("return",m);case 14:return n.abrupt("return",a);case 15:case"end":return n.stop()}},t)}));return function(t){return c.apply(this,arguments)}}());var O=b},57002:function(){}}]);
@@ -0,0 +1,5 @@
1
+ (self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[803],{91756:function(se,R,e){"use strict";e.r(R);var f=e(25359),c=e.n(f),U=e(57213),E=e.n(U),j=e(49811),z=e.n(j),r=e(54306),B=e.n(r),g=e(63313),w=e.n(g),H=e(28756),T=e(67393),v=e(84163),K=e(84468),A=e(22159),y=e(35911),i=e(90717),s=e(11527),C=H.Z.Option,x;(function(m){m[m.nodejs=0]="nodejs",m[m.python3=1]="python3",m[m.linux=2]="linux"})(x||(x={}));var O=function(a){var b=a.dependence,d=a.handleCancel,P=a.visible,te=a.defaultType,G=T.Z.useForm(),X=B()(G,1),Q=X[0],t=(0,g.useState)(!1),o=B()(t,2),_=o[0],n=o[1],l=function(){var u=z()(c()().mark(function p(W){var S,N,ee,$,L,M,ae,F,q,Z;return c()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return n(!0),S=W.name,N=W.split,ee=W.type,$=W.remark,L=b?"put":"post",b?M=E()(E()({},W),{},{id:b.id}):N==="1"?(ae=S.includes("&")?"&":`
2
+ `,M=S.split(ae).map(function(ne){return{name:ne,type:ee,remark:$}})):M=[{name:S,type:ee,remark:$}],D.prev=4,D.next=7,y.W[L]("".concat(i.Z.apiPrefix,"dependencies"),{data:M});case 7:F=D.sent,q=F.code,Z=F.data,q===200&&d(Z),n(!1),D.next=17;break;case 14:D.prev=14,D.t0=D.catch(4),n(!1);case 17:case"end":return D.stop()}},p,null,[[4,14]])}));return function(W){return u.apply(this,arguments)}}();return(0,g.useEffect)(function(){Q.resetFields()},[b,P]),(0,s.jsx)(v.Z,{title:b?"\u7F16\u8F91\u4F9D\u8D56":"\u65B0\u5EFA\u4F9D\u8D56",open:P,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){Q.validateFields().then(function(p){l(p)}).catch(function(p){console.log("Validate Failed:",p)})},onCancel:function(){return d()},confirmLoading:_,children:(0,s.jsxs)(T.Z,{form:Q,layout:"vertical",name:"dependence_modal",initialValues:b,children:[(0,s.jsx)(T.Z.Item,{name:"type",label:"\u4F9D\u8D56\u7C7B\u578B",initialValue:x[te],children:(0,s.jsx)(H.Z,{children:i.Z.dependenceTypes.map(function(u,p){return(0,s.jsx)(C,{value:p,children:u},p)})})}),!b&&(0,s.jsx)(T.Z.Item,{name:"split",label:"\u81EA\u52A8\u62C6\u5206",initialValue:"0",tooltip:"\u591A\u4E2A\u4F9D\u8D56\u662F\u5426\u6362\u884C\u5206\u5272",children:(0,s.jsxs)(K.ZP.Group,{children:[(0,s.jsx)(K.ZP,{value:"1",children:"\u662F"}),(0,s.jsx)(K.ZP,{value:"0",children:"\u5426"})]})}),(0,s.jsx)(T.Z.Item,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F9D\u8D56\u540D\u79F0",whitespace:!0}],children:(0,s.jsx)(A.Z.TextArea,{rows:4,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165\u4F9D\u8D56\u540D\u79F0"})}),(0,s.jsx)(T.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,s.jsx)(A.Z,{placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"})})]})})};R.default=O},90717:function(se,R){"use strict";var e=window.__ENV__QlBaseUrl||"/";R.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
3
+ `},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
4
+ Custom-Header2: Header2`},{label:"webhookBody",tip:"\u8BF7\u6C42\u4F53\u683C\u5F0Fkey1: value1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",placeholder:`key1: $title
5
+ key2: $content`}]},documentTitleMap:{"/login":"\u767B\u5F55","/initialization":"\u521D\u59CB\u5316","/crontab":"\u5B9A\u65F6\u4EFB\u52A1","/env":"\u73AF\u5883\u53D8\u91CF","/subscription":"\u8BA2\u9605\u7BA1\u7406","/config":"\u914D\u7F6E\u6587\u4EF6","/script":"\u811A\u672C\u7BA1\u7406","/diff":"\u5BF9\u6BD4\u5DE5\u5177","/log":"\u65E5\u5FD7\u7BA1\u7406","/setting":"\u7CFB\u7EDF\u8BBE\u7F6E","/error":"\u9519\u8BEF\u65E5\u5FD7","/dependence":"\u4F9D\u8D56\u7BA1\u7406"},dependenceTypes:["nodejs","python3","linux"]}},35911:function(se,R,e){"use strict";e.d(R,{W:function(){return A}});var f=e(25359),c=e.n(f),U=e(49811),E=e.n(U),j=e(57213),z=e.n(j),r=e(50659),B=e(9835),g=e(90717),w=e(40440);B.ZP.config({duration:2});var H=Date.now(),T=function(i){if(i.response){var s=i.data?i.data.message||i.message||i.data:i.response.statusText,C=i.response.status;[502,504].includes(C)?w.history.push("/error"):C===401?w.history.location.pathname!=="/login"&&(B.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(g.Z.authKey),w.history.push("/login")):B.ZP.error({content:s,style:{maxWidth:500,margin:"0 auto"}})}else console.log(i.message);throw i},v=(0,r.l7)({timeout:6e4,params:{t:H},errorHandler:T}),K=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];v.interceptors.request.use(function(y,i){var s=localStorage.getItem(g.Z.authKey);if(s&&!K.includes(y)){var C={Authorization:"Bearer ".concat(s)};return{url:y,options:z()(z()({},i),{},{headers:C})}}return{url:y,options:i}}),v.interceptors.response.use(function(){var y=E()(c()().mark(function i(s){var C,x,O;return c()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(C=s.status,![502,504].includes(C)){a.next=5;break}w.history.push("/error"),a.next=14;break;case 5:if(C!==401){a.next=9;break}w.history.location.pathname!=="/login"&&(localStorage.removeItem(g.Z.authKey),w.history.push("/login")),a.next=14;break;case 9:return a.next=11,s.clone().json();case 11:return x=a.sent,x.code!==200&&(O=x.message||x.data,O&&B.ZP.error({content:O,style:{maxWidth:500,margin:"0 auto"}})),a.abrupt("return",x);case 14:return a.abrupt("return",s);case 15:case"end":return a.stop()}},i)}));return function(i){return y.apply(this,arguments)}}());var A=v},60822:function(se,R,e){"use strict";e.d(R,{Z:function(){return f}});function f(c){return Object.keys(c).reduce(function(U,E){return(E.startsWith("data-")||E.startsWith("aria-")||E==="role")&&!E.startsWith("data-__")&&(U[E]=c[E]),U},{})}},84468:function(se,R,e){"use strict";e.d(R,{ZP:function(){return Q}});var f=e(60795),c=e(87807),U=e(17079),E=e(84875),j=e.n(E),z=e(26230),r=e(63313),B=e(82259),g=e(65189),w=e(60822),H=r.createContext(null),T=H.Provider,v=H,K=r.createContext(null),A=K.Provider,y=e(69370),i=e(33951),s=e(7893),C=e(76737),x=function(t,o){var _={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&o.indexOf(n)<0&&(_[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(t);l<n.length;l++)o.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(t,n[l])&&(_[n[l]]=t[n[l]]);return _},O=function(o,_){var n,l=r.useContext(v),u=r.useContext(K),p=r.useContext(B.E_),W=p.getPrefixCls,S=p.direction,N=r.useRef(),ee=(0,i.sQ)(_,N),$=(0,r.useContext)(C.aM),L=$.isFormItemInput,M=function(V){var Y,J;(Y=o.onChange)===null||Y===void 0||Y.call(o,V),(J=l==null?void 0:l.onChange)===null||J===void 0||J.call(l,V)},ae=o.prefixCls,F=o.className,q=o.children,Z=o.style,re=o.disabled,D=x(o,["prefixCls","className","children","style","disabled"]),ne=W("radio",ae),h=((l==null?void 0:l.optionType)||u)==="button"?"".concat(ne,"-button"):ne,k=(0,f.Z)({},D),ue=r.useContext(s.Z);k.disabled=re||ue,l&&(k.name=l.name,k.onChange=M,k.checked=o.value===l.value,k.disabled=k.disabled||l.disabled);var de=j()("".concat(h,"-wrapper"),(n={},(0,c.Z)(n,"".concat(h,"-wrapper-checked"),k.checked),(0,c.Z)(n,"".concat(h,"-wrapper-disabled"),k.disabled),(0,c.Z)(n,"".concat(h,"-wrapper-rtl"),S==="rtl"),(0,c.Z)(n,"".concat(h,"-wrapper-in-form-item"),L),n),F);return r.createElement("label",{className:de,style:Z,onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave},r.createElement(y.Z,(0,f.Z)({},k,{type:"radio",prefixCls:h,ref:ee})),q!==void 0?r.createElement("span",null,q):null)},m=r.forwardRef(O),a=m,b=r.forwardRef(function(t,o){var _,n=r.useContext(B.E_),l=n.getPrefixCls,u=n.direction,p=r.useContext(g.Z),W=(0,z.Z)(t.defaultValue,{value:t.value}),S=(0,U.Z)(W,2),N=S[0],ee=S[1],$=function(ve){var fe=N,oe=ve.target.value;"value"in t||ee(oe);var ie=t.onChange;ie&&oe!==fe&&ie(ve)},L=t.prefixCls,M=t.className,ae=M===void 0?"":M,F=t.options,q=t.buttonStyle,Z=q===void 0?"outline":q,re=t.disabled,D=t.children,ne=t.size,h=t.style,k=t.id,ue=t.onMouseEnter,de=t.onMouseLeave,ce=t.onFocus,V=t.onBlur,Y=l("radio",L),J="".concat(Y,"-group"),le=D;F&&F.length>0&&(le=F.map(function(I){return typeof I=="string"||typeof I=="number"?r.createElement(a,{key:I.toString(),prefixCls:Y,disabled:re,value:I,checked:N===I},I):r.createElement(a,{key:"radio-group-value-options-".concat(I.value),prefixCls:Y,disabled:I.disabled||re,value:I.value,checked:N===I.value,style:I.style},I.label)}));var me=ne||p,_e=j()(J,"".concat(J,"-").concat(Z),(_={},(0,c.Z)(_,"".concat(J,"-").concat(me),me),(0,c.Z)(_,"".concat(J,"-rtl"),u==="rtl"),_),ae);return r.createElement("div",(0,f.Z)({},(0,w.Z)(t),{className:_e,style:h,onMouseEnter:ue,onMouseLeave:de,onFocus:ce,onBlur:V,id:k,ref:o}),r.createElement(T,{value:{onChange:$,value:N,disabled:t.disabled,name:t.name,optionType:t.optionType}},le))}),d=r.memo(b),P=function(t,o){var _={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&o.indexOf(n)<0&&(_[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(t);l<n.length;l++)o.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(t,n[l])&&(_[n[l]]=t[n[l]]);return _},te=function(o,_){var n=r.useContext(B.E_),l=n.getPrefixCls,u=o.prefixCls,p=P(o,["prefixCls"]),W=l("radio",u);return r.createElement(A,{value:"button"},r.createElement(a,(0,f.Z)({prefixCls:W},p,{type:"radio",ref:_})))},G=r.forwardRef(te),X=a;X.Button=G,X.Group=d,X.__ANT_RADIO=!0;var Q=X},28756:function(se,R,e){"use strict";var f=e(87807),c=e(60795),U=e(84875),E=e.n(U),j=e(40804),z=e(92976),r=e(63313),B=e.n(r),g=e(82259),w=e(23474),H=e(7893),T=e(65189),v=e(76737),K=e(16082),A=e(1020),y=e(91967),i=e(60934),s=function(m,a){var b={};for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&a.indexOf(d)<0&&(b[d]=m[d]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,d=Object.getOwnPropertySymbols(m);P<d.length;P++)a.indexOf(d[P])<0&&Object.prototype.propertyIsEnumerable.call(m,d[P])&&(b[d[P]]=m[d[P]]);return b},C="SECRET_COMBOBOX_MODE_DO_NOT_USE",x=function(a,b){var d,P=a.prefixCls,te=a.bordered,G=te===void 0?!0:te,X=a.className,Q=a.getPopupContainer,t=a.dropdownClassName,o=a.popupClassName,_=a.listHeight,n=_===void 0?256:_,l=a.placement,u=a.listItemHeight,p=u===void 0?24:u,W=a.size,S=a.disabled,N=a.notFoundContent,ee=a.status,$=a.showArrow,L=s(a,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),M=r.useContext(g.E_),ae=M.getPopupContainer,F=M.getPrefixCls,q=M.renderEmpty,Z=M.direction,re=M.virtual,D=M.dropdownMatchSelectWidth,ne=r.useContext(T.Z),h=F("select",P),k=F(),ue=(0,i.ri)(h,Z),de=ue.compactSize,ce=ue.compactItemClassnames,V=r.useMemo(function(){var pe=L.mode;if(pe!=="combobox")return pe===C?"combobox":pe},[L.mode]),Y=V==="multiple"||V==="tags",J=$!==void 0?$:L.loading||!(Y||V==="combobox"),le=(0,r.useContext)(v.aM),me=le.status,_e=le.hasFeedback,I=le.isFormItemInput,ve=le.feedbackIcon,fe=(0,A.F)(me,ee),oe;N!==void 0?oe=N:V==="combobox"?oe=null:oe=(q||w.Z)("Select");var ie=(0,y.Z)((0,c.Z)((0,c.Z)({},L),{multiple:Y,hasFeedback:_e,feedbackIcon:ve,showArrow:J,prefixCls:h})),he=ie.suffixIcon,Ee=ie.itemIcon,be=ie.removeIcon,Ce=ie.clearIcon,Pe=(0,z.Z)(L,["suffixIcon","itemIcon"]),Oe=E()(o||t,(0,f.Z)({},"".concat(h,"-dropdown-").concat(Z),Z==="rtl")),ge=de||W||ne,Me=r.useContext(H.Z),De=S!=null?S:Me,ye=E()((d={},(0,f.Z)(d,"".concat(h,"-lg"),ge==="large"),(0,f.Z)(d,"".concat(h,"-sm"),ge==="small"),(0,f.Z)(d,"".concat(h,"-rtl"),Z==="rtl"),(0,f.Z)(d,"".concat(h,"-borderless"),!G),(0,f.Z)(d,"".concat(h,"-in-form-item"),I),d),(0,A.Z)(h,fe,_e),ce,X),xe=function(){return l!==void 0?l:Z==="rtl"?"bottomRight":"bottomLeft"};return r.createElement(j.ZP,(0,c.Z)({ref:b,virtual:re,dropdownMatchSelectWidth:D},Pe,{transitionName:(0,K.mL)(k,(0,K.q0)(l),L.transitionName),listHeight:n,listItemHeight:p,mode:V,prefixCls:h,placement:xe(),direction:Z,inputIcon:he,menuItemSelectedIcon:Ee,removeIcon:be,clearIcon:Ce,notFoundContent:oe,className:ye,getPopupContainer:Q||ae,dropdownClassName:Oe,showArrow:_e||$,disabled:De}))},O=r.forwardRef(x);O.SECRET_COMBOBOX_MODE_DO_NOT_USE=C,O.Option=j.Wx,O.OptGroup=j.Xo,R.Z=O},69370:function(se,R,e){"use strict";var f=e(60795),c=e(14797),U=e(87807),E=e(17079),j=e(16803),z=e(84875),r=e.n(z),B=e(26230),g=e(63313),w=e.n(g),H=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],T=(0,g.forwardRef)(function(v,K){var A,y=v.prefixCls,i=y===void 0?"rc-checkbox":y,s=v.className,C=v.style,x=v.checked,O=v.disabled,m=v.defaultChecked,a=m===void 0?!1:m,b=v.type,d=b===void 0?"checkbox":b,P=v.onChange,te=(0,j.Z)(v,H),G=(0,g.useRef)(null),X=(0,B.Z)(a,{value:x}),Q=(0,E.Z)(X,2),t=Q[0],o=Q[1];(0,g.useImperativeHandle)(K,function(){return{focus:function(){var u;(u=G.current)===null||u===void 0||u.focus()},blur:function(){var u;(u=G.current)===null||u===void 0||u.blur()},input:G.current}});var _=r()(i,s,(A={},(0,U.Z)(A,"".concat(i,"-checked"),t),(0,U.Z)(A,"".concat(i,"-disabled"),O),A)),n=function(u){O||("checked"in v||o(u.target.checked),P==null||P({target:(0,c.Z)((0,c.Z)({},v),{},{type:d,checked:u.target.checked}),stopPropagation:function(){u.stopPropagation()},preventDefault:function(){u.preventDefault()},nativeEvent:u.nativeEvent}))};return g.createElement("span",{className:_,style:C},g.createElement("input",(0,f.Z)({},te,{className:"".concat(i,"-input"),ref:G,onChange:n,disabled:O,checked:!!t,type:d})),g.createElement("span",{className:"".concat(i,"-inner")}))});R.Z=T},57002:function(){}}]);
@@ -1,5 +1,5 @@
1
- (self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[6401],{14925:function(O,m,e){"use strict";e.r(m),e.d(m,{default:function(){return g}});var C=e(54306),s=e.n(C),r=e(63313),b=e(28756),B=e(9835),y=e(24378),E=e(59873),c=e(66585),f=e(67393),o=e(61858),S=e(78352),v=e(96787),_=e(82755),w=e(22370),D=e.n(w),d=e(10994),t=e(11527),i=b.Z.Option,u=function(){var k=(0,d.useOutletContext)(),n=k.headerStyle,W=k.isPhone,L=k.theme,F=(0,r.useState)("config.sample.sh"),j=s()(F,2),T=j[0],G=j[1],Q=(0,r.useState)("config.sh"),A=s()(Q,2),x=A[0],V=A[1],N=(0,r.useState)(""),K=s()(N,2),U=K[0],$=K[1],z=(0,r.useState)(""),R=s()(z,2),M=R[0],Y=R[1],J=(0,r.useState)(!0),Z=s()(J,2),ee=Z[0],I=Z[1],te=(0,r.useState)([]),H=s()(te,2),X=H[0],ae=H[1],q=(0,r.useRef)(null),le=function(){v.W.get("".concat(o.Z.apiPrefix,"configs/").concat(x)).then(function(a){var p=a.code,h=a.data;p===200&&Y(h)})},ne=function(){v.W.get("".concat(o.Z.apiPrefix,"configs/").concat(T)).then(function(a){var p=a.code,h=a.data;p===200&&$(h)})},re=function(){var a=q.current?q.current.getModel().modified.getValue().replace(/\r\n/g,`
2
- `):M;v.W.post("".concat(o.Z.apiPrefix,"configs/save"),{data:{content:a,name:x}}).then(function(p){var h=p.code,se=p.data;h===200&&B.ZP.success("\u4FDD\u5B58\u6210\u529F")})},oe=function(){I(!0),v.W.get("".concat(o.Z.apiPrefix,"configs/files")).then(function(a){var p=a.code,h=a.data;p===200&&ae(h)}).finally(function(){return I(!1)})},ie=function(a){G(a)},ue=function(a){V(a)};return(0,r.useEffect)(function(){oe()},[]),(0,r.useEffect)(function(){ne()},[T]),(0,r.useEffect)(function(){le()},[x]),(0,t.jsxs)(S.ZP,{className:"ql-container-wrapper",title:"\u5BF9\u6BD4\u5DE5\u5177",loading:ee,header:{style:n},extra:!W&&[(0,t.jsx)(y.Z,{type:"primary",onClick:re,children:"\u4FDD\u5B58"},"1")],children:[(0,t.jsxs)(E.Z,{gutter:24,className:"diff-switch-file",children:[(0,t.jsx)(c.Z,{span:12,children:(0,t.jsx)(f.Z.Item,{label:"\u6E90\u6587\u4EF6",children:(0,t.jsx)(b.Z,{value:T,onChange:ie,children:X.map(function(l){return(0,t.jsx)(i,{value:l.value,children:l.title},l.value)})})})}),(0,t.jsx)(c.Z,{span:12,children:(0,t.jsx)(f.Z.Item,{label:"\u5F53\u524D\u6587\u4EF6",children:(0,t.jsx)(b.Z,{value:x,onChange:ue,children:X.map(function(l){return(0,t.jsx)(i,{value:l.value,children:l.title},l.value)})})})})]}),W?(0,t.jsx)(D(),{styles:{diffContainer:{overflowX:"auto",minWidth:768},diffRemoved:{overflowX:"auto",maxWidth:300},diffAdded:{overflowX:"auto",maxWidth:300},line:{wordBreak:"break-word"}},oldValue:U,newValue:M,splitView:!0,leftTitle:"config.sh",rightTitle:"config.sample.sh",disableWordDiff:!0}):(0,t.jsx)(_.SV,{language:"shell",original:U,modified:M,options:{fontSize:12,lineNumbersMinChars:3,folding:!1,glyphMargin:!1,wordWrap:"on"},theme:L,onMount:function(a){q.current=a}})]})},g=u},61858:function(O,m){"use strict";var e=window.__ENV__QlBaseUrl||"/";m.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0}],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}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
1
+ (self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[6401],{40048:function(W,m,e){"use strict";e.r(m),e.d(m,{default:function(){return g}});var C=e(54306),s=e.n(C),n=e(63313),b=e(28756),B=e(9835),y=e(24378),E=e(59873),c=e(66585),f=e(67393),o=e(90717),S=e(38612),v=e(35911),_=e(82755),w=e(22370),D=e.n(w),d=e(40440),t=e(11527),i=b.Z.Option,u=function(){var k=(0,d.useOutletContext)(),r=k.headerStyle,q=k.isPhone,L=k.theme,F=(0,n.useState)("config.sample.sh"),j=s()(F,2),T=j[0],G=j[1],Q=(0,n.useState)("config.sh"),A=s()(Q,2),x=A[0],V=A[1],N=(0,n.useState)(""),K=s()(N,2),U=K[0],$=K[1],z=(0,n.useState)(""),R=s()(z,2),M=R[0],Y=R[1],J=(0,n.useState)(!0),Z=s()(J,2),ee=Z[0],I=Z[1],te=(0,n.useState)([]),H=s()(te,2),X=H[0],ae=H[1],O=(0,n.useRef)(null),le=function(){v.W.get("".concat(o.Z.apiPrefix,"configs/").concat(x)).then(function(a){var p=a.code,h=a.data;p===200&&Y(h)})},re=function(){v.W.get("".concat(o.Z.apiPrefix,"configs/").concat(T)).then(function(a){var p=a.code,h=a.data;p===200&&$(h)})},ne=function(){var a=O.current?O.current.getModel().modified.getValue().replace(/\r\n/g,`
2
+ `):M;v.W.post("".concat(o.Z.apiPrefix,"configs/save"),{data:{content:a,name:x}}).then(function(p){var h=p.code,se=p.data;h===200&&B.ZP.success("\u4FDD\u5B58\u6210\u529F")})},oe=function(){I(!0),v.W.get("".concat(o.Z.apiPrefix,"configs/files")).then(function(a){var p=a.code,h=a.data;p===200&&ae(h)}).finally(function(){return I(!1)})},ie=function(a){G(a)},ue=function(a){V(a)};return(0,n.useEffect)(function(){oe()},[]),(0,n.useEffect)(function(){re()},[T]),(0,n.useEffect)(function(){le()},[x]),(0,t.jsxs)(S.ZP,{className:"ql-container-wrapper",title:"\u5BF9\u6BD4\u5DE5\u5177",loading:ee,header:{style:r},extra:!q&&[(0,t.jsx)(y.Z,{type:"primary",onClick:ne,children:"\u4FDD\u5B58"},"1")],children:[(0,t.jsxs)(E.Z,{gutter:24,className:"diff-switch-file",children:[(0,t.jsx)(c.Z,{span:12,children:(0,t.jsx)(f.Z.Item,{label:"\u6E90\u6587\u4EF6",children:(0,t.jsx)(b.Z,{value:T,onChange:ie,children:X.map(function(l){return(0,t.jsx)(i,{value:l.value,children:l.title},l.value)})})})}),(0,t.jsx)(c.Z,{span:12,children:(0,t.jsx)(f.Z.Item,{label:"\u5F53\u524D\u6587\u4EF6",children:(0,t.jsx)(b.Z,{value:x,onChange:ue,children:X.map(function(l){return(0,t.jsx)(i,{value:l.value,children:l.title},l.value)})})})})]}),q?(0,t.jsx)(D(),{styles:{diffContainer:{overflowX:"auto",minWidth:768},diffRemoved:{overflowX:"auto",maxWidth:300},diffAdded:{overflowX:"auto",maxWidth:300},line:{wordBreak:"break-word"}},oldValue:U,newValue:M,splitView:!0,leftTitle:"config.sh",rightTitle:"config.sample.sh",disableWordDiff:!0}):(0,t.jsx)(_.SV,{language:"shell",original:U,modified:M,options:{fontSize:12,lineNumbersMinChars:3,folding:!1,glyphMargin:!1,wordWrap:"on"},theme:L,onMount:function(a){O.current=a}})]})},g=u},90717:function(W,m){"use strict";var e=window.__ENV__QlBaseUrl||"/";m.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
3
3
  `},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
4
4
  Custom-Header2: Header2`},{label:"webhookBody",tip:"\u8BF7\u6C42\u4F53\u683C\u5F0Fkey1: value1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",placeholder:`key1: $title
5
- key2: $content`}]},documentTitleMap:{"/login":"\u767B\u5F55","/initialization":"\u521D\u59CB\u5316","/crontab":"\u5B9A\u65F6\u4EFB\u52A1","/env":"\u73AF\u5883\u53D8\u91CF","/subscription":"\u8BA2\u9605\u7BA1\u7406","/config":"\u914D\u7F6E\u6587\u4EF6","/script":"\u811A\u672C\u7BA1\u7406","/diff":"\u5BF9\u6BD4\u5DE5\u5177","/log":"\u65E5\u5FD7\u7BA1\u7406","/setting":"\u7CFB\u7EDF\u8BBE\u7F6E","/error":"\u9519\u8BEF\u65E5\u5FD7","/dependence":"\u4F9D\u8D56\u7BA1\u7406"},dependenceTypes:["nodejs","python3","linux"]}},96787:function(O,m,e){"use strict";e.d(m,{W:function(){return D}});var C=e(25359),s=e.n(C),r=e(49811),b=e.n(r),B=e(57213),y=e.n(B),E=e(50659),c=e(9835),f=e(61858),o=e(10994);c.ZP.config({duration:2});var S=Date.now(),v=function(t){if(t.response){var i=t.data?t.data.message||t.message||t.data:t.response.statusText,u=t.response.status;[502,504].includes(u)?o.history.push("/error"):u===401?o.history.location.pathname!=="/login"&&(c.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(f.Z.authKey),o.history.push("/login")):c.ZP.error({content:i,style:{maxWidth:500,margin:"0 auto"}})}else console.log(t.message);throw t},_=(0,E.l7)({timeout:6e4,params:{t:S},errorHandler:v}),w=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];_.interceptors.request.use(function(d,t){var i=localStorage.getItem(f.Z.authKey);if(i&&!w.includes(d)){var u={Authorization:"Bearer ".concat(i)};return{url:d,options:y()(y()({},t),{},{headers:u})}}return{url:d,options:t}}),_.interceptors.response.use(function(){var d=b()(s()().mark(function t(i){var u,g,P;return s()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(u=i.status,![502,504].includes(u)){n.next=5;break}o.history.push("/error"),n.next=14;break;case 5:if(u!==401){n.next=9;break}o.history.location.pathname!=="/login"&&(localStorage.removeItem(f.Z.authKey),o.history.push("/login")),n.next=14;break;case 9:return n.next=11,i.clone().json();case 11:return g=n.sent,g.code!==200&&(P=g.message||g.data,P&&c.ZP.error({content:P,style:{maxWidth:500,margin:"0 auto"}})),n.abrupt("return",g);case 14:return n.abrupt("return",i);case 15:case"end":return n.stop()}},t)}));return function(t){return d.apply(this,arguments)}}());var D=_},57002:function(){}}]);
5
+ key2: $content`}]},documentTitleMap:{"/login":"\u767B\u5F55","/initialization":"\u521D\u59CB\u5316","/crontab":"\u5B9A\u65F6\u4EFB\u52A1","/env":"\u73AF\u5883\u53D8\u91CF","/subscription":"\u8BA2\u9605\u7BA1\u7406","/config":"\u914D\u7F6E\u6587\u4EF6","/script":"\u811A\u672C\u7BA1\u7406","/diff":"\u5BF9\u6BD4\u5DE5\u5177","/log":"\u65E5\u5FD7\u7BA1\u7406","/setting":"\u7CFB\u7EDF\u8BBE\u7F6E","/error":"\u9519\u8BEF\u65E5\u5FD7","/dependence":"\u4F9D\u8D56\u7BA1\u7406"},dependenceTypes:["nodejs","python3","linux"]}},35911:function(W,m,e){"use strict";e.d(m,{W:function(){return D}});var C=e(25359),s=e.n(C),n=e(49811),b=e.n(n),B=e(57213),y=e.n(B),E=e(50659),c=e(9835),f=e(90717),o=e(40440);c.ZP.config({duration:2});var S=Date.now(),v=function(t){if(t.response){var i=t.data?t.data.message||t.message||t.data:t.response.statusText,u=t.response.status;[502,504].includes(u)?o.history.push("/error"):u===401?o.history.location.pathname!=="/login"&&(c.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(f.Z.authKey),o.history.push("/login")):c.ZP.error({content:i,style:{maxWidth:500,margin:"0 auto"}})}else console.log(t.message);throw t},_=(0,E.l7)({timeout:6e4,params:{t:S},errorHandler:v}),w=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];_.interceptors.request.use(function(d,t){var i=localStorage.getItem(f.Z.authKey);if(i&&!w.includes(d)){var u={Authorization:"Bearer ".concat(i)};return{url:d,options:y()(y()({},t),{},{headers:u})}}return{url:d,options:t}}),_.interceptors.response.use(function(){var d=b()(s()().mark(function t(i){var u,g,P;return s()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(u=i.status,![502,504].includes(u)){r.next=5;break}o.history.push("/error"),r.next=14;break;case 5:if(u!==401){r.next=9;break}o.history.location.pathname!=="/login"&&(localStorage.removeItem(f.Z.authKey),o.history.push("/login")),r.next=14;break;case 9:return r.next=11,i.clone().json();case 11:return g=r.sent,g.code!==200&&(P=g.message||g.data,P&&c.ZP.error({content:P,style:{maxWidth:500,margin:"0 auto"}})),r.abrupt("return",g);case 14:return r.abrupt("return",i);case 15:case"end":return r.stop()}},t)}));return function(t){return d.apply(this,arguments)}}());var D=_},57002:function(){}}]);
@@ -1,4 +1,4 @@
1
- (self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[4216],{22368:function(q,s,e){"use strict";e.r(s);var E=e(25359),g=e.n(E),f=e(49811),P=e.n(f),y=e(54306),h=e.n(y),c=e(63313),b=e.n(c),_=e(67393),o=e(9835),k=e(84163),D=e(22159),v=e(96787),M=e(61858),d=e(11527),i=function(l){var r=l.ids,u=l.handleCancel,p=l.visible,A=_.Z.useForm(),a=h()(A,1),B=a[0],R=(0,c.useState)(!1),K=h()(R,2),W=K[0],O=K[1],I=function(){var C=P()(g()().mark(function m(U){var T,w,L;return g()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return O(!0),n.prev=1,n.next=4,v.W.put("".concat(M.Z.apiPrefix,"envs/name"),{data:{ids:r,name:U.name}});case 4:T=n.sent,w=T.code,L=T.data,w===200&&(o.ZP.success("\u66F4\u65B0\u73AF\u5883\u53D8\u91CF\u540D\u79F0\u6210\u529F"),u()),O(!1),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(1),O(!1);case 14:case"end":return n.stop()}},m,null,[[1,11]])}));return function(U){return C.apply(this,arguments)}}();return(0,c.useEffect)(function(){B.resetFields()},[r,p]),(0,d.jsx)(k.Z,{title:"\u4FEE\u6539\u73AF\u5883\u53D8\u91CF\u540D\u79F0",open:p,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){B.validateFields().then(function(m){I(m)}).catch(function(m){console.log("Validate Failed:",m)})},onCancel:function(){return u()},confirmLoading:W,children:(0,d.jsx)(_.Z,{form:B,layout:"vertical",name:"edit_name_modal",children:(0,d.jsx)(_.Z.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u65B0\u7684\u73AF\u5883\u53D8\u91CF\u540D\u79F0"}],children:(0,d.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u7684\u73AF\u5883\u53D8\u91CF\u540D\u79F0"})})})})};s.default=i},61858:function(q,s){"use strict";var e=window.__ENV__QlBaseUrl||"/";s.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0}],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}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
1
+ (self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[4216],{25140:function(q,s,e){"use strict";e.r(s);var E=e(25359),g=e.n(E),f=e(49811),P=e.n(f),y=e(54306),h=e.n(y),b=e(63313),c=e.n(b),_=e(67393),o=e(9835),k=e(84163),D=e(22159),v=e(35911),O=e(90717),d=e(11527),i=function(l){var r=l.ids,u=l.handleCancel,p=l.visible,A=_.Z.useForm(),a=h()(A,1),M=a[0],W=(0,b.useState)(!1),K=h()(W,2),R=K[0],B=K[1],I=function(){var C=P()(g()().mark(function m(w){var T,U,L;return g()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return B(!0),n.prev=1,n.next=4,v.W.put("".concat(O.Z.apiPrefix,"envs/name"),{data:{ids:r,name:w.name}});case 4:T=n.sent,U=T.code,L=T.data,U===200&&(o.ZP.success("\u66F4\u65B0\u73AF\u5883\u53D8\u91CF\u540D\u79F0\u6210\u529F"),u()),B(!1),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(1),B(!1);case 14:case"end":return n.stop()}},m,null,[[1,11]])}));return function(w){return C.apply(this,arguments)}}();return(0,b.useEffect)(function(){M.resetFields()},[r,p]),(0,d.jsx)(k.Z,{title:"\u4FEE\u6539\u73AF\u5883\u53D8\u91CF\u540D\u79F0",open:p,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 u()},confirmLoading:R,children:(0,d.jsx)(_.Z,{form:M,layout:"vertical",name:"edit_name_modal",children:(0,d.jsx)(_.Z.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u65B0\u7684\u73AF\u5883\u53D8\u91CF\u540D\u79F0"}],children:(0,d.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u7684\u73AF\u5883\u53D8\u91CF\u540D\u79F0"})})})})};s.default=i},90717:function(q,s){"use strict";var e=window.__ENV__QlBaseUrl||"/";s.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
2
2
  `},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
3
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"]}},96787:function(q,s,e){"use strict";e.d(s,{W:function(){return d}});var E=e(25359),g=e.n(E),f=e(49811),P=e.n(f),y=e(57213),h=e.n(y),c=e(50659),b=e(9835),_=e(61858),o=e(10994);b.ZP.config({duration:2});var k=Date.now(),D=function(t){if(t.response){var l=t.data?t.data.message||t.message||t.data:t.response.statusText,r=t.response.status;[502,504].includes(r)?o.history.push("/error"):r===401?o.history.location.pathname!=="/login"&&(b.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(_.Z.authKey),o.history.push("/login")):b.ZP.error({content:l,style:{maxWidth:500,margin:"0 auto"}})}else console.log(t.message);throw t},v=(0,c.l7)({timeout:6e4,params:{t:k},errorHandler:D}),M=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];v.interceptors.request.use(function(i,t){var l=localStorage.getItem(_.Z.authKey);if(l&&!M.includes(i)){var r={Authorization:"Bearer ".concat(l)};return{url:i,options:h()(h()({},t),{},{headers:r})}}return{url:i,options:t}}),v.interceptors.response.use(function(){var i=P()(g()().mark(function t(l){var r,u,p;return g()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(r=l.status,![502,504].includes(r)){a.next=5;break}o.history.push("/error"),a.next=14;break;case 5:if(r!==401){a.next=9;break}o.history.location.pathname!=="/login"&&(localStorage.removeItem(_.Z.authKey),o.history.push("/login")),a.next=14;break;case 9:return a.next=11,l.clone().json();case 11:return u=a.sent,u.code!==200&&(p=u.message||u.data,p&&b.ZP.error({content:p,style:{maxWidth:500,margin:"0 auto"}})),a.abrupt("return",u);case 14:return a.abrupt("return",l);case 15:case"end":return a.stop()}},t)}));return function(t){return i.apply(this,arguments)}}());var d=v},57002:function(){}}]);
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"]}},35911:function(q,s,e){"use strict";e.d(s,{W:function(){return d}});var E=e(25359),g=e.n(E),f=e(49811),P=e.n(f),y=e(57213),h=e.n(y),b=e(50659),c=e(9835),_=e(90717),o=e(40440);c.ZP.config({duration:2});var k=Date.now(),D=function(t){if(t.response){var l=t.data?t.data.message||t.message||t.data:t.response.statusText,r=t.response.status;[502,504].includes(r)?o.history.push("/error"):r===401?o.history.location.pathname!=="/login"&&(c.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(_.Z.authKey),o.history.push("/login")):c.ZP.error({content:l,style:{maxWidth:500,margin:"0 auto"}})}else console.log(t.message);throw t},v=(0,b.l7)({timeout:6e4,params:{t:k},errorHandler:D}),O=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];v.interceptors.request.use(function(i,t){var l=localStorage.getItem(_.Z.authKey);if(l&&!O.includes(i)){var r={Authorization:"Bearer ".concat(l)};return{url:i,options:h()(h()({},t),{},{headers:r})}}return{url:i,options:t}}),v.interceptors.response.use(function(){var i=P()(g()().mark(function t(l){var r,u,p;return g()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(r=l.status,![502,504].includes(r)){a.next=5;break}o.history.push("/error"),a.next=14;break;case 5:if(r!==401){a.next=9;break}o.history.location.pathname!=="/login"&&(localStorage.removeItem(_.Z.authKey),o.history.push("/login")),a.next=14;break;case 9:return a.next=11,l.clone().json();case 11:return u=a.sent,u.code!==200&&(p=u.message||u.data,p&&c.ZP.error({content:p,style:{maxWidth:500,margin:"0 auto"}})),a.abrupt("return",u);case 14:return a.abrupt("return",l);case 15:case"end":return a.stop()}},t)}));return function(t){return i.apply(this,arguments)}}());var d=v},57002:function(){}}]);
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[8247],{535:function(ne,P,e){var T=e(54306),g=e.n(T),V=e(63313),G=e.n(V),k=e(61761),N=e(60001);P.Z=function(L,O){var R=(0,V.useState)(0),I=g()(R,2),D=I[0],p=I[1];return(0,k.Z)(L,function(c){var j=c.target;j.classList.contains("ant-table-wrapper")||(j=c.target.querySelector(".ant-table-wrapper")),p((0,N.W9)({extraHeight:O,target:j}))}),D}},25140:function(ne,P,e){e.r(P);var T=e(25359),g=e.n(T),V=e(49811),G=e.n(V),k=e(54306),N=e.n(k),L=e(63313),O=e.n(L),R=e(67393),I=e(9835),D=e(84163),p=e(22159),c=e(35911),j=e(90717),A=e(11527),ee=function(v){var w=v.ids,W=v.handleCancel,M=v.visible,n=R.Z.useForm(),t=N()(n,1),l=t[0],u=(0,L.useState)(!1),s=N()(u,2),m=s[0],S=s[1],H=function(){var h=G()(g()().mark(function y(C){var $,B,x;return g()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return S(!0),b.prev=1,b.next=4,c.W.put("".concat(j.Z.apiPrefix,"envs/name"),{data:{ids:w,name:C.name}});case 4:$=b.sent,B=$.code,x=$.data,B===200&&(I.ZP.success("\u66F4\u65B0\u73AF\u5883\u53D8\u91CF\u540D\u79F0\u6210\u529F"),W()),S(!1),b.next=14;break;case 11:b.prev=11,b.t0=b.catch(1),S(!1);case 14:case"end":return b.stop()}},y,null,[[1,11]])}));return function(C){return h.apply(this,arguments)}}();return(0,L.useEffect)(function(){l.resetFields()},[w,M]),(0,A.jsx)(D.Z,{title:"\u4FEE\u6539\u73AF\u5883\u53D8\u91CF\u540D\u79F0",open:M,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){l.validateFields().then(function(y){H(y)}).catch(function(y){console.log("Validate Failed:",y)})},onCancel:function(){return W()},confirmLoading:m,children:(0,A.jsx)(R.Z,{form:l,layout:"vertical",name:"edit_name_modal",children:(0,A.jsx)(R.Z.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u65B0\u7684\u73AF\u5883\u53D8\u91CF\u540D\u79F0"}],children:(0,A.jsx)(p.Z,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u7684\u73AF\u5883\u53D8\u91CF\u540D\u79F0"})})})})};P.default=ee},80299:function(ne,P,e){e.r(P),e.d(P,{default:function(){return Ye}});var T=e(25359),g=e.n(T),V=e(49811),G=e.n(V),k=e(12342),N=e.n(k),L=e(57213),O=e.n(L),R=e(93525),I=e.n(R),D=e(54306),p=e.n(D),c=e(63313),j=e.n(c),A=e(92260),ee=e(22159),Z=e(15367),v=e(2947),w=e(51704),W=e(84163),M=e(9835),n=e(57679),t=e(24378),l=e(60986),u=e(32132),s=e(38101),m=e(23421),S=e(13740),H=e(59953),h=e(90717),y=e(38612),C=e(35911),$=e(62665),B=e(25140),x=e(17688),J=e(57627),b=e(70011),ue=e(66255),ie=e(60001),fe=e(40440),te=e(535),ve=e(59673),se=e(90328),me=e(90943),r=e(11527),Me=A.Z.Link,U=function(de){var Ce=de.text,Oe=(0,c.useState)(!1),Pe=p()(Oe,2),pe=Pe[0],he=Pe[1],ce=(0,c.useRef)(),Q=function(X){X==null||X.preventDefault(),X==null||X.stopPropagation(),he(!0),re(),ce.current=window.setTimeout(function(){he(!1)},3e3)},re=function(){window.clearTimeout(ce.current)};return(0,r.jsx)(Me,{onClick:Q,style:{marginLeft:1},children:(0,r.jsx)(me.CopyToClipboard,{text:Ce,children:(0,r.jsx)(Z.Z,{title:pe?"\u590D\u5236\u6210\u529F":"\u590D\u5236",children:pe?(0,r.jsx)(ve.Z,{}):(0,r.jsx)(se.Z,{})},"copy")})})},ge=U,He=e(33503),Je=["index","moveRow","className","style"],Fe=A.Z.Text,Qe=ee.Z.Search,K;(function(_){_[_.\u5DF2\u542F\u7528=0]="\u5DF2\u542F\u7528",_[_.\u5DF2\u7981\u7528=1]="\u5DF2\u7981\u7528"})(K||(K={}));var Ee;(function(_){_[_.success=0]="success",_[_.error=1]="error"})(Ee||(Ee={}));var _e;(function(_){_[_.\u542F\u7528=0]="\u542F\u7528",_[_.\u7981\u7528=1]="\u7981\u7528"})(_e||(_e={}));var ye;(function(_){_[_.enable=0]="enable",_[_.disable=1]="disable"})(ye||(ye={}));var Te="DragableBodyRow",Xe=function(){var de=(0,fe.useOutletContext)(),Ce=de.headerStyle,Oe=de.isPhone,Pe=de.theme,pe=[{title:"\u5E8F\u53F7",width:60,render:function(a,o,d){return(0,r.jsxs)("span",{style:{cursor:"text"},children:[d+1," "]})}},{title:"\u540D\u79F0",dataIndex:"name",key:"name",sorter:function(a,o){return a.name.localeCompare(o.name)}},{title:"\u503C",dataIndex:"value",key:"value",width:"35%",render:function(a,o){return(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,r.jsx)(Z.Z,{title:a,placement:"topLeft",children:(0,r.jsx)("div",{className:"text-ellipsis",children:a})}),(0,r.jsx)(ge,{text:a})]})}},{title:"\u5907\u6CE8",dataIndex:"remarks",key:"remarks",render:function(a,o){return(0,r.jsx)(Z.Z,{title:a,placement:"topLeft",children:(0,r.jsx)("div",{className:"text-ellipsis",children:a})})}},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"timestamp",key:"timestamp",width:165,ellipsis:{showTitle:!1},sorter:{compare:function(a,o){var d=new Date(a.updatedAt||a.timestamp).getTime(),f=new Date(o.updatedAt||o.timestamp).getTime();return d-f}},render:function(a,o){var d=navigator.language||navigator.languages[0],f=o.updatedAt||o.timestamp,E=new Date(f).toLocaleString(d,{hour12:!1}).replace(" 24:"," 00:");return(0,r.jsx)(Z.Z,{placement:"topLeft",title:E,trigger:["hover","click"],children:(0,r.jsx)("span",{children:E})})}},{title:"\u72B6\u6001",key:"status",dataIndex:"status",width:70,filters:[{text:"\u5DF2\u542F\u7528",value:0},{text:"\u5DF2\u7981\u7528",value:1}],onFilter:function(a,o){return o.status===a},render:function(a,o,d){return(0,r.jsx)(v.Z,{size:"middle",style:{cursor:"text"},children:(0,r.jsx)(w.Z,{color:Ee[o.status],style:{marginRight:0},children:K[o.status]})})}},{title:"\u64CD\u4F5C",key:"action",width:120,render:function(a,o,d){var f=!Oe;return(0,r.jsxs)(v.Z,{size:"middle",children:[(0,r.jsx)(Z.Z,{title:f?"\u7F16\u8F91":"",children:(0,r.jsx)("a",{onClick:function(){return vn(o,d)},children:(0,r.jsx)(u.Z,{})})}),(0,r.jsx)(Z.Z,{title:f?o.status===K.\u5DF2\u7981\u7528?"\u542F\u7528":"\u7981\u7528":"",children:(0,r.jsx)("a",{onClick:function(){return cn(o,d)},children:o.status===K.\u5DF2\u7981\u7528?(0,r.jsx)(s.Z,{}):(0,r.jsx)(m.Z,{})})}),(0,r.jsx)(Z.Z,{title:f?"\u5220\u9664":"",children:(0,r.jsx)("a",{onClick:function(){return mn(o,d)},children:(0,r.jsx)(S.Z,{})})})]})}}],he=(0,c.useState)([]),ce=p()(he,2),Q=ce[0],re=ce[1],De=(0,c.useState)(!0),X=p()(De,2),Re=X[0],Ae=X[1],qe=(0,c.useState)(!1),Ze=p()(qe,2),en=Ze[0],je=Ze[1],nn=(0,c.useState)(!1),Se=p()(nn,2),tn=Se[0],Be=Se[1],rn=(0,c.useState)(),Le=p()(rn,2),an=Le[0],Ie=Le[1],on=(0,c.useState)([]),We=p()(on,2),Y=We[0],Ue=We[1],ln=(0,c.useState)(""),Ke=p()(ln,2),Ne=Ke[0],un=Ke[1],sn=(0,c.useState)(!1),we=p()(sn,2),dn=we[0],xe=we[1],$e=(0,c.useRef)(),be=(0,te.Z)($e,59),ae=function(){Ae(!0),C.W.get("".concat(h.Z.apiPrefix,"envs?searchValue=").concat(Ne)).then(function(a){var o=a.code,d=a.data;o===200&&re(d)}).finally(function(){return Ae(!1)})},cn=function(a,o){W.Z.confirm({title:"\u786E\u8BA4".concat(a.status===K.\u5DF2\u7981\u7528?"\u542F\u7528":"\u7981\u7528"),content:(0,r.jsxs)(r.Fragment,{children:["\u786E\u8BA4",a.status===K.\u5DF2\u7981\u7528?"\u542F\u7528":"\u7981\u7528","Env"," ",(0,r.jsx)(Fe,{style:{wordBreak:"break-all"},type:"warning",children:a.value})," ","\u5417"]}),onOk:function(){C.W.put("".concat(h.Z.apiPrefix,"envs/").concat(a.status===K.\u5DF2\u7981\u7528?"enable":"disable"),{data:[a.id]}).then(function(f){var E=f.code,z=f.data;if(E===200){M.ZP.success("".concat(a.status===K.\u5DF2\u7981\u7528?"\u542F\u7528":"\u7981\u7528","\u6210\u529F"));var q=a.status===K.\u5DF2\u7981\u7528?K.\u5DF2\u542F\u7528:K.\u5DF2\u7981\u7528,oe=I()(Q);oe.splice(o,1,O()(O()({},a),{},{status:q})),re(oe)}})},onCancel:function(){console.log("Cancel")}})},fn=function(){Ie(null),je(!0)},vn=function(a,o){Ie(a),je(!0)},mn=function(a,o){W.Z.confirm({title:"\u786E\u8BA4\u5220\u9664",content:(0,r.jsxs)(r.Fragment,{children:["\u786E\u8BA4\u5220\u9664\u53D8\u91CF"," ",(0,r.jsxs)(Fe,{style:{wordBreak:"break-all"},type:"warning",children:[a.name,": ",a.value]})," ","\u5417"]}),onOk:function(){C.W.delete("".concat(h.Z.apiPrefix,"envs"),{data:[a.id]}).then(function(f){var E=f.code,z=f.data;if(E===200){M.ZP.success("\u5220\u9664\u6210\u529F");var q=I()(Q);q.splice(o,1),re(q)}})},onCancel:function(){console.log("Cancel")}})},_n=function(a){je(!1),ae()},pn=function(a){Be(!1),ae()},hn=(0,He.u)(function(){return{scroll:{y:be}}},[be]),Ve=p()(hn,2),gn=Ve[0],En=Ve[1],yn=j().forwardRef(function(i,a){var o=i.index,d=i.moveRow,f=i.className,E=i.style,z=N()(i,Je),q=(0,x.L)({accept:Te,collect:function(le){var Bn=le.getItem()||{},Ge=Bn.index;return Ge===o?{}:{isOver:le.isOver(),dropClassName:Ge<o?" drop-over-downward":" drop-over-upward"}},drop:function(le){d(le.index,o)}}),oe=p()(q,2),F=oe[0],Fn=F.isOver,Tn=F.dropClassName,Rn=oe[1],An=(0,J.c)({type:Te,item:{index:o},collect:function(le){return{isDragging:le.isDragging()}}}),Zn=p()(An,2),Sn=Zn[1];return(0,c.useEffect)(function(){Rn(Sn(a))},[a]),(0,r.jsx)("tr",O()({ref:a,className:"".concat(f).concat(Fn?Tn:""),style:O()({cursor:"move"},E)},z))});(0,c.useEffect)(function(){return En({body:{row:yn}})},[]);var Cn=(0,c.useCallback)(function(i,a){if(i!==a){var o=Q[i];C.W.put("".concat(h.Z.apiPrefix,"envs/").concat(o.id,"/move"),{data:{fromIndex:i,toIndex:a}}).then(function(d){var f=d.code,E=d.data;if(f===200){var z=I()(Q);z.splice(i,1),z.splice(a,0,O()(O()({},o),E)),re(I()(z))}})}},[Q]),On=function(a){Ue(a)},Pn={selectedRowKeys:Y,onChange:On},Dn=function(){W.Z.confirm({title:"\u786E\u8BA4\u5220\u9664",content:(0,r.jsx)(r.Fragment,{children:"\u786E\u8BA4\u5220\u9664\u9009\u4E2D\u7684\u53D8\u91CF\u5417"}),onOk:function(){C.W.delete("".concat(h.Z.apiPrefix,"envs"),{data:Y}).then(function(o){var d=o.code,f=o.data;d===200&&(M.ZP.success("\u6279\u91CF\u5220\u9664\u6210\u529F"),Ue([]),ae())})},onCancel:function(){console.log("Cancel")}})},ke=function(a){W.Z.confirm({title:"\u786E\u8BA4".concat(_e[a]),content:(0,r.jsxs)(r.Fragment,{children:["\u786E\u8BA4",_e[a],"\u9009\u4E2D\u7684\u53D8\u91CF\u5417"]}),onOk:function(){C.W.put("".concat(h.Z.apiPrefix,"envs/").concat(ye[a]),{data:Y}).then(function(d){var f=d.code,E=d.data;f===200&&ae()})},onCancel:function(){console.log("Cancel")}})},jn=function(){var a=Q.filter(function(o){return Y.includes(o.id)}).map(function(o){return{value:o.value,name:o.name,remarks:o.remarks}});(0,ie.w7)("env.json",JSON.stringify(a))},xn=function(){Be(!0)},bn=function(a){un(a.trim())},Mn={accept:"application/json",beforeUpload:function(){var i=G()(g()().mark(function o(d){var f,E,z,q;return g()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return f=new FormData,f.append("env",d),xe(!0),F.prev=3,F.next=6,C.W.post("".concat(h.Z.apiPrefix,"envs/upload"),{data:f});case 6:E=F.sent,z=E.code,q=E.data,z===200&&(M.ZP.success("\u6210\u529F\u4E0A\u4F20".concat(q.length,"\u4E2A\u73AF\u5883\u53D8\u91CF")),ae()),xe(!1),F.next=16;break;case 13:F.prev=13,F.t0=F.catch(3),xe(!1);case 16:return F.abrupt("return",!1);case 17:case"end":return F.stop()}},o,null,[[3,13]])}));function a(o){return i.apply(this,arguments)}return a}(),fileList:[]};return(0,c.useEffect)(function(){ae()},[Ne]),(0,r.jsxs)(y.ZP,{className:"ql-container-wrapper env-wrapper",title:"\u73AF\u5883\u53D8\u91CF",extra:[(0,r.jsx)(Qe,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0/\u503C/\u5907\u6CE8",style:{width:"auto"},enterButton:!0,loading:Re,onSearch:bn}),(0,r.jsx)(n.Z,O()(O()({},Mn),{},{children:(0,r.jsx)(t.Z,{type:"primary",icon:(0,r.jsx)(H.Z,{}),loading:dn,children:"\u5BFC\u5165"})})),(0,r.jsx)(t.Z,{type:"primary",onClick:function(){return fn()},children:"\u65B0\u5EFA\u53D8\u91CF"},"2")],header:{style:Ce},children:[(0,r.jsxs)("div",{ref:$e,children:[Y.length>0&&(0,r.jsxs)("div",{style:{marginBottom:16},children:[(0,r.jsx)(t.Z,{type:"primary",style:{marginBottom:5},onClick:xn,children:"\u6279\u91CF\u4FEE\u6539\u53D8\u91CF\u540D\u79F0"}),(0,r.jsx)(t.Z,{type:"primary",style:{marginBottom:5,marginLeft:8},onClick:Dn,children:"\u6279\u91CF\u5220\u9664"}),(0,r.jsx)(t.Z,{type:"primary",onClick:function(){return jn()},style:{marginLeft:8,marginRight:8},children:"\u6279\u91CF\u5BFC\u51FA"}),(0,r.jsx)(t.Z,{type:"primary",onClick:function(){return ke(0)},style:{marginLeft:8,marginBottom:5},children:"\u6279\u91CF\u542F\u7528"}),(0,r.jsx)(t.Z,{type:"primary",onClick:function(){return ke(1)},style:{marginLeft:8,marginRight:8},children:"\u6279\u91CF\u7981\u7528"}),(0,r.jsxs)("span",{style:{marginLeft:8},children:["\u5DF2\u9009\u62E9",(0,r.jsx)("a",{children:Y==null?void 0:Y.length}),"\u9879"]})]}),(0,r.jsx)(b.W,{backend:ue.PD,children:(0,r.jsx)(l.Z,{columns:pe,rowSelection:Pn,pagination:!1,dataSource:Q,rowKey:"id",size:"middle",scroll:{x:1e3,y:be},components:gn,loading:Re,onRow:function(a,o){return{index:o,moveRow:Cn}}})})]}),(0,r.jsx)($.default,{visible:en,handleCancel:_n,env:an}),(0,r.jsx)(B.default,{visible:tn,handleCancel:pn,ids:Y})]})},Ye=Xe},62665:function(ne,P,e){e.r(P);var T=e(25359),g=e.n(T),V=e(57213),G=e.n(V),k=e(49811),N=e.n(k),L=e(54306),O=e.n(L),R=e(63313),I=e.n(R),D=e(67393),p=e(9835),c=e(84163),j=e(22159),A=e(84468),ee=e(35911),Z=e(90717),v=e(11527),w=function(M){var n=M.env,t=M.handleCancel,l=M.visible,u=D.Z.useForm(),s=O()(u,1),m=s[0],S=(0,R.useState)(!1),H=O()(S,2),h=H[0],y=H[1],C=function(){var $=N()(g()().mark(function B(x){var J,b,ue,ie,fe,te,ve,se,me,r;return g()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return y(!0),J=x.value,b=x.split,ue=x.name,ie=x.remarks,fe=n?"put":"post",n?te=G()(G()({},x),{},{id:n.id}):b==="1"?(ve=J.includes("&")?"&":`
2
+ `,te=J.split(ve).map(function(ge){return{name:ue,value:ge,remarks:ie}})):te=[{value:J,name:ue,remarks:ie}],U.prev=4,U.next=7,ee.W[fe]("".concat(Z.Z.apiPrefix,"envs"),{data:te});case 7:se=U.sent,me=se.code,r=se.data,me===200&&(p.ZP.success(n?"\u66F4\u65B0\u53D8\u91CF\u6210\u529F":"\u65B0\u5EFA\u53D8\u91CF\u6210\u529F"),t(r)),y(!1),U.next=17;break;case 14:U.prev=14,U.t0=U.catch(4),y(!1);case 17:case"end":return U.stop()}},B,null,[[4,14]])}));return function(x){return $.apply(this,arguments)}}();return(0,R.useEffect)(function(){m.resetFields()},[n,l]),(0,v.jsx)(c.Z,{title:n?"\u7F16\u8F91\u53D8\u91CF":"\u65B0\u5EFA\u53D8\u91CF",open:l,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){m.validateFields().then(function(B){C(B)}).catch(function(B){console.log("Validate Failed:",B)})},onCancel:function(){return t()},confirmLoading:h,children:(0,v.jsxs)(D.Z,{form:m,layout:"vertical",name:"env_modal",initialValues:n,children:[(0,v.jsx)(D.Z.Item,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u540D\u79F0",whitespace:!0},{pattern:/^[a-zA-Z_][0-9a-zA-Z_]*$/,message:"\u53EA\u80FD\u8F93\u5165\u5B57\u6BCD\u6570\u5B57\u4E0B\u5212\u7EBF\uFF0C\u4E14\u4E0D\u80FD\u4EE5\u6570\u5B57\u5F00\u5934"}],children:(0,v.jsx)(j.Z,{placeholder:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u540D\u79F0"})}),!n&&(0,v.jsx)(D.Z.Item,{name:"split",label:"\u81EA\u52A8\u62C6\u5206",initialValue:"0",tooltip:"\u591A\u4E2A\u4F9D\u8D56\u662F\u5426\u6362\u884C\u5206\u5272",children:(0,v.jsxs)(A.ZP.Group,{children:[(0,v.jsx)(A.ZP,{value:"1",children:"\u662F"}),(0,v.jsx)(A.ZP,{value:"0",children:"\u5426"})]})}),(0,v.jsx)(D.Z.Item,{name:"value",label:"\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u503C",whitespace:!0}],children:(0,v.jsx)(j.Z.TextArea,{rows:4,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u503C"})}),(0,v.jsx)(D.Z.Item,{name:"remarks",label:"\u5907\u6CE8",children:(0,v.jsx)(j.Z,{placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"})})]})})};P.default=w},92015:function(ne,P,e){function T(n){"@babel/helpers - typeof";return T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(n)}Object.defineProperty(P,"__esModule",{value:!0}),P.CopyToClipboard=void 0;var g=k(e(63313)),V=k(e(874)),G=["text","onCopy","options","children"];function k(n){return n&&n.__esModule?n:{default:n}}function N(n,t){var l=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),l.push.apply(l,u)}return l}function L(n){for(var t=1;t<arguments.length;t++){var l=arguments[t]!=null?arguments[t]:{};t%2?N(Object(l),!0).forEach(function(u){W(n,u,l[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(l)):N(Object(l)).forEach(function(u){Object.defineProperty(n,u,Object.getOwnPropertyDescriptor(l,u))})}return n}function O(n,t){if(n==null)return{};var l=R(n,t),u,s;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(n);for(s=0;s<m.length;s++)u=m[s],!(t.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(n,u)&&(l[u]=n[u])}return l}function R(n,t){if(n==null)return{};var l={},u=Object.keys(n),s,m;for(m=0;m<u.length;m++)s=u[m],!(t.indexOf(s)>=0)&&(l[s]=n[s]);return l}function I(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function D(n,t){for(var l=0;l<t.length;l++){var u=t[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,u.key,u)}}function p(n,t,l){return t&&D(n.prototype,t),l&&D(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n}function c(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&j(n,t)}function j(n,t){return j=Object.setPrototypeOf||function(u,s){return u.__proto__=s,u},j(n,t)}function A(n){var t=v();return function(){var u=w(n),s;if(t){var m=w(this).constructor;s=Reflect.construct(u,arguments,m)}else s=u.apply(this,arguments);return ee(this,s)}}function ee(n,t){if(t&&(T(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Z(n)}function Z(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function v(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}function w(n){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},w(n)}function W(n,t,l){return t in n?Object.defineProperty(n,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[t]=l,n}var M=function(n){c(l,n);var t=A(l);function l(){var u;I(this,l);for(var s=arguments.length,m=new Array(s),S=0;S<s;S++)m[S]=arguments[S];return u=t.call.apply(t,[this].concat(m)),W(Z(u),"onClick",function(H){var h=u.props,y=h.text,C=h.onCopy,$=h.children,B=h.options,x=g.default.Children.only($),J=(0,V.default)(y,B);C&&C(y,J),x&&x.props&&typeof x.props.onClick=="function"&&x.props.onClick(H)}),u}return p(l,[{key:"render",value:function(){var s=this.props,m=s.text,S=s.onCopy,H=s.options,h=s.children,y=O(s,G),C=g.default.Children.only(h);return g.default.cloneElement(C,L(L({},y),{},{onClick:this.onClick}))}}]),l}(g.default.PureComponent);P.CopyToClipboard=M,W(M,"defaultProps",{onCopy:void 0,options:void 0})},90943:function(ne,P,e){var T=e(92015),g=T.CopyToClipboard;g.CopyToClipboard=g,ne.exports=g}}]);
@@ -0,0 +1,5 @@
1
+ (self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[222],{62665:function(ee,y,e){"use strict";e.r(y);var O=e(25359),c=e.n(O),x=e(57213),p=e.n(x),K=e(49811),U=e.n(K),r=e(54306),f=e.n(r),m=e(63313),R=e.n(m),b=e(67393),F=e(9835),_=e(84163),T=e(22159),M=e(84468),E=e(35911),o=e(90717),i=e(11527),g=function(P){var h=P.env,d=P.handleCancel,q=P.visible,X=b.Z.useForm(),$=f()(X,1),N=$[0],Z=(0,m.useState)(!1),A=f()(Z,2),Q=A[0],t=A[1],l=function(){var s=U()(c()().mark(function a(n){var u,D,I,L,W,j,V,G,H,Y;return c()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return t(!0),u=n.value,D=n.split,I=n.name,L=n.remarks,W=h?"put":"post",h?j=p()(p()({},n),{},{id:h.id}):D==="1"?(V=u.includes("&")?"&":`
2
+ `,j=u.split(V).map(function(te){return{name:I,value:te,remarks:L}})):j=[{value:u,name:I,remarks:L}],v.prev=4,v.next=7,E.W[W]("".concat(o.Z.apiPrefix,"envs"),{data:j});case 7:G=v.sent,H=G.code,Y=G.data,H===200&&(F.ZP.success(h?"\u66F4\u65B0\u53D8\u91CF\u6210\u529F":"\u65B0\u5EFA\u53D8\u91CF\u6210\u529F"),d(Y)),t(!1),v.next=17;break;case 14:v.prev=14,v.t0=v.catch(4),t(!1);case 17:case"end":return v.stop()}},a,null,[[4,14]])}));return function(n){return s.apply(this,arguments)}}();return(0,m.useEffect)(function(){N.resetFields()},[h,q]),(0,i.jsx)(_.Z,{title:h?"\u7F16\u8F91\u53D8\u91CF":"\u65B0\u5EFA\u53D8\u91CF",open:q,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){N.validateFields().then(function(a){l(a)}).catch(function(a){console.log("Validate Failed:",a)})},onCancel:function(){return d()},confirmLoading:Q,children:(0,i.jsxs)(b.Z,{form:N,layout:"vertical",name:"env_modal",initialValues:h,children:[(0,i.jsx)(b.Z.Item,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u540D\u79F0",whitespace:!0},{pattern:/^[a-zA-Z_][0-9a-zA-Z_]*$/,message:"\u53EA\u80FD\u8F93\u5165\u5B57\u6BCD\u6570\u5B57\u4E0B\u5212\u7EBF\uFF0C\u4E14\u4E0D\u80FD\u4EE5\u6570\u5B57\u5F00\u5934"}],children:(0,i.jsx)(T.Z,{placeholder:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u540D\u79F0"})}),!h&&(0,i.jsx)(b.Z.Item,{name:"split",label:"\u81EA\u52A8\u62C6\u5206",initialValue:"0",tooltip:"\u591A\u4E2A\u4F9D\u8D56\u662F\u5426\u6362\u884C\u5206\u5272",children:(0,i.jsxs)(M.ZP.Group,{children:[(0,i.jsx)(M.ZP,{value:"1",children:"\u662F"}),(0,i.jsx)(M.ZP,{value:"0",children:"\u5426"})]})}),(0,i.jsx)(b.Z.Item,{name:"value",label:"\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u503C",whitespace:!0}],children:(0,i.jsx)(T.Z.TextArea,{rows:4,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u503C"})}),(0,i.jsx)(b.Z.Item,{name:"remarks",label:"\u5907\u6CE8",children:(0,i.jsx)(T.Z,{placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"})})]})})};y.default=g},90717:function(ee,y){"use strict";var e=window.__ENV__QlBaseUrl||"/";y.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
3
+ `},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
4
+ Custom-Header2: Header2`},{label:"webhookBody",tip:"\u8BF7\u6C42\u4F53\u683C\u5F0Fkey1: value1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",placeholder:`key1: $title
5
+ key2: $content`}]},documentTitleMap:{"/login":"\u767B\u5F55","/initialization":"\u521D\u59CB\u5316","/crontab":"\u5B9A\u65F6\u4EFB\u52A1","/env":"\u73AF\u5883\u53D8\u91CF","/subscription":"\u8BA2\u9605\u7BA1\u7406","/config":"\u914D\u7F6E\u6587\u4EF6","/script":"\u811A\u672C\u7BA1\u7406","/diff":"\u5BF9\u6BD4\u5DE5\u5177","/log":"\u65E5\u5FD7\u7BA1\u7406","/setting":"\u7CFB\u7EDF\u8BBE\u7F6E","/error":"\u9519\u8BEF\u65E5\u5FD7","/dependence":"\u4F9D\u8D56\u7BA1\u7406"},dependenceTypes:["nodejs","python3","linux"]}},35911:function(ee,y,e){"use strict";e.d(y,{W:function(){return M}});var O=e(25359),c=e.n(O),x=e(49811),p=e.n(x),K=e(57213),U=e.n(K),r=e(50659),f=e(9835),m=e(90717),R=e(40440);f.ZP.config({duration:2});var b=Date.now(),F=function(o){if(o.response){var i=o.data?o.data.message||o.message||o.data:o.response.statusText,g=o.response.status;[502,504].includes(g)?R.history.push("/error"):g===401?R.history.location.pathname!=="/login"&&(f.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(m.Z.authKey),R.history.push("/login")):f.ZP.error({content:i,style:{maxWidth:500,margin:"0 auto"}})}else console.log(o.message);throw o},_=(0,r.l7)({timeout:6e4,params:{t:b},errorHandler:F}),T=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];_.interceptors.request.use(function(E,o){var i=localStorage.getItem(m.Z.authKey);if(i&&!T.includes(E)){var g={Authorization:"Bearer ".concat(i)};return{url:E,options:U()(U()({},o),{},{headers:g})}}return{url:E,options:o}}),_.interceptors.response.use(function(){var E=p()(c()().mark(function o(i){var g,k,P;return c()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(g=i.status,![502,504].includes(g)){d.next=5;break}R.history.push("/error"),d.next=14;break;case 5:if(g!==401){d.next=9;break}R.history.location.pathname!=="/login"&&(localStorage.removeItem(m.Z.authKey),R.history.push("/login")),d.next=14;break;case 9:return d.next=11,i.clone().json();case 11:return k=d.sent,k.code!==200&&(P=k.message||k.data,P&&f.ZP.error({content:P,style:{maxWidth:500,margin:"0 auto"}})),d.abrupt("return",k);case 14:return d.abrupt("return",i);case 15:case"end":return d.stop()}},o)}));return function(o){return E.apply(this,arguments)}}());var M=_},60822:function(ee,y,e){"use strict";e.d(y,{Z:function(){return O}});function O(c){return Object.keys(c).reduce(function(x,p){return(p.startsWith("data-")||p.startsWith("aria-")||p==="role")&&!p.startsWith("data-__")&&(x[p]=c[p]),x},{})}},84468:function(ee,y,e){"use strict";e.d(y,{ZP:function(){return Q}});var O=e(60795),c=e(87807),x=e(17079),p=e(84875),K=e.n(p),U=e(26230),r=e(63313),f=e(82259),m=e(65189),R=e(60822),b=r.createContext(null),F=b.Provider,_=b,T=r.createContext(null),M=T.Provider,E=e(69370),o=e(33951),i=e(7893),g=e(76737),k=function(t,l){var s={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&l.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(t);n<a.length;n++)l.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(s[a[n]]=t[a[n]]);return s},P=function(l,s){var a,n=r.useContext(_),u=r.useContext(T),D=r.useContext(f.E_),I=D.getPrefixCls,L=D.direction,W=r.useRef(),j=(0,o.sQ)(s,W),V=(0,r.useContext)(g.aM),G=V.isFormItemInput,H=function(re){var z,w;(z=l.onChange)===null||z===void 0||z.call(l,re),(w=n==null?void 0:n.onChange)===null||w===void 0||w.call(n,re)},Y=l.prefixCls,J=l.className,v=l.children,te=l.style,ae=l.disabled,le=k(l,["prefixCls","className","children","style","disabled"]),ne=I("radio",Y),S=((n==null?void 0:n.optionType)||u)==="button"?"".concat(ne,"-button"):ne,B=(0,O.Z)({},le),oe=r.useContext(i.Z);B.disabled=ae||oe,n&&(B.name=n.name,B.onChange=H,B.checked=l.value===n.value,B.disabled=B.disabled||n.disabled);var ie=K()("".concat(S,"-wrapper"),(a={},(0,c.Z)(a,"".concat(S,"-wrapper-checked"),B.checked),(0,c.Z)(a,"".concat(S,"-wrapper-disabled"),B.disabled),(0,c.Z)(a,"".concat(S,"-wrapper-rtl"),L==="rtl"),(0,c.Z)(a,"".concat(S,"-wrapper-in-form-item"),G),a),J);return r.createElement("label",{className:ie,style:te,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave},r.createElement(E.Z,(0,O.Z)({},B,{type:"radio",prefixCls:S,ref:j})),v!==void 0?r.createElement("span",null,v):null)},h=r.forwardRef(P),d=h,q=r.forwardRef(function(t,l){var s,a=r.useContext(f.E_),n=a.getPrefixCls,u=a.direction,D=r.useContext(m.Z),I=(0,U.Z)(t.defaultValue,{value:t.value}),L=(0,x.Z)(I,2),W=L[0],j=L[1],V=function(_e){var pe=W,ce=_e.target.value;"value"in t||j(ce);var me=t.onChange;me&&ce!==pe&&me(_e)},G=t.prefixCls,H=t.className,Y=H===void 0?"":H,J=t.options,v=t.buttonStyle,te=v===void 0?"outline":v,ae=t.disabled,le=t.children,ne=t.size,S=t.style,B=t.id,oe=t.onMouseEnter,ie=t.onMouseLeave,ue=t.onFocus,re=t.onBlur,z=n("radio",G),w="".concat(z,"-group"),se=le;J&&J.length>0&&(se=J.map(function(C){return typeof C=="string"||typeof C=="number"?r.createElement(d,{key:C.toString(),prefixCls:z,disabled:ae,value:C,checked:W===C},C):r.createElement(d,{key:"radio-group-value-options-".concat(C.value),prefixCls:z,disabled:C.disabled||ae,value:C.value,checked:W===C.value,style:C.style},C.label)}));var de=ne||D,ve=K()(w,"".concat(w,"-").concat(te),(s={},(0,c.Z)(s,"".concat(w,"-").concat(de),de),(0,c.Z)(s,"".concat(w,"-rtl"),u==="rtl"),s),Y);return r.createElement("div",(0,O.Z)({},(0,R.Z)(t),{className:ve,style:S,onMouseEnter:oe,onMouseLeave:ie,onFocus:ue,onBlur:re,id:B,ref:l}),r.createElement(F,{value:{onChange:V,value:W,disabled:t.disabled,name:t.name,optionType:t.optionType}},se))}),X=r.memo(q),$=function(t,l){var s={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&l.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(t);n<a.length;n++)l.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(s[a[n]]=t[a[n]]);return s},N=function(l,s){var a=r.useContext(f.E_),n=a.getPrefixCls,u=l.prefixCls,D=$(l,["prefixCls"]),I=n("radio",u);return r.createElement(M,{value:"button"},r.createElement(d,(0,O.Z)({prefixCls:I},D,{type:"radio",ref:s})))},Z=r.forwardRef(N),A=d;A.Button=Z,A.Group=X,A.__ANT_RADIO=!0;var Q=A},69370:function(ee,y,e){"use strict";var O=e(60795),c=e(14797),x=e(87807),p=e(17079),K=e(16803),U=e(84875),r=e.n(U),f=e(26230),m=e(63313),R=e.n(m),b=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],F=(0,m.forwardRef)(function(_,T){var M,E=_.prefixCls,o=E===void 0?"rc-checkbox":E,i=_.className,g=_.style,k=_.checked,P=_.disabled,h=_.defaultChecked,d=h===void 0?!1:h,q=_.type,X=q===void 0?"checkbox":q,$=_.onChange,N=(0,K.Z)(_,b),Z=(0,m.useRef)(null),A=(0,f.Z)(d,{value:k}),Q=(0,p.Z)(A,2),t=Q[0],l=Q[1];(0,m.useImperativeHandle)(T,function(){return{focus:function(){var u;(u=Z.current)===null||u===void 0||u.focus()},blur:function(){var u;(u=Z.current)===null||u===void 0||u.blur()},input:Z.current}});var s=r()(o,i,(M={},(0,x.Z)(M,"".concat(o,"-checked"),t),(0,x.Z)(M,"".concat(o,"-disabled"),P),M)),a=function(u){P||("checked"in _||l(u.target.checked),$==null||$({target:(0,c.Z)((0,c.Z)({},_),{},{type:X,checked:u.target.checked}),stopPropagation:function(){u.stopPropagation()},preventDefault:function(){u.preventDefault()},nativeEvent:u.nativeEvent}))};return m.createElement("span",{className:s,style:g},m.createElement("input",(0,O.Z)({},N,{className:"".concat(o,"-input"),ref:Z,onChange:a,disabled:P,checked:!!t,type:X})),m.createElement("span",{className:"".concat(o,"-inner")}))});y.Z=F},57002:function(){}}]);