зеркало из https://github.com/microsoft/mouselog.git
Improve "view code" UI.
This commit is contained in:
Родитель
a41542b4ac
Коммит
726240d9b1
|
@ -29,9 +29,9 @@ class Config extends React.Component {
|
|||
|
||||
getConfigText(website) {
|
||||
let res = "let config = {";
|
||||
|
||||
|
||||
res += `\n uploadEndpoint: "${website.trackConfig.uploadEndpoint}",`;
|
||||
|
||||
|
||||
res += `\n websiteId: "${website.id}",`;
|
||||
|
||||
if (website.trackConfig.endpointType !== "absolute") {
|
||||
|
@ -98,7 +98,7 @@ class Config extends React.Component {
|
|||
// How do I crop the contents of an Iframe to show a part of a page?
|
||||
// https://stackoverflow.com/questions/5676672/how-do-i-crop-the-contents-of-an-iframe-to-show-a-part-of-a-page
|
||||
return (
|
||||
<div style={{width: "650px"}}>
|
||||
<div style={{width: "700px"}}>
|
||||
<CodeMirror
|
||||
editorDidMount={editor => {
|
||||
this.instance = editor;
|
||||
|
|
|
@ -52,12 +52,12 @@ class ConfigEdit extends React.Component {
|
|||
}
|
||||
</Select>
|
||||
</Col>
|
||||
<Col span={1} >
|
||||
<Col span={2} >
|
||||
</Col>
|
||||
<Col style={{marginTop: '5px'}} span={2}>
|
||||
Upload Endpoint:
|
||||
</Col>
|
||||
<Col span={16} >
|
||||
<Col span={15} >
|
||||
<Input prefix={<LinkOutlined/>} value={this.props.website.trackConfig.uploadEndpoint} onChange={e => {
|
||||
this.updateConfigField("uploadEndpoint", e.target.value);
|
||||
}}/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче