Compare commits
3 commits
d290848f48
...
38adaa6947
Author | SHA1 | Date | |
---|---|---|---|
38adaa6947 | |||
e935f575bb | |||
7867a9294c |
34 changed files with 48 additions and 42 deletions
|
@ -67,8 +67,8 @@
|
|||
"mini-css-extract-plugin": "^2.9.1",
|
||||
"mutative": "^1.0.11",
|
||||
"path-browserify": "^1.0.1",
|
||||
"pl-api": "^0.1.13",
|
||||
"pl-hooks": "^0.0.5",
|
||||
"pl-api": "^1.0.0-rc.1",
|
||||
"pl-hooks": "^0.0.6",
|
||||
"postcss": "^8.4.47",
|
||||
"preact": "^10.24.3",
|
||||
"process": "^0.11.10",
|
||||
|
|
|
@ -10,7 +10,7 @@ import StillImage from 'bigbuffet/components/still-image';
|
|||
import Avatar from 'bigbuffet/components/ui/avatar';
|
||||
import VerificationBadge from 'bigbuffet/components/verification-badge';
|
||||
import ActionButton from 'bigbuffet/features/ui/components/action-button';
|
||||
import { useFeatures } from 'bigbuffet/hooks/useFeatures';
|
||||
import { useFeatures } from 'bigbuffet/hooks/use-features';
|
||||
import { useModalsStore } from 'bigbuffet/stores/modals';
|
||||
import { isDefaultHeader } from 'bigbuffet/utils/accounts';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import Button from 'bigbuffet/components/ui/button';
|
||||
import { useFeatures } from 'bigbuffet/hooks/useFeatures';
|
||||
import { useFeatures } from 'bigbuffet/hooks/use-features';
|
||||
import { useModalsStore } from 'bigbuffet/stores/modals';
|
||||
|
||||
import type { ButtonThemes } from 'bigbuffet/components/ui/button';
|
||||
|
|
|
@ -10,7 +10,7 @@ import Icon from 'bigbuffet/components/icon';
|
|||
import PlaceholderEventHeader from 'bigbuffet/components/placeholders/placeholder-event-header';
|
||||
import StillImage from 'bigbuffet/components/still-image';
|
||||
import VerificationBadge from 'bigbuffet/components/verification-badge';
|
||||
import { useFeatures } from 'bigbuffet/hooks/useFeatures';
|
||||
import { useFeatures } from 'bigbuffet/hooks/use-features';
|
||||
import { useModalsStore } from 'bigbuffet/stores/modals';
|
||||
import { download } from 'bigbuffet/utils/download';
|
||||
import { shortNumberFormat } from 'bigbuffet/utils/numbers';
|
||||
|
|
|
@ -5,7 +5,7 @@ import Icon from 'bigbuffet/components/icon';
|
|||
import Blurhash from 'bigbuffet/components/media/blurhash';
|
||||
import StillImage from 'bigbuffet/components/still-image';
|
||||
import bigBuffetConfig from 'bigbuffet/config';
|
||||
import { useShowMedia } from 'bigbuffet/hooks/useShowMedia';
|
||||
import { useShowMedia } from 'bigbuffet/hooks/use-show-media';
|
||||
import { isIOS } from 'bigbuffet/is-mobile';
|
||||
|
||||
import type { AccountGalleryAttachment } from 'bigbuffet/pages/account-gallery';
|
||||
|
|
|
@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|||
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import { usePrevious } from 'bigbuffet/hooks/usePrevious';
|
||||
import { usePrevious } from 'bigbuffet/hooks/use-previous';
|
||||
import { useShadowRoot } from 'bigbuffet/shadow-root';
|
||||
|
||||
import type { ModalType } from 'bigbuffet/features/ui/components/modal-root';
|
||||
|
|
|
@ -2,7 +2,7 @@ import { usePoll } from 'pl-hooks';
|
|||
import React from 'react';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
import { useFeatures } from 'bigbuffet/hooks/useFeatures';
|
||||
import { useFeatures } from 'bigbuffet/hooks/use-features';
|
||||
import { useModalsStore } from 'bigbuffet/stores/modals';
|
||||
|
||||
import PollFooter from './poll-footer';
|
||||
|
|
|
@ -4,7 +4,7 @@ import { FormattedMessage } from 'react-intl';
|
|||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import Emoji from 'bigbuffet/components/ui/emoji';
|
||||
import { useFeatures } from 'bigbuffet/hooks/useFeatures';
|
||||
import { useFeatures } from 'bigbuffet/hooks/use-features';
|
||||
import { reduceEmoji } from 'bigbuffet/utils/emoji-reacts';
|
||||
import { shortNumberFormat } from 'bigbuffet/utils/numbers';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import React from 'react';
|
|||
|
||||
import PlaceholderStatus from 'bigbuffet/components/placeholders/placeholder-status';
|
||||
import StatusContainer from 'bigbuffet/containers/status-container';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/useAppSelector';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/use-app-selector';
|
||||
|
||||
interface IThreadStatus {
|
||||
id: string;
|
||||
|
|
|
@ -8,7 +8,7 @@ import PlaceholderStatus from 'bigbuffet/components/placeholders/placeholder-sta
|
|||
import ScrollableList from 'bigbuffet/components/scrollable-list';
|
||||
import Tombstone from 'bigbuffet/components/statuses/tombstone';
|
||||
import { HotKeys } from 'bigbuffet/features/ui/components/hotkeys';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/useAppSelector';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/use-app-selector';
|
||||
import { RootState } from 'bigbuffet/store';
|
||||
import { useModalsStore } from 'bigbuffet/stores/modals';
|
||||
import { useStatusMetaStore } from 'bigbuffet/stores/status-meta';
|
||||
|
|
|
@ -2,7 +2,7 @@ import { useStatusTranslation, useTranslationLanguages, useInstance } from 'pl-h
|
|||
import React from 'react';
|
||||
import { FormattedMessage, useIntl } from 'react-intl';
|
||||
|
||||
import { useFeatures } from 'bigbuffet/hooks/useFeatures';
|
||||
import { useFeatures } from 'bigbuffet/hooks/use-features';
|
||||
import { useStatusMetaStore } from 'bigbuffet/stores/status-meta';
|
||||
|
||||
import Icon from '../icon';
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
import Button from 'bigbuffet/components/ui/button';
|
||||
import { useFeatures } from 'bigbuffet/hooks/useFeatures';
|
||||
import { useFeatures } from 'bigbuffet/hooks/use-features';
|
||||
import { useModalsStore } from 'bigbuffet/stores/modals';
|
||||
|
||||
import type { UseAccountData as Account } from 'pl-hooks';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
|
||||
import StatusList, { IStatusList } from 'bigbuffet/components/statuses/status-list';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/useAppSelector';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/use-app-selector';
|
||||
|
||||
interface ITimeline extends Omit<IStatusList, 'statusIds' | 'isLoading' | 'hasMore'> {
|
||||
/** ID of the timeline in Redux. */
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Switch, Redirect } from 'react-router-dom';
|
|||
|
||||
// import { register as registerPushNotifications } from 'bigbuffet/actions/push-notifications';
|
||||
import Layout from 'bigbuffet/components/ui/layout';
|
||||
import { useFeatures } from 'bigbuffet/hooks/useFeatures';
|
||||
import { useFeatures } from 'bigbuffet/hooks/use-features';
|
||||
import DefaultLayout from 'bigbuffet/layouts/default-layout';
|
||||
import EventLayout from 'bigbuffet/layouts/event-layout';
|
||||
import ProfileLayout from 'bigbuffet/layouts/profile-layout';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
|
||||
import Search from 'bigbuffet/components/search-bar';
|
||||
import { useBreakpoint, BREAKPOINT_TO_INDEX } from 'bigbuffet/hooks/useBreakpoint';
|
||||
import { useBreakpoint, BREAKPOINT_TO_INDEX } from 'bigbuffet/hooks/use-breakpoint';
|
||||
import AccountDirectoryPanel from 'bigbuffet/panels/account-directory-panel';
|
||||
import HashtagsPanel from 'bigbuffet/panels/hashtags-panel';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import Search from 'bigbuffet/components/search-bar';
|
|||
import Column from 'bigbuffet/components/ui/column';
|
||||
import Tabs from 'bigbuffet/components/ui/tabs';
|
||||
import { EventHeader } from 'bigbuffet/features/ui/util/async-components';
|
||||
import { useBreakpoint, BREAKPOINT_TO_INDEX } from 'bigbuffet/hooks/useBreakpoint';
|
||||
import { useBreakpoint, BREAKPOINT_TO_INDEX } from 'bigbuffet/hooks/use-breakpoint';
|
||||
import AccountDirectoryPanel from 'bigbuffet/panels/account-directory-panel';
|
||||
|
||||
interface IEventLayout {
|
||||
|
|
|
@ -10,7 +10,7 @@ import Column from 'bigbuffet/components/ui/column';
|
|||
import Tabs from 'bigbuffet/components/ui/tabs';
|
||||
import bigBuffetConfig from 'bigbuffet/config';
|
||||
import { ProfileInfoPanel } from 'bigbuffet/features/ui/util/async-components';
|
||||
import { BREAKPOINT_TO_INDEX, useBreakpoint } from 'bigbuffet/hooks/useBreakpoint';
|
||||
import { BREAKPOINT_TO_INDEX, useBreakpoint } from 'bigbuffet/hooks/use-breakpoint';
|
||||
import AccountDirectoryPanel from 'bigbuffet/panels/account-directory-panel';
|
||||
import HashtagsPanel from 'bigbuffet/panels/hashtags-panel';
|
||||
import { getAcct } from 'bigbuffet/utils/accounts';
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import Modal from 'bigbuffet/components/ui/modal';
|
||||
import { useFeatures } from 'bigbuffet/hooks/useFeatures';
|
||||
import { useFeatures } from 'bigbuffet/hooks/use-features';
|
||||
|
||||
import type { BaseModalProps } from 'bigbuffet/features/ui/components/modal-root';
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ import PlaceholderStatus from 'bigbuffet/components/placeholders/placeholder-sta
|
|||
import Thread from 'bigbuffet/components/statuses/thread';
|
||||
import IconButton from 'bigbuffet/components/ui/icon-button';
|
||||
import ImageLoader from 'bigbuffet/features/ui/components/image-loader';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/useAppDispatch';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/use-app-dispatch';
|
||||
import { isUserTouching } from 'bigbuffet/is-mobile';
|
||||
|
||||
import type { BaseModalProps } from 'bigbuffet/features/ui/components/modal-root';
|
||||
|
|
|
@ -7,7 +7,7 @@ import ScrollableList from 'bigbuffet/components/scrollable-list';
|
|||
import Modal from 'bigbuffet/components/ui/modal';
|
||||
import Spinner from 'bigbuffet/components/ui/spinner';
|
||||
import AccountContainer from 'bigbuffet/containers/account-container';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/useAppDispatch';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/use-app-dispatch';
|
||||
|
||||
import type { BaseModalProps } from 'bigbuffet/features/ui/components/modal-root';
|
||||
|
||||
|
|
|
@ -10,8 +10,8 @@ import MediaItem from 'bigbuffet/components/media/media-item';
|
|||
import MissingIndicator from 'bigbuffet/components/missing-indicator';
|
||||
import Column from 'bigbuffet/components/ui/column';
|
||||
import Spinner from 'bigbuffet/components/ui/spinner';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/useAppSelector';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/use-app-dispatch';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/use-app-selector';
|
||||
import { useModalsStore } from 'bigbuffet/stores/modals';
|
||||
|
||||
import type { MediaAttachment } from 'pl-api';
|
||||
|
|
|
@ -6,8 +6,8 @@ import { fetchAccountTimeline } from 'bigbuffet/actions/timelines';
|
|||
import MissingIndicator from 'bigbuffet/components/missing-indicator';
|
||||
import StatusList from 'bigbuffet/components/statuses/status-list';
|
||||
import Spinner from 'bigbuffet/components/ui/spinner';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/useAppSelector';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/use-app-dispatch';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/use-app-selector';
|
||||
|
||||
interface IHashtagTimeline {
|
||||
params: {
|
||||
|
|
|
@ -6,8 +6,8 @@ import { fetchAccountTimeline } from 'bigbuffet/actions/timelines';
|
|||
import MissingIndicator from 'bigbuffet/components/missing-indicator';
|
||||
import StatusList from 'bigbuffet/components/statuses/status-list';
|
||||
import Spinner from 'bigbuffet/components/ui/spinner';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/useAppSelector';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/use-app-dispatch';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/use-app-selector';
|
||||
|
||||
interface IAccountTimeline {
|
||||
params: {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|||
|
||||
import { fetchPublicTimeline } from 'bigbuffet/actions/timelines';
|
||||
import Column from 'bigbuffet/components/ui/column';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/useAppDispatch';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/use-app-dispatch';
|
||||
|
||||
import Timeline from '../features/ui/components/timeline';
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@ import ScrollableList from 'bigbuffet/components/scrollable-list';
|
|||
import { getDescendantsIds } from 'bigbuffet/components/statuses/thread';
|
||||
import ThreadStatus from 'bigbuffet/components/statuses/thread-status';
|
||||
import Tombstone from 'bigbuffet/components/statuses/tombstone';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/useAppSelector';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/use-app-dispatch';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/use-app-selector';
|
||||
|
||||
import type { MediaAttachment } from 'pl-api';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import Icon from 'bigbuffet/components/icon';
|
|||
import Column from 'bigbuffet/components/ui/column';
|
||||
import bigBuffetConfig from 'bigbuffet/config';
|
||||
import Timeline from 'bigbuffet/features/ui/components/timeline';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/useAppDispatch';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/use-app-dispatch';
|
||||
|
||||
const messages = defineMessages({
|
||||
empty: { id: 'empty_column.hashtag', defaultMessage: 'There is nothing in this hashtag yet.' },
|
||||
|
|
|
@ -7,8 +7,8 @@ import { fetchContext } from 'bigbuffet/actions/statuses';
|
|||
import MissingIndicator from 'bigbuffet/components/missing-indicator';
|
||||
import PlaceholderStatus from 'bigbuffet/components/placeholders/placeholder-status';
|
||||
import Column from 'bigbuffet/components/ui/column';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/useAppDispatch';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/useAppSelector';
|
||||
import { useAppDispatch } from 'bigbuffet/hooks/use-app-dispatch';
|
||||
import { useAppSelector } from 'bigbuffet/hooks/use-app-selector';
|
||||
|
||||
import Thread, { getAncestorsIds, getDescendantsIds } from '../components/statuses/thread';
|
||||
|
||||
|
|
24
yarn.lock
24
yarn.lock
|
@ -4439,6 +4439,11 @@ isomorphic-dompurify@^2.16.0:
|
|||
dompurify "^3.1.7"
|
||||
jsdom "^25.0.1"
|
||||
|
||||
isows@^1.0.6:
|
||||
version "1.0.6"
|
||||
resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.6.tgz#0da29d706fa51551c663c627ace42769850f86e7"
|
||||
integrity sha512-lPHCayd40oW98/I0uvgaHKWCSvkzY27LjWLbtzOm64yQ+G3Q5npjjbdppU65iZXkK1Zt+kH9pfegli0AYfwYYw==
|
||||
|
||||
iterator.prototype@^1.1.3:
|
||||
version "1.1.3"
|
||||
resolved "https://registry.yarnpkg.com/iterator.prototype/-/iterator.prototype-1.1.3.tgz#016c2abe0be3bbdb8319852884f60908ac62bf9c"
|
||||
|
@ -5390,13 +5395,14 @@ pirates@^4.0.1:
|
|||
resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9"
|
||||
integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==
|
||||
|
||||
pl-api@^0.1.13:
|
||||
version "0.1.13"
|
||||
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.1.13.tgz#1d3ac8a9bbb28ee438f3160151d8a49c90d4fd59"
|
||||
integrity sha512-1evbdXQW8Co6B0IxrOsubcDtXibbSU3Ofvuo6c0UZG4NjSHBWNmBEiq8VxDOOvwWn45HT6NmgqL73X0Agts6Kg==
|
||||
pl-api@^1.0.0-rc.1:
|
||||
version "1.0.0-rc.1"
|
||||
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-1.0.0-rc.1.tgz#e5b1ead42230ed86e57ebaf020f3a2114da3bce0"
|
||||
integrity sha512-bwV831HoATajRlmZg4USIzQvHgZC9MBAg0/sN/T5uXrM5tcUzfM+qU5ZQIzk+r5gSQ0ZCwqkjbajvhbn9tRcBA==
|
||||
dependencies:
|
||||
blurhash "^2.0.5"
|
||||
http-link-header "^1.1.3"
|
||||
isows "^1.0.6"
|
||||
lodash.omit "^4.5.0"
|
||||
lodash.pick "^4.4.0"
|
||||
object-to-formdata "^4.5.1"
|
||||
|
@ -5404,14 +5410,14 @@ pl-api@^0.1.13:
|
|||
semver "^7.6.3"
|
||||
valibot "^0.42.1"
|
||||
|
||||
pl-hooks@^0.0.5:
|
||||
version "0.0.5"
|
||||
resolved "https://registry.yarnpkg.com/pl-hooks/-/pl-hooks-0.0.5.tgz#d2cae111c76595f35888d6ebc3db6299224df120"
|
||||
integrity sha512-sYUzbv4ajuQvehjhBq8osQx/wI8AxWXZLwMXsRbHwKmWF2vf5MaciEWrHZOHV45uOjyn88NbQB7WHttgOkGjTA==
|
||||
pl-hooks@^0.0.6:
|
||||
version "0.0.6"
|
||||
resolved "https://registry.yarnpkg.com/pl-hooks/-/pl-hooks-0.0.6.tgz#b27f8956427d06a4ca00fcacb7d39e2b9ec9cb34"
|
||||
integrity sha512-g3qIs1VRYizpCDrJtwoz72vYWt8U+oZgAAUymq0AkczjpYXRdGs1FUfLSKgMXRTsuHxjAg88EbdxMHDKIfCpSQ==
|
||||
dependencies:
|
||||
"@tanstack/react-query" "^5.59.16"
|
||||
lodash "^4.17.21"
|
||||
pl-api "^0.1.13"
|
||||
pl-api "^1.0.0-rc.1"
|
||||
react "^18.3.1"
|
||||
valibot "^0.42.1"
|
||||
|
||||
|
|
Loading…
Reference in a new issue