From 5ed48e68781220f535ce62b10ae18e5bda9c6da1 Mon Sep 17 00:00:00 2001 From: Claire Date: Sun, 28 May 2023 18:06:09 +0200 Subject: [PATCH] Fix extraneous newlines --- app/javascript/flavours/glitch/actions/markers.js | 1 - app/javascript/flavours/glitch/api.js | 1 - .../flavours/glitch/components/autosuggest_hashtag.jsx | 1 - .../flavours/glitch/components/autosuggest_textarea.jsx | 3 --- app/javascript/flavours/glitch/components/common_counter.jsx | 1 - app/javascript/flavours/glitch/components/dropdown_menu.jsx | 2 -- app/javascript/flavours/glitch/components/hashtag.jsx | 1 - .../glitch/components/intersection_observer_article.jsx | 1 - app/javascript/flavours/glitch/components/link.jsx | 1 - .../glitch/components/picture_in_picture_placeholder.jsx | 2 -- app/javascript/flavours/glitch/components/scrollable_list.jsx | 1 - app/javascript/flavours/glitch/components/short_number.jsx | 1 - .../flavours/glitch/containers/compose_container.jsx | 1 - .../flavours/glitch/features/account/components/header.jsx | 2 -- .../features/account/components/profile_column_header.jsx | 1 - .../flavours/glitch/features/account_gallery/index.jsx | 1 - app/javascript/flavours/glitch/features/blocks/index.jsx | 3 --- .../flavours/glitch/features/community_timeline/index.jsx | 1 - .../glitch/features/compose/components/action_bar.jsx | 2 -- .../glitch/features/compose/components/reply_indicator.jsx | 1 - .../glitch/features/compose/components/textarea_icons.jsx | 1 - .../glitch/features/compose/components/upload_progress.jsx | 3 --- .../flavours/glitch/features/compose/components/warning.jsx | 1 - .../compose/containers/language_dropdown_container.js | 1 - .../compose/containers/sensitive_button_container.jsx | 1 - app/javascript/flavours/glitch/features/compose/index.jsx | 4 ---- .../features/direct_timeline/components/conversation.jsx | 1 - .../glitch/features/directory/components/account_card.jsx | 1 - app/javascript/flavours/glitch/features/directory/index.jsx | 1 - .../flavours/glitch/features/explore/suggestions.jsx | 2 -- .../features/follow_requests/components/account_authorize.jsx | 1 - .../flavours/glitch/features/followed_tags/index.jsx | 1 - app/javascript/flavours/glitch/features/followers/index.jsx | 1 - app/javascript/flavours/glitch/features/following/index.jsx | 1 - .../glitch/features/list_editor/components/edit_list_form.jsx | 1 - .../glitch/features/lists/components/new_list_form.jsx | 1 - .../glitch/features/local_settings/page/item/index.jsx | 1 - .../features/notifications/components/follow_request.jsx | 3 --- .../glitch/features/notifications/components/notification.jsx | 1 - .../features/notifications/components/pill_bar_button.jsx | 1 - .../notifications/containers/column_settings_container.js | 1 - .../flavours/glitch/features/pinned_accounts_editor/index.jsx | 1 - .../flavours/glitch/features/pinned_statuses/index.jsx | 3 --- app/javascript/flavours/glitch/features/report/category.jsx | 1 - .../flavours/glitch/features/status/components/action_bar.jsx | 1 - .../glitch/features/subscribed_languages_modal/index.jsx | 1 - .../flavours/glitch/features/ui/components/columns_area.jsx | 1 - .../flavours/glitch/features/ui/components/doodle_modal.jsx | 3 --- .../features/ui/components/follow_requests_column_link.jsx | 2 -- .../flavours/glitch/features/ui/components/modal_root.jsx | 2 -- .../flavours/glitch/features/ui/components/zoomable_image.jsx | 1 - app/javascript/flavours/glitch/features/ui/index.jsx | 1 - app/javascript/flavours/glitch/features/video/index.jsx | 1 - app/javascript/flavours/glitch/packs/common.js | 1 - app/javascript/flavours/glitch/packs/public.jsx | 2 -- app/javascript/flavours/glitch/stream.js | 1 - 56 files changed, 79 deletions(-) diff --git a/app/javascript/flavours/glitch/actions/markers.js b/app/javascript/flavours/glitch/actions/markers.js index ece1d57090..ccb1b23d6f 100644 --- a/app/javascript/flavours/glitch/actions/markers.js +++ b/app/javascript/flavours/glitch/actions/markers.js @@ -5,7 +5,6 @@ import { debounce } from 'lodash'; import api from '../api'; import { compareId } from '../compare_id'; - export const MARKERS_FETCH_REQUEST = 'MARKERS_FETCH_REQUEST'; export const MARKERS_FETCH_SUCCESS = 'MARKERS_FETCH_SUCCESS'; export const MARKERS_FETCH_FAIL = 'MARKERS_FETCH_FAIL'; diff --git a/app/javascript/flavours/glitch/api.js b/app/javascript/flavours/glitch/api.js index 1c171a1c4a..948ffbc95c 100644 --- a/app/javascript/flavours/glitch/api.js +++ b/app/javascript/flavours/glitch/api.js @@ -4,7 +4,6 @@ import axios from 'axios'; import LinkHeader from 'http-link-header'; import ready from './ready'; - /** * @param {import('axios').AxiosResponse} response * @returns {LinkHeader} diff --git a/app/javascript/flavours/glitch/components/autosuggest_hashtag.jsx b/app/javascript/flavours/glitch/components/autosuggest_hashtag.jsx index 0a01d2f6f4..37f7e20f0a 100644 --- a/app/javascript/flavours/glitch/components/autosuggest_hashtag.jsx +++ b/app/javascript/flavours/glitch/components/autosuggest_hashtag.jsx @@ -5,7 +5,6 @@ import { FormattedMessage } from 'react-intl'; import ShortNumber from 'flavours/glitch/components/short_number'; - export default class AutosuggestHashtag extends PureComponent { static propTypes = { diff --git a/app/javascript/flavours/glitch/components/autosuggest_textarea.jsx b/app/javascript/flavours/glitch/components/autosuggest_textarea.jsx index 931e7227df..86f10651d6 100644 --- a/app/javascript/flavours/glitch/components/autosuggest_textarea.jsx +++ b/app/javascript/flavours/glitch/components/autosuggest_textarea.jsx @@ -12,9 +12,6 @@ import AutosuggestAccountContainer from 'flavours/glitch/features/compose/contai import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; - - - const textAtCursorMatchesToken = (str, caretPosition) => { let word; diff --git a/app/javascript/flavours/glitch/components/common_counter.jsx b/app/javascript/flavours/glitch/components/common_counter.jsx index 23e1f22638..785907bd25 100644 --- a/app/javascript/flavours/glitch/components/common_counter.jsx +++ b/app/javascript/flavours/glitch/components/common_counter.jsx @@ -1,6 +1,5 @@ // @ts-check import { FormattedMessage } from 'react-intl'; - /** * Returns custom renderer for one of the common counter types * @param {"statuses" | "following" | "followers"} counterType diff --git a/app/javascript/flavours/glitch/components/dropdown_menu.jsx b/app/javascript/flavours/glitch/components/dropdown_menu.jsx index e6951ddeea..03bf6e685a 100644 --- a/app/javascript/flavours/glitch/components/dropdown_menu.jsx +++ b/app/javascript/flavours/glitch/components/dropdown_menu.jsx @@ -12,8 +12,6 @@ import { CircularProgress } from 'flavours/glitch/components/loading_indicator'; import { IconButton } from './icon_button'; - - const listenerOptions = supportsPassiveEvents ? { passive: true, capture: true } : true; let id = 0; diff --git a/app/javascript/flavours/glitch/components/hashtag.jsx b/app/javascript/flavours/glitch/components/hashtag.jsx index eddeeb0f7d..422ead01db 100644 --- a/app/javascript/flavours/glitch/components/hashtag.jsx +++ b/app/javascript/flavours/glitch/components/hashtag.jsx @@ -15,7 +15,6 @@ import { Skeleton } from 'flavours/glitch/components/skeleton'; import Permalink from './permalink'; - class SilentErrorBoundary extends Component { static propTypes = { diff --git a/app/javascript/flavours/glitch/components/intersection_observer_article.jsx b/app/javascript/flavours/glitch/components/intersection_observer_article.jsx index 115146645d..bef40c07fa 100644 --- a/app/javascript/flavours/glitch/components/intersection_observer_article.jsx +++ b/app/javascript/flavours/glitch/components/intersection_observer_article.jsx @@ -3,7 +3,6 @@ import { cloneElement, Component } from 'react'; import getRectFromEntry from '../features/ui/util/get_rect_from_entry'; import scheduleIdleTask from '../features/ui/util/schedule_idle_task'; - // Diff these props in the "unrendered" state const updateOnPropsForUnrendered = ['id', 'index', 'listLength', 'cachedHeight']; diff --git a/app/javascript/flavours/glitch/components/link.jsx b/app/javascript/flavours/glitch/components/link.jsx index 40cddf8f54..9babe7320f 100644 --- a/app/javascript/flavours/glitch/components/link.jsx +++ b/app/javascript/flavours/glitch/components/link.jsx @@ -9,7 +9,6 @@ import classNames from 'classnames'; // Utils. import { assignHandlers } from 'flavours/glitch/utils/react_helpers'; - // Handlers. const handlers = { diff --git a/app/javascript/flavours/glitch/components/picture_in_picture_placeholder.jsx b/app/javascript/flavours/glitch/components/picture_in_picture_placeholder.jsx index 8a4784da5b..1a290c91de 100644 --- a/app/javascript/flavours/glitch/components/picture_in_picture_placeholder.jsx +++ b/app/javascript/flavours/glitch/components/picture_in_picture_placeholder.jsx @@ -8,8 +8,6 @@ import { connect } from 'react-redux'; import { removePictureInPicture } from 'flavours/glitch/actions/picture_in_picture'; import { Icon } from 'flavours/glitch/components/icon'; - - class PictureInPicturePlaceholder extends PureComponent { static propTypes = { diff --git a/app/javascript/flavours/glitch/components/scrollable_list.jsx b/app/javascript/flavours/glitch/components/scrollable_list.jsx index 447f6234f1..e7f447f58d 100644 --- a/app/javascript/flavours/glitch/components/scrollable_list.jsx +++ b/app/javascript/flavours/glitch/components/scrollable_list.jsx @@ -19,7 +19,6 @@ import LoadMore from './load_more'; import LoadPending from './load_pending'; import LoadingIndicator from './loading_indicator'; - const MOUSE_IDLE_DELAY = 300; const listenerOptions = supportsPassiveEvents ? { passive: true } : false; diff --git a/app/javascript/flavours/glitch/components/short_number.jsx b/app/javascript/flavours/glitch/components/short_number.jsx index b7ac4f5fd5..0ddd26e783 100644 --- a/app/javascript/flavours/glitch/components/short_number.jsx +++ b/app/javascript/flavours/glitch/components/short_number.jsx @@ -4,7 +4,6 @@ import { memo } from 'react'; import { FormattedMessage, FormattedNumber } from 'react-intl'; import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../utils/numbers'; - // @ts-check /** diff --git a/app/javascript/flavours/glitch/containers/compose_container.jsx b/app/javascript/flavours/glitch/containers/compose_container.jsx index c240a1f27b..a1edfb8450 100644 --- a/app/javascript/flavours/glitch/containers/compose_container.jsx +++ b/app/javascript/flavours/glitch/containers/compose_container.jsx @@ -13,7 +13,6 @@ import { store } from 'flavours/glitch/store'; import { getLocale } from 'mastodon/locales'; - const { localeData, messages } = getLocale(); addLocaleData(localeData); diff --git a/app/javascript/flavours/glitch/features/account/components/header.jsx b/app/javascript/flavours/glitch/features/account/components/header.jsx index 99722c3a6f..bd9f8fbd36 100644 --- a/app/javascript/flavours/glitch/features/account/components/header.jsx +++ b/app/javascript/flavours/glitch/features/account/components/header.jsx @@ -20,8 +20,6 @@ import { preferencesLink, profileLink, accountAdminLink } from 'flavours/glitch/ import AccountNoteContainer from '../containers/account_note_container'; import FollowRequestNoteContainer from '../containers/follow_request_note_container'; - - const messages = defineMessages({ unfollow: { id: 'account.unfollow', defaultMessage: 'Unfollow' }, follow: { id: 'account.follow', defaultMessage: 'Follow' }, diff --git a/app/javascript/flavours/glitch/features/account/components/profile_column_header.jsx b/app/javascript/flavours/glitch/features/account/components/profile_column_header.jsx index e84fa375ee..2dc4216bdd 100644 --- a/app/javascript/flavours/glitch/features/account/components/profile_column_header.jsx +++ b/app/javascript/flavours/glitch/features/account/components/profile_column_header.jsx @@ -5,7 +5,6 @@ import { injectIntl, defineMessages } from 'react-intl'; import ColumnHeader from '../../../components/column_header'; - const messages = defineMessages({ profile: { id: 'column_header.profile', defaultMessage: 'Profile' }, }); diff --git a/app/javascript/flavours/glitch/features/account_gallery/index.jsx b/app/javascript/flavours/glitch/features/account_gallery/index.jsx index 170b2ca3b7..58db9efd7d 100644 --- a/app/javascript/flavours/glitch/features/account_gallery/index.jsx +++ b/app/javascript/flavours/glitch/features/account_gallery/index.jsx @@ -21,7 +21,6 @@ import { getAccountGallery } from 'flavours/glitch/selectors'; import MediaItem from './components/media_item'; - const mapStateToProps = (state, { params: { acct, id } }) => { const accountId = id || state.getIn(['accounts_map', normalizeForLookup(acct)]); diff --git a/app/javascript/flavours/glitch/features/blocks/index.jsx b/app/javascript/flavours/glitch/features/blocks/index.jsx index d7cefd65b6..202d38d0ed 100644 --- a/app/javascript/flavours/glitch/features/blocks/index.jsx +++ b/app/javascript/flavours/glitch/features/blocks/index.jsx @@ -16,9 +16,6 @@ import Column from 'flavours/glitch/features/ui/components/column'; import ScrollableList from '../../components/scrollable_list'; - - - const messages = defineMessages({ heading: { id: 'column.blocks', defaultMessage: 'Blocked users' }, }); diff --git a/app/javascript/flavours/glitch/features/community_timeline/index.jsx b/app/javascript/flavours/glitch/features/community_timeline/index.jsx index 8db07a7f77..127e7cf182 100644 --- a/app/javascript/flavours/glitch/features/community_timeline/index.jsx +++ b/app/javascript/flavours/glitch/features/community_timeline/index.jsx @@ -18,7 +18,6 @@ import { domain } from 'flavours/glitch/initial_state'; import ColumnSettingsContainer from './containers/column_settings_container'; - const messages = defineMessages({ title: { id: 'column.community', defaultMessage: 'Local timeline' }, }); diff --git a/app/javascript/flavours/glitch/features/compose/components/action_bar.jsx b/app/javascript/flavours/glitch/features/compose/components/action_bar.jsx index fe3c0468e2..2a6202f846 100644 --- a/app/javascript/flavours/glitch/features/compose/components/action_bar.jsx +++ b/app/javascript/flavours/glitch/features/compose/components/action_bar.jsx @@ -9,8 +9,6 @@ import { preferencesLink, profileLink } from 'flavours/glitch/utils/backend_link import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; - - const messages = defineMessages({ edit_profile: { id: 'account.edit_profile', defaultMessage: 'Edit profile' }, pins: { id: 'navigation_bar.pins', defaultMessage: 'Pinned posts' }, diff --git a/app/javascript/flavours/glitch/features/compose/components/reply_indicator.jsx b/app/javascript/flavours/glitch/features/compose/components/reply_indicator.jsx index c55ffd1906..8a1089bce7 100644 --- a/app/javascript/flavours/glitch/features/compose/components/reply_indicator.jsx +++ b/app/javascript/flavours/glitch/features/compose/components/reply_indicator.jsx @@ -10,7 +10,6 @@ import ImmutablePureComponent from 'react-immutable-pure-component'; import AttachmentList from 'flavours/glitch/components/attachment_list'; import { IconButton } from 'flavours/glitch/components/icon_button'; import AccountContainer from 'flavours/glitch/containers/account_container'; - // Messages. const messages = defineMessages({ cancel: { diff --git a/app/javascript/flavours/glitch/features/compose/components/textarea_icons.jsx b/app/javascript/flavours/glitch/features/compose/components/textarea_icons.jsx index 6ef35fc3e3..c52eca09e1 100644 --- a/app/javascript/flavours/glitch/features/compose/components/textarea_icons.jsx +++ b/app/javascript/flavours/glitch/features/compose/components/textarea_icons.jsx @@ -8,7 +8,6 @@ import ImmutablePureComponent from 'react-immutable-pure-component'; // Components. import { Icon } from 'flavours/glitch/components/icon'; - // Messages. const messages = defineMessages({ localOnly: { diff --git a/app/javascript/flavours/glitch/features/compose/components/upload_progress.jsx b/app/javascript/flavours/glitch/features/compose/components/upload_progress.jsx index 213c238c9b..928446c728 100644 --- a/app/javascript/flavours/glitch/features/compose/components/upload_progress.jsx +++ b/app/javascript/flavours/glitch/features/compose/components/upload_progress.jsx @@ -9,9 +9,6 @@ import { Icon } from 'flavours/glitch/components/icon'; import Motion from '../../ui/util/optional_motion'; - - - export default class UploadProgress extends PureComponent { static propTypes = { diff --git a/app/javascript/flavours/glitch/features/compose/components/warning.jsx b/app/javascript/flavours/glitch/features/compose/components/warning.jsx index e89c9eaa5c..c5babc30a5 100644 --- a/app/javascript/flavours/glitch/features/compose/components/warning.jsx +++ b/app/javascript/flavours/glitch/features/compose/components/warning.jsx @@ -5,7 +5,6 @@ import spring from 'react-motion/lib/spring'; import Motion from '../../ui/util/optional_motion'; - export default class Warning extends PureComponent { static propTypes = { diff --git a/app/javascript/flavours/glitch/features/compose/containers/language_dropdown_container.js b/app/javascript/flavours/glitch/features/compose/containers/language_dropdown_container.js index c9aed0722d..8a50da4c44 100644 --- a/app/javascript/flavours/glitch/features/compose/containers/language_dropdown_container.js +++ b/app/javascript/flavours/glitch/features/compose/containers/language_dropdown_container.js @@ -7,7 +7,6 @@ import { useLanguage } from 'flavours/glitch/actions/languages'; import LanguageDropdown from '../components/language_dropdown'; - const getFrequentlyUsedLanguages = createSelector([ state => state.getIn(['settings', 'frequentlyUsedLanguages'], ImmutableMap()), ], languageCounters => ( diff --git a/app/javascript/flavours/glitch/features/compose/containers/sensitive_button_container.jsx b/app/javascript/flavours/glitch/features/compose/containers/sensitive_button_container.jsx index f763c520b0..931f396b35 100644 --- a/app/javascript/flavours/glitch/features/compose/containers/sensitive_button_container.jsx +++ b/app/javascript/flavours/glitch/features/compose/containers/sensitive_button_container.jsx @@ -9,7 +9,6 @@ import { connect } from 'react-redux'; import { changeComposeSensitivity } from 'flavours/glitch/actions/compose'; - const messages = defineMessages({ marked: { id: 'compose_form.sensitive.marked', diff --git a/app/javascript/flavours/glitch/features/compose/index.jsx b/app/javascript/flavours/glitch/features/compose/index.jsx index d0676af678..39ef19ef59 100644 --- a/app/javascript/flavours/glitch/features/compose/index.jsx +++ b/app/javascript/flavours/glitch/features/compose/index.jsx @@ -22,10 +22,6 @@ import NavigationContainer from './containers/navigation_container'; import SearchContainer from './containers/search_container'; import SearchResultsContainer from './containers/search_results_container'; - - - - const messages = defineMessages({ compose: { id: 'navigation_bar.compose', defaultMessage: 'Compose new post' }, }); diff --git a/app/javascript/flavours/glitch/features/direct_timeline/components/conversation.jsx b/app/javascript/flavours/glitch/features/direct_timeline/components/conversation.jsx index c086fca050..0a2262f281 100644 --- a/app/javascript/flavours/glitch/features/direct_timeline/components/conversation.jsx +++ b/app/javascript/flavours/glitch/features/direct_timeline/components/conversation.jsx @@ -18,7 +18,6 @@ import StatusContent from 'flavours/glitch/components/status_content'; import DropdownMenuContainer from 'flavours/glitch/containers/dropdown_menu_container'; import { autoPlayGif } from 'flavours/glitch/initial_state'; - const messages = defineMessages({ more: { id: 'status.more', defaultMessage: 'More' }, open: { id: 'conversation.open', defaultMessage: 'View conversation' }, diff --git a/app/javascript/flavours/glitch/features/directory/components/account_card.jsx b/app/javascript/flavours/glitch/features/directory/components/account_card.jsx index 655714beec..345dbe5a27 100644 --- a/app/javascript/flavours/glitch/features/directory/components/account_card.jsx +++ b/app/javascript/flavours/glitch/features/directory/components/account_card.jsx @@ -24,7 +24,6 @@ import ShortNumber from 'flavours/glitch/components/short_number'; import { autoPlayGif, me, unfollowModal } from 'flavours/glitch/initial_state'; import { makeGetAccount } from 'flavours/glitch/selectors'; - const messages = defineMessages({ unfollow: { id: 'account.unfollow', defaultMessage: 'Unfollow' }, follow: { id: 'account.follow', defaultMessage: 'Follow' }, diff --git a/app/javascript/flavours/glitch/features/directory/index.jsx b/app/javascript/flavours/glitch/features/directory/index.jsx index 9c16e4cc4d..4daa5f942c 100644 --- a/app/javascript/flavours/glitch/features/directory/index.jsx +++ b/app/javascript/flavours/glitch/features/directory/index.jsx @@ -20,7 +20,6 @@ import ScrollContainer from 'flavours/glitch/containers/scroll_container'; import AccountCard from './components/account_card'; - const messages = defineMessages({ title: { id: 'column.directory', defaultMessage: 'Browse profiles' }, recentlyActive: { id: 'directory.recently_active', defaultMessage: 'Recently active' }, diff --git a/app/javascript/flavours/glitch/features/explore/suggestions.jsx b/app/javascript/flavours/glitch/features/explore/suggestions.jsx index 286e27a77a..b6e50eedef 100644 --- a/app/javascript/flavours/glitch/features/explore/suggestions.jsx +++ b/app/javascript/flavours/glitch/features/explore/suggestions.jsx @@ -10,8 +10,6 @@ import { fetchSuggestions, dismissSuggestion } from 'flavours/glitch/actions/sug import LoadingIndicator from 'flavours/glitch/components/loading_indicator'; import AccountCard from 'flavours/glitch/features/directory/components/account_card'; - - const mapStateToProps = state => ({ suggestions: state.getIn(['suggestions', 'items']), isLoading: state.getIn(['suggestions', 'isLoading']), diff --git a/app/javascript/flavours/glitch/features/follow_requests/components/account_authorize.jsx b/app/javascript/flavours/glitch/features/follow_requests/components/account_authorize.jsx index cbd1d1838b..1f665c0496 100644 --- a/app/javascript/flavours/glitch/features/follow_requests/components/account_authorize.jsx +++ b/app/javascript/flavours/glitch/features/follow_requests/components/account_authorize.jsx @@ -10,7 +10,6 @@ import { DisplayName } from 'flavours/glitch/components/display_name'; import { IconButton } from 'flavours/glitch/components/icon_button'; import Permalink from 'flavours/glitch/components/permalink'; - const messages = defineMessages({ authorize: { id: 'follow_request.authorize', defaultMessage: 'Authorize' }, reject: { id: 'follow_request.reject', defaultMessage: 'Reject' }, diff --git a/app/javascript/flavours/glitch/features/followed_tags/index.jsx b/app/javascript/flavours/glitch/features/followed_tags/index.jsx index b8e2981b73..9acb77c25f 100644 --- a/app/javascript/flavours/glitch/features/followed_tags/index.jsx +++ b/app/javascript/flavours/glitch/features/followed_tags/index.jsx @@ -16,7 +16,6 @@ import Hashtag from 'flavours/glitch/components/hashtag'; import ScrollableList from 'flavours/glitch/components/scrollable_list'; import Column from 'flavours/glitch/features/ui/components/column'; - const messages = defineMessages({ heading: { id: 'followed_tags', defaultMessage: 'Followed hashtags' }, }); diff --git a/app/javascript/flavours/glitch/features/followers/index.jsx b/app/javascript/flavours/glitch/features/followers/index.jsx index b2be617f10..2f586e143b 100644 --- a/app/javascript/flavours/glitch/features/followers/index.jsx +++ b/app/javascript/flavours/glitch/features/followers/index.jsx @@ -27,7 +27,6 @@ import { getAccountHidden } from 'flavours/glitch/selectors'; import LimitedAccountHint from '../account_timeline/components/limited_account_hint'; - const mapStateToProps = (state, { params: { acct, id } }) => { const accountId = id || state.getIn(['accounts_map', normalizeForLookup(acct)]); diff --git a/app/javascript/flavours/glitch/features/following/index.jsx b/app/javascript/flavours/glitch/features/following/index.jsx index 4c7594ff19..45fbbe329e 100644 --- a/app/javascript/flavours/glitch/features/following/index.jsx +++ b/app/javascript/flavours/glitch/features/following/index.jsx @@ -27,7 +27,6 @@ import { getAccountHidden } from 'flavours/glitch/selectors'; import LimitedAccountHint from '../account_timeline/components/limited_account_hint'; - const mapStateToProps = (state, { params: { acct, id } }) => { const accountId = id || state.getIn(['accounts_map', normalizeForLookup(acct)]); diff --git a/app/javascript/flavours/glitch/features/list_editor/components/edit_list_form.jsx b/app/javascript/flavours/glitch/features/list_editor/components/edit_list_form.jsx index 502543efc0..5c4fff27b5 100644 --- a/app/javascript/flavours/glitch/features/list_editor/components/edit_list_form.jsx +++ b/app/javascript/flavours/glitch/features/list_editor/components/edit_list_form.jsx @@ -8,7 +8,6 @@ import { connect } from 'react-redux'; import { changeListEditorTitle, submitListEditor } from 'flavours/glitch/actions/lists'; import { IconButton } from 'flavours/glitch/components/icon_button'; - const messages = defineMessages({ title: { id: 'lists.edit.submit', defaultMessage: 'Change title' }, }); diff --git a/app/javascript/flavours/glitch/features/lists/components/new_list_form.jsx b/app/javascript/flavours/glitch/features/lists/components/new_list_form.jsx index ffea2abae3..72602f1882 100644 --- a/app/javascript/flavours/glitch/features/lists/components/new_list_form.jsx +++ b/app/javascript/flavours/glitch/features/lists/components/new_list_form.jsx @@ -8,7 +8,6 @@ import { connect } from 'react-redux'; import { changeListEditorTitle, submitListEditor } from 'flavours/glitch/actions/lists'; import { IconButton } from 'flavours/glitch/components/icon_button'; - const messages = defineMessages({ label: { id: 'lists.new.title_placeholder', defaultMessage: 'New list title' }, title: { id: 'lists.new.create', defaultMessage: 'Add list' }, diff --git a/app/javascript/flavours/glitch/features/local_settings/page/item/index.jsx b/app/javascript/flavours/glitch/features/local_settings/page/item/index.jsx index 2e2df93d6b..15dce634d2 100644 --- a/app/javascript/flavours/glitch/features/local_settings/page/item/index.jsx +++ b/app/javascript/flavours/glitch/features/local_settings/page/item/index.jsx @@ -3,7 +3,6 @@ import PropTypes from 'prop-types'; import { PureComponent } from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * export default class LocalSettingsPageItem extends PureComponent { diff --git a/app/javascript/flavours/glitch/features/notifications/components/follow_request.jsx b/app/javascript/flavours/glitch/features/notifications/components/follow_request.jsx index 32ae1d1756..d5ae9dd3f3 100644 --- a/app/javascript/flavours/glitch/features/notifications/components/follow_request.jsx +++ b/app/javascript/flavours/glitch/features/notifications/components/follow_request.jsx @@ -17,9 +17,6 @@ import Permalink from 'flavours/glitch/components/permalink'; import NotificationOverlayContainer from '../containers/overlay_container'; - - - const messages = defineMessages({ authorize: { id: 'follow_request.authorize', defaultMessage: 'Authorize' }, reject: { id: 'follow_request.reject', defaultMessage: 'Reject' }, diff --git a/app/javascript/flavours/glitch/features/notifications/components/notification.jsx b/app/javascript/flavours/glitch/features/notifications/components/notification.jsx index 515de9f30a..1d476969cb 100644 --- a/app/javascript/flavours/glitch/features/notifications/components/notification.jsx +++ b/app/javascript/flavours/glitch/features/notifications/components/notification.jsx @@ -13,7 +13,6 @@ import NotificationFollowRequestContainer from '../containers/follow_request_con import NotificationAdminSignup from './admin_signup'; import NotificationFollow from './follow'; - export default class Notification extends ImmutablePureComponent { static propTypes = { diff --git a/app/javascript/flavours/glitch/features/notifications/components/pill_bar_button.jsx b/app/javascript/flavours/glitch/features/notifications/components/pill_bar_button.jsx index 1e74395f58..633401d6e3 100644 --- a/app/javascript/flavours/glitch/features/notifications/components/pill_bar_button.jsx +++ b/app/javascript/flavours/glitch/features/notifications/components/pill_bar_button.jsx @@ -5,7 +5,6 @@ import classNames from 'classnames'; import ImmutablePropTypes from 'react-immutable-proptypes'; - export default class PillBarButton extends PureComponent { static propTypes = { diff --git a/app/javascript/flavours/glitch/features/notifications/containers/column_settings_container.js b/app/javascript/flavours/glitch/features/notifications/containers/column_settings_container.js index 024f4daabb..cc3793fccc 100644 --- a/app/javascript/flavours/glitch/features/notifications/containers/column_settings_container.js +++ b/app/javascript/flavours/glitch/features/notifications/containers/column_settings_container.js @@ -10,7 +10,6 @@ import { changeSetting } from 'flavours/glitch/actions/settings'; import ColumnSettings from '../components/column_settings'; - const messages = defineMessages({ clearMessage: { id: 'notifications.clear_confirmation', defaultMessage: 'Are you sure you want to permanently clear all your notifications?' }, clearConfirm: { id: 'notifications.clear', defaultMessage: 'Clear notifications' }, diff --git a/app/javascript/flavours/glitch/features/pinned_accounts_editor/index.jsx b/app/javascript/flavours/glitch/features/pinned_accounts_editor/index.jsx index effc3ee248..603d7209a7 100644 --- a/app/javascript/flavours/glitch/features/pinned_accounts_editor/index.jsx +++ b/app/javascript/flavours/glitch/features/pinned_accounts_editor/index.jsx @@ -14,7 +14,6 @@ import Motion from 'flavours/glitch/features/ui/util/optional_motion'; import AccountContainer from './containers/account_container'; import SearchContainer from './containers/search_container'; - const mapStateToProps = state => ({ accountIds: state.getIn(['pinnedAccountsEditor', 'accounts', 'items']), searchAccountIds: state.getIn(['pinnedAccountsEditor', 'suggestions', 'items']), diff --git a/app/javascript/flavours/glitch/features/pinned_statuses/index.jsx b/app/javascript/flavours/glitch/features/pinned_statuses/index.jsx index 526da34d2d..add05bdff0 100644 --- a/app/javascript/flavours/glitch/features/pinned_statuses/index.jsx +++ b/app/javascript/flavours/glitch/features/pinned_statuses/index.jsx @@ -13,9 +13,6 @@ import ColumnBackButtonSlim from 'flavours/glitch/components/column_back_button_ import StatusList from 'flavours/glitch/components/status_list'; import Column from 'flavours/glitch/features/ui/components/column'; - - - const messages = defineMessages({ heading: { id: 'column.pins', defaultMessage: 'Pinned post' }, }); diff --git a/app/javascript/flavours/glitch/features/report/category.jsx b/app/javascript/flavours/glitch/features/report/category.jsx index c2bcaa7573..e734058fac 100644 --- a/app/javascript/flavours/glitch/features/report/category.jsx +++ b/app/javascript/flavours/glitch/features/report/category.jsx @@ -11,7 +11,6 @@ import Button from 'flavours/glitch/components/button'; import Option from './components/option'; - const messages = defineMessages({ dislike: { id: 'report.reasons.dislike', defaultMessage: 'I don\'t like it' }, dislike_description: { id: 'report.reasons.dislike_description', defaultMessage: 'It is not something you want to see' }, diff --git a/app/javascript/flavours/glitch/features/status/components/action_bar.jsx b/app/javascript/flavours/glitch/features/status/components/action_bar.jsx index 967a30dbe8..2c0e6ec9f5 100644 --- a/app/javascript/flavours/glitch/features/status/components/action_bar.jsx +++ b/app/javascript/flavours/glitch/features/status/components/action_bar.jsx @@ -13,7 +13,6 @@ import { me } from 'flavours/glitch/initial_state'; import { PERMISSION_MANAGE_USERS, PERMISSION_MANAGE_FEDERATION } from 'flavours/glitch/permissions'; import { accountAdminLink, statusAdminLink } from 'flavours/glitch/utils/backend_links'; - const messages = defineMessages({ delete: { id: 'status.delete', defaultMessage: 'Delete' }, redraft: { id: 'status.redraft', defaultMessage: 'Delete & re-draft' }, diff --git a/app/javascript/flavours/glitch/features/subscribed_languages_modal/index.jsx b/app/javascript/flavours/glitch/features/subscribed_languages_modal/index.jsx index fe45f4882f..9905301e79 100644 --- a/app/javascript/flavours/glitch/features/subscribed_languages_modal/index.jsx +++ b/app/javascript/flavours/glitch/features/subscribed_languages_modal/index.jsx @@ -14,7 +14,6 @@ import { IconButton } from 'flavours/glitch/components/icon_button'; import Option from 'flavours/glitch/features/report/components/option'; import { languages as preloadedLanguages } from 'flavours/glitch/initial_state'; - const messages = defineMessages({ close: { id: 'lightbox.close', defaultMessage: 'Close' }, }); diff --git a/app/javascript/flavours/glitch/features/ui/components/columns_area.jsx b/app/javascript/flavours/glitch/features/ui/components/columns_area.jsx index c43f551dc9..6eb5ee0e52 100644 --- a/app/javascript/flavours/glitch/features/ui/components/columns_area.jsx +++ b/app/javascript/flavours/glitch/features/ui/components/columns_area.jsx @@ -29,7 +29,6 @@ import ComposePanel from './compose_panel'; import DrawerLoading from './drawer_loading'; import NavigationPanel from './navigation_panel'; - const componentMap = { 'COMPOSE': Compose, 'HOME': HomeTimeline, diff --git a/app/javascript/flavours/glitch/features/ui/components/doodle_modal.jsx b/app/javascript/flavours/glitch/features/ui/components/doodle_modal.jsx index d27dbfe8c5..b594353589 100644 --- a/app/javascript/flavours/glitch/features/ui/components/doodle_modal.jsx +++ b/app/javascript/flavours/glitch/features/ui/components/doodle_modal.jsx @@ -12,9 +12,6 @@ import { debounce, mapValues } from 'lodash'; import { doodleSet, uploadCompose } from 'flavours/glitch/actions/compose'; import Button from 'flavours/glitch/components/button'; import { IconButton } from 'flavours/glitch/components/icon_button'; - - - // palette nicked from MyPaint, CC0 const palette = [ ['rgb( 0, 0, 0)', 'Black'], diff --git a/app/javascript/flavours/glitch/features/ui/components/follow_requests_column_link.jsx b/app/javascript/flavours/glitch/features/ui/components/follow_requests_column_link.jsx index 2a56292fb7..b851e914e5 100644 --- a/app/javascript/flavours/glitch/features/ui/components/follow_requests_column_link.jsx +++ b/app/javascript/flavours/glitch/features/ui/components/follow_requests_column_link.jsx @@ -10,8 +10,6 @@ import { fetchFollowRequests } from 'flavours/glitch/actions/accounts'; import { IconWithBadge } from 'flavours/glitch/components/icon_with_badge'; import ColumnLink from 'flavours/glitch/features/ui/components/column_link'; - - const messages = defineMessages({ text: { id: 'navigation_bar.follow_requests', defaultMessage: 'Follow requests' }, }); diff --git a/app/javascript/flavours/glitch/features/ui/components/modal_root.jsx b/app/javascript/flavours/glitch/features/ui/components/modal_root.jsx index 03588e2768..1e5bf40db7 100644 --- a/app/javascript/flavours/glitch/features/ui/components/modal_root.jsx +++ b/app/javascript/flavours/glitch/features/ui/components/modal_root.jsx @@ -38,8 +38,6 @@ import MediaModal from './media_modal'; import ModalLoading from './modal_loading'; import VideoModal from './video_modal'; - - export const MODAL_COMPONENTS = { 'MEDIA': () => Promise.resolve({ default: MediaModal }), 'ONBOARDING': OnboardingModal, diff --git a/app/javascript/flavours/glitch/features/ui/components/zoomable_image.jsx b/app/javascript/flavours/glitch/features/ui/components/zoomable_image.jsx index 00ff0f95bb..5003563a1c 100644 --- a/app/javascript/flavours/glitch/features/ui/components/zoomable_image.jsx +++ b/app/javascript/flavours/glitch/features/ui/components/zoomable_image.jsx @@ -5,7 +5,6 @@ import { defineMessages, injectIntl } from 'react-intl'; import { IconButton } from 'flavours/glitch/components/icon_button'; - const messages = defineMessages({ compress: { id: 'lightbox.compress', defaultMessage: 'Compress image view box' }, expand: { id: 'lightbox.expand', defaultMessage: 'Expand image view box' }, diff --git a/app/javascript/flavours/glitch/features/ui/index.jsx b/app/javascript/flavours/glitch/features/ui/index.jsx index 9dcfbd1fa3..a6a7489e45 100644 --- a/app/javascript/flavours/glitch/features/ui/index.jsx +++ b/app/javascript/flavours/glitch/features/ui/index.jsx @@ -67,7 +67,6 @@ import { PrivacyPolicy, } from './util/async-components'; import { WrappedSwitch, WrappedRoute } from './util/react_router_helpers'; - // Dummy import, to make sure that ends up in the application bundle. // Without this it ends up in ~8 very commonly used bundles. import "../../components/status"; diff --git a/app/javascript/flavours/glitch/features/video/index.jsx b/app/javascript/flavours/glitch/features/video/index.jsx index 331f206eb3..8727cd76ae 100644 --- a/app/javascript/flavours/glitch/features/video/index.jsx +++ b/app/javascript/flavours/glitch/features/video/index.jsx @@ -15,7 +15,6 @@ import { displayMedia, useBlurhash } from 'flavours/glitch/initial_state'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui/util/fullscreen'; - const messages = defineMessages({ play: { id: 'video.play', defaultMessage: 'Play' }, pause: { id: 'video.pause', defaultMessage: 'Pause' }, diff --git a/app/javascript/flavours/glitch/packs/common.js b/app/javascript/flavours/glitch/packs/common.js index a750c3668d..cb9e7fe840 100644 --- a/app/javascript/flavours/glitch/packs/common.js +++ b/app/javascript/flavours/glitch/packs/common.js @@ -1,6 +1,5 @@ import 'packs/public-path'; import { start } from '@rails/ujs'; - import 'flavours/glitch/styles/index.scss'; start(); diff --git a/app/javascript/flavours/glitch/packs/public.jsx b/app/javascript/flavours/glitch/packs/public.jsx index d8860799e6..92e2e9e086 100644 --- a/app/javascript/flavours/glitch/packs/public.jsx +++ b/app/javascript/flavours/glitch/packs/public.jsx @@ -16,8 +16,6 @@ import { loadPolyfills } from 'flavours/glitch/polyfills'; import ready from 'flavours/glitch/ready'; import { getLocale } from 'locales'; - - const messages = defineMessages({ usernameTaken: { id: 'username.taken', defaultMessage: 'That username is taken. Try another' }, passwordExceedsLength: { id: 'password_confirmation.exceeds_maxlength', defaultMessage: 'Password confirmation exceeds the maximum password length' }, diff --git a/app/javascript/flavours/glitch/stream.js b/app/javascript/flavours/glitch/stream.js index 66d249f6cd..55f009e130 100644 --- a/app/javascript/flavours/glitch/stream.js +++ b/app/javascript/flavours/glitch/stream.js @@ -1,7 +1,6 @@ // @ts-check import WebSocketClient from '@gamestdio/websocket'; - /** * @type {WebSocketClient | undefined} */