IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
소스 검색

Don't break lines in baseCommand json viewer

master
부모
커밋
bef304ae6c
3개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. +1
    -1
      frontend/src/js/component/wb-container-fields.js
  2. +1
    -1
      frontend/src/js/component/wb-container-request-fields.js
  3. +4
    -3
      frontend/src/js/component/wb-json-viewer.js

+ 1
- 1
frontend/src/js/component/wb-container-fields.js 파일 보기

@@ -44,7 +44,7 @@ class WBContainerFields extends Component {
) ],
[ 'Working Directory', item.cwd ],
[ 'Command', (
<WBJsonViewer app={ app } value={ item.command } />
<WBJsonViewer app={ app } value={ item.command } pretty={ false } />
) ],
[ 'Output Path', item.output_path ],
[ 'Mounts', (


+ 1
- 1
frontend/src/js/component/wb-container-request-fields.js 파일 보기

@@ -76,7 +76,7 @@ class WBContainerRequestFields extends Component {
) ],
[ 'Working Directory', item.cwd ],
[ 'Command', (
<WBJsonViewer app={ app } value={ item.command } />
<WBJsonViewer app={ app } value={ item.command } pretty={ false } />
) ],
[ 'Output Path', item.output_path ],
[ 'Output Name', item.output_name ],


+ 4
- 3
frontend/src/js/component/wb-json-viewer.js 파일 보기

@@ -26,9 +26,9 @@ function detectIds(value, app) {
}
class WBJsonViewer extends Component {
render({ value, stringify, app }) {
render({ value, stringify, app, pretty }) {
if (stringify)
value = JSON.stringify(value, null, 2);
value = pretty ? JSON.stringify(value, null, 2) : JSON.stringify(value);
return (
<div class="wb-json-viewer">{ detectIds(value, app) }</div>
);
@@ -36,7 +36,8 @@ class WBJsonViewer extends Component {
}
WBJsonViewer.defaultProps = {
stringify: true
stringify: true,
pretty: true
};
export default WBJsonViewer;

불러오는 중...
취소
저장