File tree Expand file tree Collapse file tree 4 files changed +14
-15
lines changed
src/routes/metadata/components Expand file tree Collapse file tree 4 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 119119 "react-dotdotdot" : " ^1.0.4" ,
120120 "react-gateway" : " ^3.0.0" ,
121121 "react-infinite-scroller" : " ^1.1.1" ,
122- "react-json-editor-ajrm" : " ^2.5.9" ,
123122 "react-json-view" : " ^1.19.1" ,
124123 "react-layout-pane" : " ^0.1.16" ,
125124 "react-modal" : " ^1.9.7" ,
Original file line number Diff line number Diff line change 11import React from 'react'
2- import JSONInput from 'react-json-editor-ajrm'
3- import locale from 'react-json-editor-ajrm/locale/en'
2+ // import JSONInput from 'react-json-editor-ajrm'
3+ // import locale from 'react-json-editor-ajrm/locale/en'
44
55import MobilePage from '../../../components/MobilePage/MobilePage'
66import './FullScreenJSONEditor.scss'
77
88const FullScreenJSONEditor = ( {
9- onJSONEdit,
9+ // onJSONEdit,
1010 onExit,
11- json
11+ // json
1212} ) => (
1313 < MobilePage keepToolbar >
1414 < div styleName = "full-screen-json-editor" >
1515 < button type = "button" className = "tc-btn tc-btn-primary tc-btn-sm" onClick = { onExit } > Restore</ button >
16- < JSONInput
16+ { /* <JSONInput
1717 id="jsonField"
1818 placeholder ={ json }
1919 theme="dark_vscode_tribute"
@@ -22,7 +22,7 @@ const FullScreenJSONEditor = ({
2222 width="100%"
2323 onChange={onJSONEdit}
2424 // onKeyPressUpdate={false}
25- waitAfterKeyPress = { 3000 }
25+ waitAfterKeyPress={3000} */ }
2626 />
2727 </ div >
2828 </ MobilePage >
Original file line number Diff line number Diff line change 33 */
44import React from 'react'
55import PropTypes from 'prop-types'
6- import JSONInput from 'react-json-editor-ajrm'
7- import locale from 'react-json-editor-ajrm/locale/en'
6+ // import JSONInput from 'react-json-editor-ajrm'
7+ // import locale from 'react-json-editor-ajrm/locale/en'
88import _ from 'lodash'
99import update from 'react-addons-update'
1010import Sticky from '../../../components/Sticky'
@@ -586,7 +586,7 @@ class MetaDataPanel extends React.Component {
586586 { ( metadata || isNew ) && ( [ 'projectTemplate' , 'productTemplate' ] . indexOf ( metadataType ) !== - 1 ) && (
587587 < div className = "json_editor_wrapper" >
588588 < button type = "button" className = "tc-btn tc-btn-primary tc-btn-sm maximize-btn" onClick = { this . enterFullScreen } > Maximize</ button >
589- < JSONInput
589+ { /* <JSONInput
590590 id="templateJSON"
591591 placeholder ={ template }
592592 theme="dark_vscode_tribute"
@@ -596,7 +596,7 @@ class MetaDataPanel extends React.Component {
596596 onChange={this.onJSONEdit}
597597 // onKeyPressUpdate={false}
598598 waitAfterKeyPress={3000}
599- />
599+ /> */ }
600600 { /* <ReactJson
601601 src={template}
602602 theme="rjv-default"
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import _ from 'lodash'
55import React , { Component } from 'react'
66import PropTypes from 'prop-types'
77import Modal from 'react-modal'
8- import JSONInput from 'react-json-editor-ajrm'
9- import locale from 'react-json-editor-ajrm/locale/en'
8+ // import JSONInput from 'react-json-editor-ajrm'
9+ // import locale from 'react-json-editor-ajrm/locale/en'
1010import SelectDropdown from '../../../components/SelectDropdown/SelectDropdown'
1111import FormsyForm from 'appirio-tech-react-components/components/Formsy'
1212const TCFormFields = FormsyForm . Fields
@@ -170,7 +170,7 @@ class TemplateForm extends Component {
170170 {
171171 isJSON && (
172172 < div className = "json_editor_wrapper" >
173- < JSONInput
173+ { /* <JSONInput
174174 id={ `${label}JSON` }
175175 placeholder ={ value }
176176 theme="dark_vscode_tribute"
@@ -179,7 +179,7 @@ class TemplateForm extends Component {
179179 // width='0px'
180180 onChange={ (params) => { this.onJSONEdit(field, params) } }
181181 // onKeyPressUpdate={false}
182- waitAfterKeyPress = { 3000 }
182+ waitAfterKeyPress={3000} */ }
183183 />
184184 </ div >
185185 )
You can’t perform that action at this time.
0 commit comments