Fix extraneous newlines

local
Claire 12 months ago
parent 382b2a506a
commit 5ed48e6878
  1. 1
      app/javascript/flavours/glitch/actions/markers.js
  2. 1
      app/javascript/flavours/glitch/api.js
  3. 1
      app/javascript/flavours/glitch/components/autosuggest_hashtag.jsx
  4. 3
      app/javascript/flavours/glitch/components/autosuggest_textarea.jsx
  5. 1
      app/javascript/flavours/glitch/components/common_counter.jsx
  6. 2
      app/javascript/flavours/glitch/components/dropdown_menu.jsx
  7. 1
      app/javascript/flavours/glitch/components/hashtag.jsx
  8. 1
      app/javascript/flavours/glitch/components/intersection_observer_article.jsx
  9. 1
      app/javascript/flavours/glitch/components/link.jsx
  10. 2
      app/javascript/flavours/glitch/components/picture_in_picture_placeholder.jsx
  11. 1
      app/javascript/flavours/glitch/components/scrollable_list.jsx
  12. 1
      app/javascript/flavours/glitch/components/short_number.jsx
  13. 1
      app/javascript/flavours/glitch/containers/compose_container.jsx
  14. 2
      app/javascript/flavours/glitch/features/account/components/header.jsx
  15. 1
      app/javascript/flavours/glitch/features/account/components/profile_column_header.jsx
  16. 1
      app/javascript/flavours/glitch/features/account_gallery/index.jsx
  17. 3
      app/javascript/flavours/glitch/features/blocks/index.jsx
  18. 1
      app/javascript/flavours/glitch/features/community_timeline/index.jsx
  19. 2
      app/javascript/flavours/glitch/features/compose/components/action_bar.jsx
  20. 1
      app/javascript/flavours/glitch/features/compose/components/reply_indicator.jsx
  21. 1
      app/javascript/flavours/glitch/features/compose/components/textarea_icons.jsx
  22. 3
      app/javascript/flavours/glitch/features/compose/components/upload_progress.jsx
  23. 1
      app/javascript/flavours/glitch/features/compose/components/warning.jsx
  24. 1
      app/javascript/flavours/glitch/features/compose/containers/language_dropdown_container.js
  25. 1
      app/javascript/flavours/glitch/features/compose/containers/sensitive_button_container.jsx
  26. 4
      app/javascript/flavours/glitch/features/compose/index.jsx
  27. 1
      app/javascript/flavours/glitch/features/direct_timeline/components/conversation.jsx
  28. 1
      app/javascript/flavours/glitch/features/directory/components/account_card.jsx
  29. 1
      app/javascript/flavours/glitch/features/directory/index.jsx
  30. 2
      app/javascript/flavours/glitch/features/explore/suggestions.jsx
  31. 1
      app/javascript/flavours/glitch/features/follow_requests/components/account_authorize.jsx
  32. 1
      app/javascript/flavours/glitch/features/followed_tags/index.jsx
  33. 1
      app/javascript/flavours/glitch/features/followers/index.jsx
  34. 1
      app/javascript/flavours/glitch/features/following/index.jsx
  35. 1
      app/javascript/flavours/glitch/features/list_editor/components/edit_list_form.jsx
  36. 1
      app/javascript/flavours/glitch/features/lists/components/new_list_form.jsx
  37. 1
      app/javascript/flavours/glitch/features/local_settings/page/item/index.jsx
  38. 3
      app/javascript/flavours/glitch/features/notifications/components/follow_request.jsx
  39. 1
      app/javascript/flavours/glitch/features/notifications/components/notification.jsx
  40. 1
      app/javascript/flavours/glitch/features/notifications/components/pill_bar_button.jsx
  41. 1
      app/javascript/flavours/glitch/features/notifications/containers/column_settings_container.js
  42. 1
      app/javascript/flavours/glitch/features/pinned_accounts_editor/index.jsx
  43. 3
      app/javascript/flavours/glitch/features/pinned_statuses/index.jsx
  44. 1
      app/javascript/flavours/glitch/features/report/category.jsx
  45. 1
      app/javascript/flavours/glitch/features/status/components/action_bar.jsx
  46. 1
      app/javascript/flavours/glitch/features/subscribed_languages_modal/index.jsx
  47. 1
      app/javascript/flavours/glitch/features/ui/components/columns_area.jsx
  48. 3
      app/javascript/flavours/glitch/features/ui/components/doodle_modal.jsx
  49. 2
      app/javascript/flavours/glitch/features/ui/components/follow_requests_column_link.jsx
  50. 2
      app/javascript/flavours/glitch/features/ui/components/modal_root.jsx
  51. 1
      app/javascript/flavours/glitch/features/ui/components/zoomable_image.jsx
  52. 1
      app/javascript/flavours/glitch/features/ui/index.jsx
  53. 1
      app/javascript/flavours/glitch/features/video/index.jsx
  54. 1
      app/javascript/flavours/glitch/packs/common.js
  55. 2
      app/javascript/flavours/glitch/packs/public.jsx
  56. 1
      app/javascript/flavours/glitch/stream.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';

@ -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}

@ -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 = {

@ -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;

@ -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

@ -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;

@ -15,7 +15,6 @@ import { Skeleton } from 'flavours/glitch/components/skeleton';
import Permalink from './permalink';
class SilentErrorBoundary extends Component {
static propTypes = {

@ -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'];

@ -9,7 +9,6 @@ import classNames from 'classnames';
// Utils.
import { assignHandlers } from 'flavours/glitch/utils/react_helpers';
// Handlers.
const handlers = {

@ -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 = {

@ -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;

@ -4,7 +4,6 @@ import { memo } from 'react';
import { FormattedMessage, FormattedNumber } from 'react-intl';
import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../utils/numbers';
// @ts-check
/**

@ -13,7 +13,6 @@ import { store } from 'flavours/glitch/store';
import { getLocale } from 'mastodon/locales';
const { localeData, messages } = getLocale();
addLocaleData(localeData);

@ -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' },

@ -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' },
});

@ -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)]);

@ -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' },
});

@ -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' },
});

@ -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' },

@ -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: {

@ -8,7 +8,6 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
// Components.
import { Icon } from 'flavours/glitch/components/icon';
// Messages.
const messages = defineMessages({
localOnly: {

@ -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 = {

@ -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 = {

@ -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 => (

@ -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',

@ -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' },
});

@ -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' },

@ -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' },

@ -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' },

@ -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']),

@ -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' },

@ -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' },
});

@ -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)]);

@ -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)]);

@ -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' },
});

@ -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' },

@ -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 {

@ -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' },

@ -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 = {

@ -5,7 +5,6 @@ import classNames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class PillBarButton extends PureComponent {
static propTypes = {

@ -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' },

@ -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']),

@ -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' },
});

@ -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' },

@ -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' },

@ -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' },
});

@ -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,

@ -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'],

@ -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' },
});

@ -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,

@ -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' },

@ -67,7 +67,6 @@ import {
PrivacyPolicy,
} from './util/async-components';
import { WrappedSwitch, WrappedRoute } from './util/react_router_helpers';
// Dummy import, to make sure that <Status /> ends up in the application bundle.
// Without this it ends up in ~8 very commonly used bundles.
import "../../components/status";

@ -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' },

@ -1,6 +1,5 @@
import 'packs/public-path';
import { start } from '@rails/ujs';
import 'flavours/glitch/styles/index.scss';
start();

@ -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' },

@ -1,7 +1,6 @@
// @ts-check
import WebSocketClient from '@gamestdio/websocket';
/**
* @type {WebSocketClient | undefined}
*/

Loading…
Cancel
Save