-
Notifications
You must be signed in to change notification settings - Fork 450
/
Copy path10815d.272.min.js
1 lines (1 loc) · 8.33 KB
/
10815d.272.min.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[272,294,401],{1327:function(e,t,n){e.exports={container:"container-64773b6530",progress:"progress-0b2fcec95b","info-container":"info-container-a19fcca273",header:"header-eb348b50ee","title-container":"title-container-27db3abfb6",title:"title-56e47d7cd2","progress-span":"progress-span-44667e5abd","risk-span":"risk-span-d8a0583c61","close-icon":"close-icon-5665bf3a44","back-btn":"back-btn-c9d2f749c2","risk-container":"risk-container-be5d3f1ac6",left:"left-14e992e16d",right:"right-44971c11dc",line:"line-529334149d","detecting-container":"detecting-container-74c9c0584d",loading:"loading-f85d2c583c","fail-container":"fail-container-2c4f853a71",instance:"instance-0c7e912023",name:"name-447d4a9c4c",reason:"reason-3eecafd2f2"}},1617:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return u})),n.d(t,"r",(function(){return c})),n.d(t,"i",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"j",(function(){return b})),n.d(t,"a",(function(){return s})),n.d(t,"m",(function(){return m})),n.d(t,"l",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"o",(function(){return v})),n.d(t,"q",(function(){return g})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return O})),n.d(t,"p",(function(){return j})),n.d(t,"k",(function(){return N})),n.d(t,"n",(function(){return y}));var r,a=n(54),i=n(12);!function(e){e.detecting="running",e.finished="finished",e.error="error"}(r||(r={}));var c,o=function(e){var t=e.params;return Object(a.b)({method:"get",url:"/api/v6/baseline/GroupStatistics",params:t},Object(i.g)("获取策略组统计信息"))},u=function(){return Object(a.b)({method:"get",url:"/api/v6/baseline/GetGroupList"},Object(i.g)("获取策略组列表"))};!function(e){e.success="success",e.failure="failed"}(c||(c={}));var s,l=function(e){var t=e.data;return Object(a.b)({method:"post",url:"/api/v6/baseline/Detect",data:t},Object(i.g)("开始基线检查"),!1)},d=function(e){var t=e.params;return Object(a.b)({method:"get",url:"/api/v6/baseline/GroupCheckStatus",params:t},Object(i.g)("策略组检测状态"))},b=function(e){var t=e.data;return Object(a.b)({method:"post",url:"/api/v6/baseline/DetectProgressDetail",data:t},Object(i.g)("基线检查进度详情"))};!function(e){e.All="",e.HasRisk="risk",e.NoRisk="unrisk"}(s||(s={}));var f,m=function(e){var t=e.data,n=e.params;return Object(a.b)({method:"post",url:"/api/v6/baseline/GetBaselineList",data:t,params:n},Object(i.g)("获取基线列表"))},p=function(e){var t=e.data,n=e.params;return Object(a.b)({method:"post",url:"/api/v6/baseline/GetBaselineDetailList",data:t,params:n},Object(i.g)("基线详情列表"))};!function(e){e.Fail="error",e.NoPass="failed",e.Pass="passed"}(f||(f={}));var h,v=function(e){var t=e.data,n=e.params;return Object(a.b)({method:"post",url:"/api/v6/baseline/GetCheckResList",data:t,params:n},Object(i.g)("检查结果列表"))},g=function(e){var t=e.data;return Object(a.b)({method:"post",url:"/api/v6/baseline/GetWhiteHostNum",data:t},Object(i.g)("获取白名单弹框主机数"))};!function(e){e[e.Part=0]="Part",e[e.All=1]="All"}(h||(h={}));var O=function(e){var t=e.data;return Object(a.b)({method:"post",url:"/api/v6/baseline/ChecklistWhiten",data:t},Object(i.g)("检查项加白"))},j=function(e){var t=e.data;return Object(a.b)({method:"post",url:"/api/v6/baseline/GetChecklistDetail",data:t},Object(i.g)("获取一个检查项详情"))};function N(e,t){return Object(a.b)({url:"/api/v6/baseline/GetBaselineCheckList",params:e,data:t,method:"POST"},Object(i.g)("获取基线对应检查项列表"))}function y(e,t){return Object(a.b)({url:"/api/v6/baseline/GetCheckHostList",params:e,data:t,method:"POST"},Object(i.g)("获取检查项影响主机列表"))}},1669:function(e,t,n){"use strict";n(162);var r=n(67),a=n(10),i=n.n(a),c=n(50),o=n.n(c),u=n(0),s=n.n(u),l=n(115),d=n.n(l);var b=n(1676),f=n.n(b),m="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/components/common/ellipsis-text/index.tsx";function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=d.a.bind(f.a);t.a=function(e){var t=e.value,n=e.maxWidth,a=e.width,i=e.style,c=e.fontSize,l=e.fontFamily,d=e.fontWeight,b=Object(u.useState)(!0),f=o()(b,2),p=f[0],g=f[1],O=Object(u.useState)(!1),j=o()(O,2),N=j[0],y=j[1];return s.a.createElement(r.a,{content:t,disabled:p,popupVisible:N,style:{maxWidth:300},__source:{fileName:m,lineNumber:31,columnNumber:5}},s.a.createElement("div",{className:v("content"),onMouseEnter:function(){(function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"normal",a=document.createElement("span");a.style.fontSize=e,a.style.fontFamily=t,a.style.fontWeight=r,a.style.visibility="hidden",a.style.display="inline-block",a.style.height="0px",a.style.position="absolute",document.body.appendChild(a),a.textContent?a.textContent=n:a.innerText=n;var i=parseFloat(window.getComputedStyle(a).width);return document.body.removeChild(a),i})(null!=c?c:"12px",null!=l?l:"PingFang SC",t,d)>=n&&(g(!1),y(!0))},onMouseOut:function(){y(!1)},style:h({maxWidth:n,width:a,fontSize:c,fontFamily:l},i),__source:{fileName:m,lineNumber:37,columnNumber:7}},t))}},1676:function(e,t,n){e.exports={content:"content-b091ebae55"}},812:function(e,t,n){"use strict";n.r(t),n.d(t,"BaselineDetectCtx",(function(){return o})),n.d(t,"useDetectingTransferFinish",(function(){return u})),n.d(t,"isDetectingStatus",(function(){return s})),n.d(t,"isFinishDetectStatus",(function(){return l})),n.d(t,"isTransferDetectFinish",(function(){return d})),n.d(t,"POLLING_INTERVAL_TIME",(function(){return b}));var r=n(0),a=n.n(r),i=n(163),c=n(1617),o=a.a.createContext({policyGroupId:0,policyDetectStatus:c.b.finished,loadingPostBaselineDetect:!1,neverDetect:!0,taskIsDetecting:!1,handleBaselineDetect:function(){},handleSomeDetect:function(){},handleDetectSuccess:function(){},progress:0,loadingDetectCondition:!1});function u(){var e=Object(r.useRef)();return{isTransferDetectStatus:function(t){var n,r=t.detectStatus,a=t.policyGroupId,c=null!==(n=e.current)&&void 0!==n?n:{},o=c.detectStatus,u=c.policyGroupId,s=d(r,o)&&Object(i.eq)(u,a);return e.current=t,s},preData:e}}function s(e){return e===c.b.detecting}function l(e){return e===c.b.finished}function d(e,t){return e===c.b.finished&&t===c.b.detecting}var b=1e4},833:function(e,t,n){"use strict";n.r(t);var r=n(1),a=n.n(r),i=n(86),c=(n(1311),n(1312)),o=n(0),u=n.n(o),s=n(115),l=n.n(s),d=n(1669),b=n(812),f=n(12),m=n(1327),p=n.n(m),h="/opt/tiger/compile_path/src/code.byted.org/biz-platform/hids/src/pages/host-detail/baseline-list/baseline-detect/detecting-overview/fail-detect.tsx",v=l.a.bind(p.a),g=c.a.Item;t.default=function(e){var t,n=e.data,r=null!=n?n:{},o=r.host_detail,s=r.status,l=(null!=o?o:{}).failed_host,m=null!==(t=null==l?void 0:l.length)&&void 0!==t?t:0,p=m<1,O=Object(b.isFinishDetectStatus)(s);if(p)return null;var j={};return O&&(j.activeKey="1",j.expandIcon=null),u.a.createElement(c.a,a()({className:v("fail-container"),expandIconPosition:"right",bordered:!1,expandIcon:u.a.createElement(i.a,{__source:{fileName:h,lineNumber:44,columnNumber:19}})},j,{__source:{fileName:h,lineNumber:40,columnNumber:5}}),u.a.createElement(g,{header:"".concat(Object(f.g)("检查失败的主机({failureInstanceNum})",{failureInstanceNum:m})),name:"1",__source:{fileName:h,lineNumber:47,columnNumber:7}},null==l?void 0:l.map((function(e){return u.a.createElement("div",{className:v("instance"),key:e.host_name,__source:{fileName:h,lineNumber:54,columnNumber:11}},u.a.createElement("span",{className:v("name"),__source:{fileName:h,lineNumber:55,columnNumber:13}},u.a.createElement(d.a,{maxWidth:150,value:e.host_name,__source:{fileName:h,lineNumber:56,columnNumber:15}})),u.a.createElement("span",{className:v("reason"),__source:{fileName:h,lineNumber:58,columnNumber:13}},u.a.createElement(d.a,{maxWidth:150,value:e.failed_reason,__source:{fileName:h,lineNumber:59,columnNumber:15}})))}))))}}}]);