@whyour/qinglong 0.7.7 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -1
- package/sample/config.sample.sh +5 -0
- package/sample/notify.js +3 -3
- package/sample/notify.py +2 -2
- package/shell/task.sh +1 -1
- package/static/build/api/log.js +1 -1
- package/static/build/api/subscription.js +5 -1
- package/static/build/config/util.js +1 -1
- package/static/build/data/cron.js +1 -1
- package/static/build/data/dependence.js +1 -1
- package/static/build/loaders/initData.js +4 -1
- package/static/build/schedule/addCron.js +9 -1
- package/static/build/schedule/health.js +1 -1
- package/static/build/services/cron.js +5 -5
- package/static/build/services/dependence.js +5 -2
- package/static/build/services/notify.js +2 -3
- package/static/build/services/subscription.js +41 -4
- package/static/build/shared/pLimit.js +4 -1
- package/static/dist/1925.c5a319f8.async.js +6 -0
- package/static/dist/2536.f6b15c54.async.js +1 -0
- package/static/dist/3271.913214bd.async.js +1 -0
- package/static/dist/3330.962bc898.async.js +1 -0
- package/static/dist/{4424.daf21491.async.js → 4424.98b4bd4c.async.js} +1 -1
- package/static/dist/4674.403f1511.async.js +1 -0
- package/static/dist/4714.6f75a879.async.js +4 -0
- package/static/dist/4906.119e3e0f.async.js +81 -0
- package/static/dist/6035.8de00e43.async.js +9 -0
- package/static/dist/6329.c3cd1754.async.js +26 -0
- package/static/dist/7708.b1e590e4.async.js +1 -0
- package/static/dist/8037.386b415d.async.js +1 -0
- package/static/dist/8044.06e91ce9.async.js +18 -0
- package/static/dist/8130.97ce9ff6.async.js +4 -0
- package/static/dist/819.c1b8de99.async.js +4 -0
- package/static/dist/9532.a47c2a0e.async.js +1 -0
- package/static/dist/9673.6cf1fa68.async.js +3 -0
- package/static/dist/9692.aca6cd4e.async.js +4 -0
- package/static/dist/index.html +1 -1
- package/static/dist/layouts__index.47395c48.chunk.css +1 -0
- package/static/dist/layouts__index.f45c1c77.async.js +1 -0
- package/static/dist/src__pages__404.da927616.async.js +1 -0
- package/static/dist/src__pages__config__index.638ee578.async.js +22 -0
- package/static/dist/src__pages__crontab__detail.8548570c.async.js +2 -0
- package/static/dist/src__pages__crontab__index.ea0ad17d.chunk.css +1 -0
- package/static/dist/src__pages__crontab__index.f7d7651f.async.js +19 -0
- package/static/dist/src__pages__crontab__logModal.7a8ca1b8.async.js +1 -0
- package/static/dist/src__pages__crontab__modal.c94bad49.async.js +4 -0
- package/static/dist/src__pages__crontab__viewCreateModal.090fb218.async.js +1 -0
- package/static/dist/src__pages__crontab__viewManageModal.f79bdbdd.async.js +1 -0
- package/static/dist/src__pages__dependence__index.288f8cb2.async.js +2 -0
- package/static/dist/src__pages__dependence__logModal.80ff90bc.async.js +4 -0
- package/static/dist/src__pages__dependence__modal.8c434892.async.js +5 -0
- package/static/dist/src__pages__diff__index.9bff5d4a.async.js +5 -0
- package/static/dist/src__pages__env__editNameModal.7e592361.async.js +4 -0
- package/static/dist/src__pages__env__index.b9a18b25.async.js +2 -0
- package/static/dist/src__pages__env__modal.12d3d833.async.js +5 -0
- package/static/dist/src__pages__error__index.b3c10262.async.js +4 -0
- package/static/dist/src__pages__initialization__index.4e7bbbb9.async.js +21 -0
- package/static/dist/src__pages__log__index.fe97493d.async.js +1 -0
- package/static/dist/src__pages__login__index.7f920198.async.js +1 -0
- package/static/dist/src__pages__script__editModal.2a16e662.async.js +4 -0
- package/static/dist/src__pages__script__editNameModal.a3391e87.async.js +4 -0
- package/static/dist/src__pages__script__index.b772364f.async.js +6 -0
- package/static/dist/src__pages__script__renameModal.2bf73e46.async.js +4 -0
- package/static/dist/src__pages__script__saveModal.422f1cd7.async.js +4 -0
- package/static/dist/src__pages__script__setting.2b76ab6a.async.js +4 -0
- package/static/dist/src__pages__setting__about.c3cdad66.async.js +1 -0
- package/static/dist/src__pages__setting__appModal.b85e6aeb.async.js +4 -0
- package/static/dist/src__pages__setting__index.baad795d.async.js +1 -0
- package/static/dist/src__pages__setting__loginLog.e74c10b2.async.js +18 -0
- package/static/dist/src__pages__setting__notification.af705cea.async.js +21 -0
- package/static/dist/src__pages__setting__other.e735251a.async.js +1 -0
- package/static/dist/src__pages__setting__security.b65e9b12.async.js +4 -0
- package/static/dist/src__pages__subscription__index.682c6e4b.async.js +1 -0
- package/static/dist/src__pages__subscription__logModal.c1a59322.async.js +1 -0
- package/static/dist/src__pages__subscription__modal.7cdfec68.async.js +4 -0
- package/static/dist/umi.f39c4587.js +105 -0
- package/version.yaml +11 -5
- package/static/dist/1138.4ccf8136.async.js +0 -4
- package/static/dist/1295.06026141.async.js +0 -27
- package/static/dist/2536.a60b8e3c.async.js +0 -1
- package/static/dist/3330.950e8570.async.js +0 -1
- package/static/dist/37.8af37a28.async.js +0 -6
- package/static/dist/4378.70083a42.async.js +0 -4
- package/static/dist/5035.ac19ee2f.async.js +0 -67
- package/static/dist/6556.f0e353dc.async.js +0 -5
- package/static/dist/7745.4df6fd01.async.js +0 -1
- package/static/dist/8044.fd8552ee.async.js +0 -18
- package/static/dist/806.b28198b3.async.js +0 -81
- package/static/dist/819.157d1b93.async.js +0 -4
- package/static/dist/8347.c3ea8f4e.async.js +0 -6
- package/static/dist/9047.273bd90f.async.js +0 -10
- package/static/dist/9673.18a70227.async.js +0 -3
- package/static/dist/986.f443bd87.async.js +0 -1
- package/static/dist/layouts__index.285d8505.chunk.css +0 -1
- package/static/dist/layouts__index.34e4586a.async.js +0 -1
- package/static/dist/src__pages__404.970a2ae1.async.js +0 -1
- package/static/dist/src__pages__config__index.4cdf4d33.async.js +0 -22
- package/static/dist/src__pages__crontab__detail.bd91d91a.async.js +0 -3
- package/static/dist/src__pages__crontab__index.51efe6ff.async.js +0 -19
- package/static/dist/src__pages__crontab__index.ccd9e16b.chunk.css +0 -1
- package/static/dist/src__pages__crontab__logModal.c4254d3f.async.js +0 -2
- package/static/dist/src__pages__crontab__modal.0a4c9842.async.js +0 -5
- package/static/dist/src__pages__crontab__viewCreateModal.d1f29d19.async.js +0 -1
- package/static/dist/src__pages__crontab__viewManageModal.4013da38.async.js +0 -1
- package/static/dist/src__pages__dependence__index.bb83ee10.async.js +0 -2
- package/static/dist/src__pages__dependence__logModal.76717b79.async.js +0 -4
- package/static/dist/src__pages__dependence__modal.23a556bf.async.js +0 -5
- package/static/dist/src__pages__diff__index.baccd0de.async.js +0 -5
- package/static/dist/src__pages__env__editNameModal.004070ce.async.js +0 -4
- package/static/dist/src__pages__env__index.f90a2f57.async.js +0 -2
- package/static/dist/src__pages__env__modal.f1c2841c.async.js +0 -5
- package/static/dist/src__pages__error__index.74e3f663.async.js +0 -4
- package/static/dist/src__pages__initialization__index.c40de447.async.js +0 -21
- package/static/dist/src__pages__log__index.e6c628e8.async.js +0 -1
- package/static/dist/src__pages__login__index.419baa77.async.js +0 -2
- package/static/dist/src__pages__script__editModal.3ae4162a.async.js +0 -4
- package/static/dist/src__pages__script__editNameModal.fbc5b667.async.js +0 -4
- package/static/dist/src__pages__script__index.13e710a9.async.js +0 -23
- package/static/dist/src__pages__script__renameModal.7d65398c.async.js +0 -4
- package/static/dist/src__pages__script__saveModal.e063656e.async.js +0 -4
- package/static/dist/src__pages__script__setting.44ec32a9.async.js +0 -4
- package/static/dist/src__pages__setting__about.5138ea49.async.js +0 -1
- package/static/dist/src__pages__setting__appModal.87ba69a3.async.js +0 -4
- package/static/dist/src__pages__setting__index.3ed4e0d8.async.js +0 -2
- package/static/dist/src__pages__setting__loginLog.195a2809.async.js +0 -18
- package/static/dist/src__pages__setting__notification.182edc7d.async.js +0 -21
- package/static/dist/src__pages__setting__other.8e242852.async.js +0 -1
- package/static/dist/src__pages__setting__security.d4e2007a.async.js +0 -4
- package/static/dist/src__pages__subscription__index.3233e4c5.async.js +0 -2
- package/static/dist/src__pages__subscription__logModal.ef8e52b8.async.js +0 -2
- package/static/dist/src__pages__subscription__modal.5753eaa4.async.js +0 -4
- package/static/dist/umi.d752df42.js +0 -12
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[6401],{58276:function(T,g,e){e.r(g),e.d(g,{default:function(){return W}});var B=e(54306),o=e.n(B),i=e(63313),b=e(28756),m=e(9835),y=e(24378),s=e(59873),_=e(66585),x=e(67393),f=e(5558),P=e(78969),v=e(95176),w=e(82755),u=e(22370),a=e.n(u),d=e(87075),t=e(11527),p=b.Z.Option,k=function(){var E=(0,d.useOutletContext)(),H=E.headerStyle,q=E.isPhone,F=E.theme,G=(0,i.useState)("config.sample.sh"),O=o()(G,2),S=O[0],L=O[1],Q=(0,i.useState)("config.sh"),K=o()(Q,2),C=K[0],V=K[1],N=(0,i.useState)(""),A=o()(N,2),Z=A[0],$=A[1],z=(0,i.useState)(""),j=o()(z,2),D=j[0],Y=j[1],J=(0,i.useState)(!0),U=o()(J,2),ee=U[0],R=U[1],te=(0,i.useState)([]),I=o()(te,2),X=I[0],ae=I[1],M=(0,i.useRef)(null),re=function(){v.W.get("".concat(f.Z.apiPrefix,"configs/").concat(C)).then(function(r){var c=r.code,h=r.data;c===200&&Y(h)})},le=function(){v.W.get("".concat(f.Z.apiPrefix,"configs/").concat(S)).then(function(r){var c=r.code,h=r.data;c===200&&$(h)})},ne=function(){var r=M.current?M.current.getModel().modified.getValue().replace(/\r\n/g,`
|
|
2
|
-
`):D;v.W.post("".concat(f.Z.apiPrefix,"configs/save"),{content:r,name:C}).then(function(c){var h=c.code,se=c.data;h===200&&m.ZP.success("\u4FDD\u5B58\u6210\u529F")})},ie=function(){R(!0),v.W.get("".concat(f.Z.apiPrefix,"configs/files")).then(function(r){var c=r.code,h=r.data;c===200&&ae(h)}).finally(function(){return R(!1)})},oe=function(r){L(r)},ue=function(r){V(r)};return(0,i.useEffect)(function(){ie()},[]),(0,i.useEffect)(function(){le()},[S]),(0,i.useEffect)(function(){re()},[C]),(0,t.jsxs)(P.ZP,{className:"ql-container-wrapper",title:"\u5BF9\u6BD4\u5DE5\u5177",loading:ee,header:{style:H},extra:!q&&[(0,t.jsx)(y.Z,{type:"primary",onClick:ne,children:"\u4FDD\u5B58"},"1")],children:[(0,t.jsxs)(s.Z,{gutter:24,className:"diff-switch-file",children:[(0,t.jsx)(_.Z,{span:12,children:(0,t.jsx)(x.Z.Item,{label:"\u6E90\u6587\u4EF6",children:(0,t.jsx)(b.Z,{value:S,onChange:oe,children:X.map(function(n){return(0,t.jsx)(p,{value:n.value,children:n.title},n.value)})})})}),(0,t.jsx)(_.Z,{span:12,children:(0,t.jsx)(x.Z.Item,{label:"\u5F53\u524D\u6587\u4EF6",children:(0,t.jsx)(b.Z,{value:C,onChange:ue,children:X.map(function(n){return(0,t.jsx)(p,{value:n.value,children:n.title},n.value)})})})})]}),q?(0,t.jsx)(a(),{styles:{diffContainer:{overflowX:"auto",minWidth:768},diffRemoved:{overflowX:"auto",maxWidth:300},diffAdded:{overflowX:"auto",maxWidth:300},line:{wordBreak:"break-word"}},oldValue:Z,newValue:D,splitView:!0,leftTitle:"config.sh",rightTitle:"config.sample.sh",disableWordDiff:!0}):(0,t.jsx)(w.SV,{language:"shell",original:Z,modified:D,options:{fontSize:12,lineNumbersMinChars:3,folding:!1,glyphMargin:!1,wordWrap:"on"},theme:F,onMount:function(r){M.current=r}})]})},W=k},5558:function(T,g){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:"pushMe",label:"PushMe"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],pushMe:[{label:"pushMeKey",tip:"PushMe\u7684Key\uFF0Chttps://push.i-i.me/",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
|
|
3
|
-
`},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
|
|
4
|
-
Custom-Header2: Header2`},{label:"webhookBody",tip:"\u8BF7\u6C42\u4F53\u683C\u5F0Fkey1: value1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",placeholder:`key1: $title
|
|
5
|
-
key2: $content`}]},documentTitleMap:{"/login":"\u767B\u5F55","/initialization":"\u521D\u59CB\u5316","/crontab":"\u5B9A\u65F6\u4EFB\u52A1","/env":"\u73AF\u5883\u53D8\u91CF","/subscription":"\u8BA2\u9605\u7BA1\u7406","/config":"\u914D\u7F6E\u6587\u4EF6","/script":"\u811A\u672C\u7BA1\u7406","/diff":"\u5BF9\u6BD4\u5DE5\u5177","/log":"\u65E5\u5FD7\u7BA1\u7406","/setting":"\u7CFB\u7EDF\u8BBE\u7F6E","/error":"\u9519\u8BEF\u65E5\u5FD7","/dependence":"\u4F9D\u8D56\u7BA1\u7406"},dependenceTypes:["nodejs","python3","linux"]}},95176:function(T,g,e){e.d(g,{W:function(){return w}});var B=e(25359),o=e.n(B),i=e(49811),b=e.n(i),m=e(9835),y=e(5558),s=e(87075),_=e(73669);m.ZP.config({duration:2});var x=Date.now(),f=function(a){if(a.response){var d=a.response.data?a.response.data.message||a.message||a.response.data:a.response.statusText,t=a.response.status;[502,504].includes(t)?s.history.push("/error"):t===401?s.history.location.pathname!=="/login"&&(m.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(y.Z.authKey),s.history.push("/login")):m.ZP.error({content:d,style:{maxWidth:500,margin:"0 auto"}})}else console.log(a.message);return Promise.reject(a)},P=_.Z.create({timeout:6e4,params:{t:x}}),v=["/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(u){var a=localStorage.getItem(y.Z.authKey);return a&&!v.includes(u.url)&&(u.headers.Authorization="Bearer ".concat(a)),u}),P.interceptors.response.use(function(){var u=b()(o()().mark(function a(d){var t,p,k;return o()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=d.status,![502,504].includes(t)){l.next=5;break}s.history.push("/error"),l.next=18;break;case 5:if(t!==401){l.next=9;break}s.history.location.pathname!=="/login"&&(localStorage.removeItem(y.Z.authKey),s.history.push("/login")),l.next=18;break;case 9:return l.prev=9,p=d.data,p.code!==200&&(k=p.message||p.data,k&&m.ZP.error({content:k,style:{maxWidth:500,margin:"0 auto"}})),l.abrupt("return",p);case 15:l.prev=15,l.t0=l.catch(9);case 17:return l.abrupt("return",d);case 18:return l.abrupt("return",d);case 19:case"end":return l.stop()}},a,null,[[9,15]])}));return function(a){return u.apply(this,arguments)}}(),f);var w=P}}]);
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[4216],{947:function(C,s,e){e.r(s);var c=e(25359),h=e.n(c),v=e(49811),P=e.n(v),_=e(54306),p=e.n(_),r=e(63313),T=e.n(r),g=e(67393),E=e(9835),b=e(84163),f=e(22159),y=e(95176),n=e(5558),a=e(11527),i=function(o){var d=o.ids,k=o.handleCancel,t=o.visible,w=g.Z.useForm(),U=p()(w,1),M=U[0],W=(0,r.useState)(!1),q=p()(W,2),R=q[0],D=q[1],I=function(){var B=P()(h()().mark(function m(K){var O,A,L;return h()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return D(!0),l.prev=1,l.next=4,y.W.put("".concat(n.Z.apiPrefix,"envs/name"),{ids:d,name:K.name});case 4:O=l.sent,A=O.code,L=O.data,A===200&&(E.ZP.success("\u66F4\u65B0\u73AF\u5883\u53D8\u91CF\u540D\u79F0\u6210\u529F"),k()),D(!1),l.next=14;break;case 11:l.prev=11,l.t0=l.catch(1),D(!1);case 14:case"end":return l.stop()}},m,null,[[1,11]])}));return function(K){return B.apply(this,arguments)}}();return(0,r.useEffect)(function(){M.resetFields()},[d,t]),(0,a.jsx)(b.Z,{title:"\u4FEE\u6539\u73AF\u5883\u53D8\u91CF\u540D\u79F0",open:t,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){M.validateFields().then(function(m){I(m)}).catch(function(m){console.log("Validate Failed:",m)})},onCancel:function(){return k()},confirmLoading:R,children:(0,a.jsx)(g.Z,{form:M,layout:"vertical",name:"edit_name_modal",children:(0,a.jsx)(g.Z.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u65B0\u7684\u73AF\u5883\u53D8\u91CF\u540D\u79F0"}],children:(0,a.jsx)(f.Z,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u7684\u73AF\u5883\u53D8\u91CF\u540D\u79F0"})})})})};s.default=i},5558:function(C,s){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:"pushMe",label:"PushMe"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],pushMe:[{label:"pushMeKey",tip:"PushMe\u7684Key\uFF0Chttps://push.i-i.me/",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
|
|
2
|
-
`},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
|
|
3
|
-
Custom-Header2: Header2`},{label:"webhookBody",tip:"\u8BF7\u6C42\u4F53\u683C\u5F0Fkey1: value1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",placeholder:`key1: $title
|
|
4
|
-
key2: $content`}]},documentTitleMap:{"/login":"\u767B\u5F55","/initialization":"\u521D\u59CB\u5316","/crontab":"\u5B9A\u65F6\u4EFB\u52A1","/env":"\u73AF\u5883\u53D8\u91CF","/subscription":"\u8BA2\u9605\u7BA1\u7406","/config":"\u914D\u7F6E\u6587\u4EF6","/script":"\u811A\u672C\u7BA1\u7406","/diff":"\u5BF9\u6BD4\u5DE5\u5177","/log":"\u65E5\u5FD7\u7BA1\u7406","/setting":"\u7CFB\u7EDF\u8BBE\u7F6E","/error":"\u9519\u8BEF\u65E5\u5FD7","/dependence":"\u4F9D\u8D56\u7BA1\u7406"},dependenceTypes:["nodejs","python3","linux"]}},95176:function(C,s,e){e.d(s,{W:function(){return y}});var c=e(25359),h=e.n(c),v=e(49811),P=e.n(v),_=e(9835),p=e(5558),r=e(87075),T=e(73669);_.ZP.config({duration:2});var g=Date.now(),E=function(a){if(a.response){var i=a.response.data?a.response.data.message||a.message||a.response.data:a.response.statusText,u=a.response.status;[502,504].includes(u)?r.history.push("/error"):u===401?r.history.location.pathname!=="/login"&&(_.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(p.Z.authKey),r.history.push("/login")):_.ZP.error({content:i,style:{maxWidth:500,margin:"0 auto"}})}else console.log(a.message);return Promise.reject(a)},b=T.Z.create({timeout:6e4,params:{t:g}}),f=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];b.interceptors.request.use(function(n){var a=localStorage.getItem(p.Z.authKey);return a&&!f.includes(n.url)&&(n.headers.Authorization="Bearer ".concat(a)),n}),b.interceptors.response.use(function(){var n=P()(h()().mark(function a(i){var u,o,d;return h()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(u=i.status,![502,504].includes(u)){t.next=5;break}r.history.push("/error"),t.next=18;break;case 5:if(u!==401){t.next=9;break}r.history.location.pathname!=="/login"&&(localStorage.removeItem(p.Z.authKey),r.history.push("/login")),t.next=18;break;case 9:return t.prev=9,o=i.data,o.code!==200&&(d=o.message||o.data,d&&_.ZP.error({content:d,style:{maxWidth:500,margin:"0 auto"}})),t.abrupt("return",o);case 15:t.prev=15,t.t0=t.catch(9);case 17:return t.abrupt("return",i);case 18:return t.abrupt("return",i);case 19:case"end":return t.stop()}},a,null,[[9,15]])}));return function(a){return n.apply(this,arguments)}}(),E);var y=b}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[8247],{23421:function(Ee,N,r){r.d(N,{Z:function(){return z}});var s=r(14797),P=r(63313),re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},le=re,q=r(46420),L=function(K,V){return P.createElement(q.Z,(0,s.Z)((0,s.Z)({},K),{},{ref:V,icon:le}))};L.displayName="StopOutlined";var z=P.forwardRef(L)},66150:function(Ee,N,r){var s=r(54306),P=r.n(s),re=r(63313),le=r.n(re),q=r(61761),L=r(82428);N.Z=function(z,Z){var K=(0,re.useState)(0),V=P()(K,2),H=V[0],E=V[1];return(0,q.Z)(z,function(D){var B=D.target;B.classList.contains("ant-table-wrapper")||(B=D.target.querySelector(".ant-table-wrapper")),E((0,L.W9)({extraHeight:Z,target:B}))}),H}},947:function(Ee,N,r){r.r(N);var s=r(25359),P=r.n(s),re=r(49811),le=r.n(re),q=r(54306),L=r.n(q),z=r(63313),Z=r.n(z),K=r(67393),V=r(9835),H=r(84163),E=r(22159),D=r(95176),B=r(5558),k=r(11527),ce=function(j){var oe=j.ids,C=j.handleCancel,Y=j.visible,l=K.Z.useForm(),u=L()(l,1),_=u[0],v=(0,z.useState)(!1),g=L()(v,2),S=g[0],J=g[1],fe=function(){var M=le()(P()().mark(function x(F){var ue,ee,G;return P()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return J(!0),$.prev=1,$.next=4,D.W.put("".concat(B.Z.apiPrefix,"envs/name"),{ids:oe,name:F.name});case 4:ue=$.sent,ee=ue.code,G=ue.data,ee===200&&(V.ZP.success("\u66F4\u65B0\u73AF\u5883\u53D8\u91CF\u540D\u79F0\u6210\u529F"),C()),J(!1),$.next=14;break;case 11:$.prev=11,$.t0=$.catch(1),J(!1);case 14:case"end":return $.stop()}},x,null,[[1,11]])}));return function(F){return M.apply(this,arguments)}}();return(0,z.useEffect)(function(){_.resetFields()},[oe,Y]),(0,k.jsx)(H.Z,{title:"\u4FEE\u6539\u73AF\u5883\u53D8\u91CF\u540D\u79F0",open:Y,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){_.validateFields().then(function(x){fe(x)}).catch(function(x){console.log("Validate Failed:",x)})},onCancel:function(){return C()},confirmLoading:S,children:(0,k.jsx)(K.Z,{form:_,layout:"vertical",name:"edit_name_modal",children:(0,k.jsx)(K.Z.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u65B0\u7684\u73AF\u5883\u53D8\u91CF\u540D\u79F0"}],children:(0,k.jsx)(E.Z,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u7684\u73AF\u5883\u53D8\u91CF\u540D\u79F0"})})})})};N.default=ce},29060:function(Ee,N,r){r.r(N),r.d(N,{default:function(){return ve}});var s=r(25359),P=r.n(s),re=r(49811),le=r.n(re),q=r(12342),L=r.n(q),z=r(57213),Z=r.n(z),K=r(93525),V=r.n(K),H=r(54306),E=r.n(H),D=r(63313),B=r.n(D),k=r(92260),ce=r(22159),A=r(15367),j=r(2947),oe=r(51704),C=r(84163),Y=r(9835),l=r(57679),u=r(24378),_=r(60986),v=r(32132),g=r(38101),S=r(23421),J=r(13740),fe=r(59953),M=r(5558),x=r(78969),F=r(95176),ue=r(50211),ee=r(947),G=r(18141),de=r(9058),$=r(33328),be=r(66255),je=r(82428),Ce=r(87075),ge=r(66150),Re=r(59673),Te=r(90328),t=r(90943),e=r(11527),a=k.Z.Link,n=function(T){var X=T.text,R=(0,D.useState)(!1),W=E()(R,2),te=W[0],Pe=W[1],we=(0,D.useRef)(),ie=function(ne){ne==null||ne.preventDefault(),ne==null||ne.stopPropagation(),Pe(!0),pe(),we.current=window.setTimeout(function(){Pe(!1)},3e3)},pe=function(){window.clearTimeout(we.current)};return(0,e.jsx)(a,{onClick:ie,style:{marginLeft:1},children:(0,e.jsx)(t.CopyToClipboard,{text:X,children:(0,e.jsx)(A.Z,{title:te?"\u590D\u5236\u6210\u529F":"\u590D\u5236",children:te?(0,e.jsx)(Re.Z,{}):(0,e.jsx)(Te.Z,{})},"copy")})})},i=n,p=r(33503),m=["index","moveRow","className","style"],f=k.Z.Text,y=ce.Z.Search,b=function(O){return O[O.\u5DF2\u542F\u7528=0]="\u5DF2\u542F\u7528",O[O.\u5DF2\u7981\u7528=1]="\u5DF2\u7981\u7528",O}(b||{}),o=function(O){return O[O.success=0]="success",O[O.error=1]="error",O}(o||{}),se=function(O){return O[O.\u542F\u7528=0]="\u542F\u7528",O[O.\u7981\u7528=1]="\u7981\u7528",O}(se||{}),Q=function(O){return O[O.enable=0]="enable",O[O.disable=1]="disable",O}(Q||{}),_e="DragableBodyRow",me=function(){var T=(0,Ce.useOutletContext)(),X=T.headerStyle,R=T.isPhone,W=T.theme,te=[{title:"\u5E8F\u53F7",width:60,render:function(c,d,w){return(0,e.jsxs)("span",{style:{cursor:"text"},children:[w+1," "]})}},{title:"\u540D\u79F0",dataIndex:"name",key:"name",sorter:function(c,d){return c.name.localeCompare(d.name)}},{title:"\u503C",dataIndex:"value",key:"value",width:"35%",render:function(c,d){return(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,e.jsx)(A.Z,{title:c,placement:"topLeft",children:(0,e.jsx)("div",{className:"text-ellipsis",children:c})}),(0,e.jsx)(i,{text:c})]})}},{title:"\u5907\u6CE8",dataIndex:"remarks",key:"remarks",render:function(c,d){return(0,e.jsx)(A.Z,{title:c,placement:"topLeft",children:(0,e.jsx)("div",{className:"text-ellipsis",children:c})})}},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"timestamp",key:"timestamp",width:165,ellipsis:{showTitle:!1},sorter:{compare:function(c,d){var w=new Date(c.updatedAt||c.timestamp).getTime(),I=new Date(d.updatedAt||d.timestamp).getTime();return w-I}},render:function(c,d){var w=navigator.language||navigator.languages[0],I=d.updatedAt||d.timestamp,U=new Date(I).toLocaleString(w,{hour12:!1}).replace(" 24:"," 00:");return(0,e.jsx)(A.Z,{placement:"topLeft",title:U,trigger:["hover","click"],children:(0,e.jsx)("span",{children:U})})}},{title:"\u72B6\u6001",key:"status",dataIndex:"status",width:70,filters:[{text:"\u5DF2\u542F\u7528",value:0},{text:"\u5DF2\u7981\u7528",value:1}],onFilter:function(c,d){return d.status===c},render:function(c,d,w){return(0,e.jsx)(j.Z,{size:"middle",style:{cursor:"text"},children:(0,e.jsx)(oe.Z,{color:o[d.status],style:{marginRight:0},children:b[d.status]})})}},{title:"\u64CD\u4F5C",key:"action",width:120,render:function(c,d,w){var I=!R;return(0,e.jsxs)(j.Z,{size:"middle",children:[(0,e.jsx)(A.Z,{title:I?"\u7F16\u8F91":"",children:(0,e.jsx)("a",{onClick:function(){return dt(d,w)},children:(0,e.jsx)(v.Z,{})})}),(0,e.jsx)(A.Z,{title:I?d.status===b.\u5DF2\u7981\u7528?"\u542F\u7528":"\u7981\u7528":"",children:(0,e.jsx)("a",{onClick:function(){return ct(d,w)},children:d.status===b.\u5DF2\u7981\u7528?(0,e.jsx)(g.Z,{}):(0,e.jsx)(S.Z,{})})}),(0,e.jsx)(A.Z,{title:I?"\u5220\u9664":"",children:(0,e.jsx)("a",{onClick:function(){return _t(d,w)},children:(0,e.jsx)(J.Z,{})})})]})}}],Pe=(0,D.useState)([]),we=E()(Pe,2),ie=we[0],pe=we[1],De=(0,D.useState)(!0),ne=E()(De,2),Ie=ne[0],Se=ne[1],Fe=(0,D.useState)(!1),Me=E()(Fe,2),et=Me[0],Ne=Me[1],tt=(0,D.useState)(!1),We=E()(tt,2),nt=We[0],Ue=We[1],rt=(0,D.useState)(),Ke=E()(rt,2),ot=Ke[0],Ve=Ke[1],at=(0,D.useState)([]),He=E()(at,2),ye=He[0],ke=He[1],lt=(0,D.useState)(""),Ge=E()(lt,2),$e=Ge[0],ut=Ge[1],it=(0,D.useState)(!1),ze=E()(it,2),st=ze[0],Ze=ze[1],Ye=(0,D.useRef)(),Be=(0,ge.Z)(Ye,59),xe=function(){Se(!0),F.W.get("".concat(M.Z.apiPrefix,"envs?searchValue=").concat($e)).then(function(c){var d=c.code,w=c.data;d===200&&pe(w)}).finally(function(){return Se(!1)})},ct=function(c,d){C.Z.confirm({title:"\u786E\u8BA4".concat(c.status===b.\u5DF2\u7981\u7528?"\u542F\u7528":"\u7981\u7528"),content:(0,e.jsxs)(e.Fragment,{children:["\u786E\u8BA4",c.status===b.\u5DF2\u7981\u7528?"\u542F\u7528":"\u7981\u7528","Env"," ",(0,e.jsx)(f,{style:{wordBreak:"break-all"},type:"warning",children:c.value})," ","\u5417"]}),onOk:function(){F.W.put("".concat(M.Z.apiPrefix,"envs/").concat(c.status===b.\u5DF2\u7981\u7528?"enable":"disable"),[c.id]).then(function(I){var U=I.code,he=I.data;if(U===200){Y.ZP.success("".concat(c.status===b.\u5DF2\u7981\u7528?"\u542F\u7528":"\u7981\u7528","\u6210\u529F"));var Oe=c.status===b.\u5DF2\u7981\u7528?b.\u5DF2\u542F\u7528:b.\u5DF2\u7981\u7528,Le=V()(ie);Le.splice(d,1,Z()(Z()({},c),{},{status:Oe})),pe(Le)}})},onCancel:function(){console.log("Cancel")}})},ft=function(){Ve(null),Ne(!0)},dt=function(c,d){Ve(c),Ne(!0)},_t=function(c,d){C.Z.confirm({title:"\u786E\u8BA4\u5220\u9664",content:(0,e.jsxs)(e.Fragment,{children:["\u786E\u8BA4\u5220\u9664\u53D8\u91CF"," ",(0,e.jsxs)(f,{style:{wordBreak:"break-all"},type:"warning",children:[c.name,": ",c.value]})," ","\u5417"]}),onOk:function(){F.W.delete("".concat(M.Z.apiPrefix,"envs"),{data:[c.id]}).then(function(I){var U=I.code,he=I.data;if(U===200){Y.ZP.success("\u5220\u9664\u6210\u529F");var Oe=V()(ie);Oe.splice(d,1),pe(Oe)}})},onCancel:function(){console.log("Cancel")}})},vt=function(c){Ne(!1),xe()},pt=function(c){Ue(!1),xe()},mt=(0,p.u)(function(){return{scroll:{y:Be}}},[Be]),Je=E()(mt,2),ht=Je[0],gt=Je[1],yt=B().forwardRef(function(h,c){var d=h.index,w=h.moveRow,I=h.className,U=h.style,he=L()(h,m),Oe=(0,G.L)({accept:_e,collect:function(Ae){var Lt=Ae.getItem()||{},qe=Lt.index;return qe===d?{}:{isOver:Ae.isOver(),dropClassName:qe<d?" drop-over-downward":" drop-over-upward"}},drop:function(Ae){w(Ae.index,d)}}),Le=E()(Oe,2),ae=Le[0],Tt=ae.isOver,Rt=ae.dropClassName,It=Le[1],St=(0,de.c)({type:_e,item:{index:d},collect:function(Ae){return{isDragging:Ae.isDragging()}}}),Mt=E()(St,2),xt=Mt[1];return(0,D.useEffect)(function(){It(xt(c))},[c]),(0,e.jsx)("tr",Z()({ref:c,className:"".concat(I).concat(Tt?Rt:""),style:Z()({cursor:"move"},U)},he))});(0,D.useEffect)(function(){return gt({body:{row:yt}})},[]);var Ot=(0,D.useCallback)(function(h,c){if(h!==c){var d=ie[h];F.W.put("".concat(M.Z.apiPrefix,"envs/").concat(d.id,"/move"),{fromIndex:h,toIndex:c}).then(function(w){var I=w.code,U=w.data;if(I===200){var he=V()(ie);he.splice(h,1),he.splice(c,0,Z()(Z()({},d),U)),pe(V()(he))}})}},[ie]),Et=function(c){ke(c)},bt={selectedRowKeys:ye,onChange:Et},Ct=function(){C.Z.confirm({title:"\u786E\u8BA4\u5220\u9664",content:(0,e.jsx)(e.Fragment,{children:"\u786E\u8BA4\u5220\u9664\u9009\u4E2D\u7684\u53D8\u91CF\u5417"}),onOk:function(){F.W.delete("".concat(M.Z.apiPrefix,"envs"),{data:ye}).then(function(d){var w=d.code,I=d.data;w===200&&(Y.ZP.success("\u6279\u91CF\u5220\u9664\u6210\u529F"),ke([]),xe())})},onCancel:function(){console.log("Cancel")}})},Qe=function(c){C.Z.confirm({title:"\u786E\u8BA4".concat(se[c]),content:(0,e.jsxs)(e.Fragment,{children:["\u786E\u8BA4",se[c],"\u9009\u4E2D\u7684\u53D8\u91CF\u5417"]}),onOk:function(){F.W.put("".concat(M.Z.apiPrefix,"envs/").concat(Q[c]),ye).then(function(w){var I=w.code,U=w.data;I===200&&xe()})},onCancel:function(){console.log("Cancel")}})},Pt=function(){var c=ie.filter(function(d){return ye.includes(d.id)}).map(function(d){return{value:d.value,name:d.name,remarks:d.remarks}});(0,je.w7)("env.json",JSON.stringify(c))},wt=function(){Ue(!0)},Dt=function(c){ut(c.trim())},jt={accept:"application/json",beforeUpload:function(){var h=le()(P()().mark(function d(w){var I,U,he,Oe;return P()().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return I=new FormData,I.append("env",w),Ze(!0),ae.prev=3,ae.next=6,F.W.post("".concat(M.Z.apiPrefix,"envs/upload"),I);case 6:U=ae.sent,he=U.code,Oe=U.data,he===200&&(Y.ZP.success("\u6210\u529F\u4E0A\u4F20".concat(Oe.length,"\u4E2A\u73AF\u5883\u53D8\u91CF")),xe()),Ze(!1),ae.next=16;break;case 13:ae.prev=13,ae.t0=ae.catch(3),Ze(!1);case 16:return ae.abrupt("return",!1);case 17:case"end":return ae.stop()}},d,null,[[3,13]])}));function c(d){return h.apply(this,arguments)}return c}(),fileList:[]};return(0,D.useEffect)(function(){xe()},[$e]),(0,e.jsxs)(x.ZP,{className:"ql-container-wrapper env-wrapper",title:"\u73AF\u5883\u53D8\u91CF",extra:[(0,e.jsx)(y,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0/\u503C/\u5907\u6CE8",style:{width:"auto"},enterButton:!0,loading:Ie,onSearch:Dt}),(0,e.jsx)(l.Z,Z()(Z()({},jt),{},{children:(0,e.jsx)(u.Z,{type:"primary",icon:(0,e.jsx)(fe.Z,{}),loading:st,children:"\u5BFC\u5165"})})),(0,e.jsx)(u.Z,{type:"primary",onClick:function(){return ft()},children:"\u65B0\u5EFA\u53D8\u91CF"},"2")],header:{style:X},children:[(0,e.jsxs)("div",{ref:Ye,children:[ye.length>0&&(0,e.jsxs)("div",{style:{marginBottom:16},children:[(0,e.jsx)(u.Z,{type:"primary",style:{marginBottom:5},onClick:wt,children:"\u6279\u91CF\u4FEE\u6539\u53D8\u91CF\u540D\u79F0"}),(0,e.jsx)(u.Z,{type:"primary",style:{marginBottom:5,marginLeft:8},onClick:Ct,children:"\u6279\u91CF\u5220\u9664"}),(0,e.jsx)(u.Z,{type:"primary",onClick:function(){return Pt()},style:{marginLeft:8,marginRight:8},children:"\u6279\u91CF\u5BFC\u51FA"}),(0,e.jsx)(u.Z,{type:"primary",onClick:function(){return Qe(0)},style:{marginLeft:8,marginBottom:5},children:"\u6279\u91CF\u542F\u7528"}),(0,e.jsx)(u.Z,{type:"primary",onClick:function(){return Qe(1)},style:{marginLeft:8,marginRight:8},children:"\u6279\u91CF\u7981\u7528"}),(0,e.jsxs)("span",{style:{marginLeft:8},children:["\u5DF2\u9009\u62E9",(0,e.jsx)("a",{children:ye==null?void 0:ye.length}),"\u9879"]})]}),(0,e.jsx)($.W,{backend:be.PD,children:(0,e.jsx)(_.Z,{columns:te,rowSelection:bt,pagination:!1,dataSource:ie,rowKey:"id",size:"middle",scroll:{x:1e3,y:Be},components:ht,loading:Ie,onRow:function(c,d){return{index:d,moveRow:Ot}}})})]}),(0,e.jsx)(ue.default,{visible:et,handleCancel:vt,env:ot}),(0,e.jsx)(ee.default,{visible:nt,handleCancel:pt,ids:ye})]})},ve=me},50211:function(Ee,N,r){r.r(N);var s=r(25359),P=r.n(s),re=r(57213),le=r.n(re),q=r(49811),L=r.n(q),z=r(54306),Z=r.n(z),K=r(63313),V=r.n(K),H=r(67393),E=r(9835),D=r(84163),B=r(22159),k=r(84468),ce=r(95176),A=r(5558),j=r(11527),oe=function(Y){var l=Y.env,u=Y.handleCancel,_=Y.visible,v=H.Z.useForm(),g=Z()(v,1),S=g[0],J=(0,K.useState)(!1),fe=Z()(J,2),M=fe[0],x=fe[1],F=function(){var ue=L()(P()().mark(function ee(G){var de,$,be,je,Ce,ge,Re,Te,t,e;return P()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return x(!0),de=G.value,$=G.split,be=G.name,je=G.remarks,Ce=l?"put":"post",l?ge=le()(le()({},G),{},{id:l.id}):$==="1"?(Re=de.includes("&")?"&":`
|
|
2
|
-
`,ge=de.split(Re).map(function(i){return{name:be,value:i,remarks:je}})):ge=[{value:de,name:be,remarks:je}],n.prev=4,n.next=7,ce.W[Ce]("".concat(A.Z.apiPrefix,"envs"),ge);case 7:Te=n.sent,t=Te.code,e=Te.data,t===200&&(E.ZP.success(l?"\u66F4\u65B0\u53D8\u91CF\u6210\u529F":"\u65B0\u5EFA\u53D8\u91CF\u6210\u529F"),u(e)),x(!1),n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),x(!1);case 17:case"end":return n.stop()}},ee,null,[[4,14]])}));return function(G){return ue.apply(this,arguments)}}();return(0,K.useEffect)(function(){S.resetFields()},[l,_]),(0,j.jsx)(D.Z,{title:l?"\u7F16\u8F91\u53D8\u91CF":"\u65B0\u5EFA\u53D8\u91CF",open:_,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){S.validateFields().then(function(ee){F(ee)}).catch(function(ee){console.log("Validate Failed:",ee)})},onCancel:function(){return u()},confirmLoading:M,children:(0,j.jsxs)(H.Z,{form:S,layout:"vertical",name:"env_modal",initialValues:l,children:[(0,j.jsx)(H.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,j.jsx)(B.Z,{placeholder:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u540D\u79F0"})}),!l&&(0,j.jsx)(H.Z.Item,{name:"split",label:"\u81EA\u52A8\u62C6\u5206",initialValue:"0",tooltip:"\u591A\u4E2A\u4F9D\u8D56\u662F\u5426\u6362\u884C\u5206\u5272",children:(0,j.jsxs)(k.ZP.Group,{children:[(0,j.jsx)(k.ZP,{value:"1",children:"\u662F"}),(0,j.jsx)(k.ZP,{value:"0",children:"\u5426"})]})}),(0,j.jsx)(H.Z.Item,{name:"value",label:"\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u503C",whitespace:!0}],children:(0,j.jsx)(B.Z.TextArea,{rows:4,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u503C"})}),(0,j.jsx)(H.Z.Item,{name:"remarks",label:"\u5907\u6CE8",children:(0,j.jsx)(B.Z,{placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"})})]})})};N.default=oe},92015:function(Ee,N,r){function s(l){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},s(l)}Object.defineProperty(N,"__esModule",{value:!0}),N.CopyToClipboard=void 0;var P=q(r(63313)),re=q(r(874)),le=["text","onCopy","options","children"];function q(l){return l&&l.__esModule?l:{default:l}}function L(l,u){var _=Object.keys(l);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);u&&(v=v.filter(function(g){return Object.getOwnPropertyDescriptor(l,g).enumerable})),_.push.apply(_,v)}return _}function z(l){for(var u=1;u<arguments.length;u++){var _=arguments[u]!=null?arguments[u]:{};u%2?L(Object(_),!0).forEach(function(v){C(l,v,_[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(_)):L(Object(_)).forEach(function(v){Object.defineProperty(l,v,Object.getOwnPropertyDescriptor(_,v))})}return l}function Z(l,u){if(l==null)return{};var _=K(l,u),v,g;if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(l);for(g=0;g<S.length;g++)v=S[g],!(u.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(l,v)&&(_[v]=l[v])}return _}function K(l,u){if(l==null)return{};var _={},v=Object.keys(l),g,S;for(S=0;S<v.length;S++)g=v[S],!(u.indexOf(g)>=0)&&(_[g]=l[g]);return _}function V(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function H(l,u){for(var _=0;_<u.length;_++){var v=u[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(l,v.key,v)}}function E(l,u,_){return u&&H(l.prototype,u),_&&H(l,_),Object.defineProperty(l,"prototype",{writable:!1}),l}function D(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(u&&u.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),u&&B(l,u)}function B(l,u){return B=Object.setPrototypeOf||function(v,g){return v.__proto__=g,v},B(l,u)}function k(l){var u=j();return function(){var v=oe(l),g;if(u){var S=oe(this).constructor;g=Reflect.construct(v,arguments,S)}else g=v.apply(this,arguments);return ce(this,g)}}function ce(l,u){if(u&&(s(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(l)}function A(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function j(){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(l){return!1}}function oe(l){return oe=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},oe(l)}function C(l,u,_){return u in l?Object.defineProperty(l,u,{value:_,enumerable:!0,configurable:!0,writable:!0}):l[u]=_,l}var Y=function(l){D(_,l);var u=k(_);function _(){var v;V(this,_);for(var g=arguments.length,S=new Array(g),J=0;J<g;J++)S[J]=arguments[J];return v=u.call.apply(u,[this].concat(S)),C(A(v),"onClick",function(fe){var M=v.props,x=M.text,F=M.onCopy,ue=M.children,ee=M.options,G=P.default.Children.only(ue),de=(0,re.default)(x,ee);F&&F(x,de),G&&G.props&&typeof G.props.onClick=="function"&&G.props.onClick(fe)}),v}return E(_,[{key:"render",value:function(){var g=this.props,S=g.text,J=g.onCopy,fe=g.options,M=g.children,x=Z(g,le),F=P.default.Children.only(M);return P.default.cloneElement(F,z(z({},x),{},{onClick:this.onClick}))}}]),_}(P.default.PureComponent);N.CopyToClipboard=Y,C(Y,"defaultProps",{onCopy:void 0,options:void 0})},90943:function(Ee,N,r){var s=r(92015),P=s.CopyToClipboard;P.CopyToClipboard=P,Ee.exports=P},33503:function(Ee,N,r){r.d(N,{u:function(){return Te}});var s=r(63313);function P(t){"@babel/helpers - typeof";return P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(t)}var re=["style","context"],le=["ctx"];function q(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),a.push.apply(a,n)}return a}function L(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?q(Object(a),!0).forEach(function(n){z(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):q(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}function z(t,e,a){return e=Z(e),e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Z(t){var e=K(t,"string");return P(e)==="symbol"?e:String(e)}function K(t,e){if(P(t)!=="object"||t===null)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var n=a.call(t,e||"default");if(P(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function V(t,e){if(t==null)return{};var a=H(t,e),n,i;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(i=0;i<p.length;i++)n=p[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function H(t,e){if(t==null)return{};var a={},n=Object.keys(t),i,p;for(p=0;p<n.length;p++)i=n[p],!(e.indexOf(i)>=0)&&(a[i]=t[i]);return a}function E(){return E=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},E.apply(this,arguments)}var D=0,B=1,k=2,ce=8,A=64,j=0,oe=1,C;(function(t){t[t.INIT=1]="INIT",t[t.LOADED=2]="LOADED",t[t.RUNNING=4]="RUNNING"})(C||(C={}));function Y(){return{vt_state:C.INIT,possible_hight_per_tr:-1,computed_h:0,re_computed:0,row_height:[],row_count:0,prev_row_count:0,_offset_top:0,_offset_head:0,_offset_tail:1,WH:0,top:0,left:0,evt:D,end:!1,final_top:0,f_final_top:oe,update_count:0,indexMap:new WeakMap,HND_PAINT:0,retry_count:5}}function l(t){if(Object.prototype.hasOwnProperty.call(t,"CLICK~__DIAGNOSIS__"))return;function e(n){for(var i=0,p=0;p<t.row_count;++p)i+=t.row_height[p];var m,f;i>t.computed_h?(m="color:rgb(15, 179, 9)",f="lower than expected"):i<t.computed_h?(m="color:rgb(202, 61, 81)",f="higher than expected"):(m="color:rgba(0, 0, 0, 0.85)",f="normal");var y=t.computed_h-i;return n&&(console.debug("OoOoOoO DIAGNOSIS OoOoOoO"),console.debug("%c%d(%d)(".concat(f,")"),m,i,t.computed_h-i),console.debug("OoOoOoOoOoOoOOoOoOoOoOoOo")),y}Object.defineProperty(t,"CLICK~__DIAGNOSIS__",{get:function(){e(!0)},configurable:!1,enumerable:!1});function a(){if(e(!1)!==0){window.alert("vt: an error occurred!");return}window.requestIdleCallback?window.requestIdleCallback(a):window.setTimeout(a)}t.debug&&a()}function u(t,e){if(t.debug){if(e[0]==="+")return console.debug(e.slice(1));var a=new Date,n="".concat(a.toLocaleTimeString(),".").concat(a.getMilliseconds());console.debug("%c[".concat(t.id,"][").concat(n,"][").concat(e,"]"),"color:#a00",t)}}var _=s.forwardRef(function(e,a){return s.createElement("table",E({ref:a},e))});function v(t){return s.createElement("tbody",t)}var g=s.forwardRef(function(e,a){return s.createElement("tr",E({ref:a},e))});function S(t,e){var a=t.row_height,n=t.row_count,i=t.overscanRowCount;t._scroll_y=t.scroll.y,typeof t._scroll_y=="number"?t._y=t._scroll_y:(typeof t._scroll_y=="string"||console.assert(!1,"VT: did you forget to set `scroll.y`?"),t._y=t.wrap_inst.current.parentElement.offsetHeight),console.assert(t._y>=0);var p=0,m=0,f=0,y=0;if(e===-1&&n>0){for(m=n;m>0&&y<t._y;)y+=a[--m];return[0|m,0|n,0|t.computed_h-y]}for(;m<n&&p<e;++m)p+=a[m];for(f=m;f<n&&y<t._y;++f)y+=a[f];for(var b=i<0?0:i;m>0&&b--;)p-=a[--m];return f+=i,f>n&&(f=n),[0|m,0|f,0|p]}function J(t,e,a,n){t._offset_top=0|e,t._offset_head=0|a,t._offset_tail=0|n}function fe(t,e,a,n,i){t.top=e,t.left=a,t.evt=n,t.end=i}function M(t,e,a){if(t.wrap_inst.current){var n=t.wrap_inst.current.parentElement;n.scrollTop=e,n.scrollLeft=Math.max(a,n.scrollLeft)}}function x(t){if(!t.HND_PAINT){var e=t.cq,a=t.wrap_inst,n=function(){t.HND_PAINT=0;for(var p=0;p<e.length;++p)e[p].index>=t._offset_head&&e[p].index<t._offset_tail&&e[p].func();if(!(t.vt_state!==C.RUNNING||!a.current)){var m=t.computed_h;if(t.WH!==m){t.WH=m;var f=a.current.style;f.height=m?(f.maxHeight=m+"px",f.maxHeight):(f.maxHeight="unset",f.maxHeight),t.on_update_wrap_style()}}};t.HND_PAINT=t.evt===ce?window.requestAnimationFrame(n):window.setTimeout(n)}}function F(t,e,a,n){var i=e-a,p=new Array(i).fill(n);t.row_height=t.row_height.concat(p),t.computed_h+=i*n}function ue(t,e,a){if(e===0){t.computed_h=0,t.row_height.length=0,t.top=0;return}for(var n=t.row_height,i=0,p=e;p<a;++p)i+=n[p];t.computed_h-=i}function ee(t,e){t.re_computed=e-t.row_count,t.prev_row_count=t.row_count,t.row_count=e}var G=function(e,a){var n=e.style,i=e.context,p=V(e,re),m=(0,s.useState)(0),f=(0,s.useRef)(function(){}),y,b=(0,s.useMemo)(function(){return s.createRef()},[]),o=(0,s.useContext)(i);(0,s.useMemo)(function(){Object.assign(o,Y()),o.wrap_inst&&o.wrap_inst.current&&o.wrap_inst.current.parentElement.removeEventListener("scroll",y),o.wrap_inst=b,o.top=o.initTop,o.on_update_wrap_style=function(){o._y===0&&"".concat(o._scroll_y).length&&y({flag:A,target:{scrollTop:o.top,scrollLeft:o.left}})},o.cq=[];var T=0,X=0;o.cq.push=function(R){if(o.vt_state===C.RUNNING){var W=o._offset_tail-o._offset_head+o.overscanRowCount*2+10;return X=Math.max(X,W),T>X&&(T=0),o.cq[T++]=R,0}}},[]);var se=(0,s.useRef)([]).current,Q;y=(0,s.useCallback)(function(T){if(o.vt_state===C.RUNNING){var X=performance.now();if(T){if("flag"in T)se.push(T);else{var R=T.target,W=Math.max(R.scrollTop,0);se.push({target:{scrollTop:W,scrollLeft:R.scrollLeft},end:R.scrollHeight-R.clientHeight===Math.round(W),flag:ce})}if(o.f_final_top===j)return Q(X)}o.HND_RAF||(o.HND_RAF=window.setTimeout(function(){return Promise.resolve().then(function(){return Q(X)})}))}},[]),Q=(0,s.useCallback)(function(T){o.HND_RAF=0;var X=performance.now();if(X-T>10&&o.retry_count-- >0){y();return}if(o.retry_count=5,o.vt_state===C.RUNNING){var R=se,W;if(R.length){W=R.pop(),R.length=0;var te=W.target.scrollTop,Pe=W.target.scrollLeft,we=W.flag;u(o,"top: ".concat(te,", left: ").concat(Pe));var ie=S(o,o.f_final_top===j?o.final_top:te),pe=ie[0],De=ie[1],ne=ie[2],Ie=o._offset_head,Se=o._offset_tail,Fe=o._offset_top,Me=!1;switch(we){case B:u(o,"SCROLLEVT_INIT");break;case A:u(o,"SCROLLEVT_BY_HOOK"),pe===Ie&&De===Se&&ne===Fe?(o.f_final_top=oe,o.final_top===-1&&(te=o.computed_h-o._y),Me=!0):o.final_top===-1&&(te=ne);break;case k:if(pe===Ie&&De===Se&&ne===Fe)return;u(o,"SCROLLEVT_RECOMPUTE");break;case ce:if(pe===Ie&&De===Se&&ne===Fe)return;u(o,"SCROLLEVT_NATIVE"),o.onScroll&&o.onScroll({top:te,left:Pe,isEnd:W.end}),Me=W.end;break}J(o,ne,pe,De),fe(o,te,Pe,we,Me),m[1](++o.update_count)}}},[]),(0,s.useImperativeHandle)(a,function(){var T=function(R){o.f_final_top=j,o.final_top=R,y({target:{scrollTop:R,scrollLeft:-1},flag:A})};return{scrollTo:function(R){f.current=function(){return T(R)},f.current()},scrollToIndex:function(R){f.current=function(){R>o.row_count-1&&(R=o.row_count-1),R<0&&(R=0);for(var W=0,te=0;te<R;++te)W+=o.row_height[te];T(W)},f.current()}}},[]),(0,s.useEffect)(function(){var T=b.current.parentElement;try{T.addEventListener("scroll",y,{passive:!0})}catch(X){T.addEventListener("scroll",y,!1)}},[b.current]),(0,s.useEffect)(function(){y({flag:A,target:{scrollLeft:o.left,scrollTop:o.top}})},[o.scroll.y]),(0,s.useEffect)(function(){switch(o.evt){case A:o.f_final_top===j?f.current():M(o,o.top,o.left);break;case B:case k:M(o,o.top,o.left);break}},[m[0]]),(0,s.useEffect)(function(){switch(o.vt_state){case C.LOADED:o.vt_state=C.RUNNING,y({target:{scrollTop:o.top,scrollLeft:0},flag:A});break;case C.RUNNING:o.re_computed!==0&&(o.re_computed=0,y({target:{scrollTop:o.top,scrollLeft:o.left},flag:k}));break}});var _e=(0,s.useMemo)(function(){return{width:n.width,minWidth:"100%",position:"relative",transform:"translate(0)"}},[n.width]),me=(0,s.useMemo)(function(){return L(L({},n),{},{width:void 0,position:"relative",top:o._offset_top,transform:"translate(0)"})},[o._offset_top]),ve=(0,s.useMemo)(function(){return L({},o)},[o.update_count]),O=o.components.table;return s.createElement("div",{ref:b,style:_e},s.createElement(i.Provider,{value:ve},s.createElement(O,E({},p,{style:me}))))},de=function(e){var a=e.children,n=e.className,i=e.ctx,p=a[0],m=a[1],f=Array.isArray(m)?m.length:0,y=i._offset_head,b=i._offset_tail,o=[];switch(i.vt_state){case C.INIT:f>=0&&(console.assert(y===0),console.assert(b===1),Array.isArray(m)?(o=m.slice(y,b),i.indexMap.set(o[0].props.record,0)):o=m,i.re_computed=f,i.prev_row_count=f,i.row_count=f);break;case C.RUNNING:{if(b>f){var se=b-f;b-=se,y-=se,y<0&&(y=0),b<0&&(b=0),J(i,i._offset_top,y,b)}i.row_count!==f&&ee(i,f),f=i.row_count;var Q=i.prev_row_count;if(f<Q)ue(i,f,Q);else if(f>Q){var _e=i.row_height;f-_e.length>0?F(i,f,Q,i.possible_hight_per_tr):(_e.fill(i.possible_hight_per_tr,Q,f),i.computed_h+=i.possible_hight_per_tr*(f-Q))}if(f){var me=y;o=m.slice(me,b),o.forEach(function(O){return i.indexMap.set(O.props.record,me++)})}else o=m;i.prev_row_count=i.row_count}break;case C.LOADED:console.assert(!1);break}var ve=i.components.body.wrapper;return s.createElement(ve,{className:n},p,o)},$=function(e){var a=s.createRef(),n=e.ctx,i=V(e,le),p=e.children,m=n.components.body.row;if(!Array.isArray(p))return s.createElement(m,i,p);var f=p[0].props,y=n.indexMap.get(f.record),b=(0,s.useRef)(y),o=(0,s.useMemo)(function(){return".".concat(f.prefixCls,"-expanded-row")},[f.prefixCls]),se=performance.now();return(0,s.useLayoutEffect)(function(){var Q=performance.now();return u(n,"+idx ".concat(y," tooks ").concat(Q-se," ms")),n.vt_state===C.RUNNING?x(n):(n.possible_hight_per_tr=a.current.offsetHeight,F(n,n.row_count,0,n.possible_hight_per_tr),x(n),n.vt_state=C.LOADED),function(){x(n)}},[]),(0,s.useEffect)(function(){n.cq.push({index:y,func:function(){var _e=a.current;if(_e){for(var me=_e.offsetHeight,ve=_e.nextSibling;ve&&ve.matches(o);)me+=ve.offsetHeight,ve=ve.nextSibling;var O=n.row_height[y],T=n.row_height[b.current];n.computed_h-=O,n.computed_h+=T,n.computed_h+=me-T,n.row_height[y]=me}}}),x(n)}),s.createElement(m,E({},i,{ref:a}))};function be(t,e){var a=e.table,n=e.body,i=e.header;t.components.body=L(L({},t.components.body),n),n&&n.cell&&(t._vtcomponents.body.cell=n.cell),i&&(t.components.header=i,t._vtcomponents.header=i),a&&(t.components.table=a)}function je(t,e){var a=(0,s.useRef)(s.createContext({})).current,n=(0,s.useContext)(a),i=(0,s.useRef)({scrollTo:function(m){},scrollToIndex:function(m){}});return(0,s.useMemo)(function(){return Object.assign(n,{id:(+new Date).toString(36).slice(4),initTop:0,overscanRowCount:5,debug:!1,ref:i},t())},e),(0,s.useMemo)(function(){var p=s.forwardRef(G);n._vtcomponents={table:function(f){return s.createElement(p,E({},f,{context:a,ref:n.ref}))},body:{wrapper:function(f){return s.createElement(a.Consumer,null,function(){return s.createElement(de,E({},f,{ctx:n}))})},row:function(f){return s.createElement($,E({},f,{ctx:n}))}}},n.components={},be(n,{table:_,body:{wrapper:v,row:g}}),n.vt_state=C.INIT},[]),n}function Ce(t){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(t)}var ge=1,Re=2;(function(){var t=(typeof window=="undefined"?"undefined":Ce(window))==="object"&&window instanceof Window?ge:Re;if(t&ge&&!Object.hasOwnProperty.call(window,"requestAnimationFrame")&&!window.requestAnimationFrame)throw new Error("Please using the modern browers or appropriate polyfill!")})();function Te(t,e){var a=je(t,e||[]);return[a._vtcomponents,function(n){return be(a,n)},a.ref]}console.log("wubostc/virtualized-table-for-antd")}}]);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[222],{50211:function(Y,C,e){e.r(C);var y=e(25359),_=e.n(y),O=e(57213),h=e.n(O),M=e(49811),R=e.n(M),n=e(54306),B=e.n(n),f=e(63313),J=e.n(f),g=e(67393),S=e(9835),c=e(84163),m=e(22159),l=e(84468),b=e(95176),v=e(5558),s=e(11527),k=function(i){var E=i.env,T=i.handleCancel,w=i.visible,H=g.Z.useForm(),F=B()(H,1),q=F[0],W=(0,f.useState)(!1),A=B()(W,2),z=A[0],a=A[1],o=function(){var d=R()(_()().mark(function t(r){var u,x,I,Z,K,U,X,$,N,Q;return _()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a(!0),u=r.value,x=r.split,I=r.name,Z=r.remarks,K=E?"put":"post",E?U=h()(h()({},r),{},{id:E.id}):x==="1"?(X=u.includes("&")?"&":`
|
|
2
|
-
`,U=u.split(X).map(function(ae){return{name:I,value:ae,remarks:Z}})):U=[{value:u,name:I,remarks:Z}],p.prev=4,p.next=7,b.W[K]("".concat(v.Z.apiPrefix,"envs"),U);case 7:$=p.sent,N=$.code,Q=$.data,N===200&&(S.ZP.success(E?"\u66F4\u65B0\u53D8\u91CF\u6210\u529F":"\u65B0\u5EFA\u53D8\u91CF\u6210\u529F"),T(Q)),a(!1),p.next=17;break;case 14:p.prev=14,p.t0=p.catch(4),a(!1);case 17:case"end":return p.stop()}},t,null,[[4,14]])}));return function(r){return d.apply(this,arguments)}}();return(0,f.useEffect)(function(){q.resetFields()},[E,w]),(0,s.jsx)(c.Z,{title:E?"\u7F16\u8F91\u53D8\u91CF":"\u65B0\u5EFA\u53D8\u91CF",open:w,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){q.validateFields().then(function(t){o(t)}).catch(function(t){console.log("Validate Failed:",t)})},onCancel:function(){return T()},confirmLoading:z,children:(0,s.jsxs)(g.Z,{form:q,layout:"vertical",name:"env_modal",initialValues:E,children:[(0,s.jsx)(g.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,s.jsx)(m.Z,{placeholder:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u540D\u79F0"})}),!E&&(0,s.jsx)(g.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)(l.ZP.Group,{children:[(0,s.jsx)(l.ZP,{value:"1",children:"\u662F"}),(0,s.jsx)(l.ZP,{value:"0",children:"\u5426"})]})}),(0,s.jsx)(g.Z.Item,{name:"value",label:"\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u503C",whitespace:!0}],children:(0,s.jsx)(m.Z.TextArea,{rows:4,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165\u73AF\u5883\u53D8\u91CF\u503C"})}),(0,s.jsx)(g.Z.Item,{name:"remarks",label:"\u5907\u6CE8",children:(0,s.jsx)(m.Z,{placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"})})]})})};C.default=k},5558:function(Y,C){var e=window.__ENV__QlBaseUrl||"/";C.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"pushMe",label:"PushMe"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],pushMe:[{label:"pushMeKey",tip:"PushMe\u7684Key\uFF0Chttps://push.i-i.me/",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
|
|
3
|
-
`},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
|
|
4
|
-
Custom-Header2: Header2`},{label:"webhookBody",tip:"\u8BF7\u6C42\u4F53\u683C\u5F0Fkey1: value1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",placeholder:`key1: $title
|
|
5
|
-
key2: $content`}]},documentTitleMap:{"/login":"\u767B\u5F55","/initialization":"\u521D\u59CB\u5316","/crontab":"\u5B9A\u65F6\u4EFB\u52A1","/env":"\u73AF\u5883\u53D8\u91CF","/subscription":"\u8BA2\u9605\u7BA1\u7406","/config":"\u914D\u7F6E\u6587\u4EF6","/script":"\u811A\u672C\u7BA1\u7406","/diff":"\u5BF9\u6BD4\u5DE5\u5177","/log":"\u65E5\u5FD7\u7BA1\u7406","/setting":"\u7CFB\u7EDF\u8BBE\u7F6E","/error":"\u9519\u8BEF\u65E5\u5FD7","/dependence":"\u4F9D\u8D56\u7BA1\u7406"},dependenceTypes:["nodejs","python3","linux"]}},95176:function(Y,C,e){e.d(C,{W:function(){return c}});var y=e(25359),_=e.n(y),O=e(49811),h=e.n(O),M=e(9835),R=e(5558),n=e(87075),B=e(73669);M.ZP.config({duration:2});var f=Date.now(),J=function(l){if(l.response){var b=l.response.data?l.response.data.message||l.message||l.response.data:l.response.statusText,v=l.response.status;[502,504].includes(v)?n.history.push("/error"):v===401?n.history.location.pathname!=="/login"&&(M.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(R.Z.authKey),n.history.push("/login")):M.ZP.error({content:b,style:{maxWidth:500,margin:"0 auto"}})}else console.log(l.message);return Promise.reject(l)},g=B.Z.create({timeout:6e4,params:{t:f}}),S=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];g.interceptors.request.use(function(m){var l=localStorage.getItem(R.Z.authKey);return l&&!S.includes(m.url)&&(m.headers.Authorization="Bearer ".concat(l)),m}),g.interceptors.response.use(function(){var m=h()(_()().mark(function l(b){var v,s,k;return _()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(v=b.status,![502,504].includes(v)){i.next=5;break}n.history.push("/error"),i.next=18;break;case 5:if(v!==401){i.next=9;break}n.history.location.pathname!=="/login"&&(localStorage.removeItem(R.Z.authKey),n.history.push("/login")),i.next=18;break;case 9:return i.prev=9,s=b.data,s.code!==200&&(k=s.message||s.data,k&&M.ZP.error({content:k,style:{maxWidth:500,margin:"0 auto"}})),i.abrupt("return",s);case 15:i.prev=15,i.t0=i.catch(9);case 17:return i.abrupt("return",b);case 18:return i.abrupt("return",b);case 19:case"end":return i.stop()}},l,null,[[9,15]])}));return function(l){return m.apply(this,arguments)}}(),J);var c=g},60822:function(Y,C,e){e.d(C,{Z:function(){return y}});function y(_){return Object.keys(_).reduce(function(O,h){return(h.startsWith("data-")||h.startsWith("aria-")||h==="role")&&!h.startsWith("data-__")&&(O[h]=_[h]),O},{})}},84468:function(Y,C,e){e.d(C,{ZP:function(){return z}});var y=e(60795),_=e(87807),O=e(17079),h=e(84875),M=e.n(h),R=e(26230),n=e(63313),B=e(82259),f=e(65189),J=e(60822),g=n.createContext(null),S=g.Provider,c=g,m=n.createContext(null),l=m.Provider,b=e(69370),v=e(33951),s=e(7893),k=e(76737),ee=function(a,o){var d={};for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&o.indexOf(t)<0&&(d[t]=a[t]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(a);r<t.length;r++)o.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(a,t[r])&&(d[t[r]]=a[t[r]]);return d},i=function(o,d){var t,r=n.useContext(c),u=n.useContext(m),x=n.useContext(B.E_),I=x.getPrefixCls,Z=x.direction,K=n.useRef(),U=(0,v.sQ)(d,K),X=(0,n.useContext)(k.aM),$=X.isFormItemInput,N=function(ne){var G,j;(G=o.onChange)===null||G===void 0||G.call(o,ne),(j=r==null?void 0:r.onChange)===null||j===void 0||j.call(r,ne)},Q=o.prefixCls,V=o.className,p=o.children,ae=o.style,te=o.disabled,le=ee(o,["prefixCls","className","children","style","disabled"]),re=I("radio",Q),L=((r==null?void 0:r.optionType)||u)==="button"?"".concat(re,"-button"):re,D=(0,y.Z)({},le),oe=n.useContext(s.Z);D.disabled=te||oe,r&&(D.name=r.name,D.onChange=N,D.checked=o.value===r.value,D.disabled=D.disabled||r.disabled);var ie=M()("".concat(L,"-wrapper"),(t={},(0,_.Z)(t,"".concat(L,"-wrapper-checked"),D.checked),(0,_.Z)(t,"".concat(L,"-wrapper-disabled"),D.disabled),(0,_.Z)(t,"".concat(L,"-wrapper-rtl"),Z==="rtl"),(0,_.Z)(t,"".concat(L,"-wrapper-in-form-item"),$),t),V);return n.createElement("label",{className:ie,style:ae,onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave},n.createElement(b.Z,(0,y.Z)({},D,{type:"radio",prefixCls:L,ref:U})),p!==void 0?n.createElement("span",null,p):null)},E=n.forwardRef(i),T=E,w=n.forwardRef(function(a,o){var d,t=n.useContext(B.E_),r=t.getPrefixCls,u=t.direction,x=n.useContext(f.Z),I=(0,R.Z)(a.defaultValue,{value:a.value}),Z=(0,O.Z)(I,2),K=Z[0],U=Z[1],X=function(_e){var pe=K,ce=_e.target.value;"value"in a||U(ce);var me=a.onChange;me&&ce!==pe&&me(_e)},$=a.prefixCls,N=a.className,Q=N===void 0?"":N,V=a.options,p=a.buttonStyle,ae=p===void 0?"outline":p,te=a.disabled,le=a.children,re=a.size,L=a.style,D=a.id,oe=a.onMouseEnter,ie=a.onMouseLeave,ue=a.onFocus,ne=a.onBlur,G=r("radio",$),j="".concat(G,"-group"),se=le;V&&V.length>0&&(se=V.map(function(P){return typeof P=="string"||typeof P=="number"?n.createElement(T,{key:P.toString(),prefixCls:G,disabled:te,value:P,checked:K===P},P):n.createElement(T,{key:"radio-group-value-options-".concat(P.value),prefixCls:G,disabled:P.disabled||te,value:P.value,checked:K===P.value,style:P.style},P.label)}));var de=re||x,ve=M()(j,"".concat(j,"-").concat(ae),(d={},(0,_.Z)(d,"".concat(j,"-").concat(de),de),(0,_.Z)(d,"".concat(j,"-rtl"),u==="rtl"),d),Q);return n.createElement("div",(0,y.Z)({},(0,J.Z)(a),{className:ve,style:L,onMouseEnter:oe,onMouseLeave:ie,onFocus:ue,onBlur:ne,id:D,ref:o}),n.createElement(S,{value:{onChange:X,value:K,disabled:a.disabled,name:a.name,optionType:a.optionType}},se))}),H=n.memo(w),F=function(a,o){var d={};for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&o.indexOf(t)<0&&(d[t]=a[t]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(a);r<t.length;r++)o.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(a,t[r])&&(d[t[r]]=a[t[r]]);return d},q=function(o,d){var t=n.useContext(B.E_),r=t.getPrefixCls,u=o.prefixCls,x=F(o,["prefixCls"]),I=r("radio",u);return n.createElement(l,{value:"button"},n.createElement(T,(0,y.Z)({prefixCls:I},x,{type:"radio",ref:d})))},W=n.forwardRef(q),A=T;A.Button=W,A.Group=H,A.__ANT_RADIO=!0;var z=A},69370:function(Y,C,e){var y=e(60795),_=e(14797),O=e(87807),h=e(17079),M=e(16803),R=e(84875),n=e.n(R),B=e(26230),f=e(63313),J=e.n(f),g=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],S=(0,f.forwardRef)(function(c,m){var l,b=c.prefixCls,v=b===void 0?"rc-checkbox":b,s=c.className,k=c.style,ee=c.checked,i=c.disabled,E=c.defaultChecked,T=E===void 0?!1:E,w=c.type,H=w===void 0?"checkbox":w,F=c.onChange,q=(0,M.Z)(c,g),W=(0,f.useRef)(null),A=(0,B.Z)(T,{value:ee}),z=(0,h.Z)(A,2),a=z[0],o=z[1];(0,f.useImperativeHandle)(m,function(){return{focus:function(){var u;(u=W.current)===null||u===void 0||u.focus()},blur:function(){var u;(u=W.current)===null||u===void 0||u.blur()},input:W.current}});var d=n()(v,s,(l={},(0,O.Z)(l,"".concat(v,"-checked"),a),(0,O.Z)(l,"".concat(v,"-disabled"),i),l)),t=function(u){i||("checked"in c||o(u.target.checked),F==null||F({target:(0,_.Z)((0,_.Z)({},c),{},{type:H,checked:u.target.checked}),stopPropagation:function(){u.stopPropagation()},preventDefault:function(){u.preventDefault()},nativeEvent:u.nativeEvent}))};return f.createElement("span",{className:d,style:k},f.createElement("input",(0,y.Z)({},q,{className:"".concat(v,"-input"),ref:W,onChange:t,disabled:i,checked:!!a,type:H})),f.createElement("span",{className:"".concat(v,"-inner")}))});C.Z=S}}]);
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[3217],{59673:function(U,u,e){e.d(u,{Z:function(){return m}});var p=e(14797),n=e(63313),t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},c=t,y=e(46420),E=function(S,C){return n.createElement(y.Z,(0,p.Z)((0,p.Z)({},S),{},{ref:C,icon:c}))};E.displayName="CheckOutlined";var m=n.forwardRef(E)},24090:function(U,u,e){e.d(u,{Z:function(){return m}});var p=e(14797),n=e(63313),t={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},c=t,y=e(46420),E=function(S,C){return n.createElement(y.Z,(0,p.Z)((0,p.Z)({},S),{},{ref:C,icon:c}))};E.displayName="LoadingOutlined";var m=n.forwardRef(E)},93267:function(U,u,e){e.r(u),e.d(u,{default:function(){return ye}});var p=e(54306),n=e.n(p),t=e(63313),c=e(5558),y=e(95176),E=e(91796),m=e(87075),M=e(60795),S=e(17079),C=e(87807),D=e(65905),X=e(38101),$=e(40227),b=e(76657),i=e(5132),N=e(47679),O=e(48419),A=e(38295),k=e(86218),z=e(84875),s=e.n(z),ne=e(39668),le=e(82259),oe=e(60822),se=e(25515),ie=e(54183),ue=e(9924),ce=e(46954),de=e(49994),pe=function(v){(0,ce.Z)(l,v);var a=(0,de.Z)(l);function l(){var r;return(0,ie.Z)(this,l),r=a.apply(this,arguments),r.state={error:void 0,info:{componentStack:""}},r}return(0,ue.Z)(l,[{key:"componentDidCatch",value:function(o,h){this.setState({error:o,info:h})}},{key:"render",value:function(){var o=this.props,h=o.message,f=o.description,B=o.children,I=this.state,R=I.error,P=I.info,Z=P&&P.componentStack?P.componentStack:null,K=typeof h=="undefined"?(R||"").toString():h,x=typeof f=="undefined"?Z:f;return R?t.createElement(Y,{type:"error",message:K,description:t.createElement("pre",null,x)}):B}}]),l}(t.Component),me=pe,ve=function(v,a){var l={};for(var r in v)Object.prototype.hasOwnProperty.call(v,r)&&a.indexOf(r)<0&&(l[r]=v[r]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(v);o<r.length;o++)a.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(v,r[o])&&(l[r[o]]=v[r[o]]);return l},he={success:D.Z,info:A.Z,error:$.Z,warning:N.Z},fe={success:X.Z,info:k.Z,error:b.Z,warning:O.Z},ge=function(a){var l=a.description,r=a.icon,o=a.prefixCls,h=a.type,f=(l?fe:he)[h]||null;return r?(0,se.wm)(r,t.createElement("span",{className:"".concat(o,"-icon")},r),function(){return{className:s()("".concat(o,"-icon"),(0,C.Z)({},r.props.className,r.props.className))}}):t.createElement(f,{className:"".concat(o,"-icon")})},Ee=function(a){var l=a.isClosable,r=a.closeText,o=a.prefixCls,h=a.closeIcon,f=a.handleClose;return l?t.createElement("button",{type:"button",onClick:f,className:"".concat(o,"-close-icon"),tabIndex:0},r?t.createElement("span",{className:"".concat(o,"-close-text")},r):h):null},V=function(a){var l,r=a.description,o=a.prefixCls,h=a.message,f=a.banner,B=a.className,I=B===void 0?"":B,R=a.style,P=a.onMouseEnter,Z=a.onMouseLeave,K=a.onClick,x=a.afterClose,Q=a.showIcon,q=a.closable,F=a.closeText,w=a.closeIcon,H=w===void 0?t.createElement(i.Z,null):w,L=a.action,W=ve(a,["description","prefixCls","message","banner","className","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),be=t.useState(!1),J=(0,S.Z)(be,2),ee=J[0],Ne=J[1],Oe=t.useRef(),te=t.useContext(le.E_),Pe=te.getPrefixCls,Te=te.direction,g=Pe("alert",o),Me=function(T){var j;Ne(!0),(j=W.onClose)===null||j===void 0||j.call(W,T)},Se=function(){var T=W.type;return T!==void 0?T:f?"warning":"info"},Ae=F?!0:q,ae=Se(),re=f&&Q===void 0?!0:Q,Ie=s()(g,"".concat(g,"-").concat(ae),(l={},(0,C.Z)(l,"".concat(g,"-with-description"),!!r),(0,C.Z)(l,"".concat(g,"-no-icon"),!re),(0,C.Z)(l,"".concat(g,"-banner"),!!f),(0,C.Z)(l,"".concat(g,"-rtl"),Te==="rtl"),l),I),xe=(0,oe.Z)(W);return t.createElement(ne.ZP,{visible:!ee,motionName:"".concat(g,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:function(T){return{maxHeight:T.offsetHeight}},onLeaveEnd:x},function(_){var T=_.className,j=_.style;return t.createElement("div",(0,M.Z)({ref:Oe,"data-show":!ee,className:s()(Ie,T),style:(0,M.Z)((0,M.Z)({},R),j),onMouseEnter:P,onMouseLeave:Z,onClick:K,role:"alert"},xe),re?t.createElement(ge,{description:r,icon:W.icon,prefixCls:g,type:ae}):null,t.createElement("div",{className:"".concat(g,"-content")},h?t.createElement("div",{className:"".concat(g,"-message")},h):null,r?t.createElement("div",{className:"".concat(g,"-description")},r):null),L?t.createElement("div",{className:"".concat(g,"-action")},L):null,t.createElement(Ee,{isClosable:!!Ae,closeText:F,prefixCls:g,closeIcon:H,handleClose:Me}))})};V.ErrorBoundary=me;var Y=V,G=e(92260),d=e(11527),Ce=function(){var a=(0,m.useOutletContext)(),l=a.user,r=a.theme,o=a.reloadUser,h=(0,t.useState)(!1),f=n()(h,2),B=f[0],I=f[1],R=(0,t.useState)("\u6682\u65E0\u65E5\u5FD7"),P=n()(R,2),Z=P[0],K=P[1],x=(0,t.useRef)(1),Q=function q(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;F&&I(!0),y.W.get("".concat(c.Z.apiPrefix,"public/health")).then(function(w){var H=w.error,L=w.data;if((L==null?void 0:L.status)!==1){if(x.current>3){K(H==null?void 0:H.details);return}x.current+=1,setTimeout(function(){q(!1)},3e3)}}).finally(function(){return F&&I(!1)})};return(0,t.useEffect)(function(){l&&l.username&&m.history.push("/crontab")},[l]),(0,t.useEffect)(function(){Q()},[]),(0,d.jsx)("div",{className:"error-wrapper",children:B?(0,d.jsx)(E.Z,{}):x.current>3?(0,d.jsxs)("div",{className:"code-box",children:[(0,d.jsx)("div",{className:"browser-markup"}),(0,d.jsx)(Y,{type:"error",message:(0,d.jsx)(G.Z.Title,{level:5,type:"danger",children:"\u670D\u52A1\u542F\u52A8\u8D85\u65F6"}),description:(0,d.jsxs)(G.Z.Text,{type:"danger",children:[(0,d.jsx)("div",{children:"\u8BF7\u5148\u6309\u5982\u4E0B\u65B9\u5F0F\u4FEE\u590D\uFF1A"}),(0,d.jsx)("div",{children:"1. \u5BBF\u4E3B\u673A\u6267\u884C docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower -cR <\u5BB9\u5668\u540D>"}),(0,d.jsx)("div",{children:"2. \u5BB9\u5668\u5185\u6267\u884C ql -l check\u3001ql -l update"}),(0,d.jsxs)("div",{children:["3. \u5982\u679C\u65E0\u6CD5\u89E3\u51B3\uFF0C\u5BB9\u5668\u5185\u6267\u884C pm2 logs\uFF0C\u62F7\u8D1D\u6267\u884C\u7ED3\u679C",(0,d.jsx)(G.Z.Link,{href:"https://github.com/whyour/qinglong/issues/new?assignees=&labels=&template=bug_report.yml",children:"\u63D0\u4EA4 issue"})]})]}),banner:!0}),(0,d.jsx)(G.Z.Paragraph,{code:!0,className:"log",children:Z})]}):(0,d.jsx)(E.Z,{tip:"\u542F\u52A8\u4E2D\uFF0C\u8BF7\u7A0D\u540E..."})})},ye=Ce},5558:function(U,u){var e=window.__ENV__QlBaseUrl||"/";u.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"pushMe",label:"PushMe"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],pushMe:[{label:"pushMeKey",tip:"PushMe\u7684Key\uFF0Chttps://push.i-i.me/",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
|
|
2
|
-
`},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
|
|
3
|
-
Custom-Header2: Header2`},{label:"webhookBody",tip:"\u8BF7\u6C42\u4F53\u683C\u5F0Fkey1: value1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",placeholder:`key1: $title
|
|
4
|
-
key2: $content`}]},documentTitleMap:{"/login":"\u767B\u5F55","/initialization":"\u521D\u59CB\u5316","/crontab":"\u5B9A\u65F6\u4EFB\u52A1","/env":"\u73AF\u5883\u53D8\u91CF","/subscription":"\u8BA2\u9605\u7BA1\u7406","/config":"\u914D\u7F6E\u6587\u4EF6","/script":"\u811A\u672C\u7BA1\u7406","/diff":"\u5BF9\u6BD4\u5DE5\u5177","/log":"\u65E5\u5FD7\u7BA1\u7406","/setting":"\u7CFB\u7EDF\u8BBE\u7F6E","/error":"\u9519\u8BEF\u65E5\u5FD7","/dependence":"\u4F9D\u8D56\u7BA1\u7406"},dependenceTypes:["nodejs","python3","linux"]}},95176:function(U,u,e){e.d(u,{W:function(){return $}});var p=e(25359),n=e.n(p),t=e(49811),c=e.n(t),y=e(9835),E=e(5558),m=e(87075),M=e(73669);y.ZP.config({duration:2});var S=Date.now(),C=function(i){if(i.response){var N=i.response.data?i.response.data.message||i.message||i.response.data:i.response.statusText,O=i.response.status;[502,504].includes(O)?m.history.push("/error"):O===401?m.history.location.pathname!=="/login"&&(y.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(E.Z.authKey),m.history.push("/login")):y.ZP.error({content:N,style:{maxWidth:500,margin:"0 auto"}})}else console.log(i.message);return Promise.reject(i)},D=M.Z.create({timeout:6e4,params:{t:S}}),X=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];D.interceptors.request.use(function(b){var i=localStorage.getItem(E.Z.authKey);return i&&!X.includes(b.url)&&(b.headers.Authorization="Bearer ".concat(i)),b}),D.interceptors.response.use(function(){var b=c()(n()().mark(function i(N){var O,A,k;return n()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(O=N.status,![502,504].includes(O)){s.next=5;break}m.history.push("/error"),s.next=18;break;case 5:if(O!==401){s.next=9;break}m.history.location.pathname!=="/login"&&(localStorage.removeItem(E.Z.authKey),m.history.push("/login")),s.next=18;break;case 9:return s.prev=9,A=N.data,A.code!==200&&(k=A.message||A.data,k&&y.ZP.error({content:k,style:{maxWidth:500,margin:"0 auto"}})),s.abrupt("return",A);case 15:s.prev=15,s.t0=s.catch(9);case 17:return s.abrupt("return",N);case 18:return s.abrupt("return",N);case 19:case"end":return s.stop()}},i,null,[[9,15]])}));return function(i){return b.apply(this,arguments)}}(),C);var $=D},60822:function(U,u,e){e.d(u,{Z:function(){return p}});function p(n){return Object.keys(n).reduce(function(t,c){return(c.startsWith("data-")||c.startsWith("aria-")||c==="role")&&!c.startsWith("data-__")&&(t[c]=n[c]),t},{})}},25641:function(U,u){var e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(n){var t=n.keyCode;if(n.altKey&&!n.ctrlKey||n.metaKey||t>=e.F1&&t<=e.F12)return!1;switch(t){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(n){if(n>=e.ZERO&&n<=e.NINE||n>=e.NUM_ZERO&&n<=e.NUM_MULTIPLY||n>=e.A&&n<=e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&n===0)return!0;switch(n){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};u.Z=e}}]);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[1554],{21247:function(q,D,e){e.r(D),e.d(D,{default:function(){return Se}});var _=e(54306),u=e.n(_),r=e(63313),T=e.n(r),h=e(67393),p=e(60795),i=e(87807),$=e(59673),W=e(5132),L=e(84875),A=e.n(L),Y=e(14797),F=e(16803),K=e(54183),O=e(9924),j=e(32675),H=e(46954),X=e(49994),J=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function ve(m){return typeof m=="string"}var C=function(m){(0,H.Z)(f,m);var d=(0,X.Z)(f);function f(){var c;(0,K.Z)(this,f);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return c=d.call.apply(d,[this].concat(n)),(0,i.Z)((0,j.Z)(c),"onClick",function(){var o=c.props,x=o.onClick,E=o.onStepClick,v=o.stepIndex;x&&x.apply(void 0,arguments),E(v)}),c}return(0,O.Z)(f,[{key:"renderIconNode",value:function(){var t,n=this.props,a=n.prefixCls,o=n.progressDot,x=n.stepIcon,E=n.stepNumber,v=n.status,z=n.title,U=n.description,b=n.icon,Z=n.iconPrefix,y=n.icons,g,R=A()("".concat(a,"-icon"),"".concat(Z,"icon"),(t={},(0,i.Z)(t,"".concat(Z,"icon-").concat(b),b&&ve(b)),(0,i.Z)(t,"".concat(Z,"icon-check"),!b&&v==="finish"&&(y&&!y.finish||!y)),(0,i.Z)(t,"".concat(Z,"icon-cross"),!b&&v==="error"&&(y&&!y.error||!y)),t)),S=r.createElement("span",{className:"".concat(a,"-icon-dot")});return o?typeof o=="function"?g=r.createElement("span",{className:"".concat(a,"-icon")},o(S,{index:E-1,status:v,title:z,description:U})):g=r.createElement("span",{className:"".concat(a,"-icon")},S):b&&!ve(b)?g=r.createElement("span",{className:"".concat(a,"-icon")},b):y&&y.finish&&v==="finish"?g=r.createElement("span",{className:"".concat(a,"-icon")},y.finish):y&&y.error&&v==="error"?g=r.createElement("span",{className:"".concat(a,"-icon")},y.error):b||v==="finish"||v==="error"?g=r.createElement("span",{className:R}):g=r.createElement("span",{className:"".concat(a,"-icon")},E),x&&(g=x({index:E-1,status:v,title:z,description:U,node:g})),g}},{key:"render",value:function(){var t,n=this.props,a=n.className,o=n.prefixCls,x=n.style,E=n.active,v=n.status,z=v===void 0?"wait":v,U=n.iconPrefix,b=n.icon,Z=n.wrapperStyle,y=n.stepNumber,g=n.disabled,R=n.description,S=n.title,s=n.subTitle,M=n.progressDot,B=n.stepIcon,k=n.tailContent,G=n.icons,le=n.stepIndex,ce=n.onStepClick,ue=n.onClick,re=(0,F.Z)(n,J),oe=A()("".concat(o,"-item"),"".concat(o,"-item-").concat(z),a,(t={},(0,i.Z)(t,"".concat(o,"-item-custom"),b),(0,i.Z)(t,"".concat(o,"-item-active"),E),(0,i.Z)(t,"".concat(o,"-item-disabled"),g===!0),t)),de=(0,Y.Z)({},x),w={};return ce&&!g&&(w.role="button",w.tabIndex=0,w.onClick=this.onClick),r.createElement("div",(0,p.Z)({},re,{className:oe,style:de}),r.createElement("div",(0,p.Z)({onClick:ue},w,{className:"".concat(o,"-item-container")}),r.createElement("div",{className:"".concat(o,"-item-tail")},k),r.createElement("div",{className:"".concat(o,"-item-icon")},this.renderIconNode()),r.createElement("div",{className:"".concat(o,"-item-content")},r.createElement("div",{className:"".concat(o,"-item-title")},S,s&&r.createElement("div",{title:typeof s=="string"?s:void 0,className:"".concat(o,"-item-subtitle")},s)),R&&r.createElement("div",{className:"".concat(o,"-item-description")},R))))}}]),f}(r.Component),Q=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","items"],P=function(m){(0,H.Z)(f,m);var d=(0,X.Z)(f);function f(){var c;(0,K.Z)(this,f);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return c=d.call.apply(d,[this].concat(n)),(0,i.Z)((0,j.Z)(c),"onStepClick",function(o){var x=c.props,E=x.onChange,v=x.current;E&&v!==o&&E(o)}),c}return(0,O.Z)(f,[{key:"render",value:function(){var t,n=this,a=this.props,o=a.prefixCls,x=a.style,E=x===void 0?{}:x,v=a.className,z=a.children,U=a.direction,b=a.type,Z=a.labelPlacement,y=a.iconPrefix,g=a.status,R=a.size,S=a.current,s=a.progressDot,M=a.stepIcon,B=a.initial,k=a.icons,G=a.onChange,le=a.items,ce=le===void 0?[]:le,ue=(0,F.Z)(a,Q),re=b==="navigation",oe=s?"vertical":Z,de=A()(o,"".concat(o,"-").concat(U),v,(t={},(0,i.Z)(t,"".concat(o,"-").concat(R),R),(0,i.Z)(t,"".concat(o,"-label-").concat(oe),U==="horizontal"),(0,i.Z)(t,"".concat(o,"-dot"),!!s),(0,i.Z)(t,"".concat(o,"-navigation"),re),t));return T().createElement("div",(0,p.Z)({className:de,style:E},ue),ce.filter(function(w){return w}).map(function(w,se){var me=(0,Y.Z)({},w),fe=B+se;return g==="error"&&se===S-1&&(me.className="".concat(o,"-next-error")),me.status||(fe===S?me.status=g:fe<S?me.status="finish":me.status="wait"),T().createElement(C,(0,p.Z)({},me,{active:fe===S,stepNumber:fe+1,stepIndex:fe,key:fe,prefixCls:o,iconPrefix:y,wrapperStyle:E,progressDot:s,stepIcon:M,icons:k,onStepClick:G&&n.onStepClick}))}))}}]),f}(T().Component);(0,i.Z)(P,"Step",C),(0,i.Z)(P,"defaultProps",{type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1});var ee=P,N=e(82259),V=e(99043),_e=e(13800),xe=e(52604);function Ne(m){return m.filter(function(d){return d})}function Ie(m,d){if(m)return m;var f=(0,xe.Z)(d).map(function(c){if(r.isValidElement(c)){var t=c.props,n=(0,p.Z)({},t);return n}return null});return Ne(f)}var Me=function(m,d){var f={};for(var c in m)Object.prototype.hasOwnProperty.call(m,c)&&d.indexOf(c)<0&&(f[c]=m[c]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,c=Object.getOwnPropertySymbols(m);t<c.length;t++)d.indexOf(c[t])<0&&Object.prototype.propertyIsEnumerable.call(m,c[t])&&(f[c[t]]=m[c[t]]);return f},Ce=function(d){var f,c=d.percent,t=d.size,n=d.className,a=d.direction,o=d.items,x=d.responsive,E=x===void 0?!0:x,v=d.current,z=v===void 0?0:v,U=d.children,b=Me(d,["percent","size","className","direction","items","responsive","current","children"]),Z=(0,V.Z)(E),y=Z.xs,g=r.useContext(N.E_),R=g.getPrefixCls,S=g.direction,s=r.useCallback(function(){return E&&y?"vertical":a},[y,a]),M=R("steps",d.prefixCls),B=R("",d.iconPrefix),k=Ie(o,U),G=A()((f={},(0,i.Z)(f,"".concat(M,"-rtl"),S==="rtl"),(0,i.Z)(f,"".concat(M,"-with-progress"),c!==void 0),f),n),le={finish:r.createElement($.Z,{className:"".concat(M,"-finish-icon")}),error:r.createElement(W.Z,{className:"".concat(M,"-error-icon")})},ce=function(re){var oe=re.node,de=re.status;if(de==="process"&&c!==void 0){var w=t==="small"?32:40;return r.createElement("div",{className:"".concat(M,"-progress-icon")},r.createElement(_e.Z,{type:"circle",percent:c,width:w,strokeWidth:4,format:function(){return null}}),oe)}return oe};return r.createElement(ee,(0,p.Z)({icons:le},b,{current:z,size:t,items:k,direction:s(),stepIcon:ce,prefixCls:M,iconPrefix:B,className:G}))};Ce.Step=ee.Step;var he=Ce,Pe=e(28756),Ee=e(92260),te=e(24378),pe=e(22159),ie=e(5558),I={container:"container___p6QCp",top:"top___Juq26",header:"header___tqj_6",logo:"logo___YomRq",title:"title___0O1DN",desc:"desc___J3UaF",main:"main___II0mY","ant-steps":"ant-steps___T0WmF","steps-container":"steps-container___Zhjdk",extra:"extra___c8tGm"},ge=e(95176),l=e(11527),be=h.Z.Item,ne=he.Step,ae=Pe.Z.Option,ye=Ee.Z.Link,Oe=function(){var d=(0,r.useState)(!1),f=u()(d,2),c=f[0],t=f[1],n=T().useState(0),a=u()(n,2),o=a[0],x=a[1],E=(0,r.useState)([]),v=u()(E,2),z=v[0],U=v[1],b=function(){x(o+1)},Z=function(){x(o-1)},y=function(M){t(!0),ge.W.put("".concat(ie.Z.apiPrefix,"user/init"),{username:M.username,password:M.password}).then(function(B){var k=B.code,G=B.data;k===200&&b()}).finally(function(){return t(!1)})},g=function(M){t(!0),ge.W.put("".concat(ie.Z.apiPrefix,"user/notification/init"),M).then(function(B){var k=B.code,G=B.data;k===200&&b()}).finally(function(){return t(!1)})},R=function(M){var B=ie.Z.notificationModeMap[M];U(B||[])};(0,r.useEffect)(function(){localStorage.removeItem(ie.Z.authKey)},[]);var S=[{title:"\u6B22\u8FCE\u4F7F\u7528",content:(0,l.jsxs)("div",{className:I.top,style:{marginTop:30},children:[(0,l.jsxs)("div",{className:I.header,children:[(0,l.jsx)("span",{className:I.title,children:"\u6B22\u8FCE\u4F7F\u7528\u9752\u9F99"}),(0,l.jsx)("span",{className:I.desc,children:"\u652F\u6301python3\u3001javaScript\u3001shell\u3001typescript \u7684\u5B9A\u65F6\u4EFB\u52A1\u7BA1\u7406\u9762\u677F\uFF08A timed task management panel that supports typescript, javaScript, python3, and shell.\uFF09"})]}),(0,l.jsx)("div",{className:I.action,children:(0,l.jsx)(te.Z,{type:"primary",onClick:function(){b()},children:"\u5F00\u59CB\u5B89\u88C5"})})]})},{title:"\u8D26\u6237\u8BBE\u7F6E",content:(0,l.jsxs)(h.Z,{onFinish:y,layout:"vertical",children:[(0,l.jsx)(h.Z.Item,{label:"\u7528\u6237\u540D",name:"username",rules:[{required:!0}],style:{maxWidth:350},children:(0,l.jsx)(pe.Z,{placeholder:"\u7528\u6237\u540D"})}),(0,l.jsx)(h.Z.Item,{label:"\u5BC6\u7801",name:"password",rules:[{required:!0},{pattern:/^(?!admin$).*$/,message:"\u5BC6\u7801\u4E0D\u80FD\u4E3Aadmin"}],hasFeedback:!0,style:{maxWidth:350},children:(0,l.jsx)(pe.Z,{type:"password",placeholder:"\u5BC6\u7801"})}),(0,l.jsx)(h.Z.Item,{name:"confirm",label:"\u786E\u8BA4\u5BC6\u7801",dependencies:["password"],hasFeedback:!0,style:{maxWidth:350},rules:[{required:!0},function(s){var M=s.getFieldValue;return{validator:function(k,G){return!G||M("password")===G?Promise.resolve():Promise.reject(new Error("\u60A8\u8F93\u5165\u7684\u4E24\u4E2A\u5BC6\u7801\u4E0D\u5339\u914D\uFF01"))}}}],children:(0,l.jsx)(pe.Z.Password,{placeholder:"\u786E\u8BA4\u5BC6\u7801"})}),(0,l.jsx)(te.Z,{type:"primary",htmlType:"submit",loading:c,children:"\u63D0\u4EA4"})]})},{title:"\u901A\u77E5\u8BBE\u7F6E",content:(0,l.jsxs)(h.Z,{onFinish:g,layout:"vertical",children:[(0,l.jsx)(h.Z.Item,{label:"\u901A\u77E5\u65B9\u5F0F",name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u901A\u77E5\u65B9\u5F0F"}],style:{maxWidth:350},children:(0,l.jsx)(Pe.Z,{onChange:R,placeholder:"\u8BF7\u9009\u62E9\u901A\u77E5\u65B9\u5F0F",children:ie.Z.notificationModes.filter(function(s){return s.value!=="closed"}).map(function(s){return(0,l.jsx)(ae,{value:s.value,children:s.label},s.value)})})}),z.map(function(s){return(0,l.jsx)(h.Z.Item,{label:s.label,name:s.label,extra:s.tip,rules:[{required:s.required}],style:{maxWidth:400},children:(0,l.jsx)(pe.Z.TextArea,{autoSize:!0,placeholder:"\u8BF7\u8F93\u5165".concat(s.label)})},s.label)}),(0,l.jsx)(te.Z,{type:"primary",htmlType:"submit",loading:c,children:"\u4FDD\u5B58"}),(0,l.jsx)(te.Z,{type:"link",htmlType:"button",onClick:function(){return b()},children:"\u8DF3\u8FC7"})]})},{title:"\u5B8C\u6210\u5B89\u88C5",content:(0,l.jsxs)("div",{className:I.top,style:{marginTop:80},children:[(0,l.jsxs)("div",{className:I.header,children:[(0,l.jsx)("span",{className:I.title,children:"\u606D\u559C\u5B89\u88C5\u5B8C\u6210\uFF01"}),(0,l.jsx)(ye,{href:"https://github.com/whyour/qinglong",target:"_blank",children:"Github"}),(0,l.jsx)(ye,{href:"https://t.me/jiao_long",target:"_blank",children:"Telegram\u9891\u9053"})]}),(0,l.jsx)("div",{style:{marginTop:16},children:(0,l.jsx)(te.Z,{type:"primary",onClick:function(){window.location.reload()},children:"\u53BB\u767B\u5F55"})})]})}];return(0,l.jsxs)("div",{className:I.container,children:[(0,l.jsx)("div",{className:I.top,children:(0,l.jsxs)("div",{className:I.header,children:[(0,l.jsx)("img",{alt:"logo",className:I.logo,src:"https://qn.whyour.cn/logo.png"}),(0,l.jsx)("span",{className:I.title,children:"\u521D\u59CB\u5316\u914D\u7F6E"})]})}),(0,l.jsxs)("div",{className:I.main,children:[(0,l.jsx)(he,{current:o,direction:"vertical",size:"small",className:I["ant-steps"],children:S.map(function(s){return(0,l.jsx)(ne,{title:s.title},s.title)})}),(0,l.jsx)("div",{className:I["steps-container"],children:S[o].content})]})]})},Se=Oe},5558:function(q,D){var e=window.__ENV__QlBaseUrl||"/";D.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"pushMe",label:"PushMe"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],pushMe:[{label:"pushMeKey",tip:"PushMe\u7684Key\uFF0Chttps://push.i-i.me/",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
|
|
2
|
-
`},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
|
|
3
|
-
Custom-Header2: Header2`},{label:"webhookBody",tip:"\u8BF7\u6C42\u4F53\u683C\u5F0Fkey1: value1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",placeholder:`key1: $title
|
|
4
|
-
key2: $content`}]},documentTitleMap:{"/login":"\u767B\u5F55","/initialization":"\u521D\u59CB\u5316","/crontab":"\u5B9A\u65F6\u4EFB\u52A1","/env":"\u73AF\u5883\u53D8\u91CF","/subscription":"\u8BA2\u9605\u7BA1\u7406","/config":"\u914D\u7F6E\u6587\u4EF6","/script":"\u811A\u672C\u7BA1\u7406","/diff":"\u5BF9\u6BD4\u5DE5\u5177","/log":"\u65E5\u5FD7\u7BA1\u7406","/setting":"\u7CFB\u7EDF\u8BBE\u7F6E","/error":"\u9519\u8BEF\u65E5\u5FD7","/dependence":"\u4F9D\u8D56\u7BA1\u7406"},dependenceTypes:["nodejs","python3","linux"]}},95176:function(q,D,e){e.d(D,{W:function(){return F}});var _=e(25359),u=e.n(_),r=e(49811),T=e.n(r),h=e(9835),p=e(5558),i=e(87075),$=e(73669);h.ZP.config({duration:2});var W=Date.now(),L=function(O){if(O.response){var j=O.response.data?O.response.data.message||O.message||O.response.data:O.response.statusText,H=O.response.status;[502,504].includes(H)?i.history.push("/error"):H===401?i.history.location.pathname!=="/login"&&(h.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(p.Z.authKey),i.history.push("/login")):h.ZP.error({content:j,style:{maxWidth:500,margin:"0 auto"}})}else console.log(O.message);return Promise.reject(O)},A=$.Z.create({timeout:6e4,params:{t:W}}),Y=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];A.interceptors.request.use(function(K){var O=localStorage.getItem(p.Z.authKey);return O&&!Y.includes(K.url)&&(K.headers.Authorization="Bearer ".concat(O)),K}),A.interceptors.response.use(function(){var K=T()(u()().mark(function O(j){var H,X,J;return u()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(H=j.status,![502,504].includes(H)){C.next=5;break}i.history.push("/error"),C.next=18;break;case 5:if(H!==401){C.next=9;break}i.history.location.pathname!=="/login"&&(localStorage.removeItem(p.Z.authKey),i.history.push("/login")),C.next=18;break;case 9:return C.prev=9,X=j.data,X.code!==200&&(J=X.message||X.data,J&&h.ZP.error({content:J,style:{maxWidth:500,margin:"0 auto"}})),C.abrupt("return",X);case 15:C.prev=15,C.t0=C.catch(9);case 17:return C.abrupt("return",j);case 18:return C.abrupt("return",j);case 19:case"end":return C.stop()}},O,null,[[9,15]])}));return function(O){return K.apply(this,arguments)}}(),L);var F=A},92235:function(q,D,e){e.d(D,{Z:function(){return T}});var _=e(17079),u=e(63313),r=e.n(u);function T(){var h=u.useReducer(function($){return $+1},0),p=(0,_.Z)(h,2),i=p[1];return i}},68098:function(q,D,e){e.d(D,{fk:function(){return T},jD:function(){return u}});var _=e(65021),u=function(){return(0,_.Z)()&&window.document.documentElement},r,T=function(){if(!u())return!1;if(r!==void 0)return r;var p=document.createElement("div");return p.style.display="flex",p.style.flexDirection="column",p.style.rowGap="1px",p.appendChild(document.createElement("div")),p.appendChild(document.createElement("div")),document.body.appendChild(p),r=p.scrollHeight===1,document.body.removeChild(p),r}},99043:function(q,D,e){var _=e(63313),u=e.n(_),r=e(92235),T=e(11847);function h(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,i=(0,_.useRef)({}),$=(0,r.Z)();return(0,_.useEffect)(function(){var W=T.ZP.subscribe(function(L){i.current=L,p&&$()});return function(){return T.ZP.unsubscribe(W)}},[]),i.current}D.Z=h},28756:function(q,D,e){var _=e(87807),u=e(60795),r=e(84875),T=e.n(r),h=e(40804),p=e(92976),i=e(63313),$=e.n(i),W=e(82259),L=e(23474),A=e(7893),Y=e(65189),F=e(76737),K=e(16082),O=e(1020),j=e(91967),H=e(60934),X=function(Q,P){var ee={};for(var N in Q)Object.prototype.hasOwnProperty.call(Q,N)&&P.indexOf(N)<0&&(ee[N]=Q[N]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,N=Object.getOwnPropertySymbols(Q);V<N.length;V++)P.indexOf(N[V])<0&&Object.prototype.propertyIsEnumerable.call(Q,N[V])&&(ee[N[V]]=Q[N[V]]);return ee},J="SECRET_COMBOBOX_MODE_DO_NOT_USE",ve=function(P,ee){var N,V=P.prefixCls,_e=P.bordered,xe=_e===void 0?!0:_e,Ne=P.className,Ie=P.getPopupContainer,Me=P.dropdownClassName,Ce=P.popupClassName,he=P.listHeight,Pe=he===void 0?256:he,Ee=P.placement,te=P.listItemHeight,pe=te===void 0?24:te,ie=P.size,I=P.disabled,ge=P.notFoundContent,l=P.status,be=P.showArrow,ne=X(P,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),ae=i.useContext(W.E_),ye=ae.getPopupContainer,Oe=ae.getPrefixCls,Se=ae.renderEmpty,m=ae.direction,d=ae.virtual,f=ae.dropdownMatchSelectWidth,c=i.useContext(Y.Z),t=Oe("select",V),n=Oe(),a=(0,H.ri)(t,m),o=a.compactSize,x=a.compactItemClassnames,E=i.useMemo(function(){var se=ne.mode;if(se!=="combobox")return se===J?"combobox":se},[ne.mode]),v=E==="multiple"||E==="tags",z=be!==void 0?be:ne.loading||!(v||E==="combobox"),U=(0,i.useContext)(F.aM),b=U.status,Z=U.hasFeedback,y=U.isFormItemInput,g=U.feedbackIcon,R=(0,O.F)(b,l),S;ge!==void 0?S=ge:E==="combobox"?S=null:S=(Se||L.Z)("Select");var s=(0,j.Z)((0,u.Z)((0,u.Z)({},ne),{multiple:v,hasFeedback:Z,feedbackIcon:g,showArrow:z,prefixCls:t})),M=s.suffixIcon,B=s.itemIcon,k=s.removeIcon,G=s.clearIcon,le=(0,p.Z)(ne,["suffixIcon","itemIcon"]),ce=T()(Ce||Me,(0,_.Z)({},"".concat(t,"-dropdown-").concat(m),m==="rtl")),ue=o||ie||c,re=i.useContext(A.Z),oe=I!=null?I:re,de=T()((N={},(0,_.Z)(N,"".concat(t,"-lg"),ue==="large"),(0,_.Z)(N,"".concat(t,"-sm"),ue==="small"),(0,_.Z)(N,"".concat(t,"-rtl"),m==="rtl"),(0,_.Z)(N,"".concat(t,"-borderless"),!xe),(0,_.Z)(N,"".concat(t,"-in-form-item"),y),N),(0,O.Z)(t,R,Z),x,Ne),w=function(){return Ee!==void 0?Ee:m==="rtl"?"bottomRight":"bottomLeft"};return i.createElement(h.ZP,(0,u.Z)({ref:ee,virtual:d,dropdownMatchSelectWidth:f},le,{transitionName:(0,K.mL)(n,(0,K.q0)(Ee),ne.transitionName),listHeight:Pe,listItemHeight:pe,mode:E,prefixCls:t,placement:w(),direction:m,inputIcon:M,menuItemSelectedIcon:B,removeIcon:k,clearIcon:G,notFoundContent:S,className:de,getPopupContainer:Ie||ye,dropdownClassName:ce,showArrow:Z||be,disabled:oe}))},C=i.forwardRef(ve);C.SECRET_COMBOBOX_MODE_DO_NOT_USE=J,C.Option=h.Wx,C.OptGroup=h.Xo,D.Z=C},25641:function(q,D){var e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(u){var r=u.keyCode;if(u.altKey&&!u.ctrlKey||u.metaKey||r>=e.F1&&r<=e.F12)return!1;switch(r){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(u){if(u>=e.ZERO&&u<=e.NINE||u>=e.NUM_ZERO&&u<=e.NUM_MULTIPLY||u>=e.A&&u<=e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&u===0)return!0;switch(u){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};D.Z=e},43595:function(q,D,e){e.d(D,{Z:function(){return $}});var _=e(14797),u=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
5
|
-
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
6
|
-
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
7
|
-
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
8
|
-
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
9
|
-
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
10
|
-
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
11
|
-
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
12
|
-
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
13
|
-
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
14
|
-
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
15
|
-
summary tabIndex target title type useMap value width wmode wrap`,r=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
16
|
-
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
17
|
-
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
18
|
-
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
19
|
-
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
20
|
-
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
21
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,T="".concat(u," ").concat(r).split(/[\s\n]+/),h="aria-",p="data-";function i(W,L){return W.indexOf(L)===0}function $(W){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A;L===!1?A={aria:!0,data:!0,attr:!0}:L===!0?A={aria:!0}:A=(0,_.Z)({},L);var Y={};return Object.keys(W).forEach(function(F){(A.aria&&(F==="role"||i(F,h))||A.data&&i(F,p)||A.attr&&T.includes(F))&&(Y[F]=W[F])}),Y}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[9818],{13740:function(o,s,e){"use strict";e.d(s,{Z:function(){return S}});var l=e(14797),a=e(63313),n={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"},r=n,t=e(46420),c=function(x,m){return a.createElement(t.Z,(0,l.Z)((0,l.Z)({},x),{},{ref:m,icon:r}))};c.displayName="DeleteOutlined";var S=a.forwardRef(c)},38102:function(o,s,e){"use strict";var l=e(57213),a=e.n(l),n=e(63313),r=e.n(n);s.Z=function(t,c,S){var O=S.treeNodeFilterProp;return(0,n.useMemo)(function(){var x=[];if(!c)return{treeData:t,keys:x};var m=c.toUpperCase();function F(C,E){var d=E[O];return String(d).toUpperCase().includes(m)}function j(C){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return C.map(function(d){var p=d.children,f=E||F(c,d),y=j(p||[],f);return f||y.length?(y.length&&x.push(d.key),a()(a()({},d),{},{children:y})):null}).filter(function(d){return d})}return{treeData:j(t),keys:x}},[t,c,O])}},30123:function(o,s,e){"use strict";e.r(s),e.d(s,{default:function(){return ve}});var l=e(93525),a=e.n(l),n=e(54306),r=e.n(n),t=e(63313),c=e(92260),S=e(84163),O=e(9835),x=e(75310),m=e(15367),F=e(24378),j=e(22159),C=e(43209),E=e(84540),d=e(5558),p=e(78969),f=e(82755),y=e(95176),v={"left-tree-container":"left-tree-container___zHanw","left-tree-scroller":"left-tree-scroller___PInUN","log-container":"log-container___ba9Tr"},D=e(76661),T=e(36035),ae=e(87075),re=e(13740),le=e(82428),oe=e(66292),se=e.n(oe),ue=e(4363),ie=e.n(ue),ce=e(38102),u=e(11527),de=c.Z.Text,fe=function(){var B=(0,ae.useOutletContext)(),he=B.headerStyle,R=B.isPhone,ge=B.theme,xe=(0,t.useState)("\u8BF7\u9009\u62E9\u65E5\u5FD7\u6587\u4EF6"),H=r()(xe,2),K=H[0],L=H[1],me=(0,t.useState)(""),U=r()(me,2),A=U[0],z=U[1],Se=(0,t.useState)([]),G=r()(Se,2),P=G[0],Y=G[1],pe=(0,t.useState)(!1),J=r()(pe,2),ye=J[0],Q=J[1],Ee=(0,t.useState)(),V=r()(Ee,2),Ce=V[0],De=V[1],M=(0,t.useRef)(),Ie=(0,t.useState)([]),X=r()(Ie,2),$=X[0],b=X[1],Oe=(0,t.useState)(),k=r()(Oe,2),Z=k[0],w=k[1],Fe=(0,t.useState)(""),q=r()(Fe,2),je=q[0],Pe=q[1],Ze=function(){Q(!0),y.W.get("".concat(d.Z.apiPrefix,"logs")).then(function(i){var g=i.code,I=i.data;g===200&&Y(I)}).finally(function(){return Q(!1)})},Ne=function(i){y.W.get("".concat(d.Z.apiPrefix,"logs/").concat(i.title,"?path=").concat(i.parent||"")).then(function(g){var I=g.code,N=g.data;I===200&&L(N)})},_=function(i,g){if(w(g),z(i),!(g.key===A||!i)){if(g.type==="directory"){L("\u8BF7\u9009\u62E9\u65E5\u5FD7\u6587\u4EF6");return}L("\u52A0\u8F7D\u4E2D..."),Ne(g)}},Ae=(0,t.useCallback)(function(h,i){_(h[0],i.node)},[]),Le=(0,t.useCallback)(function(h){var i=h.target.value;Te(i)},[P]),Te=(0,t.useCallback)(se()(function(h){Pe(h)},300),[P]),ee=(0,ce.Z)(P,je,{treeNodeFilterProp:"title"}),Me=ee.treeData,te=ee.keys;(0,t.useEffect)(function(){b(ie()([].concat(a()($),a()(te))))},[te]);var Be=function(){S.Z.confirm({title:"\u786E\u8BA4\u5220\u9664",content:(0,u.jsxs)(u.Fragment,{children:["\u786E\u8BA4\u5220\u9664",(0,u.jsx)(de,{style:{wordBreak:"break-all"},type:"warning",children:A}),"\u6587\u4EF6",Z.type==="directory"?"\u5939\u4E0B\u6240\u4EE5\u65E5\u5FD7":"","\uFF0C\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D"]}),onOk:function(){y.W.delete("".concat(d.Z.apiPrefix,"logs"),{data:{filename:Z.title,path:Z.parent||"",type:Z.type}}).then(function(g){var I=g.code;if(I===200){O.ZP.success("\u5220\u9664\u6210\u529F");var N=a()(P);if(Z.parent)N=(0,le.I1)(N,function(W){return W.key===Z.key});else{var ne=N.findIndex(function(W){return W.key===Z.key});ne!==-1&&N.splice(ne,1)}Y(N),Re()}})},onCancel:function(){console.log("Cancel")}})},Re=function(){z(""),w(null),L("\u8BF7\u9009\u62E9\u811A\u672C\u6587\u4EF6")},We=function(i){b(i)};return(0,t.useEffect)(function(){Ze()},[]),(0,t.useEffect)(function(){M.current&&De(M.current.clientHeight)},[M.current,P]),(0,u.jsx)(p.ZP,{className:"ql-container-wrapper log-wrapper",title:A,loading:ye,extra:R?[(0,u.jsx)(x.Z,{treeExpandAction:"click",className:"log-select",value:A,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:P,placeholder:"\u8BF7\u9009\u62E9\u65E5\u5FD7",fieldNames:{value:"key"},treeNodeFilterProp:"title",showSearch:!0,allowClear:!0,onSelect:_})]:[(0,u.jsx)(m.Z,{title:"\u5220\u9664",children:(0,u.jsx)(F.Z,{type:"primary",disabled:!A,onClick:Be,icon:(0,u.jsx)(re.Z,{})})})],header:{style:he},children:(0,u.jsxs)("div",{className:"".concat(v["log-container"]," log-container"),children:[!R&&(0,u.jsxs)(T.Z,{split:"vertical",size:200,maxSize:-100,children:[(0,u.jsx)("div",{className:v["left-tree-container"],children:P.length>0?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(j.Z.Search,{className:v["left-tree-search"],onChange:Le,placeholder:"\u8BF7\u8F93\u5165\u65E5\u5FD7\u540D",allowClear:!0}),(0,u.jsx)("div",{className:v["left-tree-scroller"],ref:M,children:(0,u.jsx)(C.Z,{expandAction:"click",className:v["left-tree"],treeData:Me,showIcon:!0,height:Ce,selectedKeys:[A],showLine:{showLeafIcon:!0},onSelect:Ae,expandedKeys:$,onExpand:We})})]}):(0,u.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,u.jsx)(E.Z,{description:"\u6682\u65E0\u65E5\u5FD7",image:E.Z.PRESENTED_IMAGE_SIMPLE})})}),(0,u.jsx)(f.ZP,{language:"shell",theme:ge,value:K,options:{readOnly:!0,fontSize:12,lineNumbersMinChars:3,fontFamily:"Source Code Pro",folding:!1,glyphMargin:!1,wordWrap:"on"}})]}),R&&(0,u.jsx)(D.fk,{value:K,options:{lineNumbers:!0,lineWrapping:!0,styleActiveLine:!0,matchBrackets:!0,readOnly:!0},onBeforeChange:function(i,g,I){L(I)},onChange:function(i,g,I){}})]})})},ve=fe},45170:function(o,s,e){var l=e(13807);function a(n,r){var t=n==null?0:n.length;return!!t&&l(n,r,0)>-1}o.exports=a},94936:function(o){function s(e,l,a){for(var n=-1,r=e==null?0:e.length;++n<r;)if(a(l,e[n]))return!0;return!1}o.exports=s},92504:function(o){function s(e,l,a,n){for(var r=e.length,t=a+(n?1:-1);n?t--:++t<r;)if(l(e[t],t,e))return t;return-1}o.exports=s},13807:function(o,s,e){var l=e(92504),a=e(99940),n=e(3729);function r(t,c,S){return c===c?n(t,c,S):l(t,a,S)}o.exports=r},99940:function(o){function s(e){return e!==e}o.exports=s},95453:function(o,s,e){var l=e(78188),a=e(45170),n=e(94936),r=e(29880),t=e(17319),c=e(79967),S=200;function O(x,m,F){var j=-1,C=a,E=x.length,d=!0,p=[],f=p;if(F)d=!1,C=n;else if(E>=S){var y=m?null:t(x);if(y)return c(y);d=!1,C=r,f=new l}else f=m?[]:p;e:for(;++j<E;){var v=x[j],D=m?m(v):v;if(v=F||v!==0?v:0,d&&D===D){for(var T=f.length;T--;)if(f[T]===D)continue e;m&&f.push(D),p.push(v)}else C(f,D,F)||(f!==p&&f.push(D),p.push(v))}return p}o.exports=O},17319:function(o,s,e){var l=e(81956),a=e(43226),n=e(79967),r=1/0,t=l&&1/n(new l([,-0]))[1]==r?function(c){return new l(c)}:a;o.exports=t},3729:function(o){function s(e,l,a){for(var n=a-1,r=e.length;++n<r;)if(e[n]===l)return n;return-1}o.exports=s},43226:function(o){function s(){}o.exports=s},4363:function(o,s,e){var l=e(95453);function a(n){return n&&n.length?l(n):[]}o.exports=a}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[9939,3830],{71449:function(a,r,e){"use strict";e.r(r),e.d(r,{default:function(){return q}});var l=e(57213),s=e.n(l),n=e(54306),c=e.n(n),i=e(63313),o=e(67393),B=e(89065),F=e(43848),x=e(22159),v=e(24378),C=e(59873),d=e(5558),E=e(87075),u={container:"container___ldtvs",top:"top___D7yFW",header:"header___j_Z_f",logo:"logo___Cf9cM",title:"title___zhtS2",desc:"desc___gUnVR",main:"main___sAFzH",icon:"icon___CBYA8",other:"other___ldu__",register:"register___e1aGB",prefixIcon:"prefixIcon___CnW6Q",extra:"extra___e62Gt"},m=e(95176),p=e(62753),_=e(14797),D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},T=D,M=e(46420),j=function(P,Z){return i.createElement(M.Z,(0,_.Z)((0,_.Z)({},P),{},{ref:Z,icon:T}))};j.displayName="MobileOutlined";var b=i.forwardRef(j),t=e(11527),A=o.Z.Item,O=B.Z.Countdown,I=window.__ENV__DeployEnv==="demo",X=function(){var P=(0,E.useOutletContext)(),Z=P.reloadUser,te=(0,i.useState)(!1),U=c()(te,2),ae=U[0],L=U[1],ne=(0,i.useState)(),K=c()(ne,2),N=K[0],w=K[1],oe=(0,p.F)(),re=oe.theme,se=(0,i.useState)(!1),z=c()(se,2),R=z[0],G=z[1],ue=(0,i.useState)(!1),H=c()(ue,2),ie=H[0],W=H[1],le=(0,i.useState)(),V=c()(le,2),de=V[0],ce=V[1],fe=function(h){L(!0),G(!1),w(null),m.W.post("".concat(d.Z.apiPrefix,"user/login"),{username:h.username,password:h.password}).then(function(f){$(f,h),L(!1)}).catch(function(f){console.log(f),L(!1)})},k=function(h){W(!0),m.W.put("".concat(d.Z.apiPrefix,"user/two-factor/login"),s()(s()({},de),{},{code:h.code})).then(function(f){$(f),W(!1)}).catch(function(f){console.log(f),W(!1)})},$=function(h,f){var y=h.code,g=h.data,ge=h.message;if(y===200){var he=g.token,ve=g.lastip,pe=g.lastaddr,Q=g.lastlogon,Y=g.retries,J=Y===void 0?0:Y,_e=g.platform;localStorage.setItem(d.Z.authKey,he),F.Z.success({message:"\u767B\u5F55\u6210\u529F\uFF01",description:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:["\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4\uFF1A",Q?new Date(Q).toLocaleString():"-"]}),(0,t.jsxs)("div",{children:["\u4E0A\u6B21\u767B\u5F55\u5730\u70B9\uFF1A",pe||"-"]}),(0,t.jsxs)("div",{children:["\u4E0A\u6B21\u767B\u5F55IP\uFF1A",ve||"-"]}),(0,t.jsxs)("div",{children:["\u4E0A\u6B21\u767B\u5F55\u8BBE\u5907\uFF1A",_e||"-"]}),(0,t.jsxs)("div",{children:["\u4E0A\u6B21\u767B\u5F55\u72B6\u6001\uFF1A",J>0?"\u5931\u8D25".concat(J,"\u6B21"):"\u6210\u529F"]})]})}),Z(!0),E.history.push("/crontab")}else y===410?w(g):y===420?(ce({username:f.username,password:f.password}),G(!0)):y===100&&setTimeout(function(){location.reload()},1e3)},me=function(h){var f=h.target,y=f.value,g=/^[0-9]{6}$/;g.test(y)&&k({code:y})};return(0,i.useEffect)(function(){var S=localStorage.getItem(d.Z.authKey);S&&E.history.push("/crontab")},[]),(0,t.jsxs)("div",{className:u.container,children:[(0,t.jsx)("div",{className:u.top,children:(0,t.jsxs)("div",{className:u.header,children:[(0,t.jsx)("img",{alt:"logo",className:u.logo,src:"https://qn.whyour.cn/logo.png"}),(0,t.jsx)("span",{className:u.title,children:R?"\u4E24\u6B65\u9A8C\u8BC1":d.Z.siteName})]})}),(0,t.jsx)("div",{className:u.main,children:R?(0,t.jsxs)(o.Z,{layout:"vertical",onFinish:k,children:[(0,t.jsx)(A,{name:"code",label:"\u9A8C\u8BC1\u7801",rules:[{pattern:/^[0-9]{6}$/,message:"\u9A8C\u8BC1\u7801\u4E3A6\u4F4D\u6570\u5B57"}],validateTrigger:"onBlur",children:(0,t.jsx)(x.Z,{placeholder:"6\u4F4D\u6570\u5B57",onChange:me,autoFocus:!0,autoComplete:"off"})}),(0,t.jsx)(v.Z,{type:"primary",htmlType:"submit",style:{width:"100%"},loading:ie,children:"\u9A8C\u8BC1"})]}):(0,t.jsxs)(o.Z,{layout:"vertical",onFinish:fe,children:[(0,t.jsx)(A,{name:"username",label:"\u7528\u6237\u540D",hasFeedback:!0,children:(0,t.jsx)(x.Z,{placeholder:"\u7528\u6237\u540D".concat(I?": admin":""),autoFocus:!0})}),(0,t.jsx)(A,{name:"password",label:"\u5BC6\u7801",hasFeedback:!0,children:(0,t.jsx)(x.Z,{type:"password",placeholder:"\u5BC6\u7801".concat(I?": 123":"")})}),(0,t.jsx)(C.Z,{children:N?(0,t.jsxs)(v.Z,{type:"primary",style:{width:"100%"},disabled:!0,children:["\u8BF7",(0,t.jsx)(O,{valueStyle:{color:re==="vs"?"rgba(0,0,0,.25)":"rgba(232, 230, 227, 0.25)"},className:"inline-countdown",onFinish:function(){return w(null)},format:"ss",value:Date.now()+1e3*N}),"\u79D2\u540E\u91CD\u8BD5"]}):(0,t.jsx)(v.Z,{type:"primary",htmlType:"submit",style:{width:"100%"},loading:ae,children:"\u767B\u5F55"})})]})}),(0,t.jsx)("div",{className:u.extra,children:R?(0,t.jsxs)("div",{style:{paddingLeft:20,position:"relative"},children:[(0,t.jsx)(b,{style:{position:"absolute",left:0,top:4}}),"\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u6253\u5F00\u4E24\u6B65\u9A8C\u8BC1\u5E94\u7528\u7A0B\u5E8F\u4EE5\u67E5\u770B\u60A8\u7684\u8EAB\u4EFD\u9A8C\u8BC1\u4EE3\u7801\u5E76\u9A8C\u8BC1\u60A8\u7684\u8EAB\u4EFD\u3002"]}):""})]})},q=X},62753:function(a,r,e){"use strict";e.d(r,{F:function(){return B},e:function(){return o}});var l=e(54306),s=e.n(l),n=e(63313),c=e.n(n),i=e(82428),o=function(){var x=(0,n.useState)("100%"),v=s()(x,2),C=v[0],d=v[1],E=(0,n.useState)(0),u=s()(E,2),m=u[0],p=u[1],_=(0,n.useState)(-48),D=s()(_,2),T=D[0],M=D[1],j=(0,n.useState)(!1),b=s()(j,2),t=b[0],A=b[1],O=(0,n.useMemo)(function(){return(0,i.ZP)()},[]),I=O.platform;return(0,n.useEffect)(function(){I==="mobile"&&document.body.offsetWidth<768?(d("auto"),p(0),M(0),A(!0),document.body.setAttribute("data-mode","phone")):(d("100%"),p(0),M(-48),A(!1),document.body.setAttribute("data-mode","desktop"))},[]),{headerStyle:{padding:"4px 16px 4px 15px",position:"sticky",top:0,left:0,zIndex:20,marginTop:T,width:C,marginLeft:m},isPhone:t}},B=function(){var x=(0,n.useState)(),v=s()(x,2),C=v[0],d=v[1],E=function(){var m=window.matchMedia("(prefers-color-scheme: dark)"),p=localStorage.getItem("qinglong_dark_theme"),_=m.matches&&p!=="light"||p==="dark";d(_?"vs-dark":"vs")};return(0,n.useEffect)(function(){var u=window.matchMedia("(prefers-color-scheme: dark)"),m=localStorage.getItem("qinglong_dark_theme"),p=u.matches&&m!=="light"||m==="dark";d(p?"vs-dark":"vs");var _=function(T){(m==="auto"||!m)&&(T.matches?d("vs-dark"):d("vs"))};typeof u.addEventListener=="function"?u.addEventListener("change",_):typeof u.addListener=="function"&&u.addListener(_)},[]),{theme:C,reloadTheme:E}}},92235:function(a,r,e){"use strict";e.d(r,{Z:function(){return c}});var l=e(17079),s=e(63313),n=e.n(s);function c(){var i=s.useReducer(function(F){return F+1},0),o=(0,l.Z)(i,2),B=o[1];return B}},68098:function(a,r,e){"use strict";e.d(r,{fk:function(){return c},jD:function(){return s}});var l=e(65021),s=function(){return(0,l.Z)()&&window.document.documentElement},n,c=function(){if(!s())return!1;if(n!==void 0)return n;var o=document.createElement("div");return o.style.display="flex",o.style.flexDirection="column",o.style.rowGap="1px",o.appendChild(document.createElement("div")),o.appendChild(document.createElement("div")),document.body.appendChild(o),n=o.scrollHeight===1,document.body.removeChild(o),n}},59873:function(a,r,e){"use strict";var l=e(19698);r.Z=l.Z},24669:function(a){var r=Array.isArray;a.exports=r},30006:function(a,r,e){var l=e(25705);function s(n){if(Array.isArray(n))return l(n)}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports},16660:function(a){function r(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}a.exports=r,a.exports.__esModule=!0,a.exports.default=a.exports},95848:function(a){function r(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a.exports=r,a.exports.__esModule=!0,a.exports.default=a.exports},93525:function(a,r,e){var l=e(30006),s=e(16660),n=e(41442),c=e(95848);function i(o){return l(o)||s(o)||n(o)||c()}a.exports=i,a.exports.__esModule=!0,a.exports.default=a.exports}}]);
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[5586],{30675:function(oe,R,e){e.r(R);var I=e(57213),E=e.n(I),v=e(54306),s=e.n(v),a=e(63313),V=e.n(a),g=e(28756),j=e(60858),O=e(75310),D=e(24378),d=e(95176),f=e(5558),L=e(36035),i=e(82755),h=e(10726),P=e(77385),r=e(62753),W=e(82428),n=e(11527),p=g.Z.Option,o={".py":"python",".js":"javascript",".sh":"shell",".ts":"typescript"},m={python:".py",javascript:".js",shell:".sh",typescript:".ts"},_=function(t){var u=t.treeData,S=t.currentNode,F=t.content,w=t.handleCancel,y=t.visible,Z=t.socketMessage,N=(0,a.useState)(""),C=s()(N,2),H=C[0],A=C[1],q=(0,a.useState)("javascript"),B=s()(q,2),z=B[0],x=B[1],G=(0,a.useState)(),re=s()(G,2),U=re[0],$=re[1],X=(0,a.useState)(""),le=s()(X,2),ae=le[0],se=le[1],J=(0,a.useState)(!1),ie=s()(J,2),Me=ie[0],ue=ie[1],b=(0,a.useState)(!1),de=s()(b,2),me=de[0],ce=de[1],Oe=(0,a.useState)(""),Q=s()(Oe,2),ee=Q[0],te=Q[1],ne=(0,r.F)(),De=ne.theme,Y=(0,a.useRef)(null),Pe=(0,a.useState)(!1),Ee=s()(Pe,2),ve=Ee[0],k=Ee[1],_e=(0,a.useState)(null),ge=s()(_e,2),fe=ge[0],Ce=ge[1],Ie=function(){w()},Te=function(l,M){if(!(M.key===ae||!l)&&M.type!=="directory"){var K=o[l.slice(-3)]||"";$(M),x(K),Re(M),se(M.key)}},Re=function(l){d.W.get("".concat(f.Z.apiPrefix,"scripts/").concat(l.title,"?path=").concat(l.parent||"")).then(function(M){var K=M.code,Se=M.data;K===200&&A(Se)})},he=function(){te("");var l=Y.current.getValue().replace(/\r\n/g,`
|
|
2
|
-
`);d.W.put("".concat(f.Z.apiPrefix,"scripts/run"),{filename:U.title,path:U.parent||"",content:l}).then(function(M){var K=M.code,Se=M.data;K===200&&(k(!0),Ce(Se))})},pe=function(){!U||!U.title||!fe||d.W.put("".concat(f.Z.apiPrefix,"scripts/stop"),{filename:U.title,path:U.parent||"",pid:fe}).then(function(l){var M=l.code,K=l.data;M===200&&k(!1)})};return(0,a.useEffect)(function(){if(Z){var c=Z.type,l=Z.message,M=Z.references;c==="manuallyRunScript"&&((0,W.x$)(l)&&setTimeout(function(){k(!1)},300),ee&&(l=`
|
|
3
|
-
`.concat(l)),te("".concat(ee).concat(l)))}},[Z]),(0,a.useEffect)(function(){if(te(""),S){$(S),A(F),se(S.key);var c=o[S.title.slice(-3)]||"";x(c)}},[F,S]),(0,n.jsxs)(j.Z,{className:"edit-modal",closable:!1,title:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(O.Z,{treeExpandAction:"click",style:{marginRight:8,width:150},value:ae,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:u,placeholder:"\u8BF7\u9009\u62E9\u811A\u672C\u6587\u4EF6",fieldNames:{value:"key",label:"title"},showSearch:!0,onSelect:Te}),(0,n.jsxs)(g.Z,{value:z,style:{width:110,marginRight:8},onChange:function(l){x(l)},children:[(0,n.jsx)(p,{value:"javascript",children:"javascript"}),(0,n.jsx)(p,{value:"typescript",children:"typescript"}),(0,n.jsx)(p,{value:"shell",children:"shell"}),(0,n.jsx)(p,{value:"python",children:"python"})]}),(0,n.jsx)(D.Z,{type:"primary",style:{marginRight:8},onClick:ve?pe:he,children:ve?"\u505C\u6B62":"\u8FD0\u884C"}),(0,n.jsx)(D.Z,{type:"primary",style:{marginRight:8},onClick:function(){te("")},children:"\u6E05\u7A7A\u65E5\u5FD7"}),(0,n.jsx)(D.Z,{type:"primary",style:{marginRight:8},onClick:function(){ce(!0)},children:"\u8BBE\u7F6E"}),(0,n.jsx)(D.Z,{type:"primary",style:{marginRight:8},onClick:function(){ue(!0)},children:"\u4FDD\u5B58"}),(0,n.jsx)(D.Z,{type:"primary",style:{marginRight:8},onClick:function(){pe(),w()},children:"\u9000\u51FA"})]}),width:"100%",headerStyle:{padding:"11px 24px"},onClose:Ie,open:y,children:[(0,n.jsxs)(L.Z,{split:"vertical",minSize:200,defaultSize:"50%",style:{height:"calc(100vh - 55px)"},children:[(0,n.jsx)(i.ZP,{language:z,value:H,theme:De,options:{fontSize:12,minimap:{enabled:!1},lineNumbersMinChars:3,glyphMargin:!1},onMount:function(l){Y.current=l}}),(0,n.jsx)("pre",{style:{height:"100%",padding:"0 15px"},children:ee})]}),(0,n.jsx)(h.default,{visible:Me,handleCancel:function(){ue(!1)},file:E()({content:Y.current&&Y.current.getValue().replace(/\r\n/g,`
|
|
4
|
-
`)},U)}),(0,n.jsx)(P.default,{visible:me,handleCancel:function(){ce(!1)}})]})};R.default=_},10726:function(oe,R,e){e.r(R);var I=e(25359),E=e.n(I),v=e(57213),s=e.n(v),a=e(49811),V=e.n(a),g=e(54306),j=e.n(g),O=e(63313),D=e.n(O),d=e(67393),f=e(9835),L=e(84163),i=e(22159),h=e(95176),P=e(5558),r=e(11527),W=function(p){var o=p.file,m=p.handleCancel,_=p.visible,T=d.Z.useForm(),t=j()(T,1),u=t[0],S=(0,O.useState)(!1),F=j()(S,2),w=F[0],y=F[1],Z=function(){var N=V()(E()().mark(function C(H){var A;return E()().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:y(!0),A=s()(s()(s()({},o),H),{},{originFilename:o.title}),h.W.post("".concat(P.Z.apiPrefix,"scripts"),A).then(function(z){var x=z.code,G=z.data;x===200&&(f.ZP.success("\u4FDD\u5B58\u6587\u4EF6\u6210\u529F"),m(G)),y(!1)});case 3:case"end":return B.stop()}},C)}));return function(H){return N.apply(this,arguments)}}();return(0,O.useEffect)(function(){u.resetFields(),y(!1)},[o,_]),(0,r.jsx)(L.Z,{title:"\u4FDD\u5B58\u6587\u4EF6",open:_,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){u.validateFields().then(function(C){Z(C)}).catch(function(C){console.log("Validate Failed:",C)})},onCancel:function(){return m()},confirmLoading:w,children:(0,r.jsxs)(d.Z,{form:u,layout:"vertical",name:"script_modal",initialValues:{filename:o==null?void 0:o.title,path:(o==null?void 0:o.parent)||""},children:[(0,r.jsx)(d.Z.Item,{name:"filename",label:"\u6587\u4EF6\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"}],children:(0,r.jsx)(i.Z,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"})}),(0,r.jsx)(d.Z.Item,{name:"path",label:"\u4FDD\u5B58\u76EE\u5F55",children:(0,r.jsx)(i.Z,{placeholder:"\u8BF7\u8F93\u5165\u4FDD\u5B58\u76EE\u5F55\uFF0C\u9ED8\u8BA4scripts\u76EE\u5F55"})})]})})};R.default=W},77385:function(oe,R,e){e.r(R);var I=e(25359),E=e.n(I),v=e(57213),s=e.n(v),a=e(49811),V=e.n(a),g=e(54306),j=e.n(g),O=e(63313),D=e.n(O),d=e(67393),f=e(9835),L=e(84163),i=e(22159),h=e(95176),P=e(5558),r=e(11527),W=function(p){var o=p.file,m=p.handleCancel,_=p.visible,T=d.Z.useForm(),t=j()(T,1),u=t[0],S=(0,O.useState)(!1),F=j()(S,2),w=F[0],y=F[1],Z=function(){var N=V()(E()().mark(function C(H){var A;return E()().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:y(!0),A=s()(s()({},o),H),h.W.post("".concat(P.Z.apiPrefix,"scripts"),A).then(function(z){var x=z.code,G=z.data;x===200&&(f.ZP.success("\u4FDD\u5B58\u6587\u4EF6\u6210\u529F"),m(G)),y(!1)});case 3:case"end":return B.stop()}},C)}));return function(H){return N.apply(this,arguments)}}();return(0,O.useEffect)(function(){u.resetFields(),y(!1)},[o,_]),(0,r.jsx)(L.Z,{title:"\u8FD0\u884C\u8BBE\u7F6E",open:_,forceRender:!0,centered:!0,onCancel:function(){return m()},children:(0,r.jsx)(d.Z,{form:u,layout:"vertical",name:"setting_modal",initialValues:o,children:(0,r.jsx)(d.Z.Item,{name:"filename",label:"\u5F85\u5F00\u53D1",rules:[{required:!0,message:"\u5F85\u5F00\u53D1"}],children:(0,r.jsx)(i.Z,{placeholder:"\u5F85\u5F00\u53D1"})})})})};R.default=W},62753:function(oe,R,e){e.d(R,{F:function(){return g},e:function(){return V}});var I=e(54306),E=e.n(I),v=e(63313),s=e.n(v),a=e(82428),V=function(){var O=(0,v.useState)("100%"),D=E()(O,2),d=D[0],f=D[1],L=(0,v.useState)(0),i=E()(L,2),h=i[0],P=i[1],r=(0,v.useState)(-48),W=E()(r,2),n=W[0],p=W[1],o=(0,v.useState)(!1),m=E()(o,2),_=m[0],T=m[1],t=(0,v.useMemo)(function(){return(0,a.ZP)()},[]),u=t.platform;return(0,v.useEffect)(function(){u==="mobile"&&document.body.offsetWidth<768?(f("auto"),P(0),p(0),T(!0),document.body.setAttribute("data-mode","phone")):(f("100%"),P(0),p(-48),T(!1),document.body.setAttribute("data-mode","desktop"))},[]),{headerStyle:{padding:"4px 16px 4px 15px",position:"sticky",top:0,left:0,zIndex:20,marginTop:n,width:d,marginLeft:h},isPhone:_}},g=function(){var O=(0,v.useState)(),D=E()(O,2),d=D[0],f=D[1],L=function(){var h=window.matchMedia("(prefers-color-scheme: dark)"),P=localStorage.getItem("qinglong_dark_theme"),r=h.matches&&P!=="light"||P==="dark";f(r?"vs-dark":"vs")};return(0,v.useEffect)(function(){var i=window.matchMedia("(prefers-color-scheme: dark)"),h=localStorage.getItem("qinglong_dark_theme"),P=i.matches&&h!=="light"||h==="dark";f(P?"vs-dark":"vs");var r=function(n){(h==="auto"||!h)&&(n.matches?f("vs-dark"):f("vs"))};typeof i.addEventListener=="function"?i.addEventListener("change",r):typeof i.addListener=="function"&&i.addListener(r)},[]),{theme:d,reloadTheme:L}}},28756:function(oe,R,e){var I=e(87807),E=e(60795),v=e(84875),s=e.n(v),a=e(40804),V=e(92976),g=e(63313),j=e.n(g),O=e(82259),D=e(23474),d=e(7893),f=e(65189),L=e(76737),i=e(16082),h=e(1020),P=e(91967),r=e(60934),W=function(m,_){var T={};for(var t in m)Object.prototype.hasOwnProperty.call(m,t)&&_.indexOf(t)<0&&(T[t]=m[t]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,t=Object.getOwnPropertySymbols(m);u<t.length;u++)_.indexOf(t[u])<0&&Object.prototype.propertyIsEnumerable.call(m,t[u])&&(T[t[u]]=m[t[u]]);return T},n="SECRET_COMBOBOX_MODE_DO_NOT_USE",p=function(_,T){var t,u=_.prefixCls,S=_.bordered,F=S===void 0?!0:S,w=_.className,y=_.getPopupContainer,Z=_.dropdownClassName,N=_.popupClassName,C=_.listHeight,H=C===void 0?256:C,A=_.placement,q=_.listItemHeight,B=q===void 0?24:q,z=_.size,x=_.disabled,G=_.notFoundContent,re=_.status,U=_.showArrow,$=W(_,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),X=g.useContext(O.E_),le=X.getPopupContainer,ae=X.getPrefixCls,se=X.renderEmpty,J=X.direction,ie=X.virtual,Me=X.dropdownMatchSelectWidth,ue=g.useContext(f.Z),b=ae("select",u),de=ae(),me=(0,r.ri)(b,J),ce=me.compactSize,Oe=me.compactItemClassnames,Q=g.useMemo(function(){var K=$.mode;if(K!=="combobox")return K===n?"combobox":K},[$.mode]),ee=Q==="multiple"||Q==="tags",te=U!==void 0?U:$.loading||!(ee||Q==="combobox"),ne=(0,g.useContext)(L.aM),De=ne.status,Y=ne.hasFeedback,Pe=ne.isFormItemInput,Ee=ne.feedbackIcon,ve=(0,h.F)(De,re),k;G!==void 0?k=G:Q==="combobox"?k=null:k=(se||D.Z)("Select");var _e=(0,P.Z)((0,E.Z)((0,E.Z)({},$),{multiple:ee,hasFeedback:Y,feedbackIcon:Ee,showArrow:te,prefixCls:b})),ge=_e.suffixIcon,fe=_e.itemIcon,Ce=_e.removeIcon,Ie=_e.clearIcon,Te=(0,V.Z)($,["suffixIcon","itemIcon"]),Re=s()(N||Z,(0,I.Z)({},"".concat(b,"-dropdown-").concat(J),J==="rtl")),he=ce||z||ue,pe=g.useContext(d.Z),c=x!=null?x:pe,l=s()((t={},(0,I.Z)(t,"".concat(b,"-lg"),he==="large"),(0,I.Z)(t,"".concat(b,"-sm"),he==="small"),(0,I.Z)(t,"".concat(b,"-rtl"),J==="rtl"),(0,I.Z)(t,"".concat(b,"-borderless"),!F),(0,I.Z)(t,"".concat(b,"-in-form-item"),Pe),t),(0,h.Z)(b,ve,Y),Oe,w),M=function(){return A!==void 0?A:J==="rtl"?"bottomRight":"bottomLeft"};return g.createElement(a.ZP,(0,E.Z)({ref:T,virtual:ie,dropdownMatchSelectWidth:Me},Te,{transitionName:(0,i.mL)(de,(0,i.q0)(A),$.transitionName),listHeight:H,listItemHeight:B,mode:Q,prefixCls:b,placement:M(),direction:J,inputIcon:ge,menuItemSelectedIcon:fe,removeIcon:Ce,clearIcon:Ie,notFoundContent:k,className:l,getPopupContainer:y||le,dropdownClassName:Re,showArrow:Y||U,disabled:c}))},o=g.forwardRef(p);o.SECRET_COMBOBOX_MODE_DO_NOT_USE=n,o.Option=a.Wx,o.OptGroup=a.Xo,R.Z=o}}]);
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[7158],{55667:function(k,c,e){e.r(c);var D=e(57213),s=e.n(D),B=e(54689),y=e.n(B),h=e(25359),g=e.n(h),d=e(49811),M=e.n(d),C=e(54306),E=e.n(C),u=e(63313),j=e.n(u),T=e(28756),l=e(67393),a=e(9835),b=e(84163),i=e(84468),v=e(22159),O=e(75310),L=e(57679),r=e(95176),N=e(5558),z=e(59953),t=e(11527),he=T.Z.Option,V=function(A){var F=A.handleCancel,w=A.treeData,S=A.visible,Y=l.Z.useForm(),J=E()(Y,1),U=J[0],ee=(0,u.useState)(!1),Z=E()(ee,2),te=Z[0],K=Z[1],ae=(0,u.useState)([]),H=E()(ae,2),re=H[0],ne=H[1],le=(0,u.useState)(),G=E()(le,2),I=G[0],oe=G[1],ue=(0,u.useState)("blank"),X=E()(ue,2),R=X[0],ie=X[1],_e=function(){var p=M()(g()().mark(function n(o){var P,_,m,W,x,f;return g()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:K(!0),P=o.path,_=P===void 0?"":P,m=o.filename,W=o.directory,x=W===void 0?"":W,f=new FormData,f.append("file",I),f.append("filename",m),f.append("path",_),f.append("content",""),f.append("directory",x),r.W.post("".concat(N.Z.apiPrefix,"scripts"),f).then(function($){var me=$.code,ve=$.data;if(me===200){a.ZP.success(x?"\u65B0\u5EFA\u6587\u4EF6\u5939\u6210\u529F":"\u65B0\u5EFA\u6587\u4EF6\u6210\u529F");var ce=_?"".concat(_,"/"):"",Q=I?I.name:m;F({filename:Q,path:_,key:"".concat(ce).concat(Q)})}K(!1)}).finally(function(){return K(!1)});case 9:case"end":return q.stop()}},n)}));return function(o){return p.apply(this,arguments)}}(),se=function(n){return oe(n),!1},de=function(n){ie(n.target.value)},pe=function p(n){var o=y()(n),P;try{for(o.s();!(P=o.n()).done;){var _=P.value;_.children&&_.children.length>0&&(_.children=_.children.filter(function(m){return m.type==="directory"}).map(function(m){return s()(s()({},m),{},{disabled:!1})}),p(_.children))}}catch(m){o.e(m)}finally{o.f()}return n};return(0,u.useEffect)(function(){var p=w.filter(function(o){return o.type==="directory"}).map(function(o){return s()(s()({},o),{},{disabled:!1})}),n=pe(p);ne(n)},[w]),(0,u.useEffect)(function(){U.resetFields()},[S]),(0,t.jsx)(b.Z,{title:"\u65B0\u5EFA",open:S,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){U.validateFields().then(function(n){_e(n)}).catch(function(n){console.log("Validate Failed:",n)})},onCancel:function(){return F()},confirmLoading:te,children:(0,t.jsxs)(l.Z,{form:U,layout:"vertical",name:"edit_name_modal",children:[(0,t.jsx)(l.Z.Item,{name:"type",label:"\u7C7B\u578B",rules:[{required:!0}],initialValue:"blank",children:(0,t.jsxs)(i.ZP.Group,{onChange:de,children:[(0,t.jsx)(i.ZP,{value:"blank",children:"\u7A7A\u6587\u4EF6"}),(0,t.jsx)(i.ZP,{value:"upload",children:"\u672C\u5730\u6587\u4EF6"}),(0,t.jsx)(i.ZP,{value:"directory",children:"\u6587\u4EF6\u5939"})]})}),R==="blank"&&(0,t.jsx)(l.Z.Item,{name:"filename",label:"\u6587\u4EF6\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"},{validator:function(n,o){return o.includes("/")?Promise.reject(new Error("\u6587\u4EF6\u540D\u4E0D\u80FD\u5305\u542B\u659C\u6760")):Promise.resolve()}}],children:(0,t.jsx)(v.Z,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"})}),R==="directory"&&(0,t.jsx)(l.Z.Item,{name:"directory",label:"\u6587\u4EF6\u5939\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D"}],children:(0,t.jsx)(v.Z,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D"})}),(0,t.jsx)(l.Z.Item,{label:"\u7236\u76EE\u5F55",name:"path",children:(0,t.jsx)(O.Z,{allowClear:!0,treeData:re,fieldNames:{value:"key",label:"title"},placeholder:"\u8BF7\u9009\u62E9\u7236\u76EE\u5F55",treeDefaultExpandAll:!0})}),R==="upload"&&(0,t.jsx)(l.Z.Item,{label:"\u6587\u4EF6",name:"file",children:(0,t.jsxs)(L.Z.Dragger,{beforeUpload:se,maxCount:1,children:[(0,t.jsx)("p",{className:"ant-upload-drag-icon",children:(0,t.jsx)(z.Z,{})}),(0,t.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u8005\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"})]})})]})})};c.default=V},5558:function(k,c){var e=window.__ENV__QlBaseUrl||"/";c.Z={siteName:"\u9752\u9F99",apiPrefix:"".concat(e,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Portugu\xEAs",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:"\u4E2D\u6587",flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:"\u5B9A\u65F6\u4EFB\u52A1",value:"crons"},{name:"\u73AF\u5883\u53D8\u91CF",value:"envs"},{name:"\u8BA2\u9605\u7BA1\u7406",value:"subscriptions"},{name:"\u914D\u7F6E\u6587\u4EF6",value:"configs"},{name:"\u811A\u672C\u7BA1\u7406",value:"scripts"},{name:"\u65E5\u5FD7\u7BA1\u7406",value:"logs"},{name:"\u4F9D\u8D56\u7BA1\u7406",value:"dependencies"},{name:"\u7CFB\u7EDF\u4FE1\u606F",value:"system"}],scopesMap:{crons:"\u5B9A\u65F6\u4EFB\u52A1",envs:"\u73AF\u5883\u53D8\u91CF",subscriptions:"\u8BA2\u9605\u7BA1\u7406",configs:"\u914D\u7F6E\u6587\u4EF6",scripts:"\u811A\u672C\u7BA1\u7406",logs:"\u65E5\u5FD7\u7BA1\u7406",dependencies:"\u4F9D\u8D56\u7BA1\u7406",system:"\u7CFB\u7EDF\u4FE1\u606F"},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:"Server\u9171"},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:"Telegram\u673A\u5668\u4EBA"},{value:"dingtalkBot",label:"\u9489\u9489\u673A\u5668\u4EBA"},{value:"weWorkBot",label:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA"},{value:"weWorkApp",label:"\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"},{value:"aibotk",label:"\u667A\u80FD\u5FAE\u79D8\u4E66"},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:"\u7FA4\u6656chat"},{value:"email",label:"\u90AE\u7BB1"},{value:"lark",label:"\u98DE\u4E66\u673A\u5668\u4EBA"},{value:"pushMe",label:"PushMe"},{value:"webhook",label:"\u81EA\u5B9A\u4E49\u901A\u77E5"},{value:"closed",label:"\u5DF2\u5173\u95ED"}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:"gotify\u7684url\u5730\u5740,\u4F8B\u5982 https://push.example.de:8080",required:!0},{label:"gotifyToken",tip:"gotify\u7684\u6D88\u606F\u5E94\u7528token\u7801",required:!0},{label:"gotifyPriority",tip:"\u63A8\u9001\u6D88\u606F\u7684\u4F18\u5148\u7EA7"}],chat:[{label:"chatUrl",tip:"chat\u7684url\u5730\u5740",required:!0},{label:"chatToken",tip:"chat\u7684token\u7801",required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:"\u63A8\u9001\u5230\u4E2A\u4EBAQQ: http://127.0.0.1/send_private_msg\uFF0C\u7FA4\uFF1Ahttp://127.0.0.1/send_group_msg",required:!0},{label:"goCqHttpBotToken",tip:"\u8BBF\u95EE\u5BC6\u94A5",required:!0},{label:"goCqHttpBotQq",tip:"\u5982\u679CGOBOT_URL\u8BBE\u7F6E /send_private_msg \u5219\u9700\u8981\u586B\u5165 user_id=\u4E2A\u4EBAQQ \u76F8\u53CD\u5982\u679C\u662F /send_group_msg \u5219\u9700\u8981\u586B\u5165 group_id=QQ\u7FA4",required:!0}],serverChan:[{label:"serverChanKey",tip:"Server\u9171SENDKEY",required:!0}],pushDeer:[{label:"pushDeerKey",tip:"PushDeer\u7684Key\uFF0Chttps://github.com/easychen/pushdeer",required:!0},{label:"pushDeerUrl",tip:"PushDeer\u7684\u81EA\u67B6API endpoint\uFF0C\u9ED8\u8BA4\u662F https://api2.pushdeer.com/message/push"}],bark:[{label:"barkPush",tip:"Bark\u7684\u4FE1\u606FIP/\u8BBE\u5907\u7801\uFF0C\u4F8B\u5982\uFF1Ahttps://api.day.app/XXXXXXXX",required:!0},{label:"barkIcon",tip:"BARK\u63A8\u9001\u56FE\u6807,\u81EA\u5B9A\u4E49\u63A8\u9001\u56FE\u6807 (\u9700iOS15\u6216\u4EE5\u4E0A\u624D\u80FD\u663E\u793A)"},{label:"barkSound",tip:"BARK\u63A8\u9001\u94C3\u58F0,\u94C3\u58F0\u5217\u8868\u53BBAPP\u67E5\u770B\u590D\u5236\u586B\u5199"},{label:"barkGroup",tip:"BARK\u63A8\u9001\u6D88\u606F\u7684\u5206\u7EC4, \u9ED8\u8BA4\u4E3Aqinglong"}],telegramBot:[{label:"telegramBotToken",tip:"telegram\u673A\u5668\u4EBA\u7684token\uFF0C\u4F8B\u5982\uFF1A1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw",required:!0},{label:"telegramBotUserId",tip:"telegram\u7528\u6237\u7684id\uFF0C\u4F8B\u5982\uFF1A129xxx206",required:!0},{label:"telegramBotProxyHost",tip:"\u4EE3\u7406IP"},{label:"telegramBotProxyPort",tip:"\u4EE3\u7406\u7AEF\u53E3"},{label:"telegramBotProxyAuth",tip:"telegram\u4EE3\u7406\u914D\u7F6E\u8BA4\u8BC1\u53C2\u6570, \u7528\u6237\u540D\u4E0E\u5BC6\u7801\u7528\u82F1\u6587\u5192\u53F7\u8FDE\u63A5 user:password"},{label:"telegramBotApiHost",tip:"telegram api\u81EA\u5EFA\u7684\u53CD\u5411\u4EE3\u7406\u5730\u5740\uFF0C\u9ED8\u8BA4tg\u5B98\u65B9api"}],dingtalkBot:[{label:"dingtalkBotToken",tip:"\u9489\u9489\u673A\u5668\u4EBAwebhook token\uFF0C\u4F8B\u5982\uFF1A5a544165465465645d0f31dca676e7bd07415asdasd",required:!0},{label:"dingtalkBotSecret",tip:"\u5BC6\u94A5\uFF0C\u673A\u5668\u4EBA\u5B89\u5168\u8BBE\u7F6E\u9875\u9762\uFF0C\u52A0\u7B7E\u4E00\u680F\u4E0B\u9762\u663E\u793A\u7684SEC\u5F00\u5934\u7684\u5B57\u7B26\u4E32"}],weWorkBot:[{label:"weWorkBotKey",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u673A\u5668\u4EBA\u7684 webhook(\u8BE6\u89C1\u6587\u6863 https://work.weixin.qq.com/api/doc/90000/90136/91770)\uFF0C\u4F8B\u5982\uFF1A693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],weWorkApp:[{label:"weWorkAppKey",tip:"corpid,corpsecret,touser(\u6CE8:\u591A\u4E2A\u6210\u5458ID\u4F7F\u7528|\u9694\u5F00),agentid,\u6D88\u606F\u7C7B\u578B(\u9009\u586B,\u4E0D\u586B\u9ED8\u8BA4\u6587\u672C\u6D88\u606F\u7C7B\u578B) \u6CE8\u610F\u7528,\u53F7\u9694\u5F00(\u82F1\u6587\u8F93\u5165\u6CD5\u7684\u9017\u53F7)\uFF0C\u4F8B\u5982\uFF1Awwcfrs,B-76WERQ,qinglong,1000001,2COat",required:!0},{label:"weWorkOrigin",tip:"\u4F01\u4E1A\u5FAE\u4FE1\u4EE3\u7406\u5730\u5740"}],aibotk:[{label:"aibotkKey",tip:"\u5BC6\u94A5key,\u667A\u80FD\u5FAE\u79D8\u4E66\u4E2A\u4EBA\u4E2D\u5FC3\u83B7\u53D6apikey\uFF0C\u7533\u8BF7\u5730\u5740\uFF1Ahttps://wechat.aibotk.com/signup?from=ql",required:!0},{label:"aibotkType",tip:"\u53D1\u9001\u7684\u76EE\u6807\uFF0C\u7FA4\u7EC4\u6216\u8005\u597D\u53CB",required:!0,placeholder:"\u8BF7\u8F93\u5165\u8981\u53D1\u9001\u7684\u76EE\u6807",items:[{value:"room",label:"\u7FA4\u804A"},{value:"contact",label:"\u597D\u53CB"}]},{label:"aibotkName",tip:"\u8981\u53D1\u9001\u7684\u7528\u6237\u6635\u79F0\u6216\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u7FA4\uFF0C\u9700\u8981\u586B\u7FA4\u540D\uFF0C\u5982\u679C\u76EE\u6807\u662F\u597D\u53CB\uFF0C\u9700\u8981\u586B\u597D\u53CB\u6635\u79F0",required:!0}],iGot:[{label:"iGotPushKey",tip:"iGot\u7684\u4FE1\u606F\u63A8\u9001key\uFF0C\u4F8B\u5982\uFF1Ahttps://push.hellyw.com/XXXXXXXX",required:!0}],pushPlus:[{label:"pushPlusToken",tip:"\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u540E\u4E00\u5BF9\u4E00\u63A8\u9001\u6216\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762\u7684token(\u60A8\u7684Token)\uFF0C\u4E0D\u63D0\u4F9BPUSH_PLUS_USER\u5219\u9ED8\u8BA4\u4E3A\u4E00\u5BF9\u4E00\u63A8\u9001\uFF0C\u53C2\u8003 https://www.pushplus.plus/",required:!0},{label:"pushPlusUser",tip:"\u4E00\u5BF9\u591A\u63A8\u9001\u7684\u201C\u7FA4\u7EC4\u7F16\u7801\u201D\uFF08\u4E00\u5BF9\u591A\u63A8\u9001\u4E0B\u9762->\u60A8\u7684\u7FA4\u7EC4(\u5982\u65E0\u5219\u65B0\u5EFA)->\u7FA4\u7EC4\u7F16\u7801\uFF0C\u5982\u679C\u60A8\u662F\u521B\u5EFA\u7FA4\u7EC4\u4EBA\u3002\u4E5F\u9700\u70B9\u51FB\u201C\u67E5\u770B\u4E8C\u7EF4\u7801\u201D\u626B\u63CF\u7ED1\u5B9A\uFF0C\u5426\u5219\u4E0D\u80FD\u63A5\u53D7\u7FA4\u7EC4\u6D88\u606F\u63A8\u9001\uFF09"}],lark:[{label:"larkKey",tip:"\u98DE\u4E66\u7FA4\u7EC4\u673A\u5668\u4EBA\uFF1Ahttps://www.feishu.cn/hc/zh-CN/articles/360024984973",required:!0}],email:[{label:"emailService",tip:"\u90AE\u7BB1\u670D\u52A1\u540D\u79F0\uFF0C\u6BD4\u5982126\u3001163\u3001Gmail\u3001QQ\u7B49\uFF0C\u652F\u6301\u5217\u8868https://nodemailer.com/smtp/well-known/",required:!0},{label:"emailUser",tip:"\u90AE\u7BB1\u5730\u5740",required:!0},{label:"emailPass",tip:"\u90AE\u7BB1SMTP\u6388\u6743\u7801",required:!0}],pushMe:[{label:"pushMeKey",tip:"PushMe\u7684Key\uFF0Chttps://push.i-i.me/",required:!0}],webhook:[{label:"webhookMethod",tip:"\u8BF7\u6C42\u65B9\u6CD5",required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:"\u8BF7\u6C42\u5934Content-Type",required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:"\u8BF7\u6C42\u94FE\u63A5\u4EE5http\u6216\u8005https\u5F00\u5934\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",required:!0,placeholder:`https://xxx.cn/api?content=$title
|
|
2
|
-
`},{label:"webhookHeaders",tip:"\u8BF7\u6C42\u5934\u683C\u5F0FCustom-Header1: Header1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272",placeholder:`Custom-Header1: Header1
|
|
3
|
-
Custom-Header2: Header2`},{label:"webhookBody",tip:"\u8BF7\u6C42\u4F53\u683C\u5F0Fkey1: value1\uFF0C\u591A\u4E2A\u6362\u884C\u5206\u5272\u3002url\u6216\u8005body\u4E2D\u5FC5\u987B\u5305\u542B$title\uFF0C$content\u53EF\u9009\uFF0C\u5BF9\u5E94api\u5185\u5BB9\u7684\u4F4D\u7F6E",placeholder:`key1: $title
|
|
4
|
-
key2: $content`}]},documentTitleMap:{"/login":"\u767B\u5F55","/initialization":"\u521D\u59CB\u5316","/crontab":"\u5B9A\u65F6\u4EFB\u52A1","/env":"\u73AF\u5883\u53D8\u91CF","/subscription":"\u8BA2\u9605\u7BA1\u7406","/config":"\u914D\u7F6E\u6587\u4EF6","/script":"\u811A\u672C\u7BA1\u7406","/diff":"\u5BF9\u6BD4\u5DE5\u5177","/log":"\u65E5\u5FD7\u7BA1\u7406","/setting":"\u7CFB\u7EDF\u8BBE\u7F6E","/error":"\u9519\u8BEF\u65E5\u5FD7","/dependence":"\u4F9D\u8D56\u7BA1\u7406"},dependenceTypes:["nodejs","python3","linux"]}},95176:function(k,c,e){e.d(c,{W:function(){return T}});var D=e(25359),s=e.n(D),B=e(49811),y=e.n(B),h=e(9835),g=e(5558),d=e(87075),M=e(73669);h.ZP.config({duration:2});var C=Date.now(),E=function(a){if(a.response){var b=a.response.data?a.response.data.message||a.message||a.response.data:a.response.statusText,i=a.response.status;[502,504].includes(i)?d.history.push("/error"):i===401?d.history.location.pathname!=="/login"&&(h.ZP.error("\u767B\u5F55\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),localStorage.removeItem(g.Z.authKey),d.history.push("/login")):h.ZP.error({content:b,style:{maxWidth:500,margin:"0 auto"}})}else console.log(a.message);return Promise.reject(a)},u=M.Z.create({timeout:6e4,params:{t:C}}),j=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];u.interceptors.request.use(function(l){var a=localStorage.getItem(g.Z.authKey);return a&&!j.includes(l.url)&&(l.headers.Authorization="Bearer ".concat(a)),l}),u.interceptors.response.use(function(){var l=y()(s()().mark(function a(b){var i,v,O;return s()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(i=b.status,![502,504].includes(i)){r.next=5;break}d.history.push("/error"),r.next=18;break;case 5:if(i!==401){r.next=9;break}d.history.location.pathname!=="/login"&&(localStorage.removeItem(g.Z.authKey),d.history.push("/login")),r.next=18;break;case 9:return r.prev=9,v=b.data,v.code!==200&&(O=v.message||v.data,O&&h.ZP.error({content:O,style:{maxWidth:500,margin:"0 auto"}})),r.abrupt("return",v);case 15:r.prev=15,r.t0=r.catch(9);case 17:return r.abrupt("return",b);case 18:return r.abrupt("return",b);case 19:case"end":return r.stop()}},a,null,[[9,15]])}));return function(a){return l.apply(this,arguments)}}(),E);var T=u},92235:function(k,c,e){e.d(c,{Z:function(){return y}});var D=e(17079),s=e(63313),B=e.n(s);function y(){var h=s.useReducer(function(M){return M+1},0),g=(0,D.Z)(h,2),d=g[1];return d}}}]);
|