%PDF- %PDF-
Direktori : /snap/lxd/current/share/lxd-ui/assets/ |
Current File : //snap/lxd/current/share/lxd-ui/assets/ConfigFieldDescription-00c1a193.js |
import{l as p,j as u}from"./index-13b2882d.js";const g=t=>{var e;const n=[];for(const[c,r]of Object.entries(t))for(const s of r.keys)for(const[o,i]of Object.entries(s)){const a={...i,category:c,default:(e=i.defaultdesc)!=null&&e.startsWith("`")?i.defaultdesc.split("`")[1]:"",key:o};n.push(a)}return n},f={"{config:option}`instance-raw:raw.idmap":"/reference/instance_options/#instance-raw:raw.idmap","{config:option}`instance-raw:raw.lxc":"/reference/instance_options/#instance-raw:raw.lxc","{config:option}`instance-raw:raw.qemu":"/reference/instance_options/#instance-raw:raw.qemu","{config:option}`instance-resource-limits:limits.cpu":"/reference/instance_options/#instance-resource-limits:limits.cpu","{config:option}`instance-resource-limits:limits.memory":"/reference/instance_options/#instance-resource-limits:limits.memory","{config:option}`instance-resource-limits:limits.processes":"/reference/instance_options/#instance-resource-limits:limits.processes","{config:option}`instance-security:security.csm":"/reference/instance_options/#instance-security:security.csm","{config:option}`instance-security:security.idmap.isolated":"/reference/instance_options/#instance-security:security.idmap.isolated","{config:option}`instance-security:security.nesting":"/reference/instance_options/#instance-security:security.nesting","{config:option}`instance-security:security.privileged":"/reference/instance_options/#instance-security:security.privileged","{config:option}`instance-security:security.secureboot":"/reference/instance_options/#instance-security:security.secureboot","{config:option}`project-restricted:restricted.devices.disk":"/reference/projects/#project-restricted:restricted.devices.disk","{config:option}`project-restricted:restricted.devices.nic":"/reference/projects/#project-restricted:restricted.devices.nic","{ref}`cluster-evacuate":"/howto/cluster_manage/#cluster-evacuate","{ref}`cluster-https-address":"/howto/cluster_config_networks/#cluster-https-address","{ref}`clustering-instance-placement":"/explanation/clustering/#clustering-instance-placement","{ref}`clustering-instance-placement-scriptlet":"/explanation/clustering/#clustering-instance-placement-scriptlet","{ref}`dev-lxd":"/dev-lxd/#dev-lxd","{ref}`howto-storage-buckets":"/howto/storage_buckets/#howto-storage-buckets","{ref}`instance-options-limits-cpu":"/reference/instance_options/#instance-options-limits-cpu","{ref}`instance-options-limits-cpu-container":"/reference/instance_options/#instance-options-limits-cpu-container","{ref}`instance-options-qemu":"/reference/instance_options/#instance-options-qemu","{ref}`instance-options-snapshots-names":"/reference/instance_options/#instance-options-snapshots-names","{ref}`instances-limit-units":"/reference/instance_units/#instances-limit-units","{ref}`metrics":"/metrics/#metrics","{ref}`network-bgp":"/howto/network_bgp/#network-bgp","{ref}`network-dns-server":"/howto/network_zones/#network-dns-server","{ref}`server-expose":"/howto/server_expose/#server-expose"},m=(t,n)=>{let e=t.replaceAll("<","<").replaceAll(">",">").replaceAll(` `,"<br>");Object.entries(f).forEach(([s,o])=>{var l;const i=`${n}${o}`,a=(l=s.substring(s.lastIndexOf("`")+1).split(":").pop())==null?void 0:l.replaceAll("-"," ");e=e.replaceAll(s+"`",`<a href="${i}" target="_blank" rel="noreferrer">${a}</a>`)});let c=0;const r=100;for(;e.includes("`")&&c++<r;)e=e.replace("`","<code>").replace("`","</code>");return e},w=({description:t,className:n})=>{const e=p();return t?u.jsx("p",{className:n,dangerouslySetInnerHTML:{__html:m(t,e)}}):null};export{w as C,g as t};