Skip to content

Commit 8f9e033

Browse files
Merge pull request #60 from quick123official/hotfix/2.4.1
Hotfix/2.4.1
2 parents 731e495 + 6d8e128 commit 8f9e033

File tree

6 files changed

+24
-7
lines changed

6 files changed

+24
-7
lines changed

config-overrides.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,18 @@ const path = require("path");
2323
function resolve(dir) {
2424
return path.join(__dirname, ".", dir);
2525
}
26+
/**
27+
* add monaco-editor-webpack-plugin
28+
*/
29+
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
2630
module.exports = function override(config, env) {
2731
config.resolve.alias = {
2832
"@": resolve("src"),
2933
};
34+
config.plugins.push(
35+
new MonacoWebpackPlugin({
36+
languages: ["json"],
37+
})
38+
);
3039
return config;
31-
};
40+
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "QuickRedis",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"private": true,
55
"description": "QuickRedis",
66
"author": "https://quick123.net/",
@@ -86,6 +86,7 @@
8686
"global": "^4.4.0",
8787
"less": "^3.10.3",
8888
"less-loader": "^5.0.0",
89+
"monaco-editor-webpack-plugin": "^5.0.0",
8990
"node-uuid": "^1.4.8",
9091
"react": "^16.13.1",
9192
"react-app-rewired": "^2.1.8",

src/components/QuickMonacoEditor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class QuickMonacoEditor extends React.Component {
116116
<MonacoEditor
117117
ref="monacoEditor"
118118
height={this.props.height}
119-
language="javascript"
119+
language="json"
120120
theme="vs"
121121
value={this.props.value}
122122
defaultValue=""

src/pages/HostKeyList/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ class HostKeyList extends Component {
415415
onCancel={this.handleModalCancel.bind(this)}
416416
okButtonProps={{ disabled: this.state.modal.type === 1 }}
417417
forceRender={this.state.modal.forceRender}
418-
width={"90%"}
419-
height={"80%"}
418+
width={"60%"}
419+
height={"40%"}
420420
>
421421
<Form
422422
{...this.layout}

src/pages/HostKeySet/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ class HostKeySet extends Component {
448448
onCancel={this.handleModalCancel.bind(this)}
449449
okButtonProps={{ disabled: this.state.modal.type === 1 }}
450450
forceRender={this.state.modal.forceRender}
451-
width={"90%"}
452-
height={"80%"}
451+
width={"60%"}
452+
height={"40%"}
453453
>
454454
<Form
455455
{...this.layout}

yarn.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8618,6 +8618,13 @@ moment@^2.24.0, moment@^2.25.3:
86188618
resolved "https://registry.npm.taobao.org/moment/download/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3"
86198619
integrity sha1-sr52n6MZQL6e7qZGnAdeNQBvo9M=
86208620

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+
86218628
monaco-editor@*:
86228629
version "0.29.1"
86238630
resolved "https://registry.npmmirror.com/monaco-editor/download/monaco-editor-0.29.1.tgz#6ee93d8a5320704d48fd7058204deed72429c020"

0 commit comments

Comments
 (0)