pl-fe: Avoid barrel imports
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
398fcd043b
commit
525088ca2e
281 changed files with 625 additions and 296 deletions
|
@ -4,7 +4,8 @@ import { defineMessages, IntlShape } from 'react-intl';
|
|||
import { fetchAccountByUsername } from 'pl-fe/actions/accounts';
|
||||
import { deactivateUser, deleteUser, deleteStatus, toggleStatusSensitivity } from 'pl-fe/actions/admin';
|
||||
import OutlineBox from 'pl-fe/components/outline-box';
|
||||
import { Stack, Text } from 'pl-fe/components/ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import AccountContainer from 'pl-fe/containers/account-container';
|
||||
import { selectAccount } from 'pl-fe/selectors';
|
||||
import { useModalsStore } from 'pl-fe/stores';
|
||||
|
|
|
@ -16,7 +16,7 @@ import { showAccountHoverCard } from './hover-account-wrapper';
|
|||
import { ParsedContent } from './parsed-content';
|
||||
import { dateFormatOptions } from './relative-timestamp';
|
||||
import Scrobble from './scrobble';
|
||||
import { Card, CardBody, HStack, Icon, Stack, Text } from './ui';
|
||||
import { Card, CardBody, HStack, Icon, Stack, Text } from 'pl-fe/components/ui';
|
||||
|
||||
import type { Account } from 'pl-fe/normalizers';
|
||||
|
||||
|
|
|
@ -12,7 +12,14 @@ import { displayFqn } from 'pl-fe/utils/state';
|
|||
import Badge from './badge';
|
||||
import { ParsedContent } from './parsed-content';
|
||||
import RelativeTimestamp from './relative-timestamp';
|
||||
import { Avatar, Emoji, HStack, Icon, IconButton, Stack, Text } from './ui';
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
import Emoji from 'pl-fe/components/ui/emoji';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import IconButton from 'pl-fe/components/ui/icon-button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
|
||||
import type { Account as AccountSchema } from 'pl-fe/normalizers';
|
||||
import type { StatusApprovalStatus } from 'pl-fe/normalizers/status';
|
||||
|
|
|
@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { Icon } from './ui';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
|
||||
interface IAltIndicator extends Pick<React.HTMLAttributes<HTMLSpanElement>, 'title' | 'className'> {
|
||||
warning?: boolean;
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import React from 'react';
|
||||
import { FormattedDate } from 'react-intl';
|
||||
|
||||
import { Stack, Text } from 'pl-fe/components/ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useFeatures } from 'pl-fe/hooks';
|
||||
import { getTextDirection } from 'pl-fe/utils/rtl';
|
||||
|
||||
|
|
|
@ -4,7 +4,8 @@ import React, { PureComponent } from 'react';
|
|||
|
||||
import AutosuggestEmoji from 'pl-fe/components/autosuggest-emoji';
|
||||
import Icon from 'pl-fe/components/icon';
|
||||
import { Input, Portal } from 'pl-fe/components/ui';
|
||||
import Input from 'pl-fe/components/ui/input';
|
||||
import Portal from 'pl-fe/components/ui/portal';
|
||||
import AutosuggestAccount from 'pl-fe/features/compose/components/autosuggest-account';
|
||||
import { textAtCursorMatchesToken } from 'pl-fe/utils/suggestions';
|
||||
|
||||
|
|
|
@ -2,7 +2,10 @@ import React from 'react';
|
|||
|
||||
import { useAppSelector } from 'pl-fe/hooks';
|
||||
|
||||
import { HStack, Icon, Stack, Text } from './ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
const buildingCommunityIcon = require('@tabler/icons/outline/building-community.svg');
|
||||
const homeIcon = require('@tabler/icons/outline/home-2.svg');
|
||||
|
|
|
@ -2,7 +2,8 @@ import clsx from 'clsx';
|
|||
import { List as ImmutableList, OrderedSet as ImmutableOrderedSet } from 'immutable';
|
||||
import React from 'react';
|
||||
|
||||
import { Avatar, HStack } from 'pl-fe/components/ui';
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import { useAppSelector } from 'pl-fe/hooks';
|
||||
import { makeGetAccount } from 'pl-fe/selectors';
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import React, { useRef } from 'react';
|
|||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { fetchBirthdayReminders } from 'pl-fe/actions/accounts';
|
||||
import { Widget } from 'pl-fe/components/ui';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
import AccountContainer from 'pl-fe/containers/account-container';
|
||||
import { useAppDispatch, useAppSelector } from 'pl-fe/hooks';
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
import React, { useRef } from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { Button, HStack, Input } from './ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Input from 'pl-fe/components/ui/input';
|
||||
|
||||
interface ICopyableInput {
|
||||
/** Text to be copied. */
|
||||
|
|
|
@ -4,7 +4,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|||
import { unblockDomain } from 'pl-fe/actions/domain-blocks';
|
||||
import { useAppDispatch } from 'pl-fe/hooks';
|
||||
|
||||
import { HStack, IconButton, Text } from './ui';
|
||||
import { HStack, IconButton, Text } from 'pl-fe/components/ui';
|
||||
|
||||
const messages = defineMessages({
|
||||
blockDomainConfirm: { id: 'confirmations.domain_block.confirm', defaultMessage: 'Hide entire domain' },
|
||||
|
|
|
@ -4,7 +4,7 @@ import { useHistory } from 'react-router-dom';
|
|||
|
||||
import { userTouching } from 'pl-fe/is-mobile';
|
||||
|
||||
import { Counter, Icon, Toggle } from '../ui';
|
||||
import { Counter, Icon, Toggle } from 'pl-fe/components/ui';
|
||||
|
||||
interface MenuItem {
|
||||
action?: React.EventHandler<React.KeyboardEvent | React.MouseEvent>;
|
||||
|
|
|
@ -7,7 +7,7 @@ import ReactSwipeableViews from 'react-swipeable-views';
|
|||
import { userTouching } from 'pl-fe/is-mobile';
|
||||
import { useUiStore, useModalsStore } from 'pl-fe/stores';
|
||||
|
||||
import { HStack, IconButton, Portal } from '../ui';
|
||||
import { HStack, IconButton, Portal } from 'pl-fe/components/ui';
|
||||
|
||||
import DropdownMenuItem, { MenuItem } from './dropdown-menu-item';
|
||||
|
||||
|
|
|
@ -2,14 +2,16 @@ import clsx from 'clsx';
|
|||
import React from 'react';
|
||||
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
||||
|
||||
import Icon from 'pl-fe/components/icon';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import VerificationBadge from 'pl-fe/components/verification-badge';
|
||||
import EventActionButton from 'pl-fe/features/event/components/event-action-button';
|
||||
import EventDate from 'pl-fe/features/event/components/event-date';
|
||||
import { useAppSelector } from 'pl-fe/hooks';
|
||||
|
||||
import Icon from './icon';
|
||||
import { Button, HStack, Stack, Text } from './ui';
|
||||
import VerificationBadge from './verification-badge';
|
||||
|
||||
import type { Status as StatusEntity } from 'pl-fe/normalizers';
|
||||
|
||||
const messages = defineMessages({
|
||||
|
|
|
@ -6,7 +6,9 @@ import GroupPrivacy from 'pl-fe/features/group/components/group-privacy';
|
|||
import GroupRelationship from 'pl-fe/features/group/components/group-relationship';
|
||||
|
||||
import GroupAvatar from './groups/group-avatar';
|
||||
import { HStack, Stack, Text } from './ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
import type { Group as GroupEntity } from 'pl-fe/normalizers';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|||
import { GroupRoles, type Group } from 'pl-api';
|
||||
import React from 'react';
|
||||
|
||||
import { Avatar } from '../ui';
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
|
||||
interface IGroupAvatar {
|
||||
group: Pick<Group, 'avatar' | 'avatar_description' | 'relationship'>;
|
||||
|
|
|
@ -5,7 +5,9 @@ import { Sparklines, SparklinesCurve } from 'react-sparklines';
|
|||
|
||||
import { shortNumberFormat } from '../utils/numbers';
|
||||
|
||||
import { HStack, Stack, Text } from './ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
import type { Tag } from 'pl-api';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
|
||||
import Icon, { IIcon } from 'pl-fe/components/icon';
|
||||
import { Counter } from 'pl-fe/components/ui';
|
||||
import Counter from 'pl-fe/components/ui/counter';
|
||||
|
||||
interface IIconWithCounter extends React.HTMLAttributes<HTMLDivElement> {
|
||||
count: number;
|
||||
|
|
|
@ -2,9 +2,10 @@ import clsx from 'clsx';
|
|||
import React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import { SelectDropdown } from '../features/forms';
|
||||
|
||||
import { Icon, HStack, Select } from './ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Select from 'pl-fe/components/ui/select';
|
||||
import { SelectDropdown } from 'pl-fe/features/forms';
|
||||
|
||||
interface IList {
|
||||
children: React.ReactNode;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { Button } from 'pl-fe/components/ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
|
||||
interface ILoadMore {
|
||||
onClick: React.MouseEventHandler;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
|
||||
import LandingGradient from 'pl-fe/components/landing-gradient';
|
||||
import { Spinner } from 'pl-fe/components/ui';
|
||||
import Spinner from 'pl-fe/components/ui/spinner';
|
||||
|
||||
/** Fullscreen loading indicator. */
|
||||
const LoadingScreen: React.FC = () => (
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import { Tooltip } from './ui';
|
||||
import Tooltip from 'pl-fe/components/ui/tooltip';
|
||||
|
||||
import type { Mention as MentionEntity } from 'pl-api';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { Card, CardBody, Stack, Text } from './ui';
|
||||
import { Card, CardBody, Stack, Text } from 'pl-fe/components/ui';
|
||||
|
||||
interface MissingIndicatorProps {
|
||||
nested?: boolean;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import { Text } from 'pl-fe/components/ui';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useSettings, usePlFeConfig } from 'pl-fe/hooks';
|
||||
|
||||
interface INavlinks {
|
||||
|
|
|
@ -3,7 +3,9 @@ import React from 'react';
|
|||
import { FormattedMessage } from 'react-intl';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import { HStack, Icon, Text } from 'pl-fe/components/ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
interface IPendingItemsRow {
|
||||
/** Path to navigate the user when clicked. */
|
||||
|
|
|
@ -5,7 +5,7 @@ import { fetchPoll, vote } from 'pl-fe/actions/polls';
|
|||
import { useAppDispatch } from 'pl-fe/hooks';
|
||||
|
||||
import RelativeTimestamp from '../relative-timestamp';
|
||||
import { Button, HStack, Stack, Text, Tooltip } from '../ui';
|
||||
import { Button, HStack, Stack, Text, Tooltip } from 'pl-fe/components/ui';
|
||||
|
||||
import type { Selected } from './poll';
|
||||
import type { Poll } from 'pl-fe/normalizers';
|
||||
|
|
|
@ -3,7 +3,9 @@ import React from 'react';
|
|||
import { defineMessages, useIntl } from 'react-intl';
|
||||
import { Motion, presets, spring } from 'react-motion';
|
||||
|
||||
import { HStack, Icon, Text } from '../ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
import type { Poll } from 'pl-fe/normalizers';
|
||||
|
||||
|
|
|
@ -5,7 +5,8 @@ import { vote } from 'pl-fe/actions/polls';
|
|||
import { useAppDispatch, useAppSelector } from 'pl-fe/hooks';
|
||||
import { useModalsStore } from 'pl-fe/stores';
|
||||
|
||||
import { Stack, Text } from '../ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
import PollFooter from './poll-footer';
|
||||
import PollOption from './poll-option';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import PTRComponent from 'react-simple-pull-to-refresh';
|
||||
|
||||
import { Spinner } from 'pl-fe/components/ui';
|
||||
import Spinner from 'pl-fe/components/ui/spinner';
|
||||
|
||||
interface IPullToRefresh {
|
||||
onRefresh?: () => Promise<any>;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import React, { useCallback } from 'react';
|
||||
|
||||
import { HStack, Icon, Text } from 'pl-fe/components/ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useAppSelector } from 'pl-fe/hooks';
|
||||
import { makeGetStatus } from 'pl-fe/selectors';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import StatusMedia from 'pl-fe/components/status-media';
|
||||
import { Stack } from 'pl-fe/components/ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import AccountContainer from 'pl-fe/containers/account-container';
|
||||
|
||||
import EventPreview from './event-preview';
|
||||
|
|
|
@ -2,7 +2,9 @@ import clsx from 'clsx';
|
|||
import React, { useMemo, useRef } from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { HStack, Icon, Text } from './ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
import type { Scrobble as ScrobbleEntity } from 'pl-api';
|
||||
|
||||
|
|
|
@ -2,7 +2,8 @@ import throttle from 'lodash/throttle';
|
|||
import React, { useState, useEffect, useCallback } from 'react';
|
||||
import { useIntl, MessageDescriptor } from 'react-intl';
|
||||
|
||||
import { Icon, Text } from 'pl-fe/components/ui';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useSettings } from 'pl-fe/hooks';
|
||||
|
||||
interface IScrollTopButton {
|
||||
|
|
|
@ -3,11 +3,11 @@ import { useVirtualizer, useWindowVirtualizer, type Virtualizer } from '@tanstac
|
|||
import clsx from 'clsx';
|
||||
import React, { useEffect, useMemo, useRef } from 'react';
|
||||
|
||||
import LoadMore from 'pl-fe/components/load-more';
|
||||
import Card from 'pl-fe/components/ui/card';
|
||||
import Spinner from 'pl-fe/components/ui/spinner';
|
||||
import { useSettings } from 'pl-fe/hooks';
|
||||
|
||||
import LoadMore from './load-more';
|
||||
import { Card, Spinner } from './ui';
|
||||
|
||||
interface IScrollableListBase {
|
||||
/** Pagination callback when the end of the list is reached. */
|
||||
onLoadMore?: () => void;
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
import React, { useState } from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { Textarea, Form, Button, FormGroup, FormActions, Text } from 'pl-fe/components/ui';
|
||||
import Textarea from 'pl-fe/components/ui/textarea';
|
||||
import Form from 'pl-fe/components/ui/form';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import FormGroup from 'pl-fe/components/ui/form-group';
|
||||
import FormActions from 'pl-fe/components/ui/form-actions';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useOwnAccount } from 'pl-fe/hooks';
|
||||
import { captureSentryFeedback } from 'pl-fe/sentry';
|
||||
|
||||
|
|
|
@ -4,7 +4,8 @@ import { NavLink } from 'react-router-dom';
|
|||
|
||||
import { useSettings } from 'pl-fe/hooks';
|
||||
|
||||
import { Icon, Text } from './ui';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
interface ISidebarNavigationLink {
|
||||
/** Notification count, if any. */
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import React from 'react';
|
||||
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
||||
|
||||
import { Icon, Stack } from 'pl-fe/components/ui';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import { useStatContext } from 'pl-fe/contexts/stat-context';
|
||||
import Search from 'pl-fe/features/search/components/search';
|
||||
import ComposeButton from 'pl-fe/features/ui/components/compose-button';
|
||||
|
|
|
@ -18,7 +18,7 @@ import { useBlockGroupMember, useGroup, useGroupRelationship, useTranslationLang
|
|||
import { useDeleteGroupStatus } from 'pl-fe/api/hooks/groups/useDeleteGroupStatus';
|
||||
import DropdownMenu from 'pl-fe/components/dropdown-menu';
|
||||
import StatusActionButton from 'pl-fe/components/status-action-button';
|
||||
import { HStack } from 'pl-fe/components/ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import EmojiPickerDropdown from 'pl-fe/features/emoji/containers/emoji-picker-dropdown-container';
|
||||
import { languages } from 'pl-fe/features/preferences';
|
||||
import { useAppDispatch, useAppSelector, useFeatures, useInstance, useOwnAccount, useSettings } from 'pl-fe/hooks';
|
||||
|
|
|
@ -2,7 +2,9 @@ import { useLongPress } from '@uidotdev/usehooks';
|
|||
import clsx from 'clsx';
|
||||
import React from 'react';
|
||||
|
||||
import { Text, Icon, Emoji } from 'pl-fe/components/ui';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Emoji from 'pl-fe/components/ui/emoji';
|
||||
import { useSettings } from 'pl-fe/hooks';
|
||||
|
||||
import AnimatedNumber from './animated-number';
|
||||
|
|
|
@ -4,7 +4,9 @@ import { FormattedMessage } from 'react-intl';
|
|||
|
||||
import { collapseStatusSpoiler, expandStatusSpoiler } from 'pl-fe/actions/statuses';
|
||||
import Icon from 'pl-fe/components/icon';
|
||||
import { Button, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useAppDispatch, useSettings } from 'pl-fe/hooks';
|
||||
import { onlyEmoji as isOnlyEmoji } from 'pl-fe/utils/rich-content';
|
||||
|
||||
|
|
|
@ -5,13 +5,12 @@ import { useIntl } from 'react-intl';
|
|||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import { fetchStatus } from 'pl-fe/actions/statuses';
|
||||
import { showStatusHoverCard } from 'pl-fe/components/hover-status-wrapper';
|
||||
import Card, { CardBody } from 'pl-fe/components/ui/card';
|
||||
import StatusContainer from 'pl-fe/containers/status-container';
|
||||
import { useAppSelector, useAppDispatch } from 'pl-fe/hooks';
|
||||
import { useStatusHoverCardStore } from 'pl-fe/stores';
|
||||
|
||||
import { showStatusHoverCard } from './hover-status-wrapper';
|
||||
import { Card, CardBody } from './ui';
|
||||
|
||||
interface IStatusHoverCard {
|
||||
visible?: boolean;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,9 @@ import { type Language, languages } from 'pl-fe/features/preferences';
|
|||
import { useAppDispatch } from 'pl-fe/hooks';
|
||||
|
||||
import DropdownMenu from './dropdown-menu';
|
||||
import { HStack, Icon, Text } from './ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
import type { Status } from 'pl-fe/normalizers';
|
||||
|
||||
|
|
|
@ -11,7 +11,8 @@ import PlaceholderStatus from 'pl-fe/features/placeholder/components/placeholder
|
|||
import PendingStatus from 'pl-fe/features/ui/components/pending-status';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks';
|
||||
|
||||
import { Stack, Text } from './ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
import type { OrderedSet as ImmutableOrderedSet } from 'immutable';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import { useAppDispatch, useFeatures, useLoggedIn, useSettings } from 'pl-fe/hoo
|
|||
import { useModalsStore } from 'pl-fe/stores';
|
||||
|
||||
import AnimatedNumber from './animated-number';
|
||||
import { Emoji, HStack, Icon, Text } from './ui';
|
||||
import { Emoji, HStack, Icon, Text } from 'pl-fe/components/ui';
|
||||
|
||||
import type { EmojiReaction } from 'pl-api';
|
||||
import type { Emoji as EmojiType } from 'pl-fe/features/emoji';
|
||||
|
|
|
@ -7,6 +7,10 @@ import { mentionCompose, replyCompose } from 'pl-fe/actions/compose';
|
|||
import { toggleFavourite, toggleReblog } from 'pl-fe/actions/interactions';
|
||||
import { toggleStatusMediaHidden, unfilterStatus } from 'pl-fe/actions/statuses';
|
||||
import TranslateButton from 'pl-fe/components/translate-button';
|
||||
import Card from 'pl-fe/components/ui/card';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import AccountContainer from 'pl-fe/containers/account-container';
|
||||
import StatusTypeIcon from 'pl-fe/features/status/components/status-type-icon';
|
||||
import QuotedStatus from 'pl-fe/features/status/containers/quoted-status-container';
|
||||
|
@ -25,7 +29,6 @@ import StatusReactionsBar from './status-reactions-bar';
|
|||
import StatusReplyMentions from './status-reply-mentions';
|
||||
import SensitiveContentOverlay from './statuses/sensitive-content-overlay';
|
||||
import StatusInfo from './statuses/status-info';
|
||||
import { Card, Icon, Stack, Text } from './ui';
|
||||
|
||||
const messages = defineMessages({
|
||||
reblogged_by: { id: 'status.reblogged_by', defaultMessage: '{name} reposted' },
|
||||
|
|
|
@ -5,7 +5,9 @@ import { defineMessages, useIntl } from 'react-intl';
|
|||
import { hideStatusMedia, revealStatusMedia } from 'pl-fe/actions/statuses';
|
||||
import { useAppDispatch, useSettings } from 'pl-fe/hooks';
|
||||
|
||||
import { Button, HStack, Text } from '../ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
import type { Status } from 'pl-fe/normalizers';
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import React from 'react';
|
||||
|
||||
import { HStack, Text } from '../ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
interface IStatusInfo {
|
||||
avatarSize: number;
|
||||
|
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
|||
import { NavLink, useLocation } from 'react-router-dom';
|
||||
|
||||
import IconWithCounter from 'pl-fe/components/icon-with-counter';
|
||||
import { Icon } from 'pl-fe/components/ui';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import { useSettings } from 'pl-fe/hooks';
|
||||
|
||||
interface IThumbNavigationLink {
|
||||
|
|
|
@ -10,7 +10,7 @@ import { useAppDispatch, useAppSelector, useFeatures, useOwnAccount } from 'pl-f
|
|||
import { useModalsStore, useUiStore } from 'pl-fe/stores';
|
||||
import { isStandalone } from 'pl-fe/utils/state';
|
||||
|
||||
import { Icon } from './ui';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
|
||||
const messages = defineMessages({
|
||||
home: { id: 'navigation.home', defaultMessage: 'Home' },
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { Text } from 'pl-fe/components/ui';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { HotKeys } from 'pl-fe/features/ui/components/hotkeys';
|
||||
|
||||
interface ITombstone {
|
||||
|
|
|
@ -5,7 +5,10 @@ import { translateStatus, undoStatusTranslation } from 'pl-fe/actions/statuses';
|
|||
import { useTranslationLanguages } from 'pl-fe/api/hooks';
|
||||
import { useAppDispatch, useAppSelector, useFeatures, useInstance, useSettings } from 'pl-fe/hooks';
|
||||
|
||||
import { HStack, Icon, Stack, Text } from './ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
import type { Status } from 'pl-fe/normalizers';
|
||||
|
||||
|
|
|
@ -5,7 +5,10 @@ import { getTextDirection } from 'pl-fe/utils/rtl';
|
|||
|
||||
import Blurhash from './blurhash';
|
||||
import { accountsCountRenderer } from './hashtag';
|
||||
import { HStack, Icon, Stack, Text } from './ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
interface ITrendingLink {
|
||||
trendingLink: TrendsLink;
|
||||
|
|
|
@ -108,4 +108,11 @@ const CardBody: React.FC<ICardBody> = ({ className, children }): JSX.Element =>
|
|||
<div data-testid='card-body' className={className}>{children}</div>
|
||||
);
|
||||
|
||||
export { type CardSizes, Card, CardHeader, CardTitle, CardBody };
|
||||
export {
|
||||
type CardSizes,
|
||||
Card as default,
|
||||
Card,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
CardBody,
|
||||
};
|
||||
|
|
|
@ -121,6 +121,7 @@ const Column = React.forwardRef<HTMLDivElement, IColumn>((props, ref): JSX.Eleme
|
|||
|
||||
export {
|
||||
type IColumn,
|
||||
Column as default,
|
||||
Column,
|
||||
ColumnHeader,
|
||||
};
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import './combobox.css';
|
||||
|
||||
export {
|
||||
Combobox as default,
|
||||
Combobox,
|
||||
ComboboxInput,
|
||||
ComboboxPopover,
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
export { default as Accordion } from './accordion';
|
||||
export { default as Avatar } from './avatar';
|
||||
export { default as Banner } from './banner';
|
||||
export { default as Button } from './button';
|
||||
export { default as Carousel } from './carousel';
|
||||
|
|
|
@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|||
import React from 'react';
|
||||
import { useIntl, defineMessages } from 'react-intl';
|
||||
|
||||
import { Icon } from 'pl-fe/components/ui';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks';
|
||||
|
||||
const messages = defineMessages({
|
||||
|
|
|
@ -4,7 +4,7 @@ import { useParams } from 'react-router-dom';
|
|||
|
||||
import { fetchAboutPage } from 'pl-fe/actions/about';
|
||||
import { Navlinks } from 'pl-fe/components/navlinks';
|
||||
import { Card } from 'pl-fe/components/ui';
|
||||
import Card from 'pl-fe/components/ui/card';
|
||||
import { usePlFeConfig, useSettings, useAppDispatch } from 'pl-fe/hooks';
|
||||
|
||||
import { languages } from '../preferences';
|
||||
|
|
|
@ -7,7 +7,8 @@ import { fetchAccountTimeline } from 'pl-fe/actions/timelines';
|
|||
import { useAccountLookup } from 'pl-fe/api/hooks';
|
||||
import LoadMore from 'pl-fe/components/load-more';
|
||||
import MissingIndicator from 'pl-fe/components/missing-indicator';
|
||||
import { Column, Spinner } from 'pl-fe/components/ui';
|
||||
import Column from 'pl-fe/components/ui/column';
|
||||
import Spinner from 'pl-fe/components/ui/spinner';
|
||||
import { useAppDispatch, useAppSelector } from 'pl-fe/hooks';
|
||||
import { type AccountGalleryAttachment, getAccountGallery } from 'pl-fe/selectors';
|
||||
import { useModalsStore } from 'pl-fe/stores';
|
||||
|
|
|
@ -3,7 +3,8 @@ import { FormattedMessage } from 'react-intl';
|
|||
|
||||
import Account from 'pl-fe/components/account';
|
||||
import Icon from 'pl-fe/components/icon';
|
||||
import { HStack, Text } from 'pl-fe/components/ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
import type { Account as AccountEntity } from 'pl-fe/normalizers';
|
||||
|
||||
|
|
|
@ -15,7 +15,9 @@ import { useFollow } from 'pl-fe/api/hooks';
|
|||
import Badge from 'pl-fe/components/badge';
|
||||
import DropdownMenu, { Menu } from 'pl-fe/components/dropdown-menu';
|
||||
import StillImage from 'pl-fe/components/still-image';
|
||||
import { Avatar, HStack, IconButton } from 'pl-fe/components/ui';
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import IconButton from 'pl-fe/components/ui/icon-button';
|
||||
import VerificationBadge from 'pl-fe/components/verification-badge';
|
||||
import MovedNote from 'pl-fe/features/account-timeline/components/moved-note';
|
||||
import ActionButton from 'pl-fe/features/ui/components/action-button';
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { useIntl, defineMessages } from 'react-intl';
|
||||
import { useRouteMatch } from 'react-router-dom';
|
||||
|
||||
import { Tabs } from 'pl-fe/components/ui';
|
||||
import Tabs from 'pl-fe/components/ui/tabs';
|
||||
import { useAppSelector } from 'pl-fe/hooks';
|
||||
|
||||
const messages = defineMessages({
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { FormattedNumber } from 'react-intl';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import { Text } from 'pl-fe/components/ui';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { isNumber } from 'pl-fe/utils/numbers';
|
||||
|
||||
interface IDashCounter {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import { fetchUsers } from 'pl-fe/actions/admin';
|
||||
import { Widget } from 'pl-fe/components/ui';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
import AccountContainer from 'pl-fe/containers/account-container';
|
||||
import { useAppDispatch, useAppSelector } from 'pl-fe/hooks';
|
||||
|
||||
|
|
|
@ -5,7 +5,8 @@ import { deleteStatusModal } from 'pl-fe/actions/moderation';
|
|||
import DropdownMenu from 'pl-fe/components/dropdown-menu';
|
||||
import StatusContent from 'pl-fe/components/status-content';
|
||||
import StatusMedia from 'pl-fe/components/status-media';
|
||||
import { HStack, Stack } from 'pl-fe/components/ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import { useAppDispatch } from 'pl-fe/hooks';
|
||||
|
||||
import type { SelectedStatus } from 'pl-fe/selectors';
|
||||
|
|
|
@ -6,7 +6,12 @@ import { closeReport } from 'pl-fe/actions/admin';
|
|||
import { deactivateUserModal, deleteUserModal } from 'pl-fe/actions/moderation';
|
||||
import DropdownMenu from 'pl-fe/components/dropdown-menu';
|
||||
import HoverAccountWrapper from 'pl-fe/components/hover-account-wrapper';
|
||||
import { Accordion, Avatar, Button, Stack, HStack, Text } from 'pl-fe/components/ui';
|
||||
import Accordion from 'pl-fe/components/ui/accordion';
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useAppDispatch, useAppSelector } from 'pl-fe/hooks';
|
||||
import { makeGetReport } from 'pl-fe/selectors';
|
||||
import toast from 'pl-fe/toast';
|
||||
|
|
|
@ -3,7 +3,9 @@ import React from 'react';
|
|||
import { approveUser, deleteUser } from 'pl-fe/actions/admin';
|
||||
import { useAccount } from 'pl-fe/api/hooks';
|
||||
import { AuthorizeRejectButtons } from 'pl-fe/components/authorize-reject-buttons';
|
||||
import { Stack, HStack, Text } from 'pl-fe/components/ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useAppSelector, useAppDispatch } from 'pl-fe/hooks';
|
||||
|
||||
interface IUnapprovedAccount {
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { defineMessages, useIntl } from 'react-intl';
|
||||
import { Switch, Route } from 'react-router-dom';
|
||||
|
||||
import { Column } from 'pl-fe/components/ui';
|
||||
import Column from 'pl-fe/components/ui/column';
|
||||
import { useOwnAccount } from 'pl-fe/hooks';
|
||||
|
||||
import AdminTabs from './components/admin-tabs';
|
||||
|
|
|
@ -5,7 +5,7 @@ import { addToAliases } from 'pl-fe/actions/aliases';
|
|||
import { useAccount } from 'pl-fe/api/hooks';
|
||||
import AccountComponent from 'pl-fe/components/account';
|
||||
import IconButton from 'pl-fe/components/icon-button';
|
||||
import { HStack } from 'pl-fe/components/ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import { useAppDispatch, useAppSelector, useFeatures } from 'pl-fe/hooks';
|
||||
|
||||
const messages = defineMessages({
|
||||
|
|
|
@ -4,7 +4,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|||
|
||||
import { fetchAliasesSuggestions, clearAliasesSuggestions, changeAliasesSuggestions } from 'pl-fe/actions/aliases';
|
||||
import Icon from 'pl-fe/components/icon';
|
||||
import { Button } from 'pl-fe/components/ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import { useAppDispatch, useAppSelector } from 'pl-fe/hooks';
|
||||
|
||||
const messages = defineMessages({
|
||||
|
|
|
@ -3,7 +3,9 @@ import React, { useState, useEffect } from 'react';
|
|||
import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
|
||||
|
||||
import { fetchCaptcha } from 'pl-fe/actions/auth';
|
||||
import { Stack, Text, Input } from 'pl-fe/components/ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import Input from 'pl-fe/components/ui/input';
|
||||
import { useAppDispatch } from 'pl-fe/hooks';
|
||||
|
||||
const noOp = () => {};
|
||||
|
|
|
@ -5,7 +5,9 @@ import { Redirect } from 'react-router-dom';
|
|||
import { logIn, verifyCredentials, switchAccount } from 'pl-fe/actions/auth';
|
||||
import { fetchInstance } from 'pl-fe/actions/instance';
|
||||
import { BigCard } from 'pl-fe/components/big-card';
|
||||
import { Button, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useAppDispatch, useAppSelector } from 'pl-fe/hooks';
|
||||
import { useModalsStore } from 'pl-fe/stores';
|
||||
import { getRedirectUrl } from 'pl-fe/utils/redirect';
|
||||
|
|
|
@ -3,7 +3,7 @@ import { useDispatch } from 'react-redux';
|
|||
import { Redirect } from 'react-router-dom';
|
||||
|
||||
import { logOut } from 'pl-fe/actions/auth';
|
||||
import { Spinner } from 'pl-fe/components/ui';
|
||||
import Spinner from 'pl-fe/components/ui/spinner';
|
||||
|
||||
/** Component that logs the user out when rendered */
|
||||
const Logout: React.FC = () => {
|
||||
|
|
|
@ -7,7 +7,14 @@ import { Link, useHistory } from 'react-router-dom';
|
|||
import { accountLookup } from 'pl-fe/actions/accounts';
|
||||
import { register, verifyCredentials } from 'pl-fe/actions/auth';
|
||||
import BirthdayInput from 'pl-fe/components/birthday-input';
|
||||
import { Checkbox, Form, FormGroup, FormActions, Button, Input, Textarea, Select } from 'pl-fe/components/ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Checkbox from 'pl-fe/components/ui/checkbox';
|
||||
import Form from 'pl-fe/components/ui/form';
|
||||
import FormActions from 'pl-fe/components/ui/form-actions';
|
||||
import FormGroup from 'pl-fe/components/ui/form-group';
|
||||
import Input from 'pl-fe/components/ui/input';
|
||||
import Select from 'pl-fe/components/ui/select';
|
||||
import Textarea from 'pl-fe/components/ui/textarea';
|
||||
import CaptchaField from 'pl-fe/features/auth-login/components/captcha';
|
||||
import { useAppDispatch, useSettings, useFeatures, useInstance } from 'pl-fe/hooks';
|
||||
import { useModalsStore } from 'pl-fe/stores';
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { BigCard } from 'pl-fe/components/big-card';
|
||||
import { Text } from 'pl-fe/components/ui';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useInstance, useRegistrationStatus } from 'pl-fe/hooks';
|
||||
|
||||
import RegistrationForm from './registration-form';
|
||||
|
|
|
@ -4,7 +4,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|||
import { useAccount } from 'pl-fe/api/hooks';
|
||||
import AccountComponent from 'pl-fe/components/account';
|
||||
import Icon from 'pl-fe/components/icon';
|
||||
import { HStack } from 'pl-fe/components/ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
|
||||
const messages = defineMessages({
|
||||
birthday: { id: 'account.birthday', defaultMessage: 'Born {date}' },
|
||||
|
|
|
@ -4,7 +4,8 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|||
import { useBlocks } from 'pl-fe/api/hooks';
|
||||
import Account from 'pl-fe/components/account';
|
||||
import ScrollableList from 'pl-fe/components/scrollable-list';
|
||||
import { Column, Spinner } from 'pl-fe/components/ui';
|
||||
import Column from 'pl-fe/components/ui/column';
|
||||
import Spinner from 'pl-fe/components/ui/spinner';
|
||||
|
||||
const messages = defineMessages({
|
||||
heading: { id: 'column.blocks', defaultMessage: 'Blocks' },
|
||||
|
|
|
@ -9,7 +9,7 @@ import { useBookmarkFolder, useDeleteBookmarkFolder } from 'pl-fe/api/hooks';
|
|||
import DropdownMenu from 'pl-fe/components/dropdown-menu';
|
||||
import PullToRefresh from 'pl-fe/components/pull-to-refresh';
|
||||
import StatusList from 'pl-fe/components/status-list';
|
||||
import { Column } from 'pl-fe/components/ui';
|
||||
import Column from 'pl-fe/components/ui/column';
|
||||
import { useAppSelector, useAppDispatch, useTheme } from 'pl-fe/hooks';
|
||||
import { useIsMobile } from 'pl-fe/hooks/useIsMobile';
|
||||
import { useModalsStore } from 'pl-fe/stores';
|
||||
|
|
|
@ -3,7 +3,7 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|||
|
||||
import { fetchBubbleTimeline } from 'pl-fe/actions/timelines';
|
||||
import PullToRefresh from 'pl-fe/components/pull-to-refresh';
|
||||
import { Column } from 'pl-fe/components/ui';
|
||||
import Column from 'pl-fe/components/ui/column';
|
||||
import { useAppDispatch, useSettings, useTheme } from 'pl-fe/hooks';
|
||||
import { useIsMobile } from 'pl-fe/hooks/useIsMobile';
|
||||
|
||||
|
|
|
@ -3,7 +3,12 @@ import { defineMessages, IntlShape, useIntl } from 'react-intl';
|
|||
|
||||
import { unblockAccount } from 'pl-fe/actions/accounts';
|
||||
import { useRelationship } from 'pl-fe/api/hooks/accounts/useRelationship';
|
||||
import { Button, Combobox, ComboboxInput, ComboboxList, ComboboxOption, ComboboxPopover, HStack, IconButton, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Combobox, { ComboboxInput, ComboboxList, ComboboxOption, ComboboxPopover } from 'pl-fe/components/ui/combobox';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import IconButton from 'pl-fe/components/ui/icon-button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useChatContext } from 'pl-fe/contexts/chat-context';
|
||||
import UploadButton from 'pl-fe/features/compose/components/upload-button';
|
||||
import emojiSearch from 'pl-fe/features/emoji/search';
|
||||
|
|
|
@ -5,7 +5,11 @@ import { useHistory } from 'react-router-dom';
|
|||
import { useRelationship } from 'pl-fe/api/hooks/accounts/useRelationship';
|
||||
import DropdownMenu from 'pl-fe/components/dropdown-menu';
|
||||
import RelativeTimestamp from 'pl-fe/components/relative-timestamp';
|
||||
import { Avatar, HStack, IconButton, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import IconButton from 'pl-fe/components/ui/icon-button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import VerificationBadge from 'pl-fe/components/verification-badge';
|
||||
import { useChatContext } from 'pl-fe/contexts/chat-context';
|
||||
import { useFeatures } from 'pl-fe/hooks';
|
||||
|
|
|
@ -3,7 +3,7 @@ import React, { useState } from 'react';
|
|||
|
||||
import PullToRefresh from 'pl-fe/components/pull-to-refresh';
|
||||
import ScrollableList from 'pl-fe/components/scrollable-list';
|
||||
import { Stack } from 'pl-fe/components/ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import PlaceholderChat from 'pl-fe/features/placeholder/components/placeholder-chat';
|
||||
import { useChats } from 'pl-fe/queries/chats';
|
||||
|
||||
|
|
|
@ -2,7 +2,11 @@ import React, { useEffect, useRef } from 'react';
|
|||
import { useIntl, defineMessages } from 'react-intl';
|
||||
|
||||
import ScrollableList from 'pl-fe/components/scrollable-list';
|
||||
import { Avatar, Button, Divider, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Divider from 'pl-fe/components/ui/divider';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import PlaceholderChatMessage from 'pl-fe/features/placeholder/components/placeholder-chat-message';
|
||||
import { useAppSelector } from 'pl-fe/hooks';
|
||||
|
|
|
@ -5,7 +5,10 @@ import React, { useMemo, useState } from 'react';
|
|||
import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
import DropdownMenu from 'pl-fe/components/dropdown-menu';
|
||||
import { HStack, Icon, Stack, Text } from 'pl-fe/components/ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import emojify from 'pl-fe/features/emoji';
|
||||
import { MediaGallery } from 'pl-fe/features/ui/util/async-components';
|
||||
import { useAppSelector } from 'pl-fe/hooks';
|
||||
|
|
|
@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|||
import React, { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
||||
import { matchPath, Route, Switch, useHistory } from 'react-router-dom';
|
||||
|
||||
import { Stack } from 'pl-fe/components/ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
|
||||
import ChatPageMain from './components/chat-page-main';
|
||||
import ChatPageNew from './components/chat-page-new';
|
||||
|
|
|
@ -2,7 +2,9 @@ import React from 'react';
|
|||
import { FormattedMessage } from 'react-intl';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import { Button, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
interface IBlankslate {
|
||||
}
|
||||
|
|
|
@ -2,7 +2,9 @@ import React from 'react';
|
|||
import { FormattedMessage } from 'react-intl';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import { Button, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
/** To display on the chats main page when no message is selected, but chats are present. */
|
||||
const BlankslateWithChats = () => {
|
||||
|
|
|
@ -4,7 +4,11 @@ import { Link, useHistory, useParams } from 'react-router-dom';
|
|||
|
||||
import { blockAccount, unblockAccount } from 'pl-fe/actions/accounts';
|
||||
import DropdownMenu, { type Menu } from 'pl-fe/components/dropdown-menu';
|
||||
import { Avatar, HStack, IconButton, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import IconButton from 'pl-fe/components/ui/icon-button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import VerificationBadge from 'pl-fe/components/verification-badge';
|
||||
import { useChatContext } from 'pl-fe/contexts/chat-context';
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
import React from 'react';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
import { Button, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Button from 'pl-fe/components/ui/button';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
const messages = defineMessages({
|
||||
title: { id: 'chat_pane.blankslate.title', defaultMessage: 'No messages yet' },
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React, { useRef } from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { Stack } from 'pl-fe/components/ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import { ChatWidgetScreens, useChatContext } from 'pl-fe/contexts/chat-context';
|
||||
import { useStatContext } from 'pl-fe/contexts/stat-context';
|
||||
import { useChats } from 'pl-fe/queries/chats';
|
||||
|
@ -12,7 +12,7 @@ import EmptyResultsBlankslate from '../chat-search/empty-results-blankslate';
|
|||
import ChatPaneHeader from '../chat-widget/chat-pane-header';
|
||||
import ChatWindow from '../chat-widget/chat-window';
|
||||
import ChatSearchHeader from '../chat-widget/headers/chat-search-header';
|
||||
import { Pane } from '../ui';
|
||||
import { Pane } from 'pl-fe/components/ui';
|
||||
|
||||
import Blankslate from './blankslate';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
|
||||
import { ProgressBar } from 'pl-fe/components/ui';
|
||||
import ProgressBar from 'pl-fe/components/ui/progress-bar';
|
||||
|
||||
interface IChatPendingUpload {
|
||||
progress: number;
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import React from 'react';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
import { Stack, Text } from 'pl-fe/components/ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
const messages = defineMessages({
|
||||
title: { id: 'chat_search.blankslate.title', defaultMessage: 'Start a chat' },
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import React from 'react';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
import { Stack, Text } from 'pl-fe/components/ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
|
||||
const messages = defineMessages({
|
||||
title: { id: 'chat_search.empty_results_blankslate.title', defaultMessage: 'No matches found' },
|
||||
|
|
|
@ -2,7 +2,10 @@ import clsx from 'clsx';
|
|||
import React, { useCallback, useState } from 'react';
|
||||
|
||||
import ScrollableList from 'pl-fe/components/scrollable-list';
|
||||
import { Avatar, HStack, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import VerificationBadge from 'pl-fe/components/verification-badge';
|
||||
import useAccountSearch from 'pl-fe/queries/search';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
|
||||
import { Icon } from 'pl-fe/components/ui';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import { MIMETYPE_ICONS } from 'pl-fe/components/upload';
|
||||
|
||||
import type { MediaAttachment } from 'pl-api';
|
||||
|
|
|
@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|||
import React from 'react';
|
||||
|
||||
import Blurhash from 'pl-fe/components/blurhash';
|
||||
import { Icon } from 'pl-fe/components/ui';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import { useModalsStore } from 'pl-fe/stores';
|
||||
|
||||
import ChatUploadPreview from './chat-upload-preview';
|
||||
|
|
|
@ -2,7 +2,11 @@ import React from 'react';
|
|||
import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
import { blockAccount, unblockAccount } from 'pl-fe/actions/accounts';
|
||||
import { Avatar, HStack, Icon, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { ChatWidgetScreens, useChatContext } from 'pl-fe/contexts/chat-context';
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useAppDispatch, useAppSelector, useFeatures } from 'pl-fe/hooks';
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
import React, { useRef } from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import { Avatar, HStack, Icon, Stack, Text } from 'pl-fe/components/ui';
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import VerificationBadge from 'pl-fe/components/verification-badge';
|
||||
import { ChatWidgetScreens, useChatContext } from 'pl-fe/contexts/chat-context';
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
import React from 'react';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
import { HStack, Icon, Text } from 'pl-fe/components/ui';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { ChatWidgetScreens, useChatContext } from 'pl-fe/contexts/chat-context';
|
||||
|
||||
import ChatPaneHeader from '../chat-pane-header';
|
||||
|
|
|
@ -3,7 +3,7 @@ import React, { MutableRefObject, useEffect, useState } from 'react';
|
|||
import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
import { uploadMedia } from 'pl-fe/actions/media';
|
||||
import { Stack } from 'pl-fe/components/ui';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import { useAppDispatch } from 'pl-fe/hooks';
|
||||
import { useChatActions } from 'pl-fe/queries/chats';
|
||||
import toast from 'pl-fe/toast';
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue