ScopeSentry/static/assets/URL-BkZKD-Kd.js

2 lines
3.9 KiB
JavaScript
Raw Normal View History

2024-06-17 14:41:04 +00:00
import{d as e,r as t,N as a,Y as l,o as r,c as i,e as o,a as s,w as p,$ as n,Q as u,l as m,_ as d}from"./index-rxu9Faad.js";import{u as c}from"./useTable-DOtBbJYW.js";import{E as g}from"./el-card-C0XrHsE5.js";import{E as j}from"./el-select-FArs2pTf.js";import"./el-tag-DFTmA9-y.js";import"./el-popper-BJkW0SkV.js";import{E as _,a as f}from"./el-col-BKZxb-_G.js";import{_ as x}from"./Table.vue_vue_type_script_lang-COxZJx7A.js";import{u as h}from"./useCrudSchemas-Dqk-Y6U_.js";import{m as v}from"./index-CF98-qn9.js";import{_ as y}from"./Csearch.vue_vue_type_script_setup_true_lang-CWgw9NT3.js";import"./useInput-D-eMIzLG.js";import"./debounce-rCtyPgGe.js";import"./el-checkbox-BVo36Tmv.js";import"./el-tooltip-l0sNRNKZ.js";import"./el-image-viewer-CCnBYOdA.js";import"./tsxHelper-CyxpWgl3.js";import"./el-dropdown-item-CgW2TRYg.js";import"./castArray-B4xEQihS.js";import"./refs-ClXC3KCu.js";import"./index-CQSTts3C.js";import"./raf-P5NVVAw8.js";import"./tree-BfZhwLPs.js";import"./index-Cr6_Qzhf.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-CLuWlWlx.js";import"./el-text-BLRhP_03.js";import"./el-divider-CWb5e3hf.js";import"./el-form-item-BWEP-xeg.js";import"./Dialog.vue_vue_type_style_index_0_lang-D0fkHpTu.js";import"./useIcon-xO2WQYaC.js";import"./exportData.vue_vue_type_script_setup_true_lang-DtuScFbU.js";import"./el-tab-pane-BRIDvS2j.js";import"./el-radio-group-j1mInj6s.js";const b=d(e({__name:"URL",setup(e){const{t:d}=m(),b=[{keyword:"url",example:'url="http://example.com"',explain:d("searchHelp.url")},{keyword:"input",example:'input="example.com"',explain:d("searchHelp.inpur")},{keyword:"source",example:'source="exapmle.com/example.js"',explain:d("searchHelp.source")},{keyword:"type",example:'type="linkfinder"',explain:d("searchHelp.urlType")},{keyword:"project",example:'project="Hackerone"',explain:d("searchHelp.project")}],S=t(""),w=e=>{S.value=e,I()},U=a([{field:"index",label:d("tableDemo.index"),type:"index",minWidth:10},{field:"url",label:"URL",minWidth:70},{field:"source",label:d("URL.source"),minWidth:30},{field:"type",label:d("URL.type"),minWidth:30},{field:"input",label:d("URL.input"),minWidth:60},{field:"time",label:d("asset.time"),minWidth:30}]),{allSchemas:z}=h(U),{tableRegister:k,tableState:H,tableMethods:L}=c({fetchDataApi:async()=>{const{currentPage:e,pageSize:t}=H,a=await v(S.value,e.value,t.value);return{list:a.data.list,total:a.data.total}},immediate:!1}),{loading:R,dataList:C,total:E,currentPage:P,pageSize:W}=H,{getList:I}=L;function D(){return{background:"var(--el-fill-color-light)"}}W.value=20,l((()=>{A(),window.addEventListener("resize",A)}));const N=t(0),A=()=>{const e=window.innerHeight||document.documentElement.clientHeight;N.value=.7*e};return(e,t)=>(r(),i(u,null,[o(y,{getList:s(I),handleSearch:w,searchKeywordsData:b,index:"UrlScan"},null,8,["getList"]),o(s(f),null,{default:p((()=>[o(s(_),null,{default:p((()=>[o(s(g),null,{default:p((()=>[o(s(x),{pageSize:s(W),"onUpdate:pageSize":t[0]||(t[0]=e=>n(W)?W.value=e:null),currentPage:s(P),"onUpdate:currentPage":t[1]||(t[1]=e=>n(P)?P.value=e:null),columns:s(z).tableColumns,data:s(C),"max-height":N.value,stripe:"",border:!0,loading:s(R),resizable:!0,onRegister:s(k),headerCellStyle:D,style:{fontFamily:"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji"}},null,8,["pageSize","currentPage","columns","data","max-height","loading","onRegister"])])),_:1})])),_:1}),o(s(_),{":span":24},{default:p((()=>[o(s(g),null,{default:p((()=>[o(s(j),{pageSize:s(W),"onUpdate:pageSize":t[2]||(t[2]=e=>n(W)?W.value=e:null),currentPage:s(P),"onUpdate:currentPage":t[3]||(t[3]=e=>n(P)?P.value=e:null),"page-sizes":[20,50,100,200,500,1e3],layout:"total, sizes, prev, pager, next, jumper",total:s(E)},null,8,["pageSize","currentPage","total"])])),_:1})])),_:1})])),_:1})],64))}}),[["__scopeId","data-v-1fc0fb52"]]);export{b as default};