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.178
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/41172/share/lxd-ui/assets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /snap/lxd/41172/share/lxd-ui/assets//ClusterMemberHardware-C-Ze1jop.js
import{M as N,t as o,O as _,j as s,P as b,Q as c,S as g,r as m,d as x,T as f}from"./index-H4PaR1Ay.js";import{C,u as S}from"./ClusterMemberMemoryUsage-BybgBxEL.js";import{M}from"./Meter-Bmiz6lct.js";import{s as w,g as D}from"./scroll-BSkJfxH1.js";const P=r=>N({queryKey:[o.cluster,o.members,r??void 0,o.resources],queryFn:async()=>_(r)}),U=({resources:r,state:e})=>s.jsx("table",{children:s.jsxs("tbody",{children:[e&&s.jsxs(s.Fragment,{children:[s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Uptime"}),s.jsx("td",{children:e?.sysinfo.uptime?b(e?.sysinfo.uptime):"-"})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Load averages"}),s.jsx("td",{children:e?.sysinfo.load_averages.join(" ")})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Processes"}),s.jsx("td",{children:e?.sysinfo.processes})]})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"UUID"}),s.jsx("td",{children:r?.system.uuid})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Vendor"}),s.jsx("td",{children:r?.system.vendor})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Product"}),s.jsx("td",{children:r?.system.product})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Family"}),s.jsx("td",{children:r?.system.family||"N/A"})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Version"}),s.jsx("td",{children:r?.system.version})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"SKU"}),s.jsx("td",{children:r?.system.sku||"N/A"})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Type"}),s.jsx("td",{children:r?.system.type})]}),r?.system.firmware&&s.jsxs(s.Fragment,{children:[s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Firmware Vendor"}),s.jsx("td",{children:r.system.firmware.vendor})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Firmware Date"}),s.jsx("td",{children:r.system.firmware.date})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Firmware Version"}),s.jsx("td",{children:r.system.firmware.version})]})]}),r?.system.chassis&&s.jsxs(s.Fragment,{children:[s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Chassis Vendor"}),s.jsx("td",{children:r.system.chassis.vendor})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Chassis Type"}),s.jsx("td",{children:r.system.chassis.type})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Chassis Serial"}),s.jsx("td",{children:r.system.chassis.serial||"N/A"})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Chassis Version"}),s.jsx("td",{children:r.system.chassis.version||"N/A"})]})]}),r?.system.motherboard&&s.jsxs(s.Fragment,{children:[s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Motherboard Vendor"}),s.jsx("td",{children:r.system.motherboard.vendor})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Motherboard Product"}),s.jsx("td",{children:r.system.motherboard.product})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Motherboard Serial"}),s.jsx("td",{children:r.system.motherboard.serial||"N/A"})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Motherboard Version"}),s.jsx("td",{children:r.system.motherboard.version||"N/A"})]})]})]})}),A=({resources:r,state:e})=>s.jsx("table",{children:s.jsxs("tbody",{children:[s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Architecture"}),s.jsx("td",{children:r?.cpu.architecture})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Total"}),s.jsx("td",{children:r?.cpu.total})]}),e&&s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Logical"}),s.jsx("td",{children:e?.sysinfo.logical_cpus})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Sockets"}),s.jsx("td",{children:r?.cpu.sockets?.map((i,d)=>s.jsxs("div",{children:[s.jsx("strong",{children:i.name}),s.jsxs("div",{children:["Vendor: ",i.vendor]}),s.jsxs("div",{children:["Socket #: ",i.socket]}),(i.cache??[]).length>0&&s.jsxs("div",{children:["Cache:",s.jsx("ul",{children:i.cache?.map((t,n)=>s.jsxs("li",{children:["Level ",t.level," ",t.type," - ",c(t.size)]},n))})]}),(i.cores??[]).length>0&&s.jsxs("div",{children:["Cores:",s.jsx("ul",{children:i.cores?.map((t,n)=>s.jsxs("li",{children:["Core ",t.core,", Die ",t.die,s.jsx("ul",{children:t.threads?.map((h,a)=>s.jsxs("li",{children:["Thread ",h.id," (NUMA ",h.numa_node,") -"," ",h.online?"Online":"Offline",","," ",h.isolated?"Isolated":"Not isolated"]},a))})]},n))})]})]},d))||"None"})]})]})}),I=({resources:r,state:e,member:i})=>{const d=e?.sysinfo.free_swap??0,t=e?.sysinfo.free_swap??0;return s.jsx("table",{children:s.jsxs("tbody",{children:[i&&s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Overview"}),s.jsx("td",{children:s.jsx(C,{member:i})})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Total"}),s.jsx("td",{children:c(r?.memory?.total??0)})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Used"}),s.jsx("td",{children:c(r?.memory?.used??0)})]}),e&&s.jsxs(s.Fragment,{children:[s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Free"}),s.jsx("td",{children:c(e?.sysinfo.free_ram??0)})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Shared"}),s.jsx("td",{children:c(e?.sysinfo.shared_ram??0)})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Buffered"}),s.jsx("td",{children:c(e?.sysinfo.buffered_ram??0)})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Swap"}),s.jsx("td",{children:s.jsx(M,{percentage:100/d*(d-t),text:c(d-t)+" of "+c(d),hoverText:`free: ${c(t)}
total: ${c(d)}`})})]})]}),s.jsxs("tr",{children:[s.jsx("th",{className:"u-text--muted",children:"Hugepages"}),s.jsxs("td",{children:[s.jsxs("div",{children:["Used: ",r?.memory.hugepages_used]}),s.jsxs("div",{children:["Total: ",r?.memory.hugepages_total]}),s.jsxs("div",{children:["Size: ",c(r?.memory.hugepages_size??0)]})]})]}),r?.memory.nodes?.map((n,h)=>s.jsxs("tr",{children:[s.jsxs("th",{className:"u-text--muted",children:["NUMA Node ",n.numa_node]}),s.jsxs("td",{children:[s.jsxs("div",{children:["Used: ",c(n.used)]}),s.jsxs("div",{children:["Total: ",c(n.total)]})]})]},h))]})})},V=({resources:r})=>s.jsx("table",{children:s.jsx("tbody",{children:r?.gpu.cards?.map((e,i)=>s.jsxs("tr",{children:[s.jsxs("th",{className:"u-text--muted",children:["Card #",i+1]}),s.jsxs("td",{children:[s.jsxs("div",{children:["Product: ",e.product]}),s.jsxs("div",{children:["Vendor: ",e.vendor]}),s.jsxs("div",{children:["PCI Address: ",e.pci_address]}),s.jsxs("div",{children:["Driver: ",e.driver," (",e.driver_version,")"]}),s.jsxs("div",{children:["NUMA Node: ",e.numa_node]}),e.drm&&s.jsxs("div",{children:["DRM:",s.jsxs("div",{children:["Card: ",e.drm.card_name," (",e.drm.card_device,")"]}),s.jsxs("div",{children:["Control: ",e.drm.control_name," (",e.drm.control_device,")"]}),e.drm.render_name&&s.jsxs("div",{children:["Render: ",e.drm.render_name," (",e.drm.render_device,")"]})]}),e.sriov&&s.jsxs("div",{children:["SR-IOV:",s.jsxs("div",{children:[e.sriov.current_vfs," / ",e.sriov.maximum_vfs," VFs"]})]})]})]},i))})}),F=({resources:r})=>s.jsx("table",{children:s.jsx("tbody",{children:r?.network.cards?.map((e,i)=>s.jsxs("tr",{children:[s.jsxs("th",{className:"u-text--muted",children:["Card #",i+1]}),s.jsxs("td",{children:[s.jsxs("div",{children:["Vendor: ",e.vendor]}),s.jsxs("div",{children:["Product: ",e.product]}),s.jsxs("div",{children:["Driver: ",e.driver," (",e.driver_version,")"]}),e.firmware_version&&s.jsxs("div",{children:["Firmware: ",e.firmware_version]}),e.pci_address&&s.jsxs("div",{children:["PCI Address: ",e.pci_address]}),e.usb_address&&s.jsxs("div",{children:["USB Address: ",e.usb_address]}),s.jsxs("div",{children:["NUMA Node: ",e.numa_node]}),(e.ports??[]).length>0&&s.jsxs("div",{children:["Ports:",s.jsx("ul",{children:(e.ports??[]).map((d,t)=>s.jsxs("li",{children:[s.jsxs("div",{children:["ID: ",s.jsx("strong",{children:d.id})]}),s.jsxs("div",{children:["MAC: ",d.address]}),s.jsxs("div",{children:["Protocol: ",d.protocol]}),s.jsxs("div",{children:["Link: ",d.link_detected?"Up":"Down"]}),s.jsxs("div",{children:["Auto-negotiation:"," ",d.auto_negotiation?"Yes":"No"]}),s.jsxs("div",{children:["Port type: ",d.port_type]}),s.jsxs("div",{children:["Transceiver: ",d.transceiver_type]})]},t))})]})]})]},i))})}),L=({resources:r})=>s.jsx("table",{children:s.jsx("tbody",{children:r?.pci.devices?.map((e,i)=>s.jsxs("tr",{children:[s.jsxs("th",{className:"u-text--muted",children:["Device #",i+1]}),s.jsxs("td",{children:[s.jsxs("div",{children:["Vendor: ",e.vendor," (",e.vendor_id,")"]}),s.jsxs("div",{children:["Product: ",e.product," (",e.product_id,")"]}),s.jsxs("div",{children:["PCI Address: ",e.pci_address]}),s.jsxs("div",{children:["Driver: ",e.driver||"N/A"]}),s.jsxs("div",{children:["Driver Version: ",e.driver_version||"N/A"]}),s.jsxs("div",{children:["NUMA Node: ",e.numa_node]}),s.jsxs("div",{children:["IOMMU Group: ",e.iommu_group]}),e.vpd&&Object.keys(e.vpd).length>0&&s.jsxs("div",{children:["VPD:",s.jsx("ul",{children:Object.entries(e.vpd).map(([d,t])=>s.jsxs("li",{children:[d,": ",String(t)]},d))})]})]})]},i))})}),z=({resources:r})=>s.jsx("table",{children:s.jsx("tbody",{children:r?.storage.disks?.map((e,i)=>s.jsxs("tr",{children:[s.jsxs("th",{className:"u-text--muted",children:["Disk #",i+1]}),s.jsxs("td",{children:[s.jsxs("div",{children:["Model: ",s.jsx("strong",{children:e.model})]}),s.jsxs("div",{children:["Type: ",e.type]}),s.jsxs("div",{children:["ID: ",e.id]}),s.jsxs("div",{children:["Serial: ",e.serial]}),s.jsxs("div",{children:["Size: ",c(e.size)]}),s.jsxs("div",{children:["Firmware: ",e.firmware_version]}),s.jsxs("div",{children:["Read-only: ",e.read_only?"Yes":"No"]}),s.jsxs("div",{children:["Mounted: ",e.mounted?"Yes":"No"]}),s.jsxs("div",{children:["Removable: ",e.removable?"Yes":"No"]}),s.jsxs("div",{children:["RPM: ",e.rpm]}),s.jsxs("div",{children:["Block Size: ",c(e.block_size)]}),s.jsxs("div",{children:["PCI Address: ",e.pci_address]}),s.jsxs("div",{children:["NUMA Node: ",e.numa_node]}),s.jsxs("div",{children:["Device Path: ",e.device_path]}),s.jsxs("div",{children:["Device ID: ",e.device_id]}),s.jsxs("div",{children:["WWN: ",e.wwn]}),(e.partitions??[]).length>0&&s.jsxs("div",{children:["Partitions:",s.jsx("ul",{children:(e.partitions??[]).map((d,t)=>s.jsxs("li",{children:[s.jsxs("div",{children:["ID: ",d.id]}),s.jsxs("div",{children:["Device: ",d.device]}),s.jsxs("div",{children:["Size: ",c(d.size)]}),s.jsxs("div",{children:["Partition #: ",d.partition]}),s.jsxs("div",{children:["Mounted: ",d.mounted?"Yes":"No"]}),d.device_fs_uuid&&s.jsxs("div",{children:["UUID: ",d.device_fs_uuid]})]},t))})]})]})]},i))})}),T=({resources:r})=>s.jsx("table",{className:"usb",children:s.jsxs("tbody",{children:[r?.usb.devices?.length===0&&s.jsx("tr",{children:s.jsx("td",{className:"u-text--muted",children:"No USB devices found"})}),r?.usb.devices?.map((e,i)=>s.jsxs("tr",{children:[s.jsxs("th",{className:"u-text--muted",children:["Device #",i+1]}),s.jsxs("td",{children:[s.jsxs("div",{children:["Bus Address: ",e.bus_address]}),s.jsxs("div",{children:["Device Address: ",e.device_address]}),e.vendor&&s.jsxs("div",{children:["Vendor: ",e.vendor]}),e.product&&s.jsxs("div",{children:["Product: ",e.product]}),e.serial&&e.serial!==""&&s.jsxs("div",{children:["Serial: ",e.serial]}),(e.interfaces??[]).length>0&&s.jsxs("div",{children:["Interfaces:",s.jsx("ul",{children:(e.interfaces??[]).map((d,t)=>s.jsxs("li",{children:[s.jsxs("div",{children:["Class: ",d.class]}),s.jsxs("div",{children:["Subclass: ",d.subclass]}),s.jsxs("div",{children:["Protocol: ",d.protocol]})]},t))})]})]})]},i))]})}),Y=({member:r})=>{const{hash:e}=g(),i=e?e.substring(1):"system",[d,t]=m.useState(i),{data:n,isLoading:h}=P(r?.server_name),{data:a,isLoading:v}=S(r?.server_name),j=["System","CPU","GPU","Memory","Networks","Storage","PCI","USB"];return m.useEffect(()=>{const l=document.getElementById("content-details"),p=()=>{const y=D(j,l);t(y.toLowerCase())},u=()=>{f(p,20)};return l?.addEventListener("scroll",u),()=>l?.removeEventListener("scroll",u)},[h,j]),m.useEffect(()=>{n&&(w(i),t(i))},[i,n]),h||v?s.jsx(x.Spinner,{className:"u-loader",text:"Loading..."}):s.jsxs(s.Fragment,{children:[!n&&s.jsx(x.Notification,{severity:"negative",title:"Could not load details for this member"}),n&&s.jsxs(x.ScrollableContainer,{dependencies:[n],children:[j.map(l=>s.jsxs(x.Row,{className:"hardware-section",children:[s.jsx(x.Col,{size:2,children:s.jsx("h2",{className:"p-heading--5",id:l.toLowerCase(),children:l})}),s.jsxs(x.Col,{size:10,children:[l==="System"&&s.jsx(U,{resources:n,state:a}),l==="CPU"&&s.jsx(A,{resources:n,state:a}),l==="Memory"&&s.jsx(I,{resources:n,state:a,member:r}),l==="GPU"&&s.jsx(V,{resources:n}),l==="Networks"&&s.jsx(F,{resources:n}),l==="PCI"&&s.jsx(L,{resources:n}),l==="Storage"&&s.jsx(z,{resources:n}),l==="USB"&&s.jsx(T,{resources:n})]})]},l)),s.jsx("div",{className:"aside",children:s.jsx("nav",{"aria-label":"Hardware navigation",className:"toc-tree",children:s.jsx("ul",{children:j.map(l=>s.jsx("li",{className:"p-side-navigation__item",children:s.jsx("a",{className:"p-side-navigation__link",href:`${window.location.pathname}#${l.toLowerCase()}`,"aria-current":d===l.toLowerCase()?"page":void 0,children:l})},l))})})})]})]})};export{Y as C};

Youez - 2016 - github.com/yon3zu
LinuXploit