mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-17 03:32:02 +08:00
【新增】百度云DNS解析功能和宝塔waf部署功能
【新增】本机部署方式 【修复】已知问题
This commit is contained in:
@@ -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-DKqTMGci.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./static/css/style-CIgcu4bk.css">
|
||||
<script type="module" crossorigin src="./static/js/main-DbEoLF8O.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./static/css/style-Q_bu0V98.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
File diff suppressed because one or more lines are too long
1
build/static/css/style-Q_bu0V98.css
Normal file
1
build/static/css/style-Q_bu0V98.css
Normal file
File diff suppressed because one or more lines are too long
1
build/static/js/Badge-DQfVgG7L.js
Normal file
1
build/static/js/Badge-DQfVgG7L.js
Normal file
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{d as e,aR as r,aT as a,z as l,U as t,A as n,bU as s,aD as i,l as o,aE as f,bV as p,b9 as u}from"./main-DKqTMGci.js";const c=e({name:"Flex",props:Object.assign(Object.assign({},n.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:r,mergedRtlRef:a}=t(e),l=n("Flex","-flex",void 0,s,e,r);return{rtlEnabled:i("Flex",a,r),mergedClsPrefix:r,margin:o((()=>{const{size:r}=e;if(Array.isArray(r))return{horizontal:r[0],vertical:r[1]};if("number"==typeof r)return{horizontal:r,vertical:r};const{self:{[f("gap",r)]:a}}=l.value,{row:t,col:n}=p(a);return{horizontal:u(n),vertical:u(t)}}))}},render(){const{vertical:e,reverse:t,align:n,inline:s,justify:i,margin:o,wrap:f,mergedClsPrefix:p,rtlEnabled:u}=this,c=r(a(this),!1);return c.length?l("div",{role:"none",class:[`${p}-flex`,u&&`${p}-flex--rtl`],style:{display:s?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:i,flexWrap:!f||e?"nowrap":"wrap",alignItems:n,gap:`${o.vertical}px ${o.horizontal}px`}},c):null}});export{c as N};
|
||||
import{d as e,aO as r,aQ as a,z as l,V as t,A as n,bS as s,aE as i,l as o,aF as f,bT as p,bO as u}from"./main-DbEoLF8O.js";const c=e({name:"Flex",props:Object.assign(Object.assign({},n.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:r,mergedRtlRef:a}=t(e),l=n("Flex","-flex",void 0,s,e,r);return{rtlEnabled:i("Flex",a,r),mergedClsPrefix:r,margin:o((()=>{const{size:r}=e;if(Array.isArray(r))return{horizontal:r[0],vertical:r[1]};if("number"==typeof r)return{horizontal:r,vertical:r};const{self:{[f("gap",r)]:a}}=l.value,{row:t,col:n}=p(a);return{horizontal:u(n),vertical:u(t)}}))}},render(){const{vertical:e,reverse:t,align:n,inline:s,justify:i,margin:o,wrap:f,mergedClsPrefix:p,rtlEnabled:u}=this,c=r(a(this),!1);return c.length?l("div",{role:"none",class:[`${p}-flex`,u&&`${p}-flex--rtl`],style:{display:s?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:i,flexWrap:!f||e?"nowrap":"wrap",alignItems:n,gap:`${o.vertical}px ${o.horizontal}px`}},c):null}});export{c as N};
|
||||
@@ -1 +1 @@
|
||||
import{d as a,E as l,F as n,G as r}from"./main-DKqTMGci.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};
|
||||
import{d as a,E as l,F as n,G as r}from"./main-DbEoLF8O.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 +1 @@
|
||||
import{d as c,E as n,F as r,G as t}from"./main-DKqTMGci.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};
|
||||
import{d as c,E as n,F as r,G as t}from"./main-DbEoLF8O.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
build/static/js/Tabs-CPh-uC2j.js
Normal file
1
build/static/js/Tabs-CPh-uC2j.js
Normal file
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
build/static/js/arDZ-sMkKGlSG.js
Normal file
1
build/static/js/arDZ-sMkKGlSG.js
Normal file
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
import{be as $,bp as a,b$ as t,br as n,by as r,bt as s}from"./main-DKqTMGci.js";import{d as e,t as o,c as f}from"./test-BLZVy0JC.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}",u=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("|")),d=new RegExp(`^${p}\\.${p}\\.${p}\\.${p}(\\/([1-2][0-9]|3[0-2]|[1-9]))?$`),i=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 c=o(/^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/),m=o(z),l=o(u),h=$=>m($)||l($);o(d);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,}$/),y=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,}$/),F=($,a=",")=>f(r(!0),s(($=>b($)||B($)||y($)),A(a,$)));n((($,a=2,t=!0,n="")=>{if(0===$)return t?"0 B":"0";const r=["B","KB","MB","GB","TB"],s=($,e)=>{const o=r[e],f=0===e||0===a?Math.round($).toString():$.toFixed(a);return n&&o===n||$<1024||e>=r.length-1?t?`${f} ${o}`:f:s($/1024,e+1)};return s($,0)}));export{x as H,b as N,h as O,c as T,F as W,i as w};
|
||||
1
build/static/js/business-DsDuLHJY.js
Normal file
1
build/static/js/business-DsDuLHJY.js
Normal file
@@ -0,0 +1 @@
|
||||
import{aW as $,b5 as a,bZ as t,b7 as n,be as s,b9 as r}from"./main-DbEoLF8O.js";import{d as e,t as o,c as f}from"./test-D-BQlNKl.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}",u=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("|")),d=new RegExp(`^${p}\\.${p}\\.${p}\\.${p}(\\/([1-2][0-9]|3[0-2]|[1-9]))?$`),i=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 c=o(/^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/),m=o(Z),l=o(u),h=$=>m($)||l($);o(d);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,h as O,c as T,g as W,i as w};
|
||||
@@ -1 +1 @@
|
||||
import{c as t}from"./index-DoBLtCBk.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-CJ7BxJOo.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};
|
||||
@@ -1 +1 @@
|
||||
import{d as e,r as a,y as t,l as r,m as l,$ as o,x as s,o as i,c as u}from"./main-DKqTMGci.js";import{u as c}from"./index-DoBLtCBk.js";import{u as n,k as d}from"./index-DffoH-R8.js";import{u as v,g as m}from"./cert-BZ7eWr4f.js";import{r as p}from"./verify-DqBodpCp.js";import"./index-K1QYmvkf.js";import"./test-BLZVy0JC.js";import"./useStore-fO20gUdJ.js";const _=e({name:"UploadNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{cert_id:"",cert:"",key:""}})}},setup(e){const{updateNodeConfig:_,isRefreshNode:f}=n(),{useFormTextarea:y,useFormSelect:h,useFormHelp:k}=l(),j=a(d(e.node.config)),{confirm:w,options:x}=t(),{handleError:b}=c(),g=x(),F=a([{cert:"",key:"",label:"自定义证书",value:""}]),N=r((()=>[h(o("t_0_1747110184700"),"cert_id",F.value,{filterable:!0,onUpdateValue:e=>{j.value.cert_id=e;const a=T(e);a&&(j.value.cert=a.cert,j.value.key=a.key)}},{showRequireMark:!1}),y(o("t_34_1745735771147"),"cert",{placeholder:o("t_35_1745735781545"),rows:6,readonly:""!==j.value.cert_id,onInput:e=>j.value.cert=e.trim()}),y(o("t_36_1745735769443"),"key",{placeholder:o("t_37_1745735779980"),rows:6,readonly:""!==j.value.cert_id,onInput:e=>j.value.key=e.trim()}),k([{content:o("t_1_1747110191587")},{content:o("t_2_1747110193465")}])])),{component:I,data:R,example:S}=s({defaultValue:j,config:N,rules:p}),T=e=>F.value.find((a=>a.value===e));return i((async()=>{await(async()=>{try{const{data:e}=await m({p:1,limit:100}).fetch();F.value=(null==e?void 0:e.map((e=>({cert:e.cert,key:e.key,label:e.domains+" 【 "+e.issuer+" 】",value:e.sha256}))))||[],F.value.unshift({cert:"",key:"",label:"自定义证书",value:""})}catch(e){F.value=[],b(e)}})()})),g.value.confirmText=r((()=>""===j.value.cert_id?o("t_3_1747110185110"):o("t_2_1744861190040"))),w((async a=>{var t;try{if(await(null==(t=S.value)?void 0:t.validate()),""===j.value.cert_id){const{data:e}=await v(j.value).fetch();j.value.cert_id=e}_(e.node.id,R.value),f.value=e.node.id,a()}catch(r){b(r)}})),()=>u("div",{class:"upload-node-drawer"},[u(I,{labelPlacement:"top"},null)])}});export{_ as default};
|
||||
import{d as e,r as a,y as t,l as r,m as l,$ as o,x as s,o as i,c as u}from"./main-DbEoLF8O.js";import{u as c}from"./index-CJ7BxJOo.js";import{u as n,k as d}from"./index-D6Tncqyk.js";import{u as v,g as m}from"./cert-D0j66oXp.js";import{r as p}from"./verify-C4yU-DXf.js";import"./index-D3fSvRlS.js";import"./test-D-BQlNKl.js";import"./useStore-D6Rrpn0_.js";const _=e({name:"UploadNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{cert_id:"",cert:"",key:""}})}},setup(e){const{updateNodeConfig:_,isRefreshNode:f}=n(),{useFormTextarea:y,useFormSelect:h,useFormHelp:k}=l(),j=a(d(e.node.config)),{confirm:w,options:x}=t(),{handleError:b}=c(),g=x(),F=a([{cert:"",key:"",label:"自定义证书",value:""}]),N=r((()=>[h(o("t_0_1747110184700"),"cert_id",F.value,{filterable:!0,onUpdateValue:e=>{j.value.cert_id=e;const a=T(e);a&&(j.value.cert=a.cert,j.value.key=a.key)}},{showRequireMark:!1}),y(o("t_34_1745735771147"),"cert",{placeholder:o("t_35_1745735781545"),rows:6,readonly:""!==j.value.cert_id,onInput:e=>j.value.cert=e.trim()}),y(o("t_36_1745735769443"),"key",{placeholder:o("t_37_1745735779980"),rows:6,readonly:""!==j.value.cert_id,onInput:e=>j.value.key=e.trim()}),k([{content:o("t_1_1747110191587")},{content:o("t_2_1747110193465")}])])),{component:I,data:R,example:S}=s({defaultValue:j,config:N,rules:p}),T=e=>F.value.find((a=>a.value===e));return i((async()=>{await(async()=>{try{const{data:e}=await m({p:1,limit:100}).fetch();F.value=(null==e?void 0:e.map((e=>({cert:e.cert,key:e.key,label:e.domains+" 【 "+e.issuer+" 】",value:e.sha256}))))||[],F.value.unshift({cert:"",key:"",label:"自定义证书",value:""})}catch(e){F.value=[],b(e)}})()})),g.value.confirmText=r((()=>""===j.value.cert_id?o("t_3_1747110185110"):o("t_2_1744861190040"))),w((async a=>{var t;try{if(await(null==(t=S.value)?void 0:t.validate()),""===j.value.cert_id){const{data:e}=await v(j.value).fetch();j.value.cert_id=e}_(e.node.id,R.value),f.value=e.node.id,a()}catch(r){b(r)}})),()=>u("div",{class:"upload-node-drawer"},[u(I,{labelPlacement:"top"},null)])}});export{_ as default};
|
||||
@@ -1 +1 @@
|
||||
import{Q as e,Z as a,d as l,z as t,U as o,A as n,bZ as r,l as u,aE as s,X as i,r as d,$ as p,m as v,c as b,q as c,n as m,v as h,x as _,w as f,y,bM as g,b_ as x,i as w}from"./main-DKqTMGci.js";import{u as k,k as z}from"./index-DffoH-R8.js";import{r as j}from"./verify-B-A9YSDN.js";import{u as C}from"./index-DoBLtCBk.js";import"./index-K1QYmvkf.js";import"./test-BLZVy0JC.js";import"./useStore-fO20gUdJ.js";const R=e("input-group-label","\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n box-sizing: border-box;\n padding: 0 12px;\n display: inline-block;\n border-radius: var(--n-border-radius);\n background-color: var(--n-group-label-color);\n color: var(--n-group-label-text-color);\n font-size: var(--n-font-size);\n line-height: var(--n-height);\n height: var(--n-height);\n flex-shrink: 0;\n white-space: nowrap;\n transition: \n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n",[a("border","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n border: var(--n-group-label-border);\n transition: border-color .3s var(--n-bezier);\n ")]),B=l({name:"InputGroupLabel",props:Object.assign(Object.assign({},n.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),setup(e){const{mergedBorderedRef:a,mergedClsPrefixRef:l,inlineThemeDisabled:t}=o(e),d=n("Input","-input-group-label",R,r,e,l),p=u((()=>{const{size:a}=e,{common:{cubicBezierEaseInOut:l},self:{groupLabelColor:t,borderRadius:o,groupLabelTextColor:n,lineHeight:r,groupLabelBorder:u,[s("fontSize",a)]:i,[s("height",a)]:p}}=d.value;return{"--n-bezier":l,"--n-group-label-color":t,"--n-group-label-border":u,"--n-border-radius":o,"--n-group-label-text-color":n,"--n-font-size":i,"--n-line-height":r,"--n-height":p}})),v=t?i("input-group-label",u((()=>e.size[0])),p,e):void 0;return{mergedClsPrefix:l,mergedBordered:a,cssVars:t?void 0:p,themeClass:null==v?void 0:v.themeClass,onRender:null==v?void 0:v.onRender}},render(){var e,a,l;const{mergedClsPrefix:o}=this;return null===(e=this.onRender)||void 0===e||e.call(this),t("div",{class:[`${o}-input-group-label`,this.themeClass],style:this.cssVars},null===(l=(a=this.$slots).default)||void 0===l?void 0:l.call(a),this.mergedBordered?t("div",{class:`${o}-input-group-label__border`}):null)}});function O(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!w(e)}const S=l({name:"StartNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{exec_type:"auto"}})}},setup(e){const{updateNodeConfig:a,isRefreshNode:l}=k(),{confirm:t}=y(),{handleError:o}=C(),{useFormRadio:n,useFormCustom:r}=v(),s=d(z(e.node.config)),i=[{label:p("t_2_1744875938555"),value:"day"},{label:p("t_0_1744942117992"),value:"week"},{label:p("t_3_1744875938310"),value:"month"}],w=[{label:p("t_1_1744942116527"),value:1},{label:p("t_2_1744942117890"),value:2},{label:p("t_3_1744942117885"),value:3},{label:p("t_4_1744942117738"),value:4},{label:p("t_5_1744942117167"),value:5},{label:p("t_6_1744942117815"),value:6},{label:p("t_7_1744942117862"),value:0}],R={day:{exec_type:"auto",type:"day",hour:1,minute:0},week:{exec_type:"auto",type:"week",hour:1,minute:0,week:1},month:{exec_type:"auto",type:"month",hour:1,minute:0,month:1}},S=(e,a,l,t)=>b(x,null,{default:()=>[b(g,{value:e,onUpdateValue:e=>{null!==e&&a(e)},max:l,min:0,showButton:!1,class:"w-full"},null),b(B,null,O(t)?t:{default:()=>[t]})]}),V=u((()=>{const e=[];return"auto"===s.value.exec_type&&e.push(r((()=>{let e,a;return b(h,{cols:24,xGap:24},{default:()=>[b(c,{label:p("t_2_1744879616413"),span:8,showRequireMark:!0,path:"type"},{default:()=>[b(m,{class:"w-full",options:i,value:s.value.type,"onUpdate:value":e=>s.value.type=e},null)]}),"day"!==s.value.type&&b(c,{span:5,path:"week"===s.value.type?"week":"month"},{default:()=>["week"===s.value.type?b(m,{value:s.value.week,onUpdateValue:e=>{"number"==typeof e&&(s.value.week=e)},options:w},null):S(s.value.month||0,(e=>s.value.month=e),31,p("t_29_1744958838904"))]}),b(c,{span:"day"===s.value.type?7:5,path:"hour"},O(e=S(s.value.hour||0,(e=>s.value.hour=e),23,p("t_5_1744879615277")))?e:{default:()=>[e]}),b(c,{span:"day"===s.value.type?7:5,path:"minute"},O(a=S(s.value.minute||0,(e=>s.value.minute=e),59,p("t_3_1744879615723")))?a:{default:()=>[a]})]})}))),[n(p("t_30_1745735764748"),"exec_type",[{label:p("t_4_1744875940750"),value:"auto"},{label:p("t_5_1744875940010"),value:"manual"}]),...e]})),{component:L,data:P,example:U}=_({defaultValue:s,config:V,rules:j}),$=e=>{s.value={...e}};return f((()=>s.value.exec_type),(e=>{"auto"===e?$(R.day):"manual"===e&&$({exec_type:"manual"})})),f((()=>s.value.type),(e=>{e&&"auto"===s.value.exec_type&&$(R[e])})),t((async t=>{var n;try{await(null==(n=U.value)?void 0:n.validate()),a(e.node.id,P.value),l.value=e.node.id,t()}catch(r){o(r)}})),()=>b("div",{class:"apply-node-drawer"},[b(L,{labelPlacement:"top"},null)])}});export{S as default};
|
||||
import{T as e,_ as a,d as l,z as t,V as o,A as n,bX as r,l as u,aF as s,Y as i,r as d,$ as p,m as v,c as b,q as c,n as m,v as h,x as _,w as f,y,bs as g,bY as x,i as w}from"./main-DbEoLF8O.js";import{u as k,k as z}from"./index-D6Tncqyk.js";import{r as j}from"./verify-DIlOLhb8.js";import{u as C}from"./index-CJ7BxJOo.js";import"./index-D3fSvRlS.js";import"./test-D-BQlNKl.js";import"./useStore-D6Rrpn0_.js";const R=e("input-group-label","\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n box-sizing: border-box;\n padding: 0 12px;\n display: inline-block;\n border-radius: var(--n-border-radius);\n background-color: var(--n-group-label-color);\n color: var(--n-group-label-text-color);\n font-size: var(--n-font-size);\n line-height: var(--n-height);\n height: var(--n-height);\n flex-shrink: 0;\n white-space: nowrap;\n transition: \n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n",[a("border","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n border: var(--n-group-label-border);\n transition: border-color .3s var(--n-bezier);\n ")]),B=l({name:"InputGroupLabel",props:Object.assign(Object.assign({},n.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),setup(e){const{mergedBorderedRef:a,mergedClsPrefixRef:l,inlineThemeDisabled:t}=o(e),d=n("Input","-input-group-label",R,r,e,l),p=u((()=>{const{size:a}=e,{common:{cubicBezierEaseInOut:l},self:{groupLabelColor:t,borderRadius:o,groupLabelTextColor:n,lineHeight:r,groupLabelBorder:u,[s("fontSize",a)]:i,[s("height",a)]:p}}=d.value;return{"--n-bezier":l,"--n-group-label-color":t,"--n-group-label-border":u,"--n-border-radius":o,"--n-group-label-text-color":n,"--n-font-size":i,"--n-line-height":r,"--n-height":p}})),v=t?i("input-group-label",u((()=>e.size[0])),p,e):void 0;return{mergedClsPrefix:l,mergedBordered:a,cssVars:t?void 0:p,themeClass:null==v?void 0:v.themeClass,onRender:null==v?void 0:v.onRender}},render(){var e,a,l;const{mergedClsPrefix:o}=this;return null===(e=this.onRender)||void 0===e||e.call(this),t("div",{class:[`${o}-input-group-label`,this.themeClass],style:this.cssVars},null===(l=(a=this.$slots).default)||void 0===l?void 0:l.call(a),this.mergedBordered?t("div",{class:`${o}-input-group-label__border`}):null)}});function O(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!w(e)}const V=l({name:"StartNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{exec_type:"auto"}})}},setup(e){const{updateNodeConfig:a,isRefreshNode:l}=k(),{confirm:t}=y(),{handleError:o}=C(),{useFormRadio:n,useFormCustom:r}=v(),s=d(z(e.node.config)),i=[{label:p("t_2_1744875938555"),value:"day"},{label:p("t_0_1744942117992"),value:"week"},{label:p("t_3_1744875938310"),value:"month"}],w=[{label:p("t_1_1744942116527"),value:1},{label:p("t_2_1744942117890"),value:2},{label:p("t_3_1744942117885"),value:3},{label:p("t_4_1744942117738"),value:4},{label:p("t_5_1744942117167"),value:5},{label:p("t_6_1744942117815"),value:6},{label:p("t_7_1744942117862"),value:0}],R={day:{exec_type:"auto",type:"day",hour:1,minute:0},week:{exec_type:"auto",type:"week",hour:1,minute:0,week:1},month:{exec_type:"auto",type:"month",hour:1,minute:0,month:1}},V=(e,a,l,t)=>b(x,null,{default:()=>[b(g,{value:e,onUpdateValue:e=>{null!==e&&a(e)},max:l,min:0,showButton:!1,class:"w-full"},null),b(B,null,O(t)?t:{default:()=>[t]})]}),S=u((()=>{const e=[];return"auto"===s.value.exec_type&&e.push(r((()=>{let e,a;return b(h,{cols:24,xGap:24},{default:()=>[b(c,{label:p("t_2_1744879616413"),span:8,showRequireMark:!0,path:"type"},{default:()=>[b(m,{class:"w-full",options:i,value:s.value.type,"onUpdate:value":e=>s.value.type=e},null)]}),"day"!==s.value.type&&b(c,{span:5,path:"week"===s.value.type?"week":"month"},{default:()=>["week"===s.value.type?b(m,{value:s.value.week,onUpdateValue:e=>{"number"==typeof e&&(s.value.week=e)},options:w},null):V(s.value.month||0,(e=>s.value.month=e),31,p("t_29_1744958838904"))]}),b(c,{span:"day"===s.value.type?7:5,path:"hour"},O(e=V(s.value.hour||0,(e=>s.value.hour=e),23,p("t_5_1744879615277")))?e:{default:()=>[e]}),b(c,{span:"day"===s.value.type?7:5,path:"minute"},O(a=V(s.value.minute||0,(e=>s.value.minute=e),59,p("t_3_1744879615723")))?a:{default:()=>[a]})]})}))),[n(p("t_30_1745735764748"),"exec_type",[{label:p("t_4_1744875940750"),value:"auto"},{label:p("t_5_1744875940010"),value:"manual"}]),...e]})),{component:L,data:P,example:$}=_({defaultValue:s,config:S,rules:j}),F=e=>{s.value={...e}};return f((()=>s.value.exec_type),(e=>{"auto"===e?F(R.day):"manual"===e&&F({exec_type:"manual"})})),f((()=>s.value.type),(e=>{e&&"auto"===s.value.exec_type&&F(R[e])})),t((async t=>{var n;try{await(null==(n=$.value)?void 0:n.validate()),a(e.node.id,P.value),l.value=e.node.id,t()}catch(r){o(r)}})),()=>b("div",{class:"apply-node-drawer"},[b(L,{labelPlacement:"top"},null)])}});export{V as default};
|
||||
File diff suppressed because one or more lines are too long
1
build/static/js/drawer-DigFq7lo.js
Normal file
1
build/static/js/drawer-DigFq7lo.js
Normal file
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{d as e,r as a,l as r,m as s,$ as t,c as o,bM as l,p as n,x as i,y as d}from"./main-DKqTMGci.js";import{u as p,k as m}from"./index-DffoH-R8.js";import{r as u}from"./verify-Ccmvvliy.js";import{D as v}from"./index-DpMxWTvF.js";import"./index-K1QYmvkf.js";import"./index-DoBLtCBk.js";import"./test-BLZVy0JC.js";import"./useStore-fO20gUdJ.js";import"./business-DeShhBC1.js";import"./useStore-BxWZ-2Xk.js";import"./setting-huTIIu1c.js";import"./index-CpnxPwGt.js";import"./index-ClL52y7R.js";import"./text-CBxeXF61.js";import"./Flex-CfuRT3n6.js";const _=e({name:"ApplyNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{domains:"",email:"",provider_id:"",provider:"",end_day:30,name_server:"",skip_check:1}})}},setup(e){const{updateNodeConfig:_,isRefreshNode:c}=p(),{confirm:j}=d(),{useFormInput:y,useFormHelp:f,useFormSwitch:h}=s(),x=a(m(e.node.config)),g=r((()=>[y(t("t_17_1745227838561"),"domains",{placeholder:t("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(t("t_1_1745735764953"),"email",{placeholder:t("t_2_1745735773668"),onInput:e=>x.value.email=e.trim()}),{type:"custom",render:()=>o(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:()=>o(n,{label:t("t_5_1745735769112"),path:"end_day"},{default:()=>[o(l,{value:x.value.end_day,"onUpdate:value":e=>x.value.end_day=e,showButton:!1,min:1,class:"w-[180px]",placeholder:t("t_6_1745735765205")},null),o("span",{class:"text-[1.4rem] ml-[1.2rem]"},[t("t_7_1745735768326")])]})},y(t("t_0_1747106957037"),"name_server",{placeholder:t("t_1_1747106961747"),onInput:e=>{x.value.name_server=e.trim(),x.value.name_server=x.value.name_server.replace(/,/g,","),x.value.name_server=x.value.name_server.replace(/;/g,",")},onFocus:()=>{x.value.name_server=x.value.name_server.replace(/,^/g,"")}},{showRequireMark:!1}),h(t("t_2_1747106957037"),"skip_check",{},{showRequireMark:!1}),f([{content:t("t_0_1747040228657"),isHtml:!1},{content:t("t_1_1747040226143"),isHtml:!1}])])),{component:w,data:k,example:F}=i({defaultValue:x,config:g,rules:u});return j((async a=>{var r;try{await(null==(r=F.value)?void 0:r.validate()),_(e.node.id,k.value),c.value=e.node.id,a()}catch(s){}})),()=>o("div",{class:"apply-node-drawer"},[o(w,{labelPlacement:"top"},null)])}});export{_ as default};
|
||||
import{d as e,r as a,l as r,m as s,$ as t,c as o,bs as l,p as n,x as i,y as d}from"./main-DbEoLF8O.js";import{u as p,k as m}from"./index-D6Tncqyk.js";import{r as u}from"./verify-CmuU1PTL.js";import{D as v}from"./index-xApo5Np1.js";import"./index-D3fSvRlS.js";import"./index-CJ7BxJOo.js";import"./test-D-BQlNKl.js";import"./useStore-D6Rrpn0_.js";import"./business-DsDuLHJY.js";import"./useStore-DkJ2IH9V.js";import"./setting-Ah0OvyaA.js";import"./index-DADMQFFY.js";import"./index-C0qHzmyg.js";import"./text-DjGKu2Rz.js";import"./Flex-BbK4B5B0.js";const _=e({name:"ApplyNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{domains:"",email:"",provider_id:"",provider:"",end_day:30,name_server:"",skip_check:1}})}},setup(e){const{updateNodeConfig:_,isRefreshNode:c}=p(),{confirm:j}=d(),{useFormInput:y,useFormHelp:f,useFormSwitch:h}=s(),x=a(m(e.node.config)),g=r((()=>[y(t("t_17_1745227838561"),"domains",{placeholder:t("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(t("t_1_1745735764953"),"email",{placeholder:t("t_2_1745735773668"),onInput:e=>x.value.email=e.trim()}),{type:"custom",render:()=>o(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:()=>o(n,{label:t("t_5_1745735769112"),path:"end_day"},{default:()=>[o(l,{value:x.value.end_day,"onUpdate:value":e=>x.value.end_day=e,showButton:!1,min:1,class:"w-[180px]",placeholder:t("t_6_1745735765205")},null),o("span",{class:"text-[1.4rem] ml-[1.2rem]"},[t("t_7_1745735768326")])]})},y(t("t_0_1747106957037"),"name_server",{placeholder:t("t_1_1747106961747"),onInput:e=>{x.value.name_server=e.trim(),x.value.name_server=x.value.name_server.replace(/,/g,","),x.value.name_server=x.value.name_server.replace(/;/g,",")},onFocus:()=>{x.value.name_server=x.value.name_server.replace(/,^/g,"")}},{showRequireMark:!1}),h(t("t_2_1747106957037"),"skip_check",{},{showRequireMark:!1}),f([{content:t("t_0_1747040228657"),isHtml:!1},{content:t("t_1_1747040226143"),isHtml:!1}])])),{component:w,data:k,example:F}=i({defaultValue:x,config:g,rules:u});return j((async a=>{var r;try{await(null==(r=F.value)?void 0:r.validate()),_(e.node.id,k.value),c.value=e.node.id,a()}catch(s){}})),()=>o("div",{class:"apply-node-drawer"},[o(w,{labelPlacement:"top"},null)])}});export{_ as default};
|
||||
@@ -1 +1 @@
|
||||
import{d as e,r as o,m as r,$ as t,c as a,x as i,y as s}from"./main-DKqTMGci.js";import{u as d,k as n}from"./index-DffoH-R8.js";import{u as p}from"./index-DoBLtCBk.js";import{N as u}from"./index-BR6XzYWc.js";import{r as l}from"./verify-B43ktUsL.js";import"./index-K1QYmvkf.js";import"./test-BLZVy0JC.js";import"./useStore-fO20gUdJ.js";import"./useStore-BxWZ-2Xk.js";import"./setting-huTIIu1c.js";import"./index-CpnxPwGt.js";import"./index-ClL52y7R.js";import"./Flex-CfuRT3n6.js";import"./text-CBxeXF61.js";const m=e({name:"NotifyNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{provider:"",provider_id:"",subject:"",body:""}})}},setup(e){const{updateNodeConfig:m,isRefreshNode:v}=d(),{useFormInput:c,useFormTextarea:j,useFormCustom:f}=r(),{confirm:x}=s(),{handleError:y}=p(),_=o(n(e.node.config)),b=[c(t("t_0_1745920566646"),"subject",{placeholder:t("t_3_1745887835089"),onInput:e=>_.value.subject=e.trim()}),j(t("t_1_1745920567200"),"body",{placeholder:t("t_4_1745887835265"),rows:4,onInput:e=>_.value.body=e.trim()}),f((()=>a(u,{path:"provider_id",value:_.value.provider_id,isAddMode:!0,"onUpdate:value":e=>{_.value.provider_id=e.value,_.value.provider=e.type}},null)))],{component:h,data:g,example:N}=i({defaultValue:_,config:b,rules:l});return x((async o=>{var r;try{await(null==(r=N.value)?void 0:r.validate()),m(e.node.id,g.value),v.value=e.node.id,o()}catch(t){y(t)}})),()=>a("div",{class:"notify-node-drawer"},[a(h,{labelPlacement:"top"},null)])}});export{m as default};
|
||||
import{d as e,r as o,m as r,$ as t,c as a,x as i,y as s}from"./main-DbEoLF8O.js";import{u as d,k as n}from"./index-D6Tncqyk.js";import{u as p}from"./index-CJ7BxJOo.js";import{N as u}from"./index-jn3SfWmj.js";import{r as l}from"./verify-NKl9QtR4.js";import"./index-D3fSvRlS.js";import"./test-D-BQlNKl.js";import"./useStore-D6Rrpn0_.js";import"./useStore-DkJ2IH9V.js";import"./setting-Ah0OvyaA.js";import"./index-DADMQFFY.js";import"./index-C0qHzmyg.js";import"./Flex-BbK4B5B0.js";import"./text-DjGKu2Rz.js";const m=e({name:"NotifyNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{provider:"",provider_id:"",subject:"",body:""}})}},setup(e){const{updateNodeConfig:m,isRefreshNode:v}=d(),{useFormInput:c,useFormTextarea:j,useFormCustom:f}=r(),{confirm:x}=s(),{handleError:y}=p(),_=o(n(e.node.config)),b=[c(t("t_0_1745920566646"),"subject",{placeholder:t("t_3_1745887835089"),onInput:e=>_.value.subject=e.trim()}),j(t("t_1_1745920567200"),"body",{placeholder:t("t_4_1745887835265"),rows:4,onInput:e=>_.value.body=e.trim()}),f((()=>a(u,{path:"provider_id",value:_.value.provider_id,isAddMode:!0,"onUpdate:value":e=>{_.value.provider_id=e.value,_.value.provider=e.type}},null)))],{component:h,data:g,example:N}=i({defaultValue:_,config:b,rules:l});return x((async o=>{var r;try{await(null==(r=N.value)?void 0:r.validate()),m(e.node.id,g.value),v.value=e.node.id,o()}catch(t){y(t)}})),()=>a("div",{class:"notify-node-drawer"},[a(h,{labelPlacement:"top"},null)])}});export{m as default};
|
||||
File diff suppressed because one or more lines are too long
1
build/static/js/esAR-zG4lg52O.js
Normal file
1
build/static/js/esAR-zG4lg52O.js
Normal file
File diff suppressed because one or more lines are too long
1
build/static/js/frFR-CDKi8xFl.js
Normal file
1
build/static/js/frFR-CDKi8xFl.js
Normal file
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
build/static/js/index-6437WQGr.js
Normal file
1
build/static/js/index-6437WQGr.js
Normal file
File diff suppressed because one or more lines are too long
1
build/static/js/index-BJ6RPWOq.js
Normal file
1
build/static/js/index-BJ6RPWOq.js
Normal file
File diff suppressed because one or more lines are too long
1
build/static/js/index-BffX9lPY.js
Normal file
1
build/static/js/index-BffX9lPY.js
Normal file
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{bv as t,c0 as e,c1 as n,bX as i,c2 as a,aI as o,o as r,as as s,w as u,a5 as c,r as l,c3 as f,bJ as m}from"./main-DKqTMGci.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};
|
||||
import{bb as t,b_ as e,b$ as n,bV as i,c0 as a,aI as o,o as r,at as s,w as u,a6 as c,r as l,c1 as f,bp as m}from"./main-DbEoLF8O.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};
|
||||
@@ -1 +0,0 @@
|
||||
import{S as e}from"./index-K1QYmvkf.js";import{d as n,l,w as t,c as a,N as o}from"./main-DKqTMGci.js";const c={ssh:"SSH",aliyun:"阿里云",tencentcloud:"腾讯云",btpanel:"宝塔面板","1panel":"1Panel",huaweicloud:"华为云",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":"宝塔面板网站"},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-")+({ssh:"ssh",aliyun:"aliyun",tencentcloud:"tencentcloud",btpanel:"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"}[n.icon]||"default"))),u=l((()=>c[n.icon]||n.icon));return t((()=>n.icon),(e=>{})),t((()=>n.type),(e=>{})),()=>a(o,{type:n.type,size:"small"},{default:()=>[a(e,{icon:i.value,size:"1.2rem",class:"mr-[0.4rem]"},null),a("span",{class:"text-[12px]"},[n.text&&a("span",null,[u.value])])]})}});export{i as A};
|
||||
1
build/static/js/index-C8hRYhQY.js
Normal file
1
build/static/js/index-C8hRYhQY.js
Normal file
File diff suppressed because one or more lines are too long
1
build/static/js/index-CB47y_fW.js
Normal file
1
build/static/js/index-CB47y_fW.js
Normal file
@@ -0,0 +1 @@
|
||||
import{S as e}from"./index-D3fSvRlS.js";import{d as l,l as n,w as a,c as t,N as o}from"./main-DbEoLF8O.js";const c={localhost:"本机部署",ssh:"SSH",aliyun:"阿里云",tencentcloud:"腾讯云",huaweicloud:"华为云",baidu:"百度云",btpanel:"宝塔面板",btwaf:"宝塔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":"宝塔面板网站"},i=l({name:"TypeIcon",props:{icon:{type:String,required:!0},type:{type:String,default:"default"},align:{type:String,default:"left"},text:{type:Boolean,default:!0}},setup(l){const i=n((()=>(["mail","dingtalk","wecom","feishu","webhook"].includes(l.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"}[l.icon]||"default"))),u=n((()=>c[l.icon]||l.icon));return a((()=>l.icon),(e=>{})),a((()=>l.type),(e=>{})),()=>t(o,{type:l.type,size:"small"},{default:()=>[t(e,{icon:i.value,size:"1.2rem",class:"mr-[0.4rem]"},null),t("span",{class:"text-[12px]"},[l.text&&t("span",null,[u.value])])]})}});export{i as A};
|
||||
1
build/static/js/index-CJ7BxJOo.js
Normal file
1
build/static/js/index-CJ7BxJOo.js
Normal file
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 +1 @@
|
||||
import{u as a,a as e}from"./index-DffoH-R8.js";import{d as o,a as r,l as i,$ as t,w as s,aO as d,c as l}from"./main-DKqTMGci.js";import{r as n}from"./verify-B-A9YSDN.js";import{u as m}from"./index-ClL52y7R.js";import"./index-K1QYmvkf.js";import"./index-DoBLtCBk.js";import"./test-BLZVy0JC.js";import"./useStore-fO20gUdJ.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(),j=r(["warningColor","primaryColor"]),x=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:j.value,class:"text-[12px]"},[l("div",{style:{color:x.value}},[y.value])])}});export{p as default};
|
||||
import{u as a,a as e}from"./index-D6Tncqyk.js";import{d as o,a as r,l as i,$ as t,w as s,aL as d,c as l}from"./main-DbEoLF8O.js";import{r as n}from"./verify-DIlOLhb8.js";import{u as m}from"./index-C0qHzmyg.js";import"./index-D3fSvRlS.js";import"./index-CJ7BxJOo.js";import"./test-D-BQlNKl.js";import"./useStore-D6Rrpn0_.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(),j=r(["warningColor","primaryColor"]),x=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:j.value,class:"text-[12px]"},[l("div",{style:{color:x.value}},[y.value])])}});export{p as default};
|
||||
@@ -1 +1 @@
|
||||
import{d as e,l as i,c as r}from"./main-DKqTMGci.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-DbEoLF8O.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};
|
||||
1
build/static/js/index-D6Tncqyk.js
Normal file
1
build/static/js/index-D6Tncqyk.js
Normal file
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{i as e,w as t,t as n,b as r,c as a,d as o,e as l}from"./index-ClL52y7R.js";import{bv as i,r as s,l as u,bX as f,w as c,as as d,bY as v}from"./main-DKqTMGci.js";const g=e?window:void 0;function w(...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 p="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 p||(p[y]=p[y]||{}),p[y]}const b={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()}},h="vueuse-storage";function N(e,r,a,o={}){var l;const{flush:v="pre",deep:p=!0,listenToStorageChanges:y=!0,writeDefaults:S=!0,mergeDefaults:N=!1,shallow:O,window:E=g,eventFilter:j,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:b[M],{pause:k,resume:x}=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:p,eventFilter:j});function F(e,t){if(E){const n={key:_.value,oldValue:e,newValue:t,storageArea:a};E.dispatchEvent(a instanceof Storage?new StorageEvent("storage",n):new CustomEvent(h,{detail:n}))}}function T(e){if(!e||e.storageArea===a)if(e&&null==e.key)J.value=D;else if(!e||e.key===_.value){k();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(x):x()}}}function C(e){T(e.detail)}return c(_,(()=>T()),{flush:v}),E&&y&&n((()=>{a instanceof Storage?w(E,"storage",T,{passive:!0}):w(E,h,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 E(e,t,n={}){const{window:r=g}=n;return N(e,t,null==r?void 0:r.sessionStorage,n)}export{E as a,O as u};
|
||||
import{i as e,w as t,t as n,b as r,c as a,d as o,e as l}from"./index-C0qHzmyg.js";import{bb as i,r as s,l as u,bV as f,w as c,at as d,bW as v}from"./main-DbEoLF8O.js";const g=e?window:void 0;function w(...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 p="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 p||(p[y]=p[y]||{}),p[y]}const b={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()}},h="vueuse-storage";function N(e,r,a,o={}){var l;const{flush:v="pre",deep:p=!0,listenToStorageChanges:y=!0,writeDefaults:S=!0,mergeDefaults:N=!1,shallow:O,window:E=g,eventFilter:j,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:b[M],{pause:k,resume:x}=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:p,eventFilter:j});function F(e,t){if(E){const n={key:_.value,oldValue:e,newValue:t,storageArea:a};E.dispatchEvent(a instanceof Storage?new StorageEvent("storage",n):new CustomEvent(h,{detail:n}))}}function T(e){if(!e||e.storageArea===a)if(e&&null==e.key)J.value=D;else if(!e||e.key===_.value){k();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(x):x()}}}function C(e){T(e.detail)}return c(_,(()=>T()),{flush:v}),E&&y&&n((()=>{a instanceof Storage?w(E,"storage",T,{passive:!0}):w(E,h,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 E(e,t,n={}){const{window:r=g}=n;return N(e,t,null==r?void 0:r.sessionStorage,n)}export{E as a,O as u};
|
||||
@@ -1 +1 @@
|
||||
import{d as e,u as t,a as o,c as r,b as l,$ as a,B as s,i as n}from"./main-DKqTMGci.js";const c=(e=16,t="var(--n-warning-color)")=>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)]),i=e({setup(){const e=t(),i=o(["cardColor","warningColor","textColorSecondary","textColorDisabled","textColorInverse","warningColorHover"]);return()=>{let t;return r("div",{class:"flex flex-col items-center justify-center min-h-screen",style:i.value},[r("div",{class:"text-center px-8 max-w-[60rem] mx-auto"},[r("div",{class:"text-[8rem] font-bold leading-none mb-4",style:{color:"var(--n-warning-color)",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.1)"}},[l("404")]),r("div",{class:"flex items-center justify-center mb-8"},[c(60)]),r("div",{class:"text-[1.8rem] mb-8",style:{color:"var(--n-text-color-secondary)"}},[a("t_0_1744098811152")]),r(s,{type:"warning",onClick:()=>e.push("/")},(o=t=a("t_1_1744098801860"),"function"==typeof o||"[object Object]"===Object.prototype.toString.call(o)&&!n(o)?t:{default:()=>[t]})),r("div",{class:"mt-8 text-[1.3rem]",style:{color:"var(--n-text-color-disabled)"}},[a("t_2_1744098804908")])])]);var o}}});export{i as default};
|
||||
import{d as e,u as t,a as o,c as r,b as l,$ as a,B as s,i as n}from"./main-DbEoLF8O.js";const c=(e=16,t="var(--n-warning-color)")=>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)]),i=e({setup(){const e=t(),i=o(["cardColor","warningColor","textColorSecondary","textColorDisabled","textColorInverse","warningColorHover"]);return()=>{let t;return r("div",{class:"flex flex-col items-center justify-center min-h-screen",style:i.value},[r("div",{class:"text-center px-8 max-w-[60rem] mx-auto"},[r("div",{class:"text-[8rem] font-bold leading-none mb-4",style:{color:"var(--n-warning-color)",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.1)"}},[l("404")]),r("div",{class:"flex items-center justify-center mb-8"},[c(60)]),r("div",{class:"text-[1.8rem] mb-8",style:{color:"var(--n-text-color-secondary)"}},[a("t_0_1744098811152")]),r(s,{type:"warning",onClick:()=>e.push("/")},(o=t=a("t_1_1744098801860"),"function"==typeof o||"[object Object]"===Object.prototype.toString.call(o)&&!n(o)?t:{default:()=>[t]})),r("div",{class:"mt-8 text-[1.3rem]",style:{color:"var(--n-text-color-disabled)"}},[a("t_2_1744098804908")])])]);var o}}});export{i as default};
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{u as e,a as o}from"./index-DffoH-R8.js";import{d as a,a as i,l as s,c as r,$ as t,w as n,aO as d}from"./main-DKqTMGci.js";import{A as l}from"./index-C8NIzWwZ.js";import{r as p}from"./verify-BuSCsdPA.js";import{u as m}from"./index-ClL52y7R.js";import"./index-K1QYmvkf.js";import"./index-DoBLtCBk.js";import"./test-BLZVy0JC.js";import"./useStore-fO20gUdJ.js";import"./business-DeShhBC1.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};
|
||||
import{u as e,a as o}from"./index-D6Tncqyk.js";import{d as a,a as i,l as s,c as r,$ as t,w as n,aL as d}from"./main-DbEoLF8O.js";import{A as l}from"./index-CB47y_fW.js";import{r as p}from"./verify-Blqwf6bK.js";import{u as m}from"./index-C0qHzmyg.js";import"./index-D3fSvRlS.js";import"./index-CJ7BxJOo.js";import"./test-D-BQlNKl.js";import"./useStore-D6Rrpn0_.js";import"./business-DsDuLHJY.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};
|
||||
File diff suppressed because one or more lines are too long
1
build/static/js/index-DZVCqFtc.js
Normal file
1
build/static/js/index-DZVCqFtc.js
Normal file
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 +1 @@
|
||||
import{u as a,a as e}from"./index-DffoH-R8.js";import{r as o}from"./verify-DqBodpCp.js";import{d as r,a as i,l as s,w as t,aO as d,c as l}from"./main-DKqTMGci.js";import{u as n}from"./index-ClL52y7R.js";import"./index-K1QYmvkf.js";import"./index-DoBLtCBk.js";import"./test-BLZVy0JC.js";import"./useStore-fO20gUdJ.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};
|
||||
import{u as a,a as e}from"./index-D6Tncqyk.js";import{r as o}from"./verify-C4yU-DXf.js";import{d as r,a as i,l as s,w as t,aL as d,c as l}from"./main-DbEoLF8O.js";import{u as n}from"./index-C0qHzmyg.js";import"./index-D3fSvRlS.js";import"./index-CJ7BxJOo.js";import"./test-D-BQlNKl.js";import"./useStore-D6Rrpn0_.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 +1 @@
|
||||
import{d as e,c as s}from"./main-DKqTMGci.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};
|
||||
import{d as e,c as s}from"./main-DbEoLF8O.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};
|
||||
@@ -1 +1 @@
|
||||
import{d as o,a as e,l as i,c as r,$ as a,w as s,aO as t}from"./main-DKqTMGci.js";import{u as d,a as n}from"./index-DffoH-R8.js";import{r as l}from"./verify-B43ktUsL.js";import{A as p}from"./index-C8NIzWwZ.js";import{u as m}from"./index-ClL52y7R.js";import"./index-K1QYmvkf.js";import"./index-DoBLtCBk.js";import"./test-BLZVy0JC.js";import"./useStore-fO20gUdJ.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(),g=e(["warningColor","primaryColor"]),x=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:g.value,class:"text-[12px]"},[r("div",{style:{color:x.value}},[y.value])])}});export{u as default};
|
||||
import{d as o,a as e,l as i,c as r,$ as a,w as s,aL as t}from"./main-DbEoLF8O.js";import{u as d,a as n}from"./index-D6Tncqyk.js";import{r as l}from"./verify-NKl9QtR4.js";import{A as p}from"./index-CB47y_fW.js";import{u as m}from"./index-C0qHzmyg.js";import"./index-D3fSvRlS.js";import"./index-CJ7BxJOo.js";import"./test-D-BQlNKl.js";import"./useStore-D6Rrpn0_.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(),g=e(["warningColor","primaryColor"]),x=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:g.value,class:"text-[12px]"},[r("div",{style:{color:x.value}},[y.value])])}});export{u as default};
|
||||
@@ -1 +1 @@
|
||||
import{d as t,E as l,F as e,G as s,c as n,M as a,b as r,B as i}from"./main-DKqTMGci.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,n){return e(),l("svg",u,n[0]||(n[0]=[s("defs",null,null,-1),s("path",{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z",fill:"currentColor"},null,-1),s("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,n){return e(),l("svg",p,n[0]||(n[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)]))}}),m=t({name:"EmptyActionPrompt",props:{addButtonText:{type:String,required:!0},onAddClick:{type:Function,required:!0}},setup:t=>()=>n("div",{class:"flex justify-center items-center h-full"},[n(a,{class:"px-[4rem]"},{default:()=>[r("请先"),n(i,{text:!0,type:"primary",size:"small",onClick:t.onAddClick},{default:()=>[t.addButtonText]}),r(",有问题或建议可提"),n(i,{text:!0,tag:"a",target:"_blank",type:"primary",href:"https://github.com/allinssl/allinssl/issues"},{default:()=>[r("Issues")]}),r(",也可在Github给我们"),n(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};
|
||||
import{d as t,E as l,F as e,G as s,c as n,M as a,b as r,B as i}from"./main-DbEoLF8O.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,n){return e(),l("svg",u,n[0]||(n[0]=[s("defs",null,null,-1),s("path",{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z",fill:"currentColor"},null,-1),s("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,n){return e(),l("svg",p,n[0]||(n[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)]))}}),m=t({name:"EmptyActionPrompt",props:{addButtonText:{type:String,required:!0},onAddClick:{type:Function,required:!0}},setup:t=>()=>n("div",{class:"flex justify-center items-center h-full"},[n(a,{class:"px-[4rem]"},{default:()=>[r("请先"),n(i,{text:!0,type:"primary",size:"small",onClick:t.onAddClick},{default:()=>[t.addButtonText]}),r(",有问题或建议可提"),n(i,{text:!0,tag:"a",target:"_blank",type:"primary",href:"https://github.com/allinssl/allinssl/issues"},{default:()=>[r("Issues")]}),r(",也可在Github给我们"),n(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};
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{u as a,a as o}from"./index-DffoH-R8.js";import{d as e,a as r,l as i,w as s,aO as t,c as n,$ as d}from"./main-DKqTMGci.js";import{r as l}from"./verify-Ccmvvliy.js";import{u as m}from"./index-ClL52y7R.js";import"./index-K1QYmvkf.js";import"./index-DoBLtCBk.js";import"./test-BLZVy0JC.js";import"./useStore-fO20gUdJ.js";import"./business-DeShhBC1.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};
|
||||
import{u as a,a as o}from"./index-D6Tncqyk.js";import{d as e,a as r,l as i,w as s,aL as t,c as n,$ as d}from"./main-DbEoLF8O.js";import{r as l}from"./verify-CmuU1PTL.js";import{u as m}from"./index-C0qHzmyg.js";import"./index-D3fSvRlS.js";import"./index-CJ7BxJOo.js";import"./test-D-BQlNKl.js";import"./useStore-D6Rrpn0_.js";import"./business-DsDuLHJY.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};
|
||||
1
build/static/js/index-Z5SBZ4K6.js
Normal file
1
build/static/js/index-Z5SBZ4K6.js
Normal file
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{d as e,r as l,w as a,c as t,v as u,q as n,$ as o,n as i,B as s,i as p}from"./main-DKqTMGci.js";import{b as r}from"./useStore-BxWZ-2Xk.js";import{S as v}from"./index-K1QYmvkf.js";import{N as d}from"./Flex-CfuRT3n6.js";import{N as f}from"./text-CBxeXF61.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};
|
||||
import{d as e,r as l,w as a,c as t,v as u,q as n,$ as o,n as i,B as s,i as p}from"./main-DbEoLF8O.js";import{b as r}from"./useStore-DkJ2IH9V.js";import{S as v}from"./index-D3fSvRlS.js";import{N as d}from"./Flex-BbK4B5B0.js";import{N as f}from"./text-DjGKu2Rz.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};
|
||||
@@ -1 +1 @@
|
||||
import{u as e,N as a}from"./index-DoBLtCBk.js";import{d as l,r as t,w as u,o as s,c as d,v as o,q as n,$ as v,n as p,B as r,i}from"./main-DKqTMGci.js";import{b as y}from"./useStore-BxWZ-2Xk.js";import{S as f}from"./index-K1QYmvkf.js";import{N as c}from"./text-CBxeXF61.js";import{N as m}from"./Flex-CfuRT3n6.js";const b=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:b}){const{handleError:_}=e(),{fetchDnsProvider:g,dnsProvider:x}=y(),h=t({label:"",value:"",type:""}),j=t([]),S=t(!1),w=t(""),C=()=>{window.open("/auth-api-manage","_blank")},T=({option:e})=>d("div",{class:"flex items-center"},[e.label?k(e):d(c,{class:"text-[#aaa]"},{default:()=>["dns"===l.type?v("t_0_1747019621052",[]):v("t_0_1746858920894")]})]),k=e=>d(m,null,{default:()=>[d(f,{icon:`resources-${e.type}`,size:"2rem"},null),d(c,null,{default:()=>[e.label]})]}),A=async()=>{var e,a,l;const t=x.value.find((e=>e.value===h.value.value));t&&(h.value={label:t.label,value:t.value,type:t.type}),x.value.length>0&&""===h.value.value&&(h.value={label:(null==(e=x.value[0])?void 0:e.label)||"",value:(null==(a=x.value[0])?void 0:a.value)||"",type:(null==(l=x.value[0])?void 0:l.type)||""}),b("update:value",h.value)},B=e=>{h.value.value=e,A()},D=async(e="")=>{S.value=!0,w.value="";try{await g(e)}catch(a){w.value="string"==typeof a?a:v("t_0_1746760933542"),_(a)}finally{S.value=!1}},L=(e,a)=>a.label.toLowerCase().includes(e.toLowerCase());return u((()=>x.value),(e=>{j.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((()=>{D(l.type)})),()=>{let e;return d(a,{show:S.value},{default:()=>[d(o,{cols:24,class:l.customClass},{default:()=>[d(n,{span:l.isAddMode?13:24,label:"dns"===l.type?v("t_3_1745735765112"):v("t_0_1746754500246"),path:l.path},{default:()=>[d(p,{class:"flex-1 w-full",options:j.value,renderLabel:k,renderTag:T,filterable:!0,filter:L,placeholder:"dns"===l.type?v("t_3_1745490735059"):v("t_0_1746858920894"),value:h.value.value,"onUpdate:value":e=>h.value.value=e,onUpdateValue:B,disabled:l.disabled},{empty:()=>d("span",{class:"text-[1.4rem]"},[w.value||("dns"===l.type?v("t_1_1746858922914"):v("t_2_1746858923964"))])})]}),l.isAddMode&&d(n,{span:11},{default:()=>{return[d(r,{class:"mx-[8px]",onClick:C,disabled:l.disabled},{default:()=>["dns"===l.type?v("t_1_1746004861166"):v("t_3_1746858920060")]}),d(r,{onClick:()=>D(l.type),loading:S.value,disabled:l.disabled},(a=e=v("t_0_1746497662220"),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!i(a)?e:{default:()=>[e]}))];var a}})]})]})}}});export{b as D};
|
||||
import{u as e,N as a}from"./index-CJ7BxJOo.js";import{d as l,r as t,w as u,o as s,c as d,v as o,q as n,$ as v,n as p,B as r,i}from"./main-DbEoLF8O.js";import{b as y}from"./useStore-DkJ2IH9V.js";import{S as f}from"./index-D3fSvRlS.js";import{N as c}from"./text-DjGKu2Rz.js";import{N as m}from"./Flex-BbK4B5B0.js";const b=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:b}){const{handleError:_}=e(),{fetchDnsProvider:g,dnsProvider:x}=y(),h=t({label:"",value:"",type:""}),j=t([]),S=t(!1),w=t(""),C=()=>{window.open("/auth-api-manage","_blank")},T=({option:e})=>d("div",{class:"flex items-center"},[e.label?k(e):d(c,{class:"text-[#aaa]"},{default:()=>["dns"===l.type?v("t_0_1747019621052",[]):v("t_0_1746858920894")]})]),k=e=>d(m,null,{default:()=>[d(f,{icon:`resources-${e.type}`,size:"2rem"},null),d(c,null,{default:()=>[e.label]})]}),A=async()=>{var e,a,l;const t=x.value.find((e=>e.value===h.value.value));t&&(h.value={label:t.label,value:t.value,type:t.type}),x.value.length>0&&""===h.value.value&&(h.value={label:(null==(e=x.value[0])?void 0:e.label)||"",value:(null==(a=x.value[0])?void 0:a.value)||"",type:(null==(l=x.value[0])?void 0:l.type)||""}),b("update:value",h.value)},B=e=>{h.value.value=e,A()},D=async(e="")=>{S.value=!0,w.value="";try{await g(e)}catch(a){w.value="string"==typeof a?a:v("t_0_1746760933542"),_(a)}finally{S.value=!1}},L=(e,a)=>a.label.toLowerCase().includes(e.toLowerCase());return u((()=>x.value),(e=>{j.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((()=>{D(l.type)})),()=>{let e;return d(a,{show:S.value},{default:()=>[d(o,{cols:24,class:l.customClass},{default:()=>[d(n,{span:l.isAddMode?13:24,label:"dns"===l.type?v("t_3_1745735765112"):v("t_0_1746754500246"),path:l.path},{default:()=>[d(p,{class:"flex-1 w-full",options:j.value,renderLabel:k,renderTag:T,filterable:!0,filter:L,placeholder:"dns"===l.type?v("t_3_1745490735059"):v("t_0_1746858920894"),value:h.value.value,"onUpdate:value":e=>h.value.value=e,onUpdateValue:B,disabled:l.disabled},{empty:()=>d("span",{class:"text-[1.4rem]"},[w.value||("dns"===l.type?v("t_1_1746858922914"):v("t_2_1746858923964"))])})]}),l.isAddMode&&d(n,{span:11},{default:()=>{return[d(r,{class:"mx-[8px]",onClick:C,disabled:l.disabled},{default:()=>["dns"===l.type?v("t_1_1746004861166"):v("t_3_1746858920060")]}),d(r,{onClick:()=>D(l.type),loading:S.value,disabled:l.disabled},(a=e=v("t_0_1746497662220"),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!i(a)?e:{default:()=>[e]}))];var a}})]})]})}}});export{b as D};
|
||||
1
build/static/js/jaJP-B8JyGH_e.js
Normal file
1
build/static/js/jaJP-B8JyGH_e.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
build/static/js/koKR-C_UFBdmR.js
Normal file
1
build/static/js/koKR-C_UFBdmR.js
Normal file
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
51
build/static/js/main-DbEoLF8O.js
Normal file
51
build/static/js/main-DbEoLF8O.js
Normal file
File diff suppressed because one or more lines are too long
1
build/static/js/ptBR-Cf0dJRRT.js
Normal file
1
build/static/js/ptBR-Cf0dJRRT.js
Normal file
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 o,d as s}from"./index-DoBLtCBk.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};
|
||||
import{c as o,d as s}from"./index-CJ7BxJOo.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
1
build/static/js/ruRU-kauXva8Z.js
Normal file
1
build/static/js/ruRU-kauXva8Z.js
Normal file
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{c as t}from"./index-DoBLtCBk.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-CJ7BxJOo.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 +1 @@
|
||||
import{bl as t,be as e,bo as r,by as n,bz as u,bA as o,bs as i,bB as c,bk as a}from"./main-DKqTMGci.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}),{},i(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)}))),x=e((function(t,e){return j((r=t,function(){return!r.apply(this,arguments)}),e);var r}));function S(t,e){var r=function(r){var n=e.concat([t]);return g(r,n)?"<Circular>":S(r,n)},n=function(t,e){return c((function(e){return b(e)+": "+r(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+c(r,t).join(", ")+"))";case"[object Array]":return"["+c(r,t).concat(n(t,x((function(t){return/^\d+$/.test(t)}),i(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,i(t)).join(", ")+"}"}}var m=a((function(t){return S(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 "+m(t));var r;return w(t).test(e)}));export{w as _,s as a,g as b,p as c,m as d,O as t};
|
||||
import{b1 as t,aW as e,b4 as r,be as n,bf as u,bg as o,b8 as i,bh as a,b0 as c}from"./main-DbEoLF8O.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 d(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 b=function(t){return(t<10?"0":"")+t},y="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+b(t.getUTCMonth()+1)+"-"+b(t.getUTCDate())+"T"+b(t.getUTCHours())+":"+b(t.getUTCMinutes())+":"+b(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}),{},i(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)}))),x=e((function(t,e){return j((r=t,function(){return!r.apply(this,arguments)}),e);var r}));function S(t,e){var r=function(r){var n=e.concat([t]);return g(r,n)?"<Circular>":S(r,n)},n=function(t,e){return a((function(e){return d(e)+": "+r(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+a(r,t).join(", ")+"))";case"[object Array]":return"["+a(r,t).concat(n(t,x((function(t){return/^\d+$/.test(t)}),i(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):d(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())+")":d(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,i(t)).join(", ")+"}"}}var m=c((function(t){return S(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 "+m(t));var r;return w(t).test(e)}));export{w as _,s as a,g as b,p as c,m as d,O as t};
|
||||
@@ -1 +1 @@
|
||||
import{Q as e,T as o,d as t,z as n,U as r,A as s,bW as i,l,aE as a,X as d,al as c}from"./main-DKqTMGci.js";const h=e("text","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n",[o("strong","\n font-weight: var(--n-font-weight-strong);\n "),o("italic",{fontStyle:"italic"}),o("underline",{textDecoration:"underline"}),o("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 ")]),g=t({name:"Text",props:Object.assign(Object.assign({},s.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:o,inlineThemeDisabled:t}=r(e),n=s("Typography","-text",h,i,e,o),g=l((()=>{const{depth:o,type:t}=e,r="default"===t?void 0===o?"textColor":`textColor${o}Depth`:a("textColor",t),{common:{fontWeightStrong:s,fontFamilyMono:i,cubicBezierEaseInOut:l},self:{codeTextColor:d,codeBorderRadius:c,codeColor:h,codeBorder:g,[r]:u}}=n.value;return{"--n-bezier":l,"--n-text-color":u,"--n-font-weight-strong":s,"--n-font-famliy-mono":i,"--n-code-border-radius":c,"--n-code-text-color":d,"--n-code-color":h,"--n-code-border":g}})),u=t?d("text",l((()=>`${e.type[0]}${e.depth||""}`)),g,e):void 0;return{mergedClsPrefix:o,compitableTag:c(e,["as","tag"]),cssVars:t?void 0:g,themeClass:null==u?void 0:u.themeClass,onRender:null==u?void 0:u.onRender}},render(){var e,o,t;const{mergedClsPrefix:r}=this;null===(e=this.onRender)||void 0===e||e.call(this);const s=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=null===(t=(o=this.$slots).default)||void 0===t?void 0:t.call(o);return this.code?n("code",{class:s,style:this.cssVars},this.delete?n("del",null,i):i):this.delete?n("del",{class:s,style:this.cssVars},i):n(this.compitableTag||"span",{class:s,style:this.cssVars},i)}});export{g as N};
|
||||
import{T as e,U as o,d as t,z as n,V as r,A as s,bU as i,l,aF as a,Y as d,am as c}from"./main-DbEoLF8O.js";const h=e("text","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n",[o("strong","\n font-weight: var(--n-font-weight-strong);\n "),o("italic",{fontStyle:"italic"}),o("underline",{textDecoration:"underline"}),o("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 ")]),g=t({name:"Text",props:Object.assign(Object.assign({},s.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:o,inlineThemeDisabled:t}=r(e),n=s("Typography","-text",h,i,e,o),g=l((()=>{const{depth:o,type:t}=e,r="default"===t?void 0===o?"textColor":`textColor${o}Depth`:a("textColor",t),{common:{fontWeightStrong:s,fontFamilyMono:i,cubicBezierEaseInOut:l},self:{codeTextColor:d,codeBorderRadius:c,codeColor:h,codeBorder:g,[r]:u}}=n.value;return{"--n-bezier":l,"--n-text-color":u,"--n-font-weight-strong":s,"--n-font-famliy-mono":i,"--n-code-border-radius":c,"--n-code-text-color":d,"--n-code-color":h,"--n-code-border":g}})),u=t?d("text",l((()=>`${e.type[0]}${e.depth||""}`)),g,e):void 0;return{mergedClsPrefix:o,compitableTag:c(e,["as","tag"]),cssVars:t?void 0:g,themeClass:null==u?void 0:u.themeClass,onRender:null==u?void 0:u.onRender}},render(){var e,o,t;const{mergedClsPrefix:r}=this;null===(e=this.onRender)||void 0===e||e.call(this);const s=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=null===(t=(o=this.$slots).default)||void 0===t?void 0:t.call(o);return this.code?n("code",{class:s,style:this.cssVars},this.delete?n("del",null,i):i):this.delete?n("del",{class:s,style:this.cssVars},i):n(this.compitableTag||"span",{class:s,style:this.cssVars},i)}});export{g as N};
|
||||
@@ -1 +0,0 @@
|
||||
import{c as e,u as a}from"./index-DoBLtCBk.js";import{a as s}from"./setting-huTIIu1c.js";import{e as t,s as n,r as c,l as o,$ as l}from"./main-DKqTMGci.js";import{u as i,a as u}from"./index-CpnxPwGt.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"]},"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"]}}),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){t(n)}var s}}})),p=()=>{const e=_();return{...e,...n(e)}};export{m as a,p as b,v as d,d as g,r as u};
|
||||
@@ -1 +1 @@
|
||||
import{c as e,u as a}from"./index-DoBLtCBk.js";import{e as o,s as t,r as l,$ as r}from"./main-DKqTMGci.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-CJ7BxJOo.js";import{e as o,s as t,r as l,$ as r}from"./main-DbEoLF8O.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};
|
||||
1
build/static/js/useStore-DkJ2IH9V.js
Normal file
1
build/static/js/useStore-DkJ2IH9V.js
Normal file
@@ -0,0 +1 @@
|
||||
import{c as e,u as a}from"./index-CJ7BxJOo.js";import{a as s}from"./setting-Ah0OvyaA.js";import{e as t,s as n,r as c,l as o,$ as l}from"./main-DbEoLF8O.js";import{u as i,a as u}from"./index-DADMQFFY.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"]}}),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){t(n)}var s}}})),p=()=>{const e=_();return{...e,...n(e)}};export{m as a,p as b,v as d,d as g,r as u};
|
||||
@@ -1 +1 @@
|
||||
import{$ as e}from"./main-DKqTMGci.js";import{N as r}from"./business-DeShhBC1.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_23_1745735766455"),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};
|
||||
import{$ as e}from"./main-DbEoLF8O.js";import{N as r}from"./business-DsDuLHJY.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_23_1745735766455"),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 +1 @@
|
||||
import{$ as r}from"./main-DKqTMGci.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};
|
||||
import{$ as r}from"./main-DbEoLF8O.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 +1 @@
|
||||
import{w as r,W as e}from"./business-DeShhBC1.js";import{$ as i}from"./main-DKqTMGci.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};
|
||||
import{w as r,W as e}from"./business-DsDuLHJY.js";import{$ as i}from"./main-DbEoLF8O.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 +1 @@
|
||||
import{$ as e}from"./main-DKqTMGci.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};
|
||||
import{$ as e}from"./main-DbEoLF8O.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 +1 @@
|
||||
import{$ as r}from"./main-DKqTMGci.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};
|
||||
import{$ as r}from"./main-DbEoLF8O.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
1
build/static/js/zhTW-CXd1GWye.js
Normal file
1
build/static/js/zhTW-CXd1GWye.js
Normal file
File diff suppressed because one or more lines are too long
BIN
frontend/.DS_Store
vendored
BIN
frontend/.DS_Store
vendored
Binary file not shown.
1
frontend/.gitattributes
vendored
1
frontend/.gitattributes
vendored
@@ -1 +0,0 @@
|
||||
* text=auto eol=lf
|
||||
49
frontend/.gitignore
vendored
49
frontend/.gitignore
vendored
@@ -1,49 +0,0 @@
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# Dependencies
|
||||
node_modules
|
||||
.pnp
|
||||
.pnp.js
|
||||
|
||||
# Local env files
|
||||
.env
|
||||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
|
||||
# Testing
|
||||
coverage
|
||||
|
||||
# Turbo
|
||||
.turbo
|
||||
|
||||
# Vercel
|
||||
.vercel
|
||||
|
||||
# Build Outputs
|
||||
.next/
|
||||
out/
|
||||
build
|
||||
dist
|
||||
|
||||
|
||||
# Debug
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Misc
|
||||
.DS_Store
|
||||
*.pem
|
||||
|
||||
|
||||
.turbo
|
||||
pnpm-lock.yaml
|
||||
.specstory/**、
|
||||
|
||||
.sync-log
|
||||
.sync-log/**
|
||||
|
||||
.sync-git
|
||||
.sync-git/**
|
||||
17525
frontend/apps/allin-ssl/cache/translation_cache.json
vendored
17525
frontend/apps/allin-ssl/cache/translation_cache.json
vendored
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1747219302071" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7813" width="40" height="40" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" p-id="7814"></path><path d="M705.024 658.901333L557.098667 738.133333A82.304 82.304 0 0 0 512 811.818667V934.4l353.578667-188.416a25.514667 25.514667 0 0 0 14.250666-22.826667V345.941333l-115.114666 60.16a82.304 82.304 0 0 0-45.056 73.685334v154.794666c-0.426667 11.221333-6.357333 18.688-14.634667 24.32" fill="#DA4725" p-id="7815"></path><path d="M304.768 637.397333v-155.306666c0-30.378667-16.64-58.496-45.098667-73.898667l-115.498666-62.293333v376.618666c0 9.386667 6.314667 18.773333 14.250666 22.869334L512 934.442667v-123.008c0-30.378667-16.64-58.538667-45.098667-73.898667l-147.925333-77.653333c-8.277333-5.632-14.208-13.141333-14.208-22.485334" fill="#028DCF" p-id="7816"></path><path d="M665.770667 181.333333l-140.458667-88.661333a31.530667 31.530667 0 0 0-27.392 0L162.56 303.914667l109.269333 67.328c27.434667 16.725333 60.458667 16.725333 86.016 0l140.458667-88.661334c1.877333-2.090667 3.754667-2.090667 5.973333-2.090666a25.856 25.856 0 0 1 21.418667 2.090666l140.458667 88.661334c27.434667 16.725333 60.458667 16.725333 86.016 0l109.226666-67.328-195.626666-122.538667z" fill="#72AE2C" p-id="7817"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 7.9 KiB |
@@ -10,7 +10,17 @@ interface DnsProviderOption {
|
||||
type: string
|
||||
}
|
||||
|
||||
type DnsProviderType = 'btpanel' | 'aliyun' | 'ssh' | 'tencentcloud' | '1panel' | 'dns' | ''
|
||||
type DnsProviderType =
|
||||
| 'aliyun'
|
||||
| 'tencentcloud'
|
||||
| 'baidu'
|
||||
| 'huaweicloud'
|
||||
| 'cloudflare'
|
||||
| 'dns'
|
||||
| 'btpanel'
|
||||
| '1panel'
|
||||
| 'ssh'
|
||||
| ''
|
||||
|
||||
interface DnsProviderSelectProps {
|
||||
// 表单类型,用于获取不同的下拉列表
|
||||
|
||||
@@ -1,4 +1,17 @@
|
||||
import { NButton, NCard, NStep, NSteps, NText, NTooltip } from 'naive-ui'
|
||||
import {
|
||||
NButton,
|
||||
NCard,
|
||||
NStep,
|
||||
NSteps,
|
||||
NText,
|
||||
NTooltip,
|
||||
NTabs,
|
||||
NTabPane,
|
||||
NInput,
|
||||
NDivider,
|
||||
NFormItem,
|
||||
NSwitch,
|
||||
} from 'naive-ui'
|
||||
import { useForm, useFormHooks, useModalClose, useModalOptions, useMessage } from '@baota/naive-ui/hooks'
|
||||
import { useThemeCssVar } from '@baota/naive-ui/theme'
|
||||
import { useError } from '@baota/hooks/error'
|
||||
@@ -7,6 +20,7 @@ import { DeployNodeConfig, DeployNodeInputsConfig } from '@components/flowChart/
|
||||
import { $t } from '@locales/index'
|
||||
import SvgIcon from '@components/svgIcon'
|
||||
import DnsProviderSelect from '@/components/dnsProviderSelect'
|
||||
import SearchOutlined from '@vicons/antd/es/SearchOutlined'
|
||||
|
||||
import styles from './index.module.css'
|
||||
import verifyRules from './verify'
|
||||
@@ -30,6 +44,7 @@ export default defineComponent({
|
||||
fromNodeId: '',
|
||||
name: '',
|
||||
},
|
||||
skip: 1,
|
||||
},
|
||||
}),
|
||||
},
|
||||
@@ -51,47 +66,75 @@ export default defineComponent({
|
||||
|
||||
// 部署类型选项
|
||||
const deployTypeOptions = [
|
||||
{ label: $t('t_5_1744958839222'), value: 'ssh' },
|
||||
{ label: $t('t_10_1745735765165'), value: 'btpanel' },
|
||||
{ label: $t('t_11_1745735766456'), value: 'btpanel-site' },
|
||||
{ label: $t('t_12_1745735765571'), value: '1panel' },
|
||||
{ label: $t('t_13_1745735766084'), value: '1panel-site' },
|
||||
{ label: $t('t_14_1745735766121'), value: 'tencentcloud-cdn' },
|
||||
{ label: $t('t_15_1745735768976'), value: 'tencentcloud-cos' },
|
||||
{ label: $t('t_16_1745735766712'), value: 'aliyun-cdn' },
|
||||
{ label: $t('t_2_1746697487164'), value: 'aliyun-oss' },
|
||||
{ label: $t('t_6_1747271296994'), value: 'localhost', category: 'host', icon: 'ssh' },
|
||||
{ label: $t('t_5_1744958839222'), value: 'ssh', category: 'host', icon: 'ssh' },
|
||||
{ label: $t('t_10_1745735765165'), value: 'btpanel', category: 'btpanel', icon: 'btpanel' },
|
||||
{ label: $t('t_11_1745735766456'), value: 'btpanel-site', category: 'btpanel', icon: 'btpanel' },
|
||||
{ label: $t('t_0_1747215751189'), value: 'btwaf-site', category: 'btpanel', icon: 'btpanel' },
|
||||
{ label: $t('t_12_1745735765571'), value: '1panel', category: '1panel', icon: '1panel' },
|
||||
{ label: $t('t_13_1745735766084'), value: '1panel-site', category: '1panel', icon: '1panel' },
|
||||
{ label: $t('t_14_1745735766121'), value: 'tencentcloud-cdn', category: 'tencentcloud', icon: 'tencentcloud' },
|
||||
{ label: $t('t_15_1745735768976'), value: 'tencentcloud-cos', category: 'tencentcloud', icon: 'tencentcloud' },
|
||||
{ label: $t('t_16_1745735766712'), value: 'aliyun-cdn', category: 'aliyun', icon: 'aliyun' },
|
||||
{ label: $t('t_2_1746697487164'), value: 'aliyun-oss', category: 'aliyun', icon: 'aliyun' },
|
||||
]
|
||||
const certOptions = ref<{ label: string; value: string }[]>([]) // 证书选项
|
||||
const current = ref(1) // 当前步骤
|
||||
const next = ref(true) // 是否是下一步
|
||||
const currentStatus = ref<StepStatus>('process') // 当前步骤状态
|
||||
const currentTab = ref('all') // 当前选中的tab
|
||||
const searchKeyword = ref('') // 搜索关键字
|
||||
|
||||
const param = ref(deepClone(props.node.config)) // 表单参数
|
||||
const localProvider = ref([{ label: $t('本机部署'), value: 'localhost' }]) // 本地提供商
|
||||
const provider = computed(() => {
|
||||
return param.value.provider
|
||||
? $t('t_4_1746858917773') + ':' + deployTypeOptions.find((item) => item.value === param.value.provider)?.label
|
||||
: $t('t_19_1745735766810')
|
||||
})
|
||||
|
||||
// 过滤后的部署类型选项
|
||||
const filteredDeployTypes = computed(() => {
|
||||
let filtered = deployTypeOptions
|
||||
|
||||
// 根据标签过滤
|
||||
if (currentTab.value !== 'all') {
|
||||
filtered = filtered.filter((item) => item.category === currentTab.value)
|
||||
}
|
||||
|
||||
// 根据搜索关键词过滤
|
||||
if (searchKeyword.value) {
|
||||
const keyword = searchKeyword.value.toLowerCase()
|
||||
filtered = filtered.filter(
|
||||
(item) => item.label.toLowerCase().includes(keyword) || item.value.toLowerCase().includes(keyword),
|
||||
)
|
||||
}
|
||||
|
||||
return filtered
|
||||
})
|
||||
|
||||
// 表单配置
|
||||
const formConfig = computed(() => {
|
||||
const config = []
|
||||
config.push(
|
||||
...[
|
||||
{
|
||||
type: 'custom' as const,
|
||||
render: () => {
|
||||
return (
|
||||
<DnsProviderSelect
|
||||
type={param.value.provider}
|
||||
path="provider_id"
|
||||
value={param.value.provider_id}
|
||||
onUpdate:value={(val: { value: number; type: string }) => {
|
||||
param.value.provider_id = val.value
|
||||
}}
|
||||
/>
|
||||
)
|
||||
},
|
||||
},
|
||||
param.value.provider !== 'localhost'
|
||||
? {
|
||||
type: 'custom' as const,
|
||||
render: () => {
|
||||
return (
|
||||
<DnsProviderSelect
|
||||
type={param.value.provider}
|
||||
path="provider_id"
|
||||
value={param.value.provider_id}
|
||||
onUpdate:value={(val: { value: number; type: string }) => {
|
||||
param.value.provider_id = val.value
|
||||
}}
|
||||
/>
|
||||
)
|
||||
},
|
||||
}
|
||||
: useFormSelect($t('主机提供商'), 'provider', localProvider.value, { disabled: true }),
|
||||
],
|
||||
useFormSelect($t('t_1_1745748290291'), 'inputs.fromNodeId', certOptions.value, {
|
||||
onUpdateValue: (val, option: { label: string; value: string }) => {
|
||||
@@ -101,36 +144,38 @@ export default defineComponent({
|
||||
}),
|
||||
)
|
||||
switch (param.value.provider) {
|
||||
case 'localhost':
|
||||
case 'ssh':
|
||||
config.push(
|
||||
...[
|
||||
useFormInput('证书文件路径(仅支持PEM格式)', 'certPath', {
|
||||
useFormInput($t('证书文件路径(仅支持PEM格式)'), 'certPath', {
|
||||
placeholder: $t('t_30_1746667591892'),
|
||||
onInput: (val: string) => (param.value.certPath = val.trim()),
|
||||
}),
|
||||
useFormInput('私钥文件路径', 'keyPath', {
|
||||
useFormInput($t('私钥文件路径'), 'keyPath', {
|
||||
placeholder: $t('t_31_1746667593074'),
|
||||
onInput: (val: string) => (param.value.keyPath = val.trim()),
|
||||
}),
|
||||
useFormTextarea(
|
||||
'前置命令',
|
||||
$t('前置命令(可选)'),
|
||||
'beforeCmd',
|
||||
{ placeholder: $t('t_21_1745735769154') },
|
||||
{ placeholder: $t('t_21_1745735769154'), rows: 2 },
|
||||
{ showRequireMark: false },
|
||||
),
|
||||
useFormTextarea(
|
||||
'后置命令',
|
||||
$t('后置命令(可选)'),
|
||||
'afterCmd',
|
||||
{ placeholder: $t('t_22_1745735767366') },
|
||||
{ placeholder: $t('t_22_1745735767366'), rows: 2 },
|
||||
{ showRequireMark: false },
|
||||
),
|
||||
],
|
||||
)
|
||||
break
|
||||
case 'btwaf-site':
|
||||
case 'btpanel-site':
|
||||
config.push(
|
||||
...[
|
||||
useFormInput('站点名称', 'siteName', {
|
||||
useFormInput($t('站点名称'), 'siteName', {
|
||||
placeholder: $t('t_23_1745735766455'),
|
||||
onInput: (val: string) => (param.value.siteName = val.trim()),
|
||||
}),
|
||||
@@ -140,7 +185,7 @@ export default defineComponent({
|
||||
case '1panel-site':
|
||||
config.push(
|
||||
...[
|
||||
useFormInput('站点ID', 'site_id', {
|
||||
useFormInput($t('站点ID'), 'site_id', {
|
||||
placeholder: $t('t_24_1745735766826'),
|
||||
onInput: (val: string) => (param.value.site_id = val.trim()),
|
||||
}),
|
||||
@@ -151,7 +196,7 @@ export default defineComponent({
|
||||
case 'aliyun-cdn':
|
||||
config.push(
|
||||
...[
|
||||
useFormInput('域名', 'domain', {
|
||||
useFormInput($t('域名'), 'domain', {
|
||||
placeholder: $t('t_0_1744958839535'),
|
||||
onInput: (val: string) => (param.value.domain = val.trim()),
|
||||
}),
|
||||
@@ -162,7 +207,7 @@ export default defineComponent({
|
||||
case 'aliyun-oss':
|
||||
config.push(
|
||||
...[
|
||||
useFormInput('域名', 'domain', {
|
||||
useFormInput($t('域名'), 'domain', {
|
||||
placeholder: $t('t_0_1744958839535'),
|
||||
onInput: (val: string) => (param.value.domain = val.trim()),
|
||||
}),
|
||||
@@ -170,7 +215,7 @@ export default defineComponent({
|
||||
)
|
||||
config.push(
|
||||
...[
|
||||
useFormInput('区域', 'region', {
|
||||
useFormInput($t('区域'), 'region', {
|
||||
placeholder: $t('t_25_1745735766651'),
|
||||
onInput: (val: string) => (param.value.region = val.trim()),
|
||||
}),
|
||||
@@ -178,7 +223,7 @@ export default defineComponent({
|
||||
)
|
||||
config.push(
|
||||
...[
|
||||
useFormInput('存储桶', 'bucket', {
|
||||
useFormInput($t('存储桶'), 'bucket', {
|
||||
placeholder: $t('t_26_1745735767144'),
|
||||
onInput: (val: string) => (param.value.bucket = val.trim()),
|
||||
}),
|
||||
@@ -186,6 +231,25 @@ export default defineComponent({
|
||||
)
|
||||
break
|
||||
}
|
||||
|
||||
config.push({
|
||||
type: 'custom' as const,
|
||||
render: () => {
|
||||
return (
|
||||
<NFormItem label={$t('重复部署')} path="skip">
|
||||
<NText>{$t('当与上次部署的证书相同且上次部署成功时')}</NText>
|
||||
<NSwitch
|
||||
v-model:value={param.value.skip}
|
||||
checkedValue={1}
|
||||
uncheckedValue={0}
|
||||
class="mx-[.5rem] "
|
||||
v-slots={{ checked: () => $t('跳过'), unchecked: () => $t('不跳过') }}
|
||||
/>
|
||||
<NText>{$t('重新部署')}</NText>
|
||||
</NFormItem>
|
||||
)
|
||||
},
|
||||
})
|
||||
return config
|
||||
})
|
||||
|
||||
@@ -195,7 +259,11 @@ export default defineComponent({
|
||||
*/
|
||||
const nextStep = async () => {
|
||||
if (!param.value.provider) return message.error($t('t_0_1746858920894'))
|
||||
|
||||
if (param.value.provider === 'localhost') {
|
||||
delete param.value.provider_id
|
||||
} else {
|
||||
param.value.provider_id = props.node.config.provider_id
|
||||
}
|
||||
// 加载证书来源选项
|
||||
certOptions.value = findApplyUploadNodesUp(props.node.id).map((item) => {
|
||||
return { label: item.name, value: item.id }
|
||||
@@ -240,11 +308,12 @@ export default defineComponent({
|
||||
await example.value?.validate()
|
||||
const tempData = param.value
|
||||
const inputs = tempData.inputs
|
||||
updateNode(props.node.id, { inputs: [inputs], config: {} }, false)
|
||||
delete tempData.inputs
|
||||
// 将输入值直接传递给updateNodeConfig
|
||||
updateNodeConfig(props.node.id, {
|
||||
...tempData,
|
||||
})
|
||||
// 单独更新inputs
|
||||
updateNode(props.node.id, { inputs: [inputs] } as any, false)
|
||||
isRefreshNode.value = props.node.id
|
||||
closeModal()
|
||||
} catch (error) {
|
||||
@@ -256,6 +325,8 @@ export default defineComponent({
|
||||
onMounted(() => {
|
||||
// 隐藏底部按钮
|
||||
modalOptions.value.footer = false
|
||||
// 设置弹窗宽度和高度
|
||||
modalOptions.value.area = [850, 600]
|
||||
// 如果已经选择了部署类型,则跳转到下一步
|
||||
if (param.value.provider) {
|
||||
if (props.node.inputs) param.value.inputs = props.node.inputs[0]
|
||||
@@ -270,25 +341,61 @@ export default defineComponent({
|
||||
<NStep title={$t('t_29_1745735768933')} description={$t('t_2_1745738969878')}></NStep>
|
||||
</NSteps>
|
||||
{current.value === 1 && (
|
||||
<div class={styles.cardContainer}>
|
||||
{deployTypeOptions.map((item) => (
|
||||
<div
|
||||
key={item.value}
|
||||
class={`${styles.optionCard} ${param.value.provider === item.value ? styles.optionCardSelected : ''}`}
|
||||
onClick={() => {
|
||||
param.value.provider = item.value
|
||||
}}
|
||||
<div class={styles.configContainer}>
|
||||
<div class={styles.leftPanel}>
|
||||
<NTabs
|
||||
type="bar"
|
||||
placement="left"
|
||||
value={currentTab.value}
|
||||
onUpdateValue={(val) => (currentTab.value = val)}
|
||||
>
|
||||
<NCard contentClass={styles.cardContent} hoverable bordered={false}>
|
||||
<SvgIcon
|
||||
icon={`resources-${item.value.replace(/-[a-z]+$/, '')}`}
|
||||
size="2rem"
|
||||
class={`${styles.icon} ${param.value.provider === item.value ? styles.iconSelected : ''}`}
|
||||
/>
|
||||
<NText type={param.value.provider === item.value ? 'primary' : 'default'}>{item.label}</NText>
|
||||
</NCard>
|
||||
<NTabPane name="all" tab={$t('t_7_1747271292060')} />
|
||||
<NTabPane name="host" tab={$t('t_1_1745833931535')} />
|
||||
<NTabPane name="btpanel" tab={$t('t_8_1747271290414')} />
|
||||
<NTabPane name="1panel" tab={$t('t_9_1747271284765')} />
|
||||
<NTabPane name="tencentcloud" tab={$t('t_3_1747019616129')} />
|
||||
<NTabPane name="aliyun" tab={$t('t_2_1747019616224')} />
|
||||
</NTabs>
|
||||
</div>
|
||||
<div class={styles.rightPanel}>
|
||||
<div class={styles.searchBar}>
|
||||
<NInput
|
||||
value={searchKeyword.value}
|
||||
onUpdateValue={(val) => (searchKeyword.value = val)}
|
||||
placeholder={$t('搜索部署类型')}
|
||||
clearable
|
||||
>
|
||||
{{
|
||||
suffix: () => (
|
||||
<div class="flex items-center">
|
||||
<SearchOutlined class="text-[var(--text-color-3)] w-[1.6rem] cursor-pointer font-bold" />
|
||||
</div>
|
||||
),
|
||||
}}
|
||||
</NInput>
|
||||
</div>
|
||||
))}
|
||||
<NDivider class="!my-[1rem]" />
|
||||
<div class={styles.cardContainer}>
|
||||
{filteredDeployTypes.value.map((item) => (
|
||||
<div
|
||||
key={item.value}
|
||||
class={`${styles.optionCard} ${param.value.provider === item.value ? styles.optionCardSelected : ''}`}
|
||||
onClick={() => {
|
||||
param.value.provider = item.value
|
||||
}}
|
||||
>
|
||||
<div class={styles.cardContent}>
|
||||
<SvgIcon
|
||||
icon={`resources-${item.icon.replace(/-[a-z]+$/, '')}`}
|
||||
size="2rem"
|
||||
class={`${styles.icon} ${param.value.provider === item.value ? styles.iconSelected : ''}`}
|
||||
/>
|
||||
<NText type={param.value.provider === item.value ? 'primary' : 'default'}>{item.label}</NText>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{current.value === 2 && (
|
||||
|
||||
@@ -1,13 +1,35 @@
|
||||
/* Deploy Node Drawer Styles */
|
||||
|
||||
/* 整体布局容器 */
|
||||
.configContainer {
|
||||
@apply flex mt-[2.4rem] gap-4;
|
||||
}
|
||||
|
||||
/* 左侧面板样式 */
|
||||
.leftPanel {
|
||||
@apply border-r border-solid;
|
||||
border-color: var(--n-border-color);
|
||||
}
|
||||
|
||||
/* 右侧面板样式 */
|
||||
.rightPanel {
|
||||
@apply flex-1 flex flex-col;
|
||||
}
|
||||
|
||||
/* 搜索栏样式 */
|
||||
.searchBar {
|
||||
@apply w-full mb-[1rem] px-[0.5rem];
|
||||
}
|
||||
|
||||
/* Card container styles */
|
||||
.cardContainer {
|
||||
@apply grid grid-cols-3 gap-4 mt-[2.4rem];
|
||||
@apply grid grid-cols-3 gap-4 mt-[0.5rem] overflow-y-auto px-[0.5rem] h-[28rem];
|
||||
grid-auto-rows: min-content;
|
||||
}
|
||||
|
||||
/* Option card styles */
|
||||
.optionCard {
|
||||
@apply flex items-center justify-center rounded-[0.4rem] transition-all border-[1px] border-transparent;
|
||||
@apply flex items-center justify-center rounded-[0.4rem] transition-all border-[1px] border-transparent h-[6.2rem];
|
||||
border-color: var(--n-border-color);
|
||||
}
|
||||
|
||||
@@ -38,7 +60,7 @@
|
||||
|
||||
/* Card content styles */
|
||||
.cardContent {
|
||||
@apply flex flex-col items-center justify-center p-[4px] cursor-pointer;
|
||||
@apply flex flex-col items-center justify-center p-[4px] cursor-pointer pt-[1rem] text-[1.3rem];
|
||||
}
|
||||
|
||||
/* Icon styles */
|
||||
|
||||
@@ -37,7 +37,7 @@ export default defineComponent({
|
||||
|
||||
// 提示内容
|
||||
const verificationPrompt = computed(() => {
|
||||
console.log(props.node.config.provider, 'validationResult')
|
||||
console.log(validationResult.value, 'validationResult', props.node.config)
|
||||
if (validationResult.value.valid) return <TypeIcon icon={props.node.config.provider} type="success" />
|
||||
return $t('t_9_1745735765287')
|
||||
})
|
||||
|
||||
@@ -147,6 +147,7 @@ nodeOptions[DEPLOY] = () =>
|
||||
config: {
|
||||
provider: '',
|
||||
provider_id: '',
|
||||
skip: 1,
|
||||
inputs: {
|
||||
fromNodeId: '',
|
||||
name: '',
|
||||
|
||||
@@ -29,6 +29,7 @@ export default {
|
||||
config: {
|
||||
provider: '',
|
||||
provider_id: '',
|
||||
skip: 1,
|
||||
inputs: {
|
||||
fromNodeId: '',
|
||||
name: '',
|
||||
|
||||
@@ -231,10 +231,11 @@ export interface DeployConfig<
|
||||
> {
|
||||
provider: T
|
||||
provider_id: string
|
||||
skip: 1 | 0
|
||||
[key: string]: Z
|
||||
}
|
||||
|
||||
export interface DeployPanelConfig {}
|
||||
// export interface DeployPanelConfig {}
|
||||
|
||||
// 部署节点配置(ssh)
|
||||
export interface DeploySSHConfig {
|
||||
@@ -244,6 +245,9 @@ export interface DeploySSHConfig {
|
||||
afterCmd?: string // 后置命令
|
||||
}
|
||||
|
||||
// 部署本地节点配置
|
||||
export interface DeployLocalConfig extends DeploySSHConfig {}
|
||||
|
||||
// 部署节点配置(宝塔面板)
|
||||
export interface DeployBTPanelConfig {
|
||||
siteName: string
|
||||
@@ -268,7 +272,7 @@ export interface DeployStorageConfig {
|
||||
|
||||
// 部署节点配置
|
||||
export type DeployNodeConfig = DeployConfig<
|
||||
DeploySSHConfig | DeployBTPanelConfig | Deploy1PanelConfig | DeployCDNConfig | DeployStorageConfig
|
||||
DeploySSHConfig | DeployLocalConfig | DeployBTPanelConfig | Deploy1PanelConfig | DeployCDNConfig | DeployStorageConfig
|
||||
>
|
||||
|
||||
// 部署节点输入配置
|
||||
|
||||
@@ -4,12 +4,15 @@ import SvgIcon from '../svgIcon/index' // 注意修改引入路径以匹配实
|
||||
|
||||
// 定义支持的访问类型
|
||||
const types = {
|
||||
localhost: '本机部署',
|
||||
ssh: 'SSH',
|
||||
aliyun: '阿里云',
|
||||
tencentcloud: '腾讯云',
|
||||
btpanel: '宝塔面板',
|
||||
'1panel': '1Panel',
|
||||
huaweicloud: '华为云',
|
||||
baidu: '百度云',
|
||||
btpanel: '宝塔面板',
|
||||
btwaf: '宝塔WAF',
|
||||
'1panel': '1Panel',
|
||||
cloudflare: 'Cloudflare',
|
||||
mail: '邮件',
|
||||
dingtalk: '钉钉',
|
||||
@@ -56,10 +59,12 @@ export const AuthApiTypeIcon = defineComponent({
|
||||
|
||||
// 所有支持的类型直接映射到对应的资源名称
|
||||
const iconMap: Record<string, string> = {
|
||||
localhost: 'ssh',
|
||||
ssh: 'ssh',
|
||||
aliyun: 'aliyun',
|
||||
tencentcloud: 'tencentcloud',
|
||||
btpanel: 'btpanel',
|
||||
btwaf: 'btpanel',
|
||||
'1panel': '1panel',
|
||||
huaweicloud: 'huaweicloud',
|
||||
cloudflare: 'cloudflare',
|
||||
@@ -74,6 +79,7 @@ export const AuthApiTypeIcon = defineComponent({
|
||||
'aliyun-oss': 'aliyun',
|
||||
'1panel-site': '1panel',
|
||||
'btpanel-site': 'btpanel',
|
||||
baidu: 'baidu',
|
||||
}
|
||||
|
||||
// 返回匹配的图标路径或默认图标
|
||||
|
||||
@@ -1,4 +1,17 @@
|
||||
{
|
||||
"t_1_1745833931535": "مضيف",
|
||||
"t_3_1747019616129": "تينسنت كلاود",
|
||||
"t_2_1747019616224": "علي بابا كلاود",
|
||||
"t_0_1747271295174": "Pagoda WAF - خطأ في تنسيق URL",
|
||||
"t_1_1747271295484": "الرجاء إدخال مفتاح Pagoda WAF-API",
|
||||
"t_2_1747271295877": "الرجاء إدخال AccessKey الصحيح لـ Huawei Cloud",
|
||||
"t_3_1747271294475": "يرجى إدخال Baidu Cloud AccessKey الصحيح",
|
||||
"t_4_1747271294621": "الرجاء إدخال SecretKey الصحيح لـ Baidu Cloud",
|
||||
"t_5_1747271291828": "باوتا WAF-URL",
|
||||
"t_6_1747271296994": "النشر المحلي",
|
||||
"t_7_1747271292060": "جميع المصادر",
|
||||
"t_8_1747271290414": "باغودة",
|
||||
"t_9_1747271284765": "1Panel",
|
||||
"t_0_1744098811152": "تحذير: لقد دخلتم منطقة غير معروفة، الصفحة التي تحاول زيارتها غير موجودة، يرجى الضغط على الزر للعودة إلى الصفحة الرئيسية.",
|
||||
"t_1_1744098801860": "رجوع إلى الصفحة الرئيسية",
|
||||
"t_2_1744098804908": "نصيحة أمنية: إذا كنت تعتقد أن هذا خطأ، يرجى الاتصال بالمدير على الفور",
|
||||
@@ -332,7 +345,6 @@
|
||||
"t_3_1745765920953": "العقدة الحالية تحتوي على بيانات التكوين، هل أنت متأكد أنك تريد حذفها؟",
|
||||
"t_4_1745765868807": "الرجاء تحديد نوع النشر قبل المتابعة إلى الخطوة التالية",
|
||||
"t_0_1745833934390": "يرجى اختيار النوع",
|
||||
"t_1_1745833931535": "مضيف",
|
||||
"t_2_1745833931404": "منفذ",
|
||||
"t_3_1745833936770": "فشل في الحصول على بيانات نظرة عامة على الصفحة الرئيسية",
|
||||
"t_4_1745833932780": "معلومات النسخة",
|
||||
@@ -488,8 +500,6 @@
|
||||
"t_4_1746858917773": "محدد",
|
||||
"t_0_1747019621052": "الرجاء اختيار مزود استضافة{0}",
|
||||
"t_1_1747019624067": "انقر لضبط مراقبة الموقع وفهم الحالة في الوقت الحقيقي",
|
||||
"t_2_1747019616224": "علي بابا كلاود",
|
||||
"t_3_1747019616129": "تينسنت كلاود",
|
||||
"t_0_1747040228657": "للمجالات المتعددة، يرجى استخدام فواصل إنجليزية لفصلها، على سبيل المثال: test.com,test.cn",
|
||||
"t_1_1747040226143": "للمجالات العامة، استخدم علامة النجمة *، على سبيل المثال: *.test.com",
|
||||
"t_0_1747042966820": "الرجاء إدخال مفتاح Cloudflare API الصحيح",
|
||||
@@ -508,5 +518,6 @@
|
||||
"t_0_1747110184700": "اختيار الشهادة",
|
||||
"t_1_1747110191587": "إذا كنت بحاجة إلى تعديل محتوى الشهادة والمفتاح، فاختر شهادة مخصصة",
|
||||
"t_2_1747110193465": "عند اختيار شهادة غير مخصصة، لا يمكن تعديل محتوى الشهادة أو المفتاح",
|
||||
"t_3_1747110185110": "تحميل وتقديم"
|
||||
"t_3_1747110185110": "تحميل وتقديم",
|
||||
"t_0_1747215751189": "موقع ويف باغودا"
|
||||
}
|
||||
@@ -1,4 +1,17 @@
|
||||
{
|
||||
"t_1_1745833931535": "Host",
|
||||
"t_3_1747019616129": "Tencent Cloud",
|
||||
"t_2_1747019616224": "Alibaba Cloud",
|
||||
"t_0_1747271295174": "Pagoda WAF - URL format error",
|
||||
"t_1_1747271295484": "Please enter the Pagoda WAF-API key",
|
||||
"t_2_1747271295877": "Please enter the correct Huawei Cloud AccessKey",
|
||||
"t_3_1747271294475": "Please enter the correct Baidu Cloud AccessKey",
|
||||
"t_4_1747271294621": "Please enter the correct Baidu Cloud SecretKey",
|
||||
"t_5_1747271291828": "Baota WAF-URL",
|
||||
"t_6_1747271296994": "Local Deployment",
|
||||
"t_7_1747271292060": "All sources",
|
||||
"t_8_1747271290414": "Pagoda",
|
||||
"t_9_1747271284765": "1Panel",
|
||||
"t_0_1744098811152": "Warning: You have entered an unknown area, the page you are visiting does not exist, please click the button to return to the homepage.",
|
||||
"t_1_1744098801860": "Return Home",
|
||||
"t_2_1744098804908": "Safety Tip: If you think this is an error, please contact the administrator immediately",
|
||||
@@ -332,7 +345,6 @@
|
||||
"t_3_1745765920953": "The current node has configuration data, are you sure you want to delete it?",
|
||||
"t_4_1745765868807": "Please select the deployment type before proceeding to the next step",
|
||||
"t_0_1745833934390": "Please select type",
|
||||
"t_1_1745833931535": "Host",
|
||||
"t_2_1745833931404": "port",
|
||||
"t_3_1745833936770": "Failed to get homepage overview data",
|
||||
"t_4_1745833932780": "Version information",
|
||||
@@ -488,8 +500,6 @@
|
||||
"t_4_1746858917773": "Selected",
|
||||
"t_0_1747019621052": "Please select a host provider{0}",
|
||||
"t_1_1747019624067": "Click to set up website monitoring and grasp real-time status",
|
||||
"t_2_1747019616224": "Alibaba Cloud",
|
||||
"t_3_1747019616129": "Tencent Cloud",
|
||||
"t_0_1747040228657": "For multiple domains, please use English commas to separate them, for example: test.com,test.cn",
|
||||
"t_1_1747040226143": "For wildcard domains, use an asterisk *, for example: *.test.com",
|
||||
"t_0_1747042966820": "Please enter the correct Cloudflare API key",
|
||||
@@ -508,5 +518,6 @@
|
||||
"t_0_1747110184700": "Select certificate",
|
||||
"t_1_1747110191587": "If you need to modify the certificate content and key, please choose a custom certificate",
|
||||
"t_2_1747110193465": "When a non-custom certificate is selected, neither the certificate content nor the key can be modified",
|
||||
"t_3_1747110185110": "Upload and submit"
|
||||
"t_3_1747110185110": "Upload and submit",
|
||||
"t_0_1747215751189": "Pagoda WAF Website"
|
||||
}
|
||||
@@ -1,4 +1,17 @@
|
||||
{
|
||||
"t_1_1745833931535": "Host",
|
||||
"t_3_1747019616129": "Tencent Cloud",
|
||||
"t_2_1747019616224": "Alibaba Cloud",
|
||||
"t_0_1747271295174": "Pagoda WAF - Error de formato de URL",
|
||||
"t_1_1747271295484": "Por favor, introduzca la clave Pagoda WAF-API",
|
||||
"t_2_1747271295877": "Por favor ingrese el AccessKey correcto de Huawei Cloud",
|
||||
"t_3_1747271294475": "Por favor, ingrese el Baidu Cloud AccessKey correcto",
|
||||
"t_4_1747271294621": "Por favor, ingrese el SecretKey correcto de Baidu Cloud",
|
||||
"t_5_1747271291828": "Baota WAF-URL",
|
||||
"t_6_1747271296994": "Despliegue Local",
|
||||
"t_7_1747271292060": "Todas las fuentes",
|
||||
"t_8_1747271290414": "Pagoda",
|
||||
"t_9_1747271284765": "1Panel",
|
||||
"t_0_1744098811152": "Advertencia: Ha ingresado a una zona desconocida, la página que intenta visitar no existe, por favor, haga clic en el botón para regresar a la página de inicio.",
|
||||
"t_1_1744098801860": "Volver al inicio",
|
||||
"t_2_1744098804908": "Consejo de seguridad: Si piensa que es un error, póngase en contacto con el administrador inmediatamente",
|
||||
@@ -332,7 +345,6 @@
|
||||
"t_3_1745765920953": "El nodo actual tiene datos de configuración, ¿está seguro de que desea eliminarlo?",
|
||||
"t_4_1745765868807": "Por favor, seleccione el tipo de implementación antes de continuar con el siguiente paso",
|
||||
"t_0_1745833934390": "Por favor, seleccione el tipo",
|
||||
"t_1_1745833931535": "Host",
|
||||
"t_2_1745833931404": "puerto",
|
||||
"t_3_1745833936770": "Error al obtener los datos de vista general de la página de inicio",
|
||||
"t_4_1745833932780": "Información de versión",
|
||||
@@ -488,8 +500,6 @@
|
||||
"t_4_1746858917773": "Seleccionado",
|
||||
"t_0_1747019621052": "Seleccione un proveedor de alojamiento{0}",
|
||||
"t_1_1747019624067": "Haz clic para configurar el monitoreo del sitio web y conocer el estado en tiempo real",
|
||||
"t_2_1747019616224": "Alibaba Cloud",
|
||||
"t_3_1747019616129": "Tencent Cloud",
|
||||
"t_0_1747040228657": "Para múltiples dominios, utilice comas en inglés para separarlos, por ejemplo: test.com,test.cn",
|
||||
"t_1_1747040226143": "Para dominios comodín, use un asterisco *, por ejemplo: *.test.com",
|
||||
"t_0_1747042966820": "Por favor, ingrese la clave API correcta de Cloudflare",
|
||||
@@ -508,5 +518,6 @@
|
||||
"t_0_1747110184700": "Seleccionar certificado",
|
||||
"t_1_1747110191587": "Si necesita modificar el contenido del certificado y la clave, elija un certificado personalizado",
|
||||
"t_2_1747110193465": "Cuando se selecciona un certificado no personalizado, ni el contenido del certificado ni la clave se pueden modificar",
|
||||
"t_3_1747110185110": "Subir y enviar"
|
||||
"t_3_1747110185110": "Subir y enviar",
|
||||
"t_0_1747215751189": "Sitio web de Pagoda WAF"
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user