Этот коммит содержится в:
Christopher Speller
2016-09-23 12:29:54 -04:00
коммит произвёл GitHub
родитель 214f9c13a2
Коммит 93f2b6a833
73 изменённых файлов: 180 добавлений и 173 удалений

Просмотреть файл

@@ -87,7 +87,7 @@ class PostAttachment extends React.Component {
return '';
}
let fieldTables = [];
const fieldTables = [];
let headerCols = [];
let bodyCols = [];
@@ -104,7 +104,7 @@ class PostAttachment extends React.Component {
>
<thead>
<tr>
{headerCols}
{headerCols}
</tr>
</thead>
<tbody>
@@ -134,8 +134,7 @@ class PostAttachment extends React.Component {
className='attachment-field'
key={'attachment__field-' + i + '__' + nrTables}
dangerouslySetInnerHTML={{__html: TextFormatting.formatText(field.value || '')}}
>
</td>
/>
);
rowPos += 1;
lastWasLong = !(field.short === true);
@@ -175,8 +174,7 @@ class PostAttachment extends React.Component {
<div
className='attachment__thumb-pretext'
dangerouslySetInnerHTML={{__html: TextFormatting.formatText(data.pretext)}}
>
</div>
/>
);
}
@@ -250,8 +248,7 @@ class PostAttachment extends React.Component {
<div
className='attachment__text'
dangerouslySetInnerHTML={{__html: this.state.text}}
>
</div>
/>
);
}
@@ -307,7 +304,7 @@ class PostAttachment extends React.Component {
{fields}
</div>
{thumb}
<div style={{clear: 'both'}}></div>
<div style={{clear: 'both'}}/>
</div>
</div>
</div>

Просмотреть файл

@@ -7,7 +7,7 @@ import React from 'react';
export default class PostAttachmentList extends React.Component {
render() {
let content = [];
const content = [];
this.props.attachments.forEach((attachment, i) => {
content.push(
<PostAttachment

Просмотреть файл

@@ -169,7 +169,7 @@ export default class PostBody extends React.Component {
);
}
let messageWrapper = (
const messageWrapper = (
<div
key={`${post.id}_message`}
id={`${post.id}_message`}

Просмотреть файл

@@ -174,7 +174,7 @@ export default class PostBodyAdditionalContent extends React.Component {
}
if (this.isLinkToggleable()) {
let messageWithToggle = [];
const messageWithToggle = [];
// if message has only one line and starts with a link place toggle in this only line
// else - place it in new line between message and embed

Просмотреть файл

@@ -67,7 +67,7 @@ export default class PostViewCache extends React.Component {
const channels = this.state.channels;
const currentChannelId = this.state.currentChannelId;
let postViews = [];
const postViews = [];
for (let i = 0; i < channels.length; i++) {
postViews.push(
<PostViewController