Commit d6f9f66b by chencong

添加测试文件2

parent d0e9e660
(function(t){function e(e){for(var a,r,i=e[0],l=e[1],s=e[2],f=0,d=[];f<i.length;f++)r=i[f],o[r]&&d.push(o[r][0]),o[r]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(t[a]=l[a]);u&&u(e);while(d.length)d.shift()();return c.push.apply(c,s||[]),n()}function n(){for(var t,e=0;e<c.length;e++){for(var n=c[e],a=!0,i=1;i<n.length;i++){var l=n[i];0!==o[l]&&(a=!1)}a&&(c.splice(e--,1),t=r(r.s=n[0]))}return t}var a={},o={contentscript:0},c=[];function r(e){if(a[e])return a[e].exports;var n=a[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=t,r.c=a,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/out/";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],l=i.push.bind(i);i.push=e,i=i.slice();for(var s=0;s<i.length;s++)e(i[s]);var u=l;c.push([2,"chunk-vendors"]),n()})({"07a4":function(t,e,n){"use strict";var a=n("2b0e"),o=n("591a");a["a"].use(o["a"]);var c=new o["a"].Store({state:{loading:!1,formObject:{project:null,user:null,selcettag:{}},datalist:[]},mutations:{uploading:function(t,e){t.loading=e},increment:function(t,e){t.datalist=JSON.parse(JSON.stringify(e))},setcheckParams:function(t,e){t.formObject=e},setcheckParamsTag:function(t,e){t.formObject.selcettag=e},updatadata:function(t,e){var n=e,a=t.datalist.map(function(t,e){return t.data.mark=n[e].mark,n[e].markstatus?t.data.markstatus=n[e].markstatus:(t.data.emotionType=n[e].emotionType,t.data.markstatus&&delete t.data.markstatus),t.data.start=!0,t});t.datalist=a}},actions:{},getters:{}});e["a"]=c},2:function(t,e,n){t.exports=n("c48b")},"3d3c":function(t,e,n){"use strict";var a=n("d841"),o=n.n(a);o.a},"4aa1":function(t,e,n){"use strict";(function(t){n("ac6a"),n("456d");var a=n("cf58"),o=n("07a4"),c=t("#chromeID").html();e["a"]={name:"hello_plug_center",data:function(){return{left:null,top:"100px"}},mounted:function(){var t=this;chrome.runtime.sendMessage(c,{action:"getstrong",data:"movedata"},function(e){if(Object.keys(e.data).length>0&&e.data.movedata){var n=e.data;t.left=n.movedata.left,t.top=n.movedata.top}})},methods:{selectCOpy:function(){if(o["a"].state.datalist.length<1)return alert("未选中任何数据"),!1;t("body").append("<div class='zhiwei_toast showtoast'>已复制成功</div>"),setTimeout(function(){t(".zhiwei_toast").remove()},3e3);var e=o["a"].state.datalist.map(function(t){return t.data});a["a"].checkCopy(e)},checkHandle:function(){return o["a"].state.datalist.length<1?(alert("请选择需要检索的数据"),!1):o["a"].state.formObject.project?(o["a"].commit("uploading",!0),t(".select_plugdata_list").scrollTop(0),void chrome.runtime.sendMessage(c,{action:"checkUpmark",value:o["a"].state.datalist,params:o["a"].state.formObject},function(t){t.data&&(o["a"].commit("uploading",!1),o["a"].commit("updatadata",t.data.mark),"知乎"===selectPt.pt||selectPt.pt,console.log(selectPt.template))})):(alert("请选择项目"),!1)}},directives:{drag:function(t,e){t.onmousedown=function(e){var n=e.clientX-t.offsetLeft,a=e.clientY-t.offsetTop;document.onmousemove=function(e){var o=e.clientX-n,r=e.clientY-a;t.style.left=o+"px",t.style.top=r+"px",t.style.right="auto",chrome.runtime.sendMessage(c,{action:"SetStrong",data:{movedata:{left:o+"px",top:r+"px"}}})},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}}}}}).call(this,n("debc"))},c48b:function(t,e,n){"use strict";n.r(e);n("cadf"),n("551c"),n("f751"),n("097d"),n("8c92"),n("7f43"),n("07a4");var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"hello_plug",attrs:{id:"hello_plug"}},[n("div",[n("h5",[t._v("快捷链接")]),n("ul",[n("li",{class:{activeOn:"微博"===t.VUEPT},on:{click:function(e){return t.goHerf("http://s.weibo.com/?topnav=1&wvr=6","微博")}}},[n("a",[t._v("微博")])]),n("li",{class:{activeOn:"搜狗微信"===t.VUEPT},on:{click:function(e){return t.goHerf("http://weixin.sogou.com/","搜狗微信")}}},[n("a",[t._v("搜狗微信")])]),n("li",{class:{activeOn:"百度新闻"===t.VUEPT},on:{click:function(e){return t.goHerf("http://news.baidu.com/?tn=news","百度新闻")}}},[n("a",[t._v("百度新闻")])]),n("li",{class:{activeOn:"搜狗新闻"===t.VUEPT},on:{click:function(e){return t.goHerf("http://news.sogou.com/","搜狗新闻")}}},[n("a",[t._v("搜狗新闻")])]),n("li",{class:{activeOn:"360新闻"===t.VUEPT},on:{click:function(e){return t.goHerf("https://news.so.com/ns?q=广告","360新闻")}}},[n("a",[t._v("360新闻")])]),n("li",{class:{activeOn:"今日头条"===t.VUEPT},on:{click:function(e){return t.goHerf("https://www.toutiao.com/search/?keyword=","今日头条")}}},[n("a",[t._v("今日头条")])]),n("li",{class:{activeOn:"知乎"===t.VUEPT},on:{click:function(e){return t.goHerf("https://www.zhihu.com/search?type=content&q=","知乎")}}},[n("a",[t._v("知乎")])]),n("li",{class:{activeOn:"百度"===t.VUEPT},on:{click:function(e){return t.goHerf("https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&tn=baidu&wd=%E6%8A%96%E9%9F%B3","百度")}}},[n("a",[t._v("百度")])]),n("li",{class:{activeOn:"搜狗"===t.VUEPT},on:{click:function(e){return t.goHerf("https://www.sogou.com/","搜狗")}}},[n("a",[t._v("搜狗")])]),n("li",{class:{activeOn:"360搜索页"===t.VUEPT},on:{click:function(e){return t.goHerf("https://www.so.com/","360搜索页")}}},[n("a",[t._v("360搜索页")])])])])])},o=[],c={name:"left",data:function(){return{}},mounted:function(){console.log("left")},methods:{goHerf:function(t,e){window.open(t,"_blank")}}},r=c,i=(n("3d3c"),n("2877")),l=Object(i["a"])(r,a,o,!1,null,null,null),s=(l.exports,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"drag",rawName:"v-drag"}],staticClass:"header_PLUG_zhiwei",style:{left:t.left,top:t.top,right:t.left?"auto":"660px"}},[n("button",{staticClass:"all_plug_checkbox",attrs:{id:"all_plug_checkbox"}},[t._v("全选/取消")]),n("button",{staticClass:"checkUpMark",attrs:{id:"checkUp_mark"},on:{click:function(e){return t.checkHandle()}}},[t._v("检查是否标注")]),n("button",{on:{click:function(e){return e.stopPropagation(),t.selectCOpy()}}},[t._v("复制选中文本")])])}),u=[],f=n("4aa1"),d=f["a"],p=(n("f51f"),Object(i["a"])(d,s,u,!1,null,null,null));p.exports;console.log("笑笑笑笑2")},c6e2:function(t,e,n){},cf58:function(t,e,n){"use strict";(function(t){n("7514"),n("3b2b"),n("ac6a"),n("a481"),n("6762"),n("2fdb"),n("7f7f");var a=t("#chromeID").html(),o=[{name:"微博",text:"weiboStyle",field:["clientFrom","tag","publish","vType","fans","text","publishTwo","level","urlTwo","textTwo","txChannel","url"]},{name:"网媒",child:["微信","网媒","平媒","今日头条","自媒体","客户端","贴吧论坛","问答"],text:"mediaStyle",field:["rootPublish","clientFrom","tag","publish","level","text","txChannel","url"]},{name:"知乎",text:"zhihuStyle",field:["clientFrom","tag","text","textTwo","publish","browse","answer_count","follow","txChannel","url"]},{name:"视频",text:"videoStyle",field:["clientFrom","tag","publish","text","txChannel","url"]}],c=null,r=null,i=null,l=function(t){o.some(function(e){return e.name===t?(r=e.text,i=e.field,!0):e.child&&e.child.includes(t)?(r=e.text,i=e.field,!0):void 0}),chrome.runtime.sendMessage(a,{action:"getstrong",data:"copyString"},function(t){var e=t.data;c=e.copyString.data.data.copyStyle})};function s(t,e){var n=null;return n=e?c.weiboForwardStyle:"zhihuStyle"===r?c[r].replace(/(浏览:browse,评论:answer_count,关注:follow)/,""):c[r],i.forEach(function(e){var a=new RegExp("\\b"+e+"\\b","g"),o=new RegExp("\\s*[-@]?"+e+"-?","g"),c=new RegExp("[\\[\\((【]\\s*"+e+"\\s*[\\]\\))】]","g");e="text"===e?"contentTitle":e,n=t[e]||0===t[e]?n.replace(a,t[e]):c.test(n)?n.replace(c,""):n.replace(o,"")}),n}function u(e){var n=t('<textarea id="listcopy">');t(document.body).append(n),n.css({position:"fixed"});var a=t(e.currentTarget).parents(".card-wrap").find(".card-comment").length,o=JSON.parse(unescape(t(e.currentTarget).attr("data-value"))),c=s(o,a);n.val(c),n.focus(),t(e.target).html("OK"),n.select(),document.execCommand("copy"),n.remove()}var f=function(e){var n=t('<textarea id="listallcopy">'),a="";n.css({position:"fixed"}),t(document.body).append(n),e.forEach(function(t){var e=!!t.publishTwo,n=s(t,e);a+=""===a?"".concat(n):"\n".concat(n)}),n.val(a),n.focus(),n.select(),document.execCommand("copy"),n.remove()};t("body").on("click",".copy_button",function(t){u(t)}),e["a"]={onlyCopy:l,checkCopy:f}}).call(this,n("debc"))},d841:function(t,e,n){},f51f:function(t,e,n){"use strict";var a=n("c6e2"),o=n.n(a);o.a}}); (function(t){function e(e){for(var n,o,r=e[0],i=e[1],l=e[2],d=0,f=[];d<r.length;d++)o=r[d],s[o]&&f.push(s[o][0]),s[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n]);u&&u(e);while(f.length)f.shift()();return c.push.apply(c,l||[]),a()}function a(){for(var t,e=0;e<c.length;e++){for(var a=c[e],n=!0,r=1;r<a.length;r++){var i=a[r];0!==s[i]&&(n=!1)}n&&(c.splice(e--,1),t=o(o.s=a[0]))}return t}var n={},s={contentscript:0},c=[];function o(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=t,o.c=n,o.d=function(t,e,a){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(a,n,function(e){return t[e]}.bind(null,n));return a},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/out/";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],i=r.push.bind(r);r.push=e,r=r.slice();for(var l=0;l<r.length;l++)e(r[l]);var u=i;c.push([2,"chunk-vendors"]),a()})({0:function(t,e){},"07a4":function(t,e,a){"use strict";var n=a("2b0e"),s=a("591a");n["a"].use(s["a"]);var c=new s["a"].Store({state:{loading:!1,formObject:{project:null,user:null,selcettag:{}},datalist:[]},mutations:{uploading:function(t,e){t.loading=e},increment:function(t,e){t.datalist=JSON.parse(JSON.stringify(e))},setcheckParams:function(t,e){t.formObject=e},setcheckParamsTag:function(t,e){t.formObject.selcettag=e},updatadata:function(t,e){var a=e,n=t.datalist.map(function(t,e){return t.data.mark=a[e].mark,a[e].markstatus?t.data.markstatus=a[e].markstatus:(t.data.emotionType=a[e].emotionType,t.data.markstatus&&delete t.data.markstatus),t.data.start=!0,t});t.datalist=n}},actions:{},getters:{}});e["a"]=c},2:function(t,e,a){t.exports=a("c48b")},2104:function(t,e,a){"use strict";var n=a("8f53"),s=a.n(n);s.a},3:function(t,e){},"3d3c":function(t,e,a){"use strict";var n=a("d841"),s=a.n(n);s.a},4:function(t,e){},"4aa1":function(t,e,a){"use strict";(function(t){a("ac6a"),a("456d");var n=a("cf58"),s=a("07a4"),c=t("#chromeID").html();e["a"]={name:"hello_plug_center",data:function(){return{left:null,top:"100px"}},mounted:function(){var t=this;chrome.runtime.sendMessage(c,{action:"getstrong",data:"movedata"},function(e){if(Object.keys(e.data).length>0&&e.data.movedata){var a=e.data;t.left=a.movedata.left,t.top=a.movedata.top}})},methods:{selectCOpy:function(){if(s["a"].state.datalist.length<1)return alert("未选中任何数据"),!1;t("body").append("<div class='zhiwei_toast showtoast'>已复制成功</div>"),setTimeout(function(){t(".zhiwei_toast").remove()},3e3);var e=s["a"].state.datalist.map(function(t){return t.data});n["a"].checkCopy(e)},checkHandle:function(){return s["a"].state.datalist.length<1?(alert("请选择需要检索的数据"),!1):s["a"].state.formObject.project?(s["a"].commit("uploading",!0),t(".select_plugdata_list").scrollTop(0),void chrome.runtime.sendMessage(c,{action:"checkUpmark",value:s["a"].state.datalist,params:s["a"].state.formObject},function(t){t.data&&(s["a"].commit("uploading",!1),s["a"].commit("updatadata",t.data.mark),"知乎"===selectPt.pt||selectPt.pt,console.log(selectPt.template))})):(alert("请选择项目"),!1)}},directives:{drag:function(t,e){t.onmousedown=function(e){var a=e.clientX-t.offsetLeft,n=e.clientY-t.offsetTop;document.onmousemove=function(e){var s=e.clientX-a,o=e.clientY-n;t.style.left=s+"px",t.style.top=o+"px",t.style.right="auto",chrome.runtime.sendMessage(c,{action:"SetStrong",data:{movedata:{left:s+"px",top:o+"px"}}})},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}}}}}}).call(this,a("debc"))},"77d2":function(t,e,a){var n={"./af":"fbac","./af.js":"fbac","./ar":"f96f","./ar-dz":"e63c","./ar-dz.js":"e63c","./ar-kw":"b7bd","./ar-kw.js":"b7bd","./ar-ly":"968f","./ar-ly.js":"968f","./ar-ma":"9f9d","./ar-ma.js":"9f9d","./ar-sa":"aea5","./ar-sa.js":"aea5","./ar-tn":"d44b","./ar-tn.js":"d44b","./ar.js":"f96f","./az":"c7ed","./az.js":"c7ed","./be":"5a28","./be.js":"5a28","./bg":"1251","./bg.js":"1251","./bm":"2809","./bm.js":"2809","./bn":"b4fc","./bn.js":"b4fc","./bo":"5484","./bo.js":"5484","./br":"5adc","./br.js":"5adc","./bs":"ac10","./bs.js":"ac10","./ca":"e381","./ca.js":"e381","./cs":"aef2","./cs.js":"aef2","./cv":"6566","./cv.js":"6566","./cy":"1390","./cy.js":"1390","./da":"1ece","./da.js":"1ece","./de":"5f10","./de-at":"09c4","./de-at.js":"09c4","./de-ch":"89a2","./de-ch.js":"89a2","./de.js":"5f10","./dv":"e662","./dv.js":"e662","./el":"196b","./el.js":"196b","./en-SG":"0a32","./en-SG.js":"0a32","./en-au":"94ed","./en-au.js":"94ed","./en-ca":"2806","./en-ca.js":"2806","./en-gb":"b0dd","./en-gb.js":"b0dd","./en-ie":"7a6e","./en-ie.js":"7a6e","./en-il":"1f0f","./en-il.js":"1f0f","./en-nz":"1606","./en-nz.js":"1606","./eo":"f214","./eo.js":"f214","./es":"7d58","./es-do":"737b","./es-do.js":"737b","./es-us":"a894","./es-us.js":"a894","./es.js":"7d58","./et":"a888","./et.js":"a888","./eu":"1357","./eu.js":"1357","./fa":"0a48","./fa.js":"0a48","./fi":"c2b1","./fi.js":"c2b1","./fo":"52c4","./fo.js":"52c4","./fr":"04e6","./fr-ca":"6ad1","./fr-ca.js":"6ad1","./fr-ch":"b12f","./fr-ch.js":"b12f","./fr.js":"04e6","./fy":"ad13","./fy.js":"ad13","./ga":"369e","./ga.js":"369e","./gd":"22de","./gd.js":"22de","./gl":"f808","./gl.js":"f808","./gom-latn":"50d5","./gom-latn.js":"50d5","./gu":"e67a","./gu.js":"e67a","./he":"037c","./he.js":"037c","./hi":"3d53","./hi.js":"3d53","./hr":"678b","./hr.js":"678b","./hu":"1783","./hu.js":"1783","./hy-am":"2873","./hy-am.js":"2873","./id":"de99","./id.js":"de99","./is":"6aa2","./is.js":"6aa2","./it":"1f93","./it-ch":"2db9","./it-ch.js":"2db9","./it.js":"1f93","./ja":"6bf8","./ja.js":"6bf8","./jv":"6e55","./jv.js":"6e55","./ka":"e65f","./ka.js":"e65f","./kk":"7167","./kk.js":"7167","./km":"4668","./km.js":"4668","./kn":"e3d2","./kn.js":"e3d2","./ko":"b058","./ko.js":"b058","./ku":"017e","./ku.js":"017e","./ky":"b2bd","./ky.js":"b2bd","./lb":"e50c","./lb.js":"e50c","./lo":"ca14","./lo.js":"ca14","./lt":"3e84","./lt.js":"3e84","./lv":"ce1d","./lv.js":"ce1d","./me":"9d38","./me.js":"9d38","./mi":"3e2e","./mi.js":"3e2e","./mk":"d532","./mk.js":"d532","./ml":"db61","./ml.js":"db61","./mn":"7493","./mn.js":"7493","./mr":"52d8","./mr.js":"52d8","./ms":"b559","./ms-my":"7462","./ms-my.js":"7462","./ms.js":"b559","./mt":"c055","./mt.js":"c055","./my":"49e0","./my.js":"49e0","./nb":"eb1c","./nb.js":"eb1c","./ne":"0acb","./ne.js":"0acb","./nl":"7497","./nl-be":"3114","./nl-be.js":"3114","./nl.js":"7497","./nn":"9a9c","./nn.js":"9a9c","./pa-in":"c595","./pa-in.js":"c595","./pl":"801c","./pl.js":"801c","./pt":"5b08","./pt-br":"155f","./pt-br.js":"155f","./pt.js":"5b08","./ro":"05fc","./ro.js":"05fc","./ru":"90b3","./ru.js":"90b3","./sd":"99bf","./sd.js":"99bf","./se":"20d6","./se.js":"20d6","./si":"7c0b","./si.js":"7c0b","./sk":"90fc","./sk.js":"90fc","./sl":"871b","./sl.js":"871b","./sq":"b045","./sq.js":"b045","./sr":"ac81","./sr-cyrl":"a2d0","./sr-cyrl.js":"a2d0","./sr.js":"ac81","./ss":"b093","./ss.js":"b093","./sv":"12e5","./sv.js":"12e5","./sw":"38a0","./sw.js":"38a0","./ta":"a462","./ta.js":"a462","./te":"18cb","./te.js":"18cb","./tet":"0c11","./tet.js":"0c11","./tg":"d707","./tg.js":"d707","./th":"883f","./th.js":"883f","./tl-ph":"6cc0","./tl-ph.js":"6cc0","./tlh":"ab53","./tlh.js":"ab53","./tr":"e523","./tr.js":"e523","./tzl":"b192","./tzl.js":"b192","./tzm":"5604","./tzm-latn":"9f95","./tzm-latn.js":"9f95","./tzm.js":"5604","./ug-cn":"9f4f","./ug-cn.js":"9f4f","./uk":"8bd6","./uk.js":"8bd6","./ur":"9a78","./ur.js":"9a78","./uz":"4d4c","./uz-latn":"da73","./uz-latn.js":"da73","./uz.js":"4d4c","./vi":"b766","./vi.js":"b766","./x-pseudo":"2a69","./x-pseudo.js":"2a69","./yo":"fd2e","./yo.js":"fd2e","./zh-cn":"35d0","./zh-cn.js":"35d0","./zh-hk":"7b45","./zh-hk.js":"7b45","./zh-tw":"fa66","./zh-tw.js":"fa66"};function s(t){var e=c(t);return a(e)}function c(t){var e=n[t];if(!(e+1)){var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}return e}s.keys=function(){return Object.keys(n)},s.resolve=c,t.exports=s,s.id="77d2"},"8f53":function(t,e,a){},c48b:function(t,e,a){"use strict";a.r(e);a("cadf"),a("551c"),a("f751"),a("097d"),a("8c92"),a("7f43"),a("07a4");var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello_plug",attrs:{id:"hello_plug"}},[a("div",[a("h5",[t._v("快捷链接")]),a("ul",[a("li",{class:{activeOn:"微博"===t.VUEPT},on:{click:function(e){return t.goHerf("http://s.weibo.com/?topnav=1&wvr=6","微博")}}},[a("a",[t._v("微博")])]),a("li",{class:{activeOn:"搜狗微信"===t.VUEPT},on:{click:function(e){return t.goHerf("http://weixin.sogou.com/","搜狗微信")}}},[a("a",[t._v("搜狗微信")])]),a("li",{class:{activeOn:"百度新闻"===t.VUEPT},on:{click:function(e){return t.goHerf("http://news.baidu.com/?tn=news","百度新闻")}}},[a("a",[t._v("百度新闻")])]),a("li",{class:{activeOn:"搜狗新闻"===t.VUEPT},on:{click:function(e){return t.goHerf("http://news.sogou.com/","搜狗新闻")}}},[a("a",[t._v("搜狗新闻")])]),a("li",{class:{activeOn:"360新闻"===t.VUEPT},on:{click:function(e){return t.goHerf("https://news.so.com/ns?q=广告","360新闻")}}},[a("a",[t._v("360新闻")])]),a("li",{class:{activeOn:"今日头条"===t.VUEPT},on:{click:function(e){return t.goHerf("https://www.toutiao.com/search/?keyword=","今日头条")}}},[a("a",[t._v("今日头条")])]),a("li",{class:{activeOn:"知乎"===t.VUEPT},on:{click:function(e){return t.goHerf("https://www.zhihu.com/search?type=content&q=","知乎")}}},[a("a",[t._v("知乎")])]),a("li",{class:{activeOn:"百度"===t.VUEPT},on:{click:function(e){return t.goHerf("https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&tn=baidu&wd=%E6%8A%96%E9%9F%B3","百度")}}},[a("a",[t._v("百度")])]),a("li",{class:{activeOn:"搜狗"===t.VUEPT},on:{click:function(e){return t.goHerf("https://www.sogou.com/","搜狗")}}},[a("a",[t._v("搜狗")])]),a("li",{class:{activeOn:"360搜索页"===t.VUEPT},on:{click:function(e){return t.goHerf("https://www.so.com/","360搜索页")}}},[a("a",[t._v("360搜索页")])])])])])},s=[],c={name:"left",data:function(){return{}},mounted:function(){console.log("left")},methods:{goHerf:function(t,e){window.open(t,"_blank")}}},o=c,r=(a("3d3c"),a("2877")),i=Object(r["a"])(o,n,s,!1,null,null,null),l=(i.exports,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"drag",rawName:"v-drag"}],staticClass:"header_PLUG_zhiwei",style:{left:t.left,top:t.top,right:t.left?"auto":"660px"}},[a("button",{staticClass:"all_plug_checkbox",attrs:{id:"all_plug_checkbox"}},[t._v("全选/取消")]),a("button",{staticClass:"checkUpMark",attrs:{id:"checkUp_mark"},on:{click:function(e){return t.checkHandle()}}},[t._v("检查是否标注")]),a("button",{on:{click:function(e){return e.stopPropagation(),t.selectCOpy()}}},[t._v("复制选中文本")])])}),u=[],d=a("4aa1"),f=d["a"],m=(a("f51f"),Object(r["a"])(f,l,u,!1,null,null,null)),p=(m.exports,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello_plug_right",class:{littleWidth:!t.status},attrs:{id:"hello_plug_right"}},[a("div",{staticClass:"toggleSHOW",on:{click:t.activeToggle}},[t._v(t._s(t.status?">":"<"))]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.status,expression:"status"}],staticClass:"plug_content"},[a("div",{staticClass:"input_select_box"},[t.projectList?a("select",{directives:[{name:"model",rawName:"v-model",value:t.formObject.project,expression:"formObject.project"}],attrs:{name:"project"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){var e="_value"in t?t._value:t.value;return e});t.$set(t.formObject,"project",e.target.multiple?a:a[0])}}},t._l(t.projectList,function(e){return a("option",[t._v(t._s(e.groupName))])}),0):t._e(),a("select",{directives:[{name:"model",rawName:"v-model",value:t.formObject.user,expression:"formObject.user"}],attrs:{name:"project"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){var e="_value"in t?t._value:t.value;return e});t.$set(t.formObject,"user",e.target.multiple?a:a[0])}}},t._l(t.list.userList,function(e){return a("option",[t._v(t._s(e))])}),0)]),"搜狗"!==t.VUEPT&&"360搜索页"!==t.VUEPT&&"百度"!==t.VUEPT&&"知乎"!==t.VUEPT?a("div",{staticClass:"tag_select_box"},t._l(t.list.tagGroup,function(e){return t.list.tagGroup?a("div",{staticClass:"taggROUP"},[a("label",[t._v(t._s(e.tagName))]),a("h6"),a("ul",{staticClass:"plug_taglist"},[t._l(e.emotionList,function(n){return a("li",{key:n.emotionId,class:{onActive:t.formObject.selcettag[e.tagName]===n.emotionId},on:{click:function(a){return t.selectTAG(e.tagName,n)}}},[t._v("\n "+t._s(n.emotionName)+"\n ")])}),a("li",{class:{onActive:""===t.formObject.selcettag[e.tagName]},on:{click:function(a){return t.selectTAG(e.tagName)}}},[t._v("无")])],2)]):t._e()}),0):t._e(),a("p",[a("span",[t._v("已选择:"),a("em",[t._v(t._s(t.store.state.datalist.length))]),t._v("条信息")])]),a("div",{staticClass:"handle_plug_button"},["搜狗"!==t.VUEPT&&"360搜索页"!==t.VUEPT&&"百度"!==t.VUEPT&&"知乎"!==t.VUEPT?a("button",{staticClass:"zhiwei_Mark",on:{click:function(e){return t.doingMark()}}},[t._v("标注")]):t._e(),a("button",{on:{click:function(e){return t.downloadExcel()}}},[t._v("Excel下载")])]),a("div",{staticClass:"select_plugdata_list",style:{"overflow-y":t.loading?"hidden":"auto"}},[t.loading?a("div",{staticClass:"loading_icon"},[t._v("\n 拼命加载中\n ")]):t._e(),t.datalist?a("ul",t._l(t.datalist,function(e){return a("li",[a("h6",[e.data.start&&!e.data.markstatus?a("label",{staticClass:"icon_plug_Tagging",class:{ISplugmark:e.data.mark}},[t._v(t._s(e.data.mark?"已标注":"未标注")+t._s(e.data.tagname?"-"+e.data.tagname:null))]):t._e(),e.data.markstatus?a("label",{staticClass:"icon_plug_Tagging",class:{ISplugmark:e.data.mark,errormark:"标注失败"===e.data.markstatus,successmark:"标注成功"===e.data.markstatus}},[t._v(t._s(e.data.markstatus))]):t._e(),t._v("\n "+t._s(e.data.title)+"\n ")]),a("div",[a("span",[t._v("来源:"+t._s(e.data.source))]),a("span",[t._v("时间:"+t._s(e.data.time))])])])}),0):t._e()])])])}),j=[],b=a("e5e6"),h=b["a"],g=(a("2104"),Object(r["a"])(h,p,j,!1,null,null,null));g.exports;console.log("笑笑笑笑3");var v=document.createElement("div");v.setAttribute("id","newbodyleft");var _=document.createElement("div");_.setAttribute("id","all_plug_checkbox_center");var k=document.createElement("div");k.setAttribute("id","newbodyright")},c6e2:function(t,e,a){},cf58:function(t,e,a){"use strict";(function(t){a("7514"),a("3b2b"),a("ac6a"),a("a481"),a("6762"),a("2fdb"),a("7f7f");var n=t("#chromeID").html(),s=[{name:"微博",text:"weiboStyle",field:["clientFrom","tag","publish","vType","fans","text","publishTwo","level","urlTwo","textTwo","txChannel","url"]},{name:"网媒",child:["微信","网媒","平媒","今日头条","自媒体","客户端","贴吧论坛","问答"],text:"mediaStyle",field:["rootPublish","clientFrom","tag","publish","level","text","txChannel","url"]},{name:"知乎",text:"zhihuStyle",field:["clientFrom","tag","text","textTwo","publish","browse","answer_count","follow","txChannel","url"]},{name:"视频",text:"videoStyle",field:["clientFrom","tag","publish","text","txChannel","url"]}],c=null,o=null,r=null,i=function(t){s.some(function(e){return e.name===t?(o=e.text,r=e.field,!0):e.child&&e.child.includes(t)?(o=e.text,r=e.field,!0):void 0}),chrome.runtime.sendMessage(n,{action:"getstrong",data:"copyString"},function(t){var e=t.data;c=e.copyString.data.data.copyStyle})};function l(t,e){var a=null;return a=e?c.weiboForwardStyle:"zhihuStyle"===o?c[o].replace(/(浏览:browse,评论:answer_count,关注:follow)/,""):c[o],r.forEach(function(e){var n=new RegExp("\\b"+e+"\\b","g"),s=new RegExp("\\s*[-@]?"+e+"-?","g"),c=new RegExp("[\\[\\((【]\\s*"+e+"\\s*[\\]\\))】]","g");e="text"===e?"contentTitle":e,a=t[e]||0===t[e]?a.replace(n,t[e]):c.test(a)?a.replace(c,""):a.replace(s,"")}),a}function u(e){var a=t('<textarea id="listcopy">');t(document.body).append(a),a.css({position:"fixed"});var n=t(e.currentTarget).parents(".card-wrap").find(".card-comment").length,s=JSON.parse(unescape(t(e.currentTarget).attr("data-value"))),c=l(s,n);a.val(c),a.focus(),t(e.target).html("OK"),a.select(),document.execCommand("copy"),a.remove()}var d=function(e){var a=t('<textarea id="listallcopy">'),n="";a.css({position:"fixed"}),t(document.body).append(a),e.forEach(function(t){var e=!!t.publishTwo,a=l(t,e);n+=""===n?"".concat(a):"\n".concat(a)}),a.val(n),a.focus(),a.select(),document.execCommand("copy"),a.remove()};t("body").on("click",".copy_button",function(t){u(t)}),e["a"]={onlyCopy:i,checkCopy:d}}).call(this,a("debc"))},d841:function(t,e,a){},e5e6:function(t,e,a){"use strict";(function(t){a("8615");var n=a("75fc"),s=(a("4917"),a("7514"),a("ac6a"),a("456d"),a("cf58")),c=a("07a4"),o=a("e429"),r=a.n(o),i=a("6bf2"),l=a.n(i),u=t("#chromeID").html();e["a"]={name:"hello_plug_right",data:function(){return{copystring:null,status:!0,loading:!1,excelData:null,excelTitle:null,store:c["a"],datalist:null,projectList:null,formObject:{project:null,user:null,selcettag:{}}}},mounted:function(){var t=this,e=["configure","project","user"];e.forEach(function(e){chrome.runtime.sendMessage(u,{action:"getstrong",data:e},function(e){var a=e.data;a.configure?t.projectList=a.configure:a.project?t.formObject.project=a.project:a.user&&(t.formObject.user=a.user)})}),this.formObject.project=this.formObject.project?this.formObject.project:"",chrome.runtime.sendMessage(u,{action:"getstrong",data:"rightStatue"},function(e){var a=e.data;Object.keys(a).length>0&&(t.status=a.rightStatue)})},computed:{storeformObject:function(){return{project:this.formObject.project,user:this.formObject.user,selcettag:this.formObject.selcettag}},list:function(){var t=this;if(this.formObject.user=null,this.projectList&&this.formObject.project){var e=this.projectList.find(function(e){return e.groupName===t.formObject.project});return e}return{userList:[]}}},watch:{storeformObject:function(t){c["a"].commit("setcheckParams",t)},"store.state.loading":function(t){this.loading=t},"store.state.datalist":function(t){var e=this;if(0===t.length)return this.datalist=t,!1;t[0].data.start&&!t[0].data.markstatus?this.datalist=t.map(function(t){if(t.data.emotionType&&""!=t.data.emotionType?t.data.mark=!0:t.data.mark=!1,t.data.mark&&t.data.emotionType&&""!=t.data.emotionType){var a=t.data.emotionType.match(/(,\d+=\d+)/gi),s=[];e.list.tagGroup.forEach(function(t){s.push.apply(s,Object(n["a"])(t.emotionList))});return t.data.tagname=a.map(function(t){var e=s.find(function(e){return e.emotionId===t}).emotionName;return e}),t}return t}):this.datalist=t},"store.state.formObject.selcettag":function(t){this.formObject.selcettag=t},"formObject.project":function(t){chrome.runtime.sendMessage(u,{action:"SetStrong",data:{project:t}}),this.sendbackground(t)},"formObject.user":function(t){chrome.runtime.sendMessage(u,{action:"SetStrong",data:{user:t}})}},methods:{sendbackground:function(t){var e=this,a=t||"";chrome.runtime.sendMessage(u,{action:"xhttp",params:{project:a},url:"interface/getcopystyle"},function(t){var a=t;chrome.runtime.sendMessage(u,{action:"SetStrong",data:{copyString:a}}),s["a"].onlyCopy(e.VUETYPE)})},activeToggle:function(){this.status=!this.status,chrome.runtime.sendMessage(u,{action:"SetStrong",data:{rightStatue:this.status}})},downloadExcel:function(){if(c["a"].state.datalist.length<1)return alert("请选择需要下载的数据"),!1;var t=["title","source","text","url","time"],e=c["a"].state.datalist.map(function(t){var e=t.data;return[e.title,e.source,e.text,e.url,e.time]});this.excelData=[t].concat(e),this.excelTitle=this.VUEPT,this.doit()},doit:function(){var t=r.a.utils.book_new(),e=r.a.utils.aoa_to_sheet(this.excelData);r.a.utils.book_append_sheet(t,e,"sheet"),r.a.writeFile(t,"".concat(this.excelTitle).concat(l()().format("YYYY-MM-DD HH:mm"),".xlsx"),{compression:!0})},selectTAG:function(t,e){this.formObject.selcettag[t]=e?e.emotionId:"",this.formObject.selcettag=Object.assign({},this.formObject.selcettag)},doingMark:function(){var e=this,a=this;if(c["a"].state.datalist.length<1)return alert("请选择数据"),!1;var n=JSON.parse(JSON.stringify(this.formObject.selcettag)),s=Object.values(n),o="";s.forEach(function(t){o+=t});var r=c["a"].state.datalist.map(function(t){return t.data}).filter(function(t){return!t.mark});if(0===r.length)return!1;var i={company:this.formObject.project,marks:r,name:this.formObject.user,type:o,pt:c["a"].state.datalist[0].data.clientFrom},d={};if(Object.keys(this.formObject.selcettag).forEach(function(t){""!==e.formObject.selcettag[t]&&(d[t]=e.formObject.selcettag[t])}),!this.formObject.project||!this.formObject.user)return alert("请选择项目与操作者"),!1;if(Object.keys(d).length<1)return alert("请选择标注类型"),!1;this.loading=!0,t(".select_plugdata_list").scrollTop(0);var f=JSON.parse(JSON.stringify(i));f.marks.forEach(function(t){/(\d{4})-(\d{0,2})-(\d{0,2})\s*/.test(t.time)&&(console.log(t.time),console.log(11111),t.time=l()(t.time).valueOf())}),chrome.runtime.sendMessage(u,{action:"doingMark",value:f},function(t){t.data&&(a.loading=!1,c["a"].commit("updatadata",t.data.marks))})}}}}).call(this,a("debc"))},f51f:function(t,e,a){"use strict";var n=a("c6e2"),s=a.n(n);s.a}});
//# sourceMappingURL=contentscript.js.map //# sourceMappingURL=contentscript.js.map
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment