dispatch,
getState,
db.transaction('accounts', 'read').objectStore('accounts').index('id'),
- id
+ id,
).then(() => db.close(), error => {
db.close();
throw error;
intersectionObserverWrapper.observe(
id,
this.node,
- this.handleIntersection
+ this.handleIntersection,
);
this.componentMounted = true;
bindToDocument={!multiColumn}
>
{accountIds.map(id =>
- <AccountContainer key={id} id={id} />
+ <AccountContainer key={id} id={id} />,
)}
</ScrollableList>
</Column>
<div className='poll__footer'>
<button disabled={options.size >= 4} className='button button-secondary' onClick={this.handleAddOption}><Icon id='plus' /> <FormattedMessage {...messages.add_option} /></button>
+ {/* eslint-disable-next-line jsx-a11y/no-onchange */}
<select value={expiresIn} onChange={this.handleSelectDuration}>
<option value={300}>{intl.formatMessage(messages.minutes, { number: 5 })}</option>
<option value={1800}>{intl.formatMessage(messages.minutes, { number: 30 })}</option>
bindToDocument={!multiColumn}
>
{domains.map(domain =>
- <DomainContainer key={domain} domain={domain} />
+ <DomainContainer key={domain} domain={domain} />,
)}
</ScrollableList>
</Column>
bindToDocument={!multiColumn}
>
{accountIds.map(id =>
- <AccountContainer key={id} id={id} withNote={false} />
+ <AccountContainer key={id} id={id} withNote={false} />,
)}
</ScrollableList>
</Column>
bindToDocument={!multiColumn}
>
{accountIds.map(id =>
- <AccountAuthorizeContainer key={id} id={id} />
+ <AccountAuthorizeContainer key={id} id={id} />,
)}
</ScrollableList>
</Column>
bindToDocument={!multiColumn}
>
{blockedBy ? [] : accountIds.map(id =>
- <AccountContainer key={id} id={id} withNote={false} />
+ <AccountContainer key={id} id={id} withNote={false} />,
)}
</ScrollableList>
</Column>
bindToDocument={!multiColumn}
>
{blockedBy ? [] : accountIds.map(id =>
- <AccountContainer key={id} id={id} withNote={false} />
+ <AccountContainer key={id} id={id} withNote={false} />,
)}
</ScrollableList>
</Column>
if (profile_directory) {
navItems.push(
- <ColumnLink key={i++} icon='address-book' text={intl.formatMessage(messages.profile_directory)} to='/directory' />
+ <ColumnLink key={i++} icon='address-book' text={intl.formatMessage(messages.profile_directory)} to='/directory' />,
);
height += 48;
}
navItems.push(
- <ColumnSubheading key={i++} text={intl.formatMessage(messages.personal)} />
+ <ColumnSubheading key={i++} text={intl.formatMessage(messages.personal)} />,
);
height += 34;
} else if (profile_directory) {
navItems.push(
- <ColumnLink key={i++} icon='address-book' text={intl.formatMessage(messages.profile_directory)} to='/directory' />
+ <ColumnLink key={i++} icon='address-book' text={intl.formatMessage(messages.profile_directory)} to='/directory' />,
);
height += 48;
<ColumnLink key={i++} icon='envelope' text={intl.formatMessage(messages.direct)} to='/timelines/direct' />,
<ColumnLink key={i++} icon='bookmark' text={intl.formatMessage(messages.bookmarks)} to='/bookmarks' />,
<ColumnLink key={i++} icon='star' text={intl.formatMessage(messages.favourites)} to='/favourites' />,
- <ColumnLink key={i++} icon='list-ul' text={intl.formatMessage(messages.lists)} to='/lists' />
+ <ColumnLink key={i++} icon='list-ul' text={intl.formatMessage(messages.lists)} to='/lists' />,
);
height += 48*4;
bindToDocument={!multiColumn}
>
{lists.map(list =>
- <ColumnLink key={list.get('id')} to={`/timelines/list/${list.get('id')}`} icon='list-ul' text={list.get('title')} />
+ <ColumnLink key={list.get('id')} to={`/timelines/list/${list.get('id')}`} icon='list-ul' text={list.get('title')} />,
)}
</ScrollableList>
</Column>
bindToDocument={!multiColumn}
>
{accountIds.map(id =>
- <AccountContainer key={id} id={id} />
+ <AccountContainer key={id} id={id} />,
)}
</ScrollableList>
</Column>
bindToDocument={!multiColumn}
>
{accountIds.map(id =>
- <AccountContainer key={id} id={id} withNote={false} />
+ <AccountContainer key={id} id={id} withNote={false} />,
)}
</ScrollableList>
</Column>
const wrapper = mount(
<Column heading='notifications'>
<div className='scrollable' />
- </Column>
+ </Column>,
);
wrapper.find(ColumnHeader).find('button').simulate('click');
expect(global.requestAnimationFrame.mock.calls.length).toEqual(1);
mutable.update(usePendingItems ? 'pendingItems' : 'items', list => {
const lastIndex = 1 + list.findLastIndex(
- item => item !== null && (compareId(item.get('id'), items.last().get('id')) > 0 || item.get('id') === items.last().get('id'))
+ item => item !== null && (compareId(item.get('id'), items.last().get('id')) > 0 || item.get('id') === items.last().get('id')),
);
const firstIndex = 1 + list.take(lastIndex).findLastIndex(
- item => item !== null && compareId(item.get('id'), items.first().get('id')) > 0
+ item => item !== null && compareId(item.get('id'), items.first().get('id')) > 0,
);
return list.take(firstIndex).concat(items, list.skip(lastIndex));
return oldIds.take(firstIndex + 1).concat(
isPartial && oldIds.get(firstIndex) !== null ? newIds.unshift(null) : newIds,
- oldIds.skip(lastIndex)
+ oldIds.skip(lastIndex),
);
});
}
return state.update(
action.timeline,
initialTimeline,
- map => map.set('online', false).update(action.usePendingItems ? 'pendingItems' : 'items', items => items.first() ? items.unshift(null) : items)
+ map => map.set('online', false).update(action.usePendingItems ? 'pendingItems' : 'items', items => items.first() ? items.unshift(null) : items),
);
default:
return state;
map.set('account', accountBase);
map.set('filtered', filtered);
});
- }
+ },
);
};
badge: '/badge.png',
data: { access_token, preferred_locale, url: '/web/notifications' },
});
- })
+ }),
);
};
thunk,
loadingBarMiddleware({ promiseTypeSuffixes: ['REQUEST', 'SUCCESS', 'FAIL'] }),
errorsMiddleware(),
- soundsMiddleware()
+ soundsMiddleware(),
), window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__() : f => f));
};
watchOptions: Object.assign(
{},
settings.dev_server.watch_options,
- watchOptions
+ watchOptions,
),
writeToDisk: filePath => /ocr/.test(filePath),
},
Object.keys(themes).reduce((themePaths, name) => {
themePaths[name] = resolve(join(settings.source_path, themes[name]));
return themePaths;
- }, {})
+ }, {}),
),
output: {
// temporary fix for https://github.com/ReactTraining/react-router/issues/5576
// to reduce bundle size
resource.request = resource.request.replace(/^history/, 'history/es');
- }
+ },
),
new MiniCssExtractPlugin({
filename: 'css/[name]-[contenthash:8].css',