Commit c9412852 by chencong

修改test文件下的构建文件

parent ad63e55e
@charset "UTF-8";.toutiao_plug_box[data-v-d68d2998]{margin-left:200px;text-align:left;padding:43px 0 20px;height:90%;overflow-y:auto}.toutiao_plug_box .header_tt_radio span[data-v-d68d2998]{vertical-align:middle;margin-right:15px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.toutiao_plug_box .toutiao_contents[data-v-d68d2998]{margin-top:50px}.toutiao_plug_box .toutiao_contents .content[data-v-d68d2998]{width:100%}.toutiao_plug_box .toutiao_contents .content h3[data-v-d68d2998]{font-size:18px;color:#222;line-height:1.3;margin-bottom:4px;font-weight:700;max-height:52px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}.toutiao_plug_box .toutiao_contents .content h3[data-v-d68d2998]:hover{color:#000042}.toutiao_plug_box .toutiao_contents .content .timeAndsouse[data-v-d68d2998]{display:inline-block;color:#777;font-size:14px;line-height:1.3;margin-top:5px}.toutiao_plug_box .toutiao_contents .content .contents_text[data-v-d68d2998]{word-wrap:break-word;line-height:1.3;margin-top:5px}.toutiao_plug_box .plug_checkbox_foot[data-v-d68d2998]{right:0}.toutiao_plug_box .search_plug_input[data-v-d68d2998]{max-width:1000px;margin-top:20px;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.toutiao_plug_box .search_plug_input img[data-v-d68d2998]{display:inline-block;width:110px;height:27px;margin-top:4px}.toutiao_plug_box .search_plug_input input[data-v-d68d2998]{width:80%;padding:5px 10px;outline:none}.toutiao_plug_box .search_plug_input button[data-v-d68d2998]{padding:5px 10px;vertical-align:middle;border:0;margin:0 10px;outline:none}.toutiao_plug_box .toutiao_contents li[data-v-d68d2998]{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:1000px;max-width:1000px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-orient:horizontal;-webkit-box-direction:normal;border-width:1px;border-style:solid;border-color:#ccc;-o-border-image:initial;border-image:initial;-ms-flex-flow:row nowrap;flex-flow:row nowrap;padding:10px 210px 10px 10px;margin:0 0 15px}.toutiao_plug_box .toutiao_contents li img[data-v-d68d2998]{width:80px;height:80px;margin:10px!important;-ms-flex-negative:0;flex-shrink:0}.toutiao_plug_box .pages[data-v-d68d2998]{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.toutiao_plug_box .pages button[data-v-d68d2998]{margin-right:20px}.zhihu_plug_template[data-v-7fb45a58]{margin-left:200px;text-align:left;height:100%;overflow-y:auto}.zhihu_plug_template .search_plug_input[data-v-7fb45a58]{margin-top:20px}.zhihu_plug_template .search_plug_input button[data-v-7fb45a58]{margin-right:7px;background:#00b7ee;padding:3px 15px;border-radius:3px;outline:none;border-width:0;border-style:initial;border-color:initial;-o-border-image:initial;border-image:initial}.zhihu_plug_template .search_plug_input>span[data-v-7fb45a58]{color:#0084ff;font-size:15px}.zhihu_plug_template .search_plug_input input[type=search][data-v-7fb45a58]{width:450px;padding:5px 10px;outline:none;margin:0 10px}.zhihu_plug_template .content-list[data-v-7fb45a58]{margin-top:5%;height:calc(95% - 130px);overflow-y:auto}.zhihu_plug_template #list_zhihu li[data-v-7fb45a58]{background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:1000px;max-width:1000px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row nowrap;padding:10px 210px 10px 10px;margin:0 0 15px}.zhihu_plug_template #list_zhihu li[data-v-7fb45a58] em{font-style:normal;color:#f1403c}.zhihu_plug_template #list_zhihu li .content>a>h2[data-v-7fb45a58]{font-size:16px;margin-bottom:10px;font-weight:600;font-synthesis:style;line-height:1.6}.zhihu_plug_template #list_zhihu li .content>p[data-v-7fb45a58]{margin-bottom:10px;color:#444}.zhihu_plug_template #list_zhihu li .source_time[data-v-7fb45a58]{color:#1a1a1a}.zhihu_plug_template #list_zhihu li .source_time>span>b[data-v-7fb45a58]{font-weight:600!important}.zhihu_plug_template .pages[data-v-7fb45a58]{height:50px;line-height:50px}.zhihu_plug_template .pages button[data-v-7fb45a58]{margin-right:40px}.hello_plug{position:fixed;top:0;padding-top:55px;z-index:100000;left:0;width:100px;text-align:center;background:#fff;-webkit-box-shadow:0 0 20px rgba(0,0,0,.4);box-shadow:0 0 20px rgba(0,0,0,.4);height:calc(100% - 55px);font-size:13px}.hello_plug h5{font-weight:700;color:#999;margin:20px 0}.hello_plug li{padding:5px 0;cursor:pointer;font-style:normal;list-style:none;margin-bottom:10px}.hello_plug li:hover a{color:#000}.hello_plug li.activeOn{background:#00b7ee}.hello_plug li a{display:block;color:#333;text-decoration:none}.header_PLUG_zhiwei{position:fixed;top:100px;right:660px;width:auto;background:#00b7ee;cursor:move;padding:5px 10px;z-index:10003}.header_PLUG_zhiwei button{font-size:13px;margin-right:10px;padding:6px 8px;background:#fff;outline:none;-webkit-transition:all .1s ease 0s;transition:all .1s ease 0s;border-radius:4px;border:1px solid #dcdfe6}.header_PLUG_zhiwei button:hover{cursor:pointer;color:#3a8ee6;border-color:#3a8ee6;outline:none}.hello_plug_right{position:fixed;top:0;bottom:0;z-index:10000;right:0;width:600px;padding:55px 10px 10px;text-align:left;background:#fff;-webkit-box-shadow:0 0 20px rgba(0,0,0,.4);box-shadow:0 0 20px rgba(0,0,0,.4);height:calc(100% - 55px);font-size:13px;-webkit-transition:width .3s;transition:width .3s}.hello_plug_right.littleWidth{width:0}.hello_plug_right .toggleSHOW{background-color:#363e4f;color:#fff;font-size:30px;top:23px;left:-33px;width:35px;height:35px;line-height:35px;position:absolute;text-align:center;-webkit-transform:translate(50%,-50%) rotate(0deg);transform:translate(50%,-50%) rotate(0deg);z-index:1000;border-radius:50%;-webkit-transition:all .2s ease 0s;transition:all .2s ease 0s;cursor:pointer}.hello_plug_right .header_PLUG_button{margin-bottom:10px;padding:5px 0;border-bottom:1px solid #ccc}.hello_plug_right .header_PLUG_button button{margin-right:15px;display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #dcdfe6;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;-webkit-transition:.1s;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:12px 10px;font-size:14px!important;font-family:"\5FAE\8F6F\96C5\9ED1"!important;border-radius:4px}.hello_plug_right .header_PLUG_button button:hover{cursor:pointer;color:#3a8ee6;border-color:#3a8ee6;outline:none}.hello_plug_right .plug_content{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.hello_plug_right .plug_content>p{margin-bottom:10px}.hello_plug_right select{width:100px;outline:none;margin-right:10px;height:35px;line-height:35px;border:1px solid #ccc}.hello_plug_right .input_select_box{text-align:left}.hello_plug_right .tag_select_box{margin-top:15px;margin-bottom:18px}.hello_plug_right .taggROUP{position:relative;padding:10px 0 0}.hello_plug_right .taggROUP h6{height:0;border-bottom:1px dashed #8cbeb2;margin:10px 0}.hello_plug_right .taggROUP label{display:inline-block;position:absolute;top:6px;left:20px;font-weight:700;background:#fff;-ms-flex-negative:0;flex-shrink:0;padding:0 8px;border-radius:3px}.hello_plug_right .plug_taglist{margin-bottom:20px;margin-left:0;margin-bottom:0;text-align:left}.hello_plug_right .plug_taglist li{display:inline-block;margin-right:10px;margin-bottom:5px;text-align:left;border:1px solid #ccc;padding:6px 8px;border-radius:4px;cursor:pointer;font-size:13px}.hello_plug_right .plug_taglist li.onActive{background:#deb887}.hello_plug_right .handle_plug_button span{margin-right:7px}.hello_plug_right .handle_plug_button button{background:#deb887;padding:3px 15px;border-radius:3px;outline:none;border:0;margin-right:7px}.hello_plug_right .handle_plug_button button.zhiwei_Mark{background:#00b7ee}.hello_plug_right .handle_plug_button button.checkUpMark{background:#deb887}.select_plugdata_list{margin-top:15px;position:relative;padding-bottom:20px;-webkit-box-flex:1;padding:5px 0!important;margin:5px 0!important;overflow-y:auto;-ms-flex:1 1 auto;flex:1 1 auto;box-flex:1.0}.select_plugdata_list .loading_icon{position:absolute;width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#fff;background:rgba(0,0,0,.5)}.select_plugdata_list li{padding-bottom:5px;margin-bottom:10px;border-bottom:1px solid #ccc!important}.select_plugdata_list li h6{margin:0!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;color:#00c;font-weight:400;margin-bottom:5px}.select_plugdata_list li h6>label{color:#1a1a1a;border-radius:3px;display:inline-block;padding:0 4px}.select_plugdata_list li span{margin-right:10px}.select_plugdata_list .icon_plug_Tagging{padding:2px;border-radius:4px;background:#ff6c60;margin-right:6px}.select_plugdata_list .icon_plug_Tagging.ISplugmark{background:#00b7ee}.select_plugdata_list .icon_plug_Tagging.errormark{background:#ffa600}.select_plugdata_list .icon_plug_Tagging.successmark{background:#23b9a9}#chromeID{display:none;position:fixed;left:-10000px}body,html{height:100%;position:relative}#main.soxinwen_Plug{max-width:auto;min-width:700px}#main.soxinwen_Plug li{width:1000px;height:120px}.soxinwen_Plug #news{width:100%}.soxinwen_Plug #news li{border-bottom:1px solid #ebebeb}#sogouNews .vrwrap,.card-wrap{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:10px 205px 10px 10px}.plug_checkbox_foot{position:absolute;top:0;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;right:-150px;padding:0 20px;border-left:1px solid #ebebeb}.plug_checkbox_foot>span{cursor:pointer}.plug_checkbox_foot span.checkbox_plug_i{display:inline-block;width:35px;height:35px;position:relative;margin-right:15px}.plug_checkbox_foot span.checkbox_plug_i input{width:100%;height:100%;cursor:pointer}.plug_all_button{position:fixed;top:0;text-align:center;background:#ebeef3;width:100%;left:0;right:40%;z-index:5000;padding:5px 0}.plug_all_button button{padding:1px 6px;margin-right:15px}.wordelices{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;max-height:45px}#weiboSearch .m-main{width:70%;min-width:1200px;margin:0;padding-left:120px}#weiboSearch .m-main .m-con-l{width:850px}#weiboSearch .plug_checkbox_foot{right:0;padding:0}#weiboSearch .m-search .action{float:left}#sogouWeixin .header,#sogouWeixin .wrapper{margin:0 100px}#sogouWeixin .wrapper{margin-top:100px;margin-left:163px}#sogouNews #wrapper,#sogouNews .header{margin:0 120px 0}#sogouNews #wrapper{padding-left:0}#sogouNews .vrwrap{padding:0}#sogouWeb #right{display:none}#sogouWeb #wrapper{margin:0 120px}#sogouWeb .header .header-box{margin:0 225px}.newsoNews .img-txt .r-content{float:none;margin-left:250px}.newsoNews #news li{padding-left:20px;margin-top:30px}.newsoNews #bd_related{padding-left:40px}#sogouWeb .main .vrwrap{-webkit-box-sizing:border-box!important;box-sizing:border-box!important;position:relative!important;border-width:1px!important;border-style:solid!important;border-color:#ccc!important;-o-border-image:initial!important;border-image:initial!important;padding:15px}#sogouWeb .vrwrap,#sogouWeixin .news-list li,#zhiwei_baiduNews .result,.newsoNews ul.result li{position:relative}#sogouWeixin .news-list li{-webkit-box-sizing:border-box!important;box-sizing:border-box!important;width:1000px!important;position:relative!important;padding:10px 210px 10px 10px!important;border-width:1px!important;border-style:solid!important;border-color:#ccc!important;-o-border-image:initial!important;border-image:initial!important}#sogouWeixin .news-list li .plug_checkbox_foot,.zhihu_plug_template .plug_checkbox_foot{right:0}#sogouWeixin .snb-right{display:none}#zhiwei_baiduNews .result{padding:0 10px}#zhiwei_baiduNews #body,#zhiwei_baiduNews #head,#zhiwei_baiduNews #header{margin:0 120px}#moveRight{position:fixed;top:10px;right:377px;z-index:10000;width:100px;background:red;text-align:center;cursor:pointer}.button-get-user-info{margin-left:14px;width:90px!important}.button-get-user-info,.copy_button,.wb_copy_button{width:90px;text-align:center;height:25px;line-height:25px;border:1px solid #dcdfe6;padding:0;border-radius:3px;font-size:13px}.button-get-user-info:hover,.copy_button:hover,.wb_copy_button:hover{cursor:pointer;color:#3a8ee6;border-color:#3a8ee6;outline:none}.zhiwei_plug_button{margin-right:15px;display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px!important;font-family:微软雅黑!important;background:#fff;border-width:1px;border-style:solid;border-color:#dcdfe6;-o-border-image:initial;border-image:initial;outline:none;-webkit-transition:all .1s ease 0s;transition:all .1s ease 0s;padding:12px 10px;border-radius:4px}.zhiwei_plug_button:hover{cursor:pointer;color:#3a8ee6;border-color:#3a8ee6;outline:none}#news li{position:relative}#news li .plug_checkbox_foot{right:0}.zhiwei_toast{width:100px;height:40px;background:#edf2fc;position:fixed;top:0;left:30%;z-index:10001;text-align:center;line-height:40px;border-radius:4px;-webkit-transition:top .5s;transition:top .5s;font-size:14px}.zhiwei_toast.showtoast{top:100px}.zhiwei_toast.errortoast{color:#333;background:#f56c6c;border-color:#fde2e2} @charset "UTF-8";.toutiao_plug_box[data-v-42891f1c]{margin-left:200px;text-align:left;padding:43px 0 20px;height:90%;overflow-y:auto}.toutiao_plug_box .header_tt_radio span[data-v-42891f1c]{vertical-align:middle;margin-right:15px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.toutiao_plug_box .toutiao_contents[data-v-42891f1c]{margin-top:50px}.toutiao_plug_box .toutiao_contents .content[data-v-42891f1c]{width:100%}.toutiao_plug_box .toutiao_contents .content h3[data-v-42891f1c]{font-size:18px;color:#222;line-height:1.3;margin-bottom:4px;font-weight:700;max-height:52px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}.toutiao_plug_box .toutiao_contents .content h3[data-v-42891f1c]:hover{color:#000042}.toutiao_plug_box .toutiao_contents .content .timeAndsouse[data-v-42891f1c]{display:inline-block;color:#777;font-size:14px;line-height:1.3;margin-top:5px}.toutiao_plug_box .toutiao_contents .content .contents_text[data-v-42891f1c]{word-wrap:break-word;line-height:1.3;margin-top:5px}.toutiao_plug_box .plug_checkbox_foot[data-v-42891f1c]{right:0}.toutiao_plug_box .search_plug_input[data-v-42891f1c]{max-width:1000px;margin-top:20px;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.toutiao_plug_box .search_plug_input img[data-v-42891f1c]{display:inline-block;width:110px;height:27px;margin-top:4px}.toutiao_plug_box .search_plug_input input[data-v-42891f1c]{width:80%;padding:5px 10px;outline:none}.toutiao_plug_box .search_plug_input button[data-v-42891f1c]{padding:5px 10px;vertical-align:middle;border:0;margin:0 10px;outline:none}.toutiao_plug_box .toutiao_contents li[data-v-42891f1c]{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:1000px;max-width:1000px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-orient:horizontal;-webkit-box-direction:normal;border-width:1px;border-style:solid;border-color:#ccc;-o-border-image:initial;border-image:initial;-ms-flex-flow:row nowrap;flex-flow:row nowrap;padding:10px 210px 10px 10px;margin:0 0 15px}.toutiao_plug_box .toutiao_contents li img[data-v-42891f1c]{width:80px;height:80px;margin:10px!important;-ms-flex-negative:0;flex-shrink:0}.toutiao_plug_box .pages[data-v-42891f1c]{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.toutiao_plug_box .pages button[data-v-42891f1c]{margin-right:20px}.zhihu_plug_template[data-v-d43c9060]{margin-left:200px;text-align:left;height:100%;overflow-y:auto}.zhihu_plug_template .search_plug_input[data-v-d43c9060]{margin-top:20px}.zhihu_plug_template .search_plug_input button[data-v-d43c9060]{margin-right:7px;background:#00b7ee;padding:3px 15px;border-radius:3px;outline:none;border-width:0;border-style:initial;border-color:initial;-o-border-image:initial;border-image:initial}.zhihu_plug_template .search_plug_input>span[data-v-d43c9060]{color:#0084ff;font-size:15px}.zhihu_plug_template .search_plug_input input[type=search][data-v-d43c9060]{width:450px;padding:5px 10px;outline:none;margin:0 10px}.zhihu_plug_template .content-list[data-v-d43c9060]{margin-top:5%;height:calc(95% - 130px);overflow-y:auto}.zhihu_plug_template #list_zhihu li[data-v-d43c9060]{background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:1000px;max-width:1000px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row nowrap;padding:10px 210px 10px 10px;margin:0 0 15px}.zhihu_plug_template #list_zhihu li[data-v-d43c9060] em{font-style:normal;color:#f1403c}.zhihu_plug_template #list_zhihu li .content>a>h2[data-v-d43c9060]{font-size:16px;margin-bottom:10px;font-weight:600;font-synthesis:style;line-height:1.6}.zhihu_plug_template #list_zhihu li .content>p[data-v-d43c9060]{margin-bottom:10px;color:#444}.zhihu_plug_template #list_zhihu li .source_time[data-v-d43c9060]{color:#1a1a1a}.zhihu_plug_template #list_zhihu li .source_time>span>b[data-v-d43c9060]{font-weight:600!important}.zhihu_plug_template .pages[data-v-d43c9060]{height:50px;line-height:50px}.zhihu_plug_template .pages button[data-v-d43c9060]{margin-right:40px}.hello_plug{position:fixed;top:0;padding-top:55px;z-index:100000;left:0;width:100px;text-align:center;background:#fff;-webkit-box-shadow:0 0 20px rgba(0,0,0,.4);box-shadow:0 0 20px rgba(0,0,0,.4);height:calc(100% - 55px);font-size:13px}.hello_plug h5{font-weight:700;color:#999;margin:20px 0}.hello_plug li{padding:5px 0;cursor:pointer;font-style:normal;list-style:none;margin-bottom:10px}.hello_plug li:hover a{color:#000}.hello_plug li.activeOn{background:#00b7ee}.hello_plug li a{display:block;color:#333;text-decoration:none}.header_PLUG_zhiwei{position:fixed;top:100px;right:660px;width:auto;background:#00b7ee;cursor:move;padding:5px 10px;z-index:10003}.header_PLUG_zhiwei button{font-size:13px;margin-right:10px;padding:6px 8px;background:#fff;outline:none;-webkit-transition:all .1s ease 0s;transition:all .1s ease 0s;border-radius:4px;border:1px solid #dcdfe6}.header_PLUG_zhiwei button:hover{cursor:pointer;color:#3a8ee6;border-color:#3a8ee6;outline:none}.hello_plug_right{position:fixed;top:0;bottom:0;z-index:10000;right:0;width:600px;padding:55px 10px 10px;text-align:left;background:#fff;-webkit-box-shadow:0 0 20px rgba(0,0,0,.4);box-shadow:0 0 20px rgba(0,0,0,.4);height:calc(100% - 55px);font-size:13px;-webkit-transition:width .3s;transition:width .3s}.hello_plug_right.littleWidth{width:0}.hello_plug_right .toggleSHOW{background-color:#363e4f;color:#fff;font-size:30px;top:23px;left:-33px;width:35px;height:35px;line-height:35px;position:absolute;text-align:center;-webkit-transform:translate(50%,-50%) rotate(0deg);transform:translate(50%,-50%) rotate(0deg);z-index:1000;border-radius:50%;-webkit-transition:all .2s ease 0s;transition:all .2s ease 0s;cursor:pointer}.hello_plug_right .header_PLUG_button{margin-bottom:10px;padding:5px 0;border-bottom:1px solid #ccc}.hello_plug_right .header_PLUG_button button{margin-right:15px;display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #dcdfe6;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;-webkit-transition:.1s;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:12px 10px;font-size:14px!important;font-family:"\5FAE\8F6F\96C5\9ED1"!important;border-radius:4px}.hello_plug_right .header_PLUG_button button:hover{cursor:pointer;color:#3a8ee6;border-color:#3a8ee6;outline:none}.hello_plug_right .plug_content{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.hello_plug_right .plug_content>p{margin-bottom:10px}.hello_plug_right select{width:100px;outline:none;margin-right:10px;height:35px;line-height:35px;border:1px solid #ccc}.hello_plug_right .input_select_box{text-align:left}.hello_plug_right .tag_select_box{margin-top:15px;margin-bottom:18px}.hello_plug_right .taggROUP{position:relative;padding:10px 0 0}.hello_plug_right .taggROUP h6{height:0;border-bottom:1px dashed #8cbeb2;margin:10px 0}.hello_plug_right .taggROUP label{display:inline-block;position:absolute;top:6px;left:20px;font-weight:700;background:#fff;-ms-flex-negative:0;flex-shrink:0;padding:0 8px;border-radius:3px}.hello_plug_right .plug_taglist{margin-bottom:20px;margin-left:0;margin-bottom:0;text-align:left}.hello_plug_right .plug_taglist li{display:inline-block;margin-right:10px;margin-bottom:5px;text-align:left;border:1px solid #ccc;padding:6px 8px;border-radius:4px;cursor:pointer;font-size:13px}.hello_plug_right .plug_taglist li.onActive{background:#deb887}.hello_plug_right .handle_plug_button span{margin-right:7px}.hello_plug_right .handle_plug_button button{background:#deb887;padding:3px 15px;border-radius:3px;outline:none;border:0;margin-right:7px}.hello_plug_right .handle_plug_button button.zhiwei_Mark{background:#00b7ee}.hello_plug_right .handle_plug_button button.checkUpMark{background:#deb887}.select_plugdata_list{margin-top:15px;position:relative;padding-bottom:20px;-webkit-box-flex:1;padding:5px 0!important;margin:5px 0!important;overflow-y:auto;-ms-flex:1 1 auto;flex:1 1 auto;box-flex:1.0}.select_plugdata_list .loading_icon{position:absolute;width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#fff;background:rgba(0,0,0,.5)}.select_plugdata_list li{padding-bottom:5px;margin-bottom:10px;border-bottom:1px solid #ccc!important}.select_plugdata_list li h6{margin:0!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;color:#00c;font-weight:400;margin-bottom:5px}.select_plugdata_list li h6>label{color:#1a1a1a;border-radius:3px;display:inline-block;padding:0 4px}.select_plugdata_list li span{margin-right:10px}.select_plugdata_list .icon_plug_Tagging{padding:2px;border-radius:4px;background:#ff6c60;margin-right:6px}.select_plugdata_list .icon_plug_Tagging.ISplugmark{background:#00b7ee}.select_plugdata_list .icon_plug_Tagging.errormark{background:#ffa600}.select_plugdata_list .icon_plug_Tagging.successmark{background:#23b9a9}#chromeID{display:none;position:fixed;left:-10000px}body,html{height:100%;position:relative}#main.soxinwen_Plug{max-width:auto;min-width:700px}#main.soxinwen_Plug li{width:1000px;height:120px}.soxinwen_Plug #news{width:100%}.soxinwen_Plug #news li{border-bottom:1px solid #ebebeb}#sogouNews .vrwrap,.card-wrap{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:10px 205px 10px 10px}.plug_checkbox_foot{position:absolute;top:0;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;right:-150px;padding:0 20px;border-left:1px solid #ebebeb}.plug_checkbox_foot>span{cursor:pointer}.plug_checkbox_foot span.checkbox_plug_i{display:inline-block;width:35px;height:35px;position:relative;margin-right:15px}.plug_checkbox_foot span.checkbox_plug_i input{width:100%;height:100%;cursor:pointer}.plug_all_button{position:fixed;top:0;text-align:center;background:#ebeef3;width:100%;left:0;right:40%;z-index:5000;padding:5px 0}.plug_all_button button{padding:1px 6px;margin-right:15px}.wordelices{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;max-height:45px}#weiboSearch .m-main{width:70%;min-width:1200px;margin:0;padding-left:120px}#weiboSearch .m-main .m-con-l{width:850px}#weiboSearch .plug_checkbox_foot{right:0;padding:0}#weiboSearch .m-search .action{float:left}#sogouWeixin .header,#sogouWeixin .wrapper{margin:0 100px}#sogouWeixin .wrapper{margin-top:100px;margin-left:163px}#sogouNews #wrapper,#sogouNews .header{margin:0 120px 0}#sogouNews #wrapper{padding-left:0}#sogouNews .vrwrap{padding:0}#sogouWeb #right{display:none}#sogouWeb #wrapper{margin:0 120px}#sogouWeb .header .header-box{margin:0 225px}.newsoNews .img-txt .r-content{float:none;margin-left:250px}.newsoNews #news li{padding-left:20px;margin-top:30px}.newsoNews #bd_related{padding-left:40px}#sogouWeb .main .vrwrap{-webkit-box-sizing:border-box!important;box-sizing:border-box!important;position:relative!important;border-width:1px!important;border-style:solid!important;border-color:#ccc!important;-o-border-image:initial!important;border-image:initial!important;padding:15px}#sogouWeb .vrwrap,#sogouWeixin .news-list li,#zhiwei_baiduNews .result,.newsoNews ul.result li{position:relative}#sogouWeixin .news-list li{-webkit-box-sizing:border-box!important;box-sizing:border-box!important;width:1000px!important;position:relative!important;padding:10px 210px 10px 10px!important;border-width:1px!important;border-style:solid!important;border-color:#ccc!important;-o-border-image:initial!important;border-image:initial!important}#sogouWeixin .news-list li .plug_checkbox_foot,.zhihu_plug_template .plug_checkbox_foot{right:0}#sogouWeixin .snb-right{display:none}#zhiwei_baiduNews .result{padding:0 10px}#zhiwei_baiduNews #body,#zhiwei_baiduNews #head,#zhiwei_baiduNews #header{margin:0 120px}#moveRight{position:fixed;top:10px;right:377px;z-index:10000;width:100px;background:red;text-align:center;cursor:pointer}.button-get-user-info{margin-left:14px;margin-right:14px}.button-get-user-info,.copy_button,.wb_copy_button{width:58px;text-align:center;height:25px;line-height:25px;border:1px solid #dcdfe6;padding:0;border-radius:3px;font-size:13px}.button-get-user-info:hover,.copy_button:hover,.wb_copy_button:hover{cursor:pointer;color:#3a8ee6;border-color:#3a8ee6;outline:none}.zhiwei_plug_button{margin-right:15px;display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px!important;font-family:微软雅黑!important;background:#fff;border-width:1px;border-style:solid;border-color:#dcdfe6;-o-border-image:initial;border-image:initial;outline:none;-webkit-transition:all .1s ease 0s;transition:all .1s ease 0s;padding:12px 10px;border-radius:4px}.zhiwei_plug_button:hover{cursor:pointer;color:#3a8ee6;border-color:#3a8ee6;outline:none}#news li{position:relative}#news li .plug_checkbox_foot{right:0}.zhiwei_toast{width:100px;height:40px;background:#edf2fc;position:fixed;top:0;left:30%;z-index:10001;text-align:center;line-height:40px;border-radius:4px;-webkit-transition:top .5s;transition:top .5s;font-size:14px}.zhiwei_toast.showtoast{top:100px}.zhiwei_toast.errortoast{color:#333;background:#f56c6c;border-color:#fde2e2}
\ No newline at end of file \ No newline at end of file
(function(t){function e(e){for(var o,a,i=e[0],u=e[1],s=e[2],f=0,p=[];f<i.length;f++)a=i[f],c[a]&&p.push(c[a][0]),c[a]=0;for(o in u)Object.prototype.hasOwnProperty.call(u,o)&&(t[o]=u[o]);l&&l(e);while(p.length)p.shift()();return r.push.apply(r,s||[]),n()}function n(){for(var t,e=0;e<r.length;e++){for(var n=r[e],o=!0,i=1;i<n.length;i++){var u=n[i];0!==c[u]&&(o=!1)}o&&(r.splice(e--,1),t=a(a.s=n[0]))}return t}var o={},c={background:0},r=[];function a(e){if(o[e])return o[e].exports;var n=o[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=t,a.c=o,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)a.d(n,o,function(e){return t[e]}.bind(null,o));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="/out/";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],u=i.push.bind(i);i.push=e,i=i.slice();for(var s=0;s<i.length;s++)e(i[s]);var l=u;r.push([5,"chunk-vendors"]),n()})({5:function(t,e,n){t.exports=n("f728")},"519d":function(t,e){},f728:function(t,e,n){"use strict";n.r(e);var o=n("cebc"),c=(n("ac6a"),n("456d"),n("6762"),n("2fdb"),n("7514"),n("cadf"),n("551c"),n("f751"),n("097d"),n("7f43")),r=n.n(c);n("519d"),n("e92b").Buffer;function a(){chrome.management.getAll(function(t){var e=t.find(function(t){return"知微舆情"===t.description}).id;chrome.storage.local.set({ExtensionID:e},function(){console.log("存储成功")})})}chrome.storage.local.get("ExtensionID",function(t){t.ExtensionID?console.log("Value currently is "+t.ExtensionID):a()}),r.a.defaults.withCredentials=!0,r.a.interceptors.response.use(function(t){if(console.log("添加响应拦截器",t),200!==t.status||!t.data||"插件版本过低,请升级"!==t.data.message)return t;chrome.notifications.create(Math.random()+"",{type:"basic",iconUrl:"images/icon_19.png",title:"通知",message:"插件版本过低,请升级"},function(t){console.log(t)})});var i="http://192.168.0.241:11000/qbjcbackPhoenix/",u="1565712000000";function s(t,e,n){if("strong"===t.action){var c=t.data;return chrome.storage.local.get("configure",function(t){c.projectList=t.configure}),chrome.storage.local.get("project",function(t){c.project=t.project}),chrome.storage.local.get("user",function(t){c.user=t.user}),chrome.storage.local.get("rightStatue",function(t){Object.keys(t).length>0&&(c.rightStatue=t.rightStatue,n({data:c}))}),!0}if("SetStrong"===t.action)chrome.storage.local.set(t.data);else{if("getstrong"===t.action)return chrome.storage.local.get(t.data,function(t){n({data:t})}),!0;if("checkUpmark"===t.action){var a=t.params.project,s=null,l=Object(o["a"])({},t.value,{project:t.params.project});return r.a.post("".concat(i,"interface/plugin/check/").concat(u),l,{headers:{time:(new Date).valueOf()}}).then(function(e){s=e.data,console.log(),n({data:s,tabProject:a,type:t.type})}).catch(function(t){console.log(t)}),!0}if("doingMark"===t.action){var f=Object(o["a"])({},t.value,{project:t.params.project});return r.a.post("".concat(i,"interface/plugin/").concat(u),f,{headers:{time:(new Date).valueOf()}}).then(function(e){var o=e.data;n({data:o,type:t.type})}).catch(function(t){console.log(t)}),!0}if("open"===t.action);else{if("xhttp"===t.action)return r.a.get("".concat(i).concat(t.url,"/").concat(u),{params:t.params}).then(function(t){n({data:t.data})}).catch(function(t){console.log(t)}),!0;if("weiboxhttp"===t.action)return r.a.get("".concat(t.url)).then(function(t){n({data:t.data})}).catch(function(t){console.log(t)}),!0}}}function l(){r.a.get("".concat(i,"interface/plugin/info/").concat(u)).then(function(t){chrome.storage.local.set({configure:t.data.data},function(){console.log("save success")})}).catch(function(t){console.log(t)})}document.addEventListener("DOMContentLoaded",function(){r()({url:"https://httpbin.org/ip",method:"GET"}).then(function(t){var e=t.data.origin.includes("60.12.216.130");if(e){"\n var isInnerto = ".concat(e,'\n function FindProxyForURL(url, host) {\n if (shExpMatch(url, "https:*weixin.sogou.com*")) {\n return "PROXY 192.168.0.36:31128";\n }\n return "DIRECT";\n }\n ');var n={value:{mode:"pac_script",pacScript:{url:"https://jumpserver.irybd.com/OmegaProfile_auto_switch.pac",mandatory:!0}},scope:"regular"};chrome.proxy.settings.set(n,function(){console.log("set success")})}})}),chrome.runtime.onMessageExternal.addListener(function(t,e,n){return s(t,e,n),!0}),chrome.runtime.onMessage.addListener(function(t,e,n){return s(t,e,n),!0}),chrome.contextMenus.create({title:"测试右键菜单",onclick:function(){alert("您点击了右键菜单!")}}),chrome.contextMenus.create({title:"使用度娘搜索:%s",contexts:["selection"],onclick:function(t){chrome.tabs.create({url:"https://www.baidu.com/s?ie=utf-8&wd="+encodeURI(t.selectionText)})}}),l()}}); (function(t){function e(e){for(var o,c,i=e[0],u=e[1],l=e[2],f=0,d=[];f<i.length;f++)c=i[f],a[c]&&d.push(a[c][0]),a[c]=0;for(o in u)Object.prototype.hasOwnProperty.call(u,o)&&(t[o]=u[o]);s&&s(e);while(d.length)d.shift()();return r.push.apply(r,l||[]),n()}function n(){for(var t,e=0;e<r.length;e++){for(var n=r[e],o=!0,i=1;i<n.length;i++){var u=n[i];0!==a[u]&&(o=!1)}o&&(r.splice(e--,1),t=c(c.s=n[0]))}return t}var o={},a={background:0},r=[];function c(e){if(o[e])return o[e].exports;var n=o[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.m=t,c.c=o,c.d=function(t,e,n){c.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},c.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.t=function(t,e){if(1&e&&(t=c(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)c.d(n,o,function(e){return t[e]}.bind(null,o));return n},c.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return c.d(e,"a",e),e},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},c.p="/out/";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],u=i.push.bind(i);i.push=e,i=i.slice();for(var l=0;l<i.length;l++)e(i[l]);var s=u;r.push([5,"chunk-vendors"]),n()})({5:function(t,e,n){t.exports=n("f728")},"519d":function(t,e){},f728:function(t,e,n){"use strict";n.r(e);n("ac6a"),n("456d"),n("6762"),n("2fdb"),n("7514"),n("cadf"),n("551c"),n("f751"),n("097d");var o=n("7f43"),a=n.n(o);n("519d"),n("e92b").Buffer;chrome.management.getAll(function(t){console.log(888);var e=t.find(function(t){return"知微舆情"===t.description}).id;console.log(e),chrome.storage.local.set({ExtensionID:e})}),a.a.defaults.withCredentials=!0,a.a.interceptors.response.use(function(t){if(console.log("添加响应拦截器",t),200!==t.status||!t.data||"插件版本过低,请升级"!==t.data.message)return t;chrome.notifications.create(Math.random()+"",{type:"basic",iconUrl:"images/icon_19.png",title:"通知",message:"插件版本过低,请升级"},function(t){console.log(t)})});var r="http://yuqing.zhiweidata.com/qbjcbackPhoenix/",c="1564416000000";function i(t,e,n){if(console.log(t),console.log(n),"strong"===t.action){var o=t.data;return chrome.storage.local.get("configure",function(t){o.projectList=t.configure}),chrome.storage.local.get("project",function(t){o.project=t.project}),chrome.storage.local.get("user",function(t){o.user=t.user}),chrome.storage.local.get("rightStatue",function(t){Object.keys(t).length>0&&(o.rightStatue=t.rightStatue,n({data:o}))}),!0}if("SetStrong"===t.action)chrome.storage.local.set(t.data);else{if("getstrong"===t.action)return chrome.storage.local.get(t.data,function(t){console.log(t),n({data:t})}),!0;if("checkUpmark"===t.action){var i=t.params.project,u=null,l=null;return l="微博"===t.value[0].data.clientFrom?t.value.map(function(t){return{id:t.data.id,url:t.data.url,mark:!1,mid:t.data.mid,time:t.data.time}}):t.value.map(function(t){return{id:t.data.id,mark:!1,source:t.data.source,time:t.data.time,title:t.data.title,url:t.data.url}}),a.a.post("".concat(r,"interface/getDataMore/").concat(c,".do"),{company:i,mark:l,type:t.value[0].data.clientFrom},{headers:{time:(new Date).valueOf()}}).then(function(t){u=t.data,console.log(55555555555),n({data:u,tabProject:i})}).catch(function(t){console.log(t)}),!0}if("doingMark"===t.action)return a.a.post("".concat(r,"interface/markDataMoreBiz/").concat(c,".do"),t.value,{headers:{time:(new Date).valueOf()}}).then(function(t){var e=t.data;n({data:e})}).catch(function(t){console.log(t)}),!0;if("open"===t.action);else{if("xhttp"===t.action)return a.a.get("".concat(r).concat(t.url,"/").concat(c,".do"),{params:t.params}).then(function(t){console.log(t),n({data:t.data})}).catch(function(t){console.log(t)}),!0;if("weiboxhttp"===t.action)return a.a.get("".concat(t.url)).then(function(t){console.log(t),n({data:t.data})}).catch(function(t){console.log(t)}),!0}}}function u(){a.a.get("".concat(r,"interface/getGroupInfo/").concat(c,".do")).then(function(t){chrome.storage.local.set({configure:t.data},function(){console.log("save success")})}).catch(function(t){console.log(t)})}document.addEventListener("DOMContentLoaded",function(){a()({url:"https://httpbin.org/ip",method:"GET"}).then(function(t){var e=t.data.origin.includes("60.12.216.130"),n="\n var isInnerto = ".concat(e,'\n function FindProxyForURL(url, host) {\n if (shExpMatch(url, "https:*weixin.sogou.com*") && isInnerto) {\n return "PROXY 192.168.0.36:31128";\n }\n return "DIRECT";\n }\n '),o={value:{mode:"pac_script",pacScript:{data:n,mandatory:!0}},scope:"regular"};chrome.proxy.settings.set(o,function(){console.log("set success")})})}),chrome.runtime.onMessageExternal.addListener(function(t,e,n){return i(t,e,n),!0}),chrome.runtime.onMessage.addListener(function(t,e,n){return i(t,e,n),!0}),chrome.contextMenus.create({title:"测试右键菜单",onclick:function(){alert("您点击了右键菜单!")}}),chrome.contextMenus.create({title:"使用度娘搜索:%s",contexts:["selection"],onclick:function(t){chrome.tabs.create({url:"https://www.baidu.com/s?ie=utf-8&wd="+encodeURI(t.selectionText)})}}),chrome.storage.local.get("configure",function(t){var e=t.configure;console.log(e),e?console.log("has get defaultURL"):u()})}});
//# sourceMappingURL=background.js.map //# sourceMappingURL=background.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/pages/background/background.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","background","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","require","Buffer","getExtensionID","chrome","management","getAll","id","find","item","description","storage","local","set","ExtensionID","console","log","axios","defaults","withCredentials","interceptors","response","use","status","message","notifications","Math","random","type","iconUrl","title","locationhost","timeUnix","getlistenerHandle","request","sender","sendResponse","action","strongObject","items","projectList","configure","project","user","keys","rightStatue","params","res","paramsData","E_ccwork_ccplug_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","post","concat","headers","time","Date","valueOf","then","tabProject","catch","error","url","getAndSaveConfigure","document","addEventListener","method","isInner","origin","includes","pacScript","mandatory","scope","proxy","settings","runtime","onMessageExternal","addListener","onMessage","contextMenus","onclick","alert","contexts","tabs","encodeURI","selectionText"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAGAe,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AOO,QAAQC,MAAMC,IAAI,CACvB4B,UAAaM,EAAI5G,KAAKA,MACrB,WACD4E,QAAQC,IAAR,oBAED0C,MAAM,SAAUC,GACjB5C,QAAQC,IAAI2C,KApKfG,SAASC,iBAAiB,mBAAoB,WAC5C9C,IAAM,CACJ2C,IAAK,yBACLI,OAAQ,QACPR,KAAK,SAACT,GACP,IAAIkB,EAAUlB,EAAI5G,KAAK+H,OAAOC,SAAS,iBACvC,GAAIF,EAAS,CAEJ,+BAAAd,OACcc,EADd,2OAAP,IASM9H,EAAO,CACV8C,MAAM,CACJE,KAAK,aACLiF,UAAU,CACRR,IAAK,4DACLS,WAAU,IAGdC,MAAM,WAERlE,OAAOmE,MAAMC,SAAS3D,IAAI1E,EAAK,WAC7B4E,QAAQC,IAAI,sBAgGtBZ,OAAOqE,QAAQC,kBAAkBC,YAAY,SAACzC,EAASC,EAAQC,GAE7D,OADAH,EAAkBC,EAASC,EAAQC,IAC5B,IAEThC,OAAOqE,QAAQG,UAAUD,YAAY,SAACzC,EAASC,EAAQC,GAErD,OADAH,EAAkBC,EAASC,EAAQC,IAC5B,IAGThC,OAAOyE,aAAavF,OAAO,CACzBwC,MAAO,SACPgD,QAAS,WAAWC,MAAM,gBAG5B3E,OAAOyE,aAAavF,OAAO,CACzBwC,MAAO,YACPkD,SAAU,CAAC,aACXF,QAAS,SAAShC,GAEhB1C,OAAO6E,KAAK3F,OAAO,CAACsE,IAAK,uCAAyCsB,UAAUpC,EAAOqC,oBAWvFtB","file":"js/background.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"background\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/out/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([5,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import axios from 'axios';\r\nimport wfrules from '@/js/wflist.js';\r\nlet ccf = []\r\nvar Buffer = require('buffer/').Buffer\r\n// 获取扩展程序id\r\nchrome.storage.local.get('ExtensionID', function(result) {\r\n if (!result.ExtensionID) {\r\n getExtensionID()\r\n } else {\r\n console.log('Value currently is ' + result.ExtensionID);\r\n }\r\n});\r\n\r\nfunction getExtensionID () {\r\n chrome.management.getAll(result => {\r\n let id = result.find(item => {\r\n return item.description === '知微舆情'\r\n }).id\r\n chrome.storage.local.set({'ExtensionID': id}, function() {\r\n console.log('存储成功');\r\n });\r\n })\r\n}\r\n// 获取扩展程序id结束\r\n\r\naxios.defaults.withCredentials = true;\r\naxios.interceptors.response.use(response=> {\r\n// 对响应数据做点什么\r\n// 显示\r\n console.log(\"添加响应拦截器\", response)\r\n if (response.status === 200&&response.data&&response.data.message === '插件版本过低,请升级') {\r\n chrome.notifications.create(\r\n Math.random()+'',\r\n {\r\n     type: 'basic',\r\n iconUrl: 'images/icon_19.png',\r\n     title: '通知',\r\n     message: '插件版本过低,请升级' \r\n }, (id) => {\r\n     console.log(id);\r\n   }    \r\n )\r\n } else {\r\n return response\r\n }\r\n})\r\n\r\nlet status = true\r\n// 线上服务\r\n//let locationhost = `http://yuqing.zhiweidata.com/qbjcbackPhoenix/`\r\n// 本地服务\r\nlet locationhost = `http://192.168.0.241:11000/qbjcbackPhoenix/`\r\nlet timeUnix = '1565712000000' // 时间戳接口需求\r\n// 代理\r\n\tdocument.addEventListener(\"DOMContentLoaded\", function () {\r\n\t axios({\r\n\t url: 'https://httpbin.org/ip',\r\n\t method: 'GET',\r\n\t }).then((res) => {\r\n\t let isInner = res.data.origin.includes('60.12.216.130')\r\n\t if (isInner) {\r\n\t // 公司局域网提供代理与翻墙\r\n\t var pac = `\r\n var isInnerto = ${isInner}\r\n function FindProxyForURL(url, host) {\r\n if (shExpMatch(url, \"https:*weixin.sogou.com*\")) {\r\n return \"PROXY 192.168.0.36:31128\";\r\n }\r\n return \"DIRECT\";\r\n }\r\n `\r\n var data = {\r\n value:{\r\n mode:\"pac_script\",\r\n pacScript:{\r\n url: 'https://jumpserver.irybd.com/OmegaProfile_auto_switch.pac',\r\n mandatory:true\r\n }\r\n },\r\n scope:\"regular\"\r\n }\r\n chrome.proxy.settings.set(data,function(){\r\n console.log('set success')\r\n });\r\n // 公司局域网提供代理与翻墙结束\r\n\t }\r\n\t })\r\n\t});\r\n// 代理结束\r\n\r\nfunction getlistenerHandle (request, sender, sendResponse) {\r\n if(request.action === 'strong') {\r\n let strongObject = request.data\r\n chrome.storage.local.get('configure', items => {\r\n strongObject.projectList = items.configure\r\n });\r\n chrome.storage.local.get('project', items => {\r\n strongObject.project = items.project\r\n });\r\n chrome.storage.local.get('user', items => {\r\n strongObject.user = items.user\r\n });\r\n chrome.storage.local.get('rightStatue', items => {\r\n if (Object.keys(items).length > 0) {\r\n strongObject.rightStatue = items.rightStatue\r\n sendResponse({data: strongObject});\r\n }\r\n });\r\n return true\r\n } else if(request.action === 'SetStrong') {\r\n // 存储数据\r\n chrome.storage.local.set(request.data)\r\n } else if(request.action === 'getstrong') {\r\n // 获取存储数据\r\n chrome.storage.local.get(request.data, items => {\r\n sendResponse({data: items});\r\n });\r\n return true\r\n } else if(request.action === 'checkUpmark') {\r\n // 检查选中的文本是否被标注事件\r\n let project = request.params.project\r\n let res = null\r\n let data = null\r\n let paramsData = {\r\n ...request.value,\r\n project: request.params.project\r\n }\r\n axios.post(`${locationhost}interface/plugin/check/${timeUnix}`, paramsData, {\r\n headers: { time: (new Date()).valueOf() }\r\n })\r\n .then(response => {\r\n res = response.data\r\n console.log()\r\n sendResponse({data: res, tabProject: project, type:request.type});\r\n })\r\n .catch(error => {\r\n console.log(error);\r\n });\r\n return true\r\n } else if (request.action === 'doingMark') {\r\n // 标注接口\r\n let paramsData = {\r\n ...request.value,\r\n project: request.params.project\r\n }\r\n axios.post(`${locationhost}interface/plugin/${timeUnix}`, paramsData, { headers: { time: (new Date()).valueOf() } })\r\n .then(response => {\r\n let res = response.data\r\n sendResponse({data: res, type:request.type});\r\n })\r\n .catch(error => {\r\n console.log(error);\r\n });\r\n return true\r\n } else if(request.action === \"open\") {\r\n// chrome.browserAction.setIcon({ path: 'images/icon.png' })\r\n } else if(request.action === \"xhttp\") {\r\n // ajax 请求\r\n axios.get(`${locationhost}${request.url}/${timeUnix}`, {\r\n    params: request.params\r\n })\r\n .then(res => {\r\n sendResponse({data: res.data});\r\n }).catch(function (error) {\r\n console.log(error);\r\n });\r\n return true\r\n } else if(request.action === 'weiboxhttp') {\r\n axios.get(`${request.url}`)\r\n .then(res => {\r\n sendResponse({data: res.data});\r\n }).catch(function (error) {\r\n console.log(error);\r\n });\r\n return true\r\n }\r\n}\r\n\r\nchrome.runtime.onMessageExternal.addListener((request, sender, sendResponse) => {\r\n getlistenerHandle(request, sender, sendResponse)\r\n return true\r\n});\r\nchrome.runtime.onMessage.addListener((request, sender, sendResponse) => {\r\n getlistenerHandle(request, sender, sendResponse)\r\n return true\r\n});\r\n\r\nchrome.contextMenus.create({\r\n title: \"测试右键菜单\",\r\n onclick: function(){alert('您点击了右键菜单!');}\r\n});\r\n\r\nchrome.contextMenus.create({\r\n title: '使用度娘搜索:%s', // %s表示选中的文字\r\n contexts: ['selection'], // 只有当选中文字时才会出现此右键菜单\r\n onclick: function(params)\r\n {\r\n chrome.tabs.create({url: 'https://www.baidu.com/s?ie=utf-8&wd=' + encodeURI(params.selectionText)});\r\n }\r\n});\r\n// 获取项目名以及项目名下的人员名单\r\n//chrome.storage.local.get('configure', function({ configure }) {\r\n//if (!configure) {\r\n// getAndSaveConfigure()\r\n//} else {\r\n// console.log('has get defaultURL')\r\n//}\r\n//})\r\ngetAndSaveConfigure()\r\nfunction getAndSaveConfigure () {\r\n axios.get(`${locationhost}interface/plugin/info/${timeUnix}`)\r\n .then(res => {\r\n chrome.storage.local.set({\r\n 'configure': res.data.data\r\n }, () => {\r\n console.log(`save success`)\r\n })\r\n }).catch(function (error) {\r\n console.log(error);\r\n });\r\n}\r\n// 获取项目名以及项目名下的人员名单结束\r\n\r\n\r\n\r\n"],"sourceRoot":""} {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/pages/background/background.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","background","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","require","Buffer","chrome","management","getAll","console","log","id","find","item","description","storage","local","set","ExtensionID","axios","defaults","withCredentials","interceptors","response","use","status","message","notifications","Math","random","type","iconUrl","title","locationhost","timeUnix","getlistenerHandle","request","sender","sendResponse","action","strongObject","items","projectList","configure","project","user","keys","rightStatue","params","res","clientFrom","map","url","mark","mid","time","source","post","concat","company","headers","Date","valueOf","then","tabProject","catch","error","getAndSaveConfigure","document","addEventListener","method","isInner","origin","includes","pac","pacScript","mandatory","scope","proxy","settings","runtime","onMessageExternal","addListener","onMessage","contextMenus","onclick","alert","contexts","tabs","encodeURI","selectionText","_ref"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EA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UD,YAAY,SAAC9C,EAASC,EAAQC,GAErD,OADAH,EAAkBC,EAASC,EAAQC,IAC5B,IAGThC,OAAO8E,aAAa3F,OAAO,CACzBuC,MAAO,SACPqD,QAAS,WAAWC,MAAM,gBAG5BhF,OAAO8E,aAAa3F,OAAO,CACzBuC,MAAO,YACPuD,SAAU,CAAC,aACXF,QAAS,SAASrC,GAEhB1C,OAAOkF,KAAK/F,OAAO,CAAC2D,IAAK,uCAAyCqC,UAAUzC,EAAO0C,oBAKvFpF,OAAOS,QAAQC,MAAMhC,IAAI,YAAa,SAAA2G,GAAwB,IAAbhD,EAAagD,EAAbhD,UAChDlC,QAAQC,IAAIiC,GACNA,EAGHlC,QAAQC,IAAI,sBAFZyD","file":"js/background.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"background\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/out/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([5,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import axios from 'axios';\r\nimport wfrules from '@/js/wflist.js';\r\nlet ccf = []\r\nvar Buffer = require('buffer/').Buffer\r\n// 获取扩展程序id\r\nchrome.management.getAll(result => {\r\n\tconsole.log(888)\r\n\tlet id = result.find(item => {\r\n\t\treturn item.description === '知微舆情'\r\n\t}).id\r\n\tconsole.log(id)\r\n\tchrome.storage.local.set({'ExtensionID': id});\r\n})\r\n// 获取扩展程序id结束\r\n\r\naxios.defaults.withCredentials = true;\r\naxios.interceptors.response.use(response=> {\r\n// 对响应数据做点什么\r\n// 显示\r\n console.log(\"添加响应拦截器\", response)\r\n if (response.status === 200&&response.data&&response.data.message === '插件版本过低,请升级') {\r\n chrome.notifications.create(\r\n Math.random()+'',\r\n {\r\n     type: 'basic',\r\n iconUrl: 'images/icon_19.png',\r\n     title: '通知',\r\n     message: '插件版本过低,请升级' \r\n }, (id) => {\r\n     console.log(id);\r\n   }    \r\n )\r\n } else {\r\n return response\r\n }\r\n})\r\n\r\nlet status = true\r\n// 线上服务\r\nlet locationhost = `http://yuqing.zhiweidata.com/qbjcbackPhoenix/`\r\n// 本地服务\r\n//let locationhost = `http://192.168.0.241:8088/qbjcbackPhoenix/`\r\nlet timeUnix = '1564416000000' // 时间戳接口需求\r\n// 代理\r\n\tdocument.addEventListener(\"DOMContentLoaded\", function () {\r\n\t axios({\r\n\t url: 'https://httpbin.org/ip',\r\n\t method: 'GET',\r\n\t }).then((res) => {\r\n\t let isInner = res.data.origin.includes('60.12.216.130')\r\n var pac = `\r\n var isInnerto = ${isInner}\r\n function FindProxyForURL(url, host) {\r\n if (shExpMatch(url, \"https:*weixin.sogou.com*\") && isInnerto) {\r\n return \"PROXY 192.168.0.36:31128\";\r\n }\r\n return \"DIRECT\";\r\n }\r\n `\r\n var data = {\r\n value:{\r\n mode:\"pac_script\",\r\n pacScript:{\r\n data: pac, \r\n mandatory:true\r\n }\r\n },\r\n scope:\"regular\"\r\n }\r\n chrome.proxy.settings.set(data,function(){\r\n console.log('set success')\r\n });\r\n\t })\r\n\t});\r\n// 代理结束\r\n\r\nfunction getlistenerHandle (request, sender, sendResponse) {\r\n console.log(request)\r\n console.log(sendResponse)\r\n if(request.action === 'strong') {\r\n let strongObject = request.data\r\n chrome.storage.local.get('configure', items => {\r\n strongObject.projectList = items.configure\r\n });\r\n chrome.storage.local.get('project', items => {\r\n strongObject.project = items.project\r\n });\r\n chrome.storage.local.get('user', items => {\r\n strongObject.user = items.user\r\n });\r\n chrome.storage.local.get('rightStatue', items => {\r\n if (Object.keys(items).length > 0) {\r\n strongObject.rightStatue = items.rightStatue\r\n sendResponse({data: strongObject});\r\n }\r\n });\r\n return true\r\n } else if(request.action === 'SetStrong') {\r\n // 存储数据\r\n chrome.storage.local.set(request.data)\r\n } else if(request.action === 'getstrong') {\r\n // 获取存储数据\r\n chrome.storage.local.get(request.data, items => {\r\n console.log(items)\r\n sendResponse({data: items});\r\n });\r\n return true\r\n } else if(request.action === 'checkUpmark') {\r\n // 检查选中的文本是否被标注事件\r\n let project = request.params.project\r\n let res = null\r\n let data = null\r\n if (request.value[0].data.clientFrom === '微博') {\r\n data = request.value.map(item => {\r\n return {\r\n id: item.data.id,\r\n url: item.data.url,\r\n mark: false,\r\n mid: item.data.mid,\r\n time: item.data.time\r\n }\r\n }) \r\n } else {\r\n data = request.value.map(item => {\r\n return {\r\n id: item.data.id,\r\n mark: false,\r\n source: item.data.source,\r\n time: item.data.time,\r\n title: item.data.title,\r\n url: item.data.url\r\n }\r\n })\r\n }\r\n axios.post(`${locationhost}interface/getDataMore/${timeUnix}.do`, {\r\n company: project,\r\n mark: data ,\r\n type: request.value[0].data.clientFrom\r\n }, {\r\n headers: { time: (new Date()).valueOf() }\r\n })\r\n .then(response => {\r\n res = response.data\r\n console.log(55555555555)\r\n sendResponse({data: res, tabProject: project});\r\n })\r\n .catch(error => {\r\n console.log(error);\r\n });\r\n return true\r\n } else if (request.action === 'doingMark') {\r\n // 标注接口\r\n axios.post(`${locationhost}interface/markDataMoreBiz/${timeUnix}.do`, request.value, { headers: { time: (new Date()).valueOf() } })\r\n .then(response => {\r\n let res = response.data\r\n sendResponse({data: res});\r\n })\r\n .catch(error => {\r\n console.log(error);\r\n });\r\n return true\r\n } else if(request.action === \"open\") {\r\n// chrome.browserAction.setIcon({ path: 'images/icon.png' })\r\n } else if(request.action === \"xhttp\") {\r\n // ajax 请求\r\n axios.get(`${locationhost}${request.url}/${timeUnix}.do`, {\r\n    params: request.params\r\n })\r\n .then(res => {\r\n console.log(res)\r\n sendResponse({data: res.data});\r\n }).catch(function (error) {\r\n console.log(error);\r\n });\r\n return true\r\n } else if(request.action === 'weiboxhttp') {\r\n axios.get(`${request.url}`)\r\n .then(res => {\r\n console.log(res)\r\n sendResponse({data: res.data});\r\n }).catch(function (error) {\r\n console.log(error);\r\n });\r\n return true\r\n }\r\n}\r\n\r\nchrome.runtime.onMessageExternal.addListener((request, sender, sendResponse) => {\r\n getlistenerHandle(request, sender, sendResponse)\r\n return true\r\n});\r\nchrome.runtime.onMessage.addListener((request, sender, sendResponse) => {\r\n getlistenerHandle(request, sender, sendResponse)\r\n return true\r\n});\r\n\r\nchrome.contextMenus.create({\r\n title: \"测试右键菜单\",\r\n onclick: function(){alert('您点击了右键菜单!');}\r\n});\r\n\r\nchrome.contextMenus.create({\r\n title: '使用度娘搜索:%s', // %s表示选中的文字\r\n contexts: ['selection'], // 只有当选中文字时才会出现此右键菜单\r\n onclick: function(params)\r\n {\r\n chrome.tabs.create({url: 'https://www.baidu.com/s?ie=utf-8&wd=' + encodeURI(params.selectionText)});\r\n }\r\n});\r\n//getAndSaveConfigure()\r\n// 获取项目名以及项目名下的人员名单\r\nchrome.storage.local.get('configure', function({ configure }) {\r\n\tconsole.log(configure)\r\n if (!configure) {\r\n getAndSaveConfigure()\r\n } else {\r\n console.log('has get defaultURL')\r\n }\r\n})\r\nfunction getAndSaveConfigure () {\r\n axios.get(`${locationhost}interface/getGroupInfo/${timeUnix}.do`)\r\n .then(res => {\r\n chrome.storage.local.set({\r\n 'configure': res.data\r\n }, () => {\r\n console.log(`save success`)\r\n })\r\n }).catch(function (error) {\r\n console.log(error);\r\n });\r\n}\r\n// 获取项目名以及项目名下的人员名单结束\r\n\r\n\r\n\r\n"],"sourceRoot":""}
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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