Skip to content

Commit

Permalink
Remove codemirror
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr committed Jul 29, 2023
1 parent 6930d60 commit 28f7ff0
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 505 deletions.
11 changes: 0 additions & 11 deletions apps/zui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,6 @@
"@babel/core": "^7.17.9",
"@brimdata/zed-js": "workspace:*",
"@brimdata/zed-node": "workspace:*",
"@codemirror/autocomplete": "^0.19.15",
"@codemirror/closebrackets": "^0.19.1",
"@codemirror/commands": "^0.19.8",
"@codemirror/comment": "^0.19.1",
"@codemirror/fold": "^0.19.3",
"@codemirror/gutter": "^0.19.9",
"@codemirror/highlight": "^0.19.7",
"@codemirror/history": "^0.19.2",
"@codemirror/rectangular-selection": "^0.19.1",
"@codemirror/search": "^0.19.9",
"@codemirror/state": "^0.19.9",
"@js-joda/core": "^3.2.0",
"@reduxjs/toolkit": "^1.9.3",
"@swc/cli": "^0.1.55",
Expand Down
3 changes: 2 additions & 1 deletion apps/zui/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"sourceRoot": "apps/zui",
"projectType": "app",
"targets": {
"lint:types": {
"tsc": {
"executor": "@nrwl/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
Expand All @@ -17,6 +17,7 @@
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"dependsOn": ["tsc"],
"options": {
"lintFilePatterns": ["apps/zui/**/*.ts", "apps/zui/**/*.tsx"]
}
Expand Down
21 changes: 0 additions & 21 deletions apps/zui/src/app/query-home/search-area/Input.tsx

This file was deleted.

54 changes: 0 additions & 54 deletions apps/zui/src/app/query-home/search-area/editor/query-editor.tsx

This file was deleted.

41 changes: 0 additions & 41 deletions apps/zui/src/app/query-home/search-area/editor/theme.ts

This file was deleted.

56 changes: 0 additions & 56 deletions apps/zui/src/app/query-home/search-area/editor/use-editor-view.ts

This file was deleted.

63 changes: 0 additions & 63 deletions apps/zui/src/app/query-home/search-area/editor/use-extensions.ts

This file was deleted.

4 changes: 2 additions & 2 deletions apps/zui/src/js/initializers/init-monaco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const builtinAggFuncs = [

const operators = ["+", "-", "*", "/", ">", ">=", "<", "<=", "=", ":="]

const symbols = /[+\-*\/><=:]+/
const symbols = /[+\-*/><=:]+/

const identifier = /[a-zA-Z][\w$]*/

Expand Down Expand Up @@ -163,7 +163,7 @@ const integerRule = [/\d+/, "number"]
const floatRule = [/\d*\.\d+/, "number.float"]
const stringRule = [/("[^"]*")|('[^']*')/, "string"]
const commentRule = [/\/\/.*/, "comment"]
const bracketRule = [/[{}()\[\]]/, "@brackets"]
const bracketRule = [/[{}()[]]/, "@brackets"]

export async function initializeMonaco() {
const monaco = await loader.init()
Expand Down
Loading

0 comments on commit 28f7ff0

Please sign in to comment.