Delete blank empty lines at the top of source code files
This commit is contained in:
parent
02f76b7c6b
commit
013582e9e4
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { fetchRelationships } from 'soapbox/actions/accounts';
|
||||
import { importFetchedAccount, importFetchedAccounts, importFetchedStatuses } from 'soapbox/actions/importer';
|
||||
import { accountIdsToAccts } from 'soapbox/selectors';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
// Accounts
|
||||
export { useAccount } from './accounts/useAccount';
|
||||
export { useAccountLookup } from './accounts/useAccountLookup';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
interface IInlineSVG {
|
||||
loader?: JSX.Element;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import unicodeMapping from 'soapbox/features/emoji/mapping';
|
||||
import { useSettings } from 'soapbox/hooks';
|
||||
import { joinPublicPath } from 'soapbox/utils/static';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { isCustomEmoji } from 'soapbox/features/emoji';
|
||||
import unicodeMapping from 'soapbox/features/emoji/mapping';
|
||||
import { joinPublicPath } from 'soapbox/utils/static';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { useSoapboxConfig } from 'soapbox/hooks';
|
||||
|
||||
import { getAcct } from '../utils/accounts';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import HoverRefWrapper from 'soapbox/components/hover-ref-wrapper';
|
||||
import { useSoapboxConfig } from 'soapbox/hooks';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import Emoji from 'soapbox/components/ui/emoji/emoji';
|
||||
|
||||
interface IEmojiGraphic {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import GroupHeaderImage from 'soapbox/features/group/components/group-header-image';
|
||||
import GroupMemberCount from 'soapbox/features/group/components/group-member-count';
|
||||
import GroupPrivacy from 'soapbox/features/group/components/group-privacy';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import Link from './link';
|
||||
|
||||
interface IHashtagLink {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import Icon, { IIcon } from 'soapbox/components/icon';
|
||||
import { Counter } from 'soapbox/components/ui';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
/** Fullscreen gradient used as a backdrop to public pages. */
|
||||
const LandingGradient: React.FC = () => (
|
||||
<div className='fixed h-screen w-full bg-gradient-to-tr from-primary-50 via-white to-gradient-end/10 black:hidden dark:from-primary-900/50 dark:via-primary-900 dark:to-primary-800/50' />
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import LandingGradient from 'soapbox/components/landing-gradient';
|
||||
import { Spinner } from 'soapbox/components/ui';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { IntlProvider } from 'react-intl';
|
||||
import { Provider } from 'react-redux';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import PullToRefresh from './pull-to-refresh';
|
||||
|
||||
interface IPullable {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Children, cloneElement } from 'react';
|
||||
|
||||
import List, { ListItem } from './list';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { defineMessages } from 'react-intl';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Map as ImmutableMap } from 'immutable';
|
||||
import { beforeEach, describe, expect, it } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { HStack, Text } from '../ui';
|
||||
|
||||
interface IStatusInfo {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { shortNumberFormat } from 'soapbox/utils/numbers';
|
||||
|
||||
interface ICounter {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import Input from '../input/input';
|
||||
|
||||
interface DatetimeProps {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import Text from '../text/text';
|
||||
|
||||
import type { Sizes as TextSizes } from '../text/text';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { removeVS16s, toCodePoints } from 'soapbox/utils/emoji';
|
||||
import { joinPublicPath } from 'soapbox/utils/static';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import HStack from '../hstack/hstack';
|
||||
|
||||
interface IFormActions {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import Counter from '../counter/counter';
|
||||
|
||||
import SvgIcon from './svg-icon';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import IconCode from '@tabler/icons/outline/code.svg';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { useAccount } from 'soapbox/api/hooks';
|
||||
import Account, { IAccount } from 'soapbox/components/account';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { approveUser, rejectUser } from 'soapbox/actions/admin';
|
||||
import { useAccount } from 'soapbox/api/hooks';
|
||||
import Account from 'soapbox/components/account';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Map as ImmutableMap } from 'immutable';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Route, Switch } from 'react-router-dom';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { VirtuosoMockContext } from 'react-virtuoso';
|
||||
import { beforeEach, describe, expect, it } from 'vitest';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { VirtuosoMockContext } from 'react-virtuoso';
|
||||
import { beforeEach, describe, expect, it } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { ProgressBar } from 'soapbox/components/ui';
|
||||
|
||||
interface IChatPendingUpload {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { VirtuosoMockContext } from 'react-virtuoso';
|
||||
import { beforeEach, describe, expect, it } from 'vitest';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Route, Switch } from 'react-router-dom';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { ChatProvider } from 'soapbox/contexts/chat-context';
|
||||
|
||||
import ChatPage from './components/chat-page/chat-page';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { useAccount } from 'soapbox/api/hooks';
|
||||
import Account from 'soapbox/components/account';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import UploadProgress from 'soapbox/components/upload-progress';
|
||||
import { useCompose } from 'soapbox/hooks';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import genericIcon from 'soapbox/assets/cryptocurrency/generic.svg';
|
||||
|
||||
/** Get crypto icon URL by ticker symbol, or fall back to generic icon */
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Stack } from 'soapbox/components/ui';
|
||||
import { useSoapboxConfig } from 'soapbox/hooks';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { getSettings } from 'soapbox/actions/settings';
|
||||
import { useAppSelector } from 'soapbox/hooks';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { List, Map } from 'immutable';
|
||||
import pick from 'lodash/pick';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { authorizeFollowRequest, rejectFollowRequest } from 'soapbox/actions/accounts';
|
||||
import { useAccount } from 'soapbox/api/hooks';
|
||||
import Account from 'soapbox/components/account';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import MissingIndicator from '../../components/missing-indicator';
|
||||
|
||||
const GenericNotFound = () => (
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { beforeEach, describe, expect, it } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Stack, Text } from 'soapbox/components/ui';
|
||||
|
||||
interface Props {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { VirtuosoGridMockContext, VirtuosoMockContext } from 'react-virtuoso';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { usePendingGroups } from 'soapbox/api/hooks';
|
||||
import { PendingItemsRow } from 'soapbox/components/pending-items-row';
|
||||
import { Divider } from 'soapbox/components/ui';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
/**
|
||||
* IntentionalError:
|
||||
* For testing logging/monitoring & previewing ErrorBoundary design.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
interface ILogoText extends Pick<React.HTMLAttributes<HTMLHeadingElement>, 'dir'> {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { HStack, Stack } from 'soapbox/components/ui';
|
||||
|
||||
import PlaceholderAvatar from './placeholder-avatar';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { memo } from 'react';
|
||||
|
||||
import { randomIntFromInterval, generateText } from '../utils';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Stack } from 'soapbox/components/ui';
|
||||
|
||||
import { generateText, randomIntFromInterval } from '../utils';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Stack, Text } from 'soapbox/components/ui';
|
||||
|
||||
import { generateText, randomIntFromInterval } from '../utils';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { HStack, Stack, Text } from 'soapbox/components/ui';
|
||||
|
||||
import { generateText, randomIntFromInterval } from '../utils';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { HStack, Stack, Text } from 'soapbox/components/ui';
|
||||
|
||||
import { generateText, randomIntFromInterval } from '../utils';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { HStack, Stack, Text } from 'soapbox/components/ui';
|
||||
|
||||
import { generateText, randomIntFromInterval } from '../utils';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { generateText, randomIntFromInterval } from '../utils';
|
||||
|
||||
/** Fake hashtag to display while data is loading. */
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import PlaceholderStatus from './placeholder-status';
|
||||
|
||||
/** Fake material status to display while data is loading. */
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { HStack, Stack } from 'soapbox/components/ui';
|
||||
|
||||
import { randomIntFromInterval, generateText } from '../utils';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Stack } from 'soapbox/components/ui';
|
||||
|
||||
import { randomIntFromInterval, generateText } from '../utils';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { randomIntFromInterval, generateText } from '../utils';
|
||||
|
||||
interface IPlaceholderStatusContent {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Button, HStack } from 'soapbox/components/ui';
|
||||
import { useSettings } from 'soapbox/hooks';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import IconPickerDropdown from './icon-picker-dropdown';
|
||||
|
||||
interface IIconPicker {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import ColorWithPicker from 'soapbox/features/soapbox-config/components/color-with-picker';
|
||||
|
||||
import type { ColorChangeHandler } from 'react-color';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Card, CardBody, Spinner } from 'soapbox/components/ui';
|
||||
|
||||
const ColumnLoading = () => (
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Layout } from '../../../components/ui';
|
||||
|
||||
interface IColumnsArea {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { fireEvent, render, screen } from '@testing-library/react';
|
||||
import { IntlProvider } from 'react-intl';
|
||||
import { Provider } from 'react-redux';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Modal, Spinner } from 'soapbox/components/ui';
|
||||
|
||||
const ModalLoading = () => (
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Modal } from 'soapbox/components/ui';
|
||||
|
||||
interface IComponentModal {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Modal } from 'soapbox/components/ui';
|
||||
import DetailedCryptoAddress from 'soapbox/features/crypto-donate/components/detailed-crypto-address';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { HStack, Text } from 'soapbox/components/ui';
|
||||
import VerificationBadge from 'soapbox/components/verification-badge';
|
||||
import { useSoapboxConfig } from 'soapbox/hooks';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { useGroups } from 'soapbox/api/hooks';
|
||||
import { Widget } from 'soapbox/components/ui';
|
||||
import GroupListItem from 'soapbox/features/groups/components/discover/group-list-item';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { useSuggestedGroups } from 'soapbox/api/hooks';
|
||||
import { Widget } from 'soapbox/components/ui';
|
||||
import GroupListItem from 'soapbox/features/groups/components/discover/group-list-item';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import ForkAwesomeIcon from 'soapbox/components/fork-awesome-icon';
|
||||
import { Widget, Stack, Text } from 'soapbox/components/ui';
|
||||
import { useInstance, useSettings, useSoapboxConfig } from 'soapbox/hooks';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { changeSetting } from 'soapbox/actions/settings';
|
||||
import { useAppDispatch, useSettings } from 'soapbox/hooks';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { play, soundCache } from 'soapbox/utils/sounds';
|
||||
|
||||
import type { AnyAction, Middleware } from 'redux';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Layout } from 'soapbox/components/ui';
|
||||
import {
|
||||
LatestAccountsPanel,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
interface IChatsPage {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import LinkFooter from 'soapbox/features/ui/components/link-footer';
|
||||
import {
|
||||
WhoToFollowPanel,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Layout } from '../components/ui';
|
||||
|
||||
interface IEmptyPage {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Layout } from 'soapbox/components/ui';
|
||||
import LinkFooter from 'soapbox/features/ui/components/link-footer';
|
||||
import {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Layout } from 'soapbox/components/ui';
|
||||
import LinkFooter from 'soapbox/features/ui/components/link-footer';
|
||||
import { NewGroupPanel, SuggestedGroupsPanel } from 'soapbox/features/ui/util/async-components';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import LinkFooter from 'soapbox/features/ui/components/link-footer';
|
||||
import {
|
||||
TrendsPanel,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Layout } from 'soapbox/components/ui';
|
||||
import LinkFooter from 'soapbox/features/ui/components/link-footer';
|
||||
import { MyGroupsPanel, NewGroupPanel } from 'soapbox/features/ui/util/async-components';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import LinkFooter from 'soapbox/features/ui/components/link-footer';
|
||||
import {
|
||||
PromoPanel,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import LinkFooter from 'soapbox/features/ui/components/link-footer';
|
||||
import {
|
||||
WhoToFollowPanel,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import LinkFooter from 'soapbox/features/ui/components/link-footer';
|
||||
import {
|
||||
WhoToFollowPanel,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
interface IWidePage {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Map as ImmutableMap } from 'immutable';
|
||||
import sumBy from 'lodash/sumBy';
|
||||
import { useEffect } from 'react';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { render } from '@testing-library/react';
|
||||
import { AxiosError, AxiosHeaders } from 'axios';
|
||||
import { Toaster } from 'react-hot-toast';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { PLEROMA, parseVersion } from './features';
|
||||
|
||||
import type { RootState } from 'soapbox/store';
|
||||
|
|
Loading…
Reference in New Issue