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/ImageRegistryDetail-BmTSSEat.js
import{c as E,d as l,r as f,e as v,f as P,a8 as L,h as D,j as e,L as F,R as w,W as z,ar as U,S as M,aP as C,X as k,b as q,J as _,aQ as $,o as B}from"./index-C5moRkRM.js";import{T as K}from"./TabLinks-Bgi9Prma.js";import{b as Y,a as Q}from"./useImageRegistries-CUqZ1QFj.js";import{r as V}from"./image-registries-CGiwo-wc.js";import{R as H}from"./RenameHeader-B0XWLDzt.js";import{E as O,D as G,I as J,c as W}from"./DeleteImageRegistryBtn-2fQisAWs.js";import{a as X}from"./images-CsQzj70E.js";import{E as Z}from"./ExpandableList-Z2D161-q.js";import{C as ee}from"./CreateInstanceFromImageBtn-BF271NOM.js";import{e as te,d as ae,f as y,h as A,l as se,g as re,o as ne}from"./images-CQST2R8G.js";import{i as ie}from"./imageRegistry-DUJSvWII.js";import{u as oe}from"./useSortTableData-DOqSqaiW.js";import{C as le}from"./ClusterLinkRichChip-DuawR_xB.js";import{u as ce,p as de}from"./useEscCallback-CiLQokzn.js";import"./Breadcrumb-CpbG2SRs.js";import"./useClusterLinks-BDw2JUo9.js";import"./cluster-links-BdFv14ie.js";import"./ExplanationTooltip-AfbgOckm.js";import"./ResourceLink-CSSa-WON.js";import"./RichTooltipTable-D64CU4ks.js";import"./ResourceLabel-5vQU6ndJ.js";import"./ItemName-Dt16GXN3.js";import"./projects-BYXh-TO0.js";import"./useIdentities-C0Vj9TWR.js";const me=({imageRegistry:t})=>{const c=E(),u=l.useNotify(),o=l.useToastNotification(),{canEditImageRegistry:d}=X(),h=f.useState(null),m=v().shape({name:P().test("deduplicate","An image registry with this name already exists",async a=>t.name===a||L(a,"",h,"image-registries")).required("Image registry name is required")}),x=()=>{if(!d(t))return"You do not have permission to rename this image registry";if(!t)return"Invalid Image Registry: Cannot be renamed";if(t.builtin)return"Built-in image registries cannot be renamed"},p=a=>{const r=`${w}/ui/image-registry/${encodeURIComponent(a)}`;c(r),o.success(e.jsxs(e.Fragment,{children:["Image registry ",e.jsx("strong",{children:t.name})," renamed to"," ",e.jsx(J,{imageRegistryName:a})]}))},g=(a,r)=>{u.failure(`Renaming of image registry ${a} failed`,r)},s=D({initialValues:{name:t.name,isRenaming:!1},validationSchema:m,onSubmit:a=>{if(t.name===a.name){s.setFieldValue("isRenaming",!1),s.setSubmitting(!1);return}V(t.name,a.name).then(()=>{p(a.name),s.setFieldValue("isRenaming",!1)}).catch(r=>{g(a.name,r)}).finally(()=>{s.setSubmitting(!1)})}});return e.jsx(H,{name:t.name,parentItems:[e.jsx(F,{to:`${w}/ui/image-registries`,children:"Image registries"},1)],controls:[e.jsx(O,{imageRegistry:t},"edit"),e.jsx(G,{imageRegistry:t},"delete")],isLoaded:!!t.name,formik:s,renameDisabledReason:x()})},ue=({images:t,supportedArchitectures:c=[],imageRegistry:u})=>{const{projectName:o,project:d}=z(),h=s=>{if(!c.includes(s.architecture))return"Image is incompatible with your hardware architecture";if(!ie(u,d))return"Images from this registry are not allowed in this project"},m=[{content:"Name",sortKey:"name"},{content:"Alias",sortKey:"alias",className:"aliases"},{content:"Architecture",sortKey:"architecture",className:"architecture"},{content:"Type",sortKey:"type",className:"type"},{content:"Upload date",sortKey:"uploaded_at",className:"uploaded_at"},{content:"Size",sortKey:"size",className:"u-align--right size"},{"aria-label":"Actions",className:"actions"}],x=t.map(s=>{const a=te(s),r=ae(s),i=s.aliases&&Array.isArray(s.aliases)?s.aliases.filter(n=>n&&n.name).map(n=>e.jsx("div",{className:"u-truncate",title:n.name,children:n.name},n.name)):[];return{key:s.fingerprint,name:s.fingerprint,className:"u-row",columns:[{content:r,role:"rowheader","aria-label":"Name"},{content:i.length>0?e.jsx(Z,{items:i,displayCount:2}):null,role:"cell","aria-label":"Aliases",className:"aliases"},{content:y(s.architecture),role:"cell","aria-label":"Architecture",className:"architecture"},{content:A(s),role:"cell","aria-label":"Type",className:"type"},{content:U(s.uploaded_at),role:"cell","aria-label":"Upload date",className:"uploaded_at"},{content:M(s.size),role:"cell","aria-label":"Size",className:"u-align--right size"},{content:e.jsx(ee,{projectName:o,image:{...se(s),registryName:u.name},disabledReason:h(s)},"launch"),role:"cell","aria-label":"Actions",className:"u-align--right actions"}],sortData:{name:r.toLowerCase(),alias:a?.toLowerCase(),architecture:s.architecture,cached:s.cached,type:s.type,size:+s.size,uploaded_at:s.uploaded_at}}}),{rows:p,updateSort:g}=oe({rows:x});return t.length===0?"No images found":e.jsx(l.ScrollableTable,{dependencies:[t],tableId:"image-table",belowIds:["status-bar"],children:e.jsx(l.TablePagination,{data:p,id:"pagination",itemName:"image",className:"u-no-margin--top","aria-label":"Table pagination control",children:e.jsx(l.MainTable,{id:"image-table",headers:m,sortable:!0,className:"image-registry-image-table",emptyStateMsg:"No images found",onUpdateSort:g,rows:p})})})},b="query",j="arch",N="type",S=[b,j,N],he=({images:t,supportedArchitectures:c,isImagesLoading:u})=>{const[o,d]=C(),h=f.useRef(!1),m=f.useMemo(()=>[...new Set((t??[]).map(a=>a.architecture))],[t]),x=f.useMemo(()=>[...new Set((t??[]).map(r=>r.type).filter(r=>!!r))].map(r=>k.find(n=>n.value===r)?.label??r),[t]);f.useEffect(()=>{if(h.current||u||m.length===0)return;const a=new URLSearchParams(window.location.search);if(a.getAll(j).length===0&&a.getAll(b).length===0&&a.getAll(N).length===0){const r=c.filter(i=>m.includes(i));r.length>0&&(h.current=!0,d(i=>(r.forEach(n=>{i.append(j,y(n))}),i),{replace:!0}))}else h.current=!0},[m,c,u,d]);const p=f.useMemo(()=>{const a=[];for(const[r,i]of o.entries())if(S.includes(r)){const n=r==="query"?{quoteValue:!0,value:i}:{lead:r,value:i};a.push(n)}return a},[o]),g=[{id:1,heading:"Architecture",chips:m.map(a=>({lead:j,value:y(a),label:y(a)}))},{id:2,heading:"Type",chips:x.map(a=>({lead:N,value:a}))}],s=a=>{const r=new URLSearchParams(o.toString());S.forEach(i=>{r.delete(i)}),a.forEach(i=>{i.lead&&S.includes(i.lead)?r.append(i.lead,i.value):i.quoteValue&&r.append(b,i.value)}),r.toString()!==o.toString()&&d(r)};return e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"u-off-screen",children:"Search and filter"}),e.jsx(l.SearchAndFilter,{existingSearchData:p,filterPanelData:g,returnSearchData:s,onExpandChange:()=>{window.dispatchEvent(new CustomEvent("resize",{detail:"search-and-filter"}))},onPanelToggle:()=>{window.dispatchEvent(new CustomEvent("sfp-toggle"))}},o.toString())]})},pe=f.memo(he),ge=({imageRegistry:t})=>{const[c]=C(),u=l.useNotify(),{data:o,isLoading:d,error:h}=Y(t.name),{data:m,error:x}=q(),p=h||x;p&&u.failure("Loading images failed",p);const g=m?.environment?.architectures??[],s=f.useMemo(()=>re(g),[g]),a={queries:c.getAll(b).map(n=>n.toLowerCase()),arch:c.getAll(j),type:c.getAll(N)},r=a.arch.map(ne),i=(o??[]).filter(n=>{if(t.builtin&&(!n.aliases||n.aliases.length===0)||!(a.arch.length===0||r.includes(n.architecture))||!(a.type.length===0||n.type&&a.type.includes(A(n))))return!1;if(a.queries.length>0){const T=(n.properties?.description??"").toLowerCase();if(!a.queries.some(I=>T.includes(I)||n.name?.toLowerCase().includes(I)||(n.aliases?.some(R=>R.name.toLowerCase().includes(I))??!1)))return!1}return!0});return d?e.jsx(l.Row,{children:e.jsx(l.Spinner,{text:"Loading images..."})}):e.jsxs(e.Fragment,{children:[o&&o.length>0&&e.jsx("div",{className:"u-sv3",children:e.jsx(pe,{images:o,supportedArchitectures:s,isImagesLoading:d})}),e.jsx(ue,{images:i,imageRegistry:t,supportedArchitectures:s})]})},fe=({imageRegistry:t})=>e.jsxs(e.Fragment,{children:[e.jsxs(l.Row,{className:"section",children:[e.jsx(l.Col,{size:3,children:e.jsx("h2",{className:"p-heading--5",children:"General"})}),e.jsx(l.Col,{size:7,children:e.jsx("table",{children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("th",{className:"u-text--muted",children:"Name"}),e.jsx("td",{children:t.name})]}),e.jsxs("tr",{children:[e.jsx("th",{className:"u-text--muted",children:"Description"}),e.jsx("td",{children:t.description||"-"})]}),e.jsxs("tr",{children:[e.jsx("th",{className:"u-text--muted",children:"Protocol"}),e.jsx("td",{children:t.protocol})]}),e.jsxs("tr",{children:[e.jsx("th",{className:"u-text--muted",children:"Built-in"}),e.jsx("td",{children:t.builtin?"Yes":"No"})]})]})})})]}),e.jsxs(l.Row,{className:"section",children:[e.jsx(l.Col,{size:3,children:e.jsx("h2",{className:"p-heading--5",children:"Configuration"})}),e.jsx(l.Col,{size:7,children:e.jsx("table",{children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("th",{className:"u-text--muted",children:"Server"}),e.jsx("td",{children:t.config?.url||"-"})]}),e.jsxs("tr",{children:[e.jsx("th",{className:"u-text--muted",children:"Public"}),e.jsx("td",{children:t.public?"Yes":"No"})]}),e.jsxs("tr",{children:[e.jsx("th",{className:"u-text--muted",children:"Cluster"}),e.jsx("td",{children:t.config?.cluster?e.jsx(le,{clusterLink:t.config.cluster}):"-"})]}),e.jsxs("tr",{children:[e.jsx("th",{className:"u-text--muted",children:"Source project"}),e.jsx("td",{children:t.config?.source_project||"-"})]})]})})})]})]}),Ye=()=>{const{name:t,activeTab:c}=_(),u=ce();if(!t)return e.jsx(e.Fragment,{children:"Missing name"});const{data:o,error:d,isLoading:h}=Q(t);if(h)return e.jsx(l.Spinner,{className:"u-loader",text:"Loading...",isMainComponent:!0});if(!o)return e.jsx($,{entityType:"image-registry",entityName:t,errorMessage:d?.message});const m=["Images","Configuration"];return e.jsxs(e.Fragment,{children:[e.jsxs(l.CustomLayout,{header:e.jsx(me,{imageRegistry:o}),contentClassName:"detail-page",children:[e.jsx(B,{}),e.jsxs(l.Row,{children:[e.jsx(K,{tabs:m,activeTab:c,tabUrl:`${w}/ui/image-registry/${encodeURIComponent(t)}`}),!c&&e.jsx("div",{role:"tabpanel","aria-labelledby":"images",children:e.jsx(ge,{imageRegistry:o})}),c==="configuration"&&e.jsx("div",{role:"tabpanel","aria-labelledby":"configuration",children:e.jsx(fe,{imageRegistry:o})})]})]}),u.panel===de.editImageRegistry&&e.jsx(W,{})]})};export{Ye as default};

Youez - 2016 - github.com/yon3zu
LinuXploit