mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: fix #113
This commit is contained in:
1 parent
fa4b7b6f33
commit
3383f5529b
10 files changed
+35
-22
No files matched your search
@@ -1,11 +1,14 @@
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import AnsiUp from 'ansi_up';
|
||||
|
||||
import i18n from 'vj/utils/i18n';
|
||||
import Icon from 'vj/components/react/IconComponent';
|
||||
import Panel from './PanelComponent';
|
||||
import DataInput from './DataInputComponent';
|
||||
|
||||
const AU = new AnsiUp();
|
||||
|
||||
const mapStateToProps = (state) => ({
|
||||
input: state.pretest.input,
|
||||
output: state.pretest.output,
|
||||
@@ -44,7 +47,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadPret
|
||||
/>
|
||||
<DataInput
|
||||
title={i18n('Output')}
|
||||
value={this.props.output}
|
||||
value={AU.ansi_to_html(this.props.output)}
|
||||
html
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user