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 : |
import{f as i,q as x,bB as u,j as e,aE as a,aF as r,aA as $,c as d}from"./index-13b2882d.js";const m=({id:c,project:t})=>{const{data:n}=i({queryKey:[x.images,c],queryFn:()=>u(c,t)}),s=n!=null&&n.properties.description?n.properties.description:c;return e.jsx("div",{className:"u-truncate",title:s,children:s})},j="Instances",o="Profiles",l="Images",p="Snapshots",h="Custom",g=({storage:c,project:t})=>{const n={[j]:a("instances",c.used_by),[o]:a("profiles",c.used_by),[l]:a("images",c.used_by),[p]:a("snapshots",c.used_by),[h]:a("volumes",c.used_by)};return e.jsx("table",{children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsxs("th",{className:"p-muted-heading",children:["Instances (",n[j].length,")"]}),e.jsx("td",{children:e.jsx(r,{items:n[j].map(s=>e.jsxs("div",{children:[e.jsx($,{instance:s}),s.project!==t&&` (project ${s.project})`]},`${s.name}-${s.project}`))})})]}),e.jsxs("tr",{children:[e.jsxs("th",{className:"p-muted-heading",children:["Profiles (",n[o].length,")"]}),e.jsx("td",{children:e.jsx(r,{items:n[o].map(s=>e.jsxs("div",{children:[e.jsx(d,{to:`/ui/project/${s.project}/profiles/detail/${s.name}`,children:s.name}),s.project!==t&&` (project ${s.project})`]},`${s.name}-${s.project}`))})})]}),e.jsxs("tr",{children:[e.jsxs("th",{className:"p-muted-heading",children:["Images (",n[l].length,")"]}),e.jsx("td",{children:e.jsx(r,{items:n[l].map(s=>e.jsx(m,{id:s.name,project:s.project},`${s.name}-${s.project}`))})})]}),e.jsxs("tr",{children:[e.jsxs("th",{className:"p-muted-heading",children:["Snapshots (",n[p].length,")"]}),e.jsx("td",{children:e.jsx(r,{items:n[p].map(s=>e.jsxs("div",{children:[e.jsx(d,{to:`/ui/project/${s.project}/instances/detail/${s.instance}/snapshots`,children:`${s.instance} ${s.name}`}),s.project!==t&&` (project ${s.project})`]},`${s.instance}-${s.name}-${s.project}`))})})]}),e.jsxs("tr",{children:[e.jsxs("th",{className:"p-muted-heading",children:["Custom (",n[h].length,")"]}),e.jsx("td",{children:e.jsx(r,{items:n[h].map(s=>e.jsx("div",{children:e.jsxs(d,{to:`/ui/project/${s.project}/storage/detail/${c.name}/custom/${s.name}`,children:[s.name,s.project!==t&&` (project ${s.project})`]})},`${s.name}-${s.project}`))})})]})]})})};export{g as S};