UNPKG

p3x-redis-ui-material

Version:

💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io

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