Permalink
Browse files

Upgrade Babel to version 7.0.0 (#5925)

  • Loading branch information...
ykzts authored and Gargron committed Sep 14, 2018
1 parent 64a5561 commit 0ddbccf7e6303f3b524628e210bdba5654d5c421
Showing with 2,387 additions and 2,322 deletions.
  1. +0 −66 .babelrc
  2. +1 −1 Gemfile
  3. +2 −2 Gemfile.lock
  4. +0 −6 app/javascript/mastodon/components/__tests__/__snapshots__/button-test.js.snap
  5. +2 −2 app/javascript/mastodon/components/account.js
  6. +2 −2 app/javascript/mastodon/components/column_header.js
  7. +2 −2 app/javascript/mastodon/components/domain.js
  8. +2 −2 app/javascript/mastodon/components/load_gap.js
  9. +2 −2 app/javascript/mastodon/components/media_gallery.js
  10. +2 −2 app/javascript/mastodon/components/relative_timestamp.js
  11. +2 −2 app/javascript/mastodon/components/status.js
  12. +2 −2 app/javascript/mastodon/components/status_action_bar.js
  13. +2 −2 app/javascript/mastodon/features/account/components/action_bar.js
  14. +2 −2 app/javascript/mastodon/features/account/components/header.js
  15. +2 −2 app/javascript/mastodon/features/account_gallery/index.js
  16. +2 −2 app/javascript/mastodon/features/account_timeline/index.js
  17. +2 −2 app/javascript/mastodon/features/blocks/index.js
  18. +2 −2 app/javascript/mastodon/features/community_timeline/components/column_settings.js
  19. +2 −2 app/javascript/mastodon/features/community_timeline/index.js
  20. +2 −2 app/javascript/mastodon/features/compose/components/action_bar.js
  21. +2 −2 app/javascript/mastodon/features/compose/components/compose_form.js
  22. +2 −2 app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
  23. +2 −2 app/javascript/mastodon/features/compose/components/privacy_dropdown.js
  24. +2 −2 app/javascript/mastodon/features/compose/components/reply_indicator.js
  25. +2 −2 app/javascript/mastodon/features/compose/components/search.js
  26. +2 −2 app/javascript/mastodon/features/compose/components/upload.js
  27. +2 −2 app/javascript/mastodon/features/compose/components/upload_button.js
  28. +2 −2 app/javascript/mastodon/features/compose/index.js
  29. +2 −2 app/javascript/mastodon/features/direct_timeline/components/column_settings.js
  30. +2 −2 app/javascript/mastodon/features/direct_timeline/index.js
  31. +2 −2 app/javascript/mastodon/features/domain_blocks/index.js
  32. +2 −2 app/javascript/mastodon/features/favourited_statuses/index.js
  33. +2 −2 app/javascript/mastodon/features/favourites/index.js
  34. +2 −2 app/javascript/mastodon/features/follow_requests/components/account_authorize.js
  35. +2 −2 app/javascript/mastodon/features/follow_requests/index.js
  36. +2 −2 app/javascript/mastodon/features/followers/index.js
  37. +2 −2 app/javascript/mastodon/features/following/index.js
  38. +2 −2 app/javascript/mastodon/features/getting_started/index.js
  39. +2 −2 app/javascript/mastodon/features/hashtag_timeline/index.js
  40. +2 −2 app/javascript/mastodon/features/home_timeline/components/column_settings.js
  41. +2 −2 app/javascript/mastodon/features/home_timeline/index.js
  42. +2 −2 app/javascript/mastodon/features/keyboard_shortcuts/index.js
  43. +2 −2 app/javascript/mastodon/features/list_editor/components/account.js
  44. +2 −2 app/javascript/mastodon/features/list_editor/components/search.js
  45. +2 −2 app/javascript/mastodon/features/list_editor/index.js
  46. +2 −2 app/javascript/mastodon/features/list_timeline/index.js
  47. +2 −2 app/javascript/mastodon/features/lists/components/new_list_form.js
  48. +2 −2 app/javascript/mastodon/features/lists/index.js
  49. +2 −2 app/javascript/mastodon/features/mutes/index.js
  50. +2 −2 app/javascript/mastodon/features/notifications/components/notification.js
  51. +2 −2 app/javascript/mastodon/features/notifications/index.js
  52. +2 −2 app/javascript/mastodon/features/pinned_statuses/index.js
  53. +2 −2 app/javascript/mastodon/features/public_timeline/index.js
  54. +2 −2 app/javascript/mastodon/features/reblogs/index.js
  55. +2 −2 app/javascript/mastodon/features/standalone/community_timeline/index.js
  56. +2 −2 app/javascript/mastodon/features/standalone/hashtag_timeline/index.js
  57. +2 −2 app/javascript/mastodon/features/standalone/public_timeline/index.js
  58. +2 −2 app/javascript/mastodon/features/status/components/action_bar.js
  59. +2 −2 app/javascript/mastodon/features/status/index.js
  60. +2 −2 app/javascript/mastodon/features/ui/components/boost_modal.js
  61. +2 −2 app/javascript/mastodon/features/ui/components/columns_area.js
  62. +2 −2 app/javascript/mastodon/features/ui/components/confirmation_modal.js
  63. +2 −2 app/javascript/mastodon/features/ui/components/embed_modal.js
  64. +2 −2 app/javascript/mastodon/features/ui/components/focal_point_modal.js
  65. +2 −2 app/javascript/mastodon/features/ui/components/media_modal.js
  66. +2 −2 app/javascript/mastodon/features/ui/components/mute_modal.js
  67. +2 −2 app/javascript/mastodon/features/ui/components/onboarding_modal.js
  68. +2 −2 app/javascript/mastodon/features/ui/components/report_modal.js
  69. +2 −2 app/javascript/mastodon/features/ui/components/tabs_bar.js
  70. +2 −2 app/javascript/mastodon/features/ui/index.js
  71. +2 −2 app/javascript/mastodon/features/video/index.js
  72. +65 −0 babel.config.js
  73. +1 −1 bin/webpack
  74. +1 −1 bin/webpack-dev-server
  75. +0 −1 config/webpack/loaders/babel.js
  76. +0 −1 config/webpack/production.js
  77. +44 −36 package.json
  78. +2,139 −2,073 yarn.lock

This file was deleted.

Oops, something went wrong.
@@ -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'
@@ -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)
@@ -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
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -278,8 +278,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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
Oops, something went wrong.

0 comments on commit 0ddbccf

Please sign in to comment.