← Back
Editing: index-legacy493.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/facebook/regenerator/blob/main/LICENSE */o=function(){return n};var e,n={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),u=new T(r||[]);return a(i,"_invoke",{value:E(t,n,u)}),i}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var d="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function w(){}function b(){}function _(){}var x={};f(x,c,(function(){return this}));var j=Object.getPrototypeOf,O=j&&j(j(D([])));O&&O!==r&&i.call(O,c)&&(x=O);var k=_.prototype=w.prototype=Object.create(x);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function P(e,n){function r(o,a,u,c){var l=h(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;a(this,"_invoke",{value:function(t,e){function i(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var o=d;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){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=S(u,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var l=h(t,n,r);if("normal"===l.type){if(o=r.done?m:y,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=m,r.method="throw",r.arg=l.arg)}}}function S(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function D(n){if(n||""===n){var r=n[c];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 b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=f(_,s,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,s,"GeneratorFunction")),t.prototype=Object.create(k),t},n.awrap=function(t){return{__await:t}},L(P.prototype),f(P.prototype,l,(function(){return this})),n.AsyncIterator=P,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new P(p(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(k),f(k,s,"Generator"),f(k,c,(function(){return this})),f(k,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=D,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!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].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},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),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},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-legacy117.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy123.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./useStore-legacy4.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./index-legacy104.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,L,P,E,S,C,N,T,D,F,G,V,A,I,U,M,R;return{setters:[function(t){r=t.u,i=t.n,u=t.L,c=t.l,l=t.k,s=t.j,f=t.b,p=t.p,h=t.K},function(t){d=t._},function(t){y=t._},function(t){v=t.c,m=t.r,g=t.k,w=t.e,b=t.B,_=t.p,x=t.G,j=t.q,O=t.v,k=t.x,L=t.M,P=t.A,E=t.H,S=t.y,C=t.P,N=t.D,T=t.a9,D=t.a7},function(t){F=t._},function(t){G=t.d,V=t.u},function(t){A=t.getSingleSiteContentMonitorList,I=t.searchFiles,U=t.delContentMonitorInfo,M=t.scanning},function(t){R=t.u},null,null,null],execute:function(){var q={class:"p-[20px]"},H={class:"p-[20px]"};t("default",v({__name:"index",props:{compData:{default:{}}},setup:function(t){var v=R().siteInfo,J=f(),Y=r().payment,B=m([]),K=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"===Y.value.authType){t.next=2;break}return t.abrupt("return");case 2:return K.value=!0,t.prev=3,t.next=6,A({site_name:v.value.name});case 6:e=t.sent,B.value=e.data,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3);case 13:return t.prev=13,K.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=J.load("正在扫描,请稍后..."),t.prev=1,t.next=4,I({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=J.load("正在检测,请稍后..."),t.next=4,M({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},V([{onClick:ft,title:"检测"},{onClick:function(t){ot(t)},title:"编辑"},{onClick:ct,title:"删除"}])]);return _((function(){nt()})),function(t,e){var n=N,r=F,o=c,i=l,a=T,u=D,f=s,p=y,h=d,v=x("bt-loading");return j(),O("div",null,["ltd"===k(Y).authType?(j(),L(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[E(w(o,{column:k(pt),data:k(B)},null,8,["column","data"]),[[v,k(K)]])]})),popup:P((function(){return[w(f,{title:"自定义扫描",modelValue:k(Z),"onUpdate:modelValue":e[2]||(e[2]=function(t){return C(Z)?Z.value=t:null}),area:42,onConfirm:st,onCancel:lt,showFooter:""},{default:P((function(){return[S("div",q,[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 C($)?$.value=t:null}),area:52},{default:P((function(){return[S("div",H,[w(p,null,{content:P((function(){return[E(w(o,{column:k(Q),data:k(W),"max-height":400},null,8,["column","data"]),[[v,k(X)]])]})),_:1})])]})),_:1},8,["modelValue"])]})),_:1})):(j(),L(h,{key:1,data:k(et),class:""},null,8,["data"]))])}}}))}}}))}();
Save File
Cancel