Skip to content

Commit 0fc8630

Browse files
committed
removed codemirror dependency
1 parent 877acd6 commit 0fc8630

9 files changed

+1
-324
lines changed

ui/app/modifiers/code-mirror.js

-88
This file was deleted.

ui/app/styles/components.scss

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
@import './components/accordion-internal';
77
@import './components/badge-nomad-internal';
88
@import './components/boxed-section';
9-
@import './components/codemirror';
109
@import './components/copy-button';
1110
@import './components/cli-window';
1211
@import './components/das-interstitial';

ui/app/styles/components/access-control.scss

-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@
8888
.namespace-editor-wrapper {
8989
padding: 1rem 0;
9090
&.error {
91-
.CodeMirror {
92-
box-shadow: 0 0 0 3px $red;
93-
}
9491
.help {
9592
padding: 1rem 0;
9693
font-size: 1rem;

ui/app/styles/components/codemirror.scss

-219
This file was deleted.

ui/app/styles/components/json-viewer.scss

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* SPDX-License-Identifier: BUSL-1.1
44
*/
55

6+
// TODO: Address how these styles are applied to the CodeBlock
67
.json-viewer {
78
&.has-fluid-height .CodeMirror-scroll {
89
min-height: 0;

ui/app/styles/components/variables.scss

-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ $hdsInputHeight: 35px;
8888

8989
.editor-wrapper {
9090
&.error {
91-
.CodeMirror {
92-
box-shadow: 0 0 0 3px $red;
93-
}
9491
.help {
9592
padding: 1rem 0;
9693
font-size: 1rem;

ui/ember-cli-build.js

-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ const isTest = environment === 'test';
1212

1313
module.exports = function (defaults) {
1414
let app = new EmberApp(defaults, {
15-
codemirror: {
16-
modes: ['javascript', 'ruby'],
17-
},
1815
babel: {
1916
include: ['proposal-optional-chaining'],
2017
plugins: [
@@ -50,7 +47,6 @@ module.exports = function (defaults) {
5047
// along with the exports of each module as its value.
5148

5249
app.import('node_modules/xterm/css/xterm.css');
53-
app.import('node_modules/codemirror/lib/codemirror.css');
5450

5551
return app.toTree();
5652
};

ui/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"base64-js": "^1.3.1",
5353
"broccoli-asset-rev": "^3.0.0",
5454
"bulma": "0.9.3",
55-
"codemirror": "^5.58.2",
5655
"core-js": "3.19.1",
5756
"d3-array": "^3.1.1",
5857
"d3-axis": "^3.0.0",

ui/yarn.lock

-5
Original file line numberDiff line numberDiff line change
@@ -6074,11 +6074,6 @@ codemirror-lang-hcl@^0.0.0-beta.2:
60746074
"@lezer/highlight" "^1.0.0"
60756075
"@lezer/lr" "^1.0.0"
60766076

6077-
codemirror@^5.58.2:
6078-
version "5.65.16"
6079-
resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.65.16.tgz#efc0661be6bf4988a6a1c2fe6893294638cdb334"
6080-
integrity sha512-br21LjYmSlVL0vFCPWPfhzUCT34FM/pAdK7rRIZwa0rrtrIdotvP4Oh4GUHsu2E3IrQMCfRkL/fN3ytMNxVQvg==
6081-
60826077
collection-visit@^1.0.0:
60836078
version "1.0.0"
60846079
resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0"

0 commit comments

Comments
 (0)