← Back
Editing: index-legacy496.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function n(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */o=function(){return n};var e,n={},r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n,r){return Object.defineProperty(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{s({},"")}catch(e){s=function(t,e,n){return t[e]=n}}function f(t,n,r,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return s(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=j(u,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var l=p(t,n,r);if("normal"===l.type){if(o=r.done?4:2,l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=4,r.method="throw",r.arg=l.arg)}}}(t,r,new E(o||[])),!0),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var h={};function d(){}function y(){}function v(){}var m={};s(m,u,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(P([])));w&&w!==r&&i.call(w,u)&&(m=w);var b=v.prototype=d.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,n){function r(o,a,u,c){var l=p(e[o],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(l.arg)}var o;s(this,"_invoke",(function(t,e){function i(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(i,i):i()}),!0)}function j(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=p(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function O(t){this.tryEntries.push(t)}function k(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function E(t){this.tryEntries=[[-1]],t.forEach(O,this),this.reset(!0)}function P(n){if(null!=n){var r=n[u];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,a=function t(){for(;++o<n.length;)if(i.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(t(n)+" is not iterable")}return y.prototype=v,s(b,"constructor",v),s(v,"constructor",y),y.displayName=s(v,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},n.awrap=function(t){return{__await:t}},_(x.prototype),s(x.prototype,c,(function(){return this})),n.AsyncIterator=x,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new x(f(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(b),s(b,l,"Generator"),s(b,u,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},n.values=P,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],u=this.prev,c=i[1],l=i[2];if(-1===i[0])return r("end"),!1;if(!c&&!l)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=u){if(u<c)return this.method="next",this.arg=e,r(c),!0;if(u<l)return r(l),!1}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o[2],h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[2]===t)return this.complete(n[4],n[3]),k(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[0]===t){var r=n[4];if("throw"===r.type){var o=r.arg;k(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:P(t),r:n,n:r},"next"===this.method&&(this.arg=e),h}},n}function i(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function u(t){i(a,r,o,u,c,"next",t)}function c(t){i(a,r,o,u,c,"throw",t)}u(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy118.js?v=VERSION_NUMBER","./index-legacy105.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy124.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./useStore-legacy5.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./index-legacy106.js?v=VERSION_NUMBER"],(function(t,e){"use strict";var r,i,u,c,l,s,f,p,h,d,y,v,m,g,w,b,_,x,j,O,k,E,P,S,C,T,F,D,N,V,G,A,I,J,U,q,M;return{setters:[function(t){r=t.u,i=t.o,u=t.K,c=t.n,l=t.l,s=t.k,f=t.b,p=t.q,h=t.J},function(t){d=t._},function(t){y=t._},function(t){v=t.c,m=t.r,g=t.h,w=t.e,b=t.y,_=t.o,x=t.B,j=t.k,O=t.l,k=t.p,E=t.J,P=t.x,S=t.C,C=t.q,T=t.M,F=t.A,D=t.a7,N=t.a4},function(t){V=t._},function(t){G=t.d,A=t.u},function(t){I=t.getSingleSiteContentMonitorList,J=t.searchFiles,U=t.delContentMonitorInfo,q=t.scanning},function(t){M=t.u},null,null,null],execute:function(){var R={class:"p-[20px]"},L={class:"p-[20px]"};t("default",v({__name:"index",props:{compData:{default:{}}},setup:function(t){var v=M().siteInfo,B=f(),H=r().payment,K=m([]),Y=m(!1),z=g({word:""}),Q=m([G(),{label:"违规词",prop:"key"}]),W=m([]),X=m(!1),Z=m(!1),$=m(!1),tt=m(),et=g({title:"违规词检测-功能介绍",ps:"违规词检测能帮助检测网站内容中的合法及非法字段,并输出对应的检测结果,利用图表充分展示各个域名的风险历史、检测情况、敏感词排行等,并实时输出风险动态。",source:111,desc:["违规词内容检测","网页内容修改检测","输出检测报告"],tabImgs:[{title:"概览",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/content_detect_detail_1.png"},{title:"监控列表",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/content_detect_detail_2.png"},{title:"检测历史",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/content_detect_detail_3.png"},{title:"风险列表",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/content_detect_detail_4.png"},{title:"检测报告",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/content_detect_detail_5.png"}]}),nt=function(){var t=a(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("ltd"===H.value.authType){t.next=2;break}return t.abrupt("return");case 2:return Y.value=!0,t.prev=3,t.next=6,I({site_name:v.value.name});case 6:e=t.sent,K.value=e.data,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3);case 13:return t.prev=13,Y.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[3,10,13,16]])})));return function(){return t.apply(this,arguments)}}(),rt=function(){var t=a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:ot(n(n({},v.value),{},{id:!1}));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),ot=function(t){i({title:"".concat(t.id?"编辑":"添加","监控").concat(t.id?"【".concat(t.name,"】"):""),area:68,showFooter:!0,compData:n(n({},t),{},{refreshEvent:nt,isSite:!0}),component:function(){return u((function(){return e.import("./add-monitor-legacy2.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})},it=function(){i({isAsync:!0,title:"自定义词库",area:[44,39],component:function(){return u((function(){return e.import("./own-thesaurus-legacy2.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})},at=function(){i({isAsync:!0,title:"检测历史",area:80,component:function(){return u((function(){return e.import("./detect-history-legacy.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},compData:n({isPopup:!0},v.value)})},ut=function(){i({isAsync:!0,title:"风险列表",area:80,component:function(){return u((function(){return e.import("./risk-list-legacy.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},compData:{isPopup:!0}})},ct=function(){var t=a(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p({title:"删除违规词检测",content:"删除后无法继续监控该网站,是否继续?"});case 2:h({loading:"正在删除,请稍后...",request:U({data:JSON.stringify({id:e.id})}),message:!0,success:function(t){t.status&&nt()}});case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),lt=function(){var t;null===(t=tt.value)||void 0===t||t.resetFields(),Z.value=!1},st=function(){var t=a(o().mark((function t(){var e,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=B.load("正在扫描,请稍后..."),t.prev=1,t.next=4,J({search:z.word,path:v.value.path});case 4:n=t.sent,W.value=n.data.result.map((function(t){return{path:t.name,key:z.word}})),lt(),$.value=!0,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1);case 13:return t.prev=13,Z.value=!1,e.close(),t.finish(13);case 17:case"end":return t.stop()}}),t,null,[[1,10,13,17]])})));return function(){return t.apply(this,arguments)}}(),ft=function(){var t=a(o().mark((function t(n){var r,a,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=B.load("正在检测,请稍后..."),t.next=4,q({data:JSON.stringify({id:n.id})});case 4:a=t.sent,c={name:n.name,id:n.id,path_info:a.data.path_info},r.close(),i({title:"检测日志",area:[64,50],btn:["停止检测"],component:function(){return u((function(){return e.import("./scan-details-legacy2.js?v=VERSION_NUMBER")}),void 0,e.meta.url)},compData:c,showFooter:!0}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(e){return t.apply(this,arguments)}}(),pt=m([{label:"监控名称",prop:"name",showOverflowTooltip:!0},{label:"网站/URL",prop:"url"},{label:"状态",prop:"content",render:function(t){if(1===t.crontab_status)return"正常"}},{label:"发送告警",prop:"send_msg",render:function(t){return 1===t.send_msg?w("span",{class:"text-primary"},[b("已开启")]):"未开启"}},{label:"检测频率",prop:"crontab_info.cycle",showOverflowTooltip:!0},A([{onClick:ft,title:"检测"},{onClick:function(t){ot(t)},title:"编辑"},{onClick:ct,title:"删除"}])]);return _((function(){nt()})),function(t,e){var n=F,r=V,o=c,i=l,a=D,u=N,f=s,p=y,h=d,v=x("bt-loading");return j(),O("div",null,["ltd"===k(H).authType?(j(),E(p,{key:0},{"header-left":P((function(){return[w(n,{type:"primary",onClick:rt},{default:P((function(){return e[4]||(e[4]=[b("添加监控")])})),_:1}),w(n,{type:"default",onClick:e[0]||(e[0]=function(t){return Z.value=!0})},{default:P((function(){return e[5]||(e[5]=[b(" 自定义扫描 ")])})),_:1}),w(n,{type:"default",onClick:it},{default:P((function(){return e[6]||(e[6]=[b(" 自定义词库 ")])})),_:1}),w(n,{type:"default",onClick:at},{default:P((function(){return e[7]||(e[7]=[b(" 检测历史 ")])})),_:1}),w(n,{type:"default",onClick:ut},{default:P((function(){return e[8]||(e[8]=[b("风险列表")])})),_:1})]})),"header-right":P((function(){return[w(r,{onRefresh:nt})]})),content:P((function(){return[S(w(o,{column:k(pt),data:k(K)},null,8,["column","data"]),[[v,k(Y)]])]})),popup:P((function(){return[w(f,{title:"自定义扫描",modelValue:k(Z),"onUpdate:modelValue":e[2]||(e[2]=function(t){return T(Z)?Z.value=t:null}),area:42,onConfirm:st,onCancel:lt,showFooter:""},{default:P((function(){return[C("div",R,[w(u,{"label-position":"right",model:k(z),ref_key:"scanRef",ref:tt},{default:P((function(){return[w(a,{label:"扫描违规词",prop:"word"},{default:P((function(){return[w(i,{modelValue:k(z).word,"onUpdate:modelValue":e[1]||(e[1]=function(t){return k(z).word=t}),placeholder:"请输入要扫描的词汇",width:"24rem"},null,8,["modelValue"])]})),_:1})]})),_:1},8,["model"])])]})),_:1},8,["modelValue"]),w(f,{title:"扫描结果",modelValue:k($),"onUpdate:modelValue":e[3]||(e[3]=function(t){return T($)?$.value=t:null}),area:52},{default:P((function(){return[C("div",L,[w(p,null,{content:P((function(){return[S(w(o,{column:k(Q),data:k(W),"max-height":400},null,8,["column","data"]),[[v,k(X)]])]})),_:1})])]})),_:1},8,["modelValue"])]})),_:1})):(j(),E(h,{key:1,data:k(et),class:""},null,8,["data"]))])}}}))}}}))}();
Save File
Cancel