File tree Expand file tree Collapse file tree
src/components/ExecuteWorkflowPage Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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.
1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16+
1617import React from 'react' ;
1718
1819import type { JsonObject } from '@backstage/types' ;
1920
2021import { Box , Grid , useTheme } from '@material-ui/core' ;
2122import { Alert , AlertTitle } from '@material-ui/lab' ;
22- import { Editor } from '@monaco-editor/react' ;
23+ import Editor , { loader } from '@monaco-editor/react' ;
2324
2425import { 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+
2631const DEFAULT_VALUE = JSON . stringify ( { myKey : 'myValue' } , null , 4 ) ;
2732
2833const JsonTextAreaForm = ( {
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments