opti: update editor

This commit is contained in:
suxiaoxin 2018-04-10 14:36:37 +08:00
parent a194ff41d1
commit a5728892c3
3 changed files with 5 additions and 4 deletions

View File

@ -12,6 +12,7 @@ import mockEditor from 'client/components/AceEditor/mockEditor';
import axios from 'axios';
import formats from 'common/formats';
const jSchema = require('json-schema-editor-visual');
const ResBodySchema = jSchema({ lang: 'zh_CN', format: formats });
const ReqBodySchema = jSchema({ lang: 'zh_CN' });
const TabPane = Tabs.TabPane;

6
package-lock.json generated
View File

@ -10450,9 +10450,9 @@
"integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
},
"json-schema-editor-visual": {
"version": "1.0.5",
"resolved": "http://registry.npm.taobao.org/json-schema-editor-visual/download/json-schema-editor-visual-1.0.5.tgz",
"integrity": "sha1-HZDynHSHIoPG8rAqMd30cySSsP4=",
"version": "1.0.8",
"resolved": "http://registry.npm.taobao.org/json-schema-editor-visual/download/json-schema-editor-visual-1.0.8.tgz",
"integrity": "sha1-i2nWHjdyj6QHudV/iY7Sz4i0He8=",
"dev": true,
"requires": {
"antd": "3.2.2",

View File

@ -108,7 +108,7 @@
"fast-sass-loader-china": "1.2.5",
"ghooks": "^2.0.0",
"happypack": "^4.0.0-beta.5",
"json-schema-editor-visual": "^1.0.5",
"json-schema-editor-visual": "^1.0.8",
"less": "^2.7.2",
"less-loader": "^4.0.5",
"markdown-it-include": "^1.0.0",