UNPKG

p3x-redis-ui-material

Version:

💿 P3X Redis UI triple frontend — Angular + React/MUI + Vue/Vuetify with 54 languages, 7 themes, Socket.IO, desktop notifications, and full feature parity

1 lines • 4.64 kB
import"./main-OCJB5534.js";import{Di as wf,Dn as _y,Dr as lo,Dt as Qe,In as by,It as Sn,Kr as oT,P as HT,Rn as co,T as Ee,er as gT,in as Wa,mn as YQ,ur as iT,vr as jy,w as Eb}from"./chunk-CHqDEyfr.js";import{n as u,t as f}from"./chunk-DolM25Wu.js";import"./chunk-CPClUPec.js";import{t as Q}from"./chunk-CyniViPG.js";import{n as bi}from"./chunk-DjVJBOYc.js";import"./chunk-CWEwaFv9.js";import"./chunk-CyaMV1f5.js";import"./chunk-BM0xjj91.js";import"./chunk-B_FU7ynV.js";import"./chunk-CNSP-oVC.js";import{r as yt}from"./chunk-CGgWGJ3E.js";import"./chunk-DxgAwx0L.js";import{t as X}from"./chunk-BfFSlGI12.js";import"./chunk-CaLi_qYn2.js";import{n as Yt,r as Zt,t as Xt}from"./chunk-C73tB7I62.js";import"./chunk-CARSOUZ02.js";import"./chunk-BTZfv3-Q.js";import{t as D}from"./chunk-BXYGriq12.js";var w=(e,l)=>l.code;var O=(e,l)=>l.key;function $(e,l){if(e&1&&(Wa(0,`mat-list-item`)(1,`div`,2)(2,`div`,3)(3,`kbd`,10),HT(4),wf()(),Wa(5,`div`,4),HT(6),wf()()(),_y(7,`mat-divider`)),e&2){let t=l.$implicit;Sn(4),jy(t.key),Sn(2),jy(t.description)}}function P(e,l){if(e&1&&(Wa(0,`p3xr-ng-accordion`,9)(1,`div`,1)(2,`mat-list`),oT(3,$,8,2,null,null,O),wf()()(),_y(5,`br`)),e&2){let t=gT();by(`title`,t.strings().label?.keyboardShortcuts),Sn(3),iT(t.shortcutsList)}}function F(e,l){if(e&1&&(Wa(0,`mat-list-item`)(1,`div`,2)(2,`div`,3),HT(3),wf(),Wa(4,`div`,4),HT(5),wf()()(),_y(6,`mat-divider`)),e&2){let t=gT();Sn(3),jy(t.strings().label?.redisVersion),Sn(2),jy(t.redisVersion)}}function K(e,l){if(e&1&&(Wa(0,`mat-list-item`)(1,`div`,2)(2,`div`,3),HT(3),wf(),Wa(4,`div`,4),HT(5),wf()()(),_y(6,`mat-divider`)),e&2){let t=gT();Sn(3),jy(t.strings().label?.modules),Sn(2),jy(t.modules.join(`, `))}}function V(e,l){if(e&1&&(Wa(0,`mat-list-item`)(1,`div`,2)(2,`div`,3)(3,`kbd`,11),HT(4),wf()(),Wa(5,`div`,4),HT(6),wf()()(),_y(7,`mat-divider`)),e&2){let t=l.$implicit;Sn(4),jy(t.code),Sn(2),jy(t.name)}}var U=(()=>{class e{i18n;shortcutsService;socket;state;strings;isElectron;shortcutsList=[];get version(){return this.state.version()||``}get isConnected(){return!!this.state.connection()}get redisVersion(){return this.state.info()?.server?.redis_version||`-`}get modules(){return(this.state.modules()||[]).map(t=>t.name)}get languageList(){let t=this.strings()?.language||{};return Object.keys(t).sort().map(m=>({code:m,name:t[m]}))}unsubs=[];constructor(t,m,a,T){this.i18n=t,this.shortcutsService=m,this.socket=a,this.state=T,this.strings=this.i18n.strings,this.isElectron=this.shortcutsService.isEnabled(),this.shortcutsList=this.shortcutsService.getShortcutsWithDescriptions()}ngOnInit(){let t=this.socket.redisDisconnected$.subscribe(()=>{});this.unsubs.push(()=>t.unsubscribe())}ngOnDestroy(){this.unsubs.forEach(t=>t())}static ɵfac=function(m){return new(m||e)(Qe(YQ),Qe(D),Qe(bi),Qe(Q))};static ɵcmp=Ee({type:e,selectors:[[`p3xr-info`]],decls:42,vars:9,consts:[[`accordionKey`,`info-about`,3,`title`],[`content`,``],[1,`p3xr-settings-pair-row`],[1,`p3xr-settings-row-label`],[1,`p3xr-settings-row-value`],[`href`,`https://github.com/patrikx3/redis-ui`,`target`,`_blank`],[`href`,`https://www.paypal.me/patrikx3`,`target`,`_blank`],[`href`,`https://github.com/patrikx3/redis-ui/blob/master/change-log.md#change-log`,`target`,`_blank`],[`accordionKey`,`info-languages`,3,`title`],[`accordionKey`,`info-shortcuts`,3,`title`],[1,`p3xr-kbd`],[1,`p3xr-kbd`,`p3xr-kbd-small`]],template:function(m,a){m&1&&(co(0,P,6,1),Wa(1,`p3xr-ng-accordion`,0)(2,`div`,1)(3,`mat-list`)(4,`mat-list-item`)(5,`div`,2)(6,`div`,3),HT(7),wf(),Wa(8,`div`,4),HT(9),wf()()(),_y(10,`mat-divider`),co(11,F,7,2),co(12,K,7,2),Wa(13,`mat-list-item`)(14,`div`,2)(15,`div`,3),HT(16,`GitHub`),wf(),Wa(17,`div`,4)(18,`a`,5),HT(19,`patrikx3/redis-ui`),wf()()()(),_y(20,`mat-divider`),Wa(21,`mat-list-item`)(22,`div`,2)(23,`div`,3),HT(24),wf(),Wa(25,`div`,4)(26,`a`,6),HT(27,`PayPal`),wf()()()(),_y(28,`mat-divider`),Wa(29,`mat-list-item`)(30,`div`,2)(31,`div`,3),HT(32),wf(),Wa(33,`div`,4)(34,`a`,7),HT(35,`change-log.md`),wf()()()()()()(),_y(36,`br`),Wa(37,`p3xr-ng-accordion`,8)(38,`div`,1)(39,`mat-list`),oT(40,V,8,2,null,null,w),wf()()()),m&2&&(lo(a.isElectron?0:-1),Sn(),by(`title`,a.strings().label?.about),Sn(6),jy(a.strings().label?.version),Sn(2),jy(a.version),Sn(2),lo(a.isConnected?11:-1),Sn(),lo(a.isConnected&&a.modules.length>0?12:-1),Sn(12),jy(a.strings().title?.donate),Sn(8),jy(a.strings().intention?.githubChangelog),Sn(5),by(`title`,a.strings().label?.supportedLanguages+` (`+a.languageList.length+`)`),Sn(3),iT(a.languageList))},dependencies:[Eb,Yt,Xt,Zt,u,f,yt,X],styles:[`[_nghost-%COMP%]{display:block}`],changeDetection:1})}return e})();export{U as InfoComponent};