ScopeSentry/static/assets/Subdomain-CPU_Ck0y.js

2 lines
4.1 KiB
JavaScript

import{d as e,Y as t,r as a,N as l,o as i,c as o,e as r,a as s,w as n,$ as p,Q as m,l as u,_ 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 h}from"./Table.vue_vue_type_script_lang-COxZJx7A.js";import{u as v}from"./useCrudSchemas-Dqk-Y6U_.js";import{k as b}from"./index-CF98-qn9.js";import{_ as x}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 y=d(e({__name:"Subdomain",setup(e){const{t:d}=u(),y=[{keyword:"ip",example:'ip="192.168.2.1"',explain:d("searchHelp.ip")},{keyword:"domain",example:'domain="example.com"',explain:d("searchHelp.domain")},{keyword:"type",example:'type="CNAME"',explain:d("searchHelp.subdomainType")},{keyword:"value",example:'value="allcdn.example.com"',explain:d("searchHelp.subdoaminValue")},{keyword:"project",example:'project="Hackerone"',explain:d("searchHelp.project")}];t((()=>{w(),window.addEventListener("resize",w)}));const S=a(0),w=()=>{const e=window.innerHeight||document.documentElement.clientHeight;S.value=.7*e},z=a(""),k=e=>{z.value=e,L()},E=l([{field:"index",label:d("tableDemo.index"),type:"index",minWidth:10},{field:"host",label:d("subdomain.subdomainName"),minWidth:50},{field:"type",label:d("subdomain.recordType"),minWidth:30},{field:"value",label:d("subdomain.recordValue"),minWidth:50,formatter:(e,t,a)=>{let l="";return a.forEach(((e,t)=>{l+=`${e}\r\n`})),l}},{field:"ip",label:"IP",minWidth:50,formatter:(e,t,a)=>{let l="";return a.forEach(((e,t)=>{l+=`${e}\r\n`})),l}},{field:"time",label:d("asset.time"),minWidth:60}]),{allSchemas:H}=v(E),{tableRegister:C,tableState:P,tableMethods:I}=c({fetchDataApi:async()=>{const{currentPage:e,pageSize:t}=P,a=await b(z.value,e.value,t.value);return{list:a.data.list,total:a.data.total}},immediate:!1}),{loading:U,dataList:W,total:N,currentPage:D,pageSize:A}=P,{getList:L}=I;function T(){return{background:"var(--el-fill-color-light)"}}return L(),(e,t)=>(i(),o(m,null,[r(x,{getList:s(L),handleSearch:k,searchKeywordsData:y,index:"subdomain"},null,8,["getList"]),r(s(f),null,{default:n((()=>[r(s(_),null,{default:n((()=>[r(s(g),{style:{height:"min-content"}},{default:n((()=>[r(s(h),{pageSize:s(A),"onUpdate:pageSize":t[0]||(t[0]=e=>p(A)?A.value=e:null),currentPage:s(D),"onUpdate:currentPage":t[1]||(t[1]=e=>p(D)?D.value=e:null),columns:s(H).tableColumns,data:s(W),stripe:"","max-height":S.value,border:!0,loading:s(U),resizable:!0,onRegister:s(C),headerCellStyle:T,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}),r(s(_),{":span":24},{default:n((()=>[r(s(g),null,{default:n((()=>[r(s(j),{pageSize:s(A),"onUpdate:pageSize":t[2]||(t[2]=e=>p(A)?A.value=e:null),currentPage:s(D),"onUpdate:currentPage":t[3]||(t[3]=e=>p(D)?D.value=e:null),"page-sizes":[10,20,50,100,200,500,1e3],layout:"total, sizes, prev, pager, next, jumper",total:s(N)},null,8,["pageSize","currentPage","total"])])),_:1})])),_:1})])),_:1})],64))}}),[["__scopeId","data-v-346da4b2"]]);export{y as default};