mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
upgrade liquid, fix editor themes
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { default as CodeMirror, type ReactCodeMirrorProps } from "@uiw/react-codemirror";
|
||||
import { useBknd } from "ui/client/bknd";
|
||||
|
||||
import { json } from "@codemirror/lang-json";
|
||||
import { type LiquidCompletionConfig, liquid } from "@codemirror/lang-liquid";
|
||||
import { useTheme } from "ui/client/use-theme";
|
||||
|
||||
export type CodeEditorProps = ReactCodeMirrorProps & {
|
||||
_extensions?: Partial<{
|
||||
@@ -17,8 +16,7 @@ export default function CodeEditor({
|
||||
_extensions = {},
|
||||
...props
|
||||
}: CodeEditorProps) {
|
||||
const b = useBknd();
|
||||
const theme = b.app.getAdminConfig().color_scheme;
|
||||
const { theme } = useTheme();
|
||||
const _basicSetup: Partial<ReactCodeMirrorProps["basicSetup"]> = !editable
|
||||
? {
|
||||
...(typeof basicSetup === "object" ? basicSetup : {}),
|
||||
|
||||
@@ -88,7 +88,7 @@ input[disabled]::placeholder {
|
||||
}
|
||||
|
||||
.cm-editor {
|
||||
background: transparent;
|
||||
/*background: transparent;*/
|
||||
}
|
||||
.cm-editor.cm-focused {
|
||||
outline: none;
|
||||
|
||||
Reference in New Issue
Block a user