mirror of https://github.com/allinssl/allinssl
【新增】部署类型七牛云oss、七牛云cdn、百度cdn、腾讯waf、腾讯edgeone、阿里云waf
【新增】解析类型godaddy 【新增】自定义CA授权管理 【调整】优化部署流程,减少代码冗余,提升类型添加效率pull/135/head
parent
71de397e11
commit
e5634d4992
|
@ -5,8 +5,8 @@
|
|||
<link rel="icon" href="./favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>AllinSSL</title>
|
||||
<script type="module" crossorigin src="./static/js/main-_YC_VKXp.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./static/css/style-D5zOrvEv.css">
|
||||
<script type="module" crossorigin src="./static/js/main-EKerUt1c.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./static/css/style-DQS4sqse.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 98 KiB |
Binary file not shown.
Before Width: | Height: | Size: 70 KiB |
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{u as s}from"./index-DgNDs9b-.js";import{d as t,c as o}from"./main-EKerUt1c.js";import"./useStore-BByMixzl.js";import"./index-BJkSUJ7m.js";import"./access-B2YbqIlT.js";import"./index-Duw1MODi.js";import"./throttle-Vbu5SlCQ.js";import"./index-atuhhpsW.js";import"./data-D9OX3Jew.js";import"./index-Cg1dO5ll.js";import"./business-i3H-Qmf8.js";import"./index-l4kSxxq9.js";const r=t({name:"CAManageForm",setup(){const{CAForm:t}=s();return()=>o(t,{labelPlacement:"top"},null)}});export{r as default};
|
|
@ -0,0 +1 @@
|
|||
import{d as a,Y as l,Z as n,_ as r}from"./main-EKerUt1c.js";const t={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},o=a({name:"Certificate20Regular",render:function(a,o){return n(),l("svg",t,o[0]||(o[0]=[r("g",{fill:"none"},[r("path",{d:"M2 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v3.146a4.508 4.508 0 0 0-1-.678V5a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h7.258c.076.113.157.223.242.329V15H4a2 2 0 0 1-2-2V5zm16.5 6.5c0 .954-.381 1.818-1 2.45V18a.5.5 0 0 1-.8.4l-1.4-1.05a.5.5 0 0 0-.6 0l-1.4 1.05a.5.5 0 0 1-.8-.4v-4.05a3.5 3.5 0 1 1 6-2.45zM15 15c-.537 0-1.045-.12-1.5-.337v2.087l1.243-.746a.5.5 0 0 1 .514 0l1.243.746v-2.087A3.486 3.486 0 0 1 15 15zm0-1a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5zM5 6.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm.5 4.5a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4z",fill:"currentColor"})],-1)]))}}),h={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},w=a({name:"CloudMonitoring",render:function(a,t){return n(),l("svg",h,t[0]||(t[0]=[r("path",{d:"M28 16v6H4V6h7V4H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8v4H8v2h16v-2h-4v-4h8a2 2 0 0 0 2-2v-6zM18 28h-4v-4h4z",fill:"currentColor"},null,-1),r("path",{d:"M18 18h-.01a1 1 0 0 1-.951-.725L15.246 11H11V9h5a1 1 0 0 1 .962.725l1.074 3.76l3.009-9.78A1.014 1.014 0 0 1 22 3a.98.98 0 0 1 .949.684L24.72 9H30v2h-6a1 1 0 0 1-.949-.684l-1.013-3.04l-3.082 10.018A1 1 0 0 1 18 18z",fill:"currentColor"},null,-1)]))}}),v={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},e=a({name:"Flow",render:function(a,t){return n(),l("svg",v,t[0]||(t[0]=[r("path",{d:"M27 22.14V17a2 2 0 0 0-2-2h-8V9.86a4 4 0 1 0-2 0V15H7a2 2 0 0 0-2 2v5.14a4 4 0 1 0 2 0V17h18v5.14a4 4 0 1 0 2 0zM8 26a2 2 0 1 1-2-2a2 2 0 0 1 2 2zm6-20a2 2 0 1 1 2 2a2 2 0 0 1-2-2zm12 22a2 2 0 1 1 2-2a2 2 0 0 1-2 2z",fill:"currentColor"},null,-1)]))}});export{o as C,e as F,w as a};
|
|
@ -1 +0,0 @@
|
|||
import{d as a,_ as l,a0 as n,a1 as r}from"./main-_YC_VKXp.js";const t={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},o=a({name:"Certificate20Regular",render:function(a,o){return n(),l("svg",t,o[0]||(o[0]=[r("g",{fill:"none"},[r("path",{d:"M2 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v3.146a4.508 4.508 0 0 0-1-.678V5a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h7.258c.076.113.157.223.242.329V15H4a2 2 0 0 1-2-2V5zm16.5 6.5c0 .954-.381 1.818-1 2.45V18a.5.5 0 0 1-.8.4l-1.4-1.05a.5.5 0 0 0-.6 0l-1.4 1.05a.5.5 0 0 1-.8-.4v-4.05a3.5 3.5 0 1 1 6-2.45zM15 15c-.537 0-1.045-.12-1.5-.337v2.087l1.243-.746a.5.5 0 0 1 .514 0l1.243.746v-2.087A3.486 3.486 0 0 1 15 15zm0-1a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5zM5 6.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm.5 4.5a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4z",fill:"currentColor"})],-1)]))}}),h={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},w=a({name:"CloudMonitoring",render:function(a,t){return n(),l("svg",h,t[0]||(t[0]=[r("path",{d:"M28 16v6H4V6h7V4H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8v4H8v2h16v-2h-4v-4h8a2 2 0 0 0 2-2v-6zM18 28h-4v-4h4z",fill:"currentColor"},null,-1),r("path",{d:"M18 18h-.01a1 1 0 0 1-.951-.725L15.246 11H11V9h5a1 1 0 0 1 .962.725l1.074 3.76l3.009-9.78A1.014 1.014 0 0 1 22 3a.98.98 0 0 1 .949.684L24.72 9H30v2h-6a1 1 0 0 1-.949-.684l-1.013-3.04l-3.082 10.018A1 1 0 0 1 18 18z",fill:"currentColor"},null,-1)]))}}),v={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},e=a({name:"Flow",render:function(a,t){return n(),l("svg",v,t[0]||(t[0]=[r("path",{d:"M27 22.14V17a2 2 0 0 0-2-2h-8V9.86a4 4 0 1 0-2 0V15H7a2 2 0 0 0-2 2v5.14a4 4 0 1 0 2 0V17h18v5.14a4 4 0 1 0 2 0zM8 26a2 2 0 1 1-2-2a2 2 0 0 1 2 2zm6-20a2 2 0 1 1 2 2a2 2 0 0 1-2-2zm12 22a2 2 0 1 1 2-2a2 2 0 0 1-2 2z",fill:"currentColor"},null,-1)]))}});export{o as C,e as F,w as a};
|
|
@ -0,0 +1 @@
|
|||
import{d as c,Y as n,Z as r,_ as t}from"./main-EKerUt1c.js";const o={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},s=c({name:"LockOutlined",render:function(c,s){return r(),n("svg",o,s[0]||(s[0]=[t("path",{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z",fill:"currentColor"},null,-1)]))}});export{s as L};
|
|
@ -1 +0,0 @@
|
|||
import{d as c,_ as n,a0 as r,a1 as t}from"./main-_YC_VKXp.js";const a={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},o=c({name:"LockOutlined",render:function(c,o){return r(),n("svg",a,o[0]||(o[0]=[t("path",{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z",fill:"currentColor"},null,-1)]))}});export{o as L};
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{c as s}from"./index-BJkSUJ7m.js";const a=a=>s("/v1/access/get_list",a),c=a=>s("/v1/access/add_access",a),e=a=>s("/v1/access/upd_access",a),t=a=>s("/v1/access/del_access",a),_=a=>s("/v1/access/get_all",a),v=a=>s("/v1/access/get_eab_list",a),d=a=>s("/v1/access/add_eab",a),l=a=>s("/v1/access/del_eab",a),g=a=>s("/v1/access/get_all_eab",a),i=a=>s("/v1/access/test_access",a),b=a=>s("/v1/access/get_sites",a);export{c as a,v as b,d as c,t as d,l as e,g as f,a as g,b as h,_ as i,i as t,e as u};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{b2 as $,bd as a,c3 as t,bf as n,bm as s,bh as r}from"./main-_YC_VKXp.js";import{d as e,t as o,c as f}from"./test-ewKHOpi5.js";var A=$((function($,n){return a($+1,(function(){var a=arguments[$];if(null!=a&&t(a[n]))return a[n].apply(a,Array.prototype.slice.call(arguments,0,$));throw new TypeError(e(a)+' does not have a method named "'+n+'"')}))}))(1,"split");const p="(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])",z=new RegExp(`^${p}\\.${p}\\.${p}\\.${p}$`),Z="[0-9A-Fa-f]{1,4}",d=new RegExp([`^(${Z}:){7}${Z}$`,`^(${Z}:){1,7}:$`,"^:((:[0-9A-Fa-f]{1,4}){1,7}|:)$",`^(${Z}:){1,6}:${Z}$`,`^(${Z}:){1,5}(:${Z}){1,2}$`,`^(${Z}:){1,4}(:${Z}){1,3}$`,`^(${Z}:){1,3}(:${Z}){1,4}$`,`^(${Z}:){1,2}(:${Z}){1,5}$`,`^${Z}:(:${Z}){1,6}$`,"^fe80:(:[0-9A-Fa-f]{1,4}){0,4}%[0-9A-Za-z]{1,}$",`^::((ffff(:0{1,4})?:)?${p}\\.${p}\\.${p}\\.${p})$`,`^(${Z}:){1,4}:${p}\\.${p}\\.${p}\\.${p}$`].join("|")),u=new RegExp(`^${p}\\.${p}\\.${p}\\.${p}(\\/([1-2][0-9]|3[0-2]|[1-9]))?$`),c=o(/^[^\s@]+@[^\s@]+\.[^\s@]+$/);o(/^1[3-9]\d{9}$/),o(/^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dXx]$/);const i=o(/^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/),m=o(z),h=o(d),l=$=>m($)||h($);o(u);const x=o(/^([1-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$/);o(/^([0-9A-Fa-f]{2}-){5}[0-9A-Fa-f]{2}$/),o(/^[\u4e00-\u9fa5]+$/);const B=o(/^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),F=o(/^(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)|(?:\*))\.)+(?:[a-zA-Z\u00a1-\uffff]{2,}|xn--[a-zA-Z0-9]+)$/),b=o(/^\*\.(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),g=($,a=",")=>f(s(!0),r(($=>B($)||b($)||F($)),A(a,$)));n((($,a=2,t=!0,n="")=>{if(0===$)return t?"0 B":"0";const s=["B","KB","MB","GB","TB"],r=($,e)=>{const o=s[e],f=0===e||0===a?Math.round($).toString():$.toFixed(a);return n&&o===n||$<1024||e>=s.length-1?t?`${f} ${o}`:f:r($/1024,e+1)};return r($,0)}));export{x as H,B as N,l as O,i as T,g as W,b as q,c as w};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{c as t}from"./index-CfvcGIZn.js";const e=e=>t("/v1/cert/get_list",e),r=e=>t("/v1/cert/upload_cert",e),c=e=>t("/v1/cert/del_cert",e);export{c as d,e as g,r as u};
|
||||
import{c as t}from"./index-BJkSUJ7m.js";const e=e=>t("/v1/cert/get_list",e),r=e=>t("/v1/cert/upload_cert",e),c=e=>t("/v1/cert/del_cert",e);export{c as d,e as g,r as u};
|
|
@ -0,0 +1 @@
|
|||
import{$ as e}from"./main-EKerUt1c.js";const t={email:{name:e("t_68_1745289354676"),type:"mail"},wecom:{name:e("t_33_1746773350932"),type:"wecom"},dingtalk:{name:e("t_32_1746773348993"),type:"dingtalk"},feishu:{name:e("t_34_1746773350153"),type:"feishu"},webhook:{name:"WebHook",type:"webhook"}},n={zerossl:{name:"ZeroSSL",type:"zerossl"},google:{name:"Google",type:"google"}},a={localhost:{name:e("t_4_1744958838951"),icon:"ssh",type:["host"],notApi:!1,hostRelated:{default:{name:e("t_4_1744958838951")}},sort:1},ssh:{name:"SSH",icon:"ssh",type:["host"],hostRelated:{default:{name:"SSH"}},sort:2},btpanel:{name:e("t_10_1745735765165"),icon:"btpanel",hostRelated:{default:{name:e("t_10_1745735765165")},site:{name:e("t_1_1747886307276")}},type:["host"],sort:3},btwaf:{name:e("t_3_1747886302848"),icon:"btwaf",hostRelated:{site:{name:e("t_4_1747886303229")}},type:["host"],sort:4},"1panel":{name:"1Panel",icon:"1panel",hostRelated:{default:{name:"1Panel"},site:{name:e("t_2_1747886302053")}},type:["host"],sort:5},aliyun:{name:e("t_2_1747019616224"),icon:"aliyun",type:["host","dns"],hostRelated:{cdn:{name:e("t_16_1745735766712")},oss:{name:e("t_2_1746697487164")},waf:{name:e("t_10_1744958860078")}},sort:6},tencentcloud:{name:e("t_3_1747019616129"),icon:"tencentcloud",type:["host","dns"],hostRelated:{cdn:{name:e("t_14_1745735766121")},oss:{name:e("t_15_1745735768976")},waf:{name:e("t_9_1744958840634")},teo:{name:e("t_5_1747886301427")}},sort:7},safeline:{name:e("t_11_1747886301986"),icon:"safeline",type:["host"],hostRelated:{panel:{name:e("t_1_1747298114192")},site:{name:e("t_12_1747886302725")}},sort:8},qiniu:{name:e("t_6_1747886301844"),icon:"qiniu",type:["host"],hostRelated:{cdn:{name:e("t_7_1747886302395")},oss:{name:e("t_8_1747886304014")}},sort:9},huaweicloud:{name:e("t_9_1747886301128"),icon:"huaweicloud",type:["dns"],sort:10},baidu:{name:e("t_10_1747886300958"),icon:"baidu",type:["host","dns"],hostRelated:{cdn:{name:"百度云CDN"}},sort:11},cloudflare:{name:"Cloudflare",icon:"cloudflare",type:["dns"],sort:12},volcengine:{name:e("t_13_1747886301689"),icon:"volcengine",type:["dns"],sort:13},westcn:{name:e("t_14_1747886301884"),icon:"westcn",type:["dns"],sort:14},godaddy:{name:"GoDaddy",icon:"godaddy",type:["dns"],sort:15}};export{a as A,n as C,t as M};
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{d as e,r as a,l,m as t,$ as r,c as o,v as s,p as i,y as n,o as p,z as d}from"./main-_YC_VKXp.js";import{u,k as m}from"./index-om8gqXR9.js";import{r as v}from"./verify-Bg53mWHJ.js";import{D as _}from"./index-B5gc07tN.js";import{n as c}from"./utils-CRt-4gJj.js";import"./index-B4eCK1Vg.js";import"./index-CfvcGIZn.js";import"./test-ewKHOpi5.js";import"./useStore-DPijp5DV.js";import"./business-BHFtjiXL.js";import"./useStore-nSggliRA.js";import"./setting-BMEV_MFa.js";import"./index-DhckRLAl.js";import"./index-C6bi-oGn.js";import"./text-B3dBNZHq.js";const h=e({name:"ApplyNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{domains:"",email:"",provider_id:"",provider:"",end_day:30,name_server:"",skip_check:1,algorithm:"RSA2048"}})}},setup(e){const{updateNodeConfig:h,advancedOptions:f,isRefreshNode:j}=u(),{confirm:y}=d(),{useFormInput:R,useFormSelect:S,useFormMore:w,useFormHelp:x,useFormSwitch:g}=t(),A=a(m(e.node.config)),b=l((()=>[R(r("t_17_1745227838561"),"domains",{placeholder:r("t_0_1745735774005"),allowInput:c,onInput:e=>{A.value.domains=e.replace(/,/g,",").replace(/;/g,",")}}),R(r("t_1_1745735764953"),"email",{placeholder:r("t_2_1745735773668"),allowInput:c}),{type:"custom",render:()=>o(_,{type:"dns",path:"provider_id",value:A.value.provider_id,"onUpdate:value":e=>{A.value.provider_id=e.value,A.value.provider=e.type}},null)},{type:"custom",render:()=>o(i,{label:r("t_5_1745735769112"),path:"end_day"},{default:()=>[o(s,{value:A.value.end_day,"onUpdate:value":e=>A.value.end_day=e,showButton:!1,min:1,class:"w-[180px]",placeholder:r("t_6_1745735765205")},null),o("span",{class:"text-[1.4rem] ml-[1.2rem]"},[r("t_7_1745735768326")])]})},w(f),...f.value?[S(r("t_0_1747647014927"),"algorithm",[{label:"RSA2048",value:"RSA2048"},{label:"RSA3072",value:"RSA3072"},{label:"RSA4096",value:"RSA4096"},{label:"RSA8192",value:"RSA8192"},{label:"EC256",value:"EC256"},{label:"EC384",value:"EC384"}],{},{showRequireMark:!1}),R(r("t_0_1747106957037"),"name_server",{placeholder:r("t_1_1747106961747"),allowInput:c,onInput:e=>{A.value.name_server=e.replace(/,/g,",").replace(/;/g,",")}},{showRequireMark:!1}),g(r("t_2_1747106957037"),"skip_check",{},{showRequireMark:!1})]:[],x([{content:r("t_0_1747040228657"),isHtml:!1},{content:r("t_1_1747040226143"),isHtml:!1}])])),{component:k,data:I,example:C}=n({defaultValue:A,config:b,rules:v});return p((()=>{f.value=!1})),y((async a=>{var l;try{await(null==(l=C.value)?void 0:l.validate()),h(e.node.id,I.value),j.value=e.node.id,a()}catch(t){}})),()=>o("div",{class:"apply-node-drawer"},[o(k,{labelPlacement:"top"},null)])}});export{h as default};
|
|
@ -1 +0,0 @@
|
|||
import{d as e,r as o,m as r,$ as t,c as a,y as i,z as s}from"./main-_YC_VKXp.js";import{u as d,k as p}from"./index-om8gqXR9.js";import{u as l}from"./index-CfvcGIZn.js";import{N as n}from"./index-H7h1SuXc.js";import{r as u}from"./verify-DR7nEBk4.js";import{n as m}from"./utils-CRt-4gJj.js";import"./index-B4eCK1Vg.js";import"./test-ewKHOpi5.js";import"./useStore-DPijp5DV.js";import"./useStore-nSggliRA.js";import"./setting-BMEV_MFa.js";import"./index-DhckRLAl.js";import"./index-C6bi-oGn.js";import"./text-B3dBNZHq.js";const v=e({name:"NotifyNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{provider:"",provider_id:"",subject:"",body:""}})}},setup(e){const{updateNodeConfig:v,isRefreshNode:c}=d(),{useFormInput:f,useFormTextarea:j,useFormCustom:_}=r(),{confirm:x}=s(),{handleError:y}=l(),b=o(p(e.node.config)),h=[f(t("t_0_1745920566646"),"subject",{placeholder:t("t_3_1745887835089"),allowInput:m}),j(t("t_1_1745920567200"),"body",{placeholder:t("t_4_1745887835265"),rows:4,allowInput:m}),_((()=>a(n,{path:"provider_id",value:b.value.provider_id,isAddMode:!0,"onUpdate:value":e=>{b.value.provider_id=e.value,b.value.provider=e.type}},null)))],{component:w,data:g,example:N}=i({defaultValue:b,config:h,rules:u});return x((async o=>{var r;try{await(null==(r=N.value)?void 0:r.validate()),v(e.node.id,g.value),c.value=e.node.id,o()}catch(t){y(t)}})),()=>a("div",{class:"notify-node-drawer"},[a(w,{labelPlacement:"top"},null)])}});export{v as default};
|
|
@ -1 +0,0 @@
|
|||
import{d as e,r as a,z as t,l as r,m as l,$ as o,y as s,o as i,c as u}from"./main-_YC_VKXp.js";import{u as c}from"./index-CfvcGIZn.js";import{u as n,k as d}from"./index-om8gqXR9.js";import{u as m,g as p}from"./cert-DSAM9ViH.js";import{r as v}from"./verify-B5EsCQ2P.js";import{n as _}from"./utils-CRt-4gJj.js";import"./index-B4eCK1Vg.js";import"./test-ewKHOpi5.js";import"./useStore-DPijp5DV.js";const f=e({name:"UploadNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{cert_id:"",cert:"",key:""}})}},setup(e){const{updateNodeConfig:f,isRefreshNode:y}=n(),{useFormTextarea:h,useFormSelect:w,useFormHelp:j}=l(),k=a(d(e.node.config)),{confirm:x,options:b}=t(),{handleError:g}=c(),F=b(),N=a([{cert:"",key:"",label:"自定义证书",value:""}]),H=r((()=>[w(o("t_0_1747110184700"),"cert_id",N.value,{filterable:!0,onUpdateValue:e=>{k.value.cert_id=e;const a=T(e);a&&(k.value.cert=a.cert,k.value.key=a.key)}},{showRequireMark:!1}),h(o("t_34_1745735771147"),"cert",{placeholder:o("t_35_1745735781545"),rows:6,readonly:""!==k.value.cert_id,allowInput:_}),h(o("t_36_1745735769443"),"key",{placeholder:o("t_37_1745735779980"),rows:6,readonly:""!==k.value.cert_id,allowInput:_}),j([{content:o("t_1_1747110191587")},{content:o("t_2_1747110193465")}])])),{component:I,data:R,example:S}=s({defaultValue:k,config:H,rules:v}),T=e=>N.value.find((a=>a.value===e));return i((async()=>{await(async()=>{try{const{data:e}=await p({p:1,limit:100}).fetch();N.value=(null==e?void 0:e.map((e=>({cert:e.cert,key:e.key,label:e.domains+" 【 "+e.issuer+" 】",value:e.sha256}))))||[],N.value.unshift({cert:"",key:"",label:"自定义证书",value:""})}catch(e){N.value=[],g(e)}})()})),F.value.confirmText=r((()=>""===k.value.cert_id?o("t_3_1747110185110"):o("t_2_1744861190040"))),x((async a=>{var t;try{if(await(null==(t=S.value)?void 0:t.validate()),""===k.value.cert_id){const{data:e}=await m(k.value).fetch();k.value.cert_id=e}f(e.node.id,R.value),y.value=e.node.id,a()}catch(r){g(r)}})),()=>u("div",{class:"upload-node-drawer"},[u(I,{labelPlacement:"top"},null)])}});export{f as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{u as a,a as o}from"./index-om8gqXR9.js";import{d as e,a as r,l as i,x as s,aT as t,c as n,$ as d}from"./main-_YC_VKXp.js";import{r as l}from"./verify-Bg53mWHJ.js";import{u as m}from"./index-C6bi-oGn.js";import"./index-B4eCK1Vg.js";import"./index-CfvcGIZn.js";import"./test-ewKHOpi5.js";import"./useStore-DPijp5DV.js";import"./business-BHFtjiXL.js";const p=e({name:"ApplyNode",props:{node:{type:Object,default:()=>({id:"",config:{}})}},setup(e){const{isRefreshNode:p}=a(),{registerCompatValidator:u,validate:v,validationResult:c,unregisterValidator:f}=o(),j=r(["warningColor","primaryColor"]),x=i((()=>c.value.valid?"var(--n-primary-color)":"var(--n-warning-color)"));return s((()=>p.value),(a=>{m((()=>{u(e.node.id,l,e.node.config),v(e.node.id),p.value=null}),500)}),{immediate:!0}),t((()=>f(e.node.id))),()=>{var a;return n("div",{style:j.value,class:"text-[12px]"},[n("div",{style:{color:x.value}},[c.value.valid?"域名:"+(null==(a=e.node.config)?void 0:a.domains):d("t_9_1745735765287")])])}}});export{p as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{u as e,N as a}from"./index-CfvcGIZn.js";import{d as l,r as t,x as u,o as s,aT as d,c as n,w as o,q as v,$ as p,n as r,B as i,i as y}from"./main-_YC_VKXp.js";import{b as f}from"./useStore-nSggliRA.js";import{S as c}from"./index-B4eCK1Vg.js";import{a as b,N as m}from"./text-B3dBNZHq.js";const _=l({name:"DnsProviderSelect",props:{type:{type:String,default:""},path:{type:String,default:""},value:{type:String,default:""},valueType:{type:String,default:"value"},isAddMode:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},customClass:{type:String,default:""}},emits:["update:value"],setup(l,{emit:_}){const{handleError:g}=e(),{fetchDnsProvider:x,resetDnsProvider:h,dnsProvider:S}=f(),j=t({label:"",value:"",type:""}),w=t([]),C=t(!1),T=t(""),D=()=>{window.open("/auth-api-manage","_blank")},P=({option:e})=>n("div",{class:"flex items-center"},[e.label?k(e):n(b,{class:"text-[#aaa]"},{default:()=>["dns"===l.type?p("t_0_1747019621052",[]):p("t_0_1746858920894")]})]),k=e=>n(m,null,{default:()=>[n(c,{icon:`resources-${e.type}`,size:"2rem"},null),n(b,null,{default:()=>[e.label]})]}),A=async()=>{var e,a,l;const t=S.value.find((e=>e.value===j.value.value));t&&(j.value={label:t.label,value:t.value,type:t.type}),S.value.length>0&&""===j.value.value&&(j.value={label:(null==(e=S.value[0])?void 0:e.label)||"",value:(null==(a=S.value[0])?void 0:a.value)||"",type:(null==(l=S.value[0])?void 0:l.type)||""}),_("update:value",j.value)},B=e=>{j.value.value=e,A()},L=async(e="")=>{C.value=!0,T.value="";try{await x(e)}catch(a){T.value="string"==typeof a?a:p("t_0_1746760933542"),g(a)}finally{C.value=!1}},M=(e,a)=>a.label.toLowerCase().includes(e.toLowerCase());return u((()=>S.value),(e=>{w.value=e.map((e=>({label:e.label,value:"value"===l.valueType?e.value:e.type,type:"value"===l.valueType?e.type:e.value})))||[],A()})),u((()=>l.value),(()=>{B(l.value)}),{immediate:!0}),s((()=>{L(l.type)})),d((()=>{h()})),()=>{let e;return n(a,{show:C.value},{default:()=>[n(o,{cols:24,class:l.customClass},{default:()=>[n(v,{span:l.isAddMode?13:24,label:"dns"===l.type?p("t_3_1745735765112"):p("t_0_1746754500246"),path:l.path},{default:()=>[n(r,{class:"flex-1 w-full",options:w.value,renderLabel:k,renderTag:P,filterable:!0,filter:M,placeholder:"dns"===l.type?p("t_3_1745490735059"):p("t_0_1746858920894"),value:j.value.value,"onUpdate:value":e=>j.value.value=e,onUpdateValue:B,disabled:l.disabled},{empty:()=>n("span",{class:"text-[1.4rem]"},[T.value||("dns"===l.type?p("t_1_1746858922914"):p("t_2_1746858923964"))])})]}),l.isAddMode&&n(v,{span:11},{default:()=>{return[n(i,{class:"mx-[8px]",onClick:D,disabled:l.disabled},{default:()=>["dns"===l.type?p("t_1_1746004861166"):p("t_3_1746858920060")]}),n(i,{onClick:()=>L(l.type),loading:C.value,disabled:l.disabled},(a=e=p("t_0_1746497662220"),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!y(a)?e:{default:()=>[e]}))];var a}})]})]})}}});export{_ as D};
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
/* empty css */const e={Modal:{preset:"card"}},r={name:"defaultLight",type:"light",title:"默认亮色主题",themeOverrides:{common:{borderRadius:"0.6rem"}},presetsOverrides:e},t={name:"defaultDark",type:"dark",title:"默认暗色主题",themeOverrides:{common:{borderRadius:"0.6rem"},Popover:{}},presetsOverrides:e};export{t as defaultDark,r as defaultLight};
|
|
@ -0,0 +1 @@
|
|||
import{d as e,u as t,a as o,c as r,b as s,$ as l,B as a,i as c}from"./main-EKerUt1c.js";const m=(e=16,t="var(--n-text-color-1)")=>r("svg",{width:e,height:e,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:t},[r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.6 1c1.6.1 3.1.9 4.2 2 1.3 1.4 2 3.1 2 5.1 0 1.6-.6 3.1-1.6 4.4-1 1.2-2.4 2.1-4 2.4-1.6.3-3.2.1-4.6-.7-1.4-.8-2.5-2-3.1-3.5C.9 9.2.8 7.5 1.3 6c.5-1.6 1.4-2.9 2.8-3.8C5.4 1.3 7 .9 8.6 1zm.5 12.9c1.3-.3 2.5-1 3.4-2.1.8-1.1 1.3-2.4 1.2-3.8 0-1.6-.6-3.2-1.7-4.3-1-1-2.2-1.6-3.6-1.7-1.3-.1-2.7.2-3.8 1-1.1.8-1.9 1.9-2.3 3.3-.4 1.3-.4 2.7.2 4 .6 1.3 1.5 2.3 2.7 3 1.2.7 2.6.9 3.9.6zM7.9 7.5L10.3 5l.7.7-2.4 2.5 2.4 2.5-.7.7-2.4-2.5-2.4 2.5-.7-.7 2.4-2.5-2.4-2.5.7-.7 2.4 2.5z"},null)]),n=e({setup(){const e=t(),n=o(["baseColor","textColorBase","textColorSecondary","textColorDisabled","textColorInverse","textColor1"]);return()=>{let t;return r("div",{class:"flex flex-col items-center justify-center min-h-screen p-4",style:n.value},[s(" "),r("div",{class:"text-center px-4 sm:px-8 max-w-[60rem] mx-auto"},[s(" "),r("div",{class:"text-[4.5rem] sm:text-[6rem] md:text-[8rem] font-bold leading-none mb-2 sm:mb-4",style:{color:"var(--n-text-color-base)",textShadow:"2px 2px 8px rgba(0,0,0,0.25)"}},[s("404")]),r("div",{class:"flex items-center justify-center mb-4 sm:mb-8"},[m(60,"var(--n-text-color-base)")]),r("div",{class:"text-[1.2rem] sm:text-[1.5rem] md:text-[1.8rem] mb-4 sm:mb-8",style:{color:"var(--n-text-color-secondary)"}},[l("t_0_1744098811152")]),r(a,{style:{backgroundColor:"var(--n-text-color-base)",color:"var(--n-base-color)",border:"none"},onClick:()=>e.push("/")},(o=t=l("t_1_1744098801860"),"function"==typeof o||"[object Object]"===Object.prototype.toString.call(o)&&!c(o)?t:{default:()=>[t]})),r("div",{class:"mt-4 sm:mt-8 text-[1rem] sm:text-[1.1rem] md:text-[1.3rem]",style:{color:"var(--n-text-color-disabled)"}},[l("t_2_1744098804908")])])]);var o}}});export{n as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{u as a,a as e}from"./index-om8gqXR9.js";import{d as o,a as r,l as i,$ as t,x as s,aT as d,c as l}from"./main-_YC_VKXp.js";import{r as n}from"./verify-CVXalPo-.js";import{u as m}from"./index-C6bi-oGn.js";import"./index-B4eCK1Vg.js";import"./index-CfvcGIZn.js";import"./test-ewKHOpi5.js";import"./useStore-DPijp5DV.js";const p=o({name:"StartNode",props:{node:{type:Object,default:()=>({id:"",config:{}})}},setup(o){const{isRefreshNode:p}=a(),{validate:u,validationResult:v,registerCompatValidator:c,unregisterValidator:f}=e(),x=r(["warningColor","primaryColor"]),j=i((()=>v.value.valid?"var(--n-primary-color)":"var(--n-warning-color)")),y=i((()=>v.value.valid?"auto"===o.node.config.exec_type?t("t_4_1744875940750"):t("t_5_1744875940010"):"未配置"));return s((()=>p.value),(a=>{m((()=>{c(o.node.id,n,o.node.config),u(o.node.id),p.value=null}),500)}),{immediate:!0}),d((()=>f(o.node.id))),()=>l("div",{style:x.value,class:"text-[12px]"},[l("div",{style:{color:j.value}},[y.value])])}});export{p as default};
|
|
@ -1 +0,0 @@
|
|||
import{bj as t,c4 as e,c5 as n,b$ as i,c6 as a,aQ as o,o as r,V as s,x as u,J as c,r as l,c7 as f,bw as m}from"./main-_YC_VKXp.js";function v(t){return!!a()&&(o(t),!0)}const p="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const d=Object.prototype.toString,b=t=>"[object Object]"===d.call(t),w=()=>{};function y(t,e){return function(...n){return new Promise(((i,a)=>{Promise.resolve(t((()=>e.apply(this,n)),{fn:e,thisArg:this,args:n})).then(i).catch(a)}))}}const g=t=>t();function h(t=g,n={}){const{initialState:i="active"}=n,a=function(...t){if(1!==t.length)return c(...t);const n=t[0];return"function"==typeof n?e(f((()=>({get:n,set:w})))):l(n)}("active"===i);return{isActive:e(a),pause:function(){a.value=!1},resume:function(){a.value=!0},eventFilter:(...e)=>{a.value&&t(...e)}}}function j(t){return Array.isArray(t)?t:[t]}function A(t,e=200,a=!1,o=!0,r=!1){return y(function(...t){let e,a,o,r,s,u,c=0,l=!0,f=w;n(t[0])||"object"!=typeof t[0]?[o,r=!0,s=!0,u=!1]=t:({delay:o,trailing:r=!0,leading:s=!0,rejectOnCancel:u=!1}=t[0]);const m=()=>{e&&(clearTimeout(e),e=void 0,f(),f=w)};return t=>{const n=i(o),v=Date.now()-c,p=()=>a=t();return m(),n<=0?(c=Date.now(),p()):(v>n&&(s||!l)?(c=Date.now(),p()):r&&(a=new Promise(((t,i)=>{f=u?i:t,e=setTimeout((()=>{c=Date.now(),l=!0,t(p()),m()}),Math.max(0,n-v))}))),s||e||(e=setTimeout((()=>l=!0),n)),l=!1,a)}}(e,a,o,r),t)}function S(t,e,n={}){const{eventFilter:i,initialState:a="active",...o}=n,{eventFilter:r,pause:s,resume:c,isActive:l}=h(i,{initialState:a}),f=function(t,e,n={}){const{eventFilter:i=g,...a}=n;return u(t,y(i,e),a)}(t,e,{...o,eventFilter:r});return{stop:f,pause:s,resume:c,isActive:l}}function T(t,e=!0,n){m()?r(t,n):e?t():s(t)}function F(n,a,o={}){const{immediate:r=!0,immediateCallback:s=!1}=o,u=t(!1);let c=null;function l(){c&&(clearTimeout(c),c=null)}function f(){u.value=!1,l()}function m(...t){s&&n(),l(),u.value=!0,c=setTimeout((()=>{u.value=!1,c=null,n(...t)}),i(a))}return r&&(u.value=!0,p&&m()),v(f),{isPending:e(u),start:m,stop:f}}function D(t,e,n){return u(t,e,{...n,immediate:!0})}export{A as a,j as b,D as c,v as d,b as e,p as i,T as t,F as u,S as w};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{d as e,c as s}from"./main-_YC_VKXp.js";const t=e({name:"BaseComponent",setup(e,{slots:t}){const l=t["header-left"]||t.headerLeft,f=t["header-right"]||t.headerRight,r=t.header||t.header,o=t["footer-left"]||t.footerLeft,a=t["footer-right"]||t.footerRight,i=t.footer||t.footer;return()=>s("div",{class:"flex flex-col"},[(l||f)&&s("div",{class:"flex justify-between flex-wrap",style:{rowGap:"0.8rem"}},[s("div",{class:"flex flex-shrink-0"},[l&&l()]),s("div",{class:"flex flex-shrink-0"},[f&&f()])]),r&&s("div",{class:"flex justify-between flex-wrap w-full"},[r&&r()]),s("div",{class:`w-full content ${l||f?"mt-[1.2rem]":""} ${o||a?"mb-[1.2rem]":""}`},[t.content&&t.content()]),(o||a)&&s("div",{class:"flex justify-between"},[s("div",{class:"flex flex-shrink-0"},[o&&o()]),s("div",{class:"flex flex-shrink-0"},[a&&a()])]),i&&s("div",{class:"flex justify-between w-full"},[i()]),t.popup&&t.popup()])}});export{t as B};
|
|
@ -0,0 +1 @@
|
|||
import{u as e}from"./useStore-Dezhl5Ae.js";import{u as a,N as l}from"./index-BJkSUJ7m.js";import{r as t,x as u,o as s,aV as v,$ as d,d as o,c as r,w as n,q as i,n as p,B as y,i as c}from"./main-EKerUt1c.js";import{S as f}from"./index-Cg1dO5ll.js";import{a as m,N as b}from"./business-i3H-Qmf8.js";const _=o({name:"DnsProviderSelect",props:{type:{type:String,required:!0},path:{type:String,required:!0},value:{type:String,required:!0},valueType:{type:String,default:"value"},isAddMode:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},customClass:{type:String,default:""}},emits:["update:value"],setup(o,{emit:_}){const g=function(l,o){const{handleError:r}=a(),{fetchDnsProvider:n,resetDnsProvider:i,dnsProvider:p}=e(),y=t({label:"",value:"",type:""}),c=t([]),f=t(!1),m=t(""),b=()=>{var e,a,t,u,s;const v=p.value.find((e=>("value"===l.valueType?e.value:e.type)===y.value.value));v?y.value={label:v.label,value:"value"===l.valueType?v.value:v.type,type:"value"===l.valueType?v.type:v.value}:p.value.length>0&&""===y.value.value&&(y.value={label:(null==(e=p.value[0])?void 0:e.label)||"",value:"value"===l.valueType?(null==(a=p.value[0])?void 0:a.value)||"":(null==(t=p.value[0])?void 0:t.type)||"",type:"value"===l.valueType?(null==(u=p.value[0])?void 0:u.type)||"":(null==(s=p.value[0])?void 0:s.value)||""}),o("update:value",{...y.value})},_=e=>{y.value.value=e,b()},g=async(e=l.type)=>{f.value=!0,m.value="";try{await n(e),l.value?_(l.value):b()}catch(a){m.value="string"==typeof a?a:d("t_0_1746760933542"),r(a)}finally{f.value=!1}};return u((()=>p.value),(e=>{var a,t;c.value=e.map((e=>({label:e.label,value:"value"===l.valueType?e.value:e.type,type:"value"===l.valueType?e.type:e.value})))||[],c.value.some((e=>e.value===y.value.value))?b():l.value&&c.value.some((e=>e.value===l.value))?_(l.value):(y.value.value=(null==(t=null==(a=c.value)?void 0:a[0])?void 0:t.value)||"",b())}),{deep:!0}),u((()=>l.value),(e=>{e!==y.value.value&&_(e)}),{immediate:!0}),u((()=>l.type),(e=>{g(e)})),s((()=>{g(l.type)})),v((()=>{i()})),{param:y,dnsProviderRef:c,isLoading:f,errorMessage:m,goToAddDnsProvider:()=>{window.open("/auth-api-manage","_blank")},handleUpdateValue:_,loadDnsProviders:g,handleFilter:(e,a)=>a.label.toLowerCase().includes(e.toLowerCase())}}(o,_),h=e=>r(b,{align:"center"},{default:()=>[r(f,{icon:`resources-${e.type}`,size:"2rem"},null),r(m,null,{default:()=>[e.label]})]});return()=>{let e;return r(l,{show:g.isLoading.value},{default:()=>[r(n,{cols:24,class:o.customClass},{default:()=>[r(i,{span:o.isAddMode?13:24,label:"dns"===o.type?d("t_3_1745735765112"):d("t_0_1746754500246"),path:o.path},{default:()=>[r(p,{class:"flex-1 w-full",options:g.dnsProviderRef.value,renderLabel:h,renderTag:({option:e})=>(({option:e})=>r("div",{class:"flex items-center"},[e.label?h(e):r(m,{class:"text-[#aaa]"},{default:()=>["dns"===o.type?d("t_0_1747019621052"):d("t_0_1746858920894")]})]))({option:e}),filterable:!0,filter:(e,a)=>g.handleFilter(e,a),placeholder:"dns"===o.type?d("t_3_1745490735059"):d("t_0_1746858920894"),value:g.param.value.value,onUpdateValue:g.handleUpdateValue,disabled:o.disabled},{empty:()=>r("span",{class:"text-[1.4rem]"},[g.errorMessage.value||("dns"===o.type?d("t_1_1746858922914"):d("t_2_1746858923964"))])})]}),o.isAddMode&&r(i,{span:11},{default:()=>{return[r(y,{class:"mx-[8px]",onClick:g.goToAddDnsProvider,disabled:o.disabled},{default:()=>["dns"===o.type?d("t_1_1746004861166"):d("t_3_1746858920060")]}),r(y,{onClick:()=>g.loadDnsProviders(o.type),loading:g.isLoading.value,disabled:o.disabled},(a=e=d("t_0_1746497662220"),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!c(a)?e:{default:()=>[e]}))];var a}})]})]})}}});export{_ as D};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{d as e,l as i,c as r}from"./main-_YC_VKXp.js";const t=e({name:"SvgIcon",props:{icon:{type:String,required:!0},color:{type:String,default:""},size:{type:String,default:"1.8rem"}},setup(e){const t=i((()=>`#icon-${e.icon}`));return()=>r("svg",{class:"relative inline-block align-[-0.2rem]",style:{width:e.size,height:e.size},"aria-hidden":"true"},[r("use",{"xlink:href":t.value,fill:e.color},null)])}});export{t as S};
|
||||
import{d as e,l as i,c as r}from"./main-EKerUt1c.js";const t=e({name:"SvgIcon",props:{icon:{type:String,required:!0},color:{type:String,default:""},size:{type:String,default:"1.8rem"}},setup(e){const t=i((()=>`#icon-${e.icon}`));return()=>r("svg",{class:"relative inline-block align-[-0.2rem]",style:{width:e.size,height:e.size},"aria-hidden":"true"},[r("use",{"xlink:href":t.value,fill:e.color},null)])}});export{t as S};
|
|
@ -0,0 +1 @@
|
|||
import{S as e}from"./index-Cg1dO5ll.js";import{r as t,l,x as a,d as u,c as n,w as i,q as o,$ as s,n as r,b2 as d,bu as p,B as v,i as f}from"./main-EKerUt1c.js";import{u as c}from"./useStore-Dezhl5Ae.js";import{M as y}from"./data-D9OX3Jew.js";import{a as m,N as b}from"./business-i3H-Qmf8.js";function h(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!f(e)}const g=u({name:"NotifyProviderSelect",props:{path:{type:String,default:""},value:{type:String,default:""},valueType:{type:String,default:"value",validator:e=>["value","type"].includes(e)},isAddMode:{type:Boolean,default:!1}},emits:{"update:value":e=>"object"==typeof e&&null!==e&&"label"in e&&"value"in e&&"type"in e},setup(u,{emit:f}){const{selectOptions:g,goToAddNotifyProvider:_,handleSelectUpdate:j,fetchNotifyProviderData:x}=function(e,u){const{fetchNotifyProvider:n,notifyProvider:i}=c(),o=t({label:"",value:"",type:""}),s=t([]),r=l((()=>Object.entries(y).map((([t,l])=>({label:l.name,value:"value"===e.valueType?t:l.type,type:l.type}))))),d=e=>{if(!e)return void(o.value={label:"",value:"",type:""});const t=s.value.find((t=>t.value===e));if(t)return void(o.value={...t});const l=r.value.find((t=>t.value===e));o.value=l?{...l}:{label:e,value:e,type:""}},p=()=>{n()};return a((()=>e.value),(e=>{0===s.value.length&&e&&p(),d(e)}),{immediate:!0}),a((()=>i.value),(t=>{t&&t.length>0?s.value=t.map((t=>({label:t.label,value:"value"===e.valueType?t.value:t.type,type:t.type}))):s.value=r.value,d(e.value)}),{immediate:!0,deep:!0}),i.value&&0!==i.value.length||(s.value=r.value,p()),{selectedOptionFull:o,selectOptions:s,goToAddNotifyProvider:()=>{window.open("/settings?tab=notification","_blank")},handleSelectUpdate:e=>{d(e),u("update:value",{...o.value})},fetchNotifyProviderData:p}}(u,f),S=({option:t})=>{let l;const a=t;return n("div",{class:"flex items-center"},[a.label?n(b,{align:"center",size:"small"},{default:()=>[n(e,{icon:`notify-${a.type||""}`,size:"1.6rem"},null),n(m,null,{default:()=>[a.label]})]}):n(m,{depth:"3"},h(l=s("t_0_1745887835267"))?l:{default:()=>[l]})])},N=t=>{const l=t;return n(b,{align:"center",size:"small"},{default:()=>[n(e,{icon:`notify-${l.type||""}`,size:"1.6rem"},null),n(m,null,{default:()=>[l.label]})]})},P=l((()=>g.value.map((e=>({...e})))));return()=>{let e,t;return n(i,{cols:24},{default:()=>[n(o,{span:u.isAddMode?13:24,label:s("t_1_1745887832941"),path:u.path},{default:()=>[n(r,{class:"flex-1 w-full",options:P.value,renderLabel:N,renderTag:S,filterable:!0,clearable:!0,placeholder:s("t_0_1745887835267"),value:u.value,onUpdateValue:j},{empty:()=>n("div",{class:"text-center py-4"},[n(m,{depth:"3",class:"text-[1.4rem]"},{default:()=>[0===g.value.length?s("t_0_1745887835267"):"暂无匹配的通知渠道"]})])})]}),u.isAddMode&&n(d,{span:11},{default:()=>[n("div",{class:"flex items-center h-full"},[n(p,{vertical:!0},null),n(v,{class:"mx-[8px]",onClick:_,ghost:!0},h(e=s("t_2_1745887834248"))?e:{default:()=>[e]}),n(v,{onClick:x,ghost:!0},h(t=s("t_0_1746497662220"))?t:{default:()=>[t]})])]})]})}}});export{g as N};
|
|
@ -1 +0,0 @@
|
|||
import{u as a,a as e}from"./index-om8gqXR9.js";import{r as o}from"./verify-B5EsCQ2P.js";import{d as r,a as i,l as s,x as t,aT as d,c as l}from"./main-_YC_VKXp.js";import{u as n}from"./index-C6bi-oGn.js";import"./index-B4eCK1Vg.js";import"./index-CfvcGIZn.js";import"./test-ewKHOpi5.js";import"./useStore-DPijp5DV.js";const m=r({name:"UploadNode",props:{node:{type:Object,default:()=>({id:"",config:{}})}},setup(r){const{isRefreshNode:m}=a(),{validate:p,validationResult:u,registerCompatValidator:v,unregisterValidator:c}=e(),f=i(["warningColor","primaryColor"]),j=s((()=>u.value.valid?"var(--n-primary-color)":"var(--n-warning-color)")),x=s((()=>u.value.valid?"已配置":"未配置"));return t((()=>m.value),(a=>{n((()=>{v(r.node.id,o,r.node.config),p(r.node.id),m.value=null}),500)}),{immediate:!0}),d((()=>c(r.node.id))),()=>l("div",{style:f.value,class:"text-[12px]"},[l("div",{style:{color:j.value}},[x.value])])}});export{m as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{d as t,_ as l,a0 as e,a1 as a,c as s,a9 as n,b as r,B as i}from"./main-_YC_VKXp.js";const u={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},o=t({name:"PlusOutlined",render:function(t,s){return e(),l("svg",u,s[0]||(s[0]=[a("defs",null,null,-1),a("path",{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z",fill:"currentColor"},null,-1),a("path",{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z",fill:"currentColor"},null,-1)]))}}),p={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},d=t({name:"Search",render:function(t,s){return e(),l("svg",p,s[0]||(s[0]=[a("path",{d:"M29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29zM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9z",fill:"currentColor"},null,-1)]))}}),m=t({name:"EmptyActionPrompt",props:{addButtonText:{type:String,required:!0},onAddClick:{type:Function,required:!0}},setup:t=>()=>s("div",{class:"flex justify-center items-center h-full"},[s(n,{class:"px-[4rem]"},{default:()=>[r("请先"),s(i,{text:!0,type:"primary",size:"small",onClick:t.onAddClick},{default:()=>[t.addButtonText]}),r(",有问题或建议可提"),s(i,{text:!0,tag:"a",target:"_blank",type:"primary",href:"https://github.com/allinssl/allinssl/issues"},{default:()=>[r("Issues")]}),r(",也可在Github给我们"),s(i,{text:!0,tag:"a",target:"_blank",type:"primary",href:"https://github.com/allinssl/allinssl"},{default:()=>[r("Star")]}),r(",您的参与对AllinSSL极其重要,感谢。")]})])});export{m as E,o as P,d as S};
|
|
@ -1 +0,0 @@
|
|||
import{d as o,a as e,l as i,c as r,$ as a,x as s,aT as t}from"./main-_YC_VKXp.js";import{u as d,a as n}from"./index-om8gqXR9.js";import{r as l}from"./verify-DR7nEBk4.js";import{A as p}from"./index-DalsTsKd.js";import{u as m}from"./index-C6bi-oGn.js";import"./index-B4eCK1Vg.js";import"./index-CfvcGIZn.js";import"./test-ewKHOpi5.js";import"./useStore-DPijp5DV.js";const u=o({name:"NotifyNode",props:{node:{type:Object,default:()=>({id:"",config:{}})}},setup(o){const{isRefreshNode:u}=d(),{validate:v,validationResult:c,registerCompatValidator:f,unregisterValidator:j}=n(),x=e(["warningColor","primaryColor"]),g=i((()=>c.value.valid&&o.node.config.provider?"var(--n-primary-color)":"var(--n-warning-color)")),y=i((()=>c.value.valid&&o.node.config.provider?r(p,{icon:o.node.config.provider,type:"success"},null):a("t_9_1745735765287")));return s((()=>u.value),(e=>{m((()=>{f(o.node.id,l,o.node.config),v(o.node.id),u.value=null}),500)}),{immediate:!0}),t((()=>j(o.node.id))),()=>r("div",{style:x.value,class:"text-[12px]"},[r("div",{style:{color:g.value}},[y.value])])}});export{u as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{d as e,u as t,a as o,c as l,b as r,$ as s,B as c,i as a}from"./main-_YC_VKXp.js";const n=(e=16,t="#18181c")=>l("svg",{width:e,height:e,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:t},[l("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.6 1c1.6.1 3.1.9 4.2 2 1.3 1.4 2 3.1 2 5.1 0 1.6-.6 3.1-1.6 4.4-1 1.2-2.4 2.1-4 2.4-1.6.3-3.2.1-4.6-.7-1.4-.8-2.5-2-3.1-3.5C.9 9.2.8 7.5 1.3 6c.5-1.6 1.4-2.9 2.8-3.8C5.4 1.3 7 .9 8.6 1zm.5 12.9c1.3-.3 2.5-1 3.4-2.1.8-1.1 1.3-2.4 1.2-3.8 0-1.6-.6-3.2-1.7-4.3-1-1-2.2-1.6-3.6-1.7-1.3-.1-2.7.2-3.8 1-1.1.8-1.9 1.9-2.3 3.3-.4 1.3-.4 2.7.2 4 .6 1.3 1.5 2.3 2.7 3 1.2.7 2.6.9 3.9.6zM7.9 7.5L10.3 5l.7.7-2.4 2.5 2.4 2.5-.7.7-2.4-2.5-2.4 2.5-.7-.7 2.4-2.5-2.4-2.5.7-.7 2.4 2.5z"},null)]),d=e({setup(){const e=t(),d=o(["cardColor","textColorSecondary","textColorDisabled","textColorInverse"]);return()=>{let t;return l("div",{class:"flex flex-col items-center justify-center min-h-screen ",style:d.value},[l("div",{class:"text-center px-8 max-w-[60rem] mx-auto"},[l("div",{class:"text-[8rem] font-bold leading-none mb-4",style:{color:"#18181c",textShadow:"2px 2px 8px rgba(0,0,0,0.25)"}},[r("404")]),l("div",{class:"flex items-center justify-center mb-8"},[n(60,"#18181c")]),l("div",{class:"text-[1.8rem] mb-8",style:{color:"var(--n-text-color-secondary)"}},[s("t_0_1744098811152")]),l(c,{style:{backgroundColor:"#18181c",color:"#fff",border:"none"},onClick:()=>e.push("/")},(o=t=s("t_1_1744098801860"),"function"==typeof o||"[object Object]"===Object.prototype.toString.call(o)&&!a(o)?t:{default:()=>[t]})),l("div",{class:"mt-8 text-[1.3rem]",style:{color:"var(--n-text-color-disabled)"}},[s("t_2_1744098804908")])])]);var o}}});export{d as default};
|
|
@ -0,0 +1 @@
|
|||
import{p as e,i as t,b as n,t as a,w as r,c as o,d as l,e as s,f as i}from"./index-l4kSxxq9.js";import{bI as u,ay as f,bJ as c,l as d,bK as v,o as g,bL as p,bM as w,r as m,x as y,V as h}from"./main-EKerUt1c.js";const b=n?window:void 0;function S(...e){const t=[],n=()=>{t.forEach((e=>e())),t.length=0},s=d((()=>{const t=a(c(e[0])).filter((e=>null!=e));return t.every((e=>"string"!=typeof e))?t:void 0})),i=r((()=>{var t,n;return[null!=(n=null==(t=s.value)?void 0:t.map((e=>function(e){var t;const n=c(e);return null!=(t=null==n?void 0:n.$el)?t:n}(e))))?n:[b].filter((e=>null!=e)),a(c(s.value?e[1]:e[0])),a(w(s.value?e[2]:e[1])),c(s.value?e[3]:e[2])]}),(([e,a,r,o])=>{if(n(),!(null==e?void 0:e.length)||!(null==a?void 0:a.length)||!(null==r?void 0:r.length))return;const s=l(o)?{...o}:o;t.push(...e.flatMap((e=>a.flatMap((t=>r.map((n=>((e,t,n,a)=>(e.addEventListener(t,n,a),()=>e.removeEventListener(t,n,a)))(e,t,n,s))))))))}),{flush:"post"});return o(n),()=>{i(),n()}}function N(e){const t=function(){const e=u(!1),t=p();return t&&g((()=>{e.value=!0}),t),e}();return d((()=>(t.value,Boolean(e()))))}const M=Symbol("vueuse-ssr-width");function O(){const e=v()?t(M,null):null;return"number"==typeof e?e:void 0}function E(t,n={}){const{window:a=b,ssrWidth:r=O()}=n,o=N((()=>a&&"matchMedia"in a&&"function"==typeof a.matchMedia)),l=u("number"==typeof r),s=u(),i=u(!1);return f((()=>{if(l.value){l.value=!o.value;const n=c(t).split(",");i.value=n.some((t=>{const n=t.includes("not all"),a=t.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),o=t.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let l=Boolean(a||o);return a&&l&&(l=r>=e(a[1])),o&&l&&(l=r<=e(o[1])),n?!l:l}))}else o.value&&(s.value=a.matchMedia(c(t)),i.value=s.value.matches)})),S(s,"change",(e=>{i.value=e.matches}),{passive:!0}),d((()=>i.value))}const I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},J="__vueuse_ssr_handlers__",j=A();function A(){return J in I||(I[J]=I[J]||{}),I[J]}const _={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},x="vueuse-storage";function D(e,t,n,a={}){var r;const{flush:o="pre",deep:l=!0,listenToStorageChanges:f=!0,writeDefaults:v=!0,mergeDefaults:g=!1,shallow:p,window:w=b,eventFilter:N,onError:M=e=>{},initOnMounted:O}=a,E=(p?u:m)("function"==typeof t?t():t),I=d((()=>c(e)));if(!n)try{n=function(e,t){return j[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=b)?void 0:e.localStorage}))()}catch(T){M(T)}if(!n)return E;const J=c(t),A=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}(J),D=null!=(r=a.serializer)?r:_[A],{pause:V,resume:k}=s(E,(()=>function(e){try{const t=n.getItem(I.value);if(null==e)z(t,null),n.removeItem(I.value);else{const a=D.write(e);t!==a&&(n.setItem(I.value,a),z(t,a))}}catch(T){M(T)}}(E.value)),{flush:o,deep:l,eventFilter:N});function z(e,t){if(w){const a={key:I.value,oldValue:e,newValue:t,storageArea:n};w.dispatchEvent(n instanceof Storage?new StorageEvent("storage",a):new CustomEvent(x,{detail:a}))}}function F(e){if(!e||e.storageArea===n)if(e&&null==e.key)E.value=J;else if(!e||e.key===I.value){V();try{(null==e?void 0:e.newValue)!==D.write(E.value)&&(E.value=function(e){const t=e?e.newValue:n.getItem(I.value);if(null==t)return v&&null!=J&&n.setItem(I.value,D.write(J)),J;if(!e&&g){const e=D.read(t);return"function"==typeof g?g(e,J):"object"!==A||Array.isArray(e)?e:{...J,...e}}return"string"!=typeof t?t:D.read(t)}(e))}catch(T){M(T)}finally{e?h(k):k()}}}function L(e){F(e.detail)}return y(I,(()=>F()),{flush:o}),w&&f&&i((()=>{n instanceof Storage?S(w,"storage",F,{passive:!0}):S(w,x,L),O&&F()})),O||F(),E}function V(e,t,n={}){const{window:a=b}=n;return D(e,t,null==a?void 0:a.localStorage,n)}function k(e,t,n={}){const{window:a=b}=n;return D(e,t,null==a?void 0:a.sessionStorage,n)}export{V as a,k as b,E as u};
|
|
@ -1 +0,0 @@
|
|||
import{S as e}from"./index-B4eCK1Vg.js";import{d as n,l,x as a,c as t,N as o}from"./main-_YC_VKXp.js";const c={localhost:"本机部署",ssh:"SSH",aliyun:"阿里云",tencentcloud:"腾讯云",huaweicloud:"华为云",baidu:"百度云",btpanel:"宝塔面板",btwaf:"宝塔WAF",safeline:"雷池WAF","1panel":"1Panel",cloudflare:"Cloudflare",mail:"邮件",dingtalk:"钉钉",wecom:"企业微信",feishu:"飞书",webhook:"WebHook","tencentcloud-cdn":"腾讯云CDN","tencentcloud-cos":"腾讯云COS","aliyun-cdn":"阿里云CDN","aliyun-oss":"阿里云OSS","1panel-site":"1Panel网站","btpanel-site":"宝塔面板网站",volcengine:"火山引擎",westcn:"西部数码"},i=n({name:"TypeIcon",props:{icon:{type:String,required:!0},type:{type:String,default:"default"},align:{type:String,default:"left"},text:{type:Boolean,default:!0}},setup(n){const i=l((()=>(["mail","dingtalk","wecom","feishu","webhook"].includes(n.icon)?"notify-":"resources-")+({localhost:"ssh",ssh:"ssh",aliyun:"aliyun",tencentcloud:"tencentcloud",btpanel:"btpanel",btwaf:"btpanel","1panel":"1panel",huaweicloud:"huaweicloud",cloudflare:"cloudflare",mail:"mail",dingtalk:"dingtalk",wecom:"wecom",feishu:"feishu",webhook:"webhook","tencentcloud-cdn":"tencentcloud","tencentcloud-cos":"tencentcloud","aliyun-cdn":"aliyun","aliyun-oss":"aliyun","1panel-site":"1panel","btpanel-site":"btpanel",baidu:"baidu",safeline:"safeline",volcengine:"volcengine",westcn:"westcn"}[n.icon]||"default"))),s=l((()=>c[n.icon]||n.icon));return a((()=>n.icon),(e=>{})),a((()=>n.type),(e=>{})),()=>t(o,{type:n.type,size:"small"},{default:()=>[t(e,{icon:i.value,size:"1.2rem",class:"mr-[0.4rem]"},null),t("span",{class:"text-[12px]"},[n.text&&t("span",null,[s.value])])]})}});export{i as A};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{i as e,w as t,t as n,b as r,c as a,d as o,e as l}from"./index-C6bi-oGn.js";import{bj as i,r as s,l as u,b$ as f,x as c,V as d,c0 as v}from"./main-_YC_VKXp.js";const g=e?window:void 0;function p(...e){const t=[],n=()=>{t.forEach((e=>e())),t.length=0},i=u((()=>{const t=r(f(e[0])).filter((e=>null!=e));return t.every((e=>"string"!=typeof e))?t:void 0})),s=a((()=>{var t,n;return[null!=(n=null==(t=i.value)?void 0:t.map((e=>function(e){var t;const n=f(e);return null!=(t=null==n?void 0:n.$el)?t:n}(e))))?n:[g].filter((e=>null!=e)),r(f(i.value?e[1]:e[0])),r(v(i.value?e[2]:e[1])),f(i.value?e[3]:e[2])]}),(([e,r,a,o])=>{if(n(),!(null==e?void 0:e.length)||!(null==r?void 0:r.length)||!(null==a?void 0:a.length))return;const i=l(o)?{...o}:o;t.push(...e.flatMap((e=>r.flatMap((t=>a.map((n=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(e,t,n,i))))))))}),{flush:"post"});return o(n),()=>{s(),n()}}const w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y="__vueuse_ssr_handlers__",m=S();function S(){return y in w||(w[y]=w[y]||{}),w[y]}const h={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},b="vueuse-storage";function N(e,r,a,o={}){var l;const{flush:v="pre",deep:w=!0,listenToStorageChanges:y=!0,writeDefaults:S=!0,mergeDefaults:N=!1,shallow:O,window:j=g,eventFilter:E,onError:A=e=>{},initOnMounted:I}=o,J=(O?i:s)("function"==typeof r?r():r),_=u((()=>f(e)));if(!a)try{a=function(e,t){return m[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=g)?void 0:e.localStorage}))()}catch(L){A(L)}if(!a)return J;const D=f(r),M=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}(D),V=null!=(l=o.serializer)?l:h[M],{pause:x,resume:k}=t(J,(()=>function(e){try{const t=a.getItem(_.value);if(null==e)F(t,null),a.removeItem(_.value);else{const n=V.write(e);t!==n&&(a.setItem(_.value,n),F(t,n))}}catch(L){A(L)}}(J.value)),{flush:v,deep:w,eventFilter:E});function F(e,t){if(j){const n={key:_.value,oldValue:e,newValue:t,storageArea:a};j.dispatchEvent(a instanceof Storage?new StorageEvent("storage",n):new CustomEvent(b,{detail:n}))}}function T(e){if(!e||e.storageArea===a)if(e&&null==e.key)J.value=D;else if(!e||e.key===_.value){x();try{(null==e?void 0:e.newValue)!==V.write(J.value)&&(J.value=function(e){const t=e?e.newValue:a.getItem(_.value);if(null==t)return S&&null!=D&&a.setItem(_.value,V.write(D)),D;if(!e&&N){const e=V.read(t);return"function"==typeof N?N(e,D):"object"!==M||Array.isArray(e)?e:{...D,...e}}return"string"!=typeof t?t:V.read(t)}(e))}catch(L){A(L)}finally{e?d(k):k()}}}function C(e){T(e.detail)}return c(_,(()=>T()),{flush:v}),j&&y&&n((()=>{a instanceof Storage?p(j,"storage",T,{passive:!0}):p(j,b,C),I&&T()})),I||T(),J}function O(e,t,n={}){const{window:r=g}=n;return N(e,t,null==r?void 0:r.localStorage,n)}function j(e,t,n={}){const{window:r=g}=n;return N(e,t,null==r?void 0:r.sessionStorage,n)}export{j as a,O as u};
|
|
@ -1 +0,0 @@
|
|||
import{u as e,a as o}from"./index-om8gqXR9.js";import{d as a,a as i,l as s,c as r,$ as t,x as n,aT as d}from"./main-_YC_VKXp.js";import{A as l}from"./index-DalsTsKd.js";import{r as p}from"./verify-D4tLpEQV.js";import{u as m}from"./index-C6bi-oGn.js";import"./index-B4eCK1Vg.js";import"./index-CfvcGIZn.js";import"./test-ewKHOpi5.js";import"./useStore-DPijp5DV.js";import"./business-BHFtjiXL.js";const u=a({name:"DeployNode",props:{node:{type:Object,default:()=>({id:"",inputs:{},config:{}})}},setup(a){const{isRefreshNode:u}=e(),{registerCompatValidator:v,validate:c,validationResult:f,unregisterValidator:j}=o(),x=i(["warningColor","primaryColor"]),y=s((()=>f.value.valid?"var(--n-primary-color)":"var(--n-warning-color)")),g=s((()=>f.value.valid?r(l,{icon:a.node.config.provider,type:"success"},null):t("t_9_1745735765287")));return n((()=>u.value),(e=>{m((()=>{v(a.node.id,p,a.node.config),c(a.node.id),u.value=null}),500)}),{immediate:!0}),d((()=>j(a.node.id))),()=>r("div",{style:x.value,class:"text-[12px]"},[r("div",{style:{color:y.value}},[g.value])])}});export{u as default};
|
|
@ -0,0 +1 @@
|
|||
import{d as e,c as s}from"./main-EKerUt1c.js";const l=e({name:"BaseComponent",setup(e,{slots:l}){const t=l["header-left"]||l.headerLeft,f=l["header-right"]||l.headerRight,r=l.header,o=l["footer-left"]||l.footerLeft,a=l["footer-right"]||l.footerRight,i=l.footer;return()=>s("div",{class:"flex flex-col"},[r?s("div",{class:"flex justify-between flex-wrap w-full"},[r()]):(t||f)&&s("div",{class:"flex justify-between flex-wrap",style:{rowGap:"0.8rem"}},[s("div",{class:"flex flex-shrink-0"},[t&&t()]),s("div",{class:"flex flex-shrink-0"},[f&&f()])]),s("div",{class:`w-full content ${r||t||f?"mt-[1.2rem]":""} ${i||o||a?"mb-[1.2rem]":""}`},[l.content&&l.content()]),i?s("div",{class:"flex justify-between w-full"},[i()]):(o||a)&&s("div",{class:"flex justify-between"},[s("div",{class:"flex flex-shrink-0"},[o&&o()]),s("div",{class:"flex flex-shrink-0"},[a&&a()])]),l.popup&&l.popup()])}});export{l as B};
|
|
@ -1 +0,0 @@
|
|||
import{d as e,r as l,x as a,c as t,w as u,q as n,$ as o,n as i,B as s,i as p}from"./main-_YC_VKXp.js";import{b as r}from"./useStore-nSggliRA.js";import{S as v}from"./index-B4eCK1Vg.js";import{N as d,a as f}from"./text-B3dBNZHq.js";function y(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!p(e)}const c=e({name:"NotifyProviderSelect",props:{path:{type:String,default:""},value:{type:String,default:""},valueType:{type:String,default:"value"},isAddMode:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:p}){const{fetchNotifyProvider:c,notifyProvider:m}=r(),b=l({label:"",value:"",type:""}),_=l([]),x=()=>{window.open("/settings?tab=notification","_blank")},j=({option:l})=>{let a;return t("div",{class:"flex items-center"},[l.label?t(d,null,{default:()=>[t(v,{icon:`notify-${"value"===e.valueType?l.type:l.value}`,size:"2rem"},null),t(f,null,{default:()=>[l.label]})]}):t(f,null,y(a=o("t_0_1745887835267"))?a:{default:()=>[a]})])},S=l=>t(d,null,{default:()=>[t(v,{icon:`notify-${"value"===e.valueType?l.type:l.value}`,size:"2rem"},null),t(f,null,{default:()=>[l.label]})]}),g=e=>{if(!e)return;const l=_.value.find((l=>l.value===e));b.value={label:(null==l?void 0:l.label)||"",value:(null==l?void 0:l.value)||"",type:(null==l?void 0:l.type)||""}},T=e=>{g(e),p("update:value",b.value)};return a((()=>e.value),(e=>{c(),g(e)}),{immediate:!0}),a((()=>m.value),(l=>{_.value=l.map((l=>({label:l.label,value:"value"===e.valueType?l.value:l.type,type:"value"===e.valueType?l.type:l.value})))||[],g(e.value)})),()=>{let l,a;return t(u,{cols:24},{default:()=>[t(n,{span:e.isAddMode?13:24,label:o("t_1_1745887832941"),path:e.path},{default:()=>[t(i,{class:"flex-1 w-full ",options:_.value,renderLabel:S,renderTag:j,filterable:!0,placeholder:o("t_0_1745887835267"),value:b.value.value,"onUpdate:value":e=>b.value.value=e,onUpdateValue:T},{empty:()=>t("span",{class:"text-[1.4rem]"},[o("t_0_1745887835267")])})]}),e.isAddMode&&t(n,{span:11},{default:()=>[t(s,{class:"mx-[8px]",onClick:x},y(l=o("t_2_1745887834248"))?l:{default:()=>[l]}),t(s,{onClick:c},y(a=o("t_0_1746497662220"))?a:{default:()=>[a]})]})]})}}});export{c as N};
|
|
@ -0,0 +1 @@
|
|||
import{d as t,Y as a,Z as e,_ as s,c as l,aa as r,$ as n,b as i,B as p}from"./main-EKerUt1c.js";const u={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},o=t({name:"Search",render:function(t,l){return e(),a("svg",u,l[0]||(l[0]=[s("path",{d:"M29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29zM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9z",fill:"currentColor"},null,-1)]))}}),d=t({name:"TableEmptyState",props:{addButtonText:{type:String,required:!0},onAddClick:{type:Function,required:!0}},setup:t=>()=>l("div",{class:"flex justify-center items-center h-full"},[l(r,{class:"px-[4rem]"},{default:()=>[n("t_1_1747754231838"),l(p,{text:!0,type:"primary",size:"small",onClick:t.onAddClick},{default:()=>[t.addButtonText]}),i(","),n("t_2_1747754234999"),l(p,{text:!0,tag:"a",target:"_blank",type:"primary",href:"https://github.com/allinssl/allinssl/issues"},{default:()=>[i("Issues")]}),i(","),n("t_3_1747754232000"),l(p,{text:!0,tag:"a",target:"_blank",type:"primary",href:"https://github.com/allinssl/allinssl"},{default:()=>[i("Star")]}),i(","),n("t_4_1747754235407")]})])});export{d as E,o as S};
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{bI as e,bN as t,bO as n,bJ as a,bP as i,aS as o,bL as r,bK as s,A as u,x as c,o as l,V as f,J as m,r as p,bQ as v}from"./main-EKerUt1c.js";function b(e){return!!i()&&(o(e),!0)}const d=new WeakMap,w=(...e)=>{var t;const n=e[0],a=null==(t=r())?void 0:t.proxy;if(null==a&&!s())throw new Error("injectLocal must be called in setup");return a&&d.has(a)&&n in d.get(a)?d.get(a)[n]:u(...e)},g="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const h=Object.prototype.toString,y=e=>"[object Object]"===h.call(e),j=()=>{};function A(e,t){return function(...n){return new Promise(((a,i)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(a).catch(i)}))}}const F=e=>e();function S(e=F,n={}){const{initialState:a="active"}=n,i=function(...e){if(1!==e.length)return m(...e);const n=e[0];return"function"==typeof n?t(v((()=>({get:n,set:j})))):p(n)}("active"===a);return{isActive:t(i),pause:function(){i.value=!1},resume:function(){i.value=!0},eventFilter:(...t)=>{i.value&&e(...t)}}}function T(e){return e.endsWith("rem")?16*Number.parseFloat(e):Number.parseFloat(e)}function P(e){return Array.isArray(e)?e:[e]}function k(e,t=200,i=!1,o=!0,r=!1){return A(function(...e){let t,i,o,r,s,u,c=0,l=!0,f=j;n(e[0])||"object"!=typeof e[0]?[o,r=!0,s=!0,u=!1]=e:({delay:o,trailing:r=!0,leading:s=!0,rejectOnCancel:u=!1}=e[0]);const m=()=>{t&&(clearTimeout(t),t=void 0,f(),f=j)};return e=>{const n=a(o),p=Date.now()-c,v=()=>i=e();return m(),n<=0?(c=Date.now(),v()):(p>n&&(s||!l)?(c=Date.now(),v()):r&&(i=new Promise(((e,a)=>{f=u?a:e,t=setTimeout((()=>{c=Date.now(),l=!0,e(v()),m()}),Math.max(0,n-p))}))),s||t||(t=setTimeout((()=>l=!0),n)),l=!1,i)}}(t,i,o,r),e)}function x(e,t,n={}){const{eventFilter:a,initialState:i="active",...o}=n,{eventFilter:r,pause:s,resume:u,isActive:l}=S(a,{initialState:i}),f=function(e,t,n={}){const{eventFilter:a=F,...i}=n;return c(e,A(a,t),i)}(e,t,{...o,eventFilter:r});return{stop:f,pause:s,resume:u,isActive:l}}function D(e,t=!0,n){r()?l(e,n):t?e():f(e)}function O(n,i,o={}){const{immediate:r=!0,immediateCallback:s=!1}=o,u=e(!1);let c=null;function l(){c&&(clearTimeout(c),c=null)}function f(){u.value=!1,l()}function m(...e){s&&n(),l(),u.value=!0,c=setTimeout((()=>{u.value=!1,c=null,n(...e)}),a(i))}return r&&(u.value=!0,g&&m()),b(f),{isPending:t(u),start:m,stop:f}}function W(e,t,n){return c(e,t,{...n,immediate:!0})}export{k as a,g as b,b as c,y as d,x as e,D as f,w as i,T as p,P as t,O as u,W as w};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
/* empty css */const e={Modal:{preset:"card"}},t={name:"defaultLight",type:"light",title:"默认亮色主题",themeOverrides:{common:{}},presetsOverrides:e},r={name:"defaultDark",type:"dark",title:"默认暗色主题",themeOverrides:{common:{},Popover:{}},presetsOverrides:e};export{r as defaultDark,t as defaultLight};
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
var t;import{S as e}from"./index-Cg1dO5ll.js";import{A as o,M as n}from"./data-D9OX3Jew.js";import{l as a,d as s,c as r,N as i}from"./main-EKerUt1c.js";const l={},c={},p=new Set;for(const d in o)if(Object.prototype.hasOwnProperty.call(o,d)){const e=o[d];if(l[d]=e.name,c[d]=e.icon,null==e?void 0:e.hostRelated)for(const o in e.hostRelated)if(Object.prototype.hasOwnProperty.call(e.hostRelated,o)){const n=e.hostRelated[o],a=`${d}-${o}`;a&&(l[a]=(null==(t=null==n?void 0:n.name)?void 0:t.toString())??"",c[a]=e.icon)}}for(const d in n)if(Object.prototype.hasOwnProperty.call(n,d)){const t=n[d];l[d]=t.name,c[d]=t.type,p.add(d)}o.btwaf&&(c.btwaf="btpanel");const f=s({name:"AuthApiTypeIcon",props:{icon:{type:String,required:!0},type:{type:String,default:"default"},text:{type:Boolean,default:!0}},setup(t){const{iconPath:o,typeName:n}=function(t){return{iconPath:a((()=>(p.has(t.icon)?"notify-":"resources-")+(c[t.icon]||"default"))),typeName:a((()=>l[t.icon]||t.icon))}}(t);return()=>r(i,{type:t.type,size:"small"},{default:()=>[r(e,{icon:o.value,size:"1.2rem",class:"mr-[0.4rem]"},null),t.text&&r("span",{class:"text-[12px]"},[n.value])]})}});export{f as T};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{c as o,d as s}from"./index-BJkSUJ7m.js";const e=s=>o("/v1/login/sign",s),g=()=>s.get("/v1/login/get_code"),i=()=>o("/v1/login/sign-out",{}),v=s=>o("/v1/overview/get_overviews",s);export{g as a,v as g,e as l,i as s};
|
|
@ -1 +0,0 @@
|
|||
import{c as o,d as s}from"./index-CfvcGIZn.js";const e=s=>o("/v1/login/sign",s),g=()=>s.get("/v1/login/get_code"),i=()=>o("/v1/login/sign-out"),v=s=>o("/v1/overview/get_overviews",s);export{g as a,v as g,e as l,i as s};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{c as t}from"./index-CfvcGIZn.js";const e=e=>t("/v1/setting/get_setting",e),r=e=>t("/v1/setting/save_setting",e),s=e=>t("/v1/report/add_report",e),o=e=>t("/v1/report/upd_report",e),a=e=>t("/v1/report/del_report",e),p=e=>t("/v1/report/notify_test",e),i=e=>t("/v1/report/get_list",e);export{i as a,s as b,a as d,e as g,r as s,p as t,o as u};
|
||||
import{c as t}from"./index-BJkSUJ7m.js";const e=e=>t("/v1/setting/get_setting",e),r=e=>t("/v1/setting/save_setting",e),s=e=>t("/v1/report/add_report",e),o=e=>t("/v1/report/upd_report",e),a=e=>t("/v1/report/del_report",e),p=e=>t("/v1/report/notify_test",e),i=e=>t("/v1/report/get_list",e);export{i as a,s as b,a as d,e as g,r as s,p as t,o as u};
|
|
@ -1 +0,0 @@
|
|||
import{b9 as t,b2 as e,bc as r,bm as n,bn as u,bo as o,bg as c,bp as i,b8 as a}from"./main-_YC_VKXp.js";function s(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}var f=function(){function e(t,e){this.xf=e,this.f=t,this.all=!0}return e.prototype["@@transducer/init"]=t.init,e.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,e){return this.f(e)||(this.all=!1,t=s(this.xf["@@transducer/step"](t,!1))),t},e}();function l(t){return function(e){return new f(t,e)}}var p=e(r(["all"],l,(function(t,e){for(var r=0;r<e.length;){if(!t(e[r]))return!1;r+=1}return!0})));function g(t,e){return function(t,e,r){var u,o;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(u=1/e;r<t.length;){if(0===(o=t[r])&&1/o===u)return r;r+=1}return-1}if(e!=e){for(;r<t.length;){if("number"==typeof(o=t[r])&&o!=o)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(null===e)return t.indexOf(e,r)}for(;r<t.length;){if(n(t[r],e))return r;r+=1}return-1}(e,t,0)>=0}function b(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var d=function(t){return(t<10?"0":"")+t},y="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+d(t.getUTCMonth()+1)+"-"+d(t.getUTCDate())+"T"+d(t.getUTCHours())+":"+d(t.getUTCMinutes())+":"+d(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var h=function(){function e(t,e){this.xf=e,this.f=t}return e.prototype["@@transducer/init"]=t.init,e.prototype["@@transducer/result"]=t.result,e.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},e}();function v(t){return function(e){return new h(t,e)}}var j=e(r(["fantasy-land/filter","filter"],v,(function(t,e){return o(e)?u((function(r,n){return t(e[n])&&(r[n]=e[n]),r}),{},c(e)):function(t,e){for(var r=0,n=e.length,u=[];r<n;)t(e[r])&&(u[u.length]=e[r]),r+=1;return u}(t,e)}))),m=e((function(t,e){return j((r=t,function(){return!r.apply(this,arguments)}),e);var r}));function x(t,e){var r=function(r){var n=e.concat([t]);return g(r,n)?"<Circular>":x(r,n)},n=function(t,e){return i((function(e){return b(e)+": "+r(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+i(r,t).join(", ")+"))";case"[object Array]":return"["+i(r,t).concat(n(t,m((function(t){return/^\d+$/.test(t)}),c(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):b(y(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":b(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var u=t.toString();if("[object Object]"!==u)return u}return"{"+n(t,c(t)).join(", ")+"}"}}var S=a((function(t){return x(t,[])}));function w(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}var O=e((function(t,e){if(r=t,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+S(t));var r;return w(t).test(e)}));export{w as _,s as a,g as b,p as c,S as d,O as t};
|
|
@ -1 +0,0 @@
|
|||
import{d as e,aW as t,aY as r,H as o,I as n,K as l,bY as a,aM as s,l as i,aN as d,bZ as c,bR as u,E as g,F as f,b_ as p,M as x,ax as m}from"./main-_YC_VKXp.js";const h=e({name:"Flex",props:Object.assign(Object.assign({},l.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrap:{type:Boolean,default:!0}}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=n(e),o=l("Flex","-flex",void 0,a,e,t);return{rtlEnabled:s("Flex",r,t),mergedClsPrefix:t,margin:i((()=>{const{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if("number"==typeof t)return{horizontal:t,vertical:t};const{self:{[d("gap",t)]:r}}=o.value,{row:n,col:l}=c(r);return{horizontal:u(l),vertical:u(n)}}))}},render(){const{vertical:e,reverse:n,align:l,inline:a,justify:s,margin:i,wrap:d,mergedClsPrefix:c,rtlEnabled:u}=this,g=t(r(this),!1);return g.length?o("div",{role:"none",class:[`${c}-flex`,u&&`${c}-flex--rtl`],style:{display:a?"inline-flex":"flex",flexDirection:e&&!n?"column":e&&n?"column-reverse":!e&&n?"row-reverse":"row",justifyContent:s,flexWrap:!d||e?"nowrap":"wrap",alignItems:l,gap:`${i.vertical}px ${i.horizontal}px`}},g):null}}),v=g("text","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n",[f("strong","\n font-weight: var(--n-font-weight-strong);\n "),f("italic",{fontStyle:"italic"}),f("underline",{textDecoration:"underline"}),f("code","\n line-height: 1.4;\n display: inline-block;\n font-family: var(--n-font-famliy-mono);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n box-sizing: border-box;\n padding: .05em .35em 0 .35em;\n border-radius: var(--n-code-border-radius);\n font-size: .9em;\n color: var(--n-code-text-color);\n background-color: var(--n-code-color);\n border: var(--n-code-border);\n ")]),b=e({name:"Text",props:Object.assign(Object.assign({},l.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=n(e),o=l("Typography","-text",v,p,e,t),a=i((()=>{const{depth:t,type:r}=e,n="default"===r?void 0===t?"textColor":`textColor${t}Depth`:d("textColor",r),{common:{fontWeightStrong:l,fontFamilyMono:a,cubicBezierEaseInOut:s},self:{codeTextColor:i,codeBorderRadius:c,codeColor:u,codeBorder:g,[n]:f}}=o.value;return{"--n-bezier":s,"--n-text-color":f,"--n-font-weight-strong":l,"--n-font-famliy-mono":a,"--n-code-border-radius":c,"--n-code-text-color":i,"--n-code-color":u,"--n-code-border":g}})),s=r?x("text",i((()=>`${e.type[0]}${e.depth||""}`)),a,e):void 0;return{mergedClsPrefix:t,compitableTag:m(e,["as","tag"]),cssVars:r?void 0:a,themeClass:null==s?void 0:s.themeClass,onRender:null==s?void 0:s.onRender}},render(){var e,t,r;const{mergedClsPrefix:n}=this;null===(e=this.onRender)||void 0===e||e.call(this);const l=[`${n}-text`,this.themeClass,{[`${n}-text--code`]:this.code,[`${n}-text--delete`]:this.delete,[`${n}-text--strong`]:this.strong,[`${n}-text--italic`]:this.italic,[`${n}-text--underline`]:this.underline}],a=null===(r=(t=this.$slots).default)||void 0===r?void 0:r.call(t);return this.code?o("code",{class:l,style:this.cssVars},this.delete?o("del",null,a):a):this.delete?o("del",{class:l,style:this.cssVars},a):o(this.compitableTag||"span",{class:l,style:this.cssVars},a)}});export{h as N,b as a};
|
|
@ -1 +1 @@
|
|||
import{bV as t,bW as n,bX as i}from"./main-_YC_VKXp.js";var r=/\s/;var e=/^\s+/;function a(t){return t?t.slice(0,function(t){for(var n=t.length;n--&&r.test(t.charAt(n)););return n}(t)+1).replace(e,""):t}var o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt;function v(i){if("number"==typeof i)return i;if(t(i))return NaN;if(n(i)){var r="function"==typeof i.valueOf?i.valueOf():i;i=n(r)?r+"":r}if("string"!=typeof i)return 0===i?i:+i;i=a(i);var e=u.test(i);return e||f.test(i)?c(i.slice(2),e?2:8):o.test(i)?NaN:+i}var s=function(){return i.Date.now()},l=Math.max,d=Math.min;function m(t,i,r){var e,a,o,u,f,c,m=0,p=!1,g=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function x(n){var i=e,r=a;return e=a=void 0,m=n,u=t.apply(r,i)}function y(t){var n=t-c;return void 0===c||n>=i||n<0||g&&t-m>=o}function T(){var t=s();if(y(t))return b(t);f=setTimeout(T,function(t){var n=i-(t-c);return g?d(n,o-(t-m)):n}(t))}function b(t){return f=void 0,h&&e?x(t):(e=a=void 0,u)}function w(){var t=s(),n=y(t);if(e=arguments,a=this,c=t,n){if(void 0===f)return function(t){return m=t,f=setTimeout(T,i),p?x(t):u}(c);if(g)return clearTimeout(f),f=setTimeout(T,i),x(c)}return void 0===f&&(f=setTimeout(T,i)),u}return i=v(i)||0,n(r)&&(p=!!r.leading,o=(g="maxWait"in r)?l(v(r.maxWait)||0,i):o,h="trailing"in r?!!r.trailing:h),w.cancel=function(){void 0!==f&&clearTimeout(f),m=0,e=c=a=f=void 0},w.flush=function(){return void 0===f?u:b(s())},w}function p(t,i,r){var e=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return n(r)&&(e="leading"in r?!!r.leading:e,a="trailing"in r?!!r.trailing:a),m(t,i,{leading:e,maxWait:i,trailing:a})}export{p as t};
|
||||
import{c1 as t,c2 as n,c3 as i}from"./main-EKerUt1c.js";var r=/\s/;var e=/^\s+/;function a(t){return t?t.slice(0,function(t){for(var n=t.length;n--&&r.test(t.charAt(n)););return n}(t)+1).replace(e,""):t}var o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt;function v(i){if("number"==typeof i)return i;if(t(i))return NaN;if(n(i)){var r="function"==typeof i.valueOf?i.valueOf():i;i=n(r)?r+"":r}if("string"!=typeof i)return 0===i?i:+i;i=a(i);var e=u.test(i);return e||f.test(i)?c(i.slice(2),e?2:8):o.test(i)?NaN:+i}var s=function(){return i.Date.now()},l=Math.max,d=Math.min;function m(t,i,r){var e,a,o,u,f,c,m=0,p=!1,g=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function x(n){var i=e,r=a;return e=a=void 0,m=n,u=t.apply(r,i)}function y(t){var n=t-c;return void 0===c||n>=i||n<0||g&&t-m>=o}function T(){var t=s();if(y(t))return w(t);f=setTimeout(T,function(t){var n=i-(t-c);return g?d(n,o-(t-m)):n}(t))}function w(t){return f=void 0,h&&e?x(t):(e=a=void 0,u)}function E(){var t=s(),n=y(t);if(e=arguments,a=this,c=t,n){if(void 0===f)return function(t){return m=t,f=setTimeout(T,i),p?x(t):u}(c);if(g)return clearTimeout(f),f=setTimeout(T,i),x(c)}return void 0===f&&(f=setTimeout(T,i)),u}return i=v(i)||0,n(r)&&(p=!!r.leading,o=(g="maxWait"in r)?l(v(r.maxWait)||0,i):o,h="trailing"in r?!!r.trailing:h),E.cancel=function(){void 0!==f&&clearTimeout(f),m=0,e=c=a=f=void 0},E.flush=function(){return void 0===f?u:w(s())},E}function p(t,i,r){var e=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return n(r)&&(e="leading"in r?!!r.leading:e,a="trailing"in r?!!r.trailing:a),m(t,i,{leading:e,maxWait:i,trailing:a})}export{p as t};
|
|
@ -1 +1 @@
|
|||
import{c as e,u as a}from"./index-CfvcGIZn.js";import{e as o,s as t,r as l,$ as r}from"./main-_YC_VKXp.js";const w=a=>e("/v1/workflow/get_list",a),s=a=>e("/v1/workflow/del_workflow",a),c=a=>e("/v1/workflow/get_workflow_history",a),n=a=>e("/v1/workflow/get_exec_log",a),d=a=>e("/v1/workflow/execute_workflow",a),f=a=>e("/v1/workflow/exec_type",a),i=a=>e("/v1/workflow/active",a),u=o("work-edit-view-store",(()=>{const{handleError:o}=a(),t=l(!1),w=l(!1),s=l({id:"",name:"",content:"",active:"1",exec_type:"manual"}),c=l("quick"),n=l({id:"",name:"",childNode:{id:"start-1",name:"开始",type:"start",config:{exec_type:"manual"},childNode:null}});return{isEdit:t,detectionRefresh:w,workflowData:s,workflowType:c,workDefalutNodeData:n,resetWorkflowData:()=>{s.value={id:"",name:"",content:"",active:"1",exec_type:"manual"},n.value={id:"",name:"",childNode:{id:"start-1",name:"开始",type:"start",config:{exec_type:"manual"},childNode:null}},c.value="quick",t.value=!1},addNewWorkflow:async a=>{try{const{message:o,fetch:t}=(a=>e("/v1/workflow/add_workflow",a))(a);o.value=!0,await t()}catch(t){o(t).default(r("t_10_1745457486451"))}},updateWorkflowData:async a=>{try{const{message:o,fetch:t}=e("/v1/workflow/upd_workflow",a);o.value=!0,await t()}catch(t){o(t).default(r("t_11_1745457488256"))}}}})),k=()=>{const e=u();return{...e,...t(e)}};export{c as a,d as b,n as c,s as d,i as e,k as f,w as g,f as u};
|
||||
import{c as e,u as a}from"./index-BJkSUJ7m.js";import{e as o,s as t,r as l,$ as r}from"./main-EKerUt1c.js";const w=a=>e("/v1/workflow/get_list",a),s=a=>e("/v1/workflow/del_workflow",a),c=a=>e("/v1/workflow/get_workflow_history",a),n=a=>e("/v1/workflow/get_exec_log",a),d=a=>e("/v1/workflow/execute_workflow",a),f=a=>e("/v1/workflow/exec_type",a),i=a=>e("/v1/workflow/active",a),u=o("work-edit-view-store",(()=>{const{handleError:o}=a(),t=l(!1),w=l(!1),s=l({id:"",name:"",content:"",active:"1",exec_type:"manual"}),c=l("quick"),n=l({id:"",name:"",childNode:{id:"start-1",name:"开始",type:"start",config:{exec_type:"manual"},childNode:null}});return{isEdit:t,detectionRefresh:w,workflowData:s,workflowType:c,workDefalutNodeData:n,resetWorkflowData:()=>{s.value={id:"",name:"",content:"",active:"1",exec_type:"manual"},n.value={id:"",name:"",childNode:{id:"start-1",name:"开始",type:"start",config:{exec_type:"manual"},childNode:null}},c.value="quick",t.value=!1},addNewWorkflow:async a=>{try{const{message:o,fetch:t}=(a=>e("/v1/workflow/add_workflow",a))(a);o.value=!0,await t()}catch(t){o(t).default(r("t_10_1745457486451"))}},updateWorkflowData:async a=>{try{const{message:o,fetch:t}=e("/v1/workflow/upd_workflow",a);o.value=!0,await t()}catch(t){o(t).default(r("t_11_1745457488256"))}}}})),k=()=>{const e=u();return{...e,...t(e)}};export{c as a,d as b,n as c,s as d,i as e,k as f,w as g,f as u};
|
|
@ -0,0 +1 @@
|
|||
import{e,s as a,r as t,l as o,$ as l}from"./main-EKerUt1c.js";import{a as s,b as n}from"./index-DVjlkveQ.js";import{u as r}from"./index-BJkSUJ7m.js";import{a as i}from"./setting-Dtyq9ptE.js";import{i as u}from"./access-B2YbqIlT.js";const m=e("layout-store",(()=>{const{handleError:e}=r(),a=s("layout-collapsed",!1),m=t([]),c=t([]),v=n("menu-active","home"),d=o((()=>"home"!==v.value?"var(--n-content-padding)":"0")),p=s("locales-active","zhCN"),h=t({mail:{name:l("t_68_1745289354676")},dingtalk:{name:l("t_32_1746773348993")},wecom:{name:l("t_33_1746773350932")},feishu:{name:l("t_34_1746773350153")},webhook:{name:"WebHook"}});return{isCollapsed:a,notifyProvider:m,dnsProvider:c,menuActive:v,layoutPadding:d,locales:p,pushSourceType:h,toggleCollapse:()=>{a.value=!a.value},handleCollapse:()=>{a.value=!0},handleExpand:()=>{a.value=!1},updateMenuActive:e=>{"logout"!==e&&(v.value=e)},resetDataInfo:()=>{v.value="home",sessionStorage.removeItem("menu-active")},fetchNotifyProvider:async()=>{try{m.value=[];const{data:e}=await i({p:1,search:"",limit:1e3}).fetch();m.value=(null==e?void 0:e.map((e=>({label:e.name,value:e.id.toString(),type:e.type}))))||[]}catch(a){e(a)}},fetchDnsProvider:async(a="")=>{try{c.value=[];const{data:e}=await u({type:a}).fetch();c.value=(null==e?void 0:e.map((e=>({label:e.name,value:e.id.toString(),type:e.type}))))||[]}catch(t){c.value=[],e(t)}},resetDnsProvider:()=>{c.value=[]}}})),c=()=>{const e=m();return{...e,...a(e)}};export{c as u};
|
|
@ -1 +0,0 @@
|
|||
import{c as e,u as a}from"./index-CfvcGIZn.js";import{a as s}from"./setting-BMEV_MFa.js";import{e as t,s as n,r as c,l as o,$ as l}from"./main-_YC_VKXp.js";import{u as i,a as u}from"./index-DhckRLAl.js";const d=a=>e("/v1/access/get_list",a),m=a=>e("/v1/access/add_access",a),r=a=>e("/v1/access/upd_access",a),v=a=>e("/v1/access/del_access",a),_=t("layout-store",(()=>{const{handleError:t}=a(),n=i("layout-collapsed",!1),d=c([]),m=c([]),r=u("menu-active","home"),v=o((()=>"home"!==r.value?"var(--n-content-padding)":"0")),_=i("locales-active","zhCN"),p=c({ssh:{name:"SSH",access:["host"]},btpanel:{name:l("t_10_1745735765165"),access:["host"]},btwaf:{name:"宝塔WAF",access:["host"]},"1panel":{name:"1Panel",access:["host"]},aliyun:{name:l("t_2_1747019616224"),access:["dns","host"]},tencentcloud:{name:l("t_3_1747019616129"),access:["dns","host"]},huaweicloud:{name:"华为云",access:["dns"]},cloudflare:{name:"Cloudflare",access:["dns"]},baidu:{name:"百度云",access:["dns"]},safeline:{name:"雷池WAF",access:["host"]},volcengine:{name:"火山引擎",access:["dns"]},westcn:{name:"西部数码",access:["dns"]}}),h=c({"btpanel-site":{name:l("t_11_1745735766456")},"1panel-site":{name:l("t_13_1745735766084")},"aliyun-cdn":{name:l("t_16_1745735766712")},"aliyun-oss":{name:l("t_2_1746697487164")},"tencentcloud-cdn":{name:l("t_14_1745735766121")},"tencentcloud-cos":{name:l("t_15_1745735768976")}}),y=c({mail:{name:l("t_68_1745289354676")},dingtalk:{name:l("t_32_1746773348993")},wecom:{name:l("t_33_1746773350932")},feishu:{name:l("t_34_1746773350153")},webhook:{name:"WebHook"}});return{locales:_,notifyProvider:d,dnsProvider:m,isCollapsed:n,layoutPadding:v,menuActive:r,sourceTypes:p,sourceDerivationTypes:h,pushSourceType:y,resetDataInfo:()=>{r.value="home",sessionStorage.removeItem("menu-active")},updateMenuActive:e=>{"logout"!==e&&(r.value=e)},toggleCollapse:()=>{n.value=!n.value},handleCollapse:()=>{n.value=!0},handleExpand:()=>{n.value=!1},fetchNotifyProvider:async()=>{try{d.value=[];const{data:e}=await s({p:1,search:"",limit:1e3}).fetch();d.value=null==e?void 0:e.map((e=>({label:e.name,value:e.id.toString(),type:e.type})))}catch(e){t(e)}},fetchDnsProvider:async(a="")=>{try{m.value=[];const{data:t}=await(s={type:a},e("/v1/access/get_all",s)).fetch();m.value=(null==t?void 0:t.map((e=>({label:e.name,value:e.id.toString(),type:e.type}))))||[]}catch(n){m.value=[],t(n)}var s},resetDnsProvider:()=>{m.value=[]}}})),p=()=>{const e=_();return{...e,...n(e)}};export{m as a,p as b,v as d,d as g,r as u};
|
|
@ -1 +0,0 @@
|
|||
import{$ as r}from"./main-_YC_VKXp.js";const e={key:{required:!0,trigger:["input","blur","focus"],validator:(e,i)=>new Promise(((e,o)=>{i?e():o(new Error(r("t_38_1745735769521")))}))},cert:{required:!0,trigger:["input","blur","focus"],validator:(e,i)=>new Promise(((e,o)=>{i?e():o(new Error(r("t_40_1745735815317")))}))}};export{e as r};
|
|
@ -1 +0,0 @@
|
|||
import{w as r,W as e}from"./business-BHFtjiXL.js";import{$ as i}from"./main-_YC_VKXp.js";const o={domains:{required:!0,trigger:"input",validator:(r,o)=>new Promise(((r,t)=>{e(o)?o?r():t(new Error(i("t_0_1744958839535"))):t(new Error(i("t_3_1747047218669")))}))},email:{required:!0,trigger:"input",validator:(e,o)=>new Promise(((e,t)=>{r(o)?o?e():t(new Error(i("t_1_1746697485188"))):t(new Error(i("t_1_1745553909483")))}))},provider_id:{required:!0,trigger:"change",validator:(r,e)=>new Promise(((r,o)=>{e?r():o(new Error(i("t_3_1745490735059")))}))},end_day:{required:!0,trigger:"input",validator:(r,e)=>new Promise(((r,o)=>{e?r():o(new Error(i("t_2_1745553907423")))}))}};export{o as r};
|
|
@ -1 +0,0 @@
|
|||
import{$ as e}from"./main-_YC_VKXp.js";const r={exec_type:{required:!0,message:e("t_31_1745735767891"),trigger:"change"},type:{required:!0,message:e("t_32_1745735767156"),trigger:"change"},week:{required:!0,message:e("t_33_1745735766532"),trigger:"input",type:"number"},month:{required:!0,message:e("t_33_1745735766532"),trigger:"input",type:"number"},hour:{required:!0,message:e("t_33_1745735766532"),trigger:"input",type:"number"},minute:{required:!0,message:e("t_33_1745735766532"),trigger:"input",type:"number"}};export{r};
|
|
@ -1 +0,0 @@
|
|||
import{$ as e}from"./main-_YC_VKXp.js";import{N as r}from"./business-BHFtjiXL.js";const i={provider:{required:!0,message:e("t_0_1746858920894"),type:"string",trigger:"change"},provider_id:{required:!0,trigger:"change",type:"string",validator:(r,i)=>{if(!i)return new Error(e("t_0_1746858920894"))}},"inputs.fromNodeId":{required:!0,message:e("t_3_1745748298161"),trigger:"change"},certPath:{required:!0,message:e("t_30_1746667591892"),trigger:"input"},keyPath:{required:!0,message:e("t_31_1746667593074"),trigger:"input"},siteName:{required:!0,message:e("t_1_1747296175494"),trigger:"input"},site_id:{required:!0,message:e("t_24_1745735766826"),trigger:"input"},domain:{required:!0,trigger:"input",validator:(i,t)=>{if(!r(t))return new Error(e("t_0_1744958839535"))}},region:{required:!0,message:e("t_25_1745735766651"),trigger:"input"},bucket:{required:!0,message:e("t_26_1745735767144"),trigger:"input"}};export{i as r};
|
|
@ -1 +0,0 @@
|
|||
import{$ as r}from"./main-_YC_VKXp.js";const e={subject:{trigger:"input",validator:(e,t)=>new Promise(((e,o)=>{t?t.length>100?o(new Error(r("t_3_1745887835089")+"长度不能超过100个字符")):e():o(new Error(r("t_3_1745887835089")))}))},body:{trigger:"input",validator:(e,t)=>new Promise(((e,o)=>{t?t.length>1e3?o(new Error(r("t_4_1745887835265")+"长度不能超过1000个字符")):e():o(new Error(r("t_4_1745887835265")))}))},provider_id:{trigger:"change",type:"string",validator:(e,t)=>new Promise(((e,o)=>{t?e():o(new Error(r("t_0_1745887835267")))}))}};export{e as r};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue