Fix: ブラウザ上の警告、翻訳

This commit is contained in:
KMY 2024-06-04 08:19:14 +09:00
parent 8927b1444b
commit 2a7c52aa19
4 changed files with 5 additions and 5 deletions

View file

@ -11,6 +11,7 @@ import { HotKeys } from 'react-hotkeys';
import AttachmentList from 'mastodon/components/attachment_list';
import { Icon } from 'mastodon/components/icon';
import { WithRouterPropTypes } from 'mastodon/utils/react_router';
import Card from '../features/status/components/card';
// We use the component (and not the container) since we do not want
@ -66,10 +67,6 @@ const messages = defineMessages({
class CompactedStatus extends ImmutablePureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
status: ImmutablePropTypes.map,
previousId: PropTypes.string,
@ -94,6 +91,7 @@ class CompactedStatus extends ImmutablePureComponent {
cacheMediaWidth: PropTypes.func,
cachedMediaWidth: PropTypes.number,
history: PropTypes.func,
...WithRouterPropTypes,
};
// Avoid checking props that are functions (and whose equality will always

View file

@ -18,7 +18,7 @@ class EmojiReactionButton extends PureComponent {
domain: PropTypes.string,
url: PropTypes.string,
staticUrl: PropTypes.string,
count: PropTypes.number.isRequired,
count: PropTypes.number,
me: PropTypes.bool,
onEmojiReact: PropTypes.func,
onUnEmojiReact: PropTypes.func,

View file

@ -181,6 +181,7 @@ en:
events: Select events to send
template: Compose your own JSON payload using variable interpolation. Leave blank for default JSON.
url: Where events will be sent to
kmyblue: kmyblue
labels:
account:
discoverable: Feature profile and posts in discovery algorithms

View file

@ -177,6 +177,7 @@ ja:
events: 送信するイベントを選択
template: 変数補完を使用して、独自のJSONペイロードを構成できます。デフォルトのJSONを使用する場合は空白のままにします。
url: イベントの送信先
kmyblue: kmyblue
labels:
account:
discoverable: アカウントを見つけやすくする