GIF89a=( õ' 7IAXKgNgYvYx\%wh…hŽth%ˆs%—x¨}9®Œ©€&©‰%¶†(¹–.¹5·œD¹&Çš)ÇŸ5ǘ;Í£*È¡&Õ²)ׯ7×µ<Ñ»4ï°3ø‘HÖ§KͯT÷¨Yÿšqÿ»qÿÔFØ !ù ' !ÿ NETSCAPE2.0 , =( þÀ“pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§gª«ªE¯°¨¬ª±²Œ¹º¹E¾­”´ÂB¶¯ §Åȸ»ÑD¾¿Á•ÄÅ®° ÝH¾ÒLÀÆDÙ«D¶BÝïðÀ¾DÑÑÔTÌÍíH òGö¨A RÎڐ |¥ ٭&ºìE8œ¹kGÔAÞpx­a¶­ã R2XB®åE8I€Õ6Xî:vT)äžþÀq¦è³¥ì仕F~%xñ  4#ZÔ‰O|-4Bs‘X:= QÉ œš lºÒyXJŠGȦ|s hÏíK–3l7·B|¥$'7Jީܪ‰‡àá”Dæn=Pƒ ¤Òëí‰`䌨ljóá¯Éüv>á–Á¼5 ½.69ûϸd«­ºÀûnlv©‹ªîf{¬ÜãPbŸ  l5‘ޝpß ´ ˜3aÅùäI«O’ý·‘áÞ‡˜¾Æ‚ÙÏiÇÿ‹Àƒ #öó)pâš Þ½ ‘Ý{ó)vmÞü%D~ 6f s}ŃƒDØW Eþ`‡þ À…L8xá†ç˜{)x`X/> Ì}mø‚–RØ‘*|`D=‚Ø_ ^ð5 !_…'aä“OÚ—7âcð`D”Cx`ÝÂ¥ä‹éY¹—F¼¤¥Š?¡Õ™ n@`} lď’ÄÉ@4>ñd œ à‘vÒxNÃ×™@žd=ˆgsžG±æ ´²æud &p8Qñ)ˆ«lXD©øÜéAžHìySun jª×k*D¤LH] †¦§C™Jä–´Xb~ʪwStŽ6K,°£qÁœ:9ت:¨þªl¨@¡`‚ûÚ ».Û¬¯t‹ÆSÉ[:°=Š‹„‘Nåû”Ìî{¿ÂA ‡Rà›ÀÙ6úë°Ÿð0Ä_ ½;ÃϱîÉì^ÇÛÇ#Ëë¼ôº!±Ä˜íUîÅÇ;0L1óÁµö«p% AÀºU̬ݵ¼á%霼€‡¯Á~`ÏG¯»À× ­²± =4ªnpð3¾¤³¯­ü¾¦îuÙuµÙ®|%2ÊIÿür¦#0·ÔJ``8È@S@5ê¢ ö×Þ^`8EÜ]ý.뜃Âç 7 ú ȉÞj œ½Dç zý¸iþœÑÙûÄë!ˆÞÀl§Ïw‹*DçI€nEX¯¬¼ &A¬Go¼QföõFç°¯;é¦÷îŽêJ°îúôF5¡ÌQ|îúöXªæ»TÁÏyñêï]ê² o óÎC=öõ›ÒÓPB@ D×½œä(>èCÂxŽ`±«Ÿ–JЀ»Û á¤±p+eE0`ëŽ`A Ú/NE€Ø†À9‚@¤à H½7”à‡%B‰`Àl*ƒó‘–‡8 2ñ%¸ —€:Ù1Á‰E¸àux%nP1ð!‘ðC)¾P81lÑɸF#ˆ€{´âé°ÈB„0>±û °b¡Š´±O‚3È–Ù()yRpbµ¨E.Z‘D8ÊH@% òŒx+%Ù˜Æcü »¸˜fõ¬b·d`Fê™8èXH"ÉÈ-±|1Ô6iI, 2““¬$+](A*jÐ QTÂo‰.ÛU슬Œã„Ž`¯SN¡–¶Äåyše¯ª’­¬‚´b¦Éož œ)åyâ@Ì®3 ÎtT̉°&Ø+žLÀf"Ø-|žçÔ>‡Ðv¦Ðžì\‚ Q1)Ž@Žh#aP72”ˆ™¨$‚ !ù " , =( …7IAXG]KgNgYvYxR"k\%w]'}hŽth%ˆg+ˆs%—r.—m3šx3˜x¨}9®€&©€+¨‡7§‰%¶†(¹–.¹œD¹&ǘ;Í•&ײ)×»4ïÌ6ò§KÍ þ@‘pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g «¬ E ±± ¨­¶°ººE Á´”·®C¬²§Ç¶Œ»ÓDÃÕƷ¯Ê±H½ºM×ÁGÚ¬D¶BËÁ½î½DÓôTÏÛßîG»ôõC×CÌ l&âž:'òtU³6ɹ#·Ø)€'Ü.6±&ëÍÈ» K(8p0N?!æ2"ÛˆNIJX>R¼ÐO‚M '¡¨2¸*Ÿþ>#n↠å@‚<[:¡Iïf’ ¤TÚ˘CdbÜÙ“[«ŽEú5MBo¤×@€`@„€Êt W-3 ¶Ÿ¡BíêäjIÝ…Eò9[T…$íêﯧ„…•s»Óȳ¹€ÅÚdc®UUρ#±Ùïldj?´í¼²`\ŽÁðÞu|3'ÖŒ]ë6 ¶S#²‡˜FKLÈ *N E´‘áäŠ$˜›eÄYD„ºq«.è촁ƒs \-ÔjA 9²õ÷å- üúM[Âx(ís÷ì®x€|í¡Ù’p¦‚ ŽkÛTÇDpE@WÜ ²Ç]kŠ1¨ þ€·Yb ÓÁ‰l°*n0 ç™—žzBdОu¾7ĉBl€â‰-ºx~|UåU‰  h*Hœ|e"#"?vpÄiŠe6^ˆ„+qâŠm8 #VÇá ‘å–ÄV„œ|Аè•m"сœn|@›U¶ÆÎž—Špb¥G¨ED”€±Úê2FÌIç? >Éxå Œ± ¡¤„%‘žjŸ‘ꄯ<Ìaà9ijÐ2˜D¦È&›†Z`‚å]wþ¼Â:ç6àB¤7eFJ|õÒ§Õ,¨äàFÇ®cS·Ê¶+B°,‘Þ˜ºNûãØ>PADÌHD¹æž«ÄÀnÌ¥}­#Ë’ë QÀÉSÌÂÇ2ÌXÀ{æk²lQÁ2«ÊðÀ¯w|2Í h‹ÄÂG€,m¾¶ë3ÐÙ6-´ÅE¬L°ÆIij*K½ÀÇqï`DwVÍQXœÚÔpeœ±¬Ñ q˜§Tœ½µƒ°Œìu Â<¶aØ*At¯lmEØ ü ôÛN[P1ÔÛ¦­±$ÜÆ@`ùåDpy¶yXvCAyåB`ŽD¶ 0QwG#¯ æš[^Äþ $ÀÓÝǦ{„L™[±úKÄgÌ;ï£S~¹ìGX.ôgoT.»åˆ°ùŸûù¡?1zö¦Ÿž:ÅgÁ|ìL¹ „®£œŠ‚à0œ]PÁ^p F<"•ç?!,ñ‡N4—…PÄ Á„ö¨Û:Tè@hÀ‹%táÿ:ø-žI<`þ‹p I….)^ 40D#p@ƒj4–؀:²‰1Øâr˜¼F2oW¼#Z†;$Q q” ‘ ÂK¦ñNl#29 !’F@¥Bh·ᏀL!—XFóLH‘Kh¤.«hE&JòG¨¥<™WN!€ÑÙÚˆY„@†>Œž19J" 2,/ &.GXB%ÌRÈ9B6¹W]’î×ÔW¥’IÎ$ ñ‹ÓŒE8YÆ ¼³™ñA5“à®Q.aŸB€&Ø©³ JÁ—! ¦t)K%tœ-¦JF bòNMxLôþ)ÐR¸Ð™‘ èÝ6‘O!THÌ„HÛ ‰ !ù ) , =( …AXKgNgYvYxR"k\%wh…hŽh%ˆg+ˆs%—r.—x3˜x¨}9®€&©€+¨Œ,©‡7§‰%¶†(¹–.¹5·&Çš)ǘ;Í•&×£*Ȳ)ׯ7×»4ï°3øÌ6ò‘HÖ§KÍ»Hó¯T÷¨Yÿ»qÿÇhÿ þÀ”pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g ª« E$±²¨ª­ · °²½$E$ÂÕ««D· Í ¿¦Ç¶¸ÌŒ¾³CÃÅÆ E ééH½MÛÂGâªD­ çBêêϾD²ÒaÀà€Š1r­ðÓ¤ ÔožzU!L˜C'¾yW½UGtäÇïÙllê0×àÂuGþ)AÀs[þ·xì ÁxO%ƒûX2ó—  P£n›R/¡ÑšHše+êDm?# —‘Ç£6¡8íJ¡ŸâDiäªM¥Ö„ôj“¬¹£5oQ7°- <‡ *´lãÓŒ2r/a!l)dÈ A™ÈE¢ôÔ͆…ð ;Ö˜c ¡%ß‚’Ùˆâ¸b½—pe~C"BíëÚHïeF2§æŠ8qb t_`urŠeü wÅu3êæPv§h•"ß`íÍxçLĹÜÖ3á  ~Öº“®›¸ÏMDfJÙ °„ÛµáWõ%§œ‚à©–‚X ÓØ)@®Ñ›Eþ´wëuÅSxb8y\mÖzœ¥§ZbºE—ÂLªÌw!y(>¡™wú=Ç|ÅÝs¢d €CÁW)HÜcC$€L Ä7„r.á\{)@ð` @ äXÈ$PD” `šaG:§æˆOˆ72EÐamn]ù"ŒcÊxÑŒ° &dR8`g«iÙŸLR!¦P …d’ä¡“¦ðÎTƒ¦ià|À _ ¥ Qi#¦Šg›Æ ›noMµ ›V ã£)p ç£ÎW…š=Âeªk§†j„ ´®1ß²sÉxéW«jšl|0¯B0Û, \jÛ´›6±¬¶C ÛíWþï|ëÙ‹¸ñzĸV {ì;Ýñn¼òVˆm³I¼³.Ðã¤PN¥ ²µ¼„µCã+¹ÍByî£Ñ¾HŸ›ëê 7ìYÆFTk¨SaoaY$Dµœìï¿Ã29RÈkt Çïfñ ÇÒ:ÀÐSp¹3ÇI¨â¥DZÄ ü9Ïýögñ½­uÔ*3)O‘˜Ö[_hv ,àî×Et Ÿé¶BH€ Õ[ü±64M@ÔSÌM7dÐl5-ÄÙU܍´©zߌ3Ô€3ž„ „ ¶ÛPô½5×g› êÚ˜kN„Ý…0Îj4€Ìë°“#{þÕ3S2çKÜ'ợlø¼Ú2K{° {Û¶?žm𸧠ËI¼nEò='êüóºè^üæÃ_Û=°óž‚ì#Oý¿Í'¡½áo..ÏYìnüñCœO±Áa¿¢Kô½o,üÄËbö²çºíï{ËC Ú— "”Ï{ËK ÍÒw„õ±Oz dÕ¨à:$ ƒô—«v»] A#ð «€¿šéz)Rx׿ˆ¥‚d``èw-îyÏf×K!ð€þ­Ð|ìPľ„=Ì`ý(f” 'Pa ¥ÐBJa%Ðâf§„%Š¡}FàáÝ×6>ÉäŠG"éŽè=ø!oа^FP¼Ø©Q„ÀCÙÁ`(Ž\ÄÝ® ©Â$<n@dÄ E#ììUÒI! ‚#lù‹`k¦ÐÇ'Rró’ZýNBÈMF Í[¤+‹ðɈ-áwj¨¥þ8¾rá ,VÂh„"|½œ=×G_¦Ñ™EØ 0i*%̲˜Æda0mV‚k¾)›;„&6 p>ÓjK “¦Ç# âDÂ:ûc?:R Ó¬fÞéI-Ì“•Ã<ä=™Ï7˜3œ¨˜c2ŒW ,ˆ”8(T™P‰F¡Jhç"‚ ; 403WebShell
403Webshell
Server IP : 143.110.188.43  /  Your IP : 216.73.217.31
Web Server : Apache/2.4.57 (Ubuntu)
System : Linux Client-Droplet 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.2.10-2ubuntu2.2
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
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/StorageVolumes-CEQBHu2I.js
import{c as re,w as ie,ap as ce,j as e,d as u,D as ee,R as te,L as me,q as z,W as Q,s as ue,r as E,B as b,t as A,J as de,aP as pe,x as he,cr as ge,H as fe,o as je}from"./index-C5moRkRM.js";import{u as ye}from"./projects-BYXh-TO0.js";import{C as xe,a as be,V as Se,P as Ne,Q as Ce,S as we,b as Le}from"./StorageVolumeExplanationTooltip-9Br7LlaY.js";import{V as Te,S as Ve}from"./VolumeAddSnapshotBtn-DnANxA2g.js";import{h as B,g as ve,f as J,j as v,i as Z,k as Pe,l as Ee,r as Be}from"./storageVolume-D_kSLHXQ.js";import{a as De}from"./useInstances-B6o12EBG.js";import{a as Ie}from"./useImages-B2pew3-d.js";import{d as ke,e as _e}from"./images-CQST2R8G.js";import{D as Oe,u as Me}from"./DeleteStorageVolumeBtn-DvSZifUZ.js";import{i as Re}from"./snapshots-DbU7kFr9.js";import{R as Ae}from"./ResourceLabel-5vQU6ndJ.js";import{u as $e}from"./useSortTableData-DOqSqaiW.js";import{P}from"./PageHeader-BRr9_J16.js";import{b as Fe}from"./useVolumes-B6TAUFFs.js";import{R as Ke}from"./ResourceLink-CSSa-WON.js";import{S as Ue}from"./SelectableMainTable-wRMsxkIr.js";import{S as qe}from"./SelectedTableNotification-DR6-T9f2.js";import{B as Ye}from"./BulkDeleteButton--AqObKRB.js";import{g as ze}from"./promises-DrIa_NWl.js";import{d as Qe}from"./storage-volumes-tZVWU3jH.js";import{u as He}from"./useBulkDetails-lYUt51kB.js";import{C as We}from"./ClusterMemberRichChip-D4zJ_pdp.js";import{P as Je}from"./ProjectRichChip-CJO1yxV_.js";import{S as Ze}from"./StoragePoolRichChip-DkAfThM9.js";import"./searchAndFilter-CpMRkW43.js";import"./ExplanationTooltip-AfbgOckm.js";import"./SnapshotForm-CmTRXZb9.js";import"./VolumeLinkChip-DLwRi_z9.js";import"./index-BCn5QfZZ.js";import"./imageRegistry-DUJSvWII.js";import"./image-registries-CGiwo-wc.js";import"./RichTooltipTable-D64CU4ks.js";import"./useClusterMembers-DYP3yC8I.js";import"./cluster-members-B9SkLa7e.js";import"./ItemName-Dt16GXN3.js";import"./ClusterMemberStatus-CyZ_jfn4.js";import"./ClusterMemberMemoryUsage-CgQORnHF.js";import"./Meter-BW_a3lG4.js";import"./resourceDetails-XsDjMA3V.js";import"./devices-DziiOcJy.js";import"./useStoragePools-Crzn42fh.js";import"./StoragePoolSize-BVlyAxMa.js";const G=({projectName:s,className:r,defaultPool:m})=>{const o=re(),d=ie(),{canCreateStorageVolumes:p}=ye(),{data:h}=ce(s),i=()=>{o(`${te}/ui/project/${encodeURIComponent(s)}/storage/volumes/create${m?`?pool=${encodeURIComponent(m)}`:""}`)};return e.jsxs(u.Button,{appearance:"positive",hasIcon:!d,onClick:i,className:r,disabled:!p(h),title:p(h)?"Create volume":"You do not have permission to create volumes in this project",children:[!d&&e.jsx(ee,{icon:"plus"}),e.jsx("span",{children:"Create volume"})]})},D="Name",I="Pool",k="Cluster Member",_="Type",w="Content Type",O="Size",L="Used By",S="Snapshots",$="Actions",n={[D]:"10rem",[I]:"6rem",[k]:"10rem",[_]:"6rem",[w]:"6rem",[O]:"5rem",[L]:"5rem",[S]:"6rem",[$]:"8rem"},X=({volume:s,overrideName:r,className:m})=>{const o=!B(s),d=s.type==="container"||s.type==="virtual-machine",{data:p=[]}=De(s.project),h=d&&p.find(c=>c.name===s.name),i=s.type==="image",{data:j=[]}=Ie(s.project),y=i&&j.find(c=>c.fingerprint===s.name),N=s.type==="custom",a=h||y||N,l=r||(y?`${ke(y)} ${_e(y)}`:s.name);return r&&!a?null:e.jsx("div",{className:z("u-flex",m),children:e.jsx("div",{className:z("u-truncate","volume-name-link"),title:l,children:a?e.jsxs(me,{to:ve(s),className:o?"has-icon":void 0,children:[l,o&&e.jsx(ee,{icon:"external-link"})]}):l})})},Ge=({volume:s,className:r})=>{const m=u.useToastNotification(),{project:o}=Q();return e.jsx(u.List,{inline:!0,className:z(r,"actions-list"),items:[e.jsx(Te,{volume:s,isCTA:!0,isDisabled:Re(o)},"add-snapshot"),e.jsx(Oe,{volume:s,project:o?.name??"",onFinish:()=>{m.success(e.jsxs(e.Fragment,{children:["Storage volume"," ",e.jsx(Ae,{bold:!0,type:"volume",value:s.name})," ","deleted."]}))}},"delete")]})},Xe=({volumes:s,onStart:r,onFinish:m})=>{const o=u.useToastNotification(),d=ue(),[p,h]=E.useState(!1),{canDeleteVolume:i}=Me(),j=He(),{project:y}=Q(),N=y?.name||"",a=s.filter(g=>i(g)),T=s.length,l=a.length,c=`Delete ${s.length} ${b("volume",s.length)}`,M=()=>{h(!0),r();const g=`${a.length} ${b("volume",a.length)} successfully deleted`;Qe(a,N).then(x=>{const{fulfilledCount:C,rejectedCount:V}=ze(x);C===l?o.success(g,j(x)):V===l?o.failure("Volume bulk deletion failed",void 0,e.jsxs(e.Fragment,{children:[e.jsx("b",{children:l})," ",b("volume",l)," could not be deleted."]}),j(x)):o.failure("Volume bulk deletion partially failed",void 0,e.jsxs(e.Fragment,{children:[e.jsx("b",{children:C})," ",b("volume",C)," ","deleted.",e.jsx("br",{}),e.jsx("b",{children:V})," ",b("volume",V)," could not be deleted."]}),j(x)),d.invalidateQueries({queryKey:[A.volumes,N]}),d.invalidateQueries({queryKey:[A.isoVolumes]}),d.invalidateQueries({queryKey:[A.projects,y]}),d.invalidateQueries({predicate:K=>K.queryKey[0]===A.volumes}),h(!1),m()}).catch(x=>{h(!1),o.failure("Volume bulk deletion failed",x)})},F=()=>{if(l===T)return;const g=T-l;return[`${l} ${b("volume",l)} will be deleted.`,`${g} ${b("volume",g)} that you do not have permission to delete will be ignored.`]};return e.jsx(Ye,{entities:s,deletableEntities:a,entityType:"volume",onDelete:M,disabledReason:l===0?`You do not have permission to delete the selected ${b("volume",s.length)}`:void 0,confirmationButtonProps:{disabled:p||l===0,loading:p},buttonLabel:c,bulkDeleteBreakdown:F(),className:"u-no-margin--bottom"})},Kt=()=>{const s=u.useNotify(),{project:r}=de(),[m]=pe(),[o,d]=E.useState(J()),p=he(),h=()=>{d(J())};u.useListener(window,h,"resize",!0);const[i,j]=E.useState([]),[y,N]=E.useState([]),a={queries:m.getAll(Ce).map(t=>t.toLowerCase()),pools:m.getAll(Ne),volumeTypes:m.getAll(Se).map(t=>t==="VM"?"virtual-machine":t.toLowerCase()),contentTypes:m.getAll(be).map(t=>t.toLowerCase()),clusterMembers:m.getAll(xe).map(t=>t.toLowerCase())};if(!r)return e.jsx(e.Fragment,{children:"Missing project"});const{project:T,isLoading:l}=Q(),{data:c=[],error:M,isLoading:F}=Fe(r),g=ge(T);M&&s.failure("Loading storage volumes failed",M),E.useEffect(()=>{const t=new Set(c.map(v)),f=i.filter(R=>t.has(R));f.length!==i.length&&j(f)},[c]);const x=[{content:D,sortKey:"name",style:{width:n[D]}},{content:I,sortKey:"pool",style:{width:n[I]},className:"pool"},...p?[{content:k,sortKey:"clusterMember",style:{width:n[k]}}]:[],{content:_,sortKey:o?"contentType":"type",style:{width:n[o?w:_]}},...o?[]:[{content:w,sortKey:"contentType",style:{width:n[w]}}],{content:O,className:"u-align--right size",style:{width:n[O]}},{content:o?e.jsxs(e.Fragment,{children:[L,e.jsx("br",{}),e.jsx("div",{className:"header-second-row",children:S})]}):L,sortKey:o?"snapshots":"usedBy",className:"u-align--right used_by",style:{width:n[o?S:L]}},...o?[]:[{className:"u-align--right",content:S,sortKey:"snapshots",style:{width:n[S]}}],{content:"",className:"actions u-align--right","aria-label":"Actions",style:{width:n[$]}}],C=c.filter(t=>!(Z(t)||!a.queries.every(f=>t.name.toLowerCase().includes(f.toLowerCase()))||a.pools.length>0&&!a.pools.includes(t.pool)||a.volumeTypes.length>0&&!a.volumeTypes.includes(t.type)||a.contentTypes.length>0&&!a.contentTypes.includes(t.content_type)||a.clusterMembers.length>0&&!a.clusterMembers.includes(t.location.length===0?"cluster-wide":t.location))),V=Pe(c),K=C.map(t=>{const f=v(t),R=Ee(t),q=Be(t),Y=V[f]?.length??0,le=B(t);return{key:f,name:le?f:void 0,className:"u-row",columns:[{content:e.jsx(X,{volume:t}),role:"rowheader",style:{width:n[D]},"aria-label":D},{content:e.jsx(Ze,{poolName:t.pool,projectName:t.project,location:t.location}),role:"cell",className:"pool",style:{width:n[I]},"aria-label":I},...p?[{content:t.location?e.jsx(We,{clusterMember:t.location}):e.jsx(Ke,{type:"cluster-group",value:"Cluster wide",to:`${te}/ui/cluster/members`}),role:"cell",style:{width:n[k]},"aria-label":k}]:[],{content:e.jsxs(e.Fragment,{children:[R,o&&e.jsx("div",{className:"u-text--muted",children:q})]}),role:"cell","aria-label":_,style:{width:n[o?w:_]}},...o?[]:[{content:q,role:"cell","aria-label":w,style:{width:n[w]}}],{content:e.jsx(Ve,{volume:t}),role:"cell","aria-label":O,className:"u-align--right size",style:{width:n[O]}},{className:"u-align--right used_by",content:e.jsxs(e.Fragment,{children:[t.used_by?.length??0,o&&e.jsx("div",{className:"u-text--muted",children:Y})]}),role:"cell","aria-label":L,style:{width:n[o?S:L]}},...o?[]:[{className:"u-align--right",content:Y,role:"cell","aria-label":S,style:{width:n[S]}}],{className:"actions u-align--right",content:B(t)?e.jsx(Ge,{volume:t,className:"storage-volume-actions u-no-margin--bottom"}):e.jsx(X,{volume:t,overrideName:`go to ${t.type==="image"?"images list":t.content_type==="iso"?"custom ISOs":"instance"}`,className:"storage-volume-actions u-align--right"}),role:"cell","aria-label":$,style:{width:n[$]}}],sortData:{name:t.name,pool:t.pool,clusterMember:t.location,contentType:q,type:R,usedBy:t.used_by?.length??0,snapshots:Y}}}),{rows:H,updateSort:se}=$e({rows:K});if(F||l)return e.jsx(u.Spinner,{className:"u-loader",text:"Loading...",isMainComponent:!0});const oe=a.pools.length===1?a.pools[0]:"",U=c.length!==0,W=!g&&e.jsxs(u.Notification,{severity:"information",children:["Showing volumes from the"," ",e.jsx(Je,{projectName:"default",urlSuffix:"/storage/volumes"}),"project.",e.jsx("br",{}),e.jsx("span",{className:"u-text--muted",children:"For project-specific volumes, enable storage volume isolation in the project configuration."})]}),ae=U?e.jsxs("div",{className:"storage-volumes",children:[W,e.jsx(u.ScrollableTable,{dependencies:[c],tableId:"volume-table",belowIds:["status-bar"],children:e.jsx(u.TablePagination,{data:H,id:"pagination",itemName:"volume",className:"u-no-margin--top","aria-label":"Table pagination control",description:i.length>0&&e.jsx(qe,{totalCount:c.filter(t=>!Z(t)&&B(t)).length,itemName:"volume",parentName:"project",selectedNames:i,setSelectedNames:j,filteredNames:C.filter(B).map(v)}),children:e.jsx(Ue,{className:"storage-volume-table",id:"volume-table",headers:x,rows:H,sortable:!0,emptyStateMsg:"No volumes found matching this search",itemName:"volume",parentName:"project",selectedNames:i,setSelectedNames:j,disabledNames:y,filteredNames:C.map(v),onUpdateSort:se,defaultSortDirection:"descending"})})})]}):e.jsxs(e.Fragment,{children:[W,e.jsxs(u.EmptyState,{className:"empty-state",image:e.jsx(u.Icon,{name:"storage-volume",className:"empty-state-icon"}),title:"No volumes found in this project",children:[e.jsx("p",{children:"Storage volumes will appear here"}),e.jsx("p",{children:e.jsx(fe,{docPath:"/explanation/storage/#storage-volumes",hasExternalIcon:!0,children:"Learn more about storage volumes"})}),g&&e.jsx(G,{projectName:r,className:"empty-state-button"})]})]}),ne=c.filter(t=>{const f=v(t);return i.includes(f)});return e.jsxs(u.CustomLayout,{mainClassName:"storage-volume-list",header:e.jsxs(P,{children:[e.jsxs(P.Left,{children:[e.jsx(P.Title,{children:e.jsx(we,{children:"Volumes"})}),!i.length&&U&&e.jsx(P.Search,{children:e.jsx(Le,{volumes:c},r)}),!!i.length&&e.jsx(Xe,{volumes:ne,onStart:()=>{N(i)},onFinish:()=>{N([])}})]}),U&&g&&e.jsx(P.BaseActions,{children:e.jsx(G,{projectName:r,defaultPool:oe,className:"u-float-right u-no-margin--bottom"})})]}),children:[e.jsx(je,{}),e.jsx(u.Row,{children:ae})]})};export{Kt as default};

Youez - 2016 - github.com/yon3zu
LinuXploit