Files
AllinSSL/build/static/js/drawer-UmkbMzCi.js
chudong d1f10bddc7 【修复】ssh 类型显示的问题
【修复】暗色主题自动识别导致的错误
【修复】类型选择错误的问题
2025-05-12 17:29:59 +08:00

2 lines
2.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{d as e,r as a,l as t,m as o,$ as s,c as r,bJ as i,p as l,x as d,y as n}from"./main-BL1hSpaw.js";import{u as p,k as m}from"./index-5_JJ5RAb.js";import{r as u}from"./verify-CQXRXA-H.js";import{D as v}from"./index-BMtwKZdo.js";import"./index-DBDMaCB-.js";import"./index-uWWZAInB.js";import"./test-Xa-ksjft.js";import"./useStore-BTFS5C6j.js";import"./business-jPVOWg10.js";import"./useStore-B-N-SuEc.js";import"./setting-JPNxZ5rr.js";import"./index-DzWRsoND.js";import"./index-CfVJA72F.js";import"./text-B-kuA_Mc.js";import"./Flex-CdcRiyTb.js";const c=e({name:"ApplyNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{domains:"",email:"",provider_id:"",provider:"",end_day:30}})}},setup(e){const{updateNodeConfig:c,isRefreshNode:_}=p(),{confirm:j}=n(),{useFormInput:y,useFormHelp:f}=o(),x=a(m(e.node.config)),g=t((()=>[y(s("t_17_1745227838561"),"domains",{placeholder:s("t_0_1745735774005"),onInput:e=>{x.value.domains=e.trim(),x.value.domains=x.value.domains.replace(//g,","),x.value.domains=x.value.domains.replace(/;/g,",")},onFocus:()=>{x.value.domains=x.value.domains.replace(/,^/g,"")}}),y(s("t_1_1745735764953"),"email",{placeholder:s("t_2_1745735773668"),onInput:e=>x.value.email=e.trim()}),{type:"custom",render:()=>r(v,{type:"dns",path:"provider_id",value:x.value.provider_id,"onUpdate:value":e=>{x.value.provider_id=e.value,x.value.provider=e.type}},null)},{type:"custom",render:()=>r(l,{label:s("t_5_1745735769112"),path:"end_day"},{default:()=>[r(i,{value:x.value.end_day,"onUpdate:value":e=>x.value.end_day=e,showButton:!1,min:1,class:"w-[180px]",placeholder:s("t_6_1745735765205")},null),r("span",{class:"text-[1.4rem] ml-[1.2rem]"},[s("t_7_1745735768326")])]})},f([{content:s("t_0_1747040228657"),isHtml:!1},{content:s("t_1_1747040226143"),isHtml:!1}])])),{component:h,data:w,example:b}=d({defaultValue:x,config:g,rules:u});return j((async a=>{var t;try{await(null==(t=b.value)?void 0:t.validate()),c(e.node.id,w.value),_.value=e.node.id,a()}catch(o){}})),()=>r("div",{class:"apply-node-drawer"},[r(h,{labelPlacement:"top"},null)])}});export{c as default};