Skip to content
GitLab
Explore
Projects
Groups
Snippets
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/picture_in_picture/components/footer.js
+2
-2
...mastodon/features/picture_in_picture/components/footer.js
app/javascript/mastodon/features/picture_in_picture/components/header.js
+2
-2
...mastodon/features/picture_in_picture/components/header.js
app/javascript/mastodon/features/picture_in_picture/index.js
+2
-1
app/javascript/mastodon/features/picture_in_picture/index.js
app/javascript/mastodon/features/pinned_statuses/index.js
+2
-2
app/javascript/mastodon/features/pinned_statuses/index.js
app/javascript/mastodon/features/public_timeline/components/column_settings.js
+2
-1
...on/features/public_timeline/components/column_settings.js
app/javascript/mastodon/features/public_timeline/index.js
+2
-2
app/javascript/mastodon/features/public_timeline/index.js
app/javascript/mastodon/features/reblogs/index.js
+2
-2
app/javascript/mastodon/features/reblogs/index.js
app/javascript/mastodon/features/report/category.js
+2
-2
app/javascript/mastodon/features/report/category.js
app/javascript/mastodon/features/report/comment.js
+2
-1
app/javascript/mastodon/features/report/comment.js
app/javascript/mastodon/features/report/rules.js
+2
-1
app/javascript/mastodon/features/report/rules.js
app/javascript/mastodon/features/report/statuses.js
+2
-1
app/javascript/mastodon/features/report/statuses.js
app/javascript/mastodon/features/report/thanks.js
+2
-1
app/javascript/mastodon/features/report/thanks.js
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js
+2
-1
...pt/mastodon/features/standalone/hashtag_timeline/index.js
app/javascript/mastodon/features/standalone/public_timeline/index.js
+2
-1
...ipt/mastodon/features/standalone/public_timeline/index.js
app/javascript/mastodon/features/status/components/action_bar.js
+2
-2
...ascript/mastodon/features/status/components/action_bar.js
app/javascript/mastodon/features/status/components/detailed_status.js
+2
-1
...pt/mastodon/features/status/components/detailed_status.js
app/javascript/mastodon/features/status/index.js
+2
-2
app/javascript/mastodon/features/status/index.js
app/javascript/mastodon/features/ui/components/audio_modal.js
+2
-1
...javascript/mastodon/features/ui/components/audio_modal.js
app/javascript/mastodon/features/ui/components/block_modal.js
+2
-2
...javascript/mastodon/features/ui/components/block_modal.js
app/javascript/mastodon/features/ui/components/boost_modal.js
+2
-2
...javascript/mastodon/features/ui/components/boost_modal.js
with
40 additions
and
30 deletions
+40
-30
app/javascript/mastodon/features/picture_in_picture/components/footer.js
+
2
-
2
View file @
882f814e
...
...
@@ -37,8 +37,6 @@ const makeMapStateToProps = () => {
return
mapStateToProps
;
};
export
default
@
connect
(
makeMapStateToProps
)
@
injectIntl
class
Footer
extends
ImmutablePureComponent
{
static
contextTypes
=
{
...
...
@@ -162,3 +160,5 @@ class Footer extends ImmutablePureComponent {
}
}
export
default
connect
(
makeMapStateToProps
)(
injectIntl
(
Footer
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/picture_in_picture/components/header.js
+
2
-
2
View file @
882f814e
...
...
@@ -17,8 +17,6 @@ const mapStateToProps = (state, { accountId }) => ({
account
:
state
.
getIn
([
'
accounts
'
,
accountId
]),
});
export
default
@
connect
(
mapStateToProps
)
@
injectIntl
class
Header
extends
ImmutablePureComponent
{
static
propTypes
=
{
...
...
@@ -45,3 +43,5 @@ class Header extends ImmutablePureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
injectIntl
(
Header
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/picture_in_picture/index.js
+
2
-
1
View file @
882f814e
...
...
@@ -11,7 +11,6 @@ const mapStateToProps = state => ({
...
state
.
get
(
'
picture_in_picture
'
),
});
export
default
@
connect
(
mapStateToProps
)
class
PictureInPicture
extends
React
.
Component
{
static
propTypes
=
{
...
...
@@ -83,3 +82,5 @@ class PictureInPicture extends React.Component {
}
}
export
default
connect
(
mapStateToProps
)(
PictureInPicture
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/pinned_statuses/index.js
+
2
-
2
View file @
882f814e
...
...
@@ -18,8 +18,6 @@ const mapStateToProps = state => ({
hasMore
:
!!
state
.
getIn
([
'
status_lists
'
,
'
pins
'
,
'
next
'
]),
});
export
default
@
connect
(
mapStateToProps
)
@
injectIntl
class
PinnedStatuses
extends
ImmutablePureComponent
{
static
propTypes
=
{
...
...
@@ -59,3 +57,5 @@ class PinnedStatuses extends ImmutablePureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
injectIntl
(
PinnedStatuses
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/public_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
=
{
...
...
@@ -28,3 +27,5 @@ class ColumnSettings extends React.PureComponent {
}
}
export
default
injectIntl
(
ColumnSettings
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/public_timeline/index.js
+
2
-
2
View file @
882f814e
...
...
@@ -29,8 +29,6 @@ const mapStateToProps = (state, { columnId }) => {
};
};
export
default
@
connect
(
mapStateToProps
)
@
injectIntl
class
PublicTimeline
extends
React
.
PureComponent
{
static
contextTypes
=
{
...
...
@@ -136,3 +134,5 @@ class PublicTimeline extends React.PureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
injectIntl
(
PublicTimeline
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/reblogs/index.js
+
2
-
2
View file @
882f814e
...
...
@@ -20,8 +20,6 @@ const mapStateToProps = (state, props) => ({
accountIds
:
state
.
getIn
([
'
user_lists
'
,
'
reblogged_by
'
,
props
.
params
.
statusId
]),
});
export
default
@
connect
(
mapStateToProps
)
@
injectIntl
class
Reblogs
extends
ImmutablePureComponent
{
static
propTypes
=
{
...
...
@@ -85,3 +83,5 @@ class Reblogs extends ImmutablePureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
injectIntl
(
Reblogs
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/report/category.js
+
2
-
2
View file @
882f814e
...
...
@@ -23,8 +23,6 @@ const mapStateToProps = state => ({
rules
:
state
.
get
(
'
rules
'
),
});
export
default
@
connect
(
mapStateToProps
)
@
injectIntl
class
Category
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -103,3 +101,5 @@ class Category extends React.PureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
injectIntl
(
Category
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/report/comment.js
+
2
-
1
View file @
882f814e
...
...
@@ -8,7 +8,6 @@ const messages = defineMessages({
placeholder
:
{
id
:
'
report.placeholder
'
,
defaultMessage
:
'
Type or paste additional comments
'
},
});
export
default
@
injectIntl
class
Comment
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -81,3 +80,5 @@ class Comment extends React.PureComponent {
}
}
export
default
injectIntl
(
Comment
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/report/rules.js
+
2
-
1
View file @
882f814e
...
...
@@ -10,7 +10,6 @@ const mapStateToProps = state => ({
rules
:
state
.
get
(
'
rules
'
),
});
export
default
@
connect
(
mapStateToProps
)
class
Rules
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -62,3 +61,5 @@ class Rules extends React.PureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
Rules
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/report/statuses.js
+
2
-
1
View file @
882f814e
...
...
@@ -13,7 +13,6 @@ const mapStateToProps = (state, { accountId }) => ({
isLoading
:
state
.
getIn
([
'
timelines
'
,
`account:
${
accountId
}
:with_replies`
,
'
isLoading
'
]),
});
export
default
@
connect
(
mapStateToProps
)
class
Statuses
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -59,3 +58,5 @@ class Statuses extends React.PureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
Statuses
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/report/thanks.js
+
2
-
1
View file @
882f814e
...
...
@@ -12,7 +12,6 @@ import {
const
mapStateToProps
=
()
=>
({});
export
default
@
connect
(
mapStateToProps
)
class
Thanks
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -82,3 +81,5 @@ class Thanks extends React.PureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
Thanks
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js
+
2
-
1
View file @
882f814e
...
...
@@ -15,7 +15,6 @@ const mapStateToProps = (state, { hashtag }) => ({
hasMore
:
state
.
getIn
([
'
timelines
'
,
`hashtag:
${
hashtag
}
`
,
'
hasMore
'
],
false
),
});
export
default
@
connect
(
mapStateToProps
)
class
HashtagTimeline
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -88,3 +87,5 @@ class HashtagTimeline extends React.PureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
HashtagTimeline
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/standalone/public_timeline/index.js
+
2
-
1
View file @
882f814e
...
...
@@ -19,7 +19,6 @@ const mapStateToProps = (state, { local }) => {
};
};
export
default
@
connect
(
mapStateToProps
)
class
PublicTimeline
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -97,3 +96,5 @@ class PublicTimeline extends React.PureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
PublicTimeline
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/status/components/action_bar.js
+
2
-
2
View file @
882f814e
...
...
@@ -44,8 +44,6 @@ const mapStateToProps = (state, { status }) => ({
relationship
:
state
.
getIn
([
'
relationships
'
,
status
.
getIn
([
'
account
'
,
'
id
'
])]),
});
export
default
@
connect
(
mapStateToProps
)
@
injectIntl
class
ActionBar
extends
React
.
PureComponent
{
static
contextTypes
=
{
...
...
@@ -295,3 +293,5 @@ class ActionBar extends React.PureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
injectIntl
(
ActionBar
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/status/components/detailed_status.js
+
2
-
1
View file @
882f814e
...
...
@@ -25,7 +25,6 @@ const messages = defineMessages({
direct_short
:
{
id
:
'
privacy.direct.short
'
,
defaultMessage
:
'
Direct
'
},
});
export
default
@
injectIntl
class
DetailedStatus
extends
ImmutablePureComponent
{
static
contextTypes
=
{
...
...
@@ -271,3 +270,5 @@ class DetailedStatus extends ImmutablePureComponent {
}
}
export
default
injectIntl
(
DetailedStatus
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/status/index.js
+
2
-
2
View file @
882f814e
...
...
@@ -154,8 +154,6 @@ const makeMapStateToProps = () => {
return
mapStateToProps
;
};
export
default
@
injectIntl
@
connect
(
makeMapStateToProps
)
class
Status
extends
ImmutablePureComponent
{
static
contextTypes
=
{
...
...
@@ -597,3 +595,5 @@ class Status extends ImmutablePureComponent {
}
}
export
default
injectIntl
(
connect
(
makeMapStateToProps
)(
Status
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/ui/components/audio_modal.js
+
2
-
1
View file @
882f814e
...
...
@@ -10,7 +10,6 @@ const mapStateToProps = (state, { statusId }) => ({
accountStaticAvatar
:
state
.
getIn
([
'
accounts
'
,
state
.
getIn
([
'
statuses
'
,
statusId
,
'
account
'
]),
'
avatar_static
'
]),
});
export
default
@
connect
(
mapStateToProps
)
class
AudioModal
extends
ImmutablePureComponent
{
static
propTypes
=
{
...
...
@@ -52,3 +51,5 @@ class AudioModal extends ImmutablePureComponent {
}
}
export
default
connect
(
mapStateToProps
)(
AudioModal
);
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/ui/components/block_modal.js
+
2
-
2
View file @
882f814e
...
...
@@ -36,8 +36,6 @@ const mapDispatchToProps = dispatch => {
};
};
export
default
@
connect
(
makeMapStateToProps
,
mapDispatchToProps
)
@
injectIntl
class
BlockModal
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -101,3 +99,5 @@ class BlockModal extends React.PureComponent {
}
}
export
default
connect
(
makeMapStateToProps
,
mapDispatchToProps
)(
injectIntl
(
BlockModal
));
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/ui/components/boost_modal.js
+
2
-
2
View file @
882f814e
...
...
@@ -38,8 +38,6 @@ const mapDispatchToProps = dispatch => {
};
};
export
default
@
connect
(
mapStateToProps
,
mapDispatchToProps
)
@
injectIntl
class
BoostModal
extends
ImmutablePureComponent
{
static
contextTypes
=
{
...
...
@@ -141,3 +139,5 @@ class BoostModal extends ImmutablePureComponent {
}
}
export
default
connect
(
mapStateToProps
,
mapDispatchToProps
)(
injectIntl
(
BoostModal
));
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
Menu
Explore
Projects
Groups
Snippets