File tree Expand file tree Collapse file tree 6 files changed +24
-7
lines changed
components/QuickMonacoEditor Expand file tree Collapse file tree 6 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,18 @@ const path = require("path");
23
23
function resolve ( dir ) {
24
24
return path . join ( __dirname , "." , dir ) ;
25
25
}
26
+ /**
27
+ * add monaco-editor-webpack-plugin
28
+ */
29
+ const MonacoWebpackPlugin = require ( "monaco-editor-webpack-plugin" ) ;
26
30
module . exports = function override ( config , env ) {
27
31
config . resolve . alias = {
28
32
"@" : resolve ( "src" ) ,
29
33
} ;
34
+ config . plugins . push (
35
+ new MonacoWebpackPlugin ( {
36
+ languages : [ "json" ] ,
37
+ } )
38
+ ) ;
30
39
return config ;
31
- } ;
40
+ } ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " QuickRedis" ,
3
- "version" : " 2.4.0 " ,
3
+ "version" : " 2.4.1 " ,
4
4
"private" : true ,
5
5
"description" : " QuickRedis" ,
6
6
"author" : " https://quick123.net/" ,
86
86
"global" : " ^4.4.0" ,
87
87
"less" : " ^3.10.3" ,
88
88
"less-loader" : " ^5.0.0" ,
89
+ "monaco-editor-webpack-plugin" : " ^5.0.0" ,
89
90
"node-uuid" : " ^1.4.8" ,
90
91
"react" : " ^16.13.1" ,
91
92
"react-app-rewired" : " ^2.1.8" ,
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ class QuickMonacoEditor extends React.Component {
116
116
< MonacoEditor
117
117
ref = "monacoEditor"
118
118
height = { this . props . height }
119
- language = "javascript "
119
+ language = "json "
120
120
theme = "vs"
121
121
value = { this . props . value }
122
122
defaultValue = ""
Original file line number Diff line number Diff line change @@ -415,8 +415,8 @@ class HostKeyList extends Component {
415
415
onCancel = { this . handleModalCancel . bind ( this ) }
416
416
okButtonProps = { { disabled : this . state . modal . type === 1 } }
417
417
forceRender = { this . state . modal . forceRender }
418
- width = { "90 %" }
419
- height = { "80 %" }
418
+ width = { "60 %" }
419
+ height = { "40 %" }
420
420
>
421
421
< Form
422
422
{ ...this . layout }
Original file line number Diff line number Diff line change @@ -448,8 +448,8 @@ class HostKeySet extends Component {
448
448
onCancel = { this . handleModalCancel . bind ( this ) }
449
449
okButtonProps = { { disabled : this . state . modal . type === 1 } }
450
450
forceRender = { this . state . modal . forceRender }
451
- width = { "90 %" }
452
- height = { "80 %" }
451
+ width = { "60 %" }
452
+ height = { "40 %" }
453
453
>
454
454
< Form
455
455
{ ...this . layout }
Original file line number Diff line number Diff line change @@ -8618,6 +8618,13 @@ moment@^2.24.0, moment@^2.25.3:
8618
8618
resolved "https://registry.npm.taobao.org/moment/download/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3"
8619
8619
integrity sha1-sr52n6MZQL6e7qZGnAdeNQBvo9M=
8620
8620
8621
+ monaco-editor-webpack-plugin@^5.0.0:
8622
+ version "5.0.0"
8623
+ resolved "https://registry.npmmirror.com/monaco-editor-webpack-plugin/download/monaco-editor-webpack-plugin-5.0.0.tgz#796c50fb4ce3f75f45bf18dfa3c31f85dc9a05da"
8624
+ integrity sha1-eWxQ+0zj919Fvxjfo8MfhdyaBdo=
8625
+ dependencies:
8626
+ loader-utils "^2.0.0"
8627
+
8621
8628
monaco-editor@*:
8622
8629
version "0.29.1"
8623
8630
resolved "https://registry.npmmirror.com/monaco-editor/download/monaco-editor-0.29.1.tgz#6ee93d8a5320704d48fd7058204deed72429c020"
You can’t perform that action at this time.
0 commit comments