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.75 kB
JavaScript
import{r as e}from"./dist-Cj2C9Jz-.js";import{h as t,t as n,v as r}from"./dist-DCPVnkET.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 i=r.theme,a=r.settings,o=a===void 0?{}:a,s=r.styles,c=s===void 0?[]:s,l={".cm-gutters":{}},u={};o.background&&(u.backgroundColor=o.background),o.backgroundImage&&(u.backgroundImage=o.backgroundImage),o.foreground&&(u.color=o.foreground),o.fontSize&&(u.fontSize=o.fontSize),(o.background||o.foreground)&&(l[`&`]=u),o.fontFamily&&(l[`&.cm-editor .cm-scroller`]={fontFamily:o.fontFamily}),o.gutterBackground&&(l[`.cm-gutters`].backgroundColor=o.gutterBackground),o.gutterForeground&&(l[`.cm-gutters`].color=o.gutterForeground),o.gutterBorder&&(l[`.cm-gutters`].borderRightColor=o.gutterBorder),o.caret&&(l[`.cm-content`]={caretColor:o.caret},l[`.cm-cursor, .cm-dropCursor`]={borderLeftColor:o.caret});var d={};return o.gutterActiveForeground&&(d.color=o.gutterActiveForeground),o.lineHighlight&&(l[`.cm-activeLine`]={backgroundColor:o.lineHighlight},d.backgroundColor=o.lineHighlight),l[`.cm-activeLineGutter`]=d,o.selection&&(l[`&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection`]={background:o.selection+` !important`}),o.selectionMatch&&(l[`& .cm-selectionMatch`]={backgroundColor:o.selectionMatch}),[e.theme(l,{dark:i===`dark`}),t(n.define(c))]},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 t=e||{},n=t.theme,r=n===void 0?`light`:n,c=t.settings,l=c===void 0?{}:c,u=t.styles,d=u===void 0?[]:u;return a({theme:r,settings:i({},o,l),styles:[...s,...d]})})(),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 t=e||{},n=t.theme,r=n===void 0?`dark`:n,o=t.settings,s=o===void 0?{}:o,c=t.styles,d=c===void 0?[]:c;return a({theme:r,settings:i({},l,s),styles:[...u,...d]})})();export{c as githubLight};