Skip to content

Commit 265ee37

Browse files
authored
chore(orchestrator): remove redundant monaco-editor dependency (#847)
Signed-off-by: Marek Libra <marek.libra@gmail.com>
1 parent 9496b1c commit 265ee37

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

workspaces/orchestrator/plugins/orchestrator/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
"json-schema": "^0.4.0",
7373
"lodash": "^4.17.21",
7474
"moment": "^2.29.4",
75-
"monaco-editor": "^0.52.2",
7675
"react-json-view": "^1.21.3",
7776
"react-moment": "^1.1.3",
7877
"react-use": "^17.4.0",

workspaces/orchestrator/plugins/orchestrator/src/components/ExecuteWorkflowPage/JsonTextAreaForm.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 The Backstage Authors
2+
* Copyright Red Hat, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,16 +13,21 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
import React from 'react';
1718

1819
import type { JsonObject } from '@backstage/types';
1920

2021
import { Box, Grid, useTheme } from '@material-ui/core';
2122
import { Alert, AlertTitle } from '@material-ui/lab';
22-
import { Editor } from '@monaco-editor/react';
23+
import Editor, { loader } from '@monaco-editor/react';
2324

2425
import { SubmitButton } from '@red-hat-developer-hub/backstage-plugin-orchestrator-form-react';
2526

27+
loader.config({
28+
// FLPATH-2358: If production env keeps downloading from jsdelivr.net, configure local path here
29+
});
30+
2631
const DEFAULT_VALUE = JSON.stringify({ myKey: 'myValue' }, null, 4);
2732

2833
const JsonTextAreaForm = ({

workspaces/orchestrator/yarn.lock

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11536,7 +11536,6 @@ __metadata:
1153611536
json-schema: ^0.4.0
1153711537
lodash: ^4.17.21
1153811538
moment: ^2.29.4
11539-
monaco-editor: ^0.52.2
1154011539
prettier: 3.5.3
1154111540
react-json-view: ^1.21.3
1154211541
react-moment: ^1.1.3
@@ -28179,13 +28178,6 @@ __metadata:
2817928178
languageName: node
2818028179
linkType: hard
2818128180

28182-
"monaco-editor@npm:^0.52.2":
28183-
version: 0.52.2
28184-
resolution: "monaco-editor@npm:0.52.2"
28185-
checksum: d5ff7b7a469afee25ac708d9ace0dcc5ef24ed328dfc526a52944a497f0d826cfb0685a778ff4b7becc0a8f7843f260c17ea6de3f6719481d53501d79ebb1260
28186-
languageName: node
28187-
linkType: hard
28188-
2818928181
"moo@npm:^0.5.0":
2819028182
version: 0.5.2
2819128183
resolution: "moo@npm:0.5.2"

0 commit comments

Comments
 (0)