pl-fe: move stuff around

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk 2024-12-05 10:28:33 +01:00
parent 50428184f1
commit 105c87c64d
27 changed files with 19 additions and 19 deletions

View file

@ -5,7 +5,7 @@ import { defineMessages } from 'react-intl';
import { getClient } from 'pl-fe/api';
import { getNotificationStatus } from 'pl-fe/features/notifications/components/notification';
import { normalizeNotification } from 'pl-fe/normalizers/notification';
import { appendFollowRequest } from 'pl-fe/queries/account-lists/use-follow-requests';
import { appendFollowRequest } from 'pl-fe/queries/accounts/use-follow-requests';
import { getFilters, regexFromFilters } from 'pl-fe/selectors';
import { useSettingsStore } from 'pl-fe/stores/settings';
import { isLoggedIn } from 'pl-fe/utils/auth';

View file

@ -3,7 +3,7 @@ import { FormattedMessage } from 'react-intl';
import Widget from 'pl-fe/components/ui/widget';
import AccountContainer from 'pl-fe/containers/account-container';
import { useBirthdayReminders } from 'pl-fe/queries/account-lists/use-birthday-reminders';
import { useBirthdayReminders } from 'pl-fe/queries/accounts/use-birthday-reminders';
const timeToMidnight = () => {
const now = new Date();

View file

@ -18,7 +18,7 @@ import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
import { useFeatures } from 'pl-fe/hooks/use-features';
import { useInstance } from 'pl-fe/hooks/use-instance';
import { useRegistrationStatus } from 'pl-fe/hooks/use-registration-status';
import { useFollowRequestsCount } from 'pl-fe/queries/account-lists/use-follow-requests';
import { useFollowRequestsCount } from 'pl-fe/queries/accounts/use-follow-requests';
import { useInteractionRequestsCount } from 'pl-fe/queries/statuses/use-interaction-requests';
import { makeGetOtherAccounts } from 'pl-fe/selectors';
import { useSettingsStore } from 'pl-fe/stores/settings';

View file

@ -13,7 +13,7 @@ import { useLogo } from 'pl-fe/hooks/use-logo';
import { useOwnAccount } from 'pl-fe/hooks/use-own-account';
import { useRegistrationStatus } from 'pl-fe/hooks/use-registration-status';
import { useSettings } from 'pl-fe/hooks/use-settings';
import { useFollowRequestsCount } from 'pl-fe/queries/account-lists/use-follow-requests';
import { useFollowRequestsCount } from 'pl-fe/queries/accounts/use-follow-requests';
import { useInteractionRequestsCount } from 'pl-fe/queries/statuses/use-interaction-requests';
import Account from './account';

View file

@ -7,7 +7,7 @@ import HStack from 'pl-fe/components/ui/hstack';
import Spinner from 'pl-fe/components/ui/spinner';
import Stack from 'pl-fe/components/ui/stack';
import AccountContainer from 'pl-fe/containers/account-container';
import { useAcceptEventParticipationRequestMutation, useEventParticipationRequests } from 'pl-fe/queries/account-lists/use-event-participation-requests';
import { useAcceptEventParticipationRequestMutation, useEventParticipationRequests } from 'pl-fe/queries/events/use-event-participation-requests';
const messages = defineMessages({
authorize: { id: 'compose_event.participation_requests.authorize', defaultMessage: 'Authorize' },

View file

@ -10,7 +10,7 @@ import Column from 'pl-fe/components/ui/column';
import Stack from 'pl-fe/components/ui/stack';
import { useFeatures } from 'pl-fe/hooks/use-features';
import { useInstance } from 'pl-fe/hooks/use-instance';
import { useDirectory } from 'pl-fe/queries/account-lists/use-directory';
import { useDirectory } from 'pl-fe/queries/accounts/use-directory';
import AccountCard from './components/account-card';

View file

@ -3,7 +3,7 @@ import React from 'react';
import { useAccount } from 'pl-fe/api/hooks/accounts/use-account';
import Account from 'pl-fe/components/account';
import { AuthorizeRejectButtons } from 'pl-fe/components/authorize-reject-buttons';
import { useAcceptFollowRequestMutation, useRejectFollowRequestMutation } from 'pl-fe/queries/account-lists/use-follow-requests';
import { useAcceptFollowRequestMutation, useRejectFollowRequestMutation } from 'pl-fe/queries/accounts/use-follow-requests';
interface IAccountAuthorize {
id: string;

View file

@ -4,7 +4,7 @@ import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
import ScrollableList from 'pl-fe/components/scrollable-list';
import Column from 'pl-fe/components/ui/column';
import Spinner from 'pl-fe/components/ui/spinner';
import { useFollowRequests } from 'pl-fe/queries/account-lists/use-follow-requests';
import { useFollowRequests } from 'pl-fe/queries/accounts/use-follow-requests';
import AccountAuthorize from './components/account-authorize';

View file

@ -14,7 +14,7 @@ import HStack from 'pl-fe/components/ui/hstack';
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
import { useFeatures } from 'pl-fe/hooks/use-features';
import { useLoggedIn } from 'pl-fe/hooks/use-logged-in';
import { useAcceptFollowRequestMutation, useRejectFollowRequestMutation } from 'pl-fe/queries/account-lists/use-follow-requests';
import { useAcceptFollowRequestMutation, useRejectFollowRequestMutation } from 'pl-fe/queries/accounts/use-follow-requests';
import { useModalsStore } from 'pl-fe/stores/modals';
import toast from 'pl-fe/toast';

View file

@ -6,7 +6,7 @@ import ScrollableList from 'pl-fe/components/scrollable-list';
import Modal from 'pl-fe/components/ui/modal';
import Spinner from 'pl-fe/components/ui/spinner';
import Account from 'pl-fe/features/birthdays/account';
import { useBirthdayReminders } from 'pl-fe/queries/account-lists/use-birthday-reminders';
import { useBirthdayReminders } from 'pl-fe/queries/accounts/use-birthday-reminders';
import type { BaseModalProps } from '../modal-root';

View file

@ -5,7 +5,7 @@ import ScrollableList from 'pl-fe/components/scrollable-list';
import Modal from 'pl-fe/components/ui/modal';
import Spinner from 'pl-fe/components/ui/spinner';
import AccountContainer from 'pl-fe/containers/account-container';
import { useStatusDislikes } from 'pl-fe/queries/account-lists/use-status-interactions';
import { useStatusDislikes } from 'pl-fe/queries/statuses/use-status-interactions';
import type { BaseModalProps } from '../modal-root';

View file

@ -5,7 +5,7 @@ import ScrollableList from 'pl-fe/components/scrollable-list';
import Modal from 'pl-fe/components/ui/modal';
import Spinner from 'pl-fe/components/ui/spinner';
import AccountContainer from 'pl-fe/containers/account-container';
import { useEventParticipations } from 'pl-fe/queries/account-lists/use-event-participations';
import { useEventParticipations } from 'pl-fe/queries/events/use-event-participations';
import type { BaseModalProps } from '../modal-root';

View file

@ -7,7 +7,7 @@ import Spinner from 'pl-fe/components/ui/spinner';
import AccountContainer from 'pl-fe/containers/account-container';
import Emojify from 'pl-fe/features/emoji/emojify';
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
import { useFamiliarFollowers } from 'pl-fe/queries/account-lists/use-familiar-followers';
import { useFamiliarFollowers } from 'pl-fe/queries/accounts/use-familiar-followers';
import { makeGetAccount } from 'pl-fe/selectors';
import type { BaseModalProps } from '../modal-root';

View file

@ -5,7 +5,7 @@ import ScrollableList from 'pl-fe/components/scrollable-list';
import Modal from 'pl-fe/components/ui/modal';
import Spinner from 'pl-fe/components/ui/spinner';
import AccountContainer from 'pl-fe/containers/account-container';
import { useStatusFavourites } from 'pl-fe/queries/account-lists/use-status-interactions';
import { useStatusFavourites } from 'pl-fe/queries/statuses/use-status-interactions';
import type { BaseModalProps } from '../modal-root';

View file

@ -8,7 +8,7 @@ import Modal from 'pl-fe/components/ui/modal';
import Spinner from 'pl-fe/components/ui/spinner';
import Tabs from 'pl-fe/components/ui/tabs';
import AccountContainer from 'pl-fe/containers/account-container';
import { useStatusReactions } from 'pl-fe/queries/account-lists/use-status-interactions';
import { useStatusReactions } from 'pl-fe/queries/statuses/use-status-interactions';
import type { BaseModalProps } from '../modal-root';
import type { Item } from 'pl-fe/components/ui/tabs';

View file

@ -5,7 +5,7 @@ import ScrollableList from 'pl-fe/components/scrollable-list';
import Modal from 'pl-fe/components/ui/modal';
import Spinner from 'pl-fe/components/ui/spinner';
import AccountContainer from 'pl-fe/containers/account-container';
import { useStatusReblogs } from 'pl-fe/queries/account-lists/use-status-interactions';
import { useStatusReblogs } from 'pl-fe/queries/statuses/use-status-interactions';
import type { BaseModalProps } from '../modal-root';

View file

@ -5,7 +5,7 @@ import Widget from 'pl-fe/components/ui/widget';
import AccountContainer from 'pl-fe/containers/account-container';
import Emojify from 'pl-fe/features/emoji/emojify';
import { WhoToFollowPanel } from 'pl-fe/features/ui/util/async-components';
import { useEndorsedAccounts } from 'pl-fe/queries/account-lists/use-endorsed-accounts';
import { useEndorsedAccounts } from 'pl-fe/queries/accounts/use-endorsed-accounts';
import type { Account } from 'pl-fe/normalizers/account';

View file

@ -9,7 +9,7 @@ import Text from 'pl-fe/components/ui/text';
import VerificationBadge from 'pl-fe/components/verification-badge';
import Emojify from 'pl-fe/features/emoji/emojify';
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
import { useFamiliarFollowers } from 'pl-fe/queries/account-lists/use-familiar-followers';
import { useFamiliarFollowers } from 'pl-fe/queries/accounts/use-familiar-followers';
import { makeGetAccount } from 'pl-fe/selectors';
import { useModalsStore } from 'pl-fe/stores/modals';

View file

@ -40,7 +40,7 @@ import ProfileLayout from 'pl-fe/layouts/profile-layout';
import RemoteInstanceLayout from 'pl-fe/layouts/remote-instance-layout';
import SearchLayout from 'pl-fe/layouts/search-layout';
import StatusLayout from 'pl-fe/layouts/status-layout';
import { prefetchFollowRequests } from 'pl-fe/queries/account-lists/use-follow-requests';
import { prefetchFollowRequests } from 'pl-fe/queries/accounts/use-follow-requests';
import { useUiStore } from 'pl-fe/stores/ui';
import { getVapidKey } from 'pl-fe/utils/auth';
import { isStandalone } from 'pl-fe/utils/state';