403Webshell
Server IP : 13.213.54.232  /  Your IP : 216.73.216.166
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ip-172-31-17-110 6.8.0-1029-aws #31~22.04.1-Ubuntu SMP Thu Apr 24 21:16:18 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 7.1.33-67+ubuntu22.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /snap/lxd/current/share/lxd-ui/assets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /snap/lxd/current/share/lxd-ui/assets//useClusterMembers-dbf45674.js
import{z as h,j as t,d as r,r as u,A as g,n as x,f as y,q as d,p as S}from"./index-13b2882d.js";import{D as j}from"./DiskSizeSelector-dd5e138a.js";import{A as F}from"./AutoExpandingTextArea-3a779a81.js";import{F as C}from"./FormMenuItem-c8a1a121.js";import{u as b}from"./updateMaxHeight-325b3cd4.js";import{M as v}from"./StorageVolumeFormMenu-e90b9f5c.js";import{i as f}from"./settings-c23f9009.js";const n="dir",c="btrfs",N="lvm",m="zfs",D=[{label:"Directory",value:n},{label:"Btrfs",value:c},{label:"LVM",value:N},{label:"ZFS",value:m}],p={dir:"Optional, path to an existing directory",lvm:"Optional, path to an existing block device, loop file or LVM volume group",zfs:"Optional, path to an existing block device, loop file or ZFS dataset/pool"},z=e=>Object.keys(p).includes(e)?p[e]:"Not available",B=(e,a)=>["deduplicate","A storage pool with this name already exists",s=>h(s,e,a,"storage-pools")],M=({formik:e})=>{const a=s=>({id:s,name:s,onBlur:e.handleBlur,onChange:e.handleChange,value:e.values[s],error:e.touched[s]?e.errors[s]:null,placeholder:`Enter ${s.replaceAll("_"," ")}`});return t.jsx(r.Row,{children:t.jsxs(r.Col,{size:8,children:[t.jsx(r.Input,{...a("name"),type:"text",label:"Name",required:!0,disabled:!e.values.isCreating||e.values.isReadOnly,help:e.values.isCreating?void 0:"Cannot rename storage pools"}),t.jsx(F,{...a("description"),label:"Description",disabled:e.values.isReadOnly,dynamicHeight:!0}),t.jsx(r.Select,{id:"driver",name:"driver",help:e.values.isCreating?e.values.driver===m?"ZFS gives best performance and reliability":void 0:"Driver can't be changed",label:"Driver",options:D,onChange:s=>{const l=s.target.value;l===n&&e.setFieldValue("size",""),l===c&&e.setFieldValue("source",""),e.setFieldValue("driver",l)},value:e.values.driver,required:!0,disabled:!e.values.isCreating||e.values.isReadOnly}),t.jsx(j,{label:"Size",value:e.values.size,help:e.values.driver===n?"Not available":"When left blank, defaults to 20% of free disk space. Default will be between 5GiB and 30GiB",setMemoryLimit:s=>void e.setFieldValue("size",s),disabled:e.values.driver===n||e.values.isReadOnly}),t.jsx(r.Input,{...a("source"),type:"text",disabled:e.values.driver===c||!e.values.isCreating||e.values.isReadOnly,help:e.values.isCreating?z(e.values.driver):"Source can't be changed",label:"Source"})]})})},O="Main configuration",A=({active:e,setActive:a})=>{var i;const s=r.useNotify(),l={active:e,setActive:a},o=()=>{b("form-navigation","p-bottom-controls")};return u.useEffect(o,[(i=s.notification)==null?void 0:i.message]),g("resize",o),t.jsx("div",{className:"p-side-navigation--accordion form-navigation",children:t.jsx("nav",{"aria-label":"Storage pool form navigation",children:t.jsx("ul",{className:"p-side-navigation__list",children:t.jsx(C,{label:O,...l})})})})},H=({formik:e})=>{var i;const a=r.useNotify(),[s,l]=u.useState(v),o=()=>{b("form-contents","p-bottom-controls")};return u.useEffect(o,[(i=a.notification)==null?void 0:i.message,s]),g("resize",o),t.jsxs(r.Form,{className:"form storage-pool-form",onSubmit:e.handleSubmit,children:[t.jsx(r.Input,{type:"submit",hidden:!0}),t.jsx(A,{active:s,setActive:l}),t.jsx(r.Row,{className:"form-contents",children:t.jsx(r.Col,{size:12,children:s===v&&t.jsx(M,{formik:e})})},s)]})},_=()=>{const{data:e}=x(),a=f(e);return y({queryKey:[d.cluster,d.members],queryFn:S,enabled:a})};export{H as S,c as b,B as t,_ as u,m as z};

Youez - 2016 - github.com/yon3zu
LinuXploit