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 • 3.61 kB
import{r as e}from"./dist-m4p0WaKB.js";import{h as t,t as n,v as r}from"./dist-CgYXvCXJ.js";function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}var a=r=>{var{theme:i,settings:a={},styles:o=[]}=r,s={".cm-gutters":{}},c={};a.background&&(c.backgroundColor=a.background),a.backgroundImage&&(c.backgroundImage=a.backgroundImage),a.foreground&&(c.color=a.foreground),a.fontSize&&(c.fontSize=a.fontSize),(a.background||a.foreground)&&(s[`&`]=c),a.fontFamily&&(s[`&.cm-editor .cm-scroller`]={fontFamily:a.fontFamily}),a.gutterBackground&&(s[`.cm-gutters`].backgroundColor=a.gutterBackground),a.gutterForeground&&(s[`.cm-gutters`].color=a.gutterForeground),a.gutterBorder&&(s[`.cm-gutters`].borderRightColor=a.gutterBorder),a.caret&&(s[`.cm-content`]={caretColor:a.caret},s[`.cm-cursor, .cm-dropCursor`]={borderLeftColor:a.caret});var l={};return a.gutterActiveForeground&&(l.color=a.gutterActiveForeground),a.lineHighlight&&(s[`.cm-activeLine`]={backgroundColor:a.lineHighlight},l.backgroundColor=a.lineHighlight),s[`.cm-activeLineGutter`]=l,a.selection&&(s[`&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection`]={background:a.selection+` !important`}),a.selectionMatch&&(s[`& .cm-selectionMatch`]={backgroundColor:a.selectionMatch}),[e.theme(s,{dark:i===`dark`}),t(n.define(o))]},o={background:`#fff`,foreground:`#24292e`,selection:`#BBDFFF`,selectionMatch:`#BBDFFF`,gutterBackground:`#fff`,gutterForeground:`#6e7781`},s=[{tag:[r.standard(r.tagName),r.tagName],color:`#116329`},{tag:[r.comment,r.bracket],color:`#6a737d`},{tag:[r.className,r.propertyName],color:`#6f42c1`},{tag:[r.variableName,r.attributeName,r.number,r.operator],color:`#005cc5`},{tag:[r.keyword,r.typeName,r.typeOperator,r.typeName],color:`#d73a49`},{tag:[r.string,r.meta,r.regexp],color:`#032f62`},{tag:[r.name,r.quote],color:`#22863a`},{tag:[r.heading,r.strong],color:`#24292e`,fontWeight:`bold`},{tag:[r.emphasis],color:`#24292e`,fontStyle:`italic`},{tag:[r.deleted],color:`#b31d28`,backgroundColor:`ffeef0`},{tag:[r.atom,r.bool,r.special(r.variableName)],color:`#e36209`},{tag:[r.url,r.escape,r.regexp,r.link],color:`#032f62`},{tag:r.link,textDecoration:`underline`},{tag:r.strikethrough,textDecoration:`line-through`},{tag:r.invalid,color:`#cb2431`}],c=(e=>{var{theme:t=`light`,settings:n={},styles:r=[]}=e||{};return a({theme:t,settings:i({},o,n),styles:[...s,...r]})})(),l={background:`#0d1117`,foreground:`#c9d1d9`,caret:`#c9d1d9`,selection:`#003d73`,selectionMatch:`#003d73`,lineHighlight:`#36334280`},u=[{tag:[r.standard(r.tagName),r.tagName],color:`#7ee787`},{tag:[r.comment,r.bracket],color:`#8b949e`},{tag:[r.className,r.propertyName],color:`#d2a8ff`},{tag:[r.variableName,r.attributeName,r.number,r.operator],color:`#79c0ff`},{tag:[r.keyword,r.typeName,r.typeOperator,r.typeName],color:`#ff7b72`},{tag:[r.string,r.meta,r.regexp],color:`#a5d6ff`},{tag:[r.name,r.quote],color:`#7ee787`},{tag:[r.heading,r.strong],color:`#d2a8ff`,fontWeight:`bold`},{tag:[r.emphasis],color:`#d2a8ff`,fontStyle:`italic`},{tag:[r.deleted],color:`#ffdcd7`,backgroundColor:`ffeef0`},{tag:[r.atom,r.bool,r.special(r.variableName)],color:`#ffab70`},{tag:r.link,textDecoration:`underline`},{tag:r.strikethrough,textDecoration:`line-through`},{tag:r.invalid,color:`#f97583`}];(e=>{var{theme:t=`dark`,settings:n={},styles:r=[]}=e||{};return a({theme:t,settings:i({},l,n),styles:[...u,...r]})})();export{c as githubLight};