← Back
Editing: add-url-proxy.js
import{k as e,ag as l,_ as o,H as a,W as s}from"./utils-lib.js?v=VERSION_NUMBER";import{c as t,p as r,G as p,q as d,v as i,H as n,x as m,M as u,A as c,e as h,y as f,_,P as b,a9 as x,ax as y,a7 as j}from"./base-lib.js?v=VERSION_NUMBER";import{i as V,o as g,f as v,u as w,t as k,s as C,a as T,h as U,p as F,b as H,c as I,d as M,e as R}from"./index430.js?v=VERSION_NUMBER";import"./__commonjsHelpers__.js?v=VERSION_NUMBER";import"./index103.js?v=VERSION_NUMBER";import"./column.js?v=VERSION_NUMBER";import"./index104.js?v=VERSION_NUMBER";import"./validator.js?v=VERSION_NUMBER";import"./useController4.js?v=VERSION_NUMBER";import"./useController5.js?v=VERSION_NUMBER";import"./site.js?v=VERSION_NUMBER";import"./useStore4.js?v=VERSION_NUMBER";import"./useController6.js?v=VERSION_NUMBER";import"./useMethod5.js?v=VERSION_NUMBER";const q={class:"p-[20px]"},A={class:"flex items-center"},G=t({__name:"add-url-proxy",setup:(t,{expose:G})=>(r((()=>{V()})),G({onConfirm:g}),(t,r)=>{const V=e,g=x,G=l,L=o,P=a,S=y,W=j,$=s,z=p("bt-loading");return d(),i("div",q,[n((d(),u(W,{ref_key:"proxyFormRef",ref:H,model:m(w),rules:m(I),"label-width":"100px",disabled:m(M)},{default:c((()=>[h(g,{label:"代理目录",prop:"path"},{default:c((()=>[h(V,{modelValue:m(w).path,"onUpdate:modelValue":r[0]||(r[0]=e=>m(w).path=e),placeholder:"请输入代理目录,例如:/web",width:"42rem"},null,8,["modelValue"])])),_:1}),h(g,{label:"目标",prop:"proxysite"},{default:c((()=>[f("div",A,[h(g,null,{default:c((()=>[h(G,{class:"!w-[16rem]",modelValue:m(w).targetType,"onUpdate:modelValue":r[1]||(r[1]=e=>m(w).targetType=e),placeholder:"请选择",options:m(k),onChange:m(C)},null,8,["modelValue","options","onChange"])])),_:1}),h(V,{modelValue:m(w).proxysite,"onUpdate:modelValue":r[2]||(r[2]=e=>m(w).proxysite=e),placeholder:"http"===m(w).targetType?"请输入目标地址":"请选择sock文件",class:"!ml-[1rem]",width:"24rem",iconType:"http"!==m(w).targetType&&"folder",onFolder:m(T),onInput:m(U)},_({_:2},["http"!==m(w).targetType?{name:"append",fn:c((()=>[h(P,{onClick:m(T)},{default:c((()=>[h(L,{icon:"el-folder-opened",class:"cursor-pointer"})])),_:1},8,["onClick"])])),key:"0"}:void 0]),1032,["modelValue","placeholder","iconType","onFolder","onInput"])])])),_:1}),h(g,{label:"发送域名(host)",prop:"todomain","label-width":"100px"},{default:c((()=>[h(S,{placement:"top-start",effect:"dark",title:"",content:"请求转发到后端服务器时的主机名,一般为$http_host,如果目标URL是域名,则需要改为域名",width:"400",visible:m(F),"onUpdate:visible":r[5]||(r[5]=e=>b(F)?F.value=e:null),"trigger-keys":[],trigger:"focus"},{reference:c((()=>[h(V,{modelValue:m(w).todomain,"onUpdate:modelValue":r[3]||(r[3]=e=>m(w).todomain=e),onFocus:r[4]||(r[4]=e=>F.value=!0),placeholder:"请输入发送域名",width:"42rem"},null,8,["modelValue"])])),_:1},8,["visible"])])),_:1}),h(g,{label:"备注"},{default:c((()=>[h(V,{modelValue:m(w).ps,"onUpdate:modelValue":r[6]||(r[6]=e=>m(w).ps=e),placeholder:"请输入备注,可为空",width:"42rem"},null,8,["modelValue"])])),_:1})])),_:1},8,["model","rules","disabled"])),[[z,m(v)]]),h($,{options:m(R),class:"mt-2rem ml-[20px]"},null,8,["options"])])})});export{G as default};
Save File
Cancel