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