Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
882f814e
Commit
882f814e
authored
3 years ago
by
Yamagishi Kazutoshi
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Remove legacy decorators syntax
parent
f804c009
Changes
120
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
app/javascript/mastodon/features/audio/index.js
+2
-1
app/javascript/mastodon/features/audio/index.js
app/javascript/mastodon/features/blocks/index.js
+2
-2
app/javascript/mastodon/features/blocks/index.js
app/javascript/mastodon/features/bookmarked_statuses/index.js
+2
-2
...javascript/mastodon/features/bookmarked_statuses/index.js
app/javascript/mastodon/features/community_timeline/components/column_settings.js
+2
-1
...features/community_timeline/components/column_settings.js
app/javascript/mastodon/features/community_timeline/index.js
+2
-2
app/javascript/mastodon/features/community_timeline/index.js
app/javascript/mastodon/features/compose/components/action_bar.js
+2
-1
...script/mastodon/features/compose/components/action_bar.js
app/javascript/mastodon/features/compose/components/compose_form.js
+2
-1
...ript/mastodon/features/compose/components/compose_form.js
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
+5
-3
...odon/features/compose/components/emoji_picker_dropdown.js
app/javascript/mastodon/features/compose/components/language_dropdown.js
+2
-1
...mastodon/features/compose/components/language_dropdown.js
app/javascript/mastodon/features/compose/components/poll_button.js
+2
-2
...cript/mastodon/features/compose/components/poll_button.js
app/javascript/mastodon/features/compose/components/poll_form.js
+5
-4
...ascript/mastodon/features/compose/components/poll_form.js
app/javascript/mastodon/features/compose/components/privacy_dropdown.js
+2
-1
.../mastodon/features/compose/components/privacy_dropdown.js
app/javascript/mastodon/features/compose/components/reply_indicator.js
+2
-1
...t/mastodon/features/compose/components/reply_indicator.js
app/javascript/mastodon/features/compose/components/search.js
+2
-1
...javascript/mastodon/features/compose/components/search.js
app/javascript/mastodon/features/compose/components/search_results.js
+2
-1
...pt/mastodon/features/compose/components/search_results.js
app/javascript/mastodon/features/compose/components/upload_button.js
+2
-2
...ipt/mastodon/features/compose/components/upload_button.js
app/javascript/mastodon/features/compose/index.js
+2
-2
app/javascript/mastodon/features/compose/index.js
app/javascript/mastodon/features/direct_timeline/components/conversation.js
+2
-1
...todon/features/direct_timeline/components/conversation.js
app/javascript/mastodon/features/direct_timeline/index.js
+2
-2
app/javascript/mastodon/features/direct_timeline/index.js
app/javascript/mastodon/features/directory/components/account_card.js
+2
-3
...pt/mastodon/features/directory/components/account_card.js
with
46 additions
and
34 deletions
+46
-34
app/javascript/mastodon/features/audio/index.js
+
2
-
1
View file @
882f814e
...
...
@@ -20,7 +20,6 @@ const messages = defineMessages({
const
TICK_SIZE
=
10
;
const
PADDING
=
180
;
export
default
@
injectIntl
class
Audio
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -519,3 +518,5 @@ class Audio extends React.PureComponent {
}
}
export
default
injectIntl
(
Audio
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/blocks/index.js
+
2
-
2
View file @
882f814e
...
...
@@ -22,8 +22,6 @@ const mapStateToProps = state => ({
isLoading
:
state
.
getIn
([
'
user_lists
'
,
'
blocks
'
,
'
isLoading
'
],
true
),
});
export
default
@
connect
(
mapStateToProps
)
@
injectIntl
class
Blocks
extends
ImmutablePureComponent
{
static
propTypes
=
{
...
...
@@ -77,3 +75,5 @@ class Blocks extends ImmutablePureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
injectIntl
(
Blocks
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/bookmarked_statuses/index.js
+
2
-
2
View file @
882f814e
...
...
@@ -21,8 +21,6 @@ const mapStateToProps = state => ({
hasMore
:
!!
state
.
getIn
([
'
status_lists
'
,
'
bookmarks
'
,
'
next
'
]),
});
export
default
@
connect
(
mapStateToProps
)
@
injectIntl
class
Bookmarks
extends
ImmutablePureComponent
{
static
propTypes
=
{
...
...
@@ -100,3 +98,5 @@ class Bookmarks extends ImmutablePureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
injectIntl
(
Bookmarks
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/community_timeline/components/column_settings.js
+
2
-
1
View file @
882f814e
...
...
@@ -4,7 +4,6 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
import
{
injectIntl
,
FormattedMessage
}
from
'
react-intl
'
;
import
SettingToggle
from
'
../../notifications/components/setting_toggle
'
;
export
default
@
injectIntl
class
ColumnSettings
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -27,3 +26,5 @@ class ColumnSettings extends React.PureComponent {
}
}
export
default
injectIntl
(
ColumnSettings
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/community_timeline/index.js
+
2
-
2
View file @
882f814e
...
...
@@ -27,8 +27,6 @@ const mapStateToProps = (state, { columnId }) => {
};
};
export
default
@
connect
(
mapStateToProps
)
@
injectIntl
class
CommunityTimeline
extends
React
.
PureComponent
{
static
contextTypes
=
{
...
...
@@ -133,3 +131,5 @@ class CommunityTimeline extends React.PureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
injectIntl
(
CommunityTimeline
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/compose/components/action_bar.js
+
2
-
1
View file @
882f814e
...
...
@@ -19,7 +19,6 @@ const messages = defineMessages({
bookmarks
:
{
id
:
'
navigation_bar.bookmarks
'
,
defaultMessage
:
'
Bookmarks
'
},
});
export
default
@
injectIntl
class
ActionBar
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -63,3 +62,5 @@ class ActionBar extends React.PureComponent {
}
}
export
default
injectIntl
(
ActionBar
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/compose/components/compose_form.js
+
2
-
1
View file @
882f814e
...
...
@@ -32,7 +32,6 @@ const messages = defineMessages({
saveChanges
:
{
id
:
'
compose_form.save_changes
'
,
defaultMessage
:
'
Save changes
'
},
});
export
default
@
injectIntl
class
ComposeForm
extends
ImmutablePureComponent
{
static
contextTypes
=
{
...
...
@@ -287,3 +286,5 @@ class ComposeForm extends ImmutablePureComponent {
}
}
export
default
injectIntl
(
ComposeForm
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
+
5
-
3
View file @
882f814e
...
...
@@ -144,8 +144,7 @@ class ModifierPicker extends React.PureComponent {
}
@
injectIntl
class
EmojiPickerMenu
extends
React
.
PureComponent
{
class
EmojiPickerMenuImpl
extends
React
.
PureComponent
{
static
propTypes
=
{
custom_emojis
:
ImmutablePropTypes
.
list
,
...
...
@@ -308,7 +307,8 @@ class EmojiPickerMenu extends React.PureComponent {
}
export
default
@
injectIntl
const
EmojiPickerMenu
=
injectIntl
(
EmojiPickerMenuImpl
);
class
EmojiPickerDropdown
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -410,3 +410,5 @@ class EmojiPickerDropdown extends React.PureComponent {
}
}
export
default
injectIntl
(
EmojiPickerDropdown
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/compose/components/language_dropdown.js
+
2
-
1
View file @
882f814e
...
...
@@ -256,7 +256,6 @@ class LanguageDropdownMenu extends React.PureComponent {
}
export
default
@
injectIntl
class
LanguageDropdown
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -330,3 +329,5 @@ class LanguageDropdown extends React.PureComponent {
}
}
export
default
injectIntl
(
LanguageDropdown
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/compose/components/poll_button.js
+
2
-
2
View file @
882f814e
...
...
@@ -13,8 +13,6 @@ const iconStyle = {
lineHeight
:
'
27px
'
,
};
export
default
@
injectIntl
class
PollButton
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -53,3 +51,5 @@ class PollButton extends React.PureComponent {
}
}
export
default
injectIntl
(
PollButton
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/compose/components/poll_form.js
+
5
-
4
View file @
882f814e
...
...
@@ -20,8 +20,7 @@ const messages = defineMessages({
days
:
{
id
:
'
intervals.full.days
'
,
defaultMessage
:
'
{number, plural, one {# day} other {# days}}
'
},
});
@
injectIntl
class
Option
extends
React
.
PureComponent
{
class
OptionIntl
extends
React
.
PureComponent
{
static
propTypes
=
{
title
:
PropTypes
.
string
.
isRequired
,
...
...
@@ -110,8 +109,8 @@ class Option extends React.PureComponent {
}
export
default
@
injectIntl
const
Option
=
injectIntl
(
OptionIntl
);
class
PollForm
extends
ImmutablePureComponent
{
static
propTypes
=
{
...
...
@@ -175,3 +174,5 @@ class PollForm extends ImmutablePureComponent {
}
}
export
default
injectIntl
(
PollForm
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/compose/components/privacy_dropdown.js
+
2
-
1
View file @
882f814e
...
...
@@ -148,7 +148,6 @@ class PrivacyDropdownMenu extends React.PureComponent {
}
export
default
@
injectIntl
class
PrivacyDropdown
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -286,3 +285,5 @@ class PrivacyDropdown extends React.PureComponent {
}
}
export
default
injectIntl
(
PrivacyDropdown
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/compose/components/reply_indicator.js
+
2
-
1
View file @
882f814e
...
...
@@ -12,7 +12,6 @@ const messages = defineMessages({
cancel
:
{
id
:
'
reply_indicator.cancel
'
,
defaultMessage
:
'
Cancel
'
},
});
export
default
@
injectIntl
class
ReplyIndicator
extends
ImmutablePureComponent
{
static
contextTypes
=
{
...
...
@@ -69,3 +68,5 @@ class ReplyIndicator extends ImmutablePureComponent {
}
}
export
default
injectIntl
(
ReplyIndicator
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/compose/components/search.js
+
2
-
1
View file @
882f814e
...
...
@@ -44,7 +44,6 @@ class SearchPopout extends React.PureComponent {
}
export
default
@
injectIntl
class
Search
extends
React
.
PureComponent
{
static
contextTypes
=
{
...
...
@@ -148,3 +147,5 @@ class Search extends React.PureComponent {
}
}
export
default
injectIntl
(
Search
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/compose/components/search_results.js
+
2
-
1
View file @
882f814e
...
...
@@ -14,7 +14,6 @@ const messages = defineMessages({
dismissSuggestion
:
{
id
:
'
suggestions.dismiss
'
,
defaultMessage
:
'
Dismiss suggestion
'
},
});
export
default
@
injectIntl
class
SearchResults
extends
ImmutablePureComponent
{
static
propTypes
=
{
...
...
@@ -138,3 +137,5 @@ class SearchResults extends ImmutablePureComponent {
}
}
export
default
injectIntl
(
SearchResults
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/compose/components/upload_button.js
+
2
-
2
View file @
882f814e
...
...
@@ -23,8 +23,6 @@ const iconStyle = {
lineHeight
:
'
27px
'
,
};
export
default
@
connect
(
makeMapStateToProps
)
@
injectIntl
class
UploadButton
extends
ImmutablePureComponent
{
static
propTypes
=
{
...
...
@@ -81,3 +79,5 @@ class UploadButton extends ImmutablePureComponent {
}
}
export
default
connect
(
makeMapStateToProps
)(
injectIntl
(
UploadButton
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/compose/index.js
+
2
-
2
View file @
882f814e
...
...
@@ -36,8 +36,6 @@ const mapStateToProps = (state, ownProps) => ({
showSearch
:
ownProps
.
multiColumn
?
state
.
getIn
([
'
search
'
,
'
submitted
'
])
&&
!
state
.
getIn
([
'
search
'
,
'
hidden
'
])
:
ownProps
.
isSearchPage
,
});
export
default
@
connect
(
mapStateToProps
)
@
injectIntl
class
Compose
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -147,3 +145,5 @@ class Compose extends React.PureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
injectIntl
(
Compose
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/direct_timeline/components/conversation.js
+
2
-
1
View file @
882f814e
...
...
@@ -24,7 +24,6 @@ const messages = defineMessages({
unmuteConversation
:
{
id
:
'
status.unmute_conversation
'
,
defaultMessage
:
'
Unmute conversation
'
},
});
export
default
@
injectIntl
class
Conversation
extends
ImmutablePureComponent
{
static
contextTypes
=
{
...
...
@@ -198,3 +197,5 @@ class Conversation extends ImmutablePureComponent {
}
}
export
default
injectIntl
(
Conversation
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/direct_timeline/index.js
+
2
-
2
View file @
882f814e
...
...
@@ -13,8 +13,6 @@ const messages = defineMessages({
title
:
{
id
:
'
column.direct
'
,
defaultMessage
:
'
Direct messages
'
},
});
export
default
@
connect
()
@
injectIntl
class
DirectTimeline
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -99,3 +97,5 @@ class DirectTimeline extends React.PureComponent {
}
}
export
default
connect
()(
injectIntl
(
DirectTimeline
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/directory/components/account_card.js
+
2
-
3
View file @
882f814e
...
...
@@ -83,9 +83,6 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
});
export
default
@
injectIntl
@
connect
(
makeMapStateToProps
,
mapDispatchToProps
)
class
AccountCard
extends
ImmutablePureComponent
{
static
propTypes
=
{
...
...
@@ -225,3 +222,5 @@ class AccountCard extends ImmutablePureComponent {
}
}
export
default
injectIntl
(
connect
(
makeMapStateToProps
,
mapDispatchToProps
)(
AccountCard
));
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
6
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment