pl-hooks: Prefer kebab case for file names
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
a0c0f17004
commit
9fef1d1f4e
16 changed files with 26 additions and 26 deletions
|
@ -4,7 +4,7 @@ import { usePlHooksApiClient } from 'pl-hooks/contexts/api-client';
|
|||
import { usePlHooksQueryClient } from 'pl-hooks/contexts/query-client';
|
||||
import { importEntities } from 'pl-hooks/importer';
|
||||
|
||||
import { useAccount, type UseAccountOpts } from './useAccount';
|
||||
import { useAccount, type UseAccountOpts } from './use-account';
|
||||
|
||||
const useAccountLookup = (acct?: string, opts: UseAccountOpts = {}) => {
|
||||
const { client } = usePlHooksApiClient();
|
|
@ -3,9 +3,9 @@ import { useQuery } from '@tanstack/react-query';
|
|||
import { usePlHooksApiClient } from 'pl-hooks/contexts/api-client';
|
||||
import { queryClient, usePlHooksQueryClient } from 'pl-hooks/contexts/query-client';
|
||||
import { importEntities } from 'pl-hooks/importer';
|
||||
import { type Account, normalizeAccount } from 'pl-hooks/normalizers/normalizeAccount';
|
||||
import { type Account, normalizeAccount } from 'pl-hooks/normalizers/account';
|
||||
|
||||
import { useAccountRelationship } from './useAccountRelationship';
|
||||
import { useAccountRelationship } from './use-account-relationship';
|
||||
|
||||
import type { PlApiClient } from 'pl-api';
|
||||
|
|
@ -3,7 +3,7 @@ import { useQuery } from '@tanstack/react-query';
|
|||
import { usePlHooksApiClient } from 'pl-hooks/contexts/api-client';
|
||||
import { usePlHooksQueryClient } from 'pl-hooks/contexts/query-client';
|
||||
|
||||
import { useInstance } from './useInstance';
|
||||
import { useInstance } from './use-instance';
|
||||
|
||||
const useTranslationLanguages = () => {
|
||||
const { client } = usePlHooksApiClient();
|
|
@ -3,7 +3,7 @@ import { useMutation } from '@tanstack/react-query';
|
|||
import { usePlHooksApiClient } from 'pl-hooks/contexts/api-client';
|
||||
import { usePlHooksQueryClient } from 'pl-hooks/contexts/query-client';
|
||||
|
||||
import type { Timeline } from './useMarkers';
|
||||
import type { Timeline } from './use-markers';
|
||||
import type { Marker } from 'pl-api';
|
||||
|
||||
const useUpdateMarkerMutation = (timeline: Timeline) => {
|
|
@ -3,7 +3,7 @@ import { InfiniteData, useInfiniteQuery, UseInfiniteQueryResult } from '@tanstac
|
|||
import { usePlHooksApiClient } from 'pl-hooks/contexts/api-client';
|
||||
import { queryClient, usePlHooksQueryClient } from 'pl-hooks/contexts/query-client';
|
||||
import { importEntities } from 'pl-hooks/importer';
|
||||
import { deduplicateNotifications } from 'pl-hooks/normalizers/normalizeNotifications';
|
||||
import { deduplicateNotifications } from 'pl-hooks/normalizers/notification';
|
||||
import { flattenPages } from 'pl-hooks/utils/queries';
|
||||
|
||||
import type { Notification as BaseNotification, PaginatedResponse, PlApiClient } from 'pl-api';
|
|
@ -2,13 +2,13 @@ import { useQuery } from '@tanstack/react-query';
|
|||
|
||||
import { usePlHooksApiClient } from 'pl-hooks/contexts/api-client';
|
||||
import { queryClient, usePlHooksQueryClient } from 'pl-hooks/contexts/query-client';
|
||||
import { type NormalizedNotification, normalizeNotification } from 'pl-hooks/normalizers/normalizeNotifications';
|
||||
import { type NormalizedNotification, normalizeNotification } from 'pl-hooks/normalizers/notification';
|
||||
|
||||
import { useAccount } from '../accounts/useAccount';
|
||||
import { useStatus } from '../statuses/useStatus';
|
||||
import { useAccount } from '../accounts/use-account';
|
||||
import { useStatus } from '../statuses/use-status';
|
||||
|
||||
import type { Account } from 'pl-hooks/normalizers/normalizeAccount';
|
||||
import type { Status } from 'pl-hooks/normalizers/normalizeStatus';
|
||||
import type { Account } from 'pl-hooks/normalizers/account';
|
||||
import type { Status } from 'pl-hooks/normalizers/status';
|
||||
|
||||
const getNotificationStatusId = (n: NormalizedNotification) => {
|
||||
if (['mention', 'status', 'reblog', 'favourite', 'poll', 'update', 'emoji_reaction', 'event_reminder', 'participation_accepted', 'participation_request'].includes(n.type))
|
|
@ -3,9 +3,9 @@ import { useQueries, useQuery } from '@tanstack/react-query';
|
|||
import { usePlHooksApiClient } from 'pl-hooks/contexts/api-client';
|
||||
import { queryClient, usePlHooksQueryClient } from 'pl-hooks/contexts/query-client';
|
||||
import { importEntities } from 'pl-hooks/importer';
|
||||
import { type Account, normalizeAccount } from 'pl-hooks/normalizers/normalizeAccount';
|
||||
import { type Account, normalizeAccount } from 'pl-hooks/normalizers/account';
|
||||
|
||||
import { normalizeStatus, type Status } from '../../normalizers/normalizeStatus';
|
||||
import { normalizeStatus, type Status } from '../../normalizers/status';
|
||||
|
||||
// const toServerSideType = (columnType: string): Filter['context'][0] => {
|
||||
// switch (columnType) {
|
|
@ -1,7 +1,7 @@
|
|||
import { queryClient } from 'pl-hooks/contexts/query-client';
|
||||
|
||||
import { type DeduplicatedNotification, type NormalizedNotification, normalizeNotification } from './normalizers/normalizeNotifications';
|
||||
import { normalizeStatus, type Status } from './normalizers/normalizeStatus';
|
||||
import { type DeduplicatedNotification, type NormalizedNotification, normalizeNotification } from './normalizers/notification';
|
||||
import { normalizeStatus, type Status } from './normalizers/status';
|
||||
|
||||
import type {
|
||||
Account as BaseAccount,
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
export * from './contexts/api-client';
|
||||
export * from './contexts/query-client';
|
||||
|
||||
export * from './hooks/accounts/useAccount';
|
||||
export * from './hooks/accounts/useAccountLookup';
|
||||
export * from './hooks/accounts/useAccountRelationship';
|
||||
export * from './hooks/instance/useInstance';
|
||||
export * from './hooks/instance/useTranslationLanguages';
|
||||
export * from './hooks/markers/useMarkers';
|
||||
export * from './hooks/markers/useUpdateMarkerMutation';
|
||||
export * from './hooks/notifications/useNotification';
|
||||
export * from './hooks/notifications/useNotificationList';
|
||||
export * from './hooks/polls/usePoll';
|
||||
export * from './hooks/statuses/useStatus';
|
||||
export * from './hooks/accounts/use-account';
|
||||
export * from './hooks/accounts/use-account-lookup';
|
||||
export * from './hooks/accounts/use-account-relationship';
|
||||
export * from './hooks/instance/use-instance';
|
||||
export * from './hooks/instance/use-translation-languages';
|
||||
export * from './hooks/markers/use-markers';
|
||||
export * from './hooks/markers/use-update-marker-mutation';
|
||||
export * from './hooks/notifications/use-notification';
|
||||
export * from './hooks/notifications/use-notification-list';
|
||||
export * from './hooks/polls/use-poll';
|
||||
export * from './hooks/statuses/use-status';
|
||||
|
||||
export * from './importer';
|
||||
|
|
Loading…
Reference in a new issue