Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Babel to version 7.0.0 #5925

Merged
merged 1 commit into from Sep 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
66 changes: 0 additions & 66 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -87,7 +87,7 @@ gem 'tty-command', '~> 0.8', require: false
gem 'tty-prompt', '~> 0.16', require: false
gem 'twitter-text', '~> 1.14'
gem 'tzinfo-data', '~> 1.2018'
gem 'webpacker', '~> 3.4'
gem 'webpacker', '~> 3.5'
gem 'webpush'

gem 'json-ld', '~> 2.2'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -627,7 +627,7 @@ GEM
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
webpacker (3.4.3)
webpacker (3.5.5)
activesupport (>= 4.2)
rack-proxy (>= 0.6.1)
railties (>= 4.2)
Expand Down Expand Up @@ -758,7 +758,7 @@ DEPENDENCIES
twitter-text (~> 1.14)
tzinfo-data (~> 1.2018)
webmock (~> 3.3)
webpacker (~> 3.4)
webpacker (~> 3.5)
webpush

RUBY VERSION
Expand Down
Expand Up @@ -3,7 +3,6 @@
exports[`<Button /> adds class "button-secondary" if props.secondary given 1`] = `
<button
className="button button-secondary"
disabled={undefined}
onClick={[Function]}
style={
Object {
Expand All @@ -18,7 +17,6 @@ exports[`<Button /> adds class "button-secondary" if props.secondary given 1`] =
exports[`<Button /> renders a button element 1`] = `
<button
className="button"
disabled={undefined}
onClick={[Function]}
style={
Object {
Expand Down Expand Up @@ -48,7 +46,6 @@ exports[`<Button /> renders a disabled attribute if props.disabled given 1`] = `
exports[`<Button /> renders class="button--block" if props.block given 1`] = `
<button
className="button button--block"
disabled={undefined}
onClick={[Function]}
style={
Object {
Expand All @@ -63,7 +60,6 @@ exports[`<Button /> renders class="button--block" if props.block given 1`] = `
exports[`<Button /> renders the children 1`] = `
<button
className="button"
disabled={undefined}
onClick={[Function]}
style={
Object {
Expand All @@ -82,7 +78,6 @@ exports[`<Button /> renders the children 1`] = `
exports[`<Button /> renders the given text 1`] = `
<button
className="button"
disabled={undefined}
onClick={[Function]}
style={
Object {
Expand All @@ -99,7 +94,6 @@ exports[`<Button /> renders the given text 1`] = `
exports[`<Button /> renders the props.text instead of children 1`] = `
<button
className="button"
disabled={undefined}
onClick={[Function]}
style={
Object {
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/components/account.js
Expand Up @@ -19,8 +19,8 @@ const messages = defineMessages({
unmute_notifications: { id: 'account.unmute_notifications', defaultMessage: 'Unmute notifications from @{name}' },
});

@injectIntl
export default class Account extends ImmutablePureComponent {
export default @injectIntl
class Account extends ImmutablePureComponent {

static propTypes = {
account: ImmutablePropTypes.map.isRequired,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/components/column_header.js
Expand Up @@ -10,8 +10,8 @@ const messages = defineMessages({
moveRight: { id: 'column_header.moveRight_settings', defaultMessage: 'Move column to the right' },
});

@injectIntl
export default class ColumnHeader extends React.PureComponent {
export default @injectIntl
class ColumnHeader extends React.PureComponent {

static contextTypes = {
router: PropTypes.object,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/components/domain.js
Expand Up @@ -8,8 +8,8 @@ const messages = defineMessages({
unblockDomain: { id: 'account.unblock_domain', defaultMessage: 'Unhide {domain}' },
});

@injectIntl
export default class Account extends ImmutablePureComponent {
export default @injectIntl
class Account extends ImmutablePureComponent {

static propTypes = {
domain: PropTypes.string,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/components/load_gap.js
Expand Up @@ -6,8 +6,8 @@ const messages = defineMessages({
load_more: { id: 'status.load_more', defaultMessage: 'Load more' },
});

@injectIntl
export default class LoadGap extends React.PureComponent {
export default @injectIntl
class LoadGap extends React.PureComponent {

static propTypes = {
disabled: PropTypes.bool,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/components/media_gallery.js
Expand Up @@ -179,8 +179,8 @@ class Item extends React.PureComponent {

}

@injectIntl
export default class MediaGallery extends React.PureComponent {
export default @injectIntl
class MediaGallery extends React.PureComponent {

static propTypes = {
sensitive: PropTypes.bool,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/components/relative_timestamp.js
Expand Up @@ -86,8 +86,8 @@ export const timeAgoString = (intl, date, now, year) => {
return relativeTime;
};

@injectIntl
export default class RelativeTimestamp extends React.Component {
export default @injectIntl
class RelativeTimestamp extends React.Component {

static propTypes = {
intl: PropTypes.object.isRequired,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/components/status.js
Expand Up @@ -35,8 +35,8 @@ export const textForScreenReader = (intl, status, rebloggedByText = false) => {
return values.join(', ');
};

@injectIntl
export default class Status extends ImmutablePureComponent {
export default @injectIntl
class Status extends ImmutablePureComponent {

static contextTypes = {
router: PropTypes.object,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/components/status_action_bar.js
Expand Up @@ -42,8 +42,8 @@ const obfuscatedCount = count => {
}
};

@injectIntl
export default class StatusActionBar extends ImmutablePureComponent {
export default @injectIntl
class StatusActionBar extends ImmutablePureComponent {

static contextTypes = {
router: PropTypes.object,
Expand Down
Expand Up @@ -36,8 +36,8 @@ const messages = defineMessages({
unendorse: { id: 'account.unendorse', defaultMessage: 'Don\'t feature on profile' },
});

@injectIntl
export default class ActionBar extends React.PureComponent {
export default @injectIntl
class ActionBar extends React.PureComponent {

static propTypes = {
account: ImmutablePropTypes.map.isRequired,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/features/account/components/header.js
Expand Up @@ -65,8 +65,8 @@ class Avatar extends ImmutablePureComponent {

}

@injectIntl
export default class Header extends ImmutablePureComponent {
export default @injectIntl
class Header extends ImmutablePureComponent {

static propTypes = {
account: ImmutablePropTypes.map,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/features/account_gallery/index.js
Expand Up @@ -43,8 +43,8 @@ class LoadMoreMedia extends ImmutablePureComponent {

}

@connect(mapStateToProps)
export default class AccountGallery extends ImmutablePureComponent {
export default @connect(mapStateToProps)
class AccountGallery extends ImmutablePureComponent {

static propTypes = {
params: PropTypes.object.isRequired,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/features/account_timeline/index.js
Expand Up @@ -23,8 +23,8 @@ const mapStateToProps = (state, { params: { accountId }, withReplies = false })
};
};

@connect(mapStateToProps)
export default class AccountTimeline extends ImmutablePureComponent {
export default @connect(mapStateToProps)
class AccountTimeline extends ImmutablePureComponent {

static propTypes = {
params: PropTypes.object.isRequired,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/features/blocks/index.js
Expand Up @@ -20,9 +20,9 @@ const mapStateToProps = state => ({
accountIds: state.getIn(['user_lists', 'blocks', 'items']),
});

@connect(mapStateToProps)
export default @connect(mapStateToProps)
@injectIntl
export default class Blocks extends ImmutablePureComponent {
class Blocks extends ImmutablePureComponent {

static propTypes = {
params: PropTypes.object.isRequired,
Expand Down
Expand Up @@ -4,8 +4,8 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';

@injectIntl
export default class ColumnSettings extends React.PureComponent {
export default @injectIntl
class ColumnSettings extends React.PureComponent {

static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/features/community_timeline/index.js
Expand Up @@ -25,9 +25,9 @@ const mapStateToProps = (state, { onlyMedia, columnId }) => {
};
};

@connect(mapStateToProps)
export default @connect(mapStateToProps)
@injectIntl
export default class CommunityTimeline extends React.PureComponent {
class CommunityTimeline extends React.PureComponent {

static contextTypes = {
router: PropTypes.object,
Expand Down
Expand Up @@ -17,8 +17,8 @@ const messages = defineMessages({
filters: { id: 'navigation_bar.filters', defaultMessage: 'Muted words' },
});

@injectIntl
export default class ActionBar extends React.PureComponent {
export default @injectIntl
class ActionBar extends React.PureComponent {

static propTypes = {
account: ImmutablePropTypes.map.isRequired,
Expand Down
Expand Up @@ -27,8 +27,8 @@ const messages = defineMessages({
publishLoud: { id: 'compose_form.publish_loud', defaultMessage: '{publish}!' },
});

@injectIntl
export default class ComposeForm extends ImmutablePureComponent {
export default @injectIntl
class ComposeForm extends ImmutablePureComponent {

static propTypes = {
intl: PropTypes.object.isRequired,
Expand Down
Expand Up @@ -277,8 +277,8 @@ class EmojiPickerMenu extends React.PureComponent {

}

@injectIntl
export default class EmojiPickerDropdown extends React.PureComponent {
export default @injectIntl
class EmojiPickerDropdown extends React.PureComponent {

static propTypes = {
custom_emojis: ImmutablePropTypes.list,
Expand Down
Expand Up @@ -149,8 +149,8 @@ class PrivacyDropdownMenu extends React.PureComponent {

}

@injectIntl
export default class PrivacyDropdown extends React.PureComponent {
export default @injectIntl
class PrivacyDropdown extends React.PureComponent {

static propTypes = {
isUserTouching: PropTypes.func,
Expand Down
Expand Up @@ -12,8 +12,8 @@ const messages = defineMessages({
cancel: { id: 'reply_indicator.cancel', defaultMessage: 'Cancel' },
});

@injectIntl
export default class ReplyIndicator extends ImmutablePureComponent {
export default @injectIntl
class ReplyIndicator extends ImmutablePureComponent {

static contextTypes = {
router: PropTypes.object,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/features/compose/components/search.js
Expand Up @@ -43,8 +43,8 @@ class SearchPopout extends React.PureComponent {

}

@injectIntl
export default class Search extends React.PureComponent {
export default @injectIntl
class Search extends React.PureComponent {

static propTypes = {
value: PropTypes.string.isRequired,
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/mastodon/features/compose/components/upload.js
Expand Up @@ -11,8 +11,8 @@ const messages = defineMessages({
description: { id: 'upload_form.description', defaultMessage: 'Describe for the visually impaired' },
});

@injectIntl
export default class Upload extends ImmutablePureComponent {
export default @injectIntl
class Upload extends ImmutablePureComponent {

static propTypes = {
media: ImmutablePropTypes.map.isRequired,
Expand Down
Expand Up @@ -23,9 +23,9 @@ const iconStyle = {
lineHeight: '27px',
};

@connect(makeMapStateToProps)
export default @connect(makeMapStateToProps)
@injectIntl
export default class UploadButton extends ImmutablePureComponent {
class UploadButton extends ImmutablePureComponent {

static propTypes = {
disabled: PropTypes.bool,
Expand Down