Submit
Path:
~
/
/
snap
/
lxd
/
current
/
share
/
lxd-ui
/
assets
/
File Content:
networks-5caac489.js
import{v as o,bf as w,bg as u}from"./index-13b2882d.js";const p=e=>new Promise((t,a)=>{fetch(`/1.0/networks?project=${e}&recursion=1`).then(o).then(s=>t(s.metadata)).catch(a)}),i=(e,t)=>new Promise((a,s)=>{fetch(`/1.0/networks/${e}?project=${t}`).then(u).then(n=>a(n)).catch(s)}),N=(e,t)=>new Promise((a,s)=>{fetch(`/1.0/networks/${e}/state?project=${t}`).then(o).then(n=>a(n.metadata)).catch(s)}),g=(e,t,a)=>new Promise((s,n)=>{const c={name:e.name,description:e.description,type:e.type};Promise.allSettled(a.map(async r=>{await m(c,t,r.server_name)})).then(r=>{var f;const h=(f=r.find(d=>d.status==="rejected"))==null?void 0:f.reason;if(h){n(h);return}m(e,t).then(s).catch(n)}).catch(n)}),m=(e,t,a)=>new Promise((s,n)=>{const c=a?`&target=${a}`:"";fetch(`/1.0/networks?project=${t}${c}`,{method:"POST",body:JSON.stringify(e)}).then(o).then(r=>s(r)).catch(async r=>{if(r.message==="Failed to fetch"){const h=await i(e.name??"",t);h&&s(h)}n(r)})}),y=(e,t)=>new Promise((a,s)=>{fetch(`/1.0/networks/${e.name??""}?project=${t}`,{method:"PUT",body:JSON.stringify(e),headers:{"If-Match":e.etag??"invalid-etag"}}).then(o).then(n=>a(n)).catch(async n=>{if(n.message==="Failed to fetch"){const c=await i(e.name??"",t);w(e,c)&&a(c)}s(n)})}),P=(e,t,a)=>new Promise((s,n)=>{fetch(`/1.0/networks/${e}?project=${a}`,{method:"POST",body:JSON.stringify({name:t})}).then(o).then(s).catch(async c=>{if(c.message==="Failed to fetch"){const r=await i(t,a);r&&s(r)}n(c)})}),k=(e,t)=>new Promise((a,s)=>{fetch(`/1.0/networks/${e}?project=${t}`,{method:"DELETE"}).then(o).then(a).catch(async n=>{n.message==="Failed to fetch"&&(await fetch(`/1.0/networks/${e}?project=${t}`)).status===404&&a(),s(n)})});export{m as a,N as b,g as c,k as d,i as e,p as f,P as r,y as u};
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
data
---
0755
img
---
0755
AutoExpandingTextArea-3a779a81.js
352 bytes
0644
CancelOperationBtn-5e4a9f41.js
1454 bytes
0644
CertificateAdd-5762bbdd.js
2423 bytes
0644
CertificateGenerate-67a1d99d.js
9813 bytes
0644
ClusterGroupForm-f258bb5e.js
3146 bytes
0644
ClusterList-13b65a6c.js
4834 bytes
0644
ConfigFieldDescription-00c1a193.js
3588 bytes
0644
ConfigurationTable-1a9d4d6f.js
2213 bytes
0644
CreateClusterGroup-3b03283b.js
329 bytes
0644
CreateInstance-2dc2e316.js
15924 bytes
0644
CreateNetwork-9059effd.js
2293 bytes
0644
CreateProfile-fa64def5.js
3354 bytes
0644
CreateProject-3768bb7f.js
1942 bytes
0644
CreateStoragePool-e2d089cb.js
1809 bytes
0644
DiskSizeSelector-dd5e138a.js
1843 bytes
0644
EditClusterGroup-08d77b61.js
622 bytes
0644
FormMenuItem-c8a1a121.js
504 bytes
0644
Images-40cc8e59.js
4475 bytes
0644
InstanceDetail-ee6a9c3e.js
497285 bytes
0644
InstanceFormMenu-dff7cf6c.js
1710 bytes
0644
InstanceList-23508fa8.js
15982 bytes
0644
Login-a15594e3.js
1504 bytes
0644
NetworkDetail-c85f81d1.js
10357 bytes
0644
NetworkDevicesForm-bcf4be77.js
28882 bytes
0644
NetworkForm-ffe61c80.js
11091 bytes
0644
NetworkList-45862bf6.js
2938 bytes
0644
NetworkMap-30a0e19e.js
393598 bytes
0644
OperationList-b576a26c.js
3103 bytes
0644
ProfileDetail-1a7135fe.js
9972 bytes
0644
ProfileDetailsForm-809e7c02.js
856 bytes
0644
ProfileFormMenu-3458e77a.js
1542 bytes
0644
ProfileList-3777bd96.js
3396 bytes
0644
ProfileSelector-b579b8c7.js
1770 bytes
0644
ProjectConfiguration-e5324f11.js
7224 bytes
0644
ProjectForm-55619b78.js
14396 bytes
0644
ProtectedRoute-49eddddb.js
209 bytes
0644
RenameHeader-c74d9adb.js
1641 bytes
0644
SelectableMainTable-5a3f3fef.js
1514 bytes
0644
Settings-2fc8ab81.js
6119 bytes
0644
StoragePoolDetail-5cad7e82.js
5661 bytes
0644
StorageUsedBy-2e98cb1b.js
2208 bytes
0644
StorageVolumeCreate-76138e07.js
1794 bytes
0644
StorageVolumeDetail-513f1051.js
6918 bytes
0644
StorageVolumeForm-228515f8.js
9860 bytes
0644
StorageVolumeFormMenu-e90b9f5c.js
1378 bytes
0644
WarningList-74e9b259.js
1899 bytes
0644
certificate-3aff5cf1.js
283833 bytes
0644
clusterGroups-3fc1789d.js
3402 bytes
0644
formFields-fc140429.js
4724 bytes
0644
images-2ea813f2.js
702 bytes
0644
index-13b2882d.js
600882 bytes
0644
index-205b9caf.css
493180 bytes
0644
index.esm-82c30f37.js
70743 bytes
0644
instanceConfigInheritance-fbf987f8.js
1414 bytes
0644
instanceDelete-e714bd59.js
1559 bytes
0644
instanceEdit-cf20bafe.js
5416 bytes
0644
instanceValidation-26160179.css
52045 bytes
0644
instanceValidation-45cfba9a.js
2195634 bytes
0644
networks-5caac489.js
1747 bytes
0644
operations-beb03b33.js
433 bytes
0644
settings-c23f9009.js
183 bytes
0644
updateMaxHeight-325b3cd4.js
861 bytes
0644
useClusterMembers-dbf45674.js
3396 bytes
0644
N4ST4R_ID | Naxtarrr