Add files via upload

pull/1/head
zhangch-dev 2025-05-06 19:08:42 +08:00 committed by GitHub
parent e7b5ac85e1
commit 7f575206aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
67 changed files with 129 additions and 0 deletions

19
frontend/index.html 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

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

View File

@ -0,0 +1 @@
<svg width="1440.855" height="900.46" viewBox="0 0 1440.85 900.46" fill="none" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="0" y1="724" x2="442.31" y2="898.26" id="a" gradientUnits="userSpaceOnUse"><stop stop-color="#121212"/><stop offset=".969" stop-color="#333" stop-opacity=".969"/><stop offset="1" stop-color="#E3E4E8" stop-opacity="0"/></linearGradient><linearGradient x1="995.427" y1="642.73" x2="466.927" y2="898.31" id="b" gradientUnits="userSpaceOnUse"><stop stop-color="#121212"/><stop offset="1" stop-color="#333"/></linearGradient><linearGradient x1="0" y1="653.04" x2="1120.19" y2="653.04" id="c" gradientUnits="userSpaceOnUse"><stop stop-color="#121212"/><stop offset="1" stop-color="#333"/></linearGradient><linearGradient x1=".7" y1="58.87" x2="382.18" y2="58.87" id="d" gradientUnits="userSpaceOnUse"><stop stop-color="#121212"/><stop offset="1" stop-color="#333"/></linearGradient><linearGradient x1="1440.355" y1="665.73" x2="1152.355" y2="900.23" id="e" gradientUnits="userSpaceOnUse"><stop stop-color="#333"/><stop offset="1" stop-color="#121212"/></linearGradient><linearGradient x1="1206.355" y1="1.73" x2="1460.355" y2="314.73" id="f" gradientUnits="userSpaceOnUse"><stop stop-color="#121212"/><stop offset=".995" stop-color="#333" stop-opacity=".792"/></linearGradient></defs><path fill="#121212" d="M.7.46h1440v900H.7z"/><path d="M3.09 755.27 0 724.46l442.31 174.26h-79.56L3.09 755.27z" fill="url(#a)"/><path d="M532.78 898.72h83.62l526.16-259.19-22.38-27.13-587.4 286.32z" fill="url(#b)"/><path d="m3.09 585.09 470.03-177.73 647.06 205.04-587.4 286.32h-90.47L0 724.46l3.09-139.37z" fill="url(#c)"/><path d="m.7 79.92 88.22 37.37L382.18.45H.7v79.47z" fill="url(#d)"/><path d="M1440.35 665.73v234.5h-288l288-234.5z" fill="url(#e)" fill-opacity=".9" fill-rule="evenodd"/><path d="M1206.35 1.72h234.5v288.01L1206.35 1.72z" fill="url(#f)" fill-rule="evenodd"/></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -0,0 +1 @@
<svg width="1440.855" height="900.46" viewBox="0 0 1440.85 900.46" fill="none" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="0" y1="653.04" x2="1120.19" y2="653.04" id="a" gradientUnits="userSpaceOnUse"><stop stop-color="#F0F0F2"/><stop offset="1" stop-color="#F3F4F6"/></linearGradient><linearGradient x1=".7" y1="58.87" x2="382.18" y2="58.87" id="b" gradientUnits="userSpaceOnUse"><stop stop-color="#EBEBED"/><stop offset="1" stop-color="#F3F4F6"/></linearGradient><linearGradient x1="1506.855" y1="665.73" x2="1152.355" y2="900.23" id="c" gradientUnits="userSpaceOnUse"><stop stop-color="#EBECEE"/><stop offset="1" stop-color="#F2F3F5"/></linearGradient><linearGradient x1="1206.355" y1="1.73" x2="1460.355" y2="314.73" id="d" gradientUnits="userSpaceOnUse"><stop offset=".282" stop-color="#F1F2F3"/><stop offset="1" stop-color="#EBECEE" stop-opacity=".792"/></linearGradient></defs><path fill="#F3F4F6" d="M.7.46h1440v900H.7z"/><path d="M3.09 755.27 0 724.46l442.31 174.26h-79.56L3.09 755.27z" fill="#E3E4E8"/><path d="M532.78 898.72h83.62l526.16-259.19-22.38-27.13-587.4 286.32z" fill="#FBFBFC"/><path d="m3.09 585.09 470.03-177.73 647.06 205.04-587.4 286.32h-90.47L0 724.46l3.09-139.37z" fill="url(#a)"/><path d="m.7 79.92 88.22 37.37L382.18.45H.7v79.47z" fill="url(#b)"/><path d="M1440.35 665.73v234.5h-288l288-234.5z" fill="url(#c)" fill-opacity=".9" fill-rule="evenodd"/><path d="M1206.35 1.72h234.5v288.01L1206.35 1.72z" fill="url(#d)" fill-rule="evenodd"/></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{d as a,c as l,o as n,a as r}from"./main-CuOpVGSB.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};

