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//StorageBuckets-C6wr3KMb.js
import{r as y,aP as U,j as e,d as r,w as G,W as O,D as X,s as H,B as x,t as K,K as ee,e as te,f as z,h as ae,o as Y,L as se,J as oe,H as ne}from"./index-C5moRkRM.js";import{s as re,p as ie}from"./searchAndFilter-CpMRkW43.js";import{u as le}from"./useSortTableData-DOqSqaiW.js";import{P}from"./PageHeader-BRr9_J16.js";import{u as ce,d as ue,c as me,S as J,a as de,b as pe,e as he,f as ge,E as be}from"./EditStorageBucketPanel-DR0Hqpwh.js";import{u as fe}from"./projects-BYXh-TO0.js";import{u as I,a as Se,p as q}from"./useEscCallback-CiLQokzn.js";import{S as je}from"./SelectableMainTable-wRMsxkIr.js";import{S as ke}from"./SelectedTableNotification-DR6-T9f2.js";import{B as xe}from"./BulkDeleteButton--AqObKRB.js";import{g as Ne}from"./promises-DrIa_NWl.js";import{u as ye}from"./useBulkDetails-lYUt51kB.js";import{R as Ce}from"./ResourceLabel-5vQU6ndJ.js";import{R as Be}from"./ResourceLink-CSSa-WON.js";import{t as we,g as V}from"./storageBucket-Dt08U0oy.js";import{I as Pe}from"./ItemName-Dt16GXN3.js";import{S as Le}from"./StoragePoolRichChip-DkAfThM9.js";import"./AutoExpandingTextArea-BtMcH1Et.js";import"./StoragePoolSelector-B2DFQOGf.js";import"./useStoragePools-Crzn42fh.js";import"./useClusterMembers-DYP3yC8I.js";import"./cluster-members-B9SkLa7e.js";import"./StoragePoolSize-BVlyAxMa.js";import"./Meter-BW_a3lG4.js";import"./DiskSizeSelector-T95OK-_Q.js";import"./StoragePoolExplanationTooltip-CY366rOX.js";import"./ExplanationTooltip-AfbgOckm.js";import"./RichTooltipTable-D64CU4ks.js";const W="query",_="pool",M=[W,_],De=({buckets:s})=>{const[o,l]=U(),h=[{id:1,heading:"Pool",chips:[...new Set(s.map(c=>c.pool))].map(c=>({lead:_,value:c}))}],S=c=>{const m=ie(c,o,M);m.toString()!==o.toString()&&l(m)};return e.jsxs("div",{className:"search-wrapper margin-right--large",children:[e.jsx("h2",{className:"u-off-screen",children:"Search and filter"}),e.jsx(r.SearchAndFilter,{existingSearchData:re(o,M),filterPanelData:h,returnSearchData:S,onExpandChange:()=>{window.dispatchEvent(new CustomEvent("resize",{detail:"search-and-filter"}))},onPanelToggle:()=>{window.dispatchEvent(new CustomEvent("sfp-toggle"))}})]})},Ee=y.memo(De),L="Name",D="Pool",E="Size",v="Description",F="S3 URL",T="Keys",$="Actions",d={[L]:"8rem",[D]:"8rem",[E]:"5rem",[v]:"10rem",[F]:"15rem",[T]:"3rem",[$]:"8.5rem"},Q=({className:s})=>{const o=G(),{canCreateStorageBuckets:l}=fe(),{project:n}=O(),h=I();return e.jsxs(r.Button,{appearance:"positive",hasIcon:!o,onClick:()=>{h.openCreateStorageBucket(n?.name||"")},className:s,disabled:!l(n),title:l(n)?"Create bucket":"You do not have permission to create buckets in this project",children:[!o&&e.jsx(X,{icon:"plus"}),e.jsx("span",{children:"Create bucket"})]})},ve=({buckets:s,onStart:o,onFinish:l})=>{const n=r.useToastNotification(),h=H(),[S,c]=y.useState(!1),{canDeleteBucket:m}=ce(),g=ye(),{project:p}=O(),j=p?.name||"",u=s.filter(k=>m(k)),a=s.length,i=u.length,b=`Delete ${s.length} ${x("bucket",s.length)}`,C=()=>{c(!0),o();const k=`${u.length} ${x("bucket",u.length)} successfully deleted`;ue(u,j).then(f=>{const{fulfilledCount:B,rejectedCount:w}=Ne(f);B===i?n.success(k,g(f)):w===i?n.failure("Storage bucket bulk deletion failed",void 0,e.jsxs(e.Fragment,{children:[e.jsx("b",{children:i})," ",x("bucket",i)," could not be deleted."]}),g(f)):n.failure("Storage bucket bulk deletion partially failed",void 0,e.jsxs(e.Fragment,{children:[e.jsx("b",{children:B})," ",x("bucket",B)," ","deleted.",e.jsx("br",{}),e.jsx("b",{children:w})," ",x("bucket",w)," could not be deleted."]}),g(f)),h.invalidateQueries({queryKey:[K.storage,j,K.buckets]}),c(!1),l()}).catch(f=>{c(!1),n.failure("Storage bucket bulk deletion failed",f)})},R=()=>{if(i===a)return;const k=a-i;return[`${i} ${x("bucket",i)} will be deleted.`,`${k} ${x("bucket",k)} that you do not have permission to delete will be ignored.`]};return e.jsx(xe,{entities:s,deletableEntities:u,entityType:"bucket",onDelete:C,disabledReason:i===0?`You do not have permission to delete the selected ${x("bucket",s.length)}`:void 0,confirmationButtonProps:{disabled:S||i===0,loading:S},buttonLabel:b,bulkDeleteBreakdown:R(),className:"u-no-margin--bottom"})},Fe=()=>{const s=I(),o=r.useNotify(),l=r.useToastNotification(),n=y.useState(null),h=H(),S=ee(),c=()=>{s.clear(),o.clear()};Se(c);const m=te().shape({name:z().min(3,"Name must be at least 3 characters").max(63,"Name must be at most 63 characters").matches(/^[a-z0-9][a-z0-9.-]*$/,"Name must contain only lowercase letters, numbers, periods, or hyphens and must start with a letter or number").test(...we(s.project,n)).required("Storage bucket name is required"),pool:z().required("Pool must have a Ceph Object driver")}),g=()=>{h.invalidateQueries({queryKey:[K.storage,s.project,K.buckets]})},p=(a,i)=>{g(),l.success(e.jsxs(e.Fragment,{children:["Storage bucket"," ",e.jsx(Be,{type:"bucket",value:a,to:V(a,i,s.project)})," ","created."]})),c()},j=(a,i)=>{g(),u.setSubmitting(!1),o.failure(`Creation of storage bucket ${a} failed`,i)},u=ae({initialValues:{name:"",pool:""},validationSchema:m,onSubmit:a=>{const i={name:a.name,config:{size:a.size},description:a.description};me(JSON.stringify(i),s.project,a.pool,a.target).then(b=>{l.info(e.jsxs(e.Fragment,{children:["Creation of storage bucket"," ",e.jsx(Ce,{bold:!0,type:"bucket",value:a.name})," has started."]})),S.set(b.metadata.id,()=>{p(a.name,a.pool)},C=>{j(a.name,new Error(C))})}).catch(b=>{j(a.name,b)})}});return e.jsx(e.Fragment,{children:e.jsxs(r.SidePanel,{children:[e.jsx(r.SidePanel.Header,{children:e.jsx(r.SidePanel.HeaderTitle,{children:e.jsx(J,{children:"Create storage bucket"})})}),e.jsx(Y,{className:"u-no-padding"}),e.jsx(r.SidePanel.Content,{className:"u-no-padding",children:e.jsx(r.ScrollableContainer,{dependencies:[o.notification],belowIds:["panel-footer"],children:e.jsx(de,{formik:u})})}),e.jsxs(r.SidePanel.Footer,{className:"u-align--right",children:[e.jsx(r.Button,{appearance:"base",onClick:c,className:"u-no-margin--bottom",children:"Cancel"}),e.jsx(r.ActionButton,{appearance:"positive",loading:u.isSubmitting,onClick:()=>{u.submitForm()},className:"u-no-margin--bottom",disabled:!u.isValid||u.isSubmitting||!u.values.name,children:"Create bucket"})]})]})})},Te=({bucket:s,project:o})=>e.jsx(se,{to:V(s.name,s.pool,o),onClick:l=>{l.stopPropagation()},children:e.jsx(Pe,{item:s})}),Re=({bucket:s})=>{const{project:o}=O(),{data:l=[]}=pe(s,o?.name??"");return e.jsx(e.Fragment,{children:l?l.length:"-"})},ct=()=>{const s=r.useNotify(),{project:o}=oe(),[l]=U(),[n,h]=y.useState([]),[S,c]=y.useState([]),m=I(),g={queries:l.getAll(W),pools:l.getAll(_)};if(!o)return e.jsx(e.Fragment,{children:"Missing project"});const{data:p=[],error:j,isLoading:u}=he(o),a=t=>`${t.name}-${t.pool}-${t.location||""}`;y.useEffect(()=>{const t=new Set(p.map(a)),N=n.filter(Z=>t.has(Z));N.length!==n.length&&h(N)},[p]),j&&s.failure("Loading storage buckets failed",j);const i=[{content:L,sortKey:"name",className:"name",style:{width:d[L]}},{content:D,sortKey:"pool",className:"pool",style:{width:d[D]}},{content:E,sortKey:"size",className:"size",style:{width:d[E]}},{content:v,className:"description",style:{width:d[v]}},{content:F,sortKey:"s3_url",style:{width:d[F]}},{content:T,style:{width:d[T]},className:"keys"},{className:"actions u-align--right","aria-label":"Actions",style:{width:d[$]}}],b=p.filter(t=>!(!g.queries.every(N=>t.name.toLowerCase().includes(N.toLowerCase()))||g.pools.length>0&&!g.pools.includes(t.pool))),C=b.map(t=>({key:a(t),name:a(t),className:"u-row",columns:[{content:e.jsx(Te,{bucket:t,project:o}),role:"rowheader","aria-label":L,style:{width:d[L]}},{content:e.jsx(Le,{poolName:t.pool,projectName:o,location:t.location}),role:"cell","aria-label":D,style:{width:d[D]}},{content:t.config?.size??"-",role:"cell","aria-label":E,style:{width:d[E]}},{content:t.description||"-",role:"cell","aria-label":v,style:{width:d[v]},className:"description u-truncate"},{content:e.jsx("div",{className:"u-truncate",title:t.s3_url,children:t.s3_url}),role:"cell","aria-label":F,style:{width:d[F]}},{content:e.jsx(Re,{bucket:t}),role:"cell","aria-label":T,style:{width:d[T]},className:"keys"},{className:"actions u-align--right",content:e.jsx(ge,{bucket:t,className:"storage-bucket-actions u-no-margin--bottom"}),role:"cell","aria-label":$,style:{width:d[$]}}],sortData:{name:t.name,pool:t.pool,size:t.config?.size??"",s3_url:t.s3_url}})),{rows:R,updateSort:k}=le({rows:C,defaultSortDirection:"descending"});if(u)return e.jsx(r.Spinner,{className:"u-loader",text:"Loading...",isMainComponent:!0});const f=p.length!==0,B=f?e.jsx("div",{className:"storage-buckets",children:e.jsx(r.ScrollableTable,{dependencies:[b],tableId:"bucket-table",belowIds:["status-bar"],children:e.jsx(r.TablePagination,{data:R,id:"pagination",itemName:"bucket",className:"u-no-margin--top","aria-label":"Table pagination control",description:n.length>0&&e.jsx(ke,{totalCount:p.length??0,itemName:"bucket",parentName:"project",selectedNames:n,setSelectedNames:h,filteredNames:b.map(t=>a(t))}),children:e.jsx(je,{id:"bucket-table",className:"storage-buckets-table",headers:i,rows:R,sortable:!0,emptyStateMsg:"No storage bucket found matching this search",itemName:"bucket",parentName:"project",selectedNames:n,setSelectedNames:h,disabledNames:S,filteredNames:b.map(a),onUpdateSort:k,defaultSortDirection:"descending",responsive:!0})})})}):e.jsxs(r.EmptyState,{className:"empty-state",image:e.jsx(r.Icon,{name:"storage-bucket",className:"empty-state-icon"}),title:"No buckets found in this project",children:[e.jsx("p",{children:"Storage buckets will appear here"}),e.jsx("p",{children:e.jsx(ne,{docPath:"/explanation/storage/#storage-buckets",hasExternalIcon:!0,children:"Learn more about storage buckets"})}),e.jsx(Q,{className:"empty-state-button"})]}),w=p.filter(t=>{const N=a(t);return n.includes(N)}),A=p.find(t=>t.name==m.bucket&&t.pool==m.pool&&t.location==m.target);return e.jsxs(e.Fragment,{children:[e.jsxs(r.CustomLayout,{mainClassName:"storage-bucket-list",header:e.jsxs(P,{children:[e.jsxs(P.Left,{children:[e.jsx(P.Title,{children:e.jsx(J,{children:"Buckets"})}),!n.length&&!m.panel&&f&&e.jsx(P.Search,{children:e.jsx(Ee,{buckets:p},o)}),!!n.length&&e.jsx(ve,{buckets:w,onStart:()=>{c(n)},onFinish:()=>{c([])}})]}),f&&e.jsx(P.BaseActions,{children:e.jsx(Q,{className:"u-float-right u-no-margin--bottom"})})]}),children:[!m.panel&&e.jsx(Y,{}),e.jsx(r.Row,{children:B})]}),m.panel===q.createStorageBucket&&e.jsx(Fe,{}),m.panel===q.editStorageBucket&&A&&e.jsx(be,{bucket:A})]})};export{ct as default};

Youez - 2016 - github.com/yon3zu
LinuXploit