@whyour/qinglong 2.18.3-0 → 2.18.3-2
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 +1 -1
- package/static/build/api/script.js +1 -0
- package/static/dist/4859.93e63ea6.async.js +1 -0
- package/static/dist/index.html +2 -2
- package/static/dist/preload_helper.7774ad79.js +1 -0
- package/static/dist/src__pages__crontab__detail.ebbb4abf.async.js +1 -0
- package/static/dist/src__pages__crontab__index.5eb33581.async.js +1 -0
- package/static/dist/src__pages__crontab__viewManageModal.c4bfd6a2.async.js +1 -0
- package/static/dist/src__pages__dependence__index.c31e50f0.async.js +1 -0
- package/static/dist/src__pages__env__index.5a863036.async.js +1 -0
- package/static/dist/src__pages__log__index.cf00c9af.async.js +1 -0
- package/static/dist/src__pages__script__components__UnsupportedFilePreview__index.39074c68.async.js +1 -0
- package/static/dist/src__pages__script__components__UnsupportedFilePreview__index.d50aeff1.chunk.css +1 -0
- package/static/dist/src__pages__script__index.2a9459c3.async.js +1 -0
- package/static/dist/src__pages__script__index.60b6f827.chunk.css +1 -0
- package/static/dist/src__pages__setting__index.34ed674c.async.js +1 -0
- package/static/dist/src__pages__subscription__index.850531a4.async.js +1 -0
- package/static/dist/{umi.9fa4763d.js → umi.a68ca170.js} +1 -1
- package/version.yaml +1 -0
- package/static/dist/8341.4eb7de0a.async.js +0 -1
- package/static/dist/preload_helper.8eaccb2b.js +0 -1
- package/static/dist/src__pages__crontab__detail.c7d28d13.async.js +0 -1
- package/static/dist/src__pages__crontab__index.b6a281d6.async.js +0 -1
- package/static/dist/src__pages__crontab__viewManageModal.4874669b.async.js +0 -1
- package/static/dist/src__pages__dependence__index.4a0af2b9.async.js +0 -1
- package/static/dist/src__pages__env__index.7205e719.async.js +0 -1
- package/static/dist/src__pages__log__index.73af3909.async.js +0 -1
- package/static/dist/src__pages__script__index.21696222.chunk.css +0 -1
- package/static/dist/src__pages__script__index.bd6475a1.async.js +0 -1
- package/static/dist/src__pages__setting__index.f6051186.async.js +0 -1
- package/static/dist/src__pages__subscription__index.30fefd8e.async.js +0 -1
- /package/static/dist/{8341.1b962b29.chunk.css → 4859.1b962b29.chunk.css} +0 -0
package/static/dist/index.html
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
<link rel="shortcut icon" href="https://qn.whyour.cn/favicon.svg">
|
|
8
8
|
<link rel="stylesheet" href="./umi.a4d14b92.css">
|
|
9
9
|
<script src="./api/env.js"></script>
|
|
10
|
-
<script src="./preload_helper.
|
|
10
|
+
<script src="./preload_helper.7774ad79.js"></script>
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<div id="root"></div>
|
|
14
|
-
<script src="./umi.
|
|
14
|
+
<script src="./umi.a68ca170.js"></script>
|
|
15
15
|
</body>
|
|
16
16
|
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"@whyour/qinglong","b":"webpack","f":[["src__pages__subscription__modal.10cd630d.async.js",73],["119.89e2d610.async.js",119],["src__pages__setting__about.e6db5090.chunk.css",154],["src__pages__setting__about.3d3c019f.async.js",154],["src__pages__env__modal.d923acdb.async.js",222],["255.12f03ab2.async.js",255],["src__pages__crontab__viewManageModal.c4bfd6a2.async.js",349],["src__pages__script__setting.c6503aaf.async.js",440],["src__pages__subscription__logModal.9bf0b4f6.async.js",578],["691.187a388c.async.js",691],["src__pages__dependence__modal.1bb8572d.async.js",803],["874.ae8edb1a.async.js",874],["1352.ab6da08e.async.js",1352],["src__pages__dependence__logModal.f123e2ac.async.js",1406],["src__pages__initialization__index.66819338.chunk.css",1554],["src__pages__initialization__index.684197ee.async.js",1554],["1571.94ddca13.async.js",1571],["layouts__index.1fce90e0.chunk.css",1717],["layouts__index.623b87d2.async.js",1717],["1742.6cbe5aca.async.js",1742],["1765.d8e002d7.async.js",1765],["1883.675b6a18.chunk.css",1883],["1885.e0d00d2d.async.js",1885],["2096.383c1047.async.js",2096],["2208.03c2cf4a.async.js",2208],["src__pages__setting__appModal.b115baf8.async.js",2313],["2325.dfa32834.async.js",2325],["2338.d678967d.async.js",2338],["src__pages__setting__index.7cf46d4a.chunk.css",2340],["src__pages__setting__index.34ed674c.async.js",2340],["2821.be3dc88e.async.js",2821],["2890.9e373f5b.async.js",2890],["src__pages__script__components__UnsupportedFilePreview__index.d50aeff1.chunk.css",2892],["src__pages__script__components__UnsupportedFilePreview__index.39074c68.async.js",2892],["3191.f56b00f8.async.js",3191],["src__pages__error__index.b047bb77.chunk.css",3217],["src__pages__error__index.a17578c5.async.js",3217],["src__pages__crontab__logModal.0767c532.async.js",3249],["src__pages__setting__progress.8823ac90.async.js",3308],["3382.a584a111.async.js",3382],["3383.041eee73.async.js",3383],["3390.fb4b6851.async.js",3390],["3481.333c2962.async.js",3481],["3600.7637c822.async.js",3600],["src__pages__setting__checkUpdate.c152dfaf.async.js",3830],["4046.7fbcfa02.async.js",4046],["src__pages__env__editNameModal.115bb8ea.async.js",4216],["src__pages__crontab__viewCreateModal.ffcf7a24.async.js",4453],["src__pages__crontab__index.5bbea517.chunk.css",4473],["src__pages__crontab__index.5eb33581.async.js",4473],["src__pages__crontab__const.323d5124.async.js",4555],["src__pages__404.771168fc.async.js",4650],["4859.1b962b29.chunk.css",4859],["4859.93e63ea6.async.js",4859],["4902.54ecbdb5.async.js",4902],["4934.1ca6b6b0.async.js",4934],["5312.74b95311.async.js",5312],["5481.624d0e07.async.js",5481],["5520.ff2cfd6b.async.js",5520],["src__pages__setting__security.7c80dd0f.chunk.css",5530],["src__pages__setting__security.534a5e67.async.js",5530],["src__pages__script__editModal.10dd9857.async.js",5586],["src__pages__setting__loginLog.cea6056c.async.js",5722],["src__pages__crontab__type.db7c1858.async.js",5812],["src__pages__config__index.622b6ee8.async.js",5825],["5970.10ac4f16.async.js",5970],["6013.2d7bb12a.async.js",6013],["6016.9c379049.async.js",6016],["6035.5889ddc7.async.js",6035],["6159.55cb068a.async.js",6159],["6341.673fb65c.async.js",6341],["src__pages__diff__index.16e53710.chunk.css",6401],["src__pages__diff__index.013b7c75.async.js",6401],["6439.7ef6c5e3.async.js",6439],["src__pages__setting__other.28ecea01.chunk.css",6465],["src__pages__setting__other.45f67bd2.async.js",6465],["src__pages__script__index.60b6f827.chunk.css",6534],["src__pages__script__index.2a9459c3.async.js",6534],["6646.5fc37228.async.js",6646],["6707.801b886b.async.js",6707],["6872.42f939f1.async.js",6872],["src__pages__setting__dependence.28ecea01.chunk.css",6877],["src__pages__setting__dependence.f3afc194.async.js",6877],["src__pages__script__editNameModal.7d1cc6b4.async.js",7158],["src__pages__setting__notification.b7722a0b.async.js",7213],["src__pages__dependence__type.e48c5c88.async.js",7243],["7253.4b9bf133.async.js",7253],["7285.d561cf26.async.js",7285],["7355.5e5e573b.async.js",7355],["7384.065ccae2.async.js",7384],["7508.3fffed15.chunk.css",7508],["7508.a31662a3.async.js",7508],["7528.d8b76d8a.async.js",7528],["7802.6b73f16a.async.js",7802],["src__pages__subscription__index.4b5150de.chunk.css",7953],["src__pages__subscription__index.850531a4.async.js",7953],["7984.e6bb9378.async.js",7984],["8060.8b699029.async.js",8060],["8078.8586c875.async.js",8078],["src__pages__env__index.77923857.chunk.css",8247],["src__pages__env__index.5a863036.async.js",8247],["8317.c44c1ebd.async.js",8317],["src__pages__crontab__modal.b20074c2.async.js",8393],["src__pages__setting__systemLog.cb8a2174.async.js",8490],["src__pages__script__saveModal.21b81bcc.async.js",8673],["8826.b3f9fa78.async.js",8826],["8851.a57942be.async.js",8851],["8982.d2dba153.async.js",8982],["src__pages__script__renameModal.09dfb133.async.js",9064],["9066.605168f8.async.js",9066],["9313.37acaf13.async.js",9313],["src__pages__crontab__detail.ebbb4abf.async.js",9558],["9730.30083c91.async.js",9730],["9761.627ca3b5.async.js",9761],["src__pages__log__index.9f2eae80.chunk.css",9818],["src__pages__log__index.cf00c9af.async.js",9818],["src__pages__dependence__index.ef46db37.chunk.css",9914],["src__pages__dependence__index.c31e50f0.async.js",9914],["src__pages__login__index.d00b91e8.chunk.css",9939],["src__pages__login__index.cd6e3152.async.js",9939]],"r":{"/*":[5,9,20,30,42,43,51,65,1,16,17,18,21,40,41,45,89,98,101,106,109,110],"/":[1,5,16,17,18,20,21,30,40,41,42,43,45,89,98,101,106,109,110],"/initialization":[5,9,14,15,20,27,30,42,65,66,67,87,110,1,16,17,18,21,40,41,43,45,89,98,101,106,109],"/subscription":[1,5,9,20,21,22,26,27,30,34,42,45,58,65,66,68,70,78,87,88,89,90,91,94,95,97,98,106,109,110,112,16,17,18,40,41,43,101],"/dependence":[1,5,9,20,21,22,26,27,30,42,58,65,66,68,70,86,87,88,89,90,91,93,97,98,105,109,110,112,116,117,16,17,18,40,41,43,45,101,106],"/crontab":[1,5,9,11,12,20,21,22,26,27,30,31,40,42,45,48,49,58,65,66,68,69,70,73,86,87,88,89,90,91,97,107,109,110,112,16,17,18,41,43,98,101,106],"/setting":[1,5,9,12,16,19,20,21,22,26,27,28,29,30,31,42,45,54,57,58,65,66,67,68,70,80,87,88,89,90,91,96,97,98,109,110,112,113,17,18,40,41,43,101,106],"/config":[1,5,19,20,21,22,30,40,42,45,55,56,64,66,68,89,90,91,106,110,16,17,18,41,43,98,101,109],"/script":[1,5,9,19,20,21,22,27,30,39,40,42,45,52,53,55,56,58,65,66,67,68,70,76,77,87,89,90,91,97,98,109,110,112,113,16,17,18,41,43,101,106],"/error":[5,9,20,30,35,36,65,110,1,16,17,18,21,40,41,42,43,45,89,98,101,106,109],"/login":[5,20,27,30,31,42,45,65,87,106,110,118,119,1,16,17,18,21,40,41,43,89,98,101,109],"/diff":[1,5,20,21,27,30,40,42,45,66,68,71,72,79,89,90,91,106,110,16,17,18,41,43,98,101,109],"/env":[1,5,9,11,20,21,22,26,27,30,42,45,58,65,66,67,68,70,86,87,88,89,90,91,92,99,100,106,109,110,112,113,16,17,18,40,41,43,98,101],"/log":[1,5,9,19,20,21,22,30,39,40,42,45,55,58,65,66,68,70,87,89,90,91,106,109,110,112,114,115,16,17,18,41,43,98,101],"/crontab/viewCreateModal":[5,12,20,24,27,30,42,47,58,65,66,87,109,110,1,16,17,18,21,40,41,43,45,89,98,101,106],"/crontab/viewManageModal":[1,5,6,9,11,12,20,22,24,26,27,30,42,58,65,66,70,86,87,88,89,109,110,112,16,17,18,21,40,41,43,45,98,101,106],"/subscription/logModal":[8,30,42,45,58,97,106,109,110,1,5,16,17,18,20,21,40,41,43,89,98,101],"/script/editNameModal":[5,20,22,23,27,30,42,55,58,65,66,67,83,87,109,110,112,113,1,16,17,18,21,40,41,43,45,89,98,101,106],"/setting/notification":[5,20,27,30,42,65,66,84,87,110,1,16,17,18,21,40,41,43,45,89,98,101,106,109],"/dependence/logModal":[13,30,42,58,97,98,105,109,110,1,5,16,17,18,20,21,40,41,43,45,89,101,106],"/setting/checkUpdate":[30,31,42,44,45,58,97,98,106,109,110,1,5,16,17,18,20,21,40,41,43,89,101],"/script/renameModal":[5,20,27,30,42,58,65,87,108,109,110,1,16,17,18,21,40,41,43,45,89,98,101,106],"/setting/dependence":[5,20,27,30,42,65,81,82,87,97,98,110,1,16,17,18,21,40,41,43,45,89,101,106,109],"/subscription/modal":[0,5,20,27,30,34,42,45,58,65,66,78,87,109,110,1,16,17,18,21,40,41,43,89,98,101,106],"/env/editNameModal":[5,20,27,30,42,46,58,65,87,109,110,1,16,17,18,21,40,41,43,45,89,98,101,106],"/setting/systemLog":[5,12,19,30,42,57,103,110,1,16,17,18,20,21,40,41,43,45,89,98,101,106,109],"/crontab/logModal":[5,9,20,30,31,37,42,45,58,65,97,106,109,110,1,16,17,18,21,40,41,43,89,98,101],"/dependence/modal":[5,10,20,27,30,42,58,65,66,87,109,110,1,16,17,18,21,40,41,43,45,89,98,101,106],"/script/editModal":[5,20,22,27,30,39,40,41,42,45,55,58,61,65,66,87,97,98,106,109,110,1,16,17,18,21,43,89,101],"/script/saveModal":[5,20,27,30,42,58,65,87,104,109,110,1,16,17,18,21,40,41,43,45,89,98,101,106],"/setting/appModal":[5,20,25,27,30,42,58,65,66,87,109,110,1,16,17,18,21,40,41,43,45,89,98,101,106],"/setting/loginLog":[1,5,9,20,22,26,30,42,62,65,66,70,87,88,89,16,17,18,21,40,41,43,45,98,101,106,109,110],"/setting/progress":[30,38,42,58,67,109,1,5,16,17,18,20,21,40,41,43,45,89,98,101,106,110],"/setting/security":[5,9,20,27,30,42,58,59,60,65,67,87,96,109,110,112,113,1,16,17,18,21,40,41,43,45,89,98,101,106],"/dependence/type":[85,1,5,16,17,18,20,21,30,40,41,42,43,45,89,98,101,106,109,110],"/crontab/detail":[5,9,20,26,30,31,40,42,45,58,65,66,68,73,89,97,106,109,110,111,1,16,17,18,21,41,43,98,101],"/script/setting":[5,7,20,27,30,42,58,65,87,109,110,1,16,17,18,21,40,41,43,45,89,98,101,106],"/crontab/const":[50,1,5,16,17,18,20,21,30,40,41,42,43,45,89,98,101,106,109,110],"/crontab/modal":[5,20,27,30,42,45,58,65,66,69,87,102,109,110,1,16,17,18,21,40,41,43,89,98,101,106],"/setting/about":[2,3,5,9,20,30,65,1,16,17,18,21,40,41,42,43,45,89,98,101,106,109,110],"/setting/other":[5,16,20,27,30,31,42,45,58,65,66,67,74,75,78,80,87,97,98,106,109,110,112,113,1,17,18,21,40,41,43,89,101],"/crontab/type":[63,1,5,16,17,18,20,21,30,40,41,42,43,45,89,98,101,106,109,110],"/env/modal":[4,5,20,27,30,42,58,65,87,109,110,1,16,17,18,21,40,41,43,45,89,98,101,106],"/script/components/UnsupportedFilePreview":[32,33,42,1,5,16,17,18,20,21,30,40,41,43,45,89,98,101,106,109,110]}},{publicPath:"./"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[9558,5812],{75875:function(e,n,t){t.d(n,{iN:function(){return x},R_:function(){return u}});var a=t(96299),r=t(28556),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function o(e){var n=e.r,t=e.g,r=e.b,i=(0,a.py)(n,t,r);return{h:360*i.h,s:i.s,v:i.v}}function c(e){var n=e.r,t=e.g,r=e.b;return"#".concat((0,a.vq)(n,t,r,!1))}function l(e,n,t){var a=t/100;return{r:(n.r-e.r)*a+e.r,g:(n.g-e.g)*a+e.g,b:(n.b-e.b)*a+e.b}}function s(e,n,t){var a;return(a=Math.round(e.h)>=60&&Math.round(e.h)<=240?t?Math.round(e.h)-2*n:Math.round(e.h)+2*n:t?Math.round(e.h)+2*n:Math.round(e.h)-2*n)<0?a+=360:a>=360&&(a-=360),a}function f(e,n,t){return 0===e.h&&0===e.s?e.s:((a=t?e.s-.16*n:4===n?e.s+.16:e.s+.05*n)>1&&(a=1),t&&5===n&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2)));var a}function d(e,n,t){var a;return(a=t?e.v+.05*n:e.v-.15*n)>1&&(a=1),Number(a.toFixed(2))}function u(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=[],a=(0,r.uA)(e),u=5;u>0;u-=1){var m=o(a),p=c((0,r.uA)({h:s(m,u,!0),s:f(m,u,!0),v:d(m,u,!0)}));t.push(p)}t.push(c(a));for(var v=1;v<=4;v+=1){var g=o(a),b=c((0,r.uA)({h:s(g,v),s:f(g,v),v:d(g,v)}));t.push(b)}return"dark"===n.theme?i.map((function(e){var a=e.index,i=e.opacity;return c(l((0,r.uA)(n.backgroundColor||"#141414"),(0,r.uA)(t[a]),100*i))})):t}var m=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];m.primary=m[5];var p=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];p.primary=p[5];var v=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];v.primary=v[5];var g=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];g.primary=g[5];var b=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];b.primary=b[5];var h=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];h.primary=h[5];var y=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];y.primary=y[5];var Z=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Z.primary=Z[5];var x=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];x.primary=x[5];var C=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];C.primary=C[5];var j=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];j.primary=j[5];var P=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];P.primary=P[5];var w=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];w.primary=w[5];var k=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];k.primary=k[5];var N=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];N.primary=N[5];var S=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];S.primary=S[5];var E=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];E.primary=E[5];var O=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];O.primary=O[5];var T=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];T.primary=T[5];var R=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];R.primary=R[5];var M=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];M.primary=M[5];var _=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];_.primary=_[5];var I=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];I.primary=I[5];var A=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];A.primary=A[5];var q=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];q.primary=q[5];var z=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];z.primary=z[5]},57024:function(e,n){n.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"}},43008:function(e,n,t){t.d(n,{Z:function(){return l}});var a=t(98037),r=t(75271),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},o=t(64720),c=function(e,n){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:n,icon:i}))};var l=r.forwardRef(c)},48881:function(e,n,t){t.d(n,{Z:function(){return x}});var a=t(2053),r=t(99459),i=t(57904),o=t(53162),c=t(75271),l=t(82187),s=t.n(l),f=t(75875),d=t(28771),u=t(98037),m=t(39765),p=["icon","className","onClick","style","primaryColor","secondaryColor"],v={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var g=function(e){var n=e.icon,t=e.className,a=e.onClick,r=e.style,i=e.primaryColor,l=e.secondaryColor,s=(0,o.Z)(e,p),f=c.useRef(),d=v;if(i&&(d={primaryColor:i,secondaryColor:l||(0,m.pw)(i)}),(0,m.C3)(f),(0,m.Kp)((0,m.r)(n),"icon should be icon definiton, but got ".concat(n)),!(0,m.r)(n))return null;var g=n;return g&&"function"==typeof g.icon&&(g=(0,u.Z)((0,u.Z)({},g),{},{icon:g.icon(d.primaryColor,d.secondaryColor)})),(0,m.R_)(g.icon,"svg-".concat(g.name),(0,u.Z)((0,u.Z)({className:t,onClick:a,style:r,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:f}))};g.displayName="IconReact",g.getTwoToneColors=function(){return(0,u.Z)({},v)},g.setTwoToneColors=function(e){var n=e.primaryColor,t=e.secondaryColor;v.primaryColor=n,v.secondaryColor=t||(0,m.pw)(n),v.calculated=!!t};var b=g;function h(e){var n=(0,m.H9)(e),t=(0,r.Z)(n,2),a=t[0],i=t[1];return b.setTwoToneColors({primaryColor:a,secondaryColor:i})}var y=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];h(f.iN.primary);var Z=c.forwardRef((function(e,n){var t=e.className,l=e.icon,f=e.spin,u=e.rotate,p=e.tabIndex,v=e.onClick,g=e.twoToneColor,h=(0,o.Z)(e,y),Z=c.useContext(d.Z),x=Z.prefixCls,C=void 0===x?"anticon":x,j=Z.rootClassName,P=s()(j,C,(0,i.Z)((0,i.Z)({},"".concat(C,"-").concat(l.name),!!l.name),"".concat(C,"-spin"),!!f||"loading"===l.name),t),w=p;void 0===w&&v&&(w=-1);var k=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,N=(0,m.H9)(g),S=(0,r.Z)(N,2),E=S[0],O=S[1];return c.createElement("span",(0,a.Z)({role:"img","aria-label":l.name},h,{ref:n,tabIndex:w,onClick:v,className:P}),c.createElement(b,{icon:l,primaryColor:E,secondaryColor:O,style:k}))}));Z.displayName="AntdIcon",Z.getTwoToneColor=function(){var e=b.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Z.setTwoToneColor=h;var x=Z},28771:function(e,n,t){var a=(0,t(75271).createContext)({});n.Z=a},39765:function(e,n,t){t.d(n,{R_:function(){return g},pw:function(){return b},r:function(){return p},H9:function(){return h},vD:function(){return y},C3:function(){return Z},Kp:function(){return m}});var a=t(98037),r=t(24744),i=t(75875),o=t(61984);function c(e){var n;return null==e||null===(n=e.getRootNode)||void 0===n?void 0:n.call(e)}function l(e){return function(e){return c(e)instanceof ShadowRoot}(e)?c(e):null}var s=t(7432),f=t(75271),d=t(28771);function u(e){return e.replace(/-(.)/g,(function(e,n){return n.toUpperCase()}))}function m(e,n){(0,s.ZP)(e,"[@ant-design/icons] ".concat(n))}function p(e){return"object"===(0,r.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,r.Z)(e.icon)||"function"==typeof e.icon)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(n,t){var a=e[t];if("class"===t)n.className=a,delete n.class;else delete n[t],n[u(t)]=a;return n}),{})}function g(e,n,t){return t?f.createElement(e.tag,(0,a.Z)((0,a.Z)({key:n},v(e.attrs)),t),(e.children||[]).map((function(t,a){return g(t,"".concat(n,"-").concat(e.tag,"-").concat(a))}))):f.createElement(e.tag,(0,a.Z)({key:n},v(e.attrs)),(e.children||[]).map((function(t,a){return g(t,"".concat(n,"-").concat(e.tag,"-").concat(a))})))}function b(e){return(0,i.R_)(e)[0]}function h(e){return e?Array.isArray(e)?e:[e]:[]}var y={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Z=function(e){var n=(0,f.useContext)(d.Z),t=n.csp,a=n.prefixCls,r="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";a&&(r=r.replace(/anticon/g,a)),(0,f.useEffect)((function(){var n=l(e.current);(0,o.hq)(r,"@ant-design-icons",{prepend:!0,csp:t,attachTo:n})}),[])}},44224:function(e,n,t){var a=(0,t(19919).Z)({scriptUrl:["//at.alicdn.com/t/c/font_3354854_lc939gab1iq.js"]});n.Z=a},94526:function(e,n,t){t.r(n),t.d(n,{default:function(){return D}});var a=t(26068),r=t.n(a),i=t(48305),o=t.n(i),c=t(72317),l=t(75271),s=t(50691),f=t(19293),d=t(45520),u=t(61508),m=t(48758),p=t(47667),v=t(59816),g=t(93481),b=t(66633),h=t(70175),y=t(33886),Z=t(9798),x=t(15631),C=t(56958),j=t(89709),P=t(86935),w=t(72523),k=t(44860),N=t(62348),S=t(16314),E=t(3475),O=t(63549),T=t(83383),R=t(44224),M=t(48916),_=t(17355),I=t(30502),A=t(16483),q=t.n(A),z=t(52676),H=s.Z.Text,F=[{key:"log",tab:c.ZP.get("日志")},{key:"script",tab:c.ZP.get("脚本")}],D=function(e){var n,t,a,i,A=e.cron,D=void 0===A?{}:A,W=e.handleCancel,B=e.visible,L=e.theme,Y=e.isPhone,$=(0,l.useState)("log"),V=o()($,2),K=V[0],U=V[1],G=(0,l.useState)(!0),J=o()(G,2),Q=(J[0],J[1]),X=(0,l.useState)([]),ee=o()(X,2),ne=ee[0],te=ee[1],ae=(0,l.useState)(""),re=o()(ae,2),ie=re[0],oe=re[1],ce=(0,l.useState)(""),le=o()(ce,2),se=le[0],fe=le[1],de=(0,l.useState)(!1),ue=o()(de,2),me=ue[0],pe=ue[1],ve=(0,l.useRef)(null),ge=(0,l.useState)({}),be=o()(ge,2),he=be[0],ye=be[1],Ze=(0,l.useState)(""),xe=o()(Ze,2),Ce=xe[0],je=xe[1],Pe=(0,l.useState)(F),we=o()(Pe,2),ke=we[0],Ne=we[1],Se=(0,l.useState)({}),Ee=o()(Se,2),Oe=Ee[0],Te=Ee[1],Re=(0,l.useRef)(null),Me=function(e){var n=(0,l.useState)(0),t=o()(n,2),a=t[0],r=t[1];return(0,I.Z)(e,(function(e){var n=e.target.clientHeight;a!==n&&r(n)})),a}(Re),_e={log:(0,z.jsx)("div",{ref:Re,children:(0,z.jsx)(f.ZP,{children:(0,z.jsx)(_.Z,{data:ne,height:Me,itemHeight:47,itemKey:"filename",children:function(e){return(0,z.jsxs)(f.ZP.Item,{className:"log-item",onClick:function(){return Ie(e)},children:[(0,z.jsx)(h.Z,{style:{marginRight:10}}),e.directory,"/",e.filename]})}})})}),script:he.filename&&(0,z.jsx)(T.ZP,{language:(0,M.H$)(he.filename),theme:L,value:se,options:{fontSize:12,minimap:{enabled:!1},lineNumbersMinChars:3,glyphMargin:!1,accessibilitySupport:"off"},onMount:function(e,n){ve.current=e}})},Ie=function(e){var n="".concat(E.Z.apiPrefix,"logs/detail?file=").concat(e.filename,"&path=").concat(e.directory||"");localStorage.setItem("logCron",n),je(n),S.W.get(n).then((function(e){var n=e.code,t=e.data;200===n&&(oe(t),pe(!0))}))},Ae=function(){Q(!0),S.W.get("".concat(E.Z.apiPrefix,"crons/").concat(D.id,"/logs")).then((function(e){var n=e.code,t=e.data;200===n&&te(t)})).finally((function(){return Q(!1)}))};return(0,l.useEffect)((function(){D&&D.id&&(Te(D),Ae(),function(){var e=(0,M.FA)(D.command);if(Array.isArray(e)){Ne(ke);var n=o()(e,2),t=n[0],a=n[1];ye({parent:a,filename:t}),S.W.get("".concat(E.Z.apiPrefix,"scripts/detail?file=").concat(t,"&path=").concat(a||"")).then((function(e){var n=e.code,t=e.data;200===n&&fe(t)}))}else Ne([ke[0]]),U("log")}())}),[D]),(0,z.jsxs)(d.Z,{title:(0,z.jsxs)("div",{className:"crontab-title-wrapper",children:[(0,z.jsxs)("div",{style:{minWidth:0,display:"flex",alignItems:"center"},children:[(0,z.jsx)(s.Z.Text,{style:{width:200,boxSizing:"content-box"},ellipsis:{onEllipsis:function(e){return e},tooltip:Oe.name},children:Oe.name}),(null===(n=Oe.labels)||void 0===n?void 0:n.length)>0&&""!==Oe.labels[0]&&(0,z.jsx)(m.Z,{type:"vertical"}),(null===(t=Oe.labels)||void 0===t?void 0:t.length)>0&&""!==Oe.labels[0]&&(null===(a=Oe.labels)||void 0===a?void 0:a.map((function(e,n){return(0,z.jsx)(p.Z,{color:"blue",style:{marginRight:5},children:e},e)})))]}),(0,z.jsxs)("div",{className:"operations",children:[(0,z.jsx)(v.Z,{title:Oe.status===k.CrontabStatus.idle?c.ZP.get("运行"):c.ZP.get("停止"),children:(0,z.jsx)(g.Z,{type:"link",icon:Oe.status===k.CrontabStatus.idle?(0,z.jsx)(y.Z,{}):(0,z.jsx)(Z.Z,{}),size:"small",onClick:Oe.status===k.CrontabStatus.idle?function(){d.Z.confirm({title:c.ZP.get("确认运行"),content:(0,z.jsxs)(z.Fragment,{children:[c.ZP.get("确认运行定时任务")," ",(0,z.jsx)(H,{style:{wordBreak:"break-all"},type:"warning",children:Oe.name})," ",c.ZP.get("吗")]}),onOk:function(){S.W.put("".concat(E.Z.apiPrefix,"crons/run"),[Oe.id]).then((function(e){var n=e.code;e.data;200===n&&(Te(r()(r()({},Oe),{},{status:k.CrontabStatus.running})),setTimeout((function(){Ae()}),1e3))}))}})}:function(){d.Z.confirm({title:c.ZP.get("确认停止"),content:(0,z.jsxs)(z.Fragment,{children:[c.ZP.get("确认停止定时任务")," ",(0,z.jsx)(H,{style:{wordBreak:"break-all"},type:"warning",children:Oe.name})," ",c.ZP.get("吗")]}),onOk:function(){S.W.put("".concat(E.Z.apiPrefix,"crons/stop"),[Oe.id]).then((function(e){var n=e.code;e.data;200===n&&Te(r()(r()({},Oe),{},{status:k.CrontabStatus.idle}))}))}})}})}),(0,z.jsx)(v.Z,{title:1===Oe.isDisabled?c.ZP.get("启用"):c.ZP.get("禁用"),children:(0,z.jsx)(g.Z,{type:"link",icon:(0,z.jsx)(R.Z,{type:1===Oe.isDisabled?"ql-icon-enable":"ql-icon-disable"}),size:"small",onClick:function(){d.Z.confirm({title:"确认".concat(1===Oe.isDisabled?c.ZP.get("启用"):c.ZP.get("禁用")),content:(0,z.jsxs)(z.Fragment,{children:[c.ZP.get("确认"),1===Oe.isDisabled?c.ZP.get("启用"):c.ZP.get("禁用"),c.ZP.get("定时任务")," ",(0,z.jsx)(H,{style:{wordBreak:"break-all"},type:"warning",children:Oe.name})," ",c.ZP.get("吗")]}),onOk:function(){S.W.put("".concat(E.Z.apiPrefix,"crons/").concat(1===Oe.isDisabled?"enable":"disable"),[Oe.id]).then((function(e){var n=e.code;e.data;200===n&&Te(r()(r()({},Oe),{},{isDisabled:1===Oe.isDisabled?0:1}))}))}})}})}),(0,z.jsx)(v.Z,{title:1===Oe.isPinned?c.ZP.get("取消置顶"):c.ZP.get("置顶"),children:(0,z.jsx)(g.Z,{type:"link",icon:(0,z.jsx)(R.Z,{type:1===Oe.isPinned?"ql-icon-untop":"ql-icon-top"}),size:"small",onClick:function(){d.Z.confirm({title:"确认".concat(1===Oe.isPinned?c.ZP.get("取消置顶"):c.ZP.get("置顶")),content:(0,z.jsxs)(z.Fragment,{children:[c.ZP.get("确认"),1===Oe.isPinned?c.ZP.get("取消置顶"):c.ZP.get("置顶"),c.ZP.get("定时任务")," ",(0,z.jsx)(H,{style:{wordBreak:"break-all"},type:"warning",children:Oe.name})," ",c.ZP.get("吗")]}),onOk:function(){S.W.put("".concat(E.Z.apiPrefix,"crons/").concat(1===Oe.isPinned?"unpin":"pin"),[Oe.id]).then((function(e){var n=e.code;e.data;200===n&&Te(r()(r()({},Oe),{},{isPinned:1===Oe.isPinned?0:1}))}))}})}})})]})]}),centered:!0,open:B,forceRender:!0,footer:!1,onCancel:function(){return W()},wrapClassName:"crontab-detail",width:Y?"":"80vw",children:[(0,z.jsxs)("div",{className:"card-wrapper",children:[(0,z.jsx)(b.Z,{children:(0,z.jsxs)("div",{className:"cron-detail-info-item",children:[(0,z.jsx)("div",{className:"cron-detail-info-title",children:c.ZP.get("任务")}),(0,z.jsx)("div",{className:"cron-detail-info-value",children:Oe.command})]})}),(0,z.jsxs)(b.Z,{style:{marginTop:10},children:[(0,z.jsxs)("div",{className:"cron-detail-info-item",children:[(0,z.jsx)("div",{className:"cron-detail-info-title",children:c.ZP.get("状态")}),(0,z.jsxs)("div",{className:"cron-detail-info-value",children:[(!Oe.isDisabled||Oe.status!==k.CrontabStatus.idle)&&(0,z.jsxs)(z.Fragment,{children:[Oe.status===k.CrontabStatus.idle&&(0,z.jsx)(p.Z,{icon:(0,z.jsx)(x.Z,{}),color:"default",children:c.ZP.get("空闲中")}),Oe.status===k.CrontabStatus.running&&(0,z.jsx)(p.Z,{icon:(0,z.jsx)(C.Z,{spin:!0}),color:"processing",children:c.ZP.get("运行中")}),Oe.status===k.CrontabStatus.queued&&(0,z.jsx)(p.Z,{icon:(0,z.jsx)(j.Z,{}),color:"default",children:c.ZP.get("队列中")})]}),1===Oe.isDisabled&&Oe.status===k.CrontabStatus.idle&&(0,z.jsx)(p.Z,{icon:(0,z.jsx)(P.Z,{}),color:"error",children:c.ZP.get("已禁用")})]})]}),(0,z.jsxs)("div",{className:"cron-detail-info-item",children:[(0,z.jsx)("div",{className:"cron-detail-info-title",children:c.ZP.get("定时")}),(0,z.jsxs)("div",{className:"cron-detail-info-value",children:[(0,z.jsx)("div",{children:Oe.schedule}),null===(i=Oe.extra_schedules)||void 0===i?void 0:i.map((function(e){return(0,z.jsx)("div",{children:e.schedule},e.schedule)}))]})]}),(0,z.jsxs)("div",{className:"cron-detail-info-item",children:[(0,z.jsx)("div",{className:"cron-detail-info-title",children:c.ZP.get("最后运行时间")}),(0,z.jsx)("div",{className:"cron-detail-info-value",children:Oe.last_execution_time?q()(1e3*Oe.last_execution_time).format("YYYY-MM-DD HH:mm:ss"):"-"})]}),(0,z.jsxs)("div",{className:"cron-detail-info-item",children:[(0,z.jsx)("div",{className:"cron-detail-info-title",children:c.ZP.get("最后运行时长")}),(0,z.jsx)("div",{className:"cron-detail-info-value",children:Oe.last_running_time?(0,N.E)(Oe.last_running_time):"-"})]}),(0,z.jsxs)("div",{className:"cron-detail-info-item",children:[(0,z.jsx)("div",{className:"cron-detail-info-title",children:c.ZP.get("下次运行时间")}),(0,z.jsx)("div",{className:"cron-detail-info-value",children:Oe.nextRunTime&&q()(Oe.nextRunTime).format("YYYY-MM-DD HH:mm:ss")})]})]}),(0,z.jsx)(b.Z,{style:{marginTop:10},tabList:ke,activeTabKey:K,onTabChange:function(e){!function(e){U(e)}(e)},tabBarExtraContent:"script"===K&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(g.Z,{type:"primary",style:{marginRight:8},onClick:function(){d.Z.confirm({title:"确认保存",content:(0,z.jsxs)(z.Fragment,{children:[c.ZP.get("确认保存文件"),(0,z.jsxs)(H,{style:{wordBreak:"break-all"},type:"warning",children:[" ",he.filename]}),c.ZP.get(",保存后不可恢复")]}),onOk:function(){var e=ve.current?ve.current.getValue().replace(/\r\n/g,"\n"):se;return new Promise((function(n,t){S.W.put("".concat(E.Z.apiPrefix,"scripts"),{filename:he.filename,path:he.parent||"",content:e}).then((function(t){var a=t.code;t.data;200===a&&(fe(e),u.ZP.success("保存成功")),n(null)})).catch((function(e){return t(e)}))}))}})},children:c.ZP.get("保存")}),(0,z.jsx)(g.Z,{type:"primary",icon:(0,z.jsx)(w.Z,{}),onClick:function(){var e;null===(e=ve.current._domElement.parentElement)||void 0===e||e.requestFullscreen()}})]}),children:_e[K]})]}),(0,z.jsx)(O.default,{visible:me,handleCancel:function(){pe(!1)},cron:D,data:ie,logUrl:Ce})]})}},63549:function(e,n,t){t.r(n);var a=t(48305),r=t.n(a),i=t(72317),o=t(75271),c=t(32890),l=t(50691),s=t(45520),f=t(93481),d=t(16314),u=t(3475),m=t(56958),p=t(44084),v=t(34014),g=t(48916),b=t(78060),h=t.n(b),y=t(52676);c.Z.Countdown;n.default=function(e){var n=e.cron,t=e.handleCancel,a=e.visible,c=e.data,b=e.logUrl,Z=(0,o.useState)(i.ZP.get("启动中...")),x=r()(Z,2),C=x[0],j=x[1],P=(0,o.useState)(!0),w=r()(P,2),k=w[0],N=w[1],S=(0,o.useState)(!0),E=r()(S,2),O=E[0],T=E[1],R=(0,o.useState)(!1),M=r()(R,2),_=M[0],I=M[1],A=(0,o.useRef)({value:0,down:!0}),q=b||String(null==n?void 0:n.id),z=function e(t){t&&N(!0),d.W.get(b||"".concat(u.Z.apiPrefix,"crons/").concat(n.id,"/log")).then((function(n){var t=n.code,a=n.data;if(200===t&&localStorage.getItem("logCron")===q&&a!==C){var r=a;j(r||i.ZP.get("暂无日志"));var o=Boolean(r&&!(0,g.x$)(r)&&!r.includes("任务未运行"));o||(0,g.x$)(C)||C===i.ZP.get("启动中...")||setTimeout((function(){H()})),T(o),o&&setTimeout((function(){H(),e()}),2e3)}})).finally((function(){t&&N(!1)}))},H=function(){A.current.down&&setTimeout((function(){document.querySelector("#log-flag").scrollIntoView({behavior:"smooth"})}),600)},F=function(){localStorage.removeItem("logCron"),t()};return(0,o.useEffect)((function(){n&&n.id&&a&&(z(!0),A.current.down=!0)}),[n,a]),(0,o.useEffect)((function(){c&&j(c)}),[c]),(0,o.useEffect)((function(){I(document.body.clientWidth<768)}),[]),(0,y.jsx)(s.Z,{title:(0,y.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(O||k)&&(0,y.jsx)(m.Z,{spin:!0}),!O&&!k&&(0,y.jsx)(p.Z,{}),(0,y.jsx)(l.Z.Text,{ellipsis:!0,style:{marginLeft:5},children:n&&n.name})]}),open:a,centered:!0,className:"log-modal",forceRender:!0,onOk:function(){return F()},onCancel:function(){return F()},footer:[(0,y.jsx)(f.Z,{type:"primary",onClick:function(){return F()},children:i.ZP.get("知道了")})],children:(0,y.jsxs)("div",{onScroll:function(e){var n=e.target.scrollTop;A.current.down&&(A.current={value:n,down:n-A.current.value>-5||!n})},className:"log-container",children:[k?(0,y.jsx)(v.Z,{}):(0,y.jsx)("pre",{style:_?{fontFamily:"Source Code Pro",zoom:.83}:{},children:(0,y.jsx)(h(),{children:C})}),(0,y.jsx)("div",{id:"log-flag"})]})})}},44860:function(e,n,t){t.r(n),t.d(n,{CrontabStatus:function(){return a},OperationName:function(){return r},OperationPath:function(){return i},ScheduleType:function(){return o}});var a=function(e){return e[e.running=0]="running",e[e.queued=.5]="queued",e[e.idle=1]="idle",e[e.disabled=2]="disabled",e}({}),r=function(e){return e[e["启用"]=0]="启用",e[e["禁用"]=1]="禁用",e[e["运行"]=2]="运行",e[e["停止"]=3]="停止",e[e["置顶"]=4]="置顶",e[e["取消置顶"]=5]="取消置顶",e}({}),i=function(e){return e[e.enable=0]="enable",e[e.disable=1]="disable",e[e.run=2]="run",e[e.stop=3]="stop",e[e.pin=4]="pin",e[e.unpin=5]="unpin",e}({}),o=function(e){return e.Normal="normal",e.Once="once",e.Boot="boot",e}({})},62348:function(e,n,t){t.d(n,{E:function(){return r}});var a=t(72317);function r(e){var n=1e3*e,t=Math.floor(n/864e5),r=n%864e5,i=Math.floor(r/36e5),o=r%36e5,c=Math.floor(o/6e4),l=o%6e4,s=Math.round(l/1e3),f="".concat(s," ").concat(a.ZP.get("秒"));return c>0&&(f="".concat(c," ").concat(a.ZP.get("分")," ")+f),i>0&&(f="".concat(i," ").concat(a.ZP.get("时")," ")+f),t>0&&(f="".concat(t," ").concat(a.ZP.get("天")," ")+f),f}},76908:function(e,n,t){var a=t(99459),r=t(75271),i=t(43541);n.Z=function(){var e=r.useState(!1),n=(0,a.Z)(e,2),t=n[0],o=n[1];return r.useEffect((function(){o((0,i.fk)())}),[]),t}},46555:function(e,n,t){t.d(n,{c4:function(){return i}});var a=t(57904),r=t(2053),i=["xxl","xl","lg","md","sm","xs"],o={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},c=new Map,l=-1,s={},f={matchHandlers:{},dispatch:function(e){return s=e,c.forEach((function(e){return e(s)})),c.size>=1},subscribe:function(e){return c.size||this.register(),l+=1,c.set(l,e),e(s),l},unsubscribe:function(e){c.delete(e),c.size||this.unregister()},unregister:function(){var e=this;Object.keys(o).forEach((function(n){var t=o[n],a=e.matchHandlers[t];null==a||a.mql.removeListener(null==a?void 0:a.listener)})),c.clear()},register:function(){var e=this;Object.keys(o).forEach((function(n){var t=o[n],i=function(t){var i=t.matches;e.dispatch((0,r.Z)((0,r.Z)({},s),(0,a.Z)({},n,i)))},c=window.matchMedia(t);c.addListener(i),e.matchHandlers[t]={mql:c,listener:i},i(c)}))}};n.ZP=f},27204:function(e,n,t){var a=(0,t(75271).createContext)({});n.Z=a},59398:function(e,n,t){var a=t(57904),r=t(2053),i=t(24744),o=t(82187),c=t.n(o),l=t(75271),s=t(96820),f=t(27204),d=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)n.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]])}return t};var u=["xs","sm","md","lg","xl","xxl"],m=l.forwardRef((function(e,n){var t=l.useContext(s.E_),o=t.getPrefixCls,m=t.direction,p=l.useContext(f.Z),v=p.gutter,g=p.wrap,b=p.supportFlexGap,h=e.prefixCls,y=e.span,Z=e.order,x=e.offset,C=e.push,j=e.pull,P=e.className,w=e.children,k=e.flex,N=e.style,S=d(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),E=o("col",h),O={};u.forEach((function(n){var t={},o=e[n];"number"==typeof o?t.span=o:"object"===(0,i.Z)(o)&&(t=o||{}),delete S[n],O=(0,r.Z)((0,r.Z)({},O),(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(E,"-").concat(n,"-").concat(t.span),void 0!==t.span),"".concat(E,"-").concat(n,"-order-").concat(t.order),t.order||0===t.order),"".concat(E,"-").concat(n,"-offset-").concat(t.offset),t.offset||0===t.offset),"".concat(E,"-").concat(n,"-push-").concat(t.push),t.push||0===t.push),"".concat(E,"-").concat(n,"-pull-").concat(t.pull),t.pull||0===t.pull),"".concat(E,"-rtl"),"rtl"===m))}));var T=c()(E,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(E,"-").concat(y),void 0!==y),"".concat(E,"-order-").concat(Z),Z),"".concat(E,"-offset-").concat(x),x),"".concat(E,"-push-").concat(C),C),"".concat(E,"-pull-").concat(j),j),P,O),R={};if(v&&v[0]>0){var M=v[0]/2;R.paddingLeft=M,R.paddingRight=M}if(v&&v[1]>0&&!b){var _=v[1]/2;R.paddingTop=_,R.paddingBottom=_}return k&&(R.flex=function(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(k),!1!==g||R.minWidth||(R.minWidth=0)),l.createElement("div",(0,r.Z)({},S,{style:(0,r.Z)((0,r.Z)({},R),N),className:T,ref:n}),w)}));n.Z=m},94523:function(e,n,t){var a=t(2053),r=t(57904),i=t(24744),o=t(99459),c=t(82187),l=t.n(c),s=t(75271),f=t(96820),d=t(76908),u=t(46555),m=t(86428),p=t(27204),v=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)n.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]])}return t};(0,m.b)("top","middle","bottom","stretch"),(0,m.b)("start","end","center","space-around","space-between","space-evenly");function g(e,n){var t=s.useState("string"==typeof e?e:""),a=(0,o.Z)(t,2),r=a[0],c=a[1];return s.useEffect((function(){!function(){if("string"==typeof e&&c(e),"object"===(0,i.Z)(e))for(var t=0;t<u.c4.length;t++){var a=u.c4[t];if(n[a]){var r=e[a];if(void 0!==r)return void c(r)}}}()}),[JSON.stringify(e),n]),r}var b=s.forwardRef((function(e,n){var t=e.prefixCls,c=e.justify,m=e.align,b=e.className,h=e.style,y=e.children,Z=e.gutter,x=void 0===Z?0:Z,C=e.wrap,j=v(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),P=s.useContext(f.E_),w=P.getPrefixCls,k=P.direction,N=s.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),S=(0,o.Z)(N,2),E=S[0],O=S[1],T=s.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),R=(0,o.Z)(T,2),M=R[0],_=R[1],I=g(m,M),A=g(c,M),q=(0,d.Z)(),z=s.useRef(x);s.useEffect((function(){var e=u.ZP.subscribe((function(e){_(e);var n=z.current||0;(!Array.isArray(n)&&"object"===(0,i.Z)(n)||Array.isArray(n)&&("object"===(0,i.Z)(n[0])||"object"===(0,i.Z)(n[1])))&&O(e)}));return function(){return u.ZP.unsubscribe(e)}}),[]);var H,F=w("row",t),D=(H=[void 0,void 0],(Array.isArray(x)?x:[x,void 0]).forEach((function(e,n){if("object"===(0,i.Z)(e))for(var t=0;t<u.c4.length;t++){var a=u.c4[t];if(E[a]&&void 0!==e[a]){H[n]=e[a];break}}else H[n]=e})),H),W=l()(F,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(F,"-no-wrap"),!1===C),"".concat(F,"-").concat(A),A),"".concat(F,"-").concat(I),I),"".concat(F,"-rtl"),"rtl"===k),b),B={},L=null!=D[0]&&D[0]>0?D[0]/-2:void 0,Y=null!=D[1]&&D[1]>0?D[1]/-2:void 0;if(L&&(B.marginLeft=L,B.marginRight=L),q){var $=(0,o.Z)(D,2);B.rowGap=$[1]}else Y&&(B.marginTop=Y,B.marginBottom=Y);var V=(0,o.Z)(D,2),K=V[0],U=V[1],G=s.useMemo((function(){return{gutter:[K,U],wrap:C,supportFlexGap:q}}),[K,U,C,q]);return s.createElement(p.Z.Provider,{value:G},s.createElement("div",(0,a.Z)({},j,{className:W,style:(0,a.Z)((0,a.Z)({},B),h),ref:n}),y))}));n.Z=b},47667:function(e,n,t){t.d(n,{Z:function(){return x}});var a=t(57904),r=t(2053),i=t(99459),o=t(32324),c=t(82187),l=t.n(c),s=t(2021),f=t(75271),d=t(96820),u=t(1667),m=t(74244),p=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)n.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]])}return t},v=function(e){var n=e.prefixCls,t=e.className,i=e.checked,o=e.onChange,c=e.onClick,s=p(e,["prefixCls","className","checked","onChange","onClick"]),u=(0,f.useContext(d.E_).getPrefixCls)("tag",n),m=l()(u,(0,a.Z)((0,a.Z)({},"".concat(u,"-checkable"),!0),"".concat(u,"-checkable-checked"),i),t);return f.createElement("span",(0,r.Z)({},s,{className:m,onClick:function(e){null==o||o(!i),null==c||c(e)}}))},g=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)n.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]])}return t},b=new RegExp("^(".concat(u.Y.join("|"),")(-inverse)?$")),h=new RegExp("^(".concat(u.E.join("|"),")$")),y=function(e,n){var t=e.prefixCls,c=e.className,u=e.style,p=e.children,v=e.icon,y=e.color,Z=e.onClose,x=e.closeIcon,C=e.closable,j=void 0!==C&&C,P=g(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),w=f.useContext(d.E_),k=w.getPrefixCls,N=w.direction,S=f.useState(!0),E=(0,i.Z)(S,2),O=E[0],T=E[1];f.useEffect((function(){"visible"in P&&T(P.visible)}),[P.visible]);var R=function(){return!!y&&(b.test(y)||h.test(y))},M=(0,r.Z)({backgroundColor:y&&!R()?y:void 0},u),_=R(),I=k("tag",t),A=l()(I,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(I,"-").concat(y),_),"".concat(I,"-has-color"),y&&!_),"".concat(I,"-hidden"),!O),"".concat(I,"-rtl"),"rtl"===N),c),q=function(e){e.stopPropagation(),null==Z||Z(e),e.defaultPrevented||"visible"in P||T(!1)},z="onClick"in P||p&&"a"===p.type,H=(0,s.Z)(P,["visible"]),F=v||null,D=F?f.createElement(f.Fragment,null,F,f.createElement("span",null,p)):p,W=f.createElement("span",(0,r.Z)({},H,{ref:n,className:A,style:M}),D,j?x?f.createElement("span",{className:"".concat(I,"-close-icon"),onClick:q},x):f.createElement(o.Z,{className:"".concat(I,"-close-icon"),onClick:q}):null);return z?f.createElement(m.Z,null,W):W},Z=f.forwardRef(y);Z.CheckableTag=v;var x=Z}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[4473,4555,5812,8851,2208],{44224:function(e,t,n){"use strict";var a=(0,n(19919).Z)({scriptUrl:["//at.alicdn.com/t/c/font_3354854_lc939gab1iq.js"]});t.Z=a},72439:function(e,t,n){"use strict";var a=n(48305),i=n.n(a),r=n(75271),o=n(30502),s=n(48916);t.Z=function(e,t){var n=(0,r.useState)(0),a=i()(n,2),c=a[0],l=a[1];return(0,o.Z)(e,(function(e){var n=e.target;n.classList.contains("ant-table-wrapper")||(n=e.target.querySelector(".ant-table-wrapper")),l((0,s.W9)({extraHeight:t,target:n}))})),c}},41860:function(e,t,n){"use strict";n.r(t),n.d(t,{getScheduleType:function(){return s},scheduleTypeMap:function(){return o}});var a=n(82092),i=n.n(a),r=n(44860),o=i()(i()(i()({},r.ScheduleType.Normal,""),r.ScheduleType.Once,"@once"),r.ScheduleType.Boot,"@boot"),s=function(e){return null!=e&&e.startsWith("@once")?r.ScheduleType.Once:null!=e&&e.startsWith("@boot")?r.ScheduleType.Boot:r.ScheduleType.Normal}},94526:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return L}});var a=n(26068),i=n.n(a),r=n(48305),o=n.n(r),s=n(72317),c=n(75271),l=n(50691),u=n(19293),d=n(45520),m=n(61508),g=n(48758),p=n(47667),f=n(59816),h=n(93481),Z=n(66633),P=n(70175),x=n(33886),v=n(9798),b=n(15631),y=n(56958),A=n(89709),k=n(86935),j=n(72523),w=n(44860),S=n(62348),C=n(16314),E=n(3475),B=n(63549),T=n(83383),M=n(44224),_=n(48916),q=n(17355),N=n(30502),I=n(16483),R=n.n(I),D=n(52676),O=l.Z.Text,G=[{key:"log",tab:s.ZP.get("日志")},{key:"script",tab:s.ZP.get("脚本")}],L=function(e){var t,n,a,r,I=e.cron,L=void 0===I?{}:I,W=e.handleCancel,K=e.visible,F=e.theme,z=e.isPhone,V=(0,c.useState)("log"),H=o()(V,2),Y=H[0],U=H[1],Q=(0,c.useState)(!0),J=o()(Q,2),X=(J[0],J[1]),$=(0,c.useState)([]),ee=o()($,2),te=ee[0],ne=ee[1],ae=(0,c.useState)(""),ie=o()(ae,2),re=ie[0],oe=ie[1],se=(0,c.useState)(""),ce=o()(se,2),le=ce[0],ue=ce[1],de=(0,c.useState)(!1),me=o()(de,2),ge=me[0],pe=me[1],fe=(0,c.useRef)(null),he=(0,c.useState)({}),Ze=o()(he,2),Pe=Ze[0],xe=Ze[1],ve=(0,c.useState)(""),be=o()(ve,2),ye=be[0],Ae=be[1],ke=(0,c.useState)(G),je=o()(ke,2),we=je[0],Se=je[1],Ce=(0,c.useState)({}),Ee=o()(Ce,2),Be=Ee[0],Te=Ee[1],Me=(0,c.useRef)(null),_e=function(e){var t=(0,c.useState)(0),n=o()(t,2),a=n[0],i=n[1];return(0,N.Z)(e,(function(e){var t=e.target.clientHeight;a!==t&&i(t)})),a}(Me),qe={log:(0,D.jsx)("div",{ref:Me,children:(0,D.jsx)(u.ZP,{children:(0,D.jsx)(q.Z,{data:te,height:_e,itemHeight:47,itemKey:"filename",children:function(e){return(0,D.jsxs)(u.ZP.Item,{className:"log-item",onClick:function(){return Ne(e)},children:[(0,D.jsx)(P.Z,{style:{marginRight:10}}),e.directory,"/",e.filename]})}})})}),script:Pe.filename&&(0,D.jsx)(T.ZP,{language:(0,_.H$)(Pe.filename),theme:F,value:le,options:{fontSize:12,minimap:{enabled:!1},lineNumbersMinChars:3,glyphMargin:!1,accessibilitySupport:"off"},onMount:function(e,t){fe.current=e}})},Ne=function(e){var t="".concat(E.Z.apiPrefix,"logs/detail?file=").concat(e.filename,"&path=").concat(e.directory||"");localStorage.setItem("logCron",t),Ae(t),C.W.get(t).then((function(e){var t=e.code,n=e.data;200===t&&(oe(n),pe(!0))}))},Ie=function(){X(!0),C.W.get("".concat(E.Z.apiPrefix,"crons/").concat(L.id,"/logs")).then((function(e){var t=e.code,n=e.data;200===t&&ne(n)})).finally((function(){return X(!1)}))};return(0,c.useEffect)((function(){L&&L.id&&(Te(L),Ie(),function(){var e=(0,_.FA)(L.command);if(Array.isArray(e)){Se(we);var t=o()(e,2),n=t[0],a=t[1];xe({parent:a,filename:n}),C.W.get("".concat(E.Z.apiPrefix,"scripts/detail?file=").concat(n,"&path=").concat(a||"")).then((function(e){var t=e.code,n=e.data;200===t&&ue(n)}))}else Se([we[0]]),U("log")}())}),[L]),(0,D.jsxs)(d.Z,{title:(0,D.jsxs)("div",{className:"crontab-title-wrapper",children:[(0,D.jsxs)("div",{style:{minWidth:0,display:"flex",alignItems:"center"},children:[(0,D.jsx)(l.Z.Text,{style:{width:200,boxSizing:"content-box"},ellipsis:{onEllipsis:function(e){return e},tooltip:Be.name},children:Be.name}),(null===(t=Be.labels)||void 0===t?void 0:t.length)>0&&""!==Be.labels[0]&&(0,D.jsx)(g.Z,{type:"vertical"}),(null===(n=Be.labels)||void 0===n?void 0:n.length)>0&&""!==Be.labels[0]&&(null===(a=Be.labels)||void 0===a?void 0:a.map((function(e,t){return(0,D.jsx)(p.Z,{color:"blue",style:{marginRight:5},children:e},e)})))]}),(0,D.jsxs)("div",{className:"operations",children:[(0,D.jsx)(f.Z,{title:Be.status===w.CrontabStatus.idle?s.ZP.get("运行"):s.ZP.get("停止"),children:(0,D.jsx)(h.Z,{type:"link",icon:Be.status===w.CrontabStatus.idle?(0,D.jsx)(x.Z,{}):(0,D.jsx)(v.Z,{}),size:"small",onClick:Be.status===w.CrontabStatus.idle?function(){d.Z.confirm({title:s.ZP.get("确认运行"),content:(0,D.jsxs)(D.Fragment,{children:[s.ZP.get("确认运行定时任务")," ",(0,D.jsx)(O,{style:{wordBreak:"break-all"},type:"warning",children:Be.name})," ",s.ZP.get("吗")]}),onOk:function(){C.W.put("".concat(E.Z.apiPrefix,"crons/run"),[Be.id]).then((function(e){var t=e.code;e.data;200===t&&(Te(i()(i()({},Be),{},{status:w.CrontabStatus.running})),setTimeout((function(){Ie()}),1e3))}))}})}:function(){d.Z.confirm({title:s.ZP.get("确认停止"),content:(0,D.jsxs)(D.Fragment,{children:[s.ZP.get("确认停止定时任务")," ",(0,D.jsx)(O,{style:{wordBreak:"break-all"},type:"warning",children:Be.name})," ",s.ZP.get("吗")]}),onOk:function(){C.W.put("".concat(E.Z.apiPrefix,"crons/stop"),[Be.id]).then((function(e){var t=e.code;e.data;200===t&&Te(i()(i()({},Be),{},{status:w.CrontabStatus.idle}))}))}})}})}),(0,D.jsx)(f.Z,{title:1===Be.isDisabled?s.ZP.get("启用"):s.ZP.get("禁用"),children:(0,D.jsx)(h.Z,{type:"link",icon:(0,D.jsx)(M.Z,{type:1===Be.isDisabled?"ql-icon-enable":"ql-icon-disable"}),size:"small",onClick:function(){d.Z.confirm({title:"确认".concat(1===Be.isDisabled?s.ZP.get("启用"):s.ZP.get("禁用")),content:(0,D.jsxs)(D.Fragment,{children:[s.ZP.get("确认"),1===Be.isDisabled?s.ZP.get("启用"):s.ZP.get("禁用"),s.ZP.get("定时任务")," ",(0,D.jsx)(O,{style:{wordBreak:"break-all"},type:"warning",children:Be.name})," ",s.ZP.get("吗")]}),onOk:function(){C.W.put("".concat(E.Z.apiPrefix,"crons/").concat(1===Be.isDisabled?"enable":"disable"),[Be.id]).then((function(e){var t=e.code;e.data;200===t&&Te(i()(i()({},Be),{},{isDisabled:1===Be.isDisabled?0:1}))}))}})}})}),(0,D.jsx)(f.Z,{title:1===Be.isPinned?s.ZP.get("取消置顶"):s.ZP.get("置顶"),children:(0,D.jsx)(h.Z,{type:"link",icon:(0,D.jsx)(M.Z,{type:1===Be.isPinned?"ql-icon-untop":"ql-icon-top"}),size:"small",onClick:function(){d.Z.confirm({title:"确认".concat(1===Be.isPinned?s.ZP.get("取消置顶"):s.ZP.get("置顶")),content:(0,D.jsxs)(D.Fragment,{children:[s.ZP.get("确认"),1===Be.isPinned?s.ZP.get("取消置顶"):s.ZP.get("置顶"),s.ZP.get("定时任务")," ",(0,D.jsx)(O,{style:{wordBreak:"break-all"},type:"warning",children:Be.name})," ",s.ZP.get("吗")]}),onOk:function(){C.W.put("".concat(E.Z.apiPrefix,"crons/").concat(1===Be.isPinned?"unpin":"pin"),[Be.id]).then((function(e){var t=e.code;e.data;200===t&&Te(i()(i()({},Be),{},{isPinned:1===Be.isPinned?0:1}))}))}})}})})]})]}),centered:!0,open:K,forceRender:!0,footer:!1,onCancel:function(){return W()},wrapClassName:"crontab-detail",width:z?"":"80vw",children:[(0,D.jsxs)("div",{className:"card-wrapper",children:[(0,D.jsx)(Z.Z,{children:(0,D.jsxs)("div",{className:"cron-detail-info-item",children:[(0,D.jsx)("div",{className:"cron-detail-info-title",children:s.ZP.get("任务")}),(0,D.jsx)("div",{className:"cron-detail-info-value",children:Be.command})]})}),(0,D.jsxs)(Z.Z,{style:{marginTop:10},children:[(0,D.jsxs)("div",{className:"cron-detail-info-item",children:[(0,D.jsx)("div",{className:"cron-detail-info-title",children:s.ZP.get("状态")}),(0,D.jsxs)("div",{className:"cron-detail-info-value",children:[(!Be.isDisabled||Be.status!==w.CrontabStatus.idle)&&(0,D.jsxs)(D.Fragment,{children:[Be.status===w.CrontabStatus.idle&&(0,D.jsx)(p.Z,{icon:(0,D.jsx)(b.Z,{}),color:"default",children:s.ZP.get("空闲中")}),Be.status===w.CrontabStatus.running&&(0,D.jsx)(p.Z,{icon:(0,D.jsx)(y.Z,{spin:!0}),color:"processing",children:s.ZP.get("运行中")}),Be.status===w.CrontabStatus.queued&&(0,D.jsx)(p.Z,{icon:(0,D.jsx)(A.Z,{}),color:"default",children:s.ZP.get("队列中")})]}),1===Be.isDisabled&&Be.status===w.CrontabStatus.idle&&(0,D.jsx)(p.Z,{icon:(0,D.jsx)(k.Z,{}),color:"error",children:s.ZP.get("已禁用")})]})]}),(0,D.jsxs)("div",{className:"cron-detail-info-item",children:[(0,D.jsx)("div",{className:"cron-detail-info-title",children:s.ZP.get("定时")}),(0,D.jsxs)("div",{className:"cron-detail-info-value",children:[(0,D.jsx)("div",{children:Be.schedule}),null===(r=Be.extra_schedules)||void 0===r?void 0:r.map((function(e){return(0,D.jsx)("div",{children:e.schedule},e.schedule)}))]})]}),(0,D.jsxs)("div",{className:"cron-detail-info-item",children:[(0,D.jsx)("div",{className:"cron-detail-info-title",children:s.ZP.get("最后运行时间")}),(0,D.jsx)("div",{className:"cron-detail-info-value",children:Be.last_execution_time?R()(1e3*Be.last_execution_time).format("YYYY-MM-DD HH:mm:ss"):"-"})]}),(0,D.jsxs)("div",{className:"cron-detail-info-item",children:[(0,D.jsx)("div",{className:"cron-detail-info-title",children:s.ZP.get("最后运行时长")}),(0,D.jsx)("div",{className:"cron-detail-info-value",children:Be.last_running_time?(0,S.E)(Be.last_running_time):"-"})]}),(0,D.jsxs)("div",{className:"cron-detail-info-item",children:[(0,D.jsx)("div",{className:"cron-detail-info-title",children:s.ZP.get("下次运行时间")}),(0,D.jsx)("div",{className:"cron-detail-info-value",children:Be.nextRunTime&&R()(Be.nextRunTime).format("YYYY-MM-DD HH:mm:ss")})]})]}),(0,D.jsx)(Z.Z,{style:{marginTop:10},tabList:we,activeTabKey:Y,onTabChange:function(e){!function(e){U(e)}(e)},tabBarExtraContent:"script"===Y&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(h.Z,{type:"primary",style:{marginRight:8},onClick:function(){d.Z.confirm({title:"确认保存",content:(0,D.jsxs)(D.Fragment,{children:[s.ZP.get("确认保存文件"),(0,D.jsxs)(O,{style:{wordBreak:"break-all"},type:"warning",children:[" ",Pe.filename]}),s.ZP.get(",保存后不可恢复")]}),onOk:function(){var e=fe.current?fe.current.getValue().replace(/\r\n/g,"\n"):le;return new Promise((function(t,n){C.W.put("".concat(E.Z.apiPrefix,"scripts"),{filename:Pe.filename,path:Pe.parent||"",content:e}).then((function(n){var a=n.code;n.data;200===a&&(ue(e),m.ZP.success("保存成功")),t(null)})).catch((function(e){return n(e)}))}))}})},children:s.ZP.get("保存")}),(0,D.jsx)(h.Z,{type:"primary",icon:(0,D.jsx)(j.Z,{}),onClick:function(){var e;null===(e=fe.current._domElement.parentElement)||void 0===e||e.requestFullscreen()}})]}),children:qe[Y]})]}),(0,D.jsx)(B.default,{visible:ge,handleCancel:function(){pe(!1)},cron:L,data:re,logUrl:ye})]})}},26932:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ue}});var a=n(90228),i=n.n(a),r=n(15558),o=n.n(r),s=n(87999),c=n.n(s),l=n(48305),u=n.n(l),d=n(26068),m=n.n(d),g=n(72439),p=n(48916),f=n(3475),h=n(62348),Z=n(16314),P=n(15631),x=n(56958),v=n(89709),b=n(86935),y=n(28423),A=n(44084),k=n(1704),j=n(13868),w=n(88939),S=n(96553),C=n(97953),E=n(88629),B=n(83649),T=n(21288),M=n(76991),_=n(7802),q=n(47508),N=n(98783),I=n(50691),R=n(17082),D=n(47667),O=n(63505),G=n(45520),L=n(61508),W=n(85950),K=n(93481),F=n(46035),z=n(10948),V=n(16483),H=n.n(V),Y=n(32699),U=n(75271),Q=n(72317),J=n(19610),X=n(41860),$=n(94526),ee=n(63549),te=n(97583),ne=n(44860),ae=n(42208),ie=n(36199),re=n(52676),oe=I.Z.Text,se=I.Z.Paragraph,ce=I.Z.Link,le=R.Z.Search,ue=function(){var e=(0,N.useOutletContext)(),t=e.headerStyle,n=e.isPhone,a=e.theme,r=[{title:Q.ZP.get("名称"),dataIndex:"name",key:"name",fixed:"left",width:120,render:function(e,t){return(0,re.jsx)(se,{style:{wordBreak:"break-all",marginBottom:0,color:"#1890ff",cursor:"pointer"},ellipsis:{tooltip:e,rows:2},onClick:function(){tt(t),Je(!0)},children:(0,re.jsx)(ce,{children:t.name||"-"})})},sorter:{compare:function(e,t){var n;return null==e||null===(n=e.name)||void 0===n?void 0:n.localeCompare(null==t?void 0:t.name)}}},{title:Q.ZP.get("命令/脚本"),dataIndex:"command",key:"command",width:240,render:function(e,t){return(0,re.jsx)(se,{style:{wordBreak:"break-all",marginBottom:0},ellipsis:{tooltip:e,rows:2},children:(0,re.jsx)("a",{onClick:function(){It(t)},children:e})})},sorter:{compare:function(e,t){return e.command.localeCompare(t.command)}}},{title:Q.ZP.get("状态"),key:"status",dataIndex:"status",width:100,filters:[{text:Q.ZP.get("运行中"),value:ne.CrontabStatus.running},{text:Q.ZP.get("空闲中"),value:ne.CrontabStatus.idle},{text:Q.ZP.get("已禁用"),value:ne.CrontabStatus.disabled},{text:Q.ZP.get("队列中"),value:ne.CrontabStatus.queued}],render:function(e,t){return(0,re.jsxs)(re.Fragment,{children:[(!t.isDisabled||t.status!==ne.CrontabStatus.idle)&&(0,re.jsxs)(re.Fragment,{children:[t.status===ne.CrontabStatus.idle&&(0,re.jsx)(D.Z,{icon:(0,re.jsx)(P.Z,{}),color:"default",children:Q.ZP.get("空闲中")}),t.status===ne.CrontabStatus.running&&(0,re.jsx)(D.Z,{icon:(0,re.jsx)(x.Z,{spin:!0}),color:"processing",children:Q.ZP.get("运行中")}),t.status===ne.CrontabStatus.queued&&(0,re.jsx)(D.Z,{icon:(0,re.jsx)(v.Z,{}),color:"default",children:Q.ZP.get("队列中")})]}),1===t.isDisabled&&t.status===ne.CrontabStatus.idle&&(0,re.jsx)(D.Z,{icon:(0,re.jsx)(b.Z,{}),color:"error",children:Q.ZP.get("已禁用")})]})}},{title:Q.ZP.get("定时规则"),dataIndex:"schedule",key:"schedule",width:150,sorter:{compare:function(e,t){return e.schedule.localeCompare(t.schedule)}},render:function(e,t){var n;return(0,re.jsx)(se,{style:{wordBreak:"break-all",marginBottom:0},ellipsis:{tooltip:{placement:"right",title:(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("div",{children:e}),null===(n=t.extra_schedules)||void 0===n?void 0:n.map((function(e){return(0,re.jsx)("div",{children:e.schedule},e.schedule)}))]})},rows:2},children:e})}},{title:Q.ZP.get("最后运行时长"),width:167,dataIndex:"last_running_time",key:"last_running_time",sorter:{compare:function(e,t){return e.last_running_time-t.last_running_time}},render:function(e,t){return t.last_running_time?(0,h.E)(t.last_running_time):"-"}},{title:Q.ZP.get("最后运行时间"),dataIndex:"last_execution_time",key:"last_execution_time",width:141,sorter:{compare:function(e,t){return(e.last_execution_time||0)-(t.last_execution_time||0)}},render:function(e,t){return(0,re.jsx)("span",{style:{display:"block"},children:t.last_execution_time?H()(1e3*t.last_execution_time).format("YYYY-MM-DD HH:mm:ss"):"-"})}},{title:Q.ZP.get("下次运行时间"),width:144,sorter:{compare:function(e,t){return e.nextRunTime-t.nextRunTime}},render:function(e,t){return t.nextRunTime?H()(t.nextRunTime).format("YYYY-MM-DD HH:mm:ss"):"-"}},{title:Q.ZP.get("关联订阅"),width:185,render:function(e,t){var n;return(null==t||null===(n=t.subscription)||void 0===n?void 0:n.name)||"-"}},{title:Q.ZP.get("操作"),key:"action",width:140,fixed:n?void 0:"right",render:function(e,t,n){return(0,re.jsxs)(O.Z,{size:"middle",children:[t.status===ne.CrontabStatus.idle&&(0,re.jsx)("a",{onClick:function(e){e.stopPropagation(),Ot(t,n)},children:Q.ZP.get("运行")}),t.status!==ne.CrontabStatus.idle&&(0,re.jsx)("a",{onClick:function(e){e.stopPropagation(),Gt(t,n)},children:Q.ZP.get("停止")}),(0,re.jsx)("a",{onClick:function(e){e.stopPropagation(),Ne(m()(m()({},t),{},{timestamp:Date.now()}))},children:Q.ZP.get("日志")}),(0,re.jsx)(Wt,{record:t,index:n},"more")]})}}],s=(0,U.useState)([]),l=u()(s,2),d=l[0],I=l[1],R=(0,U.useState)(!0),V=u()(R,2),ue=V[0],de=V[1],me=(0,U.useState)(!1),ge=u()(me,2),pe=ge[0],fe=ge[1],he=(0,U.useState)(!1),Ze=u()(he,2),Pe=Ze[0],xe=Ze[1],ve=(0,U.useState)(),be=u()(ve,2),ye=be[0],Ae=be[1],ke=(0,U.useState)(""),je=u()(ke,2),we=je[0],Se=je[1],Ce=(0,U.useState)(!1),Ee=u()(Ce,2),Be=Ee[0],Te=Ee[1],Me=(0,U.useState)(),_e=u()(Me,2),qe=_e[0],Ne=_e[1],Ie=(0,U.useState)([]),Re=u()(Ie,2),De=Re[0],Oe=Re[1],Ge=(0,U.useState)({}),Le=u()(Ge,2),We=Le[0],Ke=Le[1],Fe=(0,U.useState)(),ze=u()(Fe,2),Ve=ze[0],He=ze[1],Ye=(0,U.useState)(!1),Ue=u()(Ye,2),Qe=Ue[0],Je=Ue[1],Xe=(0,U.useState)(),$e=u()(Xe,2),et=$e[0],tt=$e[1],nt=(0,U.useState)(""),at=u()(nt,2),it=at[0],rt=at[1],ot=(0,U.useState)(),st=u()(ot,2),ct=st[0],lt=st[1],ut=(0,U.useState)(!1),dt=u()(ut,2),mt=dt[0],gt=dt[1],pt=(0,U.useState)(!1),ft=u()(pt,2),ht=ft[0],Zt=ft[1],Pt=(0,U.useState)([]),xt=u()(Pt,2),vt=xt[0],bt=xt[1],yt=(0,U.useState)([]),At=u()(yt,2),kt=At[0],jt=At[1],wt=(0,U.useState)(!1),St=u()(wt,2),Ct=St[0],Et=St[1],Bt=(0,U.useRef)(null),Tt=(0,g.Z)(Bt),Mt=(0,U.useState)(""),_t=u()(Mt,2),qt=_t[0],Nt=_t[1],It=function(e){var t=(0,p.FA)(e.command);if(Array.isArray(t)){var n=u()(t,2),a=n[0],i=n[1];N.history.push("/script?p=".concat(i,"&s=").concat(a))}else t&&(location.href=t)},Rt=function(){de(!0);var e=We.page,t=We.size,n=We.sorter,a=We.filters,r="".concat(f.Z.apiPrefix,"crons?searchValue=").concat(we,"&page=").concat(e,"&size=").concat(t,"&filters=").concat(JSON.stringify(a));n&&n.column&&n.order&&(r+="&sorter=".concat(JSON.stringify({field:n.column.key,type:"ascend"===n.order?"ASC":"DESC"}))),Ve&&(r+="&queryString=".concat(JSON.stringify({filters:Ve.filters,sorts:Ve.sorts,filterRelation:Ve.filterRelation||"and"}))),Z.W.get(r).then(function(){var e=c()(i()().mark((function e(t){var n,a,r,s,c,l,u;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.code,a=t.data,200!==n){e.next=9;break}return s=a.data,c=a.total,e.next=5,Z.W.get("".concat(f.Z.apiPrefix,"subscriptions?ids=").concat(JSON.stringify(o()(new Set(s.map((function(e){return e.sub_id})).filter(Boolean))))),{onError:Y.noop});case 5:l=e.sent,u=Object.fromEntries(null==l||null===(r=l.data)||void 0===r?void 0:r.map((function(e){return[e.id,e]}))),I(s.map((function(e){var t=(0,X.getScheduleType)(e.schedule)===ne.ScheduleType.Normal?(0,p.rS)(e.schedule,e.extra_schedules):null;return m()(m()({},e),{},{nextRunTime:t,subscription:null==u?void 0:u[e.sub_id]})}))),lt(c);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).finally((function(){return de(!1)}))},Dt=function(e,t){Ae(e),fe(!0)},Ot=function(e,t){G.Z.confirm({title:Q.ZP.get("确认运行"),content:(0,re.jsxs)(re.Fragment,{children:[Q.ZP.get("确认运行定时任务")," ",(0,re.jsx)(oe,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",Q.ZP.get("吗")]}),onOk:function(){Z.W.put("".concat(f.Z.apiPrefix,"crons/run"),[e.id]).then((function(t){var n=t.code;t.data;if(200===n){var a=o()(d),i=a.findIndex((function(t){return t.id===e.id}));-1!==i&&(a.splice(i,1,m()(m()({},e),{},{status:ne.CrontabStatus.running})),I(a))}}))}})},Gt=function(e,t){G.Z.confirm({title:Q.ZP.get("确认停止"),content:(0,re.jsxs)(re.Fragment,{children:[Q.ZP.get("确认停止定时任务")," ",(0,re.jsx)(oe,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",Q.ZP.get("吗")]}),onOk:function(){Z.W.put("".concat(f.Z.apiPrefix,"crons/stop"),[e.id]).then((function(t){var n=t.code;t.data;if(200===n){var a=o()(d),i=a.findIndex((function(t){return t.id===e.id}));-1!==i&&(a.splice(i,1,m()(m()({},e),{},{pid:null,status:ne.CrontabStatus.idle})),I(a))}}))}})},Lt=function(e){return[{label:Q.ZP.get("编辑"),key:"edit",icon:(0,re.jsx)(y.Z,{})},{label:1===e.isDisabled?Q.ZP.get("启用"):Q.ZP.get("禁用"),key:"enableOrDisable",icon:1===e.isDisabled?(0,re.jsx)(A.Z,{}):(0,re.jsx)(k.Z,{})},{label:Q.ZP.get("复制"),key:"copy",icon:(0,re.jsx)(j.Z,{})},{label:Q.ZP.get("删除"),key:"delete",icon:(0,re.jsx)(w.Z,{})},{label:1===e.isPinned?Q.ZP.get("取消置顶"):Q.ZP.get("置顶"),key:"pinOrUnPin",icon:1===e.isPinned?(0,re.jsx)(k.Z,{}):(0,re.jsx)(S.Z,{})}]},Wt=function(e){var t=e.record,n=e.index;return(0,re.jsx)(W.Z,{placement:"bottomRight",trigger:["click"],menu:{items:Lt(t),onClick:function(e){var a=e.key;e.domEvent.stopPropagation(),Kt(a,t,n)}},children:(0,re.jsx)("a",{onClick:function(e){return e.stopPropagation()},children:(0,re.jsx)(C.Z,{})})})},Kt=function(e,t,n){switch(e){case"edit":Dt(t);break;case"copy":Dt((0,Y.omit)(t,"id"));break;case"enableOrDisable":!function(e,t){G.Z.confirm({title:"确认".concat(1===e.isDisabled?Q.ZP.get("启用"):Q.ZP.get("禁用")),content:(0,re.jsxs)(re.Fragment,{children:[Q.ZP.get("确认"),1===e.isDisabled?Q.ZP.get("启用"):Q.ZP.get("禁用"),Q.ZP.get("定时任务")," ",(0,re.jsx)(oe,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",Q.ZP.get("吗")]}),onOk:function(){Z.W.put("".concat(f.Z.apiPrefix,"crons/").concat(1===e.isDisabled?"enable":"disable"),[e.id]).then((function(t){var n=t.code;if(t.data,200===n){var a=1===e.isDisabled?0:1,i=o()(d),r=i.findIndex((function(t){return t.id===e.id}));-1!==r&&(i.splice(r,1,m()(m()({},e),{},{isDisabled:a})),I(i))}}))}})}(t);break;case"delete":!function(e,t){G.Z.confirm({title:Q.ZP.get("确认删除"),content:(0,re.jsxs)(re.Fragment,{children:[Q.ZP.get("确认删除定时任务")," ",(0,re.jsx)(oe,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",Q.ZP.get("吗")]}),onOk:function(){Z.W.delete("".concat(f.Z.apiPrefix,"crons"),{data:[e.id]}).then((function(t){var n=t.code;if(t.data,200===n){L.ZP.success(Q.ZP.get("删除成功"));var a=o()(d),i=a.findIndex((function(t){return t.id===e.id}));-1!==i&&(a.splice(i,1),I(a))}}))}})}(t);break;case"pinOrUnPin":!function(e,t){G.Z.confirm({title:"确认".concat(1===e.isPinned?Q.ZP.get("取消置顶"):Q.ZP.get("置顶")),content:(0,re.jsxs)(re.Fragment,{children:[Q.ZP.get("确认"),1===e.isPinned?Q.ZP.get("取消置顶"):Q.ZP.get("置顶"),Q.ZP.get("定时任务")," ",(0,re.jsx)(oe,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",Q.ZP.get("吗")]}),onOk:function(){Z.W.put("".concat(f.Z.apiPrefix,"crons/").concat(1===e.isPinned?"unpin":"pin"),[e.id]).then((function(t){var n=t.code;if(t.data,200===n){var a=1===e.isPinned?0:1,i=o()(d),r=i.findIndex((function(t){return t.id===e.id}));-1!==r&&(i.splice(r,1,m()(m()({},e),{},{isPinned:a})),I(i))}}))}})}(t)}},Ft={selectedRowKeys:De,onChange:function(e){Oe(e)}},zt=function(e){G.Z.confirm({title:"确认".concat(ne.OperationName[e]),content:(0,re.jsxs)(re.Fragment,{children:[Q.ZP.get("确认"),ne.OperationName[e],Q.ZP.get("选中的定时任务吗")]}),onOk:function(){Z.W.put("".concat(f.Z.apiPrefix,"crons/").concat(ne.OperationPath[e]),De).then((function(e){var t=e.code;e.data;200===t&&Rt()}))}})};(0,U.useEffect)((function(){qe&&(localStorage.setItem("logCron",qe.id),Te(!0))}),[qe]),(0,U.useEffect)((function(){Ke(m()(m()({},We),{},{page:1}))}),[we]),(0,U.useEffect)((function(){We.page&&We.size&&Rt(),Ve&&Ve.id&&Nt(Ve.id)}),[We,Ve]),(0,U.useEffect)((function(){if(Ve&&kt&&kt.length>0){var e=kt.slice(10).find((function(e){return e.id===Ve.id}));Et(!!e)}}),[Ve,kt]),(0,U.useEffect)((function(){Ht()}),[]);var Vt={onClick:function(e){var t=e.key;e.domEvent.stopPropagation(),function(e){switch(e){case"new":gt(!0);break;case"manage":Zt(!0);break;default:Yt(e)}}(t)},items:[].concat(o()(o()(kt).slice(10).map((function(e){return{label:(0,re.jsxs)(O.Z,{style:{display:"flex",justifyContent:"space-between"},children:[(0,re.jsx)("span",{children:e.name}),(null==Ve?void 0:Ve.id)===e.id&&(0,re.jsx)(E.Z,{style:{color:"#1890ff"}})]}),key:e.id,icon:(0,re.jsx)(B.Z,{})}}))),[{type:"divider"},{label:Q.ZP.get("创建视图"),key:"new",icon:(0,re.jsx)(T.Z,{})},{label:Q.ZP.get("视图管理"),key:"manage",icon:(0,re.jsx)(M.Z,{})}]),style:{maxHeight:350,overflowY:"auto"}},Ht=function(){de(!0),Z.W.get("".concat(f.Z.apiPrefix,"crons/views")).then((function(e){var t=e.code,n=e.data;if(200===t){bt(n);var a=n.filter((function(e){return!e.isDisabled})).map((function(e){return m()(m()({},e),{},{name:"全部任务"===e.name?Q.ZP.get("全部任务"):e.name})}));jt(a),Ke({page:1,size:parseInt(localStorage.getItem("pageSize")||"20"),sorter:{},filters:{}}),He(m()({},a[0]))}})).finally((function(){de(!1)}))},Yt=function(e){var t=kt.find((function(t){return t.id==e}));Oe([]),Ke(m()(m()({},We),{},{page:1})),He(t||null)},Ut=(0,J.u)((function(){return{scroll:{y:Tt}}}),[Tt]),Qt=u()(Ut,1)[0];return(0,re.jsxs)(q.ZP,{className:"ql-container-wrapper crontab-wrapper ql-container-wrapper-has-tab",title:Q.ZP.get("定时任务"),extra:[(0,re.jsx)(le,{placeholder:Q.ZP.get("请输入名称或者关键词"),style:{width:"auto"},enterButton:!0,allowClear:!0,loading:ue,value:it,onChange:function(e){return rt(e.target.value)},onSearch:function(e){Se(e.trim())}}),(0,re.jsx)(K.Z,{type:"primary",onClick:function(){return Ae(null),void fe(!0)},children:Q.ZP.get("创建任务")},"2")],header:{style:t},children:[(0,re.jsx)(F.Z,{defaultActiveKey:"all",size:"small",activeKey:qt,tabPosition:"top",className:"crontab-view ".concat(Ct?"more-active":""),tabBarExtraContent:(0,re.jsx)(W.Z,{menu:Vt,trigger:["click"],overlayStyle:{minWidth:200},children:(0,re.jsxs)("div",{className:"view-more ".concat(Ct?"active":""),children:[(0,re.jsxs)(O.Z,{children:[Q.ZP.get("更多"),(0,re.jsx)(_.Z,{})]}),(0,re.jsx)("div",{className:"ant-tabs-ink-bar ant-tabs-ink-bar-animated"})]})}),onTabClick:Yt,items:o()(o()(kt).slice(0,10).map((function(e){return{key:e.id,label:e.name}})))}),(0,re.jsxs)("div",{ref:Bt,children:[De.length>0&&(0,re.jsxs)("div",{style:{marginBottom:16},children:[(0,re.jsx)(K.Z,{type:"primary",style:{marginBottom:5},onClick:function(){G.Z.confirm({title:Q.ZP.get("确认删除"),content:(0,re.jsx)(re.Fragment,{children:Q.ZP.get("确认删除选中的定时任务吗")}),onOk:function(){Z.W.delete("".concat(f.Z.apiPrefix,"crons"),{data:De}).then((function(e){var t=e.code;e.data;200===t&&(L.ZP.success(Q.ZP.get("批量删除成功")),Oe([]),Rt())}))}})},children:Q.ZP.get("批量删除")}),(0,re.jsx)(K.Z,{type:"primary",onClick:function(){return zt(0)},style:{marginLeft:8,marginBottom:5},children:Q.ZP.get("批量启用")}),(0,re.jsx)(K.Z,{type:"primary",onClick:function(){return zt(1)},style:{marginLeft:8,marginRight:8},children:Q.ZP.get("批量禁用")}),(0,re.jsx)(K.Z,{type:"primary",style:{marginRight:8},onClick:function(){return zt(2)},children:Q.ZP.get("批量运行")}),(0,re.jsx)(K.Z,{type:"primary",onClick:function(){return zt(3)},children:Q.ZP.get("批量停止")}),(0,re.jsx)(K.Z,{type:"primary",onClick:function(){return zt(4)},style:{marginLeft:8,marginRight:8},children:Q.ZP.get("批量置顶")}),(0,re.jsx)(K.Z,{type:"primary",onClick:function(){return zt(5)},style:{marginLeft:8,marginRight:8},children:Q.ZP.get("批量取消置顶")}),(0,re.jsx)(K.Z,{type:"primary",onClick:function(){return xe(!0)},style:{marginLeft:8,marginRight:8},children:Q.ZP.get("批量修改标签")}),(0,re.jsxs)("span",{style:{marginLeft:8},children:[Q.ZP.get("已选择"),(0,re.jsx)("a",{children:null==De?void 0:De.length}),Q.ZP.get("项")]})]}),(0,re.jsx)(z.Z,{columns:r,pagination:{current:We.page,pageSize:We.size,showSizeChanger:!0,simple:n,total:ct,showTotal:function(e,t){return"第 ".concat(t[0],"-").concat(t[1]," 条/总共 ").concat(e," 条")},pageSizeOptions:[10,20,50,100,200,500,ct||1e4].sort((function(e,t){return e-t}))},dataSource:d,rowKey:"id",size:"middle",scroll:{x:1200,y:Tt},loading:ue,rowSelection:Ft,rowClassName:function(e,t){return e.isPinned?"pinned-cron cron":"cron"},onChange:function(e,t,n){var a=e.current,i=e.pageSize;Ke({page:a,size:i,sorter:n,filters:t}),localStorage.setItem("pageSize",String(i))},components:n||We.size<50?void 0:Qt})]}),(0,re.jsx)(ee.default,{visible:Be,handleCancel:function(){var e;e=qe,Z.W.get("".concat(f.Z.apiPrefix,"crons/").concat(e.id)).then((function(t){var n=t.code,a=t.data;if(200===n){var i=d.findIndex((function(t){return t.id===e.id})),r=o()(d);a.nextRunTime=(0,p.rS)(a.schedule,a.extra_schedules),-1!==i&&(r.splice(i,1,m()(m()({},e),a)),I(r))}})).finally((function(){return de(!1)})),Te(!1)},cron:qe}),(0,re.jsx)(te.default,{visible:pe,handleCancel:function(){fe(!1),Rt()},cron:ye}),(0,re.jsx)(te.CronLabelModal,{visible:Pe,handleCancel:function(e){xe(!1),e&&Rt()},ids:De}),(0,re.jsx)($.default,{visible:Qe,handleCancel:function(){Je(!1)},cron:et,theme:a,isPhone:n}),(0,re.jsx)(ae.default,{visible:mt,handleCancel:function(e){gt(!1),Ht()}}),(0,re.jsx)(ie.default,{cronViews:vt,visible:ht,handleCancel:function(){Zt(!1)},cronViewChange:function(e){Ht()}})]})}},63549:function(e,t,n){"use strict";n.r(t);var a=n(48305),i=n.n(a),r=n(72317),o=n(75271),s=n(32890),c=n(50691),l=n(45520),u=n(93481),d=n(16314),m=n(3475),g=n(56958),p=n(44084),f=n(34014),h=n(48916),Z=n(78060),P=n.n(Z),x=n(52676);s.Z.Countdown;t.default=function(e){var t=e.cron,n=e.handleCancel,a=e.visible,s=e.data,Z=e.logUrl,v=(0,o.useState)(r.ZP.get("启动中...")),b=i()(v,2),y=b[0],A=b[1],k=(0,o.useState)(!0),j=i()(k,2),w=j[0],S=j[1],C=(0,o.useState)(!0),E=i()(C,2),B=E[0],T=E[1],M=(0,o.useState)(!1),_=i()(M,2),q=_[0],N=_[1],I=(0,o.useRef)({value:0,down:!0}),R=Z||String(null==t?void 0:t.id),D=function e(n){n&&S(!0),d.W.get(Z||"".concat(m.Z.apiPrefix,"crons/").concat(t.id,"/log")).then((function(t){var n=t.code,a=t.data;if(200===n&&localStorage.getItem("logCron")===R&&a!==y){var i=a;A(i||r.ZP.get("暂无日志"));var o=Boolean(i&&!(0,h.x$)(i)&&!i.includes("任务未运行"));o||(0,h.x$)(y)||y===r.ZP.get("启动中...")||setTimeout((function(){O()})),T(o),o&&setTimeout((function(){O(),e()}),2e3)}})).finally((function(){n&&S(!1)}))},O=function(){I.current.down&&setTimeout((function(){document.querySelector("#log-flag").scrollIntoView({behavior:"smooth"})}),600)},G=function(){localStorage.removeItem("logCron"),n()};return(0,o.useEffect)((function(){t&&t.id&&a&&(D(!0),I.current.down=!0)}),[t,a]),(0,o.useEffect)((function(){s&&A(s)}),[s]),(0,o.useEffect)((function(){N(document.body.clientWidth<768)}),[]),(0,x.jsx)(l.Z,{title:(0,x.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(B||w)&&(0,x.jsx)(g.Z,{spin:!0}),!B&&!w&&(0,x.jsx)(p.Z,{}),(0,x.jsx)(c.Z.Text,{ellipsis:!0,style:{marginLeft:5},children:t&&t.name})]}),open:a,centered:!0,className:"log-modal",forceRender:!0,onOk:function(){return G()},onCancel:function(){return G()},footer:[(0,x.jsx)(u.Z,{type:"primary",onClick:function(){return G()},children:r.ZP.get("知道了")})],children:(0,x.jsxs)("div",{onScroll:function(e){var t=e.target.scrollTop;I.current.down&&(I.current={value:t,down:t-I.current.value>-5||!t})},className:"log-container",children:[w?(0,x.jsx)(f.Z,{}):(0,x.jsx)("pre",{style:q?{fontFamily:"Source Code Pro",zoom:.83}:{},children:(0,x.jsx)(P(),{children:y})}),(0,x.jsx)("div",{id:"log-flag"})]})})}},97583:function(e,t,n){"use strict";n.r(t),n.d(t,{CronLabelModal:function(){return D},default:function(){return R}});var a=n(67825),i=n.n(a),r=n(90228),o=n.n(r),s=n(26068),c=n.n(s),l=n(87999),u=n.n(l),d=n(48305),m=n.n(d),g=n(15558),p=n.n(g),f=n(72317),h=n(47667),Z=n(17082),P=n(78646),x=n(21288),v=n(75271),b=n(52676),y=function(e){var t=e.value,n=e.onChange,a=(0,v.useState)(""),i=m()(a,2),r=i[0],o=i[1],s=(0,v.useState)(!1),c=m()(s,2),l=c[0],u=c[1],d=(0,v.useState)([]),g=m()(d,2),y=g[0],A=g[1],k=(0,v.useRef)(),j=function(){r&&!y.includes(r)&&(A([].concat(p()(y),[r])),null==n||n([].concat(p()(y),[r]))),u(!1),o("")},w=y.map((function(e){var t=(0,b.jsx)(h.Z,{closable:!0,onClose:function(t){var a,i;t.preventDefault(),a=e,i=y.filter((function(e){return e!==a})),A(i),null==n||n(i)},children:e});return(0,b.jsx)("span",{style:{display:"inline-block",marginBottom:8},children:t},e)}));return(0,v.useEffect)((function(){l&&k&&k.current.focus()}),[l]),(0,v.useEffect)((function(){t&&A(t)}),[t]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(P.Z,{enter:{scale:.8,opacity:0,type:"from",duration:100},leave:{opacity:0,width:0,scale:0,duration:200},appear:!1,children:w}),l&&(0,b.jsx)(Z.Z,{ref:k,type:"text",size:"small",style:{width:78},value:r,onChange:function(e){o(e.target.value)},onBlur:j,onPressEnter:j}),!l&&(0,b.jsxs)(h.Z,{onClick:function(){u(!0)},style:{borderStyle:"dashed",cursor:"pointer"},children:[(0,b.jsx)(x.Z,{})," ",f.ZP.get("新建")]})]})},A=n(3475),k=n(16314),j=n(37559),w=n(72338),S=n(61508),C=n(35181),E=n(63505),B=n(45520),T=n(93481),M=n(94046),_=n.n(M),q=n(41860),N=n(44860),I=["key","name"],R=function(e){var t=e.cron,n=e.handleCancel,a=e.visible,r=w.Z.useForm(),s=m()(r,1)[0],l=(0,v.useState)(!1),d=m()(l,2),g=d[0],p=d[1],h=(0,v.useState)(t?(0,q.getScheduleType)(t.schedule):N.ScheduleType.Normal),P=m()(h,2),T=P[0],M=P[1],R=function(){var e=u()(o()().mark((function e(a){var i,r,s,l,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(!0),e.prev=1,i=null!=t&&t.id?"put":"post",r=c()(c()({},a),{},{schedule:T!==N.ScheduleType.Normal?q.scheduleTypeMap[T]:a.schedule}),null!=t&&t.id&&(r.id=t.id),e.next=7,k.W[i]("".concat(A.Z.apiPrefix,"crons"),r);case 7:s=e.sent,l=s.code,u=s.data,200===l&&(S.ZP.success(null!=t&&t.id?f.ZP.get("更新任务成功"):f.ZP.get("创建任务成功")),n(u)),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),console.error(e.t0);case 16:return e.prev=16,p(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})));return function(t){return e.apply(this,arguments)}}();(0,v.useEffect)((function(){s.resetFields(),M((0,q.getScheduleType)(null==t?void 0:t.schedule))}),[t,a]);var D=function(e){M(e),s.setFieldValue("schedule","")};return(0,b.jsx)(B.Z,{title:null!=t&&t.id?f.ZP.get("编辑任务"):f.ZP.get("创建任务"),open:a,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){return s.validateFields().then(R)},onCancel:function(){return n()},confirmLoading:g,children:(0,b.jsxs)(w.Z,{form:s,layout:"vertical",name:"form_in_modal",initialValues:t,children:[(0,b.jsx)(w.Z.Item,{name:"name",label:f.ZP.get("名称"),rules:[{required:!0,whitespace:!0}],children:(0,b.jsx)(Z.Z,{placeholder:f.ZP.get("请输入任务名称")})}),(0,b.jsx)(w.Z.Item,{name:"command",label:f.ZP.get("命令/脚本"),rules:[{required:!0,whitespace:!0}],children:(0,b.jsx)(Z.Z.TextArea,{rows:4,autoSize:{minRows:1,maxRows:5},placeholder:f.ZP.get("支持输入脚本路径/任意系统可执行命令/task 脚本路径")})}),(0,b.jsx)(w.Z.Item,{label:f.ZP.get("定时类型"),required:!0,children:(0,b.jsxs)(C.Z,{defaultValue:T,value:T,onChange:D,children:[(0,b.jsx)(C.Z.Option,{value:N.ScheduleType.Normal,children:f.ZP.get("常规定时")}),(0,b.jsx)(C.Z.Option,{value:N.ScheduleType.Once,children:f.ZP.get("手动运行")}),(0,b.jsx)(C.Z.Option,{value:N.ScheduleType.Boot,children:f.ZP.get("开机运行")})]})}),T!==N.ScheduleType.Normal?null:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(w.Z.Item,{name:"schedule",label:f.ZP.get("定时规则"),rules:[{required:!0},{validator:function(e,t){return!t||_().parseExpression(t).hasNext()?Promise.resolve():Promise.reject(f.ZP.get("Cron表达式格式有误"))}}],children:(0,b.jsx)(Z.Z,{placeholder:f.ZP.get("秒(可选) 分 时 天 月 周")})}),(0,b.jsx)(w.Z.List,{name:"extra_schedules",children:function(e,t,n){var a=t.add,r=t.remove,o=n.errors;return(0,b.jsxs)(b.Fragment,{children:[e.map((function(e){var t=e.key,n=e.name,a=i()(e,I);return(0,b.jsx)(w.Z.Item,{noStyle:!0,children:(0,b.jsxs)(E.Z,{className:"view-create-modal-sorts",align:"baseline",children:[(0,b.jsx)(w.Z.Item,c()(c()({},a),{},{name:[n,"schedule"],rules:[{required:!0}],children:(0,b.jsx)(Z.Z,{placeholder:f.ZP.get("秒(可选) 分 时 天 月 周")})})),(0,b.jsx)(j.Z,{className:"dynamic-delete-button",onClick:function(){return r(n)}})]})},t)})),(0,b.jsx)(w.Z.Item,{children:(0,b.jsxs)("a",{onClick:function(){return a({schedule:""})},children:[(0,b.jsx)(x.Z,{})," ",f.ZP.get("新增定时规则")]})}),(0,b.jsx)(w.Z.ErrorList,{errors:o})]})}})]}),(0,b.jsx)(w.Z.Item,{name:"labels",label:f.ZP.get("标签"),children:(0,b.jsx)(y,{})}),(0,b.jsx)(w.Z.Item,{name:"task_before",label:f.ZP.get("执行前"),tooltip:f.ZP.get("运行任务前执行的命令,比如 cp/mv/python3 xxx.py/node xxx.js"),rules:[{validator:function(e,t){return t&&(t.includes(" task ")||t.startsWith("task "))?Promise.reject(f.ZP.get("不能包含 task 命令")):Promise.resolve()}}],children:(0,b.jsx)(Z.Z.TextArea,{rows:4,autoSize:{minRows:1,maxRows:5},placeholder:f.ZP.get("请输入运行任务前要执行的命令,不能包含 task 命令")})}),(0,b.jsx)(w.Z.Item,{name:"task_after",label:f.ZP.get("执行后"),tooltip:f.ZP.get("运行任务后执行的命令,比如 cp/mv/python3 xxx.py/node xxx.js"),rules:[{validator:function(e,t){return t&&(t.includes(" task ")||t.startsWith("task "))?Promise.reject(f.ZP.get("不能包含 task 命令")):Promise.resolve()}}],children:(0,b.jsx)(Z.Z.TextArea,{rows:4,autoSize:{minRows:1,maxRows:5},placeholder:f.ZP.get("请输入运行任务后要执行的命令,不能包含 task 命令")})})]})})},D=function(e){var t=e.ids,n=e.handleCancel,a=e.visible,i=w.Z.useForm(),r=m()(i,1)[0],s=(0,v.useState)(!1),c=m()(s,2),l=c[0],d=c[1],g=function(){var e=u()(o()().mark((function e(a){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.validateFields().then(function(){var e=u()(o()().mark((function e(i){var r,s,c;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),r={ids:t,labels:i.labels},e.prev=2,e.next=5,k.W[a]("".concat(A.Z.apiPrefix,"crons/labels"),r);case 5:s=e.sent,c=s.code,s.data,200===c&&(S.ZP.success("post"===a?f.ZP.get("添加Labels成功"):f.ZP.get("删除Labels成功")),n(!0)),d(!1),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),d(!1);case 15:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log("Validate Failed:",e)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,v.useEffect)((function(){r.resetFields()}),[t,a]);var p=[(0,b.jsx)(T.Z,{onClick:function(){return n(!1)},children:f.ZP.get("取消")}),(0,b.jsx)(T.Z,{type:"primary",danger:!0,onClick:function(){return g("delete")},children:f.ZP.get("删除")}),(0,b.jsx)(T.Z,{type:"primary",onClick:function(){return g("post")},children:f.ZP.get("添加")})];return(0,b.jsx)(B.Z,{title:f.ZP.get("批量修改标签"),open:a,footer:p,centered:!0,maskClosable:!1,forceRender:!0,onCancel:function(){return n(!1)},confirmLoading:l,children:(0,b.jsx)(w.Z,{form:r,layout:"vertical",name:"form_in_label_modal",children:(0,b.jsx)(w.Z.Item,{name:"labels",label:f.ZP.get("标签"),children:(0,b.jsx)(y,{})})})})}},44860:function(e,t,n){"use strict";n.r(t),n.d(t,{CrontabStatus:function(){return a},OperationName:function(){return i},OperationPath:function(){return r},ScheduleType:function(){return o}});var a=function(e){return e[e.running=0]="running",e[e.queued=.5]="queued",e[e.idle=1]="idle",e[e.disabled=2]="disabled",e}({}),i=function(e){return e[e["启用"]=0]="启用",e[e["禁用"]=1]="禁用",e[e["运行"]=2]="运行",e[e["停止"]=3]="停止",e[e["置顶"]=4]="置顶",e[e["取消置顶"]=5]="取消置顶",e}({}),r=function(e){return e[e.enable=0]="enable",e[e.disable=1]="disable",e[e.run=2]="run",e[e.stop=3]="stop",e[e.pin=4]="pin",e[e.unpin=5]="unpin",e}({}),o=function(e){return e.Normal="normal",e.Once="once",e.Boot="boot",e}({})},42208:function(e,t,n){"use strict";n.r(t);var a=n(67825),i=n.n(a),r=n(90228),o=n.n(r),s=n(26068),c=n.n(s),l=n(87999),u=n.n(l),d=n(48305),m=n.n(d),g=n(72317),p=n(75271),f=n(72338),h=n(35181),Z=n(45520),P=n(17082),x=n(93481),v=n(63505),b=n(16314),y=n(3475),A=n(37559),k=n(21288),j=n(44224),w=n(44860),S=n(31352),C=n(52676),E=["name"],B=["key","name"],T=["key","name"],M=[{name:g.ZP.get("命令"),value:"command"},{name:g.ZP.get("名称"),value:"name"},{name:g.ZP.get("定时规则"),value:"schedule"},{name:g.ZP.get("状态"),value:"status",onlySelect:!0},{name:g.ZP.get("标签"),value:"labels"},{name:g.ZP.get("订阅"),value:"sub_id",onlySelect:!0}],_={Reg:"",NotReg:"",In:"select",Nin:"select"},q=[{name:g.ZP.get("包含"),value:"Reg"},{name:g.ZP.get("不包含"),value:"NotReg"},{name:g.ZP.get("属于"),value:"In",type:"select"},{name:g.ZP.get("不属于"),value:"Nin",type:"select"}],N=[{name:g.ZP.get("顺序"),value:"ASC"},{name:g.ZP.get("倒序"),value:"DESC"}],I=function(e){return e.and="且",e.or="或",e}(I||{});t.default=function(e){var t=e.view,n=e.handleCancel,a=e.visible,r=f.Z.useForm(),s=m()(r,1)[0],l=(0,p.useState)(!1),d=m()(l,2),R=d[0],D=d[1],O=(0,p.useState)("and"),G=m()(O,2),L=G[0],W=G[1],K=f.Z.useWatch("filters",s),F=(0,S.Z)((function(){return b.W.get("".concat(y.Z.apiPrefix,"subscriptions"))}),{cacheKey:"subscriptions"}).data,z={status:[{name:g.ZP.get("运行中"),value:w.CrontabStatus.running},{name:g.ZP.get("空闲中"),value:w.CrontabStatus.idle},{name:g.ZP.get("已禁用"),value:w.CrontabStatus.disabled}],sub_id:null==F?void 0:F.data.map((function(e){return{name:e.name,value:e.id}}))},V=function(){var e=u()(o()().mark((function e(a){var i,r,s,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D(!0),a.filterRelation=L,i=t?"put":"post",e.prev=3,e.next=6,b.W[i]("".concat(y.Z.apiPrefix,"crons/views"),t?c()(c()({},a),{},{id:t.id}):a);case 6:r=e.sent,s=r.code,l=r.data,200===s&&n(l),D(!1),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),D(!1);case 16:case"end":return e.stop()}}),e,null,[[3,13]])})));return function(t){return e.apply(this,arguments)}}();(0,p.useEffect)((function(){t||s.resetFields(),s.setFieldsValue(t||{filters:[{property:"command"}]})}),[t,a]);var H=function(e){var t=e.name,n=i()(e,E),a=s.getFieldValue(["filters",t,"property"]);return(0,C.jsx)(h.Z,c()(c()({style:{width:120},placeholder:g.ZP.get("请选择操作符")},n),{},{children:q.filter((function(e){return z[a]?"select"===e.type:e})).map((function(e){return(0,C.jsx)(h.Z.Option,{value:e.value,children:e.name},e.name)}))}))},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,C.jsx)(h.Z,{style:t,children:e.map((function(e){return(0,C.jsx)(h.Z.Option,{value:e.value,children:e.name},e.name)}))})},U=(0,C.jsx)(h.Z,{style:{width:80},children:N.map((function(e){return(0,C.jsx)(h.Z.Option,{value:e.value,children:e.name},e.name)}))});return(0,C.jsx)(Z.Z,{title:t?g.ZP.get("编辑视图"):g.ZP.get("创建视图"),open:a,forceRender:!0,width:580,centered:!0,maskClosable:!1,onOk:function(){s.validateFields().then((function(e){V(e)})).catch((function(e){console.log("Validate Failed:",e)}))},onCancel:function(){return n()},confirmLoading:R,children:(0,C.jsxs)(f.Z,{form:s,layout:"vertical",name:"env_modal",children:[(0,C.jsx)(f.Z.Item,{name:"name",label:g.ZP.get("视图名称"),rules:[{required:!0,message:g.ZP.get("请输入视图名称")}],children:(0,C.jsx)(P.Z,{placeholder:g.ZP.get("请输入视图名称")})}),(0,C.jsx)(f.Z.List,{name:"filters",children:function(e,t,n){var a=t.add,r=t.remove,o=n.errors;return(0,C.jsxs)("div",{style:{position:"relative"},className:"view-filters-container ".concat(e.length>1?"active":""),children:[e.length>1&&(0,C.jsx)("div",{style:{position:"absolute",width:50,borderRadius:10,border:"1px solid rgb(190, 220, 255)",borderRight:"none",height:56*(e.length-1),top:46,left:15},children:(0,C.jsx)(x.Z,{type:"primary",size:"small",style:{position:"absolute",top:"50%",translate:"-50% -50%",padding:"0 3px",cursor:"pointer"},onClick:function(){W("and"===L?"or":"and")},children:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("span",{children:I[L]}),(0,C.jsx)(j.Z,{type:"ql-icon-d-caret"})]})})}),(0,C.jsxs)("div",{children:[e.map((function(e){var t,n,a=e.key,o=e.name,s=i()(e,B);return(0,C.jsx)(f.Z.Item,{label:0===o?g.ZP.get("筛选条件"):"",style:{marginBottom:0},required:!0,className:"filter-item",children:(0,C.jsxs)(v.Z,{className:"view-create-modal-filters",align:"baseline",children:[(0,C.jsx)(f.Z.Item,c()(c()({},s),{},{name:[o,"property"],rules:[{required:!0}],children:Y(M,{width:120})})),(0,C.jsx)(f.Z.Item,c()(c()({},s),{},{name:[o,"operation"],rules:[{required:!0,message:g.ZP.get("请选择操作符")}],children:(0,C.jsx)(H,{name:o})})),(0,C.jsx)(f.Z.Item,c()(c()({},s),{},{name:[o,"value"],rules:[{required:!0,message:g.ZP.get("请输入内容")}],children:"select"===_[null==K?void 0:K[o].operation]?(t=null==K?void 0:K[o].property,(0,C.jsx)(h.Z,{mode:"tags",allowClear:!0,placeholder:g.ZP.get("输入后回车增加自定义选项"),children:null===(n=z[t])||void 0===n?void 0:n.map((function(e){return(0,C.jsx)(h.Z.Option,{value:e.value,children:e.name},e.name)}))})):(0,C.jsx)(P.Z,{placeholder:g.ZP.get("请输入内容")})})),0!==o&&(0,C.jsx)(A.Z,{onClick:function(){return r(o)}})]})},a)})),(0,C.jsx)(f.Z.Item,{children:(0,C.jsxs)("a",{onClick:function(){return a({property:"command",operation:"Reg"})},children:[(0,C.jsx)(k.Z,{}),g.ZP.get("新增筛选条件")]})}),(0,C.jsx)(f.Z.ErrorList,{errors:o})]})]})}}),(0,C.jsx)(f.Z.List,{name:"sorts",children:function(e,t,n){var a=t.add,r=t.remove,o=n.errors;return(0,C.jsxs)("div",{style:{position:"relative"},className:"view-filters-container ".concat(e.length>1?"active":""),children:[e.length>1&&(0,C.jsx)("div",{style:{position:"absolute",width:50,borderRadius:10,border:"1px solid rgb(190, 220, 255)",borderRight:"none",height:56*(e.length-1),top:46,left:15},children:(0,C.jsx)(x.Z,{type:"primary",size:"small",style:{position:"absolute",top:"50%",translate:"-50% -50%",padding:"0 3px",cursor:"pointer"},children:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("span",{children:I[L]})})})}),(0,C.jsxs)("div",{children:[e.map((function(e){var t=e.key,n=e.name,a=i()(e,T);return(0,C.jsx)(f.Z.Item,{label:0===n?g.ZP.get("排序方式"):"",style:{marginBottom:0},className:"filter-item",children:(0,C.jsxs)(v.Z,{className:"view-create-modal-sorts",align:"baseline",children:[(0,C.jsx)(f.Z.Item,c()(c()({},a),{},{name:[n,"property"],rules:[{required:!0}],children:Y(M)})),(0,C.jsx)(f.Z.Item,c()(c()({},a),{},{name:[n,"type"],rules:[{required:!0}],children:U})),(0,C.jsx)(A.Z,{onClick:function(){return r(n)}})]})},t)})),(0,C.jsx)(f.Z.Item,{children:(0,C.jsxs)("a",{onClick:function(){return a({property:"command",type:"ASC"})},children:[(0,C.jsx)(k.Z,{}),g.ZP.get("新增排序方式")]})}),(0,C.jsx)(f.Z.ErrorList,{errors:o})]})]})}})]})})}},36199:function(e,t,n){"use strict";n.r(t);var a=n(15558),i=n.n(a),r=n(26068),o=n.n(r),s=n(48305),c=n.n(s),l=n(67825),u=n.n(l),d=n(72317),m=n(75271),g=n(50691),p=n(9171),f=n(63505),h=n(45520),Z=n(61508),P=n(93481),x=n(10948),v=n(16314),b=n(3475),y=n(28423),A=n(88939),k=n(12363),j=n(18708),w=n(78637),S=n(4690),C=n(42208),E=n(52676),B=["index","moveRow","className","style"],T=g.Z.Text,M="DragableBodyRow",_=function(e){var t=e.index,n=e.moveRow,a=e.className,i=e.style,r=u()(e,B),s=(0,m.useRef)(),l=(0,k.L)({accept:M,collect:function(e){var n=(e.getItem()||{}).index;return n===t?{}:{isOver:e.isOver(),dropClassName:n<t?" drop-over-downward":" drop-over-upward"}},drop:function(e){n(e.index,t)}}),d=c()(l,2),g=d[0],p=g.isOver,f=g.dropClassName,h=d[1],Z=(0,j.c)({type:M,item:{index:t},collect:function(e){return{isDragging:e.isDragging()}}});return h((0,c()(Z,2)[1])(s)),(0,E.jsx)("tr",o()({ref:s,className:"".concat(a).concat(p?f:""),style:o()({cursor:"move"},i)},r))};t.default=function(e){var t=e.cronViews,n=e.handleCancel,a=e.visible,r=e.cronViewChange,s=function(e){return k.filter((function(e){return!e.isDisabled})).length<=1&&!e.isDisabled},l=[{title:d.ZP.get("名称"),dataIndex:"name",key:"name",render:function(e){return"全部任务"===e?d.ZP.get("全部任务"):e}},{title:d.ZP.get("类型"),dataIndex:"type",key:"type",render:function(e){return 1===e?d.ZP.get("系统"):d.ZP.get("个人")}},{title:d.ZP.get("显示"),key:"isDisabled",dataIndex:"isDisabled",width:100,render:function(e,t,n){return(0,E.jsx)(p.Z,{disabled:s(t),checked:!t.isDisabled,onChange:function(e){return W(e,t,n)}})}},{title:d.ZP.get("操作"),key:"action",width:100,render:function(e,t,n){return 1!==t.type?(0,E.jsxs)(f.Z,{size:"middle",children:[(0,E.jsx)("a",{onClick:function(){return G(t,n)},children:(0,E.jsx)(y.Z,{})}),!s(t)&&(0,E.jsx)("a",{onClick:function(){return L(t,n)},children:(0,E.jsx)(A.Z,{})})]}):"-"}}],u=(0,m.useState)([]),g=c()(u,2),k=g[0],j=g[1],B=(0,m.useState)(!1),M=c()(B,2),q=M[0],N=M[1],I=(0,m.useState)(null),R=c()(I,2),D=R[0],O=R[1],G=function(e,t){O(e),N(!0)},L=function(e,t){h.Z.confirm({title:d.ZP.get("确认删除"),content:(0,E.jsxs)(E.Fragment,{children:[d.ZP.get("确认删除视图")," ",(0,E.jsx)(T,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",d.ZP.get("吗")]}),onOk:function(){v.W.delete("".concat(b.Z.apiPrefix,"crons/views"),{data:[e.id]}).then((function(e){var t=e.code;e.data;200===t&&(Z.ZP.success(d.ZP.get("删除成功")),r())}))}})},W=function(e,t,n){v.W.put("".concat(b.Z.apiPrefix,"crons/views/").concat(e?"enable":"disable"),[t.id]).then((function(t){var a=t.code;t.data;if(200===a){var s=i()(k);s.splice(n,1,o()(o()({},k[n]),{},{isDisabled:!e})),j(s),r()}}))},K={body:{row:_}},F=(0,m.useCallback)((function(e,t){if(e!==t){var n=k[e];v.W.put("".concat(b.Z.apiPrefix,"crons/views/move"),{fromIndex:e,toIndex:t,id:n.id}).then((function(a){var s=a.code,c=a.data;if(200===s){var l=i()(k);l.splice(e,1),l.splice(t,0,o()(o()({},n),c)),j(l),r()}}))}}),[k]);return(0,m.useEffect)((function(){j(t)}),[t]),(0,E.jsxs)(h.Z,{title:d.ZP.get("视图管理"),open:a,centered:!0,width:620,onCancel:function(){return n()},className:"view-manage-modal",forceRender:!0,footer:!1,maskClosable:!1,children:[(0,E.jsx)(f.Z,{style:{display:"flex",justifyContent:"flex-end",marginBottom:10},children:(0,E.jsx)(P.Z,{type:"primary",onClick:function(){O(null),N(!0)},children:d.ZP.get("创建视图")},"2")}),(0,E.jsx)(w.W,{backend:S.PD,children:(0,E.jsx)(x.Z,{bordered:!0,columns:l,pagination:!1,dataSource:k,rowKey:"id",size:"middle",style:{marginBottom:20},components:K,onRow:function(e,t){return{index:t,moveRow:F}}})}),(0,E.jsx)(C.default,{view:D,visible:q,handleCancel:function(e){N(!1),r(e)}})]})}},3475:function(e,t,n){"use strict";var a=n(72317),i=window.__ENV__QlBaseUrl||"/";t.Z={siteName:a.ZP.get("青龙"),baseUrl:i,apiPrefix:"".concat(i,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Português",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:a.ZP.get("中文"),flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:a.ZP.get("定时任务"),value:"crons"},{name:a.ZP.get("环境变量"),value:"envs"},{name:a.ZP.get("订阅管理"),value:"subscriptions"},{name:a.ZP.get("配置文件"),value:"configs"},{name:a.ZP.get("脚本管理"),value:"scripts"},{name:a.ZP.get("日志管理"),value:"logs"},{name:a.ZP.get("依赖管理"),value:"dependencies"},{name:a.ZP.get("系统信息"),value:"system"}],scopesMap:{crons:a.ZP.get("定时任务"),envs:a.ZP.get("环境变量"),subscriptions:a.ZP.get("订阅管理"),configs:a.ZP.get("配置文件"),scripts:a.ZP.get("脚本管理"),logs:a.ZP.get("日志管理"),dependencies:a.ZP.get("依赖管理"),system:a.ZP.get("系统信息")},notificationModes:[{value:"gotify",label:"Gotify"},{value:"ntfy",label:"Ntfy"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:a.ZP.get("Server酱")},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:a.ZP.get("Telegram机器人")},{value:"dingtalkBot",label:a.ZP.get("钉钉机器人")},{value:"weWorkBot",label:a.ZP.get("企业微信机器人")},{value:"weWorkApp",label:a.ZP.get("企业微信应用")},{value:"aibotk",label:a.ZP.get("智能微秘书")},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"wePlusBot",label:a.ZP.get("微加机器人")},{value:"wxPusherBot",label:"wxPusher"},{value:"chat",label:a.ZP.get("群晖chat")},{value:"email",label:a.ZP.get("邮箱")},{value:"lark",label:a.ZP.get("飞书机器人")},{value:"pushMe",label:"PushMe"},{value:"chronocat",label:"Chronocat"},{value:"webhook",label:a.ZP.get("自定义通知")},{value:"closed",label:a.ZP.get("已关闭")}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:a.ZP.get("gotify的url地址,例如 https://push.example.de:8080"),required:!0},{label:"gotifyToken",tip:a.ZP.get("gotify的消息应用token码"),required:!0},{label:"gotifyPriority",tip:a.ZP.get("推送消息的优先级")}],ntfy:[{label:"ntfyUrl",tip:a.ZP.get("ntfy的url地址,例如 https://ntfy.sh"),required:!0},{label:"ntfyTopic",tip:a.ZP.get("ntfy的消息应用topic"),required:!0},{label:"ntfyPriority",tip:a.ZP.get("推送消息的优先级")}],chat:[{label:"synologyChatUrl",tip:a.ZP.get("synologyChat的url地址"),required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:a.ZP.get("推送到个人QQ: http://127.0.0.1/send_private_msg,群:http://127.0.0.1/send_group_msg"),required:!0},{label:"goCqHttpBotToken",tip:a.ZP.get("访问密钥"),required:!0},{label:"goCqHttpBotQq",tip:a.ZP.get("如果GOBOT_URL设置 /send_private_msg 则需要填入 user_id=个人QQ 相反如果是 /send_group_msg 则需要填入 group_id=QQ群"),required:!0}],serverChan:[{label:"serverChanKey",tip:a.ZP.get("Server酱SENDKEY"),required:!0}],pushDeer:[{label:"pushDeerKey",tip:a.ZP.get("PushDeer的Key,https://github.com/easychen/pushdeer"),required:!0},{label:"pushDeerUrl",tip:a.ZP.get("PushDeer的自架API endpoint,默认是 https://api2.pushdeer.com/message/push")}],bark:[{label:"barkPush",tip:a.ZP.get("Bark的信息IP/设备码,例如:https://api.day.app/XXXXXXXX"),required:!0},{label:"barkIcon",tip:a.ZP.get("BARK推送图标,自定义推送图标 (需iOS15或以上才能显示)")},{label:"barkSound",tip:a.ZP.get("BARK推送铃声,铃声列表去APP查看复制填写")},{label:"barkGroup",tip:a.ZP.get("BARK推送消息的分组,默认为qinglong")},{label:"barkLevel",tip:a.ZP.get("BARK推送消息的时效性,默认为active")},{label:"barkUrl",tip:a.ZP.get("BARK推送消息的跳转URL")},{label:"barkArchive",tip:a.ZP.get("BARK是否保存推送消息")}],telegramBot:[{label:"telegramBotToken",tip:a.ZP.get("telegram机器人的token,例如:1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw"),required:!0},{label:"telegramBotUserId",tip:a.ZP.get("telegram用户的id,例如:129xxx206"),required:!0},{label:"telegramBotProxyHost",tip:a.ZP.get("代理IP")},{label:"telegramBotProxyPort",tip:a.ZP.get("代理端口")},{label:"telegramBotProxyAuth",tip:a.ZP.get("telegram代理配置认证参数,用户名与密码用英文冒号连接 user:password")},{label:"telegramBotApiHost",tip:a.ZP.get("telegram api自建的反向代理地址,默认tg官方api")}],dingtalkBot:[{label:"dingtalkBotToken",tip:a.ZP.get("钉钉机器人webhook token,例如:5a544165465465645d0f31dca676e7bd07415asdasd"),required:!0},{label:"dingtalkBotSecret",tip:a.ZP.get("密钥,机器人安全设置页面,加签一栏下面显示的SEC开头的字符串")}],weWorkBot:[{label:"weWorkBotKey",tip:a.ZP.get("企业微信机器人的webhook(详见文档 https://work.weixin.qq.com/api/doc/90000/90136/91770),例如:693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa"),required:!0},{label:"weWorkOrigin",tip:a.ZP.get("企业微信代理地址")}],weWorkApp:[{label:"weWorkAppKey",tip:a.ZP.get("corpid、corpsecret、touser(注:多个成员ID使用|隔开)、agentid、消息类型(选填,不填默认文本消息类型) 注意用,号隔开(英文输入法的逗号),例如:wwcfrs,B-76WERQ,qinglong,1000001,2COat"),required:!0},{label:"weWorkOrigin",tip:a.ZP.get("企业微信代理地址")}],aibotk:[{label:"aibotkKey",tip:a.ZP.get("密钥key,智能微秘书个人中心获取apikey,申请地址:https://wechat.aibotk.com/signup?from=ql"),required:!0},{label:"aibotkType",tip:a.ZP.get("发送的目标,群组或者好友"),required:!0,placeholder:a.ZP.get("请输入要发送的目标"),items:[{value:"room",label:a.ZP.get("群聊")},{value:"contact",label:a.ZP.get("好友")}]},{label:"aibotkName",tip:a.ZP.get("要发送的用户昵称或群名,如果目标是群,需要填群名,如果目标是好友,需要填好友昵称"),required:!0}],iGot:[{label:"iGotPushKey",tip:a.ZP.get("iGot的信息推送key,例如:https://push.hellyw.com/XXXXXXXX"),required:!0}],pushPlus:[{label:"pushPlusToken",tip:a.ZP.get("微信扫码登录后一对一推送或一对多推送下面的token(您的Token),不提供PUSH_PLUS_USER则默认为一对一推送,参考 https://www.pushplus.plus/"),required:!0},{label:"pushPlusUser",tip:a.ZP.get("一对多推送的“群组编码”(一对多推送下面->您的群组(如无则创建)->群组编码,如果您是创建群组人。也需点击“查看二维码”扫描绑定,否则不能接受群组消息推送)")},{label:"pushplusTemplate",tip:a.ZP.get("发送模板")},{label:"pushplusChannel",tip:a.ZP.get("发送渠道")},{label:"pushplusWebhook",tip:a.ZP.get("webhook编码")},{label:"pushplusCallbackUrl",tip:a.ZP.get("发送结果回调地址")},{label:"pushplusTo",tip:a.ZP.get("好友令牌")}],wePlusBot:[{label:"wePlusBotToken",tip:a.ZP.get("用户令牌,扫描登录后 我的—>设置->令牌 中获取,参考 https://www.weplusbot.com/"),required:!0},{label:"wePlusBotReceiver",tip:a.ZP.get("消息接收人")},{label:"wePlusBotVersion",tip:a.ZP.get("调用版本;专业版填写pro,个人版填写personal,为空默认使用专业版")}],wxPusherBot:[{label:"wxPusherBotAppToken",tip:a.ZP.get("wxPusherBot的appToken"),required:!0},{label:"wxPusherBotTopicIds",tip:a.ZP.get("wxPusherBot的topicIds"),required:!1},{label:"wxPusherBotUids",tip:a.ZP.get("wxPusherBot的uids"),required:!1}],lark:[{label:"larkKey",tip:a.ZP.get("飞书群组机器人:https://www.feishu.cn/hc/zh-CN/articles/360024984973"),required:!0}],email:[{label:"emailService",tip:a.ZP.get("邮箱服务名称,比如126、163、Gmail、QQ等,支持列表https://github.com/nodemailer/nodemailer/blob/master/lib/well-known/services.json"),required:!0},{label:"emailUser",tip:a.ZP.get("邮箱地址"),required:!0},{label:"emailPass",tip:a.ZP.get("SMTP 登录密码,也可能为特殊口令,视具体邮件服务商说明而定"),required:!0}],pushMe:[{label:"pushMeKey",tip:a.ZP.get("PushMe的Key,https://push.i-i.me/"),required:!0},{label:"pushMeUrl",tip:a.ZP.get("自建的PushMeServer消息接口地址,例如:http://127.0.0.1:3010,不填则使用官方消息接口"),required:!1}],chronocat:[{label:"chronocatURL",tip:a.ZP.get("Chronocat Red 服务的连接地址 https://chronocat.vercel.app/install/docker/official/"),required:!0},{label:"chronocatQQ",tip:a.ZP.get("个人:user_id=个人QQ 群则填入group_id=QQ群 多个用英文;隔开同时支持个人和群 如:user_id=xxx;group_id=xxxx;group_id=xxxxx"),required:!0},{label:"chronocatToken",tip:a.ZP.get("docker安装在持久化config目录下的chronocat.yml文件可找到"),required:!0}],webhook:[{label:"webhookMethod",tip:a.ZP.get("请求方法"),required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:a.ZP.get("请求头Content-Type"),required:!0,items:[{value:"text/plain"},{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:a.ZP.get("请求链接以http或者https开头。url或者body中必须包含$title,$content可选,对应api内容的位置"),required:!0,placeholder:"https://xxx.cn/api?content=$title\n"},{label:"webhookHeaders",tip:a.ZP.get("请求头格式Custom-Header1: Header1,多个换行分割"),placeholder:"Custom-Header1: Header1\nCustom-Header2: Header2"},{label:"webhookBody",tip:a.ZP.get("请求体格式key1: value1,多个换行分割。url或者body中必须包含$title,$content可选,对应api内容的位置"),placeholder:"key1: $title\nkey2: $content"}]},documentTitleMap:{"/login":a.ZP.get("登录"),"/initialization":a.ZP.get("初始化"),"/crontab":a.ZP.get("定时任务"),"/env":a.ZP.get("环境变量"),"/subscription":a.ZP.get("订阅管理"),"/config":a.ZP.get("配置文件"),"/script":a.ZP.get("脚本管理"),"/diff":a.ZP.get("对比工具"),"/log":a.ZP.get("日志管理"),"/setting":a.ZP.get("系统设置"),"/error":a.ZP.get("错误日志"),"/dependence":a.ZP.get("依赖管理")},dependenceTypes:["nodejs","python3","linux"]}},97302:function(e,t,n){"use strict";n.d(t,{eY:function(){return a},um:function(){return i},z:function(){return r}});var a=" ",i={".py":"python",".js":"javascript",".mjs":"javascript",".sh":"shell",".ts":"typescript",".ini":"ini",".json":"json"},r=["UTC","Africa/Abidjan","Africa/Accra","Africa/Addis Ababa","Africa/Algiers","Africa/Asmara","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar es Salaam","Africa/Djibouti","Africa/Douala","Africa/El Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La Rioja","America/Argentina/Mendoza","America/Argentina/Rio Gallegos","America/Argentina/Salta","America/Argentina/San Juan","America/Argentina/San Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa Vista","America/Bogota","America/Boise","America/Cambridge Bay","America/Campo Grande","America/Cancun","America/Caracas","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Ciudad Juarez","America/Costa Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El Salvador","America/Fort Nelson","America/Fortaleza","America/Glace Bay","America/Goose Bay","America/Grand Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Kralendijk","America/La Paz","America/Lima","America/Los Angeles","America/Lower Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montserrat","America/Nassau","America/New York","America/Nome","America/Noronha","America/North Dakota/Beulah","America/North Dakota/Center","America/North Dakota/New Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Paramaribo","America/Phoenix","America/Port of Spain","America/Port-au-Prince","America/Porto Velho","America/Puerto Rico","America/Punta Arenas","America/Rankin Inlet","America/Recife","America/Regina","America/Resolute","America/Rio Branco","America/Santarem","America/Santiago","America/Santo Domingo","America/Sao Paulo","America/Scoresbysund","America/Sitka","America/St Barthelemy","America/St Johns","America/St Kitts","America/St Lucia","America/St Thomas","America/St Vincent","America/Swift Current","America/Tegucigalpa","America/Thule","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho Chi Minh","Asia/Hong Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South Georgia","Atlantic/St Helena","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken Hill","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Etc/GMT","Etc/GMT+1","Etc/GMT+10","Etc/GMT+11","Etc/GMT+12","Etc/GMT+2","Etc/GMT+3","Etc/GMT+4","Etc/GMT+5","Etc/GMT+6","Etc/GMT+7","Etc/GMT+8","Etc/GMT+9","Etc/GMT-1","Etc/GMT-10","Etc/GMT-11","Etc/GMT-12","Etc/GMT-13","Etc/GMT-14","Etc/GMT-2","Etc/GMT-3","Etc/GMT-4","Etc/GMT-5","Etc/GMT-6","Etc/GMT-7","Etc/GMT-8","Etc/GMT-9","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle of Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kanton","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"]},62348:function(e,t,n){"use strict";n.d(t,{E:function(){return i}});var a=n(72317);function i(e){var t=1e3*e,n=Math.floor(t/864e5),i=t%864e5,r=Math.floor(i/36e5),o=i%36e5,s=Math.floor(o/6e4),c=o%6e4,l=Math.round(c/1e3),u="".concat(l," ").concat(a.ZP.get("秒"));return s>0&&(u="".concat(s," ").concat(a.ZP.get("分")," ")+u),r>0&&(u="".concat(r," ").concat(a.ZP.get("时")," ")+u),n>0&&(u="".concat(n," ").concat(a.ZP.get("天")," ")+u),u}},16314:function(e,t,n){"use strict";n.d(t,{W:function(){return Z}});var a=n(90228),i=n.n(a),r=n(87999),o=n.n(r),s=n(72317),c=n(61508),l=n(33839),u=n(3475),d=n(98783),m=n(69313),g=n(52676);c.ZP.config({duration:2});var p=Date.now(),f=m.Z.create({timeout:6e4,params:{t:p}}),h=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];f.interceptors.request.use((function(e){var t=localStorage.getItem(u.Z.authKey);return t&&!h.includes(e.url)?(e.headers.Authorization="Bearer ".concat(t),e):e})),f.interceptors.response.use(function(){var e=o()(i()().mark((function e(t){var n,a,r;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.status,![502,504].includes(n)){e.next=5;break}d.history.push("/error"),e.next=18;break;case 5:if(401!==n){e.next=9;break}"/login"!==d.history.location.pathname&&(localStorage.removeItem(u.Z.authKey),d.history.push("/login")),e.next=18;break;case 9:return e.prev=9,200!==(a=t.data).code&&(r=a.message||a.data)&&l.Z.error({message:r,description:null!=a&&a.errors?(0,g.jsx)(g.Fragment,{children:null==a?void 0:a.errors.map((function(e){return(0,g.jsx)("div",{children:e.message})}))}):void 0}),e.abrupt("return",a);case 15:e.prev=15,e.t0=e.catch(9);case 17:case 18:return e.abrupt("return",t);case 19:case"end":return e.stop()}}),e,null,[[9,15]])})));return function(t){return e.apply(this,arguments)}}(),(function(e){if(e.response){var t=e.response.data?e.response.data.message||e.message:e.response.statusText,n=e.response.status;if([502,504].includes(n))d.history.push("/error");else if(401===n)"/login"!==d.history.location.pathname&&(c.ZP.error(s.ZP.get("登录已过期,请重新登录")),localStorage.removeItem(u.Z.authKey),d.history.push("/login"));else{var a,i,r,o;if("function"==typeof(null===(a=e.config)||void 0===a?void 0:a.onError))return null===(o=e.config)||void 0===o?void 0:o.onError(e.response);t&&l.Z.error({message:t,description:null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.errors?(0,g.jsx)(g.Fragment,{children:null===(r=e.response)||void 0===r||null===(r=r.data)||void 0===r||null===(r=r.errors)||void 0===r?void 0:r.map((function(e){return(0,g.jsxs)("div",{children:[e.message," (",e.value,")"]})}))}):void 0})}}else console.log(e.message);return Promise.reject(e)}));var Z=f},48916:function(e,t,n){"use strict";n.d(t,{DY:function(){return g},FA:function(){return f},H$:function(){return P},I1:function(){return m},W9:function(){return u},ZP:function(){return l},o4:function(){return x},rS:function(){return Z},w7:function(){return d},x$:function(){return p}});var a=n(15558),i=n.n(a),r=n(72317),o=n(97302),s=n(94046),c=n.n(s);function l(){var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){return(e.match(t)||[]).toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")},a="unknow";t(/windows|win32|win64|wow32|wow64/g)?a="windows":t(/macintosh|macintel/g)?a="macos":t(/x11/g)?a="linux":t(/android|adr/g)?a="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(a="ios");var i="unknow";"windows"===a?t(/windows nt 5.0|windows 2000/g)?i="2000":t(/windows nt 5.1|windows xp/g)?i="xp":t(/windows nt 5.2|windows 2003/g)?i="2003":t(/windows nt 6.0|windows vista/g)?i="vista":t(/windows nt 6.1|windows 7/g)?i="7":t(/windows nt 6.2|windows 8/g)?i="8":t(/windows nt 6.3|windows 8.1/g)?i="8.1":t(/windows nt 10.0|windows 10/g)&&(i="10"):"macos"===a?i=n(/os x [\d._]+/g):"android"===a?i=n(/android [\d._]+/g):"ios"===a&&(i=n(/os [\d._]+/g));var r="unknow";"windows"===a||"macos"===a||"linux"===a?r="desktop":("android"===a||"ios"===a||t(/mobile/g))&&(r="mobile");var o="unknow",s="unknow";t(/applewebkit/g)?(o="webkit",t(/edge/g)?s="edge":t(/opr/g)?s="opera":t(/chrome/g)?s="chrome":t(/safari/g)&&(s="safari")):t(/gecko/g)&&t(/firefox/g)?(o="gecko",s="firefox"):t(/presto/g)?(o="presto",s="opera"):t(/trident|compatible|msie/g)&&(o="trident",s="iexplore");var c="unknow";"webkit"===o?c=n(/applewebkit\/[\d._]+/g):"gecko"===o?c=n(/gecko\/[\d._]+/g):"presto"===o?c=n(/presto\/[\d._]+/g):"trident"===o&&(c=n(/trident\/[\d._]+/g));var l="unknow";"chrome"===s?l=n(/chrome\/[\d._]+/g):"safari"===s?l=n(/version\/[\d._]+/g):"firefox"===s?l=n(/firefox\/[\d._]+/g):"opera"===s?l=n(/opr\/[\d._]+/g):"iexplore"===s?l=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===s&&(l=n(/edge\/[\d._]+/g));var u="none",d="unknow";t(/micromessenger/g)?(u="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(u="qq",d=n(/qqbrowser\/[\d._]+/g)):t(/ucbrowser/g)?(u="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?u="360":t(/2345explorer/g)?(u="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?u="sougou":t(/lbbrowser/g)?u="liebao":t(/maxthon/g)&&(u="maxthon",d=n(/maxthon\/[\d._]+/g));var m=Object.assign({engine:o,engineVs:c,platform:r,supporter:s,supporterVs:l,system:a,systemVs:i},"none"===u?{}:{shell:u,shellVs:d});return console.log("%c\n .d88b. d888888b d8b db d888b db .d88b. d8b db d888b \n.8P Y8. `88' 888o 88 88' Y8b 88 .8P Y8. 888o 88 88' Y8b \n88 88 88 88V8o 88 88 88 88 88 88V8o 88 88 \n88 88 88 88 V8o88 88 ooo 88 88 88 88 V8o88 88 ooo \n`8P d8' .88. 88 V888 88. ~8~ 88booo. `8b d8' 88 V888 88. ~8~ \n `Y88'Y8 Y888888P VP V8P Y888P Y88888P `Y88P' VP V8P Y888P \n \n \n","color: blue;font-size: 14px;"),console.log("%c忘形雨笠烟蓑,知心牧唱樵歌。明月清风共我,闲人三个,从他今古消磨。\n","color: yellow;font-size: 18px;"),console.log("%c青龙运行环境:\n\n系统:".concat(m.system,"/").concat(m.systemVs,"\n浏览器:").concat(m.supporter,"/").concat(m.supporterVs,"\n内核:").concat(m.engine,"/").concat(m.engineVs),"color: green;font-size: 14px;font-weight: bold;"),m}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.extraHeight,n=e.target;void 0===t&&(t=99);var a=null,i=0;(a=n||document.querySelector(".ant-table-wrapper"))&&(i=a.getBoundingClientRect().top);var r=document.body.clientHeight-i-t;return r}function d(e,t){var n,a,i=window.URL||window.webkitURL||window,r=new Blob([t]),o=document.createElementNS("http://www.w3.org/1999/xhtml","a");o.href=i.createObjectURL(r),o.download=e,n=o,(a=document.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(a)}function m(e,t,n){var a=i()(e),r=[];return function e(a){if(a)for(var i=0;i<(null==a?void 0:a.length);i++){if(t(a[i]))return n?void(a[i].children?a[i].children.unshift(n):a[i].children=[n]):void a.splice(i,1);a[i].children&&(r.push(a[i].key),e(a[i].children))}}(a),a}function g(e,t){var n;return function e(a){if(a)for(var i=0;i<(null==a?void 0:a.length);i++)t(a[i])?n=a[i]:a[i].children&&e(a[i].children)}(i()(e)),n}function p(e){return[o.eY,r.ZP.get("执行结束")].some((function(t){return e.includes(t)}))}function f(e){var t=e.split(" ");if("repo"===t[1]||"raw"===t[1])return t[2];var n=t.find((function(e){return[".js",".ts",".sh",".py"].some((function(t){return e.endsWith(t)}))}));if(n){var a,i,r="".concat(window.__ENV__QL_DIR,"/data/scripts");n.startsWith(r)&&(n=n.replace(r,""));var o=n.lastIndexOf("/");return o>=0?(i=n.slice(o+1),a=n.slice(0,o)):(i=n,a=""),[i,a]}}function h(e){try{var t=c().parseExpression(e);if(t)return t.next().toDate()}catch(e){}return null}function Z(e,t){var n=h(e);return null!=t&&t.length&&t.forEach((function(e){var t=h(e.schedule);t&&(!n||t<n)&&(n=t)})),n}function P(e){var t=function(e){if(!e)return"";var t=e.split(".");return".".concat(t[t.length-1])}(e);return o.um[t]}function x(){var e=document.createElement("div");e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.width="100%",e.style.height="100%",e.style.backgroundColor="transparent",e.style.zIndex="9999",document.body.appendChild(e),e.addEventListener("click",(function(e){e.stopPropagation(),e.preventDefault()})),document.body.style.overflow="hidden"}},50810:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[349],{22800:function(e,n){n.Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"}},19919:function(e,n,t){t.d(n,{Z:function(){return w}});var a=t(2053),r=t(53162),o=t(75271),i=t(98037),c=t(57904),l=t(82187),s=t.n(l),d=t(3083),u=t(28771),f=t(39765),m=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],p=o.forwardRef((function(e,n){var t=e.className,l=e.component,p=e.viewBox,h=e.spin,v=e.rotate,g=e.tabIndex,Z=e.onClick,x=e.children,w=(0,r.Z)(e,m),y=o.useRef(),C=(0,d.x1)(y,n);(0,f.Kp)(Boolean(l||x),"Should have `component` prop or `children`."),(0,f.C3)(y);var b=o.useContext(u.Z),k=b.prefixCls,N=void 0===k?"anticon":k,P=b.rootClassName,j=s()(P,N,(0,c.Z)({},"".concat(N,"-spin"),!!h&&!!l),t),E=s()((0,c.Z)({},"".concat(N,"-spin"),!!h)),I=v?{msTransform:"rotate(".concat(v,"deg)"),transform:"rotate(".concat(v,"deg)")}:void 0,B=(0,i.Z)((0,i.Z)({},f.vD),{},{className:E,style:I,viewBox:p});p||delete B.viewBox;var R=g;return void 0===R&&Z&&(R=-1),o.createElement("span",(0,a.Z)({role:"img"},w,{ref:C,tabIndex:R,onClick:Z,className:j}),l?o.createElement(l,B,x):x?((0,f.Kp)(Boolean(p)||1===o.Children.count(x)&&o.isValidElement(x)&&"use"===o.Children.only(x).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),o.createElement("svg",(0,a.Z)({},B,{viewBox:p}),x)):null)}));p.displayName="AntdIcon";var h=p,v=["type","children"],g=new Set;function Z(e){return Boolean("string"==typeof e&&e.length&&!g.has(e))}function x(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=e[n];if(Z(t)){var a=document.createElement("script");a.setAttribute("src",t),a.setAttribute("data-namespace",t),e.length>n+1&&(a.onload=function(){x(e,n+1)},a.onerror=function(){x(e,n+1)}),g.add(t),document.body.appendChild(a)}}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.scriptUrl,t=e.extraCommonProps,i=void 0===t?{}:t;n&&"undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&(Array.isArray(n)?x(n.reverse()):x([n]));var c=o.forwardRef((function(e,n){var t=e.type,c=e.children,l=(0,r.Z)(e,v),s=null;return e.type&&(s=o.createElement("use",{xlinkHref:"#".concat(t)})),c&&(s=c),o.createElement(h,(0,a.Z)({},i,l,{ref:n}),s)}));return c.displayName="Iconfont",c}},37559:function(e,n,t){t.d(n,{Z:function(){return l}});var a=t(2053),r=t(75271),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},i=t(48881),c=function(e,n){return r.createElement(i.Z,(0,a.Z)({},e,{ref:n,icon:o}))};var l=r.forwardRef(c)},21288:function(e,n,t){var a=t(2053),r=t(75271),o=t(22800),i=t(48881),c=function(e,n){return r.createElement(i.Z,(0,a.Z)({},e,{ref:n,icon:o.Z}))},l=r.forwardRef(c);n.Z=l},36199:function(e,n,t){t.r(n);var a=t(15558),r=t.n(a),o=t(26068),i=t.n(o),c=t(48305),l=t.n(c),s=t(67825),d=t.n(s),u=t(72317),f=t(75271),m=t(50691),p=t(9171),h=t(63505),v=t(45520),g=t(61508),Z=t(93481),x=t(10948),w=t(16314),y=t(3475),C=t(28423),b=t(88939),k=t(12363),N=t(18708),P=t(78637),j=t(4690),E=t(42208),I=t(52676),B=["index","moveRow","className","style"],R=m.Z.Text,D="DragableBodyRow",O=function(e){var n=e.index,t=e.moveRow,a=e.className,r=e.style,o=d()(e,B),c=(0,f.useRef)(),s=(0,k.L)({accept:D,collect:function(e){var t=(e.getItem()||{}).index;return t===n?{}:{isOver:e.isOver(),dropClassName:t<n?" drop-over-downward":" drop-over-upward"}},drop:function(e){t(e.index,n)}}),u=l()(s,2),m=u[0],p=m.isOver,h=m.dropClassName,v=u[1],g=(0,N.c)({type:D,item:{index:n},collect:function(e){return{isDragging:e.isDragging()}}});return v((0,l()(g,2)[1])(c)),(0,I.jsx)("tr",i()({ref:c,className:"".concat(a).concat(p?h:""),style:i()({cursor:"move"},r)},o))};n.default=function(e){var n=e.cronViews,t=e.handleCancel,a=e.visible,o=e.cronViewChange,c=function(e){return k.filter((function(e){return!e.isDisabled})).length<=1&&!e.isDisabled},s=[{title:u.ZP.get("名称"),dataIndex:"name",key:"name",render:function(e){return"全部任务"===e?u.ZP.get("全部任务"):e}},{title:u.ZP.get("类型"),dataIndex:"type",key:"type",render:function(e){return 1===e?u.ZP.get("系统"):u.ZP.get("个人")}},{title:u.ZP.get("显示"),key:"isDisabled",dataIndex:"isDisabled",width:100,render:function(e,n,t){return(0,I.jsx)(p.Z,{disabled:c(n),checked:!n.isDisabled,onChange:function(e){return M(e,n,t)}})}},{title:u.ZP.get("操作"),key:"action",width:100,render:function(e,n,t){return 1!==n.type?(0,I.jsxs)(h.Z,{size:"middle",children:[(0,I.jsx)("a",{onClick:function(){return T(n,t)},children:(0,I.jsx)(C.Z,{})}),!c(n)&&(0,I.jsx)("a",{onClick:function(){return H(n,t)},children:(0,I.jsx)(b.Z,{})})]}):"-"}}],d=(0,f.useState)([]),m=l()(d,2),k=m[0],N=m[1],B=(0,f.useState)(!1),D=l()(B,2),S=D[0],q=D[1],z=(0,f.useState)(null),_=l()(z,2),A=_[0],K=_[1],T=function(e,n){K(e),q(!0)},H=function(e,n){v.Z.confirm({title:u.ZP.get("确认删除"),content:(0,I.jsxs)(I.Fragment,{children:[u.ZP.get("确认删除视图")," ",(0,I.jsx)(R,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",u.ZP.get("吗")]}),onOk:function(){w.W.delete("".concat(y.Z.apiPrefix,"crons/views"),{data:[e.id]}).then((function(e){var n=e.code;e.data;200===n&&(g.ZP.success(u.ZP.get("删除成功")),o())}))}})},M=function(e,n,t){w.W.put("".concat(y.Z.apiPrefix,"crons/views/").concat(e?"enable":"disable"),[n.id]).then((function(n){var a=n.code;n.data;if(200===a){var c=r()(k);c.splice(t,1,i()(i()({},k[t]),{},{isDisabled:!e})),N(c),o()}}))},V={body:{row:O}},W=(0,f.useCallback)((function(e,n){if(e!==n){var t=k[e];w.W.put("".concat(y.Z.apiPrefix,"crons/views/move"),{fromIndex:e,toIndex:n,id:t.id}).then((function(a){var c=a.code,l=a.data;if(200===c){var s=r()(k);s.splice(e,1),s.splice(n,0,i()(i()({},t),l)),N(s),o()}}))}}),[k]);return(0,f.useEffect)((function(){N(n)}),[n]),(0,I.jsxs)(v.Z,{title:u.ZP.get("视图管理"),open:a,centered:!0,width:620,onCancel:function(){return t()},className:"view-manage-modal",forceRender:!0,footer:!1,maskClosable:!1,children:[(0,I.jsx)(h.Z,{style:{display:"flex",justifyContent:"flex-end",marginBottom:10},children:(0,I.jsx)(Z.Z,{type:"primary",onClick:function(){K(null),q(!0)},children:u.ZP.get("创建视图")},"2")}),(0,I.jsx)(P.W,{backend:j.PD,children:(0,I.jsx)(x.Z,{bordered:!0,columns:s,pagination:!1,dataSource:k,rowKey:"id",size:"middle",style:{marginBottom:20},components:V,onRow:function(e,n){return{index:n,moveRow:W}}})}),(0,I.jsx)(E.default,{view:A,visible:S,handleCancel:function(e){q(!1),o(e)}})]})}},9171:function(e,n,t){t.d(n,{Z:function(){return y}});var a=t(2053),r=t(57904),o=t(24727),i=t(82187),c=t.n(i),l=t(99459),s=t(53162),d=t(75271),u=t(6522),f=t(1260),m=d.forwardRef((function(e,n){var t,a=e.prefixCls,o=void 0===a?"rc-switch":a,i=e.className,m=e.checked,p=e.defaultChecked,h=e.disabled,v=e.loadingIcon,g=e.checkedChildren,Z=e.unCheckedChildren,x=e.onClick,w=e.onChange,y=e.onKeyDown,C=(0,s.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),b=(0,u.Z)(!1,{value:m,defaultValue:p}),k=(0,l.Z)(b,2),N=k[0],P=k[1];function j(e,n){var t=N;return h||(P(t=e),null==w||w(t,n)),t}var E=c()(o,i,(t={},(0,r.Z)(t,"".concat(o,"-checked"),N),(0,r.Z)(t,"".concat(o,"-disabled"),h),t));return d.createElement("button",Object.assign({},C,{type:"button",role:"switch","aria-checked":N,disabled:h,className:E,ref:n,onKeyDown:function(e){e.which===f.Z.LEFT?j(!1,e):e.which===f.Z.RIGHT&&j(!0,e),null==y||y(e)},onClick:function(e){var n=j(!N,e);null==x||x(n,e)}}),v,d.createElement("span",{className:"".concat(o,"-inner")},N?g:Z))}));m.displayName="Switch";var p=m,h=t(96820),v=t(30107),g=t(38470),Z=t(74244),x=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)n.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]])}return t},w=d.forwardRef((function(e,n){var t=e.prefixCls,i=e.size,l=e.disabled,s=e.loading,u=e.className,f=void 0===u?"":u,m=x(e,["prefixCls","size","disabled","loading","className"]),w=d.useContext(h.E_),y=w.getPrefixCls,C=w.direction,b=d.useContext(g.Z),k=d.useContext(v.Z),N=(null!=l?l:k)||s,P=y("switch",t),j=d.createElement("div",{className:"".concat(P,"-handle")},s&&d.createElement(o.Z,{className:"".concat(P,"-loading-icon")})),E=c()((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(P,"-small"),"small"===(i||b)),"".concat(P,"-loading"),s),"".concat(P,"-rtl"),"rtl"===C),f);return d.createElement(Z.Z,{insertExtraNode:!0},d.createElement(p,(0,a.Z)({},m,{prefixCls:P,className:E,disabled:N,ref:n,loadingIcon:j})))}));w.__ANT_SWITCH=!0;var y=w}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[9914],{44224:function(e,n,t){var i=(0,t(19919).Z)({scriptUrl:["//at.alicdn.com/t/c/font_3354854_lc939gab1iq.js"]});n.Z=i},43566:function(e,n,t){t.r(n),t.d(n,{default:function(){return N}});var i=t(15558),a=t.n(i),r=t(48305),c=t.n(r),l=t(26068),s=t.n(l),o=t(72317),u=t(75271),d=t(50691),f=t(17082),p=t(63505),Z=t(47667),x=t(59816),g=t(45520),h=t(93481),m=t(10948),v=t(46035),j=t(42483),P=t(44084),y=t(86935),k=t(15631),S=t(37559),b=t(70564),w=t(36053),C=t(88939),D=t(14946),I=t(3475),F=t(47508),q=t(16314),W=t(77831),A=t(78637),B=t(4690),O=t(8826),Y=t(98783),E=t(16483),T=t.n(E),_=t(65814),z=t(57113),L=t(44224),R=t(30502),H=t(52676),V=d.Z.Text,M=f.Z.Search,K={0:{icon:(0,H.jsx)(j.Z,{spin:!0}),color:"processing"},1:{icon:(0,H.jsx)(P.Z,{}),color:"success"},2:{icon:(0,H.jsx)(y.Z,{}),color:"error"},3:{icon:(0,H.jsx)(j.Z,{spin:!0}),color:"processing"},4:{icon:(0,H.jsx)(P.Z,{}),color:"success"},5:{icon:(0,H.jsx)(y.Z,{}),color:"error"},6:{icon:(0,H.jsx)(k.Z,{}),color:"default"},7:{icon:(0,H.jsx)(S.Z,{}),color:"default"}},N=function(){var e=(0,Y.useOutletContext)(),n=e.headerStyle,t=e.isPhone,i=[{title:o.ZP.get("序号"),width:90,render:function(e,n,t){return(0,H.jsxs)("span",{style:{cursor:"text"},children:[t+1," "]})}},{title:o.ZP.get("名称"),dataIndex:"name",width:180,key:"name"},{title:o.ZP.get("状态"),key:"status",width:120,dataIndex:"status",filters:[{text:o.ZP.get("队列中"),value:z.DependenceStatus.queued},{text:o.ZP.get("安装中"),value:z.DependenceStatus.installing},{text:o.ZP.get("已安装"),value:z.DependenceStatus.installed},{text:o.ZP.get("安装失败"),value:z.DependenceStatus.installFailed},{text:o.ZP.get("删除中"),value:z.DependenceStatus.removing},{text:o.ZP.get("已删除"),value:z.DependenceStatus.removed},{text:o.ZP.get("删除失败"),value:z.DependenceStatus.removeFailed},{text:o.ZP.get("已取消"),value:z.DependenceStatus.cancelled}],render:function(e,n,t){var i,a;return(0,H.jsx)(p.Z,{size:"middle",style:{cursor:"text"},children:(0,H.jsx)(Z.Z,{color:null===(i=K[n.status])||void 0===i?void 0:i.color,icon:null===(a=K[n.status])||void 0===a?void 0:a.icon,style:{marginRight:0},children:o.ZP.get(z.Status[n.status])})})}},{title:o.ZP.get("备注"),dataIndex:"remark",width:100,key:"remark"},{title:o.ZP.get("更新时间"),key:"updatedAt",dataIndex:"updatedAt",width:150,render:function(e){return(0,H.jsx)("span",{children:T()(e).format("YYYY-MM-DD HH:mm:ss")})}},{title:o.ZP.get("创建时间"),key:"createdAt",dataIndex:"createdAt",width:150,render:function(e){return(0,H.jsx)("span",{children:T()(e).format("YYYY-MM-DD HH:mm:ss")})}},{title:o.ZP.get("操作"),key:"action",width:140,render:function(e,n,i){var a=!t;return(0,H.jsxs)(p.Z,{size:"middle",children:[![z.Status.队列中,z.Status.已取消].includes(n.status)&&(0,H.jsx)(x.Z,{title:a?o.ZP.get("日志"):"",children:(0,H.jsx)("a",{onClick:function(){ue(s()(s()({},n),{},{timestamp:Date.now()}))},children:(0,H.jsx)(b.Z,{})})}),[z.Status.队列中,z.Status.安装中,z.Status.删除中].includes(n.status)?(0,H.jsx)(x.Z,{title:a?o.ZP.get("取消安装"):"",children:(0,H.jsx)("a",{onClick:function(){return Ce(n)},children:(0,H.jsx)(L.Z,{type:"ql-icon-quxiaoanzhuang"})})}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(x.Z,{title:a?o.ZP.get("重新安装"):"",children:(0,H.jsx)("a",{onClick:function(){return we(n,i)},children:(0,H.jsx)(w.Z,{})})}),z.Status.已安装===n.status&&(0,H.jsx)(x.Z,{title:a?o.ZP.get("删除"):"",children:(0,H.jsx)("a",{onClick:function(){return be(n,i)},children:(0,H.jsx)(C.Z,{})})}),(0,H.jsx)(x.Z,{title:a?o.ZP.get("强制删除"):"",children:(0,H.jsx)("a",{onClick:function(){return be(n,i,!0)},children:(0,H.jsx)(D.Z,{})})})]})]})}}],r=(0,u.useState)([]),l=c()(r,2),d=l[0],f=l[1],j=(0,u.useState)(!0),P=c()(j,2),y=P[0],k=P[1],S=(0,u.useState)(!1),E=c()(S,2),N=E[0],G=E[1],J=(0,u.useState)(),U=c()(J,2),Q=U[0],X=U[1],$=(0,u.useState)([]),ee=c()($,2),ne=ee[0],te=ee[1],ie=(0,u.useState)(""),ae=c()(ie,2),re=ae[0],ce=ae[1],le=(0,u.useState)(),se=c()(le,2),oe=se[0],ue=se[1],de=(0,u.useState)(!1),fe=c()(de,2),pe=fe[0],Ze=fe[1],xe=(0,u.useState)("nodejs"),ge=c()(xe,2),he=ge[0],me=ge[1],ve=(0,u.useRef)(null),je=(0,u.useState)(0),Pe=c()(je,2),ye=Pe[0],ke=Pe[1];(0,R.Z)(ve,(function(e){var n,t=null===(n=e.target)||void 0===n||null===(n=n.parentElement)||void 0===n||null===(n=n.parentElement)||void 0===n||null===(n=n.parentElement)||void 0===n?void 0:n.offsetHeight,i=113;ne.length&&(i+=53),t&&ye!==t-i&&ke(t-i)}));var Se=function(e){k(!0),q.W.get("".concat(I.Z.apiPrefix,"dependencies?searchValue=").concat(re,"&type=").concat(he,"&status=").concat(e||"")).then((function(e){var n=e.code,t=e.data;200===n&&f(t)})).finally((function(){return k(!1)}))},be=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];g.Z.confirm({title:o.ZP.get("确认删除"),content:(0,H.jsxs)(H.Fragment,{children:[o.ZP.get("确认删除依赖")," ",(0,H.jsx)(V,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",o.ZP.get("吗")]}),onOk:function(){q.W.delete("".concat(I.Z.apiPrefix,"dependencies").concat(t?"/force":""),{data:[e.id]}).then((function(e){var n=e.code,i=e.data;if(200===n&&t){var r=d.findIndex((function(e){return e.id===i[0].id}));if(-1!==r){var c=a()(d);c.splice(r,1),f(c)}}}))}})},we=function(e,n){g.Z.confirm({title:o.ZP.get("确认重新安装"),content:(0,H.jsxs)(H.Fragment,{children:[o.ZP.get("确认重新安装")," ",(0,H.jsx)(V,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",o.ZP.get("吗")]}),onOk:function(){q.W.put("".concat(I.Z.apiPrefix,"dependencies/reinstall"),[e.id]).then((function(e){var n=e.code,t=e.data;200===n&&De(t[0])}))}})},Ce=function(e){g.Z.confirm({title:o.ZP.get("确认取消安装"),content:(0,H.jsxs)(H.Fragment,{children:[o.ZP.get("确认取消安装")," ",(0,H.jsx)(V,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",o.ZP.get("吗")]}),onOk:function(){q.W.put("".concat(I.Z.apiPrefix,"dependencies/cancel"),[e.id]).then((function(){Se()}))}})},De=function(e){var n=a()(d);if(Array.isArray(e))n.unshift.apply(n,a()(e));else{var t=d.findIndex((function(n){return n.id===e.id}));-1!==t&&n.splice(t,1,s()({},e))}f(n)},Ie={selectedRowKeys:ne,onChange:function(e){te(e)}},Fe=function(e){var n=e?"/force":"";g.Z.confirm({title:o.ZP.get("确认删除"),content:(0,H.jsx)(H.Fragment,{children:o.ZP.get("确认删除选中的依赖吗")}),onOk:function(){q.W.delete("".concat(I.Z.apiPrefix,"dependencies").concat(n),{data:ne}).then((function(e){var n=e.code;e.data;200===n&&(te([]),Se())}))}})};(0,u.useEffect)((function(){Se()}),[re,he]),(0,u.useEffect)((function(){oe&&(localStorage.setItem("logDependence",oe.id),Ze(!0))}),[oe]);var qe=(0,u.useCallback)((function(e){var n=e.message,t=e.references,i=void 0;n.includes("开始时间")&&t.length>0&&(i=n.includes("安装")?z.Status.安装中:z.Status.删除中),n.includes("结束时间")&&t.length>0&&(i=n.includes("安装")?n.includes("成功")?z.Status.已安装:z.Status.安装失败:n.includes("成功")?z.Status.已删除:z.Status.删除失败)===z.Status.已删除?setTimeout((function(){f((function(e){for(var n=a()(e),i=function(i){var a=e.findIndex((function(e){return e.id===t[i]}));-1!==a&&n.splice(a,1)},r=0;r<t.length;r++)i(r);return n}))}),300):"number"==typeof i&&f((function(e){for(var n=a()(e),r=function(a){var r=e.findIndex((function(e){return e.id===t[a]}));-1!==r&&n.splice(r,1,s()(s()({},e[r]),{},{status:i}))},c=0;c<t.length;c++)r(c);return n}))}),[]);(0,u.useEffect)((function(){var e=_.Z.getInstance();return e.subscribe("installDependence",qe),e.subscribe("uninstallDependence",qe),function(){e.unsubscribe("installDependence",qe),e.unsubscribe("uninstallDependence",qe)}}),[]);var We=(0,H.jsxs)("div",{ref:ve,children:[ne.length>0&&(0,H.jsxs)("div",{style:{marginBottom:16},children:[(0,H.jsx)(h.Z,{type:"primary",style:{marginBottom:5,marginLeft:8},onClick:function(){g.Z.confirm({title:o.ZP.get("确认重新安装"),content:(0,H.jsx)(H.Fragment,{children:o.ZP.get("确认重新安装选中的依赖吗")}),onOk:function(){q.W.put("".concat(I.Z.apiPrefix,"dependencies/reinstall"),ne).then((function(e){var n=e.code;e.data,200===n&&(te([]),Se())}))}})},children:o.ZP.get("批量安装")}),(0,H.jsx)(h.Z,{type:"primary",style:{marginBottom:5,marginLeft:8},onClick:function(){return Fe(!1)},children:o.ZP.get("批量删除")}),(0,H.jsx)(h.Z,{type:"primary",style:{marginBottom:5,marginLeft:8},onClick:function(){return Fe(!0)},children:o.ZP.get("批量强制删除")}),(0,H.jsxs)("span",{style:{marginLeft:8},children:[o.ZP.get("已选择"),(0,H.jsx)("a",{children:null==ne?void 0:ne.length}),o.ZP.get("项")]})]}),(0,H.jsx)(A.W,{backend:B.PD,children:(0,H.jsx)(m.Z,{columns:i,rowSelection:Ie,pagination:!1,dataSource:d,rowKey:"id",size:"middle",scroll:{x:768,y:ye},loading:y,onChange:function(e,n){Se(null==n?void 0:n.status)}})})]});return(0,H.jsxs)(F.ZP,{className:"ql-container-wrapper dependence-wrapper ql-container-wrapper-has-tab",title:o.ZP.get("依赖管理"),extra:[(0,H.jsx)(M,{placeholder:o.ZP.get("请输入名称"),style:{width:"auto"},enterButton:!0,loading:y,onSearch:function(e){ce(e.trim())}}),(0,H.jsx)(h.Z,{type:"primary",onClick:function(){return X(null),void G(!0)},children:o.ZP.get("创建依赖")},"2")],header:{style:n},children:[(0,H.jsx)(v.Z,{defaultActiveKey:"nodejs",size:"small",tabPosition:"top",destroyInactiveTabPane:!0,onChange:function(e){te([]),me(e)},items:[{key:"nodejs",label:"NodeJs"},{key:"python3",label:"Python3"},{key:"linux",label:"Linux"}]}),We,(0,H.jsx)(W.default,{visible:N,handleCancel:function(e){G(!1),e&&De(e)},dependence:Q,defaultType:he}),oe&&(0,H.jsx)(O.default,{visible:pe,handleCancel:function(e){if(Ze(!1),e){var n=d.findIndex((function(e){return e.id===oe.id})),t=a()(d);-1!==n&&(t.splice(n,1),f(t))}else a()(d).map((function(e){return e.id})).includes(oe.id)&&function(e){q.W.get("".concat(I.Z.apiPrefix,"dependencies/").concat(e.id)).then((function(n){var t=n.code,i=n.data;if(200===t){var r=d.findIndex((function(n){return n.id===e.id})),c=a()(d);-1!==r&&(c.splice(r,1,s()(s()({},e),i)),f(c))}})).finally((function(){return k(!1)}))}(oe)},dependence:oe})]})}},77831:function(e,n,t){t.r(n);var i=t(90228),a=t.n(i),r=t(26068),c=t.n(r),l=t(87999),s=t.n(l),o=t(48305),u=t.n(o),d=t(72317),f=t(75271),p=t(35181),Z=t(72338),x=t(45520),g=t(94747),h=t(17082),m=t(16314),v=t(3475),j=t(52676),P=p.Z.Option,y=function(e){return e[e.nodejs=0]="nodejs",e[e.python3=1]="python3",e[e.linux=2]="linux",e}(y||{});n.default=function(e){var n=e.dependence,t=e.handleCancel,i=e.visible,r=e.defaultType,l=Z.Z.useForm(),o=u()(l,1)[0],k=(0,f.useState)(!1),S=u()(k,2),b=S[0],w=S[1],C=function(){var e=s()(a()().mark((function e(i){var r,l,s,o,u,d,f,p,Z,x;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),r=i.name,l=i.split,s=i.type,o=i.remark,u=n?"put":"post",n?d=c()(c()({},i),{},{id:n.id}):"1"===l?(f=r.includes("&")?"&":"\n",d=r.split(f).map((function(e){return{name:e,type:s,remark:o}}))):d=[{name:r,type:s,remark:o}],e.prev=4,e.next=7,m.W[u]("".concat(v.Z.apiPrefix,"dependencies"),d);case 7:p=e.sent,Z=p.code,x=p.data,200===Z&&t(x),w(!1),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),w(!1);case 17:case"end":return e.stop()}}),e,null,[[4,14]])})));return function(n){return e.apply(this,arguments)}}();return(0,f.useEffect)((function(){o.resetFields()}),[n,i]),(0,j.jsx)(x.Z,{title:n?d.ZP.get("编辑依赖"):d.ZP.get("创建依赖"),open:i,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){o.validateFields().then((function(e){C(e)})).catch((function(e){console.log("Validate Failed:",e)}))},onCancel:function(){return t()},confirmLoading:b,children:(0,j.jsxs)(Z.Z,{form:o,layout:"vertical",name:"dependence_modal",initialValues:n,children:[(0,j.jsx)(Z.Z.Item,{name:"type",label:d.ZP.get("依赖类型"),initialValue:y[r],children:(0,j.jsx)(p.Z,{children:v.Z.dependenceTypes.map((function(e,n){return(0,j.jsx)(P,{value:n,children:e},n)}))})}),!n&&(0,j.jsx)(Z.Z.Item,{name:"split",label:d.ZP.get("自动拆分"),initialValue:"0",tooltip:d.ZP.get("多个依赖是否换行分割"),children:(0,j.jsxs)(g.ZP.Group,{children:[(0,j.jsx)(g.ZP,{value:"1",children:d.ZP.get("是")}),(0,j.jsx)(g.ZP,{value:"0",children:d.ZP.get("否")})]})}),(0,j.jsx)(Z.Z.Item,{name:"name",label:d.ZP.get("名称"),rules:[{required:!0,message:d.ZP.get("请输入依赖名称,支持指定版本"),whitespace:!0}],children:(0,j.jsx)(h.Z.TextArea,{rows:4,autoSize:{minRows:1,maxRows:5},placeholder:d.ZP.get("请输入依赖名称")})}),(0,j.jsx)(Z.Z.Item,{name:"remark",label:d.ZP.get("备注"),children:(0,j.jsx)(h.Z,{placeholder:d.ZP.get("请输入备注")})})]})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[8247],{72439:function(e,t,n){var r=n(48305),a=n.n(r),i=n(75271),s=n(30502),c=n(48916);t.Z=function(e,t){var n=(0,i.useState)(0),r=a()(n,2),l=r[0],o=r[1];return(0,s.Z)(e,(function(e){var n=e.target;n.classList.contains("ant-table-wrapper")||(n=e.target.querySelector(".ant-table-wrapper")),o((0,c.W9)({extraHeight:t,target:n}))})),l}},55416:function(e,t,n){n.r(t);var r=n(90228),a=n.n(r),i=n(87999),s=n.n(i),c=n(48305),l=n.n(c),o=n(72317),u=n(75271),d=n(72338),f=n(61508),p=n(45520),m=n(17082),Z=n(16314),g=n(3475),x=n(52676);t.default=function(e){var t=e.ids,n=e.handleCancel,r=e.visible,i=d.Z.useForm(),c=l()(i,1)[0],h=(0,u.useState)(!1),v=l()(h,2),P=v[0],j=v[1],y=function(){var e=s()(a()().mark((function e(r){var i,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),e.prev=1,e.next=4,Z.W.put("".concat(g.Z.apiPrefix,"envs/name"),{ids:t,name:r.name});case 4:i=e.sent,s=i.code,i.data,200===s&&(f.ZP.success(o.ZP.get("更新环境变量名称成功")),n()),j(!1),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),j(!1);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(t){return e.apply(this,arguments)}}();return(0,u.useEffect)((function(){c.resetFields()}),[t,r]),(0,x.jsx)(p.Z,{title:o.ZP.get("修改环境变量名称"),open:r,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){c.validateFields().then((function(e){y(e)})).catch((function(e){console.log("Validate Failed:",e)}))},onCancel:function(){return n()},confirmLoading:P,children:(0,x.jsx)(d.Z,{form:c,layout:"vertical",name:"edit_name_modal",children:(0,x.jsx)(d.Z.Item,{name:"name",rules:[{required:!0,message:o.ZP.get("请输入新的环境变量名称")}],children:(0,x.jsx)(m.Z,{placeholder:o.ZP.get("请输入新的环境变量名称")})})})})}},14532:function(e,t,n){n.r(t),n.d(t,{default:function(){return ce}});var r=n(90228),a=n.n(r),i=n(87999),s=n.n(i),c=n(67825),l=n.n(c),o=n(26068),u=n.n(o),d=n(15558),f=n.n(d),p=n(48305),m=n.n(p),Z=n(72317),g=n(75271),x=n(50691),h=n(17082),v=n(59816),P=n(63505),j=n(47667),y=n(45520),w=n(61508),k=n(6367),b=n(93481),C=n(10948),S=n(28423),L=n(44084),R=n(1704),I=n(88939),F=n(79231),O=n(3475),W=n(47508),D=n(16314),N=n(51396),_=n(55416),B=n(12363),q=n(18708),T=n(78637),z=n(4690),A=n(48916),E=n(98783),V=n(72439),Y=n(88629),H=n(13868),K=n(58226),M=n(52676),G=x.Z.Link,J=function(e){var t=e.text,n=(0,g.useState)(!1),r=m()(n,2),a=r[0],i=r[1],s=(0,g.useRef)(),c=function(){window.clearTimeout(s.current)};return(0,M.jsx)(G,{onClick:function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),i(!0),c(),s.current=window.setTimeout((function(){i(!1)}),3e3)},style:{marginLeft:1},children:(0,M.jsx)(K.CopyToClipboard,{text:t,children:(0,M.jsx)(v.Z,{title:a?Z.ZP.get("复制成功"):Z.ZP.get("复制"),children:a?(0,M.jsx)(Y.Z,{}):(0,M.jsx)(H.Z,{})},"copy")})})},U=n(19610),$=n(16483),Q=n.n($),X=["index","moveRow","className","style"],ee=x.Z.Paragraph,te=h.Z.Search,ne=function(e){return e[e["已启用"]=0]="已启用",e[e["已禁用"]=1]="已禁用",e}(ne||{}),re=function(e){return e[e.success=0]="success",e[e.error=1]="error",e}(re||{}),ae=function(e){return e[e["启用"]=0]="启用",e[e["禁用"]=1]="禁用",e}(ae||{}),ie=function(e){return e[e.enable=0]="enable",e[e.disable=1]="disable",e}(ie||{}),se="DragableBodyRow",ce=function(){var e=(0,E.useOutletContext)(),t=e.headerStyle,n=e.isPhone,r=(e.theme,[{title:Z.ZP.get("序号"),width:80,render:function(e,t,n){return(0,M.jsxs)("span",{style:{cursor:"text"},children:[n+1," "]})}},{title:Z.ZP.get("名称"),dataIndex:"name",key:"name",sorter:function(e,t){return e.name.localeCompare(t.name)},render:function(e,t){return(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,M.jsx)(v.Z,{title:e,placement:"topLeft",children:(0,M.jsx)("div",{className:"text-ellipsis",children:e})}),(0,M.jsx)(J,{text:e})]})}},{title:Z.ZP.get("值"),dataIndex:"value",key:"value",width:"35%",render:function(e,t){return(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,M.jsx)(v.Z,{title:e,placement:"topLeft",children:(0,M.jsx)("div",{className:"text-ellipsis",children:e})}),(0,M.jsx)(J,{text:e})]})}},{title:Z.ZP.get("备注"),dataIndex:"remarks",key:"remarks",render:function(e,t){return(0,M.jsx)(v.Z,{title:e,placement:"topLeft",children:(0,M.jsx)("div",{className:"text-ellipsis",children:e})})}},{title:Z.ZP.get("更新时间"),dataIndex:"timestamp",key:"timestamp",width:165,ellipsis:{showTitle:!1},sorter:{compare:function(e,t){return new Date(e.updatedAt||e.timestamp).getTime()-new Date(t.updatedAt||t.timestamp).getTime()}},render:function(e,t){var n=Q()(t.updatedAt||t.timestamp).format("YYYY-MM-DD HH:mm:ss");return(0,M.jsx)(v.Z,{placement:"topLeft",title:n,trigger:["hover","click"],children:(0,M.jsx)("span",{children:n})})}},{title:Z.ZP.get("状态"),key:"status",dataIndex:"status",width:100,filters:[{text:Z.ZP.get("已启用"),value:0},{text:Z.ZP.get("已禁用"),value:1}],onFilter:function(e,t){return t.status===e},render:function(e,t,n){return(0,M.jsx)(P.Z,{size:"middle",style:{cursor:"text"},children:(0,M.jsx)(j.Z,{color:re[t.status],style:{marginRight:0},children:Z.ZP.get(ne[t.status])})})}},{title:Z.ZP.get("操作"),key:"action",width:120,render:function(e,t,r){var a=!n;return(0,M.jsxs)(P.Z,{size:"middle",children:[(0,M.jsx)(v.Z,{title:a?Z.ZP.get("编辑"):"",children:(0,M.jsx)("a",{onClick:function(){return Fe(t,r)},children:(0,M.jsx)(S.Z,{})})}),(0,M.jsx)(v.Z,{title:a?t.status===ne.已禁用?Z.ZP.get("启用"):Z.ZP.get("禁用"):"",children:(0,M.jsx)("a",{onClick:function(){return Ie(t,r)},children:t.status===ne.已禁用?(0,M.jsx)(L.Z,{}):(0,M.jsx)(R.Z,{})})}),(0,M.jsx)(v.Z,{title:a?Z.ZP.get("删除"):"",children:(0,M.jsx)("a",{onClick:function(){return Oe(t,r)},children:(0,M.jsx)(I.Z,{})})})]})}}]),i=(0,g.useState)([]),c=m()(i,2),o=c[0],d=c[1],p=(0,g.useState)(!0),x=m()(p,2),h=x[0],Y=x[1],H=(0,g.useState)(!1),K=m()(H,2),G=K[0],$=K[1],ce=(0,g.useState)(!1),le=m()(ce,2),oe=le[0],ue=le[1],de=(0,g.useState)(),fe=m()(de,2),pe=fe[0],me=fe[1],Ze=(0,g.useState)([]),ge=m()(Ze,2),xe=ge[0],he=ge[1],ve=(0,g.useState)(""),Pe=m()(ve,2),je=Pe[0],ye=Pe[1],we=(0,g.useState)(!1),ke=m()(we,2),be=ke[0],Ce=ke[1],Se=(0,g.useRef)(null),Le=(0,V.Z)(Se,59),Re=function(){Y(!0),D.W.get("".concat(O.Z.apiPrefix,"envs?searchValue=").concat(je)).then((function(e){var t=e.code,n=e.data;200===t&&d(n)})).finally((function(){return Y(!1)}))},Ie=function(e,t){y.Z.confirm({title:"确认".concat(e.status===ne.已禁用?Z.ZP.get("启用"):Z.ZP.get("禁用")),content:(0,M.jsxs)(M.Fragment,{children:[Z.ZP.get("确认"),e.status===ne.已禁用?Z.ZP.get("启用"):Z.ZP.get("禁用"),"Env"," ",(0,M.jsx)(ee,{style:{wordBreak:"break-all",display:"inline"},ellipsis:{rows:6,expandable:!0},type:"warning",copyable:!0,children:e.value})," ",Z.ZP.get("吗")]}),onOk:function(){D.W.put("".concat(O.Z.apiPrefix,"envs/").concat(e.status===ne.已禁用?"enable":"disable"),[e.id]).then((function(n){var r=n.code;n.data;if(200===r){w.ZP.success("".concat(e.status===ne.已禁用?Z.ZP.get("启用"):Z.ZP.get("禁用")).concat(Z.ZP.get("成功")));var a=e.status===ne.已禁用?ne.已启用:ne.已禁用,i=f()(o);i.splice(t,1,u()(u()({},e),{},{status:a})),d(i)}}))}})},Fe=function(e,t){me(e),$(!0)},Oe=function(e,t){y.Z.confirm({title:Z.ZP.get("确认删除"),content:(0,M.jsxs)(M.Fragment,{children:[Z.ZP.get("确认删除变量")," ",(0,M.jsxs)(ee,{style:{wordBreak:"break-all",display:"inline"},ellipsis:{rows:6,expandable:!0},type:"warning",copyable:!0,children:[e.name,": ",e.value]})," ",Z.ZP.get("吗")]}),onOk:function(){D.W.delete("".concat(O.Z.apiPrefix,"envs"),{data:[e.id]}).then((function(e){var n=e.code;e.data;if(200===n){w.ZP.success(Z.ZP.get("删除成功"));var r=f()(o);r.splice(t,1),d(r)}}))}})},We=(0,U.u)((function(){return{scroll:{y:Le}}}),[Le]),De=m()(We,2),Ne=De[0],_e=De[1],Be=g.forwardRef((function(e,t){var n=e.index,r=e.moveRow,a=e.className,i=e.style,s=l()(e,X),c=(0,B.L)({accept:se,collect:function(e){var t=(e.getItem()||{}).index;return t===n?{}:{isOver:e.isOver(),dropClassName:t<n?" drop-over-downward":" drop-over-upward"}},drop:function(e){r(e.index,n)}}),o=m()(c,2),d=o[0],f=d.isOver,p=d.dropClassName,Z=o[1],x=(0,q.c)({type:se,item:{index:n},collect:function(e){return{isDragging:e.isDragging()}}}),h=m()(x,2)[1];return(0,g.useEffect)((function(){Z(h(t))}),[t]),(0,M.jsx)("tr",u()({ref:t,className:"".concat(a).concat(f?p:""),style:u()({cursor:"move"},i)},s))}));(0,g.useEffect)((function(){return _e({body:{row:Be}})}),[]);var qe,Te=(0,g.useCallback)((function(e,t){if(e!==t){var n=o[e];D.W.put("".concat(O.Z.apiPrefix,"envs/").concat(n.id,"/move"),{fromIndex:e,toIndex:t}).then((function(r){var a=r.code,i=r.data;if(200===a){var s=f()(o);s.splice(e,1),s.splice(t,0,u()(u()({},n),i)),d(f()(s))}}))}}),[o]),ze={selectedRowKeys:xe,onChange:function(e){he(e)}},Ae=function(e){y.Z.confirm({title:"确认".concat(ae[e]),content:(0,M.jsxs)(M.Fragment,{children:[Z.ZP.get("确认"),ae[e],Z.ZP.get("选中的变量吗")]}),onOk:function(){D.W.put("".concat(O.Z.apiPrefix,"envs/").concat(ie[e]),xe).then((function(e){var t=e.code;e.data;200===t&&Re()}))}})},Ee={accept:"application/json",beforeUpload:(qe=s()(a()().mark((function e(t){var n,r,i,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).append("env",t),Ce(!0),e.prev=3,e.next=6,D.W.post("".concat(O.Z.apiPrefix,"envs/upload"),n);case 6:r=e.sent,i=r.code,s=r.data,200===i&&(w.ZP.success("成功上传".concat(s.length,"个环境变量")),Re()),Ce(!1),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),Ce(!1);case 16:return e.abrupt("return",!1);case 17:case"end":return e.stop()}}),e,null,[[3,13]])}))),function(e){return qe.apply(this,arguments)}),fileList:[]};return(0,g.useEffect)((function(){Re()}),[je]),(0,M.jsxs)(W.ZP,{className:"ql-container-wrapper env-wrapper",title:Z.ZP.get("环境变量"),extra:[(0,M.jsx)(te,{placeholder:Z.ZP.get("请输入名称/值/备注"),style:{width:"auto"},enterButton:!0,loading:h,onSearch:function(e){ye(e.trim())}}),(0,M.jsx)(k.Z,u()(u()({},Ee),{},{children:(0,M.jsx)(b.Z,{type:"primary",icon:(0,M.jsx)(F.Z,{}),loading:be,children:Z.ZP.get("导入")})})),(0,M.jsx)(b.Z,{type:"primary",onClick:function(){return me(null),void $(!0)},children:Z.ZP.get("创建变量")},"2")],header:{style:t},children:[(0,M.jsxs)("div",{ref:Se,children:[xe.length>0&&(0,M.jsxs)("div",{style:{marginBottom:16},children:[(0,M.jsx)(b.Z,{type:"primary",style:{marginBottom:5},onClick:function(){ue(!0)},children:Z.ZP.get("批量修改变量名称")}),(0,M.jsx)(b.Z,{type:"primary",style:{marginBottom:5,marginLeft:8},onClick:function(){y.Z.confirm({title:Z.ZP.get("确认删除"),content:(0,M.jsx)(M.Fragment,{children:Z.ZP.get("确认删除选中的变量吗")}),onOk:function(){D.W.delete("".concat(O.Z.apiPrefix,"envs"),{data:xe}).then((function(e){var t=e.code;e.data;200===t&&(w.ZP.success(Z.ZP.get("批量删除成功")),he([]),Re())}))}})},children:Z.ZP.get("批量删除")}),(0,M.jsx)(b.Z,{type:"primary",onClick:function(){return e=o.filter((function(e){return xe.includes(e.id)})).map((function(e){return{value:e.value,name:e.name,remarks:e.remarks}})),void(0,A.w7)("env.json",JSON.stringify(e));var e},style:{marginLeft:8,marginRight:8},children:Z.ZP.get("批量导出")}),(0,M.jsx)(b.Z,{type:"primary",onClick:function(){return Ae(0)},style:{marginLeft:8,marginBottom:5},children:Z.ZP.get("批量启用")}),(0,M.jsx)(b.Z,{type:"primary",onClick:function(){return Ae(1)},style:{marginLeft:8,marginRight:8},children:Z.ZP.get("批量禁用")}),(0,M.jsxs)("span",{style:{marginLeft:8},children:[Z.ZP.get("已选择"),(0,M.jsx)("a",{children:null==xe?void 0:xe.length}),Z.ZP.get("项")]})]}),(0,M.jsx)(T.W,{backend:z.PD,children:(0,M.jsx)(C.Z,{columns:r,rowSelection:ze,pagination:!1,dataSource:o,rowKey:"id",size:"middle",scroll:{x:1200,y:Le},components:Ne,loading:h,onRow:function(e,t){return{index:t,moveRow:Te}}})})]}),(0,M.jsx)(N.default,{visible:G,handleCancel:function(e){$(!1),Re()},env:pe}),(0,M.jsx)(_.default,{visible:oe,handleCancel:function(e){ue(!1),Re()},ids:xe})]})}},51396:function(e,t,n){n.r(t);var r=n(90228),a=n.n(r),i=n(26068),s=n.n(i),c=n(87999),l=n.n(c),o=n(48305),u=n.n(o),d=n(72317),f=n(75271),p=n(72338),m=n(61508),Z=n(45520),g=n(17082),x=n(94747),h=n(16314),v=n(3475),P=n(52676);t.default=function(e){var t=e.env,n=e.handleCancel,r=e.visible,i=p.Z.useForm(),c=u()(i,1)[0],o=(0,f.useState)(!1),j=u()(o,2),y=j[0],w=j[1],k=function(){var e=l()(a()().mark((function e(r){var i,c,l,o,u,f,p,Z,g,x;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),i=r.value,c=r.split,l=r.name,o=r.remarks,u=t?"put":"post",t?f=s()(s()({},r),{},{id:t.id}):"1"===c?(p=i.includes("&")?"&":"\n",f=i.split(p).map((function(e){return{name:l,value:e,remarks:o}}))):f=[{value:i,name:l,remarks:o}],e.prev=4,e.next=7,h.W[u]("".concat(v.Z.apiPrefix,"envs"),f);case 7:Z=e.sent,g=Z.code,x=Z.data,200===g&&(m.ZP.success(t?d.ZP.get("更新变量成功"):d.ZP.get("创建变量成功")),n(x)),w(!1),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),w(!1);case 17:case"end":return e.stop()}}),e,null,[[4,14]])})));return function(t){return e.apply(this,arguments)}}();return(0,f.useEffect)((function(){c.resetFields()}),[t,r]),(0,P.jsx)(Z.Z,{title:t?d.ZP.get("编辑变量"):d.ZP.get("创建变量"),open:r,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){c.validateFields().then((function(e){k(e)})).catch((function(e){console.log("Validate Failed:",e)}))},onCancel:function(){return n()},confirmLoading:y,children:(0,P.jsxs)(p.Z,{form:c,layout:"vertical",name:"env_modal",initialValues:t,children:[(0,P.jsx)(p.Z.Item,{name:"name",label:d.ZP.get("名称"),rules:[{required:!0,message:d.ZP.get("请输入环境变量名称"),whitespace:!0},{pattern:/^[a-zA-Z_][0-9a-zA-Z_]*$/,message:d.ZP.get("只能输入字母数字下划线,且不能以数字开头")}],children:(0,P.jsx)(g.Z,{placeholder:d.ZP.get("请输入环境变量名称")})}),!t&&(0,P.jsx)(p.Z.Item,{name:"split",label:d.ZP.get("自动拆分"),initialValue:"0",tooltip:d.ZP.get("多个依赖是否换行分割"),children:(0,P.jsxs)(x.ZP.Group,{children:[(0,P.jsx)(x.ZP,{value:"1",children:d.ZP.get("是")}),(0,P.jsx)(x.ZP,{value:"0",children:d.ZP.get("否")})]})}),(0,P.jsx)(p.Z.Item,{name:"value",label:d.ZP.get("值"),rules:[{required:!0,message:d.ZP.get("请输入环境变量值"),whitespace:!0}],children:(0,P.jsx)(g.Z.TextArea,{autoSize:{minRows:1,maxRows:8},placeholder:d.ZP.get("请输入环境变量值")})}),(0,P.jsx)(p.Z.Item,{name:"remarks",label:d.ZP.get("备注"),children:(0,P.jsx)(g.Z,{placeholder:d.ZP.get("请输入备注")})})]})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[9818],{30769:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(2053),r=n(75271),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},a=n(48881),c=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var l=r.forwardRef(c)},88939:function(e,t,n){"use strict";var i=n(2053),r=n(75271),o=n(19579),a=n(48881),c=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o.Z}))},l=r.forwardRef(c);t.Z=l},82802:function(e,t,n){"use strict";var i=n(26068),r=n.n(i),o=n(75271);t.Z=function(e,t,n){var i=n.treeNodeFilterProp;return(0,o.useMemo)((function(){var n=[];if(!t)return{treeData:e,keys:n};var o=t.toUpperCase();function a(e,t){var n=t[i];return String(n).toUpperCase().includes(o)}return{treeData:function e(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.map((function(t){var o=t.children,c=i||a(0,t),l=e(o||[],c);return c||l.length?(l.length&&n.push(t.key),r()(r()({},t),{},{children:l})):null})).filter((function(e){return e}))}(e),keys:n}}),[e,t,i])}},85565:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return A}});var i=n(15558),r=n.n(i),o=n(48305),a=n.n(o),c=n(82802),l=n(48916),s=n(3475),u=n(16314),f=n(30769),d=n(88939),p=n(47508),g=n(83383),h=n(71742),v=n(98783),m=n(50691),y=n(45520),b=n(61508),x=n(88142),w=n(59816),Z=n(93481),k=n(17082),j=n(13107),P=n(98705),E=n(87105),S=n(66292),B=n.n(S),M=n(4363),C=n.n(M),L=n(79514),T=n(75271),_=n(72317),R=n(43382),N={"left-tree-container":"left-tree-container___zHanw","left-tree-scroller":"left-tree-scroller___PInUN","log-container":"log-container___ba9Tr"},D=n(52676),F=m.Z.Text,A=function(){var e=(0,v.useOutletContext)(),t=e.headerStyle,n=e.isPhone,i=e.theme,o=(0,T.useState)(_.ZP.get("请选择日志文件")),m=a()(o,2),S=m[0],M=m[1],A=(0,T.useState)(_.ZP.get("请选择日志文件")),O=a()(A,2),U=O[0],H=O[1],z=(0,T.useState)([]),I=a()(z,2),G=I[0],q=I[1],W=(0,T.useState)(!1),Y=a()(W,2),$=Y[0],K=Y[1],X=(0,T.useState)(),V=a()(X,2),J=V[0],Q=V[1],ee=(0,T.useRef)(),te=(0,T.useState)([]),ne=a()(te,2),ie=ne[0],re=ne[1],oe=(0,T.useState)(),ae=a()(oe,2),ce=ae[0],le=ae[1],se=(0,T.useState)(""),ue=a()(se,2),fe=ue[0],de=ue[1],pe=function(e,t){t.key!==U&&e&&(le(t),H(e),"directory"!==t.type?(M(_.ZP.get("加载中...")),function(e){u.W.get("".concat(s.Z.apiPrefix,"logs/detail?file=").concat(e.title,"&path=").concat(e.parent||"")).then((function(e){var t=e.code,n=e.data;200===t&&M(n)}))}(t)):M(_.ZP.get("请选择日志文件")))},ge=(0,T.useCallback)((function(e,t){pe(e[0],t.node)}),[]),he=(0,T.useCallback)((function(e){var t=e.target.value;ve(t)}),[G]),ve=(0,T.useCallback)(B()((function(e){de(e)}),300),[G]),me=(0,c.Z)(G,fe,{treeNodeFilterProp:"title"}),ye=me.treeData,be=me.keys;(0,T.useEffect)((function(){re(C()([].concat(r()(ie),r()(be))))}),[be]);var xe=function(){H(""),le(null),M(_.ZP.get("请选择脚本文件"))};return(0,T.useEffect)((function(){K(!0),u.W.get("".concat(s.Z.apiPrefix,"logs")).then((function(e){var t=e.code,n=e.data;200===t&&q(n)})).finally((function(){return K(!1)}))}),[]),(0,T.useEffect)((function(){ee.current&&Q(ee.current.clientHeight)}),[ee.current,G]),(0,D.jsx)(p.ZP,{className:"ql-container-wrapper log-wrapper",title:(0,D.jsxs)(D.Fragment,{children:[U,"file"===(null==ce?void 0:ce.type)&&(0,D.jsx)("span",{style:{marginLeft:6,fontSize:12,color:"#999",display:"inline-block",height:14},children:(0,L.Z)(ce.size)})]}),loading:$,extra:n?[(0,D.jsx)(x.Z,{treeExpandAction:"click",className:"log-select",value:U,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:G,placeholder:_.ZP.get("请选择日志"),fieldNames:{value:"key"},treeNodeFilterProp:"title",showSearch:!0,allowClear:!0,onSelect:pe})]:[(0,D.jsx)(w.Z,{title:_.ZP.get("下载"),children:(0,D.jsx)(Z.Z,{disabled:!ce||"directory"===ce.type,type:"primary",onClick:function(){u.W.post("".concat(s.Z.apiPrefix,"logs/download"),{filename:ce.title,path:ce.parent||""},{responseType:"blob"}).then((function(e){(0,E.saveAs)(e,ce.title)}))},icon:(0,D.jsx)(f.Z,{})})}),(0,D.jsx)(w.Z,{title:_.ZP.get("删除"),children:(0,D.jsx)(Z.Z,{type:"primary",disabled:!ce,onClick:function(){y.Z.confirm({title:"确认删除",content:(0,D.jsxs)(D.Fragment,{children:[_.ZP.get("确认删除"),(0,D.jsxs)(F,{style:{wordBreak:"break-all"},type:"warning",children:[" ",U," "]}),_.ZP.get("文件"),"directory"===ce.type?_.ZP.get("夹下所有日志"):"",_.ZP.get(",删除后不可恢复")]}),onOk:function(){u.W.delete("".concat(s.Z.apiPrefix,"logs"),{data:{filename:ce.title,path:ce.parent||"",type:ce.type}}).then((function(e){if(200===e.code){b.ZP.success("删除成功");var t=r()(G);if(ce.parent)t=(0,l.I1)(t,(function(e){return e.key===ce.key}));else{var n=t.findIndex((function(e){return e.key===ce.key}));-1!==n&&t.splice(n,1)}q(t),xe()}}))}})},icon:(0,D.jsx)(d.Z,{})})})],header:{style:t},children:(0,D.jsxs)("div",{className:"".concat(N["log-container"]," log-container"),children:[!n&&(0,D.jsxs)(R.Z,{split:"vertical",size:200,maxSize:-100,children:[(0,D.jsx)("div",{className:N["left-tree-container"],children:G.length>0?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(k.Z.Search,{className:N["left-tree-search"],onChange:he,placeholder:_.ZP.get("请输入日志名"),allowClear:!0}),(0,D.jsx)("div",{className:N["left-tree-scroller"],ref:ee,children:(0,D.jsx)(j.Z,{expandAction:"click",className:N["left-tree"],treeData:ye,showIcon:!0,height:J,selectedKeys:[U],showLine:{showLeafIcon:!0},onSelect:ge,expandedKeys:ie,onExpand:function(e){re(e)}})})]}):(0,D.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,D.jsx)(P.Z,{description:_.ZP.get("暂无日志"),image:P.Z.PRESENTED_IMAGE_SIMPLE})})}),(0,D.jsx)(g.ZP,{language:"shell",theme:i,value:S,options:{readOnly:!0,fontSize:12,minimap:{enabled:!1},lineNumbersMinChars:3,folding:!1,glyphMargin:!1}})]}),n&&(0,D.jsx)(h.ZP,{value:S,readOnly:!0,theme:i.includes("dark")?"dark":"light",onChange:function(e,t){M(e)}})]})})}},87105:function(e,t,n){var i,r,o;r=[],void 0===(o="function"==typeof(i=function(){"use strict";function t(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function i(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){c(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,c=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,n){var c=a.URL||a.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?o(l):r(l.href)?i(e,t,n):o(l,l.target="_blank")):(l.href=c.createObjectURL(e),setTimeout((function(){c.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),n);else if(r(e))i(e,n,a);else{var c=document.createElement("a");c.href=e,c.target="_blank",setTimeout((function(){o(c)}))}}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return i(e,t,n);var o="application/octet-stream"===e.type,c=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&c)&&"object"==typeof FileReader){var s=new FileReader;s.onloadend=function(){var e=s.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},s.readAsDataURL(e)}else{var u=a.URL||a.webkitURL,f=u.createObjectURL(e);r?r.location=f:location.href=f,r=null,setTimeout((function(){u.revokeObjectURL(f)}),4e4)}});a.saveAs=c.saveAs=c,e.exports=c})?i.apply(t,r):i)||(e.exports=o)},45170:function(e,t,n){var i=n(13807);e.exports=function(e,t){return!!(null==e?0:e.length)&&i(e,t,0)>-1}},94936:function(e){e.exports=function(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}},92504:function(e){e.exports=function(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}},13807:function(e,t,n){var i=n(92504),r=n(99940),o=n(3729);e.exports=function(e,t,n){return t==t?o(e,t,n):i(e,r,n)}},99940:function(e){e.exports=function(e){return e!=e}},95453:function(e,t,n){var i=n(78188),r=n(45170),o=n(94936),a=n(29880),c=n(17319),l=n(79967);e.exports=function(e,t,n){var s=-1,u=r,f=e.length,d=!0,p=[],g=p;if(n)d=!1,u=o;else if(f>=200){var h=t?null:c(e);if(h)return l(h);d=!1,u=a,g=new i}else g=t?[]:p;e:for(;++s<f;){var v=e[s],m=t?t(v):v;if(v=n||0!==v?v:0,d&&m==m){for(var y=g.length;y--;)if(g[y]===m)continue e;t&&g.push(m),p.push(v)}else u(g,m,n)||(g!==p&&g.push(m),p.push(v))}return p}},17319:function(e,t,n){var i=n(81956),r=n(43226),o=n(79967),a=i&&1/o(new i([,-0]))[1]==1/0?function(e){return new i(e)}:r;e.exports=a},3729:function(e){e.exports=function(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}},43226:function(e){e.exports=function(){}},4363:function(e,t,n){var i=n(95453);e.exports=function(e){return e&&e.length?i(e):[]}},79514:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});const i=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],r=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],o=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],a=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],c=(e,t,n)=>{let i=e;return"string"==typeof t||Array.isArray(t)?i=e.toLocaleString(t,n):!0!==t&&void 0===n||(i=e.toLocaleString(void 0,n)),i};function l(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const n=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?a:o:t.binary?r:i,l=t.space?" ":"";if(t.signed&&0===e)return` 0${l}${n[0]}`;const s=e<0,u=s?"-":t.signed?"+":"";let f;if(s&&(e=-e),void 0!==t.minimumFractionDigits&&(f={minimumFractionDigits:t.minimumFractionDigits}),void 0!==t.maximumFractionDigits&&(f={maximumFractionDigits:t.maximumFractionDigits,...f}),e<1){return u+c(e,t.locale,f)+l+n[0]}const d=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**d,f||(e=e.toPrecision(3));return u+c(Number(e),t.locale,f)+l+n[d]}}}]);
|
package/static/dist/src__pages__script__components__UnsupportedFilePreview__index.39074c68.async.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[2892],{75875:function(n,e,r){r.d(e,{iN:function(){return x},R_:function(){return u}});var t=r(96299),a=r(28556),c=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function o(n){var e=n.r,r=n.g,a=n.b,c=(0,t.py)(e,r,a);return{h:360*c.h,s:c.s,v:c.v}}function i(n){var e=n.r,r=n.g,a=n.b;return"#".concat((0,t.vq)(e,r,a,!1))}function f(n,e,r){var t=r/100;return{r:(e.r-n.r)*t+n.r,g:(e.g-n.g)*t+n.g,b:(e.b-n.b)*t+n.b}}function l(n,e,r){var t;return(t=Math.round(n.h)>=60&&Math.round(n.h)<=240?r?Math.round(n.h)-2*e:Math.round(n.h)+2*e:r?Math.round(n.h)+2*e:Math.round(n.h)-2*e)<0?t+=360:t>=360&&(t-=360),t}function d(n,e,r){return 0===n.h&&0===n.s?n.s:((t=r?n.s-.16*e:4===e?n.s+.16:n.s+.05*e)>1&&(t=1),r&&5===e&&t>.1&&(t=.1),t<.06&&(t=.06),Number(t.toFixed(2)));var t}function s(n,e,r){var t;return(t=r?n.v+.05*e:n.v-.15*e)>1&&(t=1),Number(t.toFixed(2))}function u(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],t=(0,a.uA)(n),u=5;u>0;u-=1){var m=o(t),p=i((0,a.uA)({h:l(m,u,!0),s:d(m,u,!0),v:s(m,u,!0)}));r.push(p)}r.push(i(t));for(var v=1;v<=4;v+=1){var b=o(t),y=i((0,a.uA)({h:l(b,v),s:d(b,v),v:s(b,v)}));r.push(y)}return"dark"===e.theme?c.map((function(n){var t=n.index,c=n.opacity;return i(f((0,a.uA)(e.backgroundColor||"#141414"),(0,a.uA)(r[t]),100*c))})):r}var m=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];m.primary=m[5];var p=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];p.primary=p[5];var v=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];v.primary=v[5];var b=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];b.primary=b[5];var y=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];y.primary=y[5];var h=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];h.primary=h[5];var g=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];g.primary=g[5];var C=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];C.primary=C[5];var x=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];x.primary=x[5];var Z=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Z.primary=Z[5];var w=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];w.primary=w[5];var k=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];k.primary=k[5];var _=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];_.primary=_[5];var N=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];N.primary=N[5];var E=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];E.primary=E[5];var z=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];z.primary=z[5];var j=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];j.primary=j[5];var O=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];O.primary=O[5];var I=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];I.primary=I[5];var P=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];P.primary=P[5];var S=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];S.primary=S[5];var T=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];T.primary=T[5];var M=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];M.primary=M[5];var A=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];A.primary=A[5];var R=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];R.primary=R[5];var D=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];D.primary=D[5]},48881:function(n,e,r){r.d(e,{Z:function(){return x}});var t=r(2053),a=r(99459),c=r(57904),o=r(53162),i=r(75271),f=r(82187),l=r.n(f),d=r(75875),s=r(28771),u=r(98037),m=r(39765),p=["icon","className","onClick","style","primaryColor","secondaryColor"],v={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var b=function(n){var e=n.icon,r=n.className,t=n.onClick,a=n.style,c=n.primaryColor,f=n.secondaryColor,l=(0,o.Z)(n,p),d=i.useRef(),s=v;if(c&&(s={primaryColor:c,secondaryColor:f||(0,m.pw)(c)}),(0,m.C3)(d),(0,m.Kp)((0,m.r)(e),"icon should be icon definiton, but got ".concat(e)),!(0,m.r)(e))return null;var b=e;return b&&"function"==typeof b.icon&&(b=(0,u.Z)((0,u.Z)({},b),{},{icon:b.icon(s.primaryColor,s.secondaryColor)})),(0,m.R_)(b.icon,"svg-".concat(b.name),(0,u.Z)((0,u.Z)({className:r,onClick:t,style:a,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:d}))};b.displayName="IconReact",b.getTwoToneColors=function(){return(0,u.Z)({},v)},b.setTwoToneColors=function(n){var e=n.primaryColor,r=n.secondaryColor;v.primaryColor=e,v.secondaryColor=r||(0,m.pw)(e),v.calculated=!!r};var y=b;function h(n){var e=(0,m.H9)(n),r=(0,a.Z)(e,2),t=r[0],c=r[1];return y.setTwoToneColors({primaryColor:t,secondaryColor:c})}var g=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];h(d.iN.primary);var C=i.forwardRef((function(n,e){var r=n.className,f=n.icon,d=n.spin,u=n.rotate,p=n.tabIndex,v=n.onClick,b=n.twoToneColor,h=(0,o.Z)(n,g),C=i.useContext(s.Z),x=C.prefixCls,Z=void 0===x?"anticon":x,w=C.rootClassName,k=l()(w,Z,(0,c.Z)((0,c.Z)({},"".concat(Z,"-").concat(f.name),!!f.name),"".concat(Z,"-spin"),!!d||"loading"===f.name),r),_=p;void 0===_&&v&&(_=-1);var N=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,E=(0,m.H9)(b),z=(0,a.Z)(E,2),j=z[0],O=z[1];return i.createElement("span",(0,t.Z)({role:"img","aria-label":f.name},h,{ref:e,tabIndex:_,onClick:v,className:k}),i.createElement(y,{icon:f,primaryColor:j,secondaryColor:O,style:N}))}));C.displayName="AntdIcon",C.getTwoToneColor=function(){var n=y.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor},C.setTwoToneColor=h;var x=C},28771:function(n,e,r){var t=(0,r(75271).createContext)({});e.Z=t},5418:function(n,e,r){r.d(e,{Z:function(){return f}});var t=r(2053),a=r(75271),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103zm78 195a32 32 0 1064 0 32 32 0 10-64 0z"}}]},name:"file-unknown",theme:"outlined"},o=r(48881),i=function(n,e){return a.createElement(o.Z,(0,t.Z)({},n,{ref:e,icon:c}))};var f=a.forwardRef(i)},81469:function(n,e,r){r.d(e,{Z:function(){return f}});var t=r(2053),a=r(75271),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},o=r(48881),i=function(n,e){return a.createElement(o.Z,(0,t.Z)({},n,{ref:e,icon:c}))};var f=a.forwardRef(i)},39765:function(n,e,r){r.d(e,{R_:function(){return b},pw:function(){return y},r:function(){return p},H9:function(){return h},vD:function(){return g},C3:function(){return C},Kp:function(){return m}});var t=r(98037),a=r(24744),c=r(75875),o=r(61984);function i(n){var e;return null==n||null===(e=n.getRootNode)||void 0===e?void 0:e.call(n)}function f(n){return function(n){return i(n)instanceof ShadowRoot}(n)?i(n):null}var l=r(7432),d=r(75271),s=r(28771);function u(n){return n.replace(/-(.)/g,(function(n,e){return e.toUpperCase()}))}function m(n,e){(0,l.ZP)(n,"[@ant-design/icons] ".concat(e))}function p(n){return"object"===(0,a.Z)(n)&&"string"==typeof n.name&&"string"==typeof n.theme&&("object"===(0,a.Z)(n.icon)||"function"==typeof n.icon)}function v(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(n).reduce((function(e,r){var t=n[r];if("class"===r)e.className=t,delete e.class;else delete e[r],e[u(r)]=t;return e}),{})}function b(n,e,r){return r?d.createElement(n.tag,(0,t.Z)((0,t.Z)({key:e},v(n.attrs)),r),(n.children||[]).map((function(r,t){return b(r,"".concat(e,"-").concat(n.tag,"-").concat(t))}))):d.createElement(n.tag,(0,t.Z)({key:e},v(n.attrs)),(n.children||[]).map((function(r,t){return b(r,"".concat(e,"-").concat(n.tag,"-").concat(t))})))}function y(n){return(0,c.R_)(n)[0]}function h(n){return n?Array.isArray(n)?n:[n]:[]}var g={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},C=function(n){var e=(0,d.useContext)(s.Z),r=e.csp,t=e.prefixCls,a="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";t&&(a=a.replace(/anticon/g,t)),(0,d.useEffect)((function(){var e=f(n.current);(0,o.hq)(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[])}},68537:function(n,e,r){r.r(e),r.d(e,{default:function(){return h}});r(75271);var t=r(63505),a=r(93481),c=r(5418),o=r(81469),i=r(72317),f="container___ddbSX",l="content___r4xW8",d="iconWrapper___djOAE",s="icon___K6vsC",u="message___MzLqV",m="actionArea___Dnv9D",p="button___hI60l",v="warning___mePYd",b="warningIcon___eTSpJ",y=r(52676),h=function(n){var e=n.onForceOpen;return(0,y.jsx)("div",{className:f,children:(0,y.jsxs)("div",{className:l,children:[(0,y.jsx)("div",{className:d,children:(0,y.jsx)(c.Z,{className:s})}),(0,y.jsx)("div",{className:u,children:i.ZP.get("当前文件不支持预览")}),(0,y.jsxs)(t.Z,{direction:"vertical",size:8,className:m,children:[(0,y.jsx)(a.Z,{type:"primary",onClick:e,className:p,children:i.ZP.get("强制打开")}),(0,y.jsxs)("div",{className:v,children:[(0,y.jsx)(o.Z,{className:b}),i.ZP.get("强制打开可能会导致编辑器显示异常")]})]})]})})}},76908:function(n,e,r){var t=r(99459),a=r(75271),c=r(43541);e.Z=function(){var n=a.useState(!1),e=(0,t.Z)(n,2),r=e[0],o=e[1];return a.useEffect((function(){o((0,c.fk)())}),[]),r}},43541:function(n,e,r){r.d(e,{fk:function(){return o},jD:function(){return c}});var t,a=r(71254),c=function(){return(0,a.Z)()&&window.document.documentElement},o=function(){if(!c())return!1;if(void 0!==t)return t;var n=document.createElement("div");return n.style.display="flex",n.style.flexDirection="column",n.style.rowGap="1px",n.appendChild(document.createElement("div")),n.appendChild(document.createElement("div")),document.body.appendChild(n),t=1===n.scrollHeight,document.body.removeChild(n),t}},81393:function(n,e,r){r.d(e,{BR:function(){return m},ri:function(){return u}});var t=r(2053),a=r(57904),c=r(82187),o=r.n(c),i=r(22615),f=r(75271),l=r(96820),d=function(n,e){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(r[t]=n[t]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(n);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(n,t[a])&&(r[t[a]]=n[t[a]])}return r},s=f.createContext(null),u=function(n,e){var r=f.useContext(s),t=f.useMemo((function(){if(!r)return"";var t=r.compactDirection,c=r.isFirstItem,i=r.isLastItem,f="vertical"===t?"-vertical-":"-";return o()((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(n,"-compact").concat(f,"item"),!0),"".concat(n,"-compact").concat(f,"first-item"),c),"".concat(n,"-compact").concat(f,"last-item"),i),"".concat(n,"-compact").concat(f,"item-rtl"),"rtl"===e))}),[n,e,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:t}},m=function(n){var e=n.children;return f.createElement(s.Provider,{value:null},e)},p=function(n){var e=n.children,r=d(n,["children"]);return f.createElement(s.Provider,{value:r},e)};e.ZP=function(n){var e=f.useContext(l.E_),r=e.getPrefixCls,c=e.direction,u=n.size,m=void 0===u?"middle":u,v=n.direction,b=n.block,y=n.prefixCls,h=n.className,g=n.children,C=d(n,["size","direction","block","prefixCls","className","children"]),x=r("space-compact",y),Z=o()(x,(0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(x,"-rtl"),"rtl"===c),"".concat(x,"-block"),b),"".concat(x,"-vertical"),"vertical"===v),h),w=f.useContext(s),k=(0,i.Z)(g),_=f.useMemo((function(){return k.map((function(n,e){var r=n&&n.key||"".concat(x,"-item-").concat(e);return f.createElement(p,{key:r,compactSize:m,compactDirection:v,isFirstItem:0===e&&(!w||(null==w?void 0:w.isFirstItem)),isLastItem:e===k.length-1&&(!w||(null==w?void 0:w.isLastItem))},n)}))}),[m,k,w]);return 0===k.length?null:f.createElement("div",(0,t.Z)({className:Z},C),_)}},63505:function(n,e,r){r.d(e,{u:function(){return v},Z:function(){return h}});var t=r(2053),a=r(57904),c=r(99459),o=r(82187),i=r.n(o),f=r(22615),l=r(75271),d=r(96820),s=r(76908);function u(n){var e=n.className,r=n.direction,c=n.index,o=n.marginDirection,i=n.children,f=n.split,d=n.wrap,s=l.useContext(v),u=s.horizontalSize,m=s.verticalSize,p=s.latestIndex,b={};return s.supportFlexGap||("vertical"===r?c<p&&(b={marginBottom:u/(f?2:1)}):b=(0,t.Z)((0,t.Z)({},c<p&&(0,a.Z)({},o,u/(f?2:1))),d&&{paddingBottom:m})),null==i?null:l.createElement(l.Fragment,null,l.createElement("div",{className:e,style:b},i),c<p&&f&&l.createElement("span",{className:"".concat(e,"-split"),style:b},f))}var m=r(81393),p=function(n,e){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(r[t]=n[t]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(n);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(n,t[a])&&(r[t[a]]=n[t[a]])}return r},v=l.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),b={small:8,middle:16,large:24};var y=function(n){var e=l.useContext(d.E_),r=e.getPrefixCls,o=e.space,m=e.direction,y=n.size,h=void 0===y?(null==o?void 0:o.size)||"small":y,g=n.align,C=n.className,x=n.children,Z=n.direction,w=void 0===Z?"horizontal":Z,k=n.prefixCls,_=n.split,N=n.style,E=n.wrap,z=void 0!==E&&E,j=p(n,["size","align","className","children","direction","prefixCls","split","style","wrap"]),O=(0,s.Z)(),I=l.useMemo((function(){return(Array.isArray(h)?h:[h,h]).map((function(n){return function(n){return"string"==typeof n?b[n]:n||0}(n)}))}),[h]),P=(0,c.Z)(I,2),S=P[0],T=P[1],M=(0,f.Z)(x,{keepEmpty:!0}),A=void 0===g&&"horizontal"===w?"center":g,R=r("space",k),D=i()(R,"".concat(R,"-").concat(w),(0,a.Z)((0,a.Z)({},"".concat(R,"-rtl"),"rtl"===m),"".concat(R,"-align-").concat(A),A),C),F="".concat(R,"-item"),L="rtl"===m?"marginLeft":"marginRight",H=0,B=M.map((function(n,e){null!=n&&(H=e);var r=n&&n.key||"".concat(F,"-").concat(e);return l.createElement(u,{className:F,key:r,direction:w,index:e,marginDirection:L,split:_,wrap:z},n)})),G=l.useMemo((function(){return{horizontalSize:S,verticalSize:T,latestIndex:H,supportFlexGap:O}}),[S,T,H,O]);if(0===M.length)return null;var q={};return z&&(q.flexWrap="wrap",O||(q.marginBottom=-T)),O&&(q.columnGap=S,q.rowGap=T),l.createElement("div",(0,t.Z)({className:D,style:(0,t.Z)((0,t.Z)({},q),N)},j),l.createElement(v.Provider,{value:G},B))};y.Compact=m.ZP;var h=y},22615:function(n,e,r){r.d(e,{Z:function(){return c}});var t=r(75271),a=r(36479);function c(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t.Children.forEach(n,(function(n){(null!=n||e.keepEmpty)&&(Array.isArray(n)?r=r.concat(c(n)):(0,a.isFragment)(n)&&n.props?r=r.concat(c(n.props.children,e)):r.push(n))})),r}}}]);
|
package/static/dist/src__pages__script__components__UnsupportedFilePreview__index.d50aeff1.chunk.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.container___ddbSX{height:100%;display:flex;align-items:center;justify-content:center;background:var(--background-color);padding:16px}.content___r4xW8{text-align:center;background:var(--card-background);padding:24px;border-radius:12px;max-width:390px;width:100%;transition:all .3s ease}.iconWrapper___djOAE{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:var(--background-color);margin-bottom:16px}.icon___K6vsC{font-size:32px;color:var(--text-color-secondary)}.message___MzLqV{font-size:16px;color:var(--text-color);margin-bottom:16px;font-weight:500;line-height:1.5}.actionArea___Dnv9D{width:100%}.button___hI60l{min-width:140px;height:36px;font-size:14px}.warning___mePYd{font-size:13px;color:var(--text-color-secondary);line-height:1.5;display:flex;align-items:center;justify-content:center;gap:6px}.warningIcon___eTSpJ{font-size:14px;color:#faad14}
|