View File

@ -0,0 +1 @@
import{d as c,c as n,o,a as r}from"./main-CuOpVGSB.js";const t={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 o(),n("svg",t,s[0]||(s[0]=[r("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};

View File

@ -0,0 +1 @@
import{d as a,c as n,o as r,a as o}from"./main-CuOpVGSB.js";const s={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},t=a({name:"Search",render:function(a,t){return r(),n("svg",s,t[0]||(t[0]=[o("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)]))}});export{t as S};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{c as s}from"./index-C0ii1eey.js";const c=c=>s("/v1/access/get_list",c),a=c=>s("/v1/access/add_access",c),e=c=>s("/v1/access/upd_access",c),d=c=>s("/v1/access/del_access",c),t=c=>s("/v1/access/get_all",c);export{a,t as b,d,c as g,e as u};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{be as $,bp as a,b$ as t,bs as s,by as n,br as r}from"./main-CuOpVGSB.js";import{d as e,t as o,c as f}from"./test-B1NTq3Qz.js";var A=$((function($,s){return a($+1,(function(){var a=arguments[$];if(null!=a&&t(a[s]))return a[s].apply(a,Array.prototype.slice.call(arguments,0,$));throw new TypeError(e(a)+' does not have a method named "'+s+'"')}))}))(1,"split");const p="(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[1-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,}$/),B=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]+)$/),F=o(/^\*\.(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),g=($,a=",")=>f(n(!0),r(($=>b($)||F($)||B($)),A(a,$)));s((($,a=2,t=!0,s="")=>{if(0===$)return t?"0 B":"0";const n=["B","KB","MB","GB","TB"],r=($,e)=>{const o=n[e],f=0===e||0===a?Math.round($).toString():$.toFixed(a);return s&&o===s||$<1024||e>=n.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};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{d as e,r as a,x as l,y as t,$ as r,e as s,z as o,B as d,A as i,bN as n,G as p,H as u,J as v,I as m,k as c}from"./main-CuOpVGSB.js";import{u as _}from"./index-npmtaogS.js";import{u as f}from"./index-C0ii1eey.js";import{b as y}from"./access-0JmMvH2w.js";import{r as x}from"./verify-FTmsnlmj.js";import{S as b}from"./index-BkmK-Tf_.js";import{N as h}from"./text-B4fPSpcU.js";import"./test-B1NTq3Qz.js";import"./useStore-PMK9z9yd.js";import"./business-Oul3ABuM.js";function j(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!c(e)}const g=e({name:"ApplyNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{}})}},setup(e){const{updateNodeConfig:c,isRefreshNode:g}=_(),{confirm:w}=m(),{useFormInput:N}=t(),{handleError:k}=f(),O=a([]),z=a(Object.keys(e.node.config).length>0?e.node.config:{domains:"",email:"",provider_id:-1,provider:"",end_day:30}),C=l((()=>[N(r("t_17_1745227838561"),"domains",{placeholder:r("t_0_1745735774005")}),N(r("t_1_1745735764953"),"email",{placeholder:r("t_2_1745735773668")}),{type:"custom",render:()=>{let e,a;return s(i,{label:r("t_3_1745735765112"),path:"provider_id"},{default:()=>[s("div",{class:"flex items-center"},[s(o,{class:"w-[240px] mr-[1.6rem]",options:O.value,renderLabel:$,renderTag:U,filterable:!0,placeholder:r("t_3_1745490735059"),value:z.value.provider_id,"onUpdate:value":e=>z.value.provider_id=e,onUpdateValue:e=>{var a;z.value.provider_id=e,z.value.provider=(null==(a=O.value.find((a=>a.value===e)))?void 0:a.type)||""}},{empty:()=>s("span",{class:"text-[1.4rem] text-gray-400"},[r("t_0_1746004861782")])}),s(d,{class:"mx-[8px]",type:"primary",onClick:S},j(e=r("t_1_1746004861166"))?e:{default:()=>[e]}),s(d,{onClick:I},j(a=r("t_0_1746497662220"))?a:{default:()=>[a]})])]})}},{type:"custom",render:()=>s(i,{label:r("t_5_1745735769112"),path:"end_day"},{default:()=>[s(n,{value:z.value.end_day,"onUpdate:value":e=>z.value.end_day=e,showButton:!1,min:1,class:"w-[180px]",placeholder:r("t_6_1745735765205")},null),s("span",{class:"text-[1.4rem] ml-[1.2rem]"},[r("t_7_1745735768326")])]})}])),I=async()=>{var e,a;try{const{data:l}=await y({type:"dns"}).fetch();O.value=(null==l?void 0:l.map((e=>({type:e.type,label:e.name,value:e.id}))))||[],-1!==z.value.provider_id?z.value.provider=(null==(e=O.value.find((e=>e.value===z.value.provider_id)))?void 0:e.type)||"":-1===z.value.provider_id&&O.value.length>0?z.value.provider_id=(null==(a=O.value[0])?void 0:a.value)||-1:z.value.provider_id=""}catch(l){O.value=[],k(l)}},S=()=>{window.open("/auth-api-manage","_blank")},U=({option:e})=>s("div",{class:"flex items-center"},[e.label?s(p,null,[s(b,{iconName:`resources-${e.type}`,size:"2rem"},null),s("div",{class:"ml-[.8rem] p-[4px_0]"},[s(h,null,{default:()=>[e.label]})])]):s("span",{class:"text-[1.4rem] text-gray-400"},[r("t_3_1745490735059")])]),$=e=>s("div",{style:{display:"flex",alignItems:"center"}},[s(b,{iconName:`resources-${e.type}`,size:"2rem"},null),s("div",{class:"ml-[.8rem] p-[4px_0]"},[s(h,null,{default:()=>[e.label]})])]),{component:A,data:B,example:R}=u({defaultValue:z,config:C,rules:x});return v((()=>{I()})),w((async a=>{var l;try{await(null==(l=R.value)?void 0:l.validate()),c(e.node.id,B.value),g.value=e.node.id,a()}catch(t){}})),()=>s("div",{class:"apply-node-drawer"},[s(A,{labelPlacement:"top"},null)])}});export{g as default};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{d as e,r as o,y as r,$ as t,e as i,H as d,I as a}from"./main-CuOpVGSB.js";import{u as s}from"./index-npmtaogS.js";import{u as n}from"./index-C0ii1eey.js";import{N as p}from"./index-BM5lNpEU.js";import{r as l}from"./verify--K2Pao8J.js";import"./index-BkmK-Tf_.js";import"./test-B1NTq3Qz.js";import"./useStore-PMK9z9yd.js";import"./useStore-41pYFPeo.js";import"./setting-CQx-zKFn.js";import"./index-a07BIWQT.js";import"./index-P7WPkdV6.js";import"./text-B4fPSpcU.js";const u=e({name:"NotifyNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{provider:"",provider_id:"",subject:"",body:""}})}},setup(e){const{updateNodeConfig:u,isRefreshNode:m}=s(),{useFormInput:v,useFormTextarea:c,useFormCustom:f}=r(),{confirm:j}=a(),{handleError:_}=n(),y=o(Object.keys(e.node.config).length>0?e.node.config:{provider:"",provider_id:"",subject:"",body:""}),x=[v(t("t_0_1745920566646"),"subject",{placeholder:t("t_3_1745887835089")}),c(t("t_1_1745920567200"),"body",{placeholder:t("t_4_1745887835265"),rows:4}),f((()=>i(p,{path:"provider_id",value:y.value.provider_id,isAddMode:!0,"onUpdate:value":e=>{y.value.provider_id=e.value,y.value.provider=e.type}},null)))],{component:b,data:g,example:h}=d({defaultValue:y,config:x,rules:l});return j((async o=>{var r;try{await(null==(r=h.value)?void 0:r.validate()),u(e.node.id,g.value),m.value=e.node.id,o()}catch(t){_(t)}})),()=>i("div",{class:"notify-node-drawer"},[i(b,{labelPlacement:"top"},null)])}});export{u as default};

View File

@ -0,0 +1 @@
import{d as e,bZ as a,y as o,$ as r,H as t,I as s,e as d}from"./main-CuOpVGSB.js";import{u as i}from"./index-npmtaogS.js";import{u as l}from"./index-C0ii1eey.js";import{r as n}from"./verify-BmR7eUzW.js";import"./index-BkmK-Tf_.js";import"./test-B1NTq3Qz.js";import"./useStore-PMK9z9yd.js";const p=e({name:"UploadNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{cert:"",key:""}})}},setup(e){const{updateNodeConfig:p,isRefreshNode:m}=i(),{useFormTextarea:u}=o(),{config:c}=a(e.node),{confirm:f}=s(),{handleError:v}=l(),j=[u(r("t_34_1745735771147"),"cert",{placeholder:r("t_35_1745735781545"),rows:6}),u(r("t_36_1745735769443"),"key",{placeholder:r("t_37_1745735779980"),rows:6})],{component:_,data:y,example:w}=t({defaultValue:c,config:j,rules:n});return f((async a=>{var o;try{await(null==(o=w.value)?void 0:o.validate()),p(e.node.id,y.value),m.value=e.node.id,a()}catch(r){v(r)}})),()=>d("div",{class:"upload-node-drawer"},[d(_,{labelPlacement:"top"},null)])}});export{p as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{u as o,a as e}from"./index-npmtaogS.js";import{r as a}from"./verify-BmR7eUzW.js";import{d as r,i,F as s,aO as t,e as d}from"./main-CuOpVGSB.js";import{u as n}from"./index-P7WPkdV6.js";import"./index-BkmK-Tf_.js";import"./test-B1NTq3Qz.js";import"./index-C0ii1eey.js";import"./useStore-PMK9z9yd.js";const l=r({name:"UploadNode",props:{node:{type:Object,default:()=>({id:"",config:{}})}},setup(r){const{isRefreshNode:l}=o(),{validate:m,validationResult:p,registerCompatValidator:u,unregisterValidator:v}=e(),f=i(["warningColor","primaryColor"]);return s((()=>l.value),(o=>{n((()=>{u(r.node.id,a,r.node.config),m(r.node.id),l.value=null}),500)}),{immediate:!0}),t((()=>v(r.node.id))),()=>d("div",{style:f.value},[d("div",{style:{color:p.value.valid?"var(--n-primary-color)":"var(--n-warning-color)"}},[p.value.valid?"已配置":"未配置"])])}});export{l as default};

View File

@ -0,0 +1 @@
import{d as e,r as l,F as a,J as t,e as u,E as s,C as i,$ as n,z as o,B as p,G as r,k as v}from"./main-CuOpVGSB.js";import{u as d}from"./useStore-41pYFPeo.js";import{S as f}from"./index-BkmK-Tf_.js";import{N as m}from"./text-B4fPSpcU.js";function y(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!v(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:v}){const{fetchNotifyProvider:c,notifyProvider:b}=d(),_=l({label:"",value:"",type:""}),x=l([]),g=()=>{window.open("/settings?tab=notification","_blank")},j=({option:l})=>u("div",{class:"flex items-center"},[l.label?u(r,null,[u(f,{iconName:`notify-${"value"===e.valueType?l.type:l.value}`,size:"2rem"},null),u("div",{class:"ml-[.8rem] p-[4px_0]"},[u(m,null,{default:()=>[l.label]})])]):u("span",{class:"text-[1.4rem] text-gray-400"},[n("t_0_1745887835267")])]),S=l=>u("div",{style:{display:"flex",alignItems:"center"}},[u(f,{iconName:`notify-${"value"===e.valueType?l.type:l.value}`,size:"2rem"},null),u("div",{class:"ml-[.8rem] p-[4px_0]"},[u(m,null,{default:()=>[l.label]})])]),N=e=>{if(!e)return;const l=x.value.find((l=>l.value===e));_.value={label:(null==l?void 0:l.label)||"",value:(null==l?void 0:l.value)||"",type:(null==l?void 0:l.type)||""}},T=e=>{N(e),v("update:value",_.value)};return a((()=>e.value),(e=>N(e)),{immediate:!0}),a((()=>b.value),(l=>{x.value=l.map((l=>({label:l.label,value:"value"===e.valueType?l.value:l.type,type:"value"===e.valueType?l.type:l.value})))||[],N(e.value)})),t((()=>{c()})),()=>{let l,a;return u(s,{cols:24},{default:()=>[u(i,{span:e.isAddMode?13:24,label:n("t_1_1745887832941"),path:e.path},{default:()=>[u(o,{class:"flex-1 w-full ",options:x.value,renderLabel:S,renderTag:j,filterable:!0,placeholder:n("t_0_1745887835267"),value:_.value.value,"onUpdate:value":e=>_.value.value=e,onUpdateValue:T},{empty:()=>u("span",{class:"text-[1.4rem]"},[n("t_0_1745887835267")])})]}),e.isAddMode&&u(i,{span:11},{default:()=>[u(p,{type:"primary",class:"mx-[8px]",onClick:g},y(l=n("t_2_1745887834248"))?l:{default:()=>[l]}),u(p,{onClick:c},y(a=n("t_0_1746497662220"))?a:{default:()=>[a]})]})]})}}});export{c as N};

View File

@ -0,0 +1 @@
import{u as e,a as t}from"./index-npmtaogS.js";import{d as o,e as a,i,x as n,$ as s,F as l,aO as r}from"./main-CuOpVGSB.js";import{r as d}from"./verify-Cin2Q7VT.js";import{S as p}from"./index-BkmK-Tf_.js";import{u}from"./index-P7WPkdV6.js";import"./test-B1NTq3Qz.js";import"./index-C0ii1eey.js";import"./useStore-PMK9z9yd.js";import"./business-Oul3ABuM.js";const m={ssh:"SSH",aliyun:"阿里云",tencentcloud:"腾讯云",btpanel:"宝塔面板","1panel":"1Panel",mail:"邮件",dingtalk:"钉钉",wecom:"企业微信",feishu:"飞书",webhook:"WebHook"},c=o({name:"TypeIcon",props:{type:{type:String,required:!0},useTag:{type:Boolean,default:!1},text:{type:Boolean,default:!0}},setup(e){const t="resources-"+({ssh:"ssh",aliyun:"aliyun",tencentcloud:"tencentcloud",btpanel:"btpanel","1panel":"1panel",mail:"mail",dingtalk:"dingtalk",wecom:"wecom",feishu:"feishu",webhook:"webhook"}[e.type]||"default");const o=m[e.type]||e.type;return()=>a("div",{class:"flex items-center w-full justify-center"},[a("div",{class:"mr-2 flex items-center justify-center"},[a(p,{iconName:t,size:"20px"},null)]),e.text&&a("span",null,[o])])}}),f=o({name:"DeployNode",props:{node:{type:Object,default:()=>({id:"",inputs:{},config:{}})}},setup(o){const{isRefreshNode:p}=e(),{registerCompatValidator:m,validate:f,validationResult:y,unregisterValidator:v}=t(),g=i(["warningColor","primaryColor"]),j=n((()=>y.value.valid?a(c,{type:o.node.config.provider},null):s("t_9_1745735765287")));return l((()=>p.value),(e=>{u((()=>{m(o.node.id,d,o.node.config),f(o.node.id),p.value=null}),500)}),{immediate:!0}),r((()=>v(o.node.id))),()=>a("div",{style:g.value},[a("div",{style:{color:y.value.valid?"var(--n-primary-color)":"var(--n-warning-color)"}},[j.value])])}});export{f as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{d as e,x as i,e as a}from"./main-CuOpVGSB.js";const l=e({name:"SvgIcon",props:{iconName:{type:String,required:!0},className:{type:String,default:""},color:{type:String,default:""},size:{type:String,default:"1.8rem"}},setup(e){const l=i((()=>`#icon-${e.iconName}`)),s=i((()=>e.className?`relative inline-block align-[-0.2rem] ${e.className}`:"relative inline-block align-[-0.2rem]"));return()=>a("svg",{class:s.value,style:{width:e.size,height:e.size},"aria-hidden":"true"},[a("use",{"xlink:href":l.value,fill:e.color},null)])}});export{l as S};

View File

@ -0,0 +1 @@
/* empty css */const r={Modal:{preset:"card"}},e={name:"defaultLight",type:"light",title:"默认亮色主题",themeOverrides:{common:{borderRadius:"0.6rem"}},presetsOverrides:r},o={name:"defaultDark",type:"dark",title:"默认暗色主题",themeOverrides:{common:{primaryColor:"#4caf50",primaryColorHover:"#20a53a",primaryColorPressed:"#157f3a",primaryColorSuppl:"#4caf50",borderRadius:"0.6rem"},Popover:{},Button:{textColorPrimary:"#ffffff",textColorHoverPrimary:"#ffffff",textColorPressedPrimary:"#ffffff",textColorFocusPrimary:"#ffffff"},Radio:{buttonTextColorActive:"#ffffff"}},presetsOverrides:r};export{o as defaultDark,e as defaultLight};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{u as e,a}from"./index-npmtaogS.js";import{d as o,i as r,x as i,$ as t,F as s,aO as d,e as n}from"./main-CuOpVGSB.js";import{r as l}from"./verify-CkLfwCWa.js";import{u as m}from"./index-P7WPkdV6.js";import"./index-BkmK-Tf_.js";import"./test-B1NTq3Qz.js";import"./index-C0ii1eey.js";import"./useStore-PMK9z9yd.js";const p=o({name:"StartNode",props:{node:{type:Object,default:()=>({id:"",config:{}})}},setup(o){const{isRefreshNode:p}=e(),{validate:u,validationResult:v,registerCompatValidator:f,unregisterValidator:c}=a(),j=r(["warningColor","primaryColor"]),g=i((()=>v.value.valid?"auto"===o.node.config.exec_type?t("t_4_1744875940750"):t("t_5_1744875940010"):"未配置"));return s((()=>p.value),(e=>{m((()=>{f(o.node.id,l,o.node.config),u(o.node.id),p.value=null}),500)}),{immediate:!0}),d((()=>c(o.node.id))),()=>n("div",{style:j.value},[n("div",{style:{color:v.value.valid?"var(--n-primary-color)":"var(--n-warning-color)"}},[g.value])])}});export{p as default};

View File

@ -0,0 +1 @@
import{d as o,i as e,x as r,F as i,aO as a,e as s}from"./main-CuOpVGSB.js";import{u as t,a as d}from"./index-npmtaogS.js";import{r as n}from"./verify--K2Pao8J.js";import{u as l}from"./index-P7WPkdV6.js";import"./index-BkmK-Tf_.js";import"./test-B1NTq3Qz.js";import"./index-C0ii1eey.js";import"./useStore-PMK9z9yd.js";const m=o({name:"NotifyNode",props:{node:{type:Object,default:()=>({id:"",config:{}})}},setup(o){const{isRefreshNode:m}=t(),{validate:p,validationResult:v,registerCompatValidator:u,unregisterValidator:f}=d(),c=e(["warningColor","primaryColor"]),j=r((()=>v.value.valid&&o.node.config.provider));return i((()=>m.value),(e=>{l((()=>{u(o.node.id,n,o.node.config),p(o.node.id),m.value=null}),500)}),{immediate:!0}),a((()=>f(o.node.id))),()=>s("div",{style:c.value},[s("div",{style:{color:j.value?"var(--n-primary-color)":"var(--n-warning-color)"}},[j.value?o.node.config.provider:"未配置"])])}});export{m as default};

View File

@ -0,0 +1 @@
import{d as e,c as l,o as s,a as t,e as r}from"./main-CuOpVGSB.js";const f={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},n=e({name:"PlusOutlined",render:function(e,r){return s(),l("svg",f,r[0]||(r[0]=[t("defs",null,null,-1),t("path",{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z",fill:"currentColor"},null,-1),t("path",{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z",fill:"currentColor"},null,-1)]))}}),o=e({name:"BaseComponent",setup(e,{slots:l}){const s=l["header-left"]||l.headerLeft,t=l["header-right"]||l.headerRight,f=l.header||l.header,n=l["footer-left"]||l.footerLeft,o=l["footer-right"]||l.footerRight,a=l.footer||l.footer;return()=>r("div",{class:"flex flex-col"},[(s||t)&&r("div",{class:"flex justify-between flex-wrap",style:{rowGap:"0.8rem"}},[r("div",{class:"flex flex-shrink-0"},[s&&s()]),r("div",{class:"flex flex-shrink-0"},[t&&t()])]),f&&r("div",{class:"flex justify-between flex-wrap w-full"},[f&&f()]),r("div",{class:`w-full content ${s||t?"mt-[1.2rem]":""} ${n||o?"mb-[1.2rem]":""}`},[l.content&&l.content()]),(n||o)&&r("div",{class:"flex justify-between"},[r("div",{class:"flex flex-shrink-0"},[n&&n()]),r("div",{class:"flex flex-shrink-0"},[o&&o()])]),a&&r("div",{class:"flex justify-between w-full"},[a()]),l.popup&&l.popup()])}});export{o as B,n as P};

View File

@ -0,0 +1 @@
import{u as o,a as e}from"./index-npmtaogS.js";import{d as i,i as r,F as a,aO as s,e as t,$ as n}from"./main-CuOpVGSB.js";import{r as d}from"./verify-FTmsnlmj.js";import{u as l}from"./index-P7WPkdV6.js";import"./index-BkmK-Tf_.js";import"./test-B1NTq3Qz.js";import"./index-C0ii1eey.js";import"./useStore-PMK9z9yd.js";import"./business-Oul3ABuM.js";const m=i({name:"ApplyNode",props:{node:{type:Object,default:()=>({id:"",config:{}})}},setup(i){const{isRefreshNode:m}=o(),{registerCompatValidator:p,validate:u,validationResult:v,unregisterValidator:f}=e(),j=r(["warningColor","primaryColor"]);return a((()=>m.value),(o=>{l((()=>{p(i.node.id,d,i.node.config),u(i.node.id),m.value=null}),500)}),{immediate:!0}),s((()=>f(i.node.id))),()=>{var o;return t("div",{style:j.value},[t("div",{style:{color:v.value.valid?"var(--n-primary-color)":"var(--n-warning-color)"}},[v.value.valid?"域名:"+(null==(o=i.node.config)?void 0:o.domains):n("t_9_1745735765287")])])}}});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

View File

@ -0,0 +1 @@
import{bu as t,c0 as e,bV as n,c1 as i,aL as a,J as s,aw as o,F as r,ab as u,r as c,c2 as l,bK as f}from"./main-CuOpVGSB.js";function v(t){return!!i()&&(a(t),!0)}const m="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const p=Object.prototype.toString,d=t=>"[object Object]"===p.call(t),b=()=>{};const y=t=>t();function g(t=y,n={}){const{initialState:i="active"}=n,a=function(...t){if(1!==t.length)return u(...t);const n=t[0];return"function"==typeof n?e(l((()=>({get:n,set:b})))):c(n)}("active"===i);return{isActive:e(a),pause:function(){a.value=!1},resume:function(){a.value=!0},eventFilter:(...e)=>{a.value&&t(...e)}}}function h(t){return Array.isArray(t)?t:[t]}function A(t,e,n={}){const{eventFilter:i=y,...a}=n;return r(t,(s=i,o=e,function(...t){return new Promise(((e,n)=>{Promise.resolve(s((()=>o.apply(this,t)),{fn:o,thisArg:this,args:t})).then(e).catch(n)}))}),a);var s,o}function F(t,e,n={}){const{eventFilter:i,initialState:a="active",...s}=n,{eventFilter:o,pause:r,resume:u,isActive:c}=g(i,{initialState:a});return{stop:A(t,e,{...s,eventFilter:o}),pause:r,resume:u,isActive:c}}function S(t,e=!0,n){f()?s(t,n):e?t():o(t)}function w(i,a,s={}){const{immediate:o=!0,immediateCallback:r=!1}=s,u=t(!1);let c=null;function l(){c&&(clearTimeout(c),c=null)}function f(){u.value=!1,l()}function p(...t){r&&i(),l(),u.value=!0,c=setTimeout((()=>{u.value=!1,c=null,i(...t)}),n(a))}return o&&(u.value=!0,m&&p()),v(f),{isPending:e(u),start:p,stop:f}}function j(t,e,n){return r(t,e,{...n,immediate:!0})}export{h as a,j as b,v as c,d,m as i,S as t,w as u,F as w};

View File

@ -0,0 +1 @@
import{i as e,w as t,t as n,a as r,b as a,c as o,d as l}from"./index-P7WPkdV6.js";import{bu as i,r as u,x as s,bV as f,F as c,aw as d,bW as v}from"./main-CuOpVGSB.js";const g=e?window:void 0;function p(...e){const t=[],n=()=>{t.forEach((e=>e())),t.length=0},i=s((()=>{const t=r(f(e[0])).filter((e=>null!=e));return t.every((e=>"string"!=typeof e))?t:void 0})),u=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),()=>{u(),n()}}const w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y="__vueuse_ssr_handlers__",m=S();function S(){return y in w||(w[y]=w[y]||{}),w[y]}const 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:w=!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:u)("function"==typeof r?r():r),_=s((()=>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),F=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),M=null!=(l=o.serializer)?l:b[F],{pause:V,resume:k}=t(J,(()=>function(e){try{const t=a.getItem(_.value);if(null==e)x(t,null),a.removeItem(_.value);else{const n=M.write(e);t!==n&&(a.setItem(_.value,n),x(t,n))}}catch(L){A(L)}}(J.value)),{flush:v,deep:w,eventFilter:j});function x(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){V();try{(null==e?void 0:e.newValue)!==M.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,M.write(D)),D;if(!e&&N){const e=M.read(t);return"function"==typeof N?N(e,D):"object"!==F||Array.isArray(e)?e:{...D,...e}}return"string"!=typeof t?t:M.read(t)}(e))}catch(L){A(L)}finally{e?d(k):k()}}}function C(e){T(e.detail)}return c(_,(()=>T()),{flush:v}),E&&y&&n((()=>{a instanceof Storage?p(E,"storage",T,{passive:!0}):p(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)}export{O as u};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{c as o,d as s}from"./index-C0ii1eey.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

View File

@ -0,0 +1 @@
import{c as t}from"./index-C0ii1eey.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/get_list",e);export{p as a,s as b,a as d,e as g,r as s,o as u};

View File

@ -0,0 +1 @@
import{bl as t,be as e,bo as r,by as n,bz as u,bA as o,bB as i,bC as c,bk as a}from"./main-CuOpVGSB.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};

View File

@ -0,0 +1 @@
import{Y as e,Z as o,d as t,K as n,_ as r,L as s,bX as i,x as a,aI as l,a2 as d,ap as c}from"./main-CuOpVGSB.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=a((()=>{const{depth:o,type:t}=e,r="default"===t?void 0===o?"textColor":`textColor${o}Depth`:l("textColor",t),{common:{fontWeightStrong:s,fontFamilyMono:i,cubicBezierEaseInOut:a},self:{codeTextColor:d,codeBorderRadius:c,codeColor:h,codeBorder:g,[r]:u}}=n.value;return{"--n-bezier":a,"--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",a((()=>`${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};

View File

@ -0,0 +1 @@
import{u as e}from"./index-C0ii1eey.js";import{a}from"./setting-CQx-zKFn.js";import{m as t,s as o,r as l,x as n}from"./main-CuOpVGSB.js";import{u as r}from"./index-a07BIWQT.js";const s=t("layout-store",(()=>{const{handleError:t}=e(),o=r("layout-collapsed",!1),s=l([]),i=r("menu-active","home"),u=n((()=>"home"!==i.value?"var(--n-content-padding)":"0"));return{locales:r("locales-active","zhCN"),notifyProvider:s,isCollapsed:o,layoutPadding:u,menuActive:i,resetDataInfo:()=>{i.value="home",localStorage.removeItem("menu-active")},updateMenuActive:e=>{"logout"!==e&&(i.value=e)},toggleCollapse:()=>{o.value=!o.value},handleCollapse:()=>{o.value=!0},handleExpand:()=>{o.value=!1},fetchNotifyProvider:async()=>{try{const{data:e}=await a({p:1,search:"",limit:1e3}).fetch();s.value=[],s.value=null==e?void 0:e.map((e=>({label:e.name,value:e.id.toString(),type:e.type})))}catch(e){t(e)}}}})),i=()=>{const e=s();return{...e,...o(e)}};export{i as u};

View File

@ -0,0 +1 @@
import{c as e,u as a}from"./index-C0ii1eey.js";import{m as o,s as t,r as l,$ as r}from"./main-CuOpVGSB.js";const w=a=>e("/v1/workflow/get_list",a),c=a=>e("/v1/workflow/del_workflow",a),s=a=>e("/v1/workflow/get_workflow_history",a),i=a=>e("/v1/workflow/get_exec_log",a),n=a=>e("/v1/workflow/execute_workflow",a),d=a=>e("/v1/workflow/exec_type",a),f=a=>e("/v1/workflow/active",a),u=o("work-edit-view-store",(()=>{const{handleError:o}=a(),t=l(!1),w=l(!1),c=l({id:"",name:"",content:"",active:"1",exec_type:"manual",exec_time:""}),s=l("quick"),i=l({id:"",name:"",childNode:{id:"start-1",name:"开始",type:"start",config:{exec_type:"manual"},childNode:null}});return{isEdit:t,detectionRefresh:w,workflowData:c,workflowType:s,workDefalutNodeData:i,resetWorkflowData:()=>{c.value={id:"",name:"",content:"",active:"1",exec_type:"manual",exec_time:""},i.value={id:"",name:"",childNode:{id:"start-1",name:"开始",type:"start",config:{exec_type:"manual"},childNode:null}},s.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).defalut(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).defalut(r("t_11_1745457488256"))}}}})),k=()=>{const e=u();return{...e,...t(e)}};export{s as a,n as b,i as c,c as d,f as e,k as f,w as g,d as u};

View File

@ -0,0 +1 @@
import{$ as r}from"./main-CuOpVGSB.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",validator:(e,t)=>new Promise(((e,o)=>{t?e():o(new Error(r("t_0_1745887835267")))}))}};export{e as r};

View File

@ -0,0 +1 @@
import{$ as r}from"./main-CuOpVGSB.js";const e={key:{required:!0,trigger:"input",validator:(e,i)=>new Promise(((e,t)=>{i?e():t(new Error(r("t_38_1745735769521")))}))},cert:{required:!0,trigger:"input",validator:(e,i)=>new Promise(((e,t)=>{i?e():t(new Error(r("t_40_1745735815317")))}))}};export{e as r};

View File

@ -0,0 +1 @@
import{$ as r}from"./main-CuOpVGSB.js";import{N as e}from"./business-Oul3ABuM.js";const i={provider:{required:!0,message:r("t_19_1745735766810"),type:"string",trigger:"change"},provider_id:{required:!0,trigger:"change",validator:(e,i)=>{if(i<0)return new Error(r("t_1_1745744905566"))}},"inputs.fromNodeId":{required:!0,message:r("t_3_1745748298161"),trigger:"change"},path:{required:!0,message:r("t_20_1745735768764"),trigger:"input",validator:(e,i)=>{if(!i)return new Error(r("t_20_1745735768764"))}},siteName:{required:!0,message:r("t_23_1745735766455"),trigger:"input"},site_id:{required:!0,message:r("t_24_1745735766826"),trigger:"input"},domain:{required:!0,trigger:"input",validator:(i,t)=>{if(!e(t))return new Error(r("t_0_1744958839535"))}},region:{required:!0,message:r("t_25_1745735766651"),trigger:"input"},bucket:{required:!0,message:r("t_26_1745735767144"),trigger:"input"}};export{i as r};

View File

@ -0,0 +1 @@
import{$ as e}from"./main-CuOpVGSB.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};

View File

@ -0,0 +1 @@
import{w as r,W as e}from"./business-Oul3ABuM.js";import{$ as i}from"./main-CuOpVGSB.js";const t={domains:{required:!0,trigger:"input",validator:(r,t)=>new Promise(((r,o)=>{e(t)?r():o(new Error(i("t_0_1745553910661")))}))},email:{required:!0,trigger:"input",validator:(e,t)=>new Promise(((e,o)=>{r(t)?e():o(new Error(i("t_1_1745553909483")))}))},provider_id:{required:!0,message:i("t_3_1745490735059"),trigger:"change",type:"number"},end_day:{required:!0,trigger:"input",validator:(r,e)=>new Promise(((r,t)=>{e?r():t(new Error(i("t_2_1745553907423")))}))}};export{t as r};

File diff suppressed because one or more lines are too long