mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 23:47:12 +00:00
feat: update theme and syntax highlighting
This commit is contained in:
parent
f9dcdca64d
commit
4544813e64
@ -45,6 +45,7 @@
|
||||
"@signozhq/design-tokens": "1.1.4",
|
||||
"@tanstack/react-table": "8.20.6",
|
||||
"@tanstack/react-virtual": "3.11.2",
|
||||
"@uiw/codemirror-theme-copilot": "4.23.11",
|
||||
"@uiw/react-codemirror": "4.23.10",
|
||||
"@uiw/react-md-editor": "3.23.5",
|
||||
"@visx/group": "3.3.0",
|
||||
|
||||
@ -14,6 +14,8 @@ import {
|
||||
CompletionContext,
|
||||
CompletionResult,
|
||||
} from '@codemirror/autocomplete';
|
||||
import { javascript } from '@codemirror/lang-javascript';
|
||||
import { copilot } from '@uiw/codemirror-theme-copilot';
|
||||
import CodeMirror, { EditorView, Extension } from '@uiw/react-codemirror';
|
||||
import { Badge, Card, Divider, Space, Tooltip, Typography } from 'antd';
|
||||
import { useGetQueryKeySuggestions } from 'hooks/querySuggestions/useGetQueryKeySuggestions';
|
||||
@ -311,7 +313,7 @@ function CodeMirrorWhereClause(): JSX.Element {
|
||||
>
|
||||
<CodeMirror
|
||||
value={query}
|
||||
theme="dark"
|
||||
theme={copilot}
|
||||
onChange={handleChange}
|
||||
onUpdate={handleUpdate}
|
||||
autoFocus
|
||||
@ -319,6 +321,7 @@ function CodeMirrorWhereClause(): JSX.Element {
|
||||
extensions={[
|
||||
autocompletion({ override: [myCompletions] }),
|
||||
collapseSpacesOutsideStrings(),
|
||||
javascript({ jsx: false, typescript: false }),
|
||||
]}
|
||||
/>
|
||||
|
||||
|
||||
@ -4855,6 +4855,22 @@
|
||||
"@codemirror/state" "^6.0.0"
|
||||
"@codemirror/view" "^6.0.0"
|
||||
|
||||
"@uiw/codemirror-theme-copilot@4.23.11":
|
||||
version "4.23.11"
|
||||
resolved "https://registry.yarnpkg.com/@uiw/codemirror-theme-copilot/-/codemirror-theme-copilot-4.23.11.tgz#075a2a6449c62835af2cb7fdef4fe9558bf20f30"
|
||||
integrity sha512-m6vvsWHbji0s25ly3L35BdjSMys4DL3dzb4wbVtYa7m79heA3h2YNiWFIkOjbyPtoOh4RUGB6tBT8z0J/5PmTA==
|
||||
dependencies:
|
||||
"@uiw/codemirror-themes" "4.23.11"
|
||||
|
||||
"@uiw/codemirror-themes@4.23.11":
|
||||
version "4.23.11"
|
||||
resolved "https://registry.yarnpkg.com/@uiw/codemirror-themes/-/codemirror-themes-4.23.11.tgz#abd022b9d65c851d72ecbc93169bb5143b9c35b7"
|
||||
integrity sha512-90joUOau/3E6KNdA5ePr/t8LVBA/426wIsOuwaZohsDM5a5gsYfdMWGYfClnLMkpfHJUDYYMO+b2JPhJf9mzHw==
|
||||
dependencies:
|
||||
"@codemirror/language" "^6.0.0"
|
||||
"@codemirror/state" "^6.0.0"
|
||||
"@codemirror/view" "^6.0.0"
|
||||
|
||||
"@uiw/copy-to-clipboard@~1.0.12":
|
||||
version "1.0.15"
|
||||
resolved "https://registry.yarnpkg.com/@uiw/copy-to-clipboard/-/copy-to-clipboard-1.0.15.tgz#959cebbae64df353964647bb5b9d705176b2e613"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user