← Back
Editing: index-legacy503.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:P(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,k=j&&j(j(D([])));k&&k!==r&&i.call(k,c)&&(x=k);var O=_.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 E(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 P(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(O,"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(O),t},n.awrap=function(t){return{__await:t}},L(E.prototype),f(E.prototype,l,(function(){return this})),n.AsyncIterator=E,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new E(p(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(O),f(O,s,"Generator"),f(O,c,(function(){return this})),f(O,"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-legacy120.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy126.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-legacy105.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,k,O,L,E,P,S,C,N,T,D,F,G,V,A,I,U,q,B,M,R;return{setters:[function(t){r=t.u,i=t.o,u=t.L,c=t.n,l=t.l,s=t.k,f=t.b,p=t.q,h=t.K,d=t._},function(t){y=t._},function(t){v=t._},function(t){m=t.c,g=t.r,w=t.k,b=t.e,_=t.B,x=t.p,j=t.G,k=t.q,O=t.v,L=t.x,E=t.M,P=t.A,S=t.H,C=t.C,N=t.y,T=t.P,D=t.D,F=t.a9,G=t.a7},function(t){V=t._},function(t){A=t.d,I=t.u},function(t){U=t.getSingleSiteContentMonitorList,q=t.searchFiles,B=t.delContentMonitorInfo,M=t.scanning},function(t){R=t.u},null,null,null],execute:function(){var H={class:"p-[20px]"},J={class:"p-[20px]"},Y=m({__name:"index",props:{compData:{type:null,required:!0,default:{}}},setup:function(t){var d=R().siteInfo,m=f(),Y=r().payment,K=g([]),z=g(!1),Q=w({word:""}),W=g([A(),{label:"违规词",prop:"key"}]),X=g([]),Z=g(!1),$=g(!1),tt=g(!1),et=g(),nt=w({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"}]}),rt=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 z.value=!0,t.prev=3,t.next=6,U({site_name:d.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,z.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)}}(),ot=function(){var t=a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:it(n(n({},d.value),{},{id:!1}));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),it=function(t){i({title:"".concat(t.id?"编辑":"添加","监控").concat(t.id?"【".concat(t.name,"】"):""),area:68,showFooter:!0,compData:n(n({},t),{},{refreshEvent:rt,isSite:!0}),component:function(){return u((function(){return e.import("./add-monitor-legacy2.js?v=VERSION_NUMBER")}),void 0,e.meta.url)}})},at=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)}})},ut=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},d.value)})},ct=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}})},lt=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:B({data:JSON.stringify({id:e.id})}),message:!0,success:function(t){t.status&&rt()}});case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),st=function(){var t;null===(t=et.value)||void 0===t||t.resetFields(),$.value=!1},ft=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=m.load("正在扫描,请稍后..."),t.prev=1,t.next=4,q({search:Q.word,path:d.value.path});case 4:n=t.sent,X.value=n.data.result.map((function(t){return{path:t.name,key:Q.word}})),st(),tt.value=!0,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1);case 13:return t.prev=13,$.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)}}(),pt=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=m.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)}}(),ht=g([{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?b("span",{class:"text-primary"},[_("已开启")]):"未开启"}},{label:"检测频率",prop:"crontab_info.cycle",showOverflowTooltip:!0},I([{onClick:pt,title:"检测"},{onClick:function(t){it(t)},title:"编辑"},{onClick:lt,title:"删除"}])]);return x((function(){rt()})),function(t,e){var n=D,r=V,o=c,i=l,a=F,u=G,f=s,p=v,h=y,d=j("bt-loading");return k(),O("div",null,["ltd"===L(Y).authType?(k(),E(p,{key:0},{"header-left":P((function(){return[b(n,{type:"primary",onClick:ot},{default:P((function(){return e[4]||(e[4]=[_("添加监控")])})),_:1}),b(n,{type:"default",onClick:e[0]||(e[0]=function(t){return $.value=!0})},{default:P((function(){return e[5]||(e[5]=[_(" 自定义扫描 ")])})),_:1}),b(n,{type:"default",onClick:at},{default:P((function(){return e[6]||(e[6]=[_(" 自定义词库 ")])})),_:1}),b(n,{type:"default",onClick:ut},{default:P((function(){return e[7]||(e[7]=[_(" 检测历史 ")])})),_:1}),b(n,{type:"default",onClick:ct},{default:P((function(){return e[8]||(e[8]=[_("风险列表")])})),_:1})]})),"header-right":P((function(){return[b(r,{onRefresh:rt})]})),content:P((function(){return[S((k(),E(o,{column:L(ht),data:L(K)},{default:P((function(){return[C(' <template #empty>\n <div class="flex items-center justify-center">\n 您的列表为空,您可以\n <BtLink @click="addEventListener">添加一个监控</BtLink>\n </div>\n </template> ')]})),_:1},8,["column","data"])),[[d,L(z)]])]})),popup:P((function(){return[b(f,{title:"自定义扫描",modelValue:L($),"onUpdate:modelValue":e[2]||(e[2]=function(t){return T($)?$.value=t:null}),area:42,onConfirm:ft,onCancel:st,showFooter:""},{default:P((function(){return[N("div",H,[b(u,{"label-position":"right",model:L(Q),ref_key:"scanRef",ref:et},{default:P((function(){return[b(a,{label:"扫描违规词",prop:"word"},{default:P((function(){return[b(i,{modelValue:L(Q).word,"onUpdate:modelValue":e[1]||(e[1]=function(t){return L(Q).word=t}),placeholder:"请输入要扫描的词汇",width:"24rem"},null,8,["modelValue"])]})),_:1})]})),_:1},8,["model"])])]})),_:1},8,["modelValue"]),b(f,{title:"扫描结果",modelValue:L(tt),"onUpdate:modelValue":e[3]||(e[3]=function(t){return T(tt)?tt.value=t:null}),area:52},{default:P((function(){return[N("div",J,[b(p,null,{content:P((function(){return[S(b(o,{column:L(W),data:L(X),"max-height":400},null,8,["column","data"]),[[d,L(Z)]])]})),_:1})])]})),_:1},8,["modelValue"])]})),_:1})):(k(),E(h,{key:1,data:L(nt),class:""},null,8,["data"]))])}}});t("default",d(Y,[["__file","/Users/chudong/project/linux-10/src/views/site/views/php-model/site-safe/violation-word-detection/index.vue"]]))}}}))}();
Save File
Cancel