kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Rename files (14): cleanup misc v2
rodzic
863ac4ea70
commit
774b627397
|
@ -1,4 +1,4 @@
|
||||||
import type { ModalType } from 'soapbox/features/ui/components/modal_root';
|
import type { ModalType } from 'soapbox/features/ui/components/modal-root';
|
||||||
|
|
||||||
export const MODAL_OPEN = 'MODAL_OPEN';
|
export const MODAL_OPEN = 'MODAL_OPEN';
|
||||||
export const MODAL_CLOSE = 'MODAL_CLOSE';
|
export const MODAL_CLOSE = 'MODAL_CLOSE';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { createPushSubscription, updatePushSubscription } from 'soapbox/actions/push_subscriptions';
|
import { createPushSubscription, updatePushSubscription } from 'soapbox/actions/push-subscriptions';
|
||||||
import { pushNotificationsSetting } from 'soapbox/settings';
|
import { pushNotificationsSetting } from 'soapbox/settings';
|
||||||
import { getVapidKey } from 'soapbox/utils/auth';
|
import { getVapidKey } from 'soapbox/utils/auth';
|
||||||
import { decode as decodeBase64 } from 'soapbox/utils/base64';
|
import { decode as decodeBase64 } from 'soapbox/utils/base64';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// @preval
|
// @preval
|
||||||
/**
|
/**
|
||||||
* Build config: configuration set at build time.
|
* Build config: configuration set at build time.
|
||||||
* @module soapbox/build_config
|
* @module soapbox/build-config
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const trim = require('lodash/trim');
|
const trim = require('lodash/trim');
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
|
||||||
import { defineMessages, useIntl } from 'react-intl';
|
import { defineMessages, useIntl } from 'react-intl';
|
||||||
|
|
||||||
import IconButton from 'soapbox/components/icon-button';
|
import IconButton from 'soapbox/components/icon-button';
|
||||||
import BundleContainer from 'soapbox/features/ui/containers/bundle_container';
|
import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
|
||||||
import { DatePicker } from 'soapbox/features/ui/util/async-components';
|
import { DatePicker } from 'soapbox/features/ui/util/async-components';
|
||||||
import { useAppSelector, useFeatures } from 'soapbox/hooks';
|
import { useAppSelector, useFeatures } from 'soapbox/hooks';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import { defineMessages, useIntl } from 'react-intl';
|
import { defineMessages, useIntl } from 'react-intl';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
import { unblockDomain } from 'soapbox/actions/domain_blocks';
|
import { unblockDomain } from 'soapbox/actions/domain-blocks';
|
||||||
|
|
||||||
import IconButton from './icon-button';
|
import IconButton from './icon-button';
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { withRouter, RouteComponentProps } from 'react-router-dom';
|
||||||
|
|
||||||
import { IconButton, Counter } from 'soapbox/components/ui';
|
import { IconButton, Counter } from 'soapbox/components/ui';
|
||||||
import SvgIcon from 'soapbox/components/ui/icon/svg-icon';
|
import SvgIcon from 'soapbox/components/ui/icon/svg-icon';
|
||||||
import Motion from 'soapbox/features/ui/util/optional_motion';
|
import Motion from 'soapbox/features/ui/util/optional-motion';
|
||||||
|
|
||||||
import type { Status } from 'soapbox/types/entities';
|
import type { Status } from 'soapbox/types/entities';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import React, { useState, useEffect, useRef } from 'react';
|
||||||
import { usePopper } from 'react-popper';
|
import { usePopper } from 'react-popper';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
import { simpleEmojiReact } from 'soapbox/actions/emoji_reacts';
|
import { simpleEmojiReact } from 'soapbox/actions/emoji-reacts';
|
||||||
import { openModal } from 'soapbox/actions/modals';
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
import EmojiSelector from 'soapbox/components/ui/emoji-selector/emoji-selector';
|
import EmojiSelector from 'soapbox/components/ui/emoji-selector/emoji-selector';
|
||||||
import { useAppSelector, useOwnAccount, useSoapboxConfig } from 'soapbox/hooks';
|
import { useAppSelector, useOwnAccount, useSoapboxConfig } from 'soapbox/hooks';
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { fetchAccount } from 'soapbox/actions/accounts';
|
||||||
import {
|
import {
|
||||||
openProfileHoverCard,
|
openProfileHoverCard,
|
||||||
closeProfileHoverCard,
|
closeProfileHoverCard,
|
||||||
} from 'soapbox/actions/profile_hover_card';
|
} from 'soapbox/actions/profile-hover-card';
|
||||||
import { useAppDispatch } from 'soapbox/hooks';
|
import { useAppDispatch } from 'soapbox/hooks';
|
||||||
import { isMobile } from 'soapbox/is-mobile';
|
import { isMobile } from 'soapbox/is-mobile';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import spring from 'react-motion/lib/spring';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
import emojify from 'soapbox/features/emoji/emoji';
|
import emojify from 'soapbox/features/emoji/emoji';
|
||||||
|
|
||||||
import Motion from '../features/ui/util/optional_motion';
|
import Motion from '../features/ui/util/optional-motion';
|
||||||
|
|
||||||
export default class IconButton extends React.PureComponent {
|
export default class IconButton extends React.PureComponent {
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { openModal, closeModal } from 'soapbox/actions/modals';
|
||||||
import { useAppDispatch, useAppSelector, usePrevious } from 'soapbox/hooks';
|
import { useAppDispatch, useAppSelector, usePrevious } from 'soapbox/hooks';
|
||||||
|
|
||||||
import type { UnregisterCallback } from 'history';
|
import type { UnregisterCallback } from 'history';
|
||||||
import type { ModalType } from 'soapbox/features/ui/components/modal_root';
|
import type { ModalType } from 'soapbox/features/ui/components/modal-root';
|
||||||
import type { ReducerCompose } from 'soapbox/reducers/compose';
|
import type { ReducerCompose } from 'soapbox/reducers/compose';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
|
|
|
@ -8,10 +8,10 @@ import { fetchRelationships } from 'soapbox/actions/accounts';
|
||||||
import {
|
import {
|
||||||
closeProfileHoverCard,
|
closeProfileHoverCard,
|
||||||
updateProfileHoverCard,
|
updateProfileHoverCard,
|
||||||
} from 'soapbox/actions/profile_hover_card';
|
} from 'soapbox/actions/profile-hover-card';
|
||||||
import Badge from 'soapbox/components/badge';
|
import Badge from 'soapbox/components/badge';
|
||||||
import ActionButton from 'soapbox/features/ui/components/action-button';
|
import ActionButton from 'soapbox/features/ui/components/action-button';
|
||||||
import BundleContainer from 'soapbox/features/ui/containers/bundle_container';
|
import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
|
||||||
import { UserPanel } from 'soapbox/features/ui/util/async-components';
|
import { UserPanel } from 'soapbox/features/ui/util/async-components';
|
||||||
import { useAppSelector, useAppDispatch } from 'soapbox/hooks';
|
import { useAppSelector, useAppDispatch } from 'soapbox/hooks';
|
||||||
import { makeGetAccount } from 'soapbox/selectors';
|
import { makeGetAccount } from 'soapbox/selectors';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { getSettings } from 'soapbox/actions/settings';
|
||||||
import { closeSidebar } from 'soapbox/actions/sidebar';
|
import { closeSidebar } from 'soapbox/actions/sidebar';
|
||||||
import Account from 'soapbox/components/account';
|
import Account from 'soapbox/components/account';
|
||||||
import { Stack } from 'soapbox/components/ui';
|
import { Stack } from 'soapbox/components/ui';
|
||||||
import ProfileStats from 'soapbox/features/ui/components/profile_stats';
|
import ProfileStats from 'soapbox/features/ui/components/profile-stats';
|
||||||
import { useAppSelector, useFeatures } from 'soapbox/hooks';
|
import { useAppSelector, useFeatures } from 'soapbox/hooks';
|
||||||
import { makeGetAccount, makeGetOtherAccounts } from 'soapbox/selectors';
|
import { makeGetAccount, makeGetOtherAccounts } from 'soapbox/selectors';
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import Ad from 'soapbox/features/ads/components/ad';
|
||||||
import FeedSuggestions from 'soapbox/features/feed-suggestions/feed-suggestions';
|
import FeedSuggestions from 'soapbox/features/feed-suggestions/feed-suggestions';
|
||||||
import PlaceholderStatus from 'soapbox/features/placeholder/components/placeholder-status';
|
import PlaceholderStatus from 'soapbox/features/placeholder/components/placeholder-status';
|
||||||
import { ALGORITHMS } from 'soapbox/features/timeline-insertion';
|
import { ALGORITHMS } from 'soapbox/features/timeline-insertion';
|
||||||
import PendingStatus from 'soapbox/features/ui/components/pending_status';
|
import PendingStatus from 'soapbox/features/ui/components/pending-status';
|
||||||
import { useSoapboxConfig } from 'soapbox/hooks';
|
import { useSoapboxConfig } from 'soapbox/hooks';
|
||||||
import useAds from 'soapbox/queries/ads';
|
import useAds from 'soapbox/queries/ads';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { FormattedMessage } from 'react-intl';
|
||||||
import { spring } from 'react-motion';
|
import { spring } from 'react-motion';
|
||||||
|
|
||||||
import { HStack, Icon, Stack, Text } from 'soapbox/components/ui';
|
import { HStack, Icon, Stack, Text } from 'soapbox/components/ui';
|
||||||
import Motion from 'soapbox/features/ui/util/optional_motion';
|
import Motion from 'soapbox/features/ui/util/optional-motion';
|
||||||
|
|
||||||
interface IUploadProgress {
|
interface IUploadProgress {
|
||||||
/** Number between 0 and 1 to represent the percentage complete. */
|
/** Number between 0 and 1 to represent the percentage complete. */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { openDropdownMenu, closeDropdownMenu } from '../actions/dropdown_menu';
|
import { openDropdownMenu, closeDropdownMenu } from '../actions/dropdown-menu';
|
||||||
import { openModal, closeModal } from '../actions/modals';
|
import { openModal, closeModal } from '../actions/modals';
|
||||||
import DropdownMenu from '../components/dropdown-menu';
|
import DropdownMenu from '../components/dropdown-menu';
|
||||||
import { isUserTouching } from '../is-mobile';
|
import { isUserTouching } from '../is-mobile';
|
||||||
|
|
|
@ -20,7 +20,7 @@ import LoadingScreen from 'soapbox/components/loading-screen';
|
||||||
import AuthLayout from 'soapbox/features/auth-layout';
|
import AuthLayout from 'soapbox/features/auth-layout';
|
||||||
import EmbeddedStatus from 'soapbox/features/embedded-status';
|
import EmbeddedStatus from 'soapbox/features/embedded-status';
|
||||||
import PublicLayout from 'soapbox/features/public-layout';
|
import PublicLayout from 'soapbox/features/public-layout';
|
||||||
import BundleContainer from 'soapbox/features/ui/containers/bundle_container';
|
import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
|
||||||
import {
|
import {
|
||||||
ModalContainer,
|
ModalContainer,
|
||||||
NotificationsContainer,
|
NotificationsContainer,
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { Link, useHistory } from 'react-router-dom';
|
||||||
import { blockAccount, followAccount, pinAccount, removeFromFollowers, unblockAccount, unmuteAccount, unpinAccount } from 'soapbox/actions/accounts';
|
import { blockAccount, followAccount, pinAccount, removeFromFollowers, unblockAccount, unmuteAccount, unpinAccount } from 'soapbox/actions/accounts';
|
||||||
import { launchChat } from 'soapbox/actions/chats';
|
import { launchChat } from 'soapbox/actions/chats';
|
||||||
import { mentionCompose, directCompose } from 'soapbox/actions/compose';
|
import { mentionCompose, directCompose } from 'soapbox/actions/compose';
|
||||||
import { blockDomain, unblockDomain } from 'soapbox/actions/domain_blocks';
|
import { blockDomain, unblockDomain } from 'soapbox/actions/domain-blocks';
|
||||||
import { openModal } from 'soapbox/actions/modals';
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
import { initMuteModal } from 'soapbox/actions/mutes';
|
import { initMuteModal } from 'soapbox/actions/mutes';
|
||||||
import { initReport } from 'soapbox/actions/reports';
|
import { initReport } from 'soapbox/actions/reports';
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import { FormattedMessage, FormattedNumber } from 'react-intl';
|
import { FormattedMessage, FormattedNumber } from 'react-intl';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
import { getSubscribersCsv, getUnsubscribersCsv, getCombinedCsv } from 'soapbox/actions/email_list';
|
import { getSubscribersCsv, getUnsubscribersCsv, getCombinedCsv } from 'soapbox/actions/email-list';
|
||||||
import { Text } from 'soapbox/components/ui';
|
import { Text } from 'soapbox/components/ui';
|
||||||
import { useAppSelector, useAppDispatch, useOwnAccount, useFeatures } from 'soapbox/hooks';
|
import { useAppSelector, useAppDispatch, useOwnAccount, useFeatures } from 'soapbox/hooks';
|
||||||
import sourceCode from 'soapbox/utils/code';
|
import sourceCode from 'soapbox/utils/code';
|
||||||
|
|
|
@ -7,15 +7,15 @@ import SiteLogo from 'soapbox/components/site-logo';
|
||||||
import { useAppSelector, useFeatures, useSoapboxConfig, useOwnAccount } from 'soapbox/hooks';
|
import { useAppSelector, useFeatures, useSoapboxConfig, useOwnAccount } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { Button, Card, CardBody } from '../../components/ui';
|
import { Button, Card, CardBody } from '../../components/ui';
|
||||||
import LoginPage from '../auth-login/components/login_page';
|
import LoginPage from '../auth-login/components/login-page';
|
||||||
import PasswordReset from '../auth-login/components/password_reset';
|
import PasswordReset from '../auth-login/components/password-reset';
|
||||||
import PasswordResetConfirm from '../auth-login/components/password_reset_confirm';
|
import PasswordResetConfirm from '../auth-login/components/password-reset-confirm';
|
||||||
import RegistrationForm from '../auth-login/components/registration_form';
|
import RegistrationForm from '../auth-login/components/registration-form';
|
||||||
import ExternalLoginForm from '../external-login/components/external-login-form';
|
import ExternalLoginForm from '../external-login/components/external-login-form';
|
||||||
import Footer from '../public-layout/components/footer';
|
import Footer from '../public-layout/components/footer';
|
||||||
import RegisterInvite from '../register-invite';
|
import RegisterInvite from '../register-invite';
|
||||||
import Verification from '../verification';
|
import Verification from '../verification';
|
||||||
import EmailPassthru from '../verification/email_passthru';
|
import EmailPassthru from '../verification/email-passthru';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
register: { id: 'auth_layout.register', defaultMessage: 'Create an account' },
|
register: { id: 'auth_layout.register', defaultMessage: 'Create an account' },
|
||||||
|
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||||
import { normalizeInstance } from 'soapbox/normalizers';
|
import { normalizeInstance } from 'soapbox/normalizers';
|
||||||
|
|
||||||
import { fireEvent, render, screen } from '../../../../jest/test-helpers';
|
import { fireEvent, render, screen } from '../../../../jest/test-helpers';
|
||||||
import LoginForm from '../login_form';
|
import LoginForm from '../login-form';
|
||||||
|
|
||||||
describe('<LoginForm />', () => {
|
describe('<LoginForm />', () => {
|
||||||
it('renders for Pleroma', () => {
|
it('renders for Pleroma', () => {
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||||
import { normalizeInstance } from 'soapbox/normalizers';
|
import { normalizeInstance } from 'soapbox/normalizers';
|
||||||
|
|
||||||
import { render, screen } from '../../../../jest/test-helpers';
|
import { render, screen } from '../../../../jest/test-helpers';
|
||||||
import LoginPage from '../login_page';
|
import LoginPage from '../login-page';
|
||||||
|
|
||||||
describe('<LoginPage />', () => {
|
describe('<LoginPage />', () => {
|
||||||
it('renders correctly on load', () => {
|
it('renders correctly on load', () => {
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { render, screen } from '../../../../jest/test-helpers';
|
import { render, screen } from '../../../../jest/test-helpers';
|
||||||
import OtpAuthForm from '../otp_auth_form';
|
import OtpAuthForm from '../otp-auth-form';
|
||||||
|
|
||||||
describe('<OtpAuthForm />', () => {
|
describe('<OtpAuthForm />', () => {
|
||||||
it('renders correctly', () => {
|
it('renders correctly', () => {
|
|
@ -4,7 +4,7 @@ import { Route, Switch } from 'react-router-dom';
|
||||||
import { __stub } from 'soapbox/api';
|
import { __stub } from 'soapbox/api';
|
||||||
|
|
||||||
import { fireEvent, render, screen, waitFor } from '../../../../jest/test-helpers';
|
import { fireEvent, render, screen, waitFor } from '../../../../jest/test-helpers';
|
||||||
import PasswordResetConfirm from '../password_reset_confirm';
|
import PasswordResetConfirm from '../password-reset-confirm';
|
||||||
|
|
||||||
const TestableComponent = () => (
|
const TestableComponent = () => (
|
||||||
<Switch>
|
<Switch>
|
|
@ -8,8 +8,8 @@ import { useAppDispatch, useAppSelector } from 'soapbox/hooks';
|
||||||
import { getRedirectUrl } from 'soapbox/utils/redirect';
|
import { getRedirectUrl } from 'soapbox/utils/redirect';
|
||||||
import { isStandalone } from 'soapbox/utils/state';
|
import { isStandalone } from 'soapbox/utils/state';
|
||||||
|
|
||||||
import LoginForm from './login_form';
|
import LoginForm from './login-form';
|
||||||
import OtpAuthForm from './otp_auth_form';
|
import OtpAuthForm from './otp-auth-form';
|
||||||
|
|
||||||
import type { AxiosError } from 'axios';
|
import type { AxiosError } from 'axios';
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { fetchBackups, createBackup } from 'soapbox/actions/backups';
|
||||||
import ScrollableList from 'soapbox/components/scrollable-list';
|
import ScrollableList from 'soapbox/components/scrollable-list';
|
||||||
import { useAppDispatch, useAppSelector } from 'soapbox/hooks';
|
import { useAppDispatch, useAppSelector } from 'soapbox/hooks';
|
||||||
|
|
||||||
import Column from '../ui/components/better_column';
|
import Column from '../ui/components/better-column';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
heading: { id: 'column.backups', defaultMessage: 'Backups' },
|
heading: { id: 'column.backups', defaultMessage: 'Backups' },
|
||||||
|
|
|
@ -13,7 +13,7 @@ import { IconButton } from 'soapbox/components/ui';
|
||||||
import { useAppDispatch, useCompose } from 'soapbox/hooks';
|
import { useAppDispatch, useCompose } from 'soapbox/hooks';
|
||||||
import { isUserTouching } from 'soapbox/is-mobile';
|
import { isUserTouching } from 'soapbox/is-mobile';
|
||||||
|
|
||||||
import Motion from '../../ui/util/optional_motion';
|
import Motion from '../../ui/util/optional-motion';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
public_short: { id: 'privacy.public.short', defaultMessage: 'Public' },
|
public_short: { id: 'privacy.public.short', defaultMessage: 'Public' },
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
||||||
import { setSchedule, removeSchedule } from 'soapbox/actions/compose';
|
import { setSchedule, removeSchedule } from 'soapbox/actions/compose';
|
||||||
import IconButton from 'soapbox/components/icon-button';
|
import IconButton from 'soapbox/components/icon-button';
|
||||||
import { HStack, Stack, Text } from 'soapbox/components/ui';
|
import { HStack, Stack, Text } from 'soapbox/components/ui';
|
||||||
import BundleContainer from 'soapbox/features/ui/containers/bundle_container';
|
import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
|
||||||
import { DatePicker } from 'soapbox/features/ui/util/async-components';
|
import { DatePicker } from 'soapbox/features/ui/util/async-components';
|
||||||
import { useAppDispatch, useCompose } from 'soapbox/hooks';
|
import { useAppDispatch, useCompose } from 'soapbox/hooks';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import React, { useEffect, useRef } from 'react';
|
||||||
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
||||||
|
|
||||||
import { expandSearch, setFilter, setSearchAccount } from 'soapbox/actions/search';
|
import { expandSearch, setFilter, setSearchAccount } from 'soapbox/actions/search';
|
||||||
import { fetchTrendingStatuses } from 'soapbox/actions/trending_statuses';
|
import { fetchTrendingStatuses } from 'soapbox/actions/trending-statuses';
|
||||||
import Hashtag from 'soapbox/components/hashtag';
|
import Hashtag from 'soapbox/components/hashtag';
|
||||||
import IconButton from 'soapbox/components/icon-button';
|
import IconButton from 'soapbox/components/icon-button';
|
||||||
import ScrollableList from 'soapbox/components/scrollable-list';
|
import ScrollableList from 'soapbox/components/scrollable-list';
|
||||||
|
|
|
@ -12,7 +12,7 @@ import Icon from 'soapbox/components/icon';
|
||||||
import IconButton from 'soapbox/components/icon-button';
|
import IconButton from 'soapbox/components/icon-button';
|
||||||
import { useAppDispatch, useAppSelector, useCompose } from 'soapbox/hooks';
|
import { useAppDispatch, useAppSelector, useCompose } from 'soapbox/hooks';
|
||||||
|
|
||||||
import Motion from '../../ui/util/optional_motion';
|
import Motion from '../../ui/util/optional-motion';
|
||||||
|
|
||||||
const bookIcon = require('@tabler/icons/book.svg');
|
const bookIcon = require('@tabler/icons/book.svg');
|
||||||
const fileCodeIcon = require('@tabler/icons/file-code.svg');
|
const fileCodeIcon = require('@tabler/icons/file-code.svg');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { spring } from 'react-motion';
|
import { spring } from 'react-motion';
|
||||||
|
|
||||||
import Motion from '../../ui/util/optional_motion';
|
import Motion from '../../ui/util/optional-motion';
|
||||||
|
|
||||||
interface IWarning {
|
interface IWarning {
|
||||||
message: React.ReactNode,
|
message: React.ReactNode,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import BundleContainer from 'soapbox/features/ui/containers/bundle_container';
|
import BundleContainer from 'soapbox/features/ui/containers/bundle-container';
|
||||||
import { ScheduleForm } from 'soapbox/features/ui/util/async-components';
|
import { ScheduleForm } from 'soapbox/features/ui/util/async-components';
|
||||||
|
|
||||||
import type { IScheduleForm } from '../components/schedule-form';
|
import type { IScheduleForm } from '../components/schedule-form';
|
||||||
|
|
|
@ -11,7 +11,7 @@ import Column from 'soapbox/features/ui/components/column';
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
import { useAppSelector } from 'soapbox/hooks';
|
||||||
import { getFeatures } from 'soapbox/utils/features';
|
import { getFeatures } from 'soapbox/utils/features';
|
||||||
|
|
||||||
import AccountCard from './components/account_card';
|
import AccountCard from './components/account-card';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
title: { id: 'column.directory', defaultMessage: 'Browse profiles' },
|
title: { id: 'column.directory', defaultMessage: 'Browse profiles' },
|
||||||
|
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||||
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
import { fetchDomainBlocks, expandDomainBlocks } from 'soapbox/actions/domain_blocks';
|
import { fetchDomainBlocks, expandDomainBlocks } from 'soapbox/actions/domain-blocks';
|
||||||
import Domain from 'soapbox/components/domain';
|
import Domain from 'soapbox/components/domain';
|
||||||
import ScrollableList from 'soapbox/components/scrollable-list';
|
import ScrollableList from 'soapbox/components/scrollable-list';
|
||||||
import { Spinner } from 'soapbox/components/ui';
|
import { Spinner } from 'soapbox/components/ui';
|
||||||
|
|
|
@ -5,7 +5,7 @@ import {
|
||||||
exportFollows,
|
exportFollows,
|
||||||
exportBlocks,
|
exportBlocks,
|
||||||
exportMutes,
|
exportMutes,
|
||||||
} from 'soapbox/actions/export_data';
|
} from 'soapbox/actions/export-data';
|
||||||
|
|
||||||
import Column from '../ui/components/column';
|
import Column from '../ui/components/column';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { useState, useEffect } from 'react';
|
import React, { useState, useEffect } from 'react';
|
||||||
import { useIntl, FormattedMessage, defineMessages } from 'react-intl';
|
import { useIntl, FormattedMessage, defineMessages } from 'react-intl';
|
||||||
|
|
||||||
import { externalLogin, loginWithCode } from 'soapbox/actions/external_auth';
|
import { externalLogin, loginWithCode } from 'soapbox/actions/external-auth';
|
||||||
import snackbar from 'soapbox/actions/snackbar';
|
import snackbar from 'soapbox/actions/snackbar';
|
||||||
import { Button, Form, FormActions, FormGroup, Input, Spinner } from 'soapbox/components/ui';
|
import { Button, Form, FormActions, FormGroup, Input, Spinner } from 'soapbox/components/ui';
|
||||||
import { useAppDispatch } from 'soapbox/hooks';
|
import { useAppDispatch } from 'soapbox/hooks';
|
||||||
|
|
|
@ -5,7 +5,7 @@ import {
|
||||||
importFollows,
|
importFollows,
|
||||||
importBlocks,
|
importBlocks,
|
||||||
importMutes,
|
importMutes,
|
||||||
} from 'soapbox/actions/import_data';
|
} from 'soapbox/actions/import-data';
|
||||||
|
|
||||||
import Column from '../ui/components/column';
|
import Column from '../ui/components/column';
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { FormattedMessage } from 'react-intl';
|
||||||
import { prepareRequest } from 'soapbox/actions/consumer-auth';
|
import { prepareRequest } from 'soapbox/actions/consumer-auth';
|
||||||
import { Button, Card, CardBody, Stack, Text } from 'soapbox/components/ui';
|
import { Button, Card, CardBody, Stack, Text } from 'soapbox/components/ui';
|
||||||
import VerificationBadge from 'soapbox/components/verification-badge';
|
import VerificationBadge from 'soapbox/components/verification-badge';
|
||||||
import RegistrationForm from 'soapbox/features/auth-login/components/registration_form';
|
import RegistrationForm from 'soapbox/features/auth-login/components/registration-form';
|
||||||
import { useAppDispatch, useAppSelector, useFeatures, useSoapboxConfig } from 'soapbox/hooks';
|
import { useAppDispatch, useAppSelector, useFeatures, useSoapboxConfig } from 'soapbox/hooks';
|
||||||
import { capitalize } from 'soapbox/utils/strings';
|
import { capitalize } from 'soapbox/utils/strings';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { CardHeader, CardTitle, Modal } from 'soapbox/components/ui';
|
||||||
import { useAppSelector, useAppDispatch } from 'soapbox/hooks';
|
import { useAppSelector, useAppDispatch } from 'soapbox/hooks';
|
||||||
|
|
||||||
import Account from './components/account';
|
import Account from './components/account';
|
||||||
import EditListForm from './components/edit_list_form';
|
import EditListForm from './components/edit-list-form';
|
||||||
import Search from './components/search';
|
import Search from './components/search';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
|
@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
|
||||||
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
||||||
import { useParams } from 'react-router-dom';
|
import { useParams } from 'react-router-dom';
|
||||||
|
|
||||||
import { fetchPinnedStatuses } from 'soapbox/actions/pin_statuses';
|
import { fetchPinnedStatuses } from 'soapbox/actions/pin-statuses';
|
||||||
import MissingIndicator from 'soapbox/components/missing-indicator';
|
import MissingIndicator from 'soapbox/components/missing-indicator';
|
||||||
import StatusList from 'soapbox/components/status-list';
|
import StatusList from 'soapbox/components/status-list';
|
||||||
import { useAppDispatch, useAppSelector } from 'soapbox/hooks';
|
import { useAppDispatch, useAppSelector } from 'soapbox/hooks';
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { FormattedMessage } from 'react-intl';
|
||||||
import { useParams } from 'react-router-dom';
|
import { useParams } from 'react-router-dom';
|
||||||
|
|
||||||
import { Stack, CardTitle, Text } from 'soapbox/components/ui';
|
import { Stack, CardTitle, Text } from 'soapbox/components/ui';
|
||||||
import RegistrationForm from 'soapbox/features/auth-login/components/registration_form';
|
import RegistrationForm from 'soapbox/features/auth-login/components/registration-form';
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
import { useAppSelector } from 'soapbox/hooks';
|
||||||
|
|
||||||
interface RegisterInviteParams {
|
interface RegisterInviteParams {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import { defineMessages, useIntl } from 'react-intl';
|
import { defineMessages, useIntl } from 'react-intl';
|
||||||
|
|
||||||
import { openModal } from 'soapbox/actions/modals';
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
import { cancelScheduledStatus } from 'soapbox/actions/scheduled_statuses';
|
import { cancelScheduledStatus } from 'soapbox/actions/scheduled-statuses';
|
||||||
import { getSettings } from 'soapbox/actions/settings';
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
import IconButton from 'soapbox/components/icon-button';
|
import IconButton from 'soapbox/components/icon-button';
|
||||||
import { HStack } from 'soapbox/components/ui';
|
import { HStack } from 'soapbox/components/ui';
|
||||||
|
|
|
@ -6,7 +6,7 @@ import StatusContent from 'soapbox/components/status-content';
|
||||||
import StatusReplyMentions from 'soapbox/components/status-reply-mentions';
|
import StatusReplyMentions from 'soapbox/components/status-reply-mentions';
|
||||||
import { HStack } from 'soapbox/components/ui';
|
import { HStack } from 'soapbox/components/ui';
|
||||||
import AccountContainer from 'soapbox/containers/account-container';
|
import AccountContainer from 'soapbox/containers/account-container';
|
||||||
import PollPreview from 'soapbox/features/ui/components/poll_preview';
|
import PollPreview from 'soapbox/features/ui/components/poll-preview';
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
import { useAppSelector } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { buildStatus } from '../builder';
|
import { buildStatus } from '../builder';
|
||||||
|
|
|
@ -2,7 +2,7 @@ import debounce from 'lodash/debounce';
|
||||||
import React, { useEffect } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
||||||
|
|
||||||
import { fetchScheduledStatuses, expandScheduledStatuses } from 'soapbox/actions/scheduled_statuses';
|
import { fetchScheduledStatuses, expandScheduledStatuses } from 'soapbox/actions/scheduled-statuses';
|
||||||
import ScrollableList from 'soapbox/components/scrollable-list';
|
import ScrollableList from 'soapbox/components/scrollable-list';
|
||||||
import { useAppSelector, useAppDispatch } from 'soapbox/hooks';
|
import { useAppSelector, useAppDispatch } from 'soapbox/hooks';
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ import { defineMessages, useIntl } from 'react-intl';
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
import { useAppSelector } from 'soapbox/hooks';
|
||||||
|
|
||||||
import Column from '../ui/components/column';
|
import Column from '../ui/components/column';
|
||||||
import LinkFooter from '../ui/components/link_footer';
|
import LinkFooter from '../ui/components/link-footer';
|
||||||
import PromoPanel from '../ui/components/promo_panel';
|
import PromoPanel from '../ui/components/promo-panel';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
heading: { id: 'column.info', defaultMessage: 'Server information' },
|
heading: { id: 'column.info', defaultMessage: 'Server information' },
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
import { defaultSettings } from 'soapbox/actions/settings';
|
import { defaultSettings } from 'soapbox/actions/settings';
|
||||||
import SiteLogo from 'soapbox/components/site-logo';
|
import SiteLogo from 'soapbox/components/site-logo';
|
||||||
import BackgroundShapes from 'soapbox/features/ui/components/background_shapes';
|
import BackgroundShapes from 'soapbox/features/ui/components/background-shapes';
|
||||||
import { useSystemTheme } from 'soapbox/hooks';
|
import { useSystemTheme } from 'soapbox/hooks';
|
||||||
import { normalizeSoapboxConfig } from 'soapbox/normalizers';
|
import { normalizeSoapboxConfig } from 'soapbox/normalizers';
|
||||||
import { generateThemeCss } from 'soapbox/utils/theme';
|
import { generateThemeCss } from 'soapbox/utils/theme';
|
||||||
|
|
|
@ -33,7 +33,7 @@ import SubNavigation from 'soapbox/components/sub-navigation';
|
||||||
import Tombstone from 'soapbox/components/tombstone';
|
import Tombstone from 'soapbox/components/tombstone';
|
||||||
import { Column, Stack } from 'soapbox/components/ui';
|
import { Column, Stack } from 'soapbox/components/ui';
|
||||||
import PlaceholderStatus from 'soapbox/features/placeholder/components/placeholder-status';
|
import PlaceholderStatus from 'soapbox/features/placeholder/components/placeholder-status';
|
||||||
import PendingStatus from 'soapbox/features/ui/components/pending_status';
|
import PendingStatus from 'soapbox/features/ui/components/pending-status';
|
||||||
import { useAppDispatch, useAppSelector, useSettings } from 'soapbox/hooks';
|
import { useAppDispatch, useAppSelector, useSettings } from 'soapbox/hooks';
|
||||||
import { makeGetStatus } from 'soapbox/selectors';
|
import { makeGetStatus } from 'soapbox/selectors';
|
||||||
import { defaultMediaVisibility, textForScreenReader } from 'soapbox/utils/status';
|
import { defaultMediaVisibility, textForScreenReader } from 'soapbox/utils/status';
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { Route, Switch } from 'react-router-dom';
|
||||||
import { render, screen, waitFor } from '../../../jest/test-helpers';
|
import { render, screen, waitFor } from '../../../jest/test-helpers';
|
||||||
import { normalizeAccount } from '../../../normalizers';
|
import { normalizeAccount } from '../../../normalizers';
|
||||||
import UI from '../index';
|
import UI from '../index';
|
||||||
import { WrappedRoute } from '../util/react_router_helpers';
|
import { WrappedRoute } from '../util/react-router-helpers';
|
||||||
|
|
||||||
const TestableComponent = () => (
|
const TestableComponent = () => (
|
||||||
<Switch>
|
<Switch>
|
||||||
|
|
|
@ -8,7 +8,7 @@ import StatusContent from 'soapbox/components/status-content';
|
||||||
import { Stack } from 'soapbox/components/ui';
|
import { Stack } from 'soapbox/components/ui';
|
||||||
import AccountContainer from 'soapbox/containers/account-container';
|
import AccountContainer from 'soapbox/containers/account-container';
|
||||||
|
|
||||||
import Motion from '../util/optional_motion';
|
import Motion from '../util/optional-motion';
|
||||||
|
|
||||||
import type { Menu, MenuItem } from 'soapbox/components/dropdown-menu';
|
import type { Menu, MenuItem } from 'soapbox/components/dropdown-menu';
|
||||||
import type { Status as StatusEntity } from 'soapbox/types/entities';
|
import type { Status as StatusEntity } from 'soapbox/types/entities';
|
|
@ -4,7 +4,7 @@ import React from 'react';
|
||||||
import { Column } from 'soapbox/components/ui';
|
import { Column } from 'soapbox/components/ui';
|
||||||
import DropdownMenu from 'soapbox/containers/dropdown-menu-container';
|
import DropdownMenu from 'soapbox/containers/dropdown-menu-container';
|
||||||
|
|
||||||
import ColumnHeader from './column_header';
|
import ColumnHeader from './column-header';
|
||||||
|
|
||||||
// Yes, there are 3 types of columns at this point, but this one is better, I swear
|
// Yes, there are 3 types of columns at this point, but this one is better, I swear
|
||||||
export default class BetterColumn extends React.PureComponent {
|
export default class BetterColumn extends React.PureComponent {
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||||
import Pullable from 'soapbox/components/pullable';
|
import Pullable from 'soapbox/components/pullable';
|
||||||
import { Column } from 'soapbox/components/ui';
|
import { Column } from 'soapbox/components/ui';
|
||||||
|
|
||||||
import ColumnHeader from './column_header';
|
import ColumnHeader from './column-header';
|
||||||
|
|
||||||
import type { IColumn } from 'soapbox/components/ui/column/column';
|
import type { IColumn } from 'soapbox/components/ui/column/column';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useIntl, defineMessages } from 'react-intl';
|
import { useIntl, defineMessages } from 'react-intl';
|
||||||
|
|
||||||
import { pinHost, unpinHost } from 'soapbox/actions/remote_timeline';
|
import { pinHost, unpinHost } from 'soapbox/actions/remote-timeline';
|
||||||
import { Widget } from 'soapbox/components/ui';
|
import { Widget } from 'soapbox/components/ui';
|
||||||
import { useAppSelector, useAppDispatch, useSettings } from 'soapbox/hooks';
|
import { useAppSelector, useAppDispatch, useSettings } from 'soapbox/hooks';
|
||||||
import { makeGetRemoteInstance } from 'soapbox/selectors';
|
import { makeGetRemoteInstance } from 'soapbox/selectors';
|
Some files were not shown because too many files have changed in this diff Show More
Ładowanie…
Reference in New Issue