pl-fe: Rename files to kebab case
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
d4f930132e
commit
2963504736
429 changed files with 936 additions and 904 deletions
|
@ -1,11 +1,11 @@
|
|||
import { useInfiniteQuery } from '@tanstack/react-query';
|
||||
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { type Account, normalizeAccount } from 'pl-fe/normalizers/account';
|
||||
import { flattenPages } from 'pl-fe/utils/queries';
|
||||
|
||||
import { useRelationships } from './useRelationships';
|
||||
import { useRelationships } from './use-relationships';
|
||||
|
||||
import type { PaginatedResponse, Account as BaseAccount } from 'pl-api';
|
||||
import type { EntityFn } from 'pl-fe/entity-store/hooks/types';
|
|
@ -2,14 +2,14 @@ import { useEffect } from 'react';
|
|||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useEntityLookup } from 'pl-fe/entity-store/hooks/useEntityLookup';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/useLoggedIn';
|
||||
import { useEntityLookup } from 'pl-fe/entity-store/hooks/use-entity-lookup';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { useFeatures } from 'pl-fe/hooks/use-features';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/use-logged-in';
|
||||
import { type Account, normalizeAccount } from 'pl-fe/normalizers/account';
|
||||
|
||||
import { useAccountScrobble } from './useAccountScrobble';
|
||||
import { useRelationship } from './useRelationship';
|
||||
import { useAccountScrobble } from './use-account-scrobble';
|
||||
import { useRelationship } from './use-relationship';
|
||||
|
||||
import type { Account as BaseAccount } from 'pl-api';
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { useQuery } from '@tanstack/react-query';
|
||||
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { useFeatures } from 'pl-fe/hooks/use-features';
|
||||
|
||||
import type { Scrobble } from 'pl-api';
|
||||
|
|
@ -2,15 +2,15 @@ import { useEffect, useMemo } from 'react';
|
|||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useEntity } from 'pl-fe/entity-store/hooks/useEntity';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/useLoggedIn';
|
||||
import { useEntity } from 'pl-fe/entity-store/hooks/use-entity';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { useFeatures } from 'pl-fe/hooks/use-features';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/use-logged-in';
|
||||
import { type Account, normalizeAccount } from 'pl-fe/normalizers/account';
|
||||
|
||||
import { useAccountScrobble } from './useAccountScrobble';
|
||||
import { useRelationship } from './useRelationship';
|
||||
import { useAccountScrobble } from './use-account-scrobble';
|
||||
import { useRelationship } from './use-relationship';
|
||||
|
||||
import type { Account as BaseAccount } from 'pl-api';
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
import { importEntities } from 'pl-fe/entity-store/actions';
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useTransaction } from 'pl-fe/entity-store/hooks/useTransaction';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/useLoggedIn';
|
||||
import { useTransaction } from 'pl-fe/entity-store/hooks/use-transaction';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/use-logged-in';
|
||||
|
||||
interface FollowOpts {
|
||||
reblogs?: boolean;
|
|
@ -1,9 +1,9 @@
|
|||
import * as v from 'valibot';
|
||||
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useEntity } from 'pl-fe/entity-store/hooks/useEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/useLoggedIn';
|
||||
import { useEntity } from 'pl-fe/entity-store/hooks/use-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/use-logged-in';
|
||||
|
||||
import type { Relationship } from 'pl-api';
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useBatchedEntities } from 'pl-fe/entity-store/hooks/useBatchedEntities';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/useLoggedIn';
|
||||
import { useBatchedEntities } from 'pl-fe/entity-store/hooks/use-batched-entities';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/use-logged-in';
|
||||
|
||||
import type { Relationship } from 'pl-api';
|
||||
|
|
@ -7,10 +7,10 @@ import {
|
|||
} from 'pl-api';
|
||||
import * as v from 'valibot';
|
||||
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { queryClient } from 'pl-fe/queries/client';
|
||||
|
||||
import { useAnnouncements as useUserAnnouncements } from '../announcements/useAnnouncements';
|
||||
import { useAnnouncements as useUserAnnouncements } from '../announcements/use-announcements';
|
||||
|
||||
const useAnnouncements = () => {
|
||||
const client = useClient();
|
|
@ -1,6 +1,6 @@
|
|||
import { useMutation, useQuery } from '@tanstack/react-query';
|
||||
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { queryClient } from 'pl-fe/queries/client';
|
||||
|
||||
import type { AdminDomain } from 'pl-api';
|
|
@ -1,7 +1,7 @@
|
|||
import { useInfiniteQuery } from '@tanstack/react-query';
|
||||
import { PaginatedResponse } from 'pl-api';
|
||||
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { flattenPages } from 'pl-fe/utils/queries';
|
||||
|
||||
import type { AdminModerationLogEntry } from 'pl-api';
|
|
@ -1,6 +1,6 @@
|
|||
import { useMutation, useQuery } from '@tanstack/react-query';
|
||||
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { queryClient } from 'pl-fe/queries/client';
|
||||
|
||||
import type { AdminRelay } from 'pl-api';
|
|
@ -1,6 +1,6 @@
|
|||
import { useMutation, useQuery } from '@tanstack/react-query';
|
||||
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { queryClient } from 'pl-fe/queries/client';
|
||||
|
||||
import type { AdminRule } from 'pl-api';
|
|
@ -1,6 +1,6 @@
|
|||
import { EntityCallbacks } from 'pl-fe/entity-store/hooks/types';
|
||||
import { useTransaction } from 'pl-fe/entity-store/hooks/useTransaction';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useTransaction } from 'pl-fe/entity-store/hooks/use-transaction';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
|
||||
import type { Account } from 'pl-fe/normalizers/account';
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import { useTransaction } from 'pl-fe/entity-store/hooks/useTransaction';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useTransaction } from 'pl-fe/entity-store/hooks/use-transaction';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
|
||||
import type { EntityCallbacks } from 'pl-fe/entity-store/hooks/types';
|
||||
import type { Account } from 'pl-fe/normalizers/account';
|
|
@ -2,7 +2,7 @@ import { useMutation, useQuery } from '@tanstack/react-query';
|
|||
import { announcementReactionSchema, type AnnouncementReaction, type Announcement } from 'pl-api';
|
||||
import * as v from 'valibot';
|
||||
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { queryClient } from 'pl-fe/queries/client';
|
||||
|
||||
const updateReaction = (reaction: AnnouncementReaction, count: number, me?: boolean, overwrite?: boolean) => v.parse(announcementReactionSchema, {
|
|
@ -1,6 +1,6 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/useCreateEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/use-create-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
|
||||
import type { Group } from 'pl-api';
|
||||
import type { Account } from 'pl-fe/normalizers/account';
|
|
@ -1,6 +1,6 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/useCreateEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/use-create-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { normalizeGroup, type Group } from 'pl-fe/normalizers/group';
|
||||
|
||||
import type { Group as BaseGroup, CreateGroupParams } from 'pl-api';
|
|
@ -1,6 +1,6 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useDeleteEntity } from 'pl-fe/entity-store/hooks/useDeleteEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useDeleteEntity } from 'pl-fe/entity-store/hooks/use-delete-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
|
||||
import type { Group } from 'pl-api';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useDeleteEntity } from 'pl-fe/entity-store/hooks/useDeleteEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useDeleteEntity } from 'pl-fe/entity-store/hooks/use-delete-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
|
||||
const useDeleteGroup = () => {
|
||||
const client = useClient();
|
|
@ -1,8 +1,8 @@
|
|||
import * as v from 'valibot';
|
||||
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/useCreateEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/use-create-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { normalizeGroupMember } from 'pl-fe/normalizers/group-member';
|
||||
|
||||
import type { Group, GroupMember as GroupMember, GroupRole } from 'pl-api';
|
|
@ -2,7 +2,7 @@ import { __stub } from 'pl-fe/api';
|
|||
import { buildStatus } from 'pl-fe/jest/factory';
|
||||
import { renderHook, waitFor } from 'pl-fe/jest/test-helpers';
|
||||
|
||||
import { useGroupMedia } from './useGroupMedia';
|
||||
import { useGroupMedia } from './use-group-media';
|
||||
|
||||
const status = buildStatus();
|
||||
const groupId = '1';
|
|
@ -1,6 +1,6 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useEntities } from 'pl-fe/entity-store/hooks/useEntities';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useEntities } from 'pl-fe/entity-store/hooks/use-entities';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { normalizeStatus } from 'pl-fe/normalizers/status';
|
||||
|
||||
const useGroupMedia = (groupId: string) => {
|
|
@ -4,7 +4,7 @@ import { __stub } from 'pl-fe/api';
|
|||
import { buildGroupMember } from 'pl-fe/jest/factory';
|
||||
import { renderHook, waitFor } from 'pl-fe/jest/test-helpers';
|
||||
|
||||
import { useGroupMembers } from './useGroupMembers';
|
||||
import { useGroupMembers } from './use-group-members';
|
||||
|
||||
const groupMember = buildGroupMember();
|
||||
const groupId = '1';
|
|
@ -1,6 +1,6 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useEntities } from 'pl-fe/entity-store/hooks/useEntities';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useEntities } from 'pl-fe/entity-store/hooks/use-entities';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { normalizeGroupMember, type GroupMember } from 'pl-fe/normalizers/group-member';
|
||||
|
||||
import type { GroupMember as BaseGroupMember, GroupRoles } from 'pl-api';
|
|
@ -1,12 +1,12 @@
|
|||
import { GroupRoles } from 'pl-api';
|
||||
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useDismissEntity } from 'pl-fe/entity-store/hooks/useDismissEntity';
|
||||
import { useEntities } from 'pl-fe/entity-store/hooks/useEntities';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useDismissEntity } from 'pl-fe/entity-store/hooks/use-dismiss-entity';
|
||||
import { useEntities } from 'pl-fe/entity-store/hooks/use-entities';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { normalizeAccount } from 'pl-fe/normalizers/account';
|
||||
|
||||
import { useGroupRelationship } from './useGroupRelationship';
|
||||
import { useGroupRelationship } from './use-group-relationship';
|
||||
|
||||
import type { ExpandedEntitiesPath } from 'pl-fe/entity-store/hooks/types';
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
import * as v from 'valibot';
|
||||
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useEntity } from 'pl-fe/entity-store/hooks/useEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useEntity } from 'pl-fe/entity-store/hooks/use-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
|
||||
import type { GroupRelationship } from 'pl-api';
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useBatchedEntities } from 'pl-fe/entity-store/hooks/useBatchedEntities';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/useLoggedIn';
|
||||
import { useBatchedEntities } from 'pl-fe/entity-store/hooks/use-batched-entities';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/use-logged-in';
|
||||
|
||||
import type { GroupRelationship } from 'pl-api';
|
||||
|
|
@ -2,7 +2,7 @@ import { __stub } from 'pl-fe/api';
|
|||
import { buildGroup } from 'pl-fe/jest/factory';
|
||||
import { renderHook, waitFor } from 'pl-fe/jest/test-helpers';
|
||||
|
||||
import { useGroup } from './useGroup';
|
||||
import { useGroup } from './use-group';
|
||||
|
||||
const group = buildGroup({ id: '1', display_name: 'soapbox' });
|
||||
|
|
@ -2,11 +2,11 @@ import { useEffect } from 'react';
|
|||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useEntity } from 'pl-fe/entity-store/hooks/useEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useEntity } from 'pl-fe/entity-store/hooks/use-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { normalizeGroup, type Group } from 'pl-fe/normalizers/group';
|
||||
|
||||
import { useGroupRelationship } from './useGroupRelationship';
|
||||
import { useGroupRelationship } from './use-group-relationship';
|
||||
|
||||
import type { Group as BaseGroup } from 'pl-api';
|
||||
|
|
@ -5,7 +5,7 @@ import { __stub } from 'pl-fe/api';
|
|||
import { buildGroup } from 'pl-fe/jest/factory';
|
||||
import { renderHook, waitFor } from 'pl-fe/jest/test-helpers';
|
||||
|
||||
import { useGroups } from './useGroups';
|
||||
import { useGroups } from './use-groups';
|
||||
|
||||
const group = buildGroup({ id: '1', display_name: 'soapbox' });
|
||||
const store = {
|
|
@ -1,10 +1,10 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useEntities } from 'pl-fe/entity-store/hooks/useEntities';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useEntities } from 'pl-fe/entity-store/hooks/use-entities';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { useFeatures } from 'pl-fe/hooks/use-features';
|
||||
import { normalizeGroup, type Group } from 'pl-fe/normalizers/group';
|
||||
|
||||
import { useGroupRelationships } from './useGroupRelationships';
|
||||
import { useGroupRelationships } from './use-group-relationships';
|
||||
|
||||
import type { Group as BaseGroup } from 'pl-api';
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/useCreateEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/use-create-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
|
||||
import { useGroups } from './useGroups';
|
||||
import { useGroups } from './use-groups';
|
||||
|
||||
import type { Group } from 'pl-api';
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/useCreateEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/use-create-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
|
||||
import { useGroups } from './useGroups';
|
||||
import { useGroups } from './use-groups';
|
||||
|
||||
import type { Group } from 'pl-api';
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
import * as v from 'valibot';
|
||||
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/useCreateEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/use-create-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { normalizeGroupMember } from 'pl-fe/normalizers/group-member';
|
||||
|
||||
import type { Group, GroupMember, GroupRole } from 'pl-api';
|
|
@ -1,6 +1,6 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/useCreateEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/use-create-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { normalizeGroup } from 'pl-fe/normalizers/group';
|
||||
|
||||
interface UpdateGroupParams {
|
|
@ -1,9 +1,9 @@
|
|||
import { useQuery } from '@tanstack/react-query';
|
||||
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useInstance } from 'pl-fe/hooks/useInstance';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/useLoggedIn';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { useFeatures } from 'pl-fe/hooks/use-features';
|
||||
import { useInstance } from 'pl-fe/hooks/use-instance';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/use-logged-in';
|
||||
|
||||
const useTranslationLanguages = () => {
|
||||
const client = useClient();
|
|
@ -2,9 +2,9 @@ import { useMutation, useQuery } from '@tanstack/react-query';
|
|||
import { type InteractionPolicies, interactionPoliciesSchema } from 'pl-api';
|
||||
import * as v from 'valibot';
|
||||
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/useLoggedIn';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { useFeatures } from 'pl-fe/hooks/use-features';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/use-logged-in';
|
||||
import { queryClient } from 'pl-fe/queries/client';
|
||||
|
||||
const emptySchema = v.parse(interactionPoliciesSchema, {});
|
|
@ -1,8 +1,8 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { selectEntity } from 'pl-fe/entity-store/selectors';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
|
||||
import { useBookmarkFolders } from './useBookmarkFolders';
|
||||
import { useBookmarkFolders } from './use-bookmark-folders';
|
||||
|
||||
import type{ BookmarkFolder } from 'pl-api';
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useEntities } from 'pl-fe/entity-store/hooks/useEntities';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useEntities } from 'pl-fe/entity-store/hooks/use-entities';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { useFeatures } from 'pl-fe/hooks/use-features';
|
||||
|
||||
import type { BookmarkFolder } from 'pl-api';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/useCreateEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/use-create-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
|
||||
interface CreateBookmarkFolderParams {
|
||||
name: string;
|
|
@ -1,6 +1,6 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useDeleteEntity } from 'pl-fe/entity-store/hooks/useDeleteEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useDeleteEntity } from 'pl-fe/entity-store/hooks/use-delete-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
|
||||
const useDeleteBookmarkFolder = () => {
|
||||
const client = useClient();
|
|
@ -1,6 +1,6 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/useCreateEntity';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useCreateEntity } from 'pl-fe/entity-store/hooks/use-create-entity';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
|
||||
interface UpdateBookmarkFolderParams {
|
||||
name: string;
|
|
@ -1,4 +1,4 @@
|
|||
import { useTimelineStream } from './useTimelineStream';
|
||||
import { useTimelineStream } from './use-timeline-stream';
|
||||
|
||||
interface UseCommunityStreamOpts {
|
||||
onlyMedia?: boolean;
|
|
@ -1,4 +1,4 @@
|
|||
import { useTimelineStream } from './useTimelineStream';
|
||||
import { useTimelineStream } from './use-timeline-stream';
|
||||
|
||||
const useDirectStream = () => useTimelineStream('direct');
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import { useTimelineStream } from './useTimelineStream';
|
||||
import { useTimelineStream } from './use-timeline-stream';
|
||||
|
||||
const useGroupStream = (groupId: string) => useTimelineStream('group', { group: groupId } as any);
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import { useTimelineStream } from './useTimelineStream';
|
||||
import { useTimelineStream } from './use-timeline-stream';
|
||||
|
||||
const useHashtagStream = (tag: string) => useTimelineStream('hashtag', { tag });
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import { useLoggedIn } from 'pl-fe/hooks/useLoggedIn';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/use-logged-in';
|
||||
|
||||
import { useTimelineStream } from './useTimelineStream';
|
||||
import { useTimelineStream } from './use-timeline-stream';
|
||||
|
||||
const useListStream = (listId: string) => {
|
||||
const { isLoggedIn } = useLoggedIn();
|
|
@ -1,4 +1,4 @@
|
|||
import { useTimelineStream } from './useTimelineStream';
|
||||
import { useTimelineStream } from './use-timeline-stream';
|
||||
|
||||
interface UsePublicStreamOpts {
|
||||
onlyMedia?: boolean;
|
|
@ -1,4 +1,4 @@
|
|||
import { useTimelineStream } from './useTimelineStream';
|
||||
import { useTimelineStream } from './use-timeline-stream';
|
||||
|
||||
interface UseRemoteStreamOpts {
|
||||
instance: string;
|
|
@ -1,8 +1,8 @@
|
|||
import { useEffect, useRef } from 'react';
|
||||
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useInstance } from 'pl-fe/hooks/useInstance';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { useInstance } from 'pl-fe/hooks/use-instance';
|
||||
import { getAccessToken } from 'pl-fe/utils/auth';
|
||||
|
||||
import type { StreamingEvent } from 'pl-api';
|
|
@ -11,17 +11,17 @@ import { useStatContext } from 'pl-fe/contexts/stat-context';
|
|||
import { importEntities } from 'pl-fe/entity-store/actions';
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { selectEntity } from 'pl-fe/entity-store/selectors';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/useLoggedIn';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/use-logged-in';
|
||||
import messages from 'pl-fe/messages';
|
||||
import { queryClient } from 'pl-fe/queries/client';
|
||||
import { useSettingsStore } from 'pl-fe/stores/settings';
|
||||
import { getUnreadChatsCount, updateChatListItem } from 'pl-fe/utils/chats';
|
||||
import { play, soundCache } from 'pl-fe/utils/sounds';
|
||||
|
||||
import { updateReactions } from '../announcements/useAnnouncements';
|
||||
import { updateReactions } from '../announcements/use-announcements';
|
||||
|
||||
import { useTimelineStream } from './useTimelineStream';
|
||||
import { useTimelineStream } from './use-timeline-stream';
|
||||
|
||||
import type { Announcement, AnnouncementReaction, FollowRelationshipUpdate, Relationship, StreamingEvent } from 'pl-api';
|
||||
import type { AppDispatch, RootState } from 'pl-fe/store';
|
|
@ -1,7 +1,7 @@
|
|||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useEntities } from 'pl-fe/entity-store/hooks/useEntities';
|
||||
import { useClient } from 'pl-fe/hooks/useClient';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useEntities } from 'pl-fe/entity-store/hooks/use-entities';
|
||||
import { useClient } from 'pl-fe/hooks/use-client';
|
||||
import { useFeatures } from 'pl-fe/hooks/use-features';
|
||||
|
||||
import type { TrendsLink } from 'pl-api';
|
||||
|
|
@ -5,7 +5,7 @@ import { useIntl, FormattedMessage } from 'react-intl';
|
|||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import { fetchRelationships } from 'pl-fe/actions/accounts';
|
||||
import { useAccount } from 'pl-fe/api/hooks/accounts/useAccount';
|
||||
import { useAccount } from 'pl-fe/api/hooks/accounts/use-account';
|
||||
import Badge from 'pl-fe/components/badge';
|
||||
import Card, { CardBody } from 'pl-fe/components/ui/card';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
|
@ -14,8 +14,8 @@ import Stack from 'pl-fe/components/ui/stack';
|
|||
import Text from 'pl-fe/components/ui/text';
|
||||
import ActionButton from 'pl-fe/features/ui/components/action-button';
|
||||
import { UserPanel } from 'pl-fe/features/ui/util/async-components';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
import { useAccountHoverCardStore } from 'pl-fe/stores/account-hover-card';
|
||||
|
||||
import { showAccountHoverCard } from './hover-account-wrapper';
|
||||
|
|
|
@ -13,7 +13,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 ActionButton from 'pl-fe/features/ui/components/action-button';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
import { getAcct } from 'pl-fe/utils/accounts';
|
||||
import { displayFqn } from 'pl-fe/utils/state';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
|||
import { useIntl, type IntlShape } from 'react-intl';
|
||||
import { TransitionMotion, spring } from 'react-motion';
|
||||
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
import { isNumber, roundDown } from 'pl-fe/utils/numbers';
|
||||
|
||||
const obfuscatedCount = (count: number): string => {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { FormattedDate } from 'react-intl';
|
|||
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useFeatures } from 'pl-fe/hooks/use-features';
|
||||
import { getTextDirection } from 'pl-fe/utils/rtl';
|
||||
|
||||
import AnnouncementContent from './announcement-content';
|
||||
|
|
|
@ -5,11 +5,11 @@ import { FormattedMessage } from 'react-intl';
|
|||
import ReactSwipeableViews from 'react-swipeable-views';
|
||||
import { createSelector } from 'reselect';
|
||||
|
||||
import { useAnnouncements } from 'pl-fe/api/hooks/announcements/useAnnouncements';
|
||||
import { useAnnouncements } from 'pl-fe/api/hooks/announcements/use-announcements';
|
||||
import Card from 'pl-fe/components/ui/card';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
|
||||
import Announcement from './announcement';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
|
||||
import unicodeMapping from 'pl-fe/features/emoji/mapping';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
import { joinPublicPath } from 'pl-fe/utils/static';
|
||||
|
||||
import type { Map as ImmutableMap } from 'immutable';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import clsx from 'clsx';
|
||||
import React, { useState } from 'react';
|
||||
|
||||
import { useAnnouncements } from 'pl-fe/api/hooks/announcements/useAnnouncements';
|
||||
import { useAnnouncements } from 'pl-fe/api/hooks/announcements/use-announcements';
|
||||
import AnimatedNumber from 'pl-fe/components/animated-number';
|
||||
import unicodeMapping from 'pl-fe/features/emoji/mapping';
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@ import clsx from 'clsx';
|
|||
import React from 'react';
|
||||
import { TransitionMotion, spring } from 'react-motion';
|
||||
|
||||
import { useAnnouncements } from 'pl-fe/api/hooks/announcements/useAnnouncements';
|
||||
import { useAnnouncements } from 'pl-fe/api/hooks/announcements/use-announcements';
|
||||
import EmojiPickerDropdown from 'pl-fe/features/emoji/containers/emoji-picker-dropdown-container';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
|
||||
import Reaction from './reaction';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React, { Suspense } from 'react';
|
||||
|
||||
import { MediaGallery } from 'pl-fe/features/ui/util/async-components';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
import { useModalsStore } from 'pl-fe/stores/modals';
|
||||
|
||||
import { isMediaVisible } from './statuses/sensitive-content-overlay';
|
||||
|
|
|
@ -4,7 +4,7 @@ import React, { useState, useRef, useCallback, useEffect } from 'react';
|
|||
|
||||
import { accountSearch } from 'pl-fe/actions/accounts';
|
||||
import AutosuggestInput, { AutoSuggestion } from 'pl-fe/components/autosuggest-input';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
|
||||
import type { Menu } from 'pl-fe/components/dropdown-menu';
|
||||
import type { InputThemes } from 'pl-fe/components/ui/input';
|
||||
|
|
|
@ -4,7 +4,7 @@ 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 { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
|
||||
const buildingCommunityIcon = require('@tabler/icons/outline/building-community.svg');
|
||||
const homeIcon = require('@tabler/icons/outline/home-2.svg');
|
||||
|
|
|
@ -4,7 +4,7 @@ import React from 'react';
|
|||
|
||||
import Avatar from 'pl-fe/components/ui/avatar';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
import { makeGetAccount } from 'pl-fe/selectors';
|
||||
|
||||
import type { Account } from 'pl-fe/normalizers/account';
|
||||
|
|
|
@ -3,8 +3,8 @@ import { defineMessages, useIntl } from 'react-intl';
|
|||
|
||||
import IconButton from 'pl-fe/components/icon-button';
|
||||
import { DatePicker } from 'pl-fe/features/ui/util/async-components';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useInstance } from 'pl-fe/hooks/useInstance';
|
||||
import { useFeatures } from 'pl-fe/hooks/use-features';
|
||||
import { useInstance } from 'pl-fe/hooks/use-instance';
|
||||
|
||||
const messages = defineMessages({
|
||||
birthdayPlaceholder: { id: 'edit_profile.fields.birthday_placeholder', defaultMessage: 'Your birthday' },
|
||||
|
|
|
@ -5,8 +5,8 @@ import { FormattedMessage } from 'react-intl';
|
|||
import { fetchBirthdayReminders } from 'pl-fe/actions/accounts';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
import AccountContainer from 'pl-fe/containers/account-container';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
|
||||
const timeToMidnight = () => {
|
||||
const now = new Date();
|
||||
|
|
|
@ -5,7 +5,7 @@ import { unblockDomain } from 'pl-fe/actions/domain-blocks';
|
|||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
import IconButton from 'pl-fe/components/ui/icon-button';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
|
||||
const messages = defineMessages({
|
||||
blockDomainConfirm: { id: 'confirmations.domain_block.confirm', defaultMessage: 'Hide entire domain' },
|
||||
|
|
|
@ -11,7 +11,7 @@ import VerificationBadge from 'pl-fe/components/verification-badge';
|
|||
import Emojify from 'pl-fe/features/emoji/emojify';
|
||||
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/useAppSelector';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
|
||||
import type { Status as StatusEntity } from 'pl-fe/normalizers/status';
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ 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 { useInstance } from 'pl-fe/hooks/useInstance';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks/usePlFeConfig';
|
||||
import { useInstance } from 'pl-fe/hooks/use-instance';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks/use-pl-fe-config';
|
||||
|
||||
const acceptedGdpr = !!localStorage.getItem('plfe:gdpr');
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@ import React from 'react';
|
|||
import { Helmet as ReactHelmet } from 'react-helmet-async';
|
||||
|
||||
import { useStatContext } from 'pl-fe/contexts/stat-context';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useInstance } from 'pl-fe/hooks/useInstance';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
import { useInstance } from 'pl-fe/hooks/use-instance';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
import { RootState } from 'pl-fe/store';
|
||||
import FaviconService from 'pl-fe/utils/favicon-service';
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import debounce from 'lodash/debounce';
|
|||
import React, { useRef } from 'react';
|
||||
|
||||
import { fetchAccount } from 'pl-fe/actions/accounts';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
import { isMobile } from 'pl-fe/is-mobile';
|
||||
import { useAccountHoverCardStore } from 'pl-fe/stores/account-hover-card';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|||
import { locationSearch } from 'pl-fe/actions/events';
|
||||
import AutosuggestInput, { AutoSuggestion } from 'pl-fe/components/autosuggest-input';
|
||||
import Icon from 'pl-fe/components/icon';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
|
||||
import AutosuggestLocation from './autosuggest-location';
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ import Blurhash from 'pl-fe/components/blurhash';
|
|||
import Icon from 'pl-fe/components/icon';
|
||||
import StillImage from 'pl-fe/components/still-image';
|
||||
import { MIMETYPE_ICONS } from 'pl-fe/components/upload';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks/usePlFeConfig';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks/use-pl-fe-config';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
import { truncateFilename } from 'pl-fe/utils/media';
|
||||
|
||||
import { isIOS } from '../is-mobile';
|
||||
|
|
|
@ -5,8 +5,8 @@ import { useHistory } from 'react-router-dom';
|
|||
|
||||
import { cancelReplyCompose } from 'pl-fe/actions/compose';
|
||||
import { saveDraftStatus } from 'pl-fe/actions/draft-statuses';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { usePrevious } from 'pl-fe/hooks/usePrevious';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
import { usePrevious } from 'pl-fe/hooks/use-previous';
|
||||
import { useModalsStore } from 'pl-fe/stores/modals';
|
||||
|
||||
import type { ModalType } from 'pl-fe/features/ui/components/modal-root';
|
||||
|
|
|
@ -2,8 +2,8 @@ import React from 'react';
|
|||
import { Link } from 'react-router-dom';
|
||||
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks/usePlFeConfig';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks/use-pl-fe-config';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
|
||||
interface INavlinks {
|
||||
type: string;
|
||||
|
|
|
@ -7,7 +7,7 @@ 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 Tooltip from 'pl-fe/components/ui/tooltip';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
|
||||
import RelativeTimestamp from '../relative-timestamp';
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import { defineMessages, useIntl } from 'react-intl';
|
|||
import { vote } from 'pl-fe/actions/polls';
|
||||
import Stack from 'pl-fe/components/ui/stack';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
import { useModalsStore } from 'pl-fe/stores/modals';
|
||||
|
||||
import PollFooter from './poll-footer';
|
||||
|
|
|
@ -3,7 +3,7 @@ import React, { useCallback } from 'react';
|
|||
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/useAppSelector';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
import { makeGetStatus } from 'pl-fe/selectors';
|
||||
|
||||
interface IQuotedStatusIndicator {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { useIntl, MessageDescriptor } from 'react-intl';
|
|||
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
|
||||
interface IScrollTopButton {
|
||||
/** Callback when clicked, and also when scrolled to the top. */
|
||||
|
|
|
@ -6,7 +6,7 @@ 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/useSettings';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
|
||||
interface IScrollableListBase {
|
||||
/** Pagination callback when the end of the list is reached. */
|
||||
|
|
|
@ -7,7 +7,7 @@ import FormActions from 'pl-fe/components/ui/form-actions';
|
|||
import FormGroup from 'pl-fe/components/ui/form-group';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import Textarea from 'pl-fe/components/ui/textarea';
|
||||
import { useOwnAccount } from 'pl-fe/hooks/useOwnAccount';
|
||||
import { useOwnAccount } from 'pl-fe/hooks/use-own-account';
|
||||
import { captureSentryFeedback } from 'pl-fe/sentry';
|
||||
|
||||
interface ISentryFeedbackForm {
|
||||
|
|
|
@ -5,7 +5,7 @@ import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
|||
import { Link, NavLink } from 'react-router-dom';
|
||||
|
||||
import { fetchOwnAccounts, logOut, switchAccount } from 'pl-fe/actions/auth';
|
||||
import { useAccount } from 'pl-fe/api/hooks/accounts/useAccount';
|
||||
import { useAccount } from 'pl-fe/api/hooks/accounts/use-account';
|
||||
import Account from 'pl-fe/components/account';
|
||||
import Divider from 'pl-fe/components/ui/divider';
|
||||
import HStack from 'pl-fe/components/ui/hstack';
|
||||
|
@ -13,11 +13,11 @@ 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 ProfileStats from 'pl-fe/features/ui/components/profile-stats';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useInstance } from 'pl-fe/hooks/useInstance';
|
||||
import { useRegistrationStatus } from 'pl-fe/hooks/useRegistrationStatus';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
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 { makeGetOtherAccounts } from 'pl-fe/selectors';
|
||||
import { useSettingsStore } from 'pl-fe/stores/settings';
|
||||
import { useUiStore } from 'pl-fe/stores/ui';
|
||||
|
|
|
@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|||
import React from 'react';
|
||||
import { NavLink } from 'react-router-dom';
|
||||
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
|
||||
import Icon from './ui/icon';
|
||||
import Text from './ui/text';
|
||||
|
|
|
@ -7,13 +7,13 @@ 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';
|
||||
import ProfileDropdown from 'pl-fe/features/ui/components/profile-dropdown';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useInstance } from 'pl-fe/hooks/useInstance';
|
||||
import { useLogo } from 'pl-fe/hooks/useLogo';
|
||||
import { useOwnAccount } from 'pl-fe/hooks/useOwnAccount';
|
||||
import { useRegistrationStatus } from 'pl-fe/hooks/useRegistrationStatus';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
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 { 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 Account from './account';
|
||||
import DropdownMenu, { Menu } from './dropdown-menu';
|
||||
|
|
|
@ -7,8 +7,8 @@ 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 Textarea from 'pl-fe/components/ui/textarea';
|
||||
import { useLogo } from 'pl-fe/hooks/useLogo';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks/usePlFeConfig';
|
||||
import { useLogo } from 'pl-fe/hooks/use-logo';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks/use-pl-fe-config';
|
||||
import { captureSentryException } from 'pl-fe/sentry';
|
||||
import KVStore from 'pl-fe/storage/kv-store';
|
||||
import sourceCode from 'pl-fe/utils/code';
|
||||
|
|
|
@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|||
import React from 'react';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
import { useLogo } from 'pl-fe/hooks/useLogo';
|
||||
import { useLogo } from 'pl-fe/hooks/use-logo';
|
||||
|
||||
const messages = defineMessages({
|
||||
logo: { id: 'generic.logo', defaultMessage: 'Logo' },
|
||||
|
|
|
@ -14,22 +14,22 @@ import { initReport, ReportableEntities } from 'pl-fe/actions/reports';
|
|||
import { changeSetting } from 'pl-fe/actions/settings';
|
||||
import { deleteStatus, editStatus, toggleMuteStatus, translateStatus, undoStatusTranslation } from 'pl-fe/actions/statuses';
|
||||
import { deleteFromTimelines } from 'pl-fe/actions/timelines';
|
||||
import { useBlockGroupMember } from 'pl-fe/api/hooks/groups/useBlockGroupMember';
|
||||
import { useDeleteGroupStatus } from 'pl-fe/api/hooks/groups/useDeleteGroupStatus';
|
||||
import { useGroup } from 'pl-fe/api/hooks/groups/useGroup';
|
||||
import { useGroupRelationship } from 'pl-fe/api/hooks/groups/useGroupRelationship';
|
||||
import { useTranslationLanguages } from 'pl-fe/api/hooks/instance/useTranslationLanguages';
|
||||
import { useBlockGroupMember } from 'pl-fe/api/hooks/groups/use-block-group-member';
|
||||
import { useDeleteGroupStatus } from 'pl-fe/api/hooks/groups/use-delete-group-status';
|
||||
import { useGroup } from 'pl-fe/api/hooks/groups/use-group';
|
||||
import { useGroupRelationship } from 'pl-fe/api/hooks/groups/use-group-relationship';
|
||||
import { useTranslationLanguages } from 'pl-fe/api/hooks/instance/use-translation-languages';
|
||||
import DropdownMenu from 'pl-fe/components/dropdown-menu';
|
||||
import StatusActionButton from 'pl-fe/components/status-action-button';
|
||||
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 } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useInstance } from 'pl-fe/hooks/useInstance';
|
||||
import { useOwnAccount } from 'pl-fe/hooks/useOwnAccount';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
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 { useOwnAccount } from 'pl-fe/hooks/use-own-account';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
import { useChats } from 'pl-fe/queries/chats';
|
||||
import { useModalsStore } from 'pl-fe/stores/modals';
|
||||
import toast from 'pl-fe/toast';
|
||||
|
|
|
@ -5,7 +5,7 @@ import React from 'react';
|
|||
import Emoji from 'pl-fe/components/ui/emoji';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import Text from 'pl-fe/components/ui/text';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
|
||||
import AnimatedNumber from './animated-number';
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ 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 Emojify from 'pl-fe/features/emoji/emojify';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
import { onlyEmoji as isOnlyEmoji } from 'pl-fe/utils/rich-content';
|
||||
|
||||
import { getTextDirection } from '../utils/rtl';
|
||||
|
|
|
@ -8,8 +8,8 @@ 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 { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
import { useStatusHoverCardStore } from 'pl-fe/stores/status-hover-card';
|
||||
|
||||
interface IStatusHoverCard {
|
||||
|
|
|
@ -6,7 +6,7 @@ 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 Language, languages } from 'pl-fe/features/preferences';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
|
||||
import DropdownMenu from './dropdown-menu';
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ import StatusContainer from 'pl-fe/containers/status-container';
|
|||
import FeedSuggestions from 'pl-fe/features/feed-suggestions/feed-suggestions';
|
||||
import PlaceholderStatus from 'pl-fe/features/placeholder/components/placeholder-status';
|
||||
import PendingStatus from 'pl-fe/features/ui/components/pending-status';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks/usePlFeConfig';
|
||||
import { usePlFeConfig } from 'pl-fe/hooks/use-pl-fe-config';
|
||||
|
||||
interface IStatusList extends Omit<IScrollableListWithContainer, 'onLoadMore' | 'children'> {
|
||||
/** Unique key to preserve the scroll position when navigating back. */
|
||||
|
|
|
@ -4,7 +4,7 @@ import AttachmentThumbs from 'pl-fe/components/attachment-thumbs';
|
|||
import PreviewCard from 'pl-fe/components/preview-card';
|
||||
import PlaceholderCard from 'pl-fe/features/placeholder/components/placeholder-card';
|
||||
import { MediaGallery, Video, Audio } from 'pl-fe/features/ui/util/async-components';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
import { useModalsStore } from 'pl-fe/stores/modals';
|
||||
|
||||
import { isMediaVisible } from './statuses/sensitive-content-overlay';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import { useAccount } from 'pl-fe/api/hooks/accounts/useAccount';
|
||||
import { useAccount } from 'pl-fe/api/hooks/accounts/use-account';
|
||||
|
||||
import HoverAccountWrapper from './hover-account-wrapper';
|
||||
|
||||
|
|
|
@ -10,10 +10,10 @@ import Icon from 'pl-fe/components/ui/icon';
|
|||
import Text from 'pl-fe/components/ui/text';
|
||||
import EmojiPickerDropdown from 'pl-fe/features/emoji/containers/emoji-picker-dropdown-container';
|
||||
import unicodeMapping from 'pl-fe/features/emoji/mapping';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useLoggedIn } from 'pl-fe/hooks/useLoggedIn';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
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 { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
import { useModalsStore } from 'pl-fe/stores/modals';
|
||||
|
||||
import AnimatedNumber from './animated-number';
|
||||
|
|
|
@ -16,9 +16,9 @@ import Emojify from 'pl-fe/features/emoji/emojify';
|
|||
import StatusTypeIcon from 'pl-fe/features/status/components/status-type-icon';
|
||||
import QuotedStatus from 'pl-fe/features/status/containers/quoted-status-container';
|
||||
import { HotKeys } from 'pl-fe/features/ui/components/hotkeys';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
import { makeGetStatus, type SelectedStatus } from 'pl-fe/selectors';
|
||||
import { useModalsStore } from 'pl-fe/stores/modals';
|
||||
import { textForScreenReader } from 'pl-fe/utils/status';
|
||||
|
|
|
@ -6,8 +6,8 @@ import { hideStatusMedia, revealStatusMedia } from 'pl-fe/actions/statuses';
|
|||
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 { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
|
||||
import type { Status } from 'pl-fe/normalizers/status';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import clsx from 'clsx';
|
||||
import React, { useRef } from 'react';
|
||||
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
|
||||
interface IStillImage {
|
||||
/** Image alt text. */
|
||||
|
|
|
@ -4,7 +4,7 @@ import { NavLink, useLocation } from 'react-router-dom';
|
|||
|
||||
import IconWithCounter from 'pl-fe/components/icon-with-counter';
|
||||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import { useSettings } from 'pl-fe/hooks/useSettings';
|
||||
import { useSettings } from 'pl-fe/hooks/use-settings';
|
||||
|
||||
interface IThumbNavigationLink {
|
||||
count?: number;
|
||||
|
|
|
@ -7,10 +7,10 @@ import ThumbNavigationLink from 'pl-fe/components/thumb-navigation-link';
|
|||
import Icon from 'pl-fe/components/ui/icon';
|
||||
import { useStatContext } from 'pl-fe/contexts/stat-context';
|
||||
import { Entities } from 'pl-fe/entity-store/entities';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/useAppSelector';
|
||||
import { useFeatures } from 'pl-fe/hooks/useFeatures';
|
||||
import { useOwnAccount } from 'pl-fe/hooks/useOwnAccount';
|
||||
import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
|
||||
import { useAppSelector } from 'pl-fe/hooks/use-app-selector';
|
||||
import { useFeatures } from 'pl-fe/hooks/use-features';
|
||||
import { useOwnAccount } from 'pl-fe/hooks/use-own-account';
|
||||
import { useModalsStore } from 'pl-fe/stores/modals';
|
||||
import { useUiStore } from 'pl-fe/stores/ui';
|
||||
import { isStandalone } from 'pl-fe/utils/state';
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue