File manager - Edit - /var/www/payraty/helpdesk/public/storage/share.zip
Back
PK ! j$�` ` / lxd-ui/assets/AutoExpandingTextArea-38ef4775.jsnu �[��� import{r as x,j as i,d as c}from"./index-3c1b2661.js";const l=e=>{const{dynamicHeight:s,id:o,value:r,rows:a}=e;return x.useLayoutEffect(()=>{if(s){const t=document.getElementById(o||"");if(t){t.style.height="0px";const n=t.scrollHeight;t.style.height=`${n+1}px`}}},[r]),i.jsx("div",{children:i.jsx(c.Textarea,{...e,rows:s?void 0:a})})};export{l as A}; PK ! E,7�� � , lxd-ui/assets/CancelOperationBtn-5ab5a054.jsnu �[��� import{v as i,d as l,r as m,i as f,j as c,q as u}from"./index-3c1b2661.js";const h=e=>{var n,a,s;const t=(r,o)=>new Date(o.created_at).getTime()-new Date(r.created_at).getTime();(n=e.failure)==null||n.sort(t),(a=e.success)==null||a.sort(t),(s=e.running)==null||s.sort(t)},y=e=>new Promise((t,n)=>{fetch(`/1.0/operations?project=${e}&recursion=1`).then(i).then(a=>(h(a.metadata),t(a.metadata))).catch(n)}),g=()=>new Promise((e,t)=>{fetch("/1.0/operations?all-projects=true&recursion=1").then(i).then(n=>(h(n.metadata),e(n.metadata))).catch(t)}),p=e=>new Promise((t,n)=>{fetch(`/1.0/operations/${e}`,{method:"DELETE"}).then(i).then(t).catch(n)}),w=({operation:e,project:t})=>{const n=l.useNotify(),[a,s]=m.useState(!1),r=f(),o=()=>{s(!0),p(e.id).then(()=>{n.success("Operation cancelled")}).catch(d=>{n.failure("Operation cancellation failed",d)}).finally(()=>{s(!1),r.invalidateQueries({queryKey:t?[u.operations,t]:[u.operations]})})};return e.status!=="Running"?null:c.jsx(l.ConfirmationButton,{onHoverText:e.may_cancel?"Cancel operation":"Cannot cancel operation at this stage",className:"u-no-margin--bottom",loading:a,disabled:!e.may_cancel,confirmationModalProps:{title:"Confirm cancel",children:c.jsx("p",{children:"This will cancel the operation."}),confirmButtonLabel:"Cancel operation",onConfirm:o,cancelButtonLabel:"Go back"},shiftClickEnabled:!0,showShiftClickHint:!0,children:c.jsx("span",{children:"Cancel"})})};export{w as C,g as a,y as f}; PK ! �k�w w ( lxd-ui/assets/CertificateAdd-d98b5e86.jsnu �[��� import{d as s,r,j as e,a as o,u as d,L as p,N as h,C as x,b as j}from"./index-3c1b2661.js";const m=()=>{const i=s.useNotify(),[t,n]=r.useState(""),l=()=>{const a=t.trim().split(/\r?\n|\r|\n/g).at(-1)??"";o(a).then(()=>{location.reload()}).catch(c=>i.failure("Error using token",c))};return e.jsxs(s.Form,{children:[e.jsx(s.Textarea,{id:"token",name:"token",label:"Paste the token from the previous step",placeholder:"Paste your token here",rows:3,onChange:a=>n(a.target.value)}),e.jsx(s.Button,{appearance:"positive",disabled:t.length<1,type:"button",onClick:l,children:"Import"})]})},_=()=>{const{isAuthenticated:i,isAuthLoading:t}=d(),n=s.useNotify();return t?e.jsx(p,{}):i?e.jsx(h,{to:"/ui",replace:!0}):e.jsxs(x,{mainClassName:"certificate-generate",header:e.jsx("div",{className:"p-panel__header is-sticky",children:e.jsx("h1",{className:"p-panel__title",children:"Add existing certificate"})}),children:[n.notification?e.jsx(j,{}):e.jsx(s.Row,{children:e.jsx(s.Notification,{severity:"caution",children:"A client certificate must be present and selected in your browser"})}),e.jsx(s.Row,{className:"u-no-margin--left",children:e.jsx(s.Col,{size:12,children:e.jsxs("ol",{className:"p-stepped-list--detailed",children:[e.jsx("li",{className:"p-stepped-list__item",children:e.jsxs(s.Row,{children:[e.jsx(s.Col,{size:3,children:e.jsx("h2",{className:"p-stepped-list__title p-heading--5",children:"Create token"})}),e.jsx(s.Col,{size:6,children:e.jsxs("div",{className:"p-stepped-list__content",children:[e.jsx("p",{children:"Generate a token on the command line"}),e.jsx("div",{className:"p-code-snippet",children:e.jsx("pre",{className:"p-code-snippet__block--icon",children:e.jsx("code",{children:"lxc config trust add --name lxd-ui"})})})]})})]})}),e.jsx("li",{className:"p-stepped-list__item",children:e.jsxs(s.Row,{children:[e.jsx(s.Col,{size:3,children:e.jsx("h2",{className:"p-stepped-list__title p-heading--5",children:"Import"})}),e.jsx(s.Col,{size:6,children:e.jsx("div",{className:"p-stepped-list__content",children:e.jsx(m,{})})})]})}),e.jsx("li",{className:"p-stepped-list__item u-no-margin--bottom",children:e.jsxs(s.Row,{children:[e.jsx(s.Col,{size:3,children:e.jsx("h2",{className:"p-stepped-list__title p-heading--5",children:"Done"})}),e.jsx(s.Col,{size:6,children:e.jsx("div",{className:"p-stepped-list__content",children:e.jsx("p",{children:"Enjoy LXD UI."})})})]})})]})})})]})};export{_ as default}; PK ! gaU&