kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
import from 'soapbox/…
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>environments/review-develop-3zknud/deployments/125^2
rodzic
beb7b8e713
commit
7a35aa727b
|
@ -1,8 +1,7 @@
|
||||||
import { createPushSubsription, updatePushSubscription } from 'soapbox/actions/push_subscriptions';
|
import { createPushSubsription, updatePushSubscription } from 'soapbox/actions/push_subscriptions';
|
||||||
|
import { pushNotificationsSetting } from 'soapbox/settings';
|
||||||
import { getVapidKey } from 'soapbox/utils/auth';
|
import { getVapidKey } from 'soapbox/utils/auth';
|
||||||
|
import { decode as decodeBase64 } from 'soapbox/utils/base64';
|
||||||
import { pushNotificationsSetting } from '../../settings';
|
|
||||||
import { decode as decodeBase64 } from '../../utils/base64';
|
|
||||||
|
|
||||||
import { setBrowserSupport, setSubscription, clearSubscription } from './setter';
|
import { setBrowserSupport, setSubscription, clearSubscription } from './setter';
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ import {
|
||||||
fetchAccountByUsername,
|
fetchAccountByUsername,
|
||||||
} from 'soapbox/actions/accounts';
|
} from 'soapbox/actions/accounts';
|
||||||
import { openModal } from 'soapbox/actions/modals';
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
|
import { expandAccountMediaTimeline } from 'soapbox/actions/timelines';
|
||||||
import LoadMore from 'soapbox/components/load_more';
|
import LoadMore from 'soapbox/components/load_more';
|
||||||
import MissingIndicator from 'soapbox/components/missing_indicator';
|
import MissingIndicator from 'soapbox/components/missing_indicator';
|
||||||
import { Column } from 'soapbox/components/ui';
|
import { Column } from 'soapbox/components/ui';
|
||||||
|
@ -17,8 +18,6 @@ import { Spinner } from 'soapbox/components/ui';
|
||||||
import { getAccountGallery, findAccountByUsername } from 'soapbox/selectors';
|
import { getAccountGallery, findAccountByUsername } from 'soapbox/selectors';
|
||||||
import { getFeatures } from 'soapbox/utils/features';
|
import { getFeatures } from 'soapbox/utils/features';
|
||||||
|
|
||||||
import { expandAccountMediaTimeline } from '../../actions/timelines';
|
|
||||||
|
|
||||||
import MediaItem from './components/media_item';
|
import MediaItem from './components/media_item';
|
||||||
|
|
||||||
const mapStateToProps = (state, { params, withReplies = false }) => {
|
const mapStateToProps = (state, { params, withReplies = false }) => {
|
||||||
|
|
|
@ -6,18 +6,17 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
|
import { fetchAccount, fetchAccountByUsername } from 'soapbox/actions/accounts';
|
||||||
|
import { fetchPatronAccount } from 'soapbox/actions/patron';
|
||||||
import { getSettings } from 'soapbox/actions/settings';
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
import { getSoapboxConfig } from 'soapbox/actions/soapbox';
|
import { getSoapboxConfig } from 'soapbox/actions/soapbox';
|
||||||
|
import { expandAccountFeaturedTimeline, expandAccountTimeline } from 'soapbox/actions/timelines';
|
||||||
import MissingIndicator from 'soapbox/components/missing_indicator';
|
import MissingIndicator from 'soapbox/components/missing_indicator';
|
||||||
|
import StatusList from 'soapbox/components/status_list';
|
||||||
|
import { Card, CardBody, Spinner, Text } from 'soapbox/components/ui';
|
||||||
import { makeGetStatusIds, findAccountByUsername } from 'soapbox/selectors';
|
import { makeGetStatusIds, findAccountByUsername } from 'soapbox/selectors';
|
||||||
import { getFeatures } from 'soapbox/utils/features';
|
import { getFeatures } from 'soapbox/utils/features';
|
||||||
|
|
||||||
import { fetchAccount, fetchAccountByUsername } from '../../actions/accounts';
|
|
||||||
import { fetchPatronAccount } from '../../actions/patron';
|
|
||||||
import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines';
|
|
||||||
import StatusList from '../../components/status_list';
|
|
||||||
import { Card, CardBody, Spinner, Text } from '../../components/ui';
|
|
||||||
|
|
||||||
const makeMapStateToProps = () => {
|
const makeMapStateToProps = () => {
|
||||||
const getStatusIds = makeGetStatusIds();
|
const getStatusIds = makeGetStatusIds();
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,12 @@ import React from 'react';
|
||||||
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
|
import { fetchBookmarkedStatuses, expandBookmarkedStatuses } from 'soapbox/actions/bookmarks';
|
||||||
|
import StatusList from 'soapbox/components/status_list';
|
||||||
import SubNavigation from 'soapbox/components/sub_navigation';
|
import SubNavigation from 'soapbox/components/sub_navigation';
|
||||||
import { Column } from 'soapbox/components/ui';
|
import { Column } from 'soapbox/components/ui';
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
import { useAppSelector } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { fetchBookmarkedStatuses, expandBookmarkedStatuses } from '../../actions/bookmarks';
|
|
||||||
import StatusList from '../../components/status_list';
|
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
heading: { id: 'column.bookmarks', defaultMessage: 'Bookmarks' },
|
heading: { id: 'column.bookmarks', defaultMessage: 'Bookmarks' },
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,11 +4,11 @@ import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { getSettings } from 'soapbox/actions/settings';
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
|
import { connectCommunityStream } from 'soapbox/actions/streaming';
|
||||||
|
import { expandCommunityTimeline } from 'soapbox/actions/timelines';
|
||||||
import SubNavigation from 'soapbox/components/sub_navigation';
|
import SubNavigation from 'soapbox/components/sub_navigation';
|
||||||
|
import { Column } from 'soapbox/components/ui';
|
||||||
|
|
||||||
import { connectCommunityStream } from '../../actions/streaming';
|
|
||||||
import { expandCommunityTimeline } from '../../actions/timelines';
|
|
||||||
import { Column } from '../../components/ui';
|
|
||||||
import StatusListContainer from '../ui/containers/status_list_container';
|
import StatusListContainer from '../ui/containers/status_list_container';
|
||||||
|
|
||||||
import ColumnSettings from './containers/column_settings_container';
|
import ColumnSettings from './containers/column_settings_container';
|
||||||
|
|
|
@ -8,12 +8,12 @@ import { defineMessages, FormattedMessage } from 'react-intl';
|
||||||
import { Link, withRouter } from 'react-router-dom';
|
import { Link, withRouter } from 'react-router-dom';
|
||||||
import { length } from 'stringz';
|
import { length } from 'stringz';
|
||||||
|
|
||||||
|
import AutosuggestInput from 'soapbox/components/autosuggest_input';
|
||||||
|
import AutosuggestTextarea from 'soapbox/components/autosuggest_textarea';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
import { Button } from 'soapbox/components/ui';
|
||||||
|
import { isMobile } from 'soapbox/is_mobile';
|
||||||
|
|
||||||
import AutosuggestInput from '../../../components/autosuggest_input';
|
|
||||||
import AutosuggestTextarea from '../../../components/autosuggest_textarea';
|
|
||||||
import { Button } from '../../../components/ui';
|
|
||||||
import { isMobile } from '../../../is_mobile';
|
|
||||||
import ReplyMentions from '../components/reply_mentions';
|
import ReplyMentions from '../components/reply_mentions';
|
||||||
import UploadForm from '../components/upload_form';
|
import UploadForm from '../components/upload_form';
|
||||||
import Warning from '../components/warning';
|
import Warning from '../components/warning';
|
||||||
|
|
|
@ -7,8 +7,8 @@ import spring from 'react-motion/lib/spring';
|
||||||
import Overlay from 'react-overlays/lib/Overlay';
|
import Overlay from 'react-overlays/lib/Overlay';
|
||||||
|
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
import { IconButton } from 'soapbox/components/ui';
|
||||||
|
|
||||||
import { IconButton } from '../../../components/ui';
|
|
||||||
import Motion from '../../ui/util/optional_motion';
|
import Motion from '../../ui/util/optional_motion';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
|
|
|
@ -6,8 +6,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import AttachmentThumbs from 'soapbox/components/attachment-thumbs';
|
import AttachmentThumbs from 'soapbox/components/attachment-thumbs';
|
||||||
import { Stack, Text } from 'soapbox/components/ui';
|
import { Stack, Text } from 'soapbox/components/ui';
|
||||||
import AccountContainer from 'soapbox/containers/account_container';
|
import AccountContainer from 'soapbox/containers/account_container';
|
||||||
|
import { isRtl } from 'soapbox/rtl';
|
||||||
import { isRtl } from '../../../rtl';
|
|
||||||
|
|
||||||
export default class ReplyIndicator extends ImmutablePureComponent {
|
export default class ReplyIndicator extends ImmutablePureComponent {
|
||||||
|
|
||||||
|
|
|
@ -6,16 +6,15 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
import { defineMessages, injectIntl } from 'react-intl';
|
import { defineMessages, injectIntl } from 'react-intl';
|
||||||
|
|
||||||
|
import Hashtag from 'soapbox/components/hashtag';
|
||||||
import ScrollableList from 'soapbox/components/scrollable_list';
|
import ScrollableList from 'soapbox/components/scrollable_list';
|
||||||
|
import { Tabs } from 'soapbox/components/ui';
|
||||||
|
import AccountContainer from 'soapbox/containers/account_container';
|
||||||
|
import StatusContainer from 'soapbox/containers/status_container';
|
||||||
import PlaceholderAccount from 'soapbox/features/placeholder/components/placeholder_account';
|
import PlaceholderAccount from 'soapbox/features/placeholder/components/placeholder_account';
|
||||||
import PlaceholderHashtag from 'soapbox/features/placeholder/components/placeholder_hashtag';
|
import PlaceholderHashtag from 'soapbox/features/placeholder/components/placeholder_hashtag';
|
||||||
import PlaceholderStatus from 'soapbox/features/placeholder/components/placeholder_status';
|
import PlaceholderStatus from 'soapbox/features/placeholder/components/placeholder_status';
|
||||||
|
|
||||||
import Hashtag from '../../../components/hashtag';
|
|
||||||
import { Tabs } from '../../../components/ui';
|
|
||||||
import AccountContainer from '../../../containers/account_container';
|
|
||||||
import StatusContainer from '../../../containers/status_container';
|
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
accounts: { id: 'search_results.accounts', defaultMessage: 'People' },
|
accounts: { id: 'search_results.accounts', defaultMessage: 'People' },
|
||||||
statuses: { id: 'search_results.statuses', defaultMessage: 'Posts' },
|
statuses: { id: 'search_results.statuses', defaultMessage: 'Posts' },
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
|
import { expandSearch, setFilter } from 'soapbox/actions/search';
|
||||||
|
import { fetchSuggestions, dismissSuggestion } from 'soapbox/actions/suggestions';
|
||||||
import { fetchTrendingStatuses } from 'soapbox/actions/trending_statuses';
|
import { fetchTrendingStatuses } from 'soapbox/actions/trending_statuses';
|
||||||
import { getFeatures } from 'soapbox/utils/features';
|
import { getFeatures } from 'soapbox/utils/features';
|
||||||
|
|
||||||
import { expandSearch, setFilter } from '../../../actions/search';
|
|
||||||
import { fetchSuggestions, dismissSuggestion } from '../../../actions/suggestions';
|
|
||||||
import SearchResults from '../components/search_results';
|
import SearchResults from '../components/search_results';
|
||||||
|
|
||||||
const mapStateToProps = state => {
|
const mapStateToProps = state => {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import { debounce } from 'lodash';
|
import { debounce } from 'lodash';
|
||||||
import React from 'react';
|
import React, { useRef } from 'react';
|
||||||
import { useRef } from 'react';
|
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
import { expandConversations } from 'soapbox/actions/conversations';
|
import { expandConversations } from 'soapbox/actions/conversations';
|
||||||
|
|
|
@ -8,12 +8,11 @@ import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { createApp } from 'soapbox/actions/apps';
|
import { createApp } from 'soapbox/actions/apps';
|
||||||
import { obtainOAuthToken } from 'soapbox/actions/oauth';
|
import { obtainOAuthToken } from 'soapbox/actions/oauth';
|
||||||
|
import { Button, Form, FormActions, FormGroup, Input, Stack, Text, Textarea } from 'soapbox/components/ui';
|
||||||
import Column from 'soapbox/features/ui/components/column';
|
import Column from 'soapbox/features/ui/components/column';
|
||||||
import { getBaseURL } from 'soapbox/utils/accounts';
|
import { getBaseURL } from 'soapbox/utils/accounts';
|
||||||
import { getFeatures } from 'soapbox/utils/features';
|
import { getFeatures } from 'soapbox/utils/features';
|
||||||
|
|
||||||
import { Button, Form, FormActions, FormGroup, Input, Stack, Text, Textarea } from '../../../components/ui';
|
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
heading: { id: 'column.app_create', defaultMessage: 'Create app' },
|
heading: { id: 'column.app_create', defaultMessage: 'Create app' },
|
||||||
namePlaceholder: { id: 'app_create.name_placeholder', defaultMessage: 'e.g. \'Soapbox\'' },
|
namePlaceholder: { id: 'app_create.name_placeholder', defaultMessage: 'e.g. \'Soapbox\'' },
|
||||||
|
|
|
@ -8,10 +8,9 @@ import { connect } from 'react-redux';
|
||||||
import { showAlertForError } from 'soapbox/actions/alerts';
|
import { showAlertForError } from 'soapbox/actions/alerts';
|
||||||
import { patchMe } from 'soapbox/actions/me';
|
import { patchMe } from 'soapbox/actions/me';
|
||||||
import { FE_NAME, SETTINGS_UPDATE } from 'soapbox/actions/settings';
|
import { FE_NAME, SETTINGS_UPDATE } from 'soapbox/actions/settings';
|
||||||
|
import { Button, Form, FormActions, FormGroup, Textarea } from 'soapbox/components/ui';
|
||||||
import Column from 'soapbox/features/ui/components/column';
|
import Column from 'soapbox/features/ui/components/column';
|
||||||
|
|
||||||
import { Button, Form, FormActions, FormGroup, Textarea } from '../../components/ui';
|
|
||||||
|
|
||||||
const isJSONValid = text => {
|
const isJSONValid = text => {
|
||||||
try {
|
try {
|
||||||
JSON.parse(text);
|
JSON.parse(text);
|
||||||
|
|
|
@ -6,13 +6,12 @@ import { patchMe } from 'soapbox/actions/me';
|
||||||
import snackbar from 'soapbox/actions/snackbar';
|
import snackbar from 'soapbox/actions/snackbar';
|
||||||
import BirthdayInput from 'soapbox/components/birthday_input';
|
import BirthdayInput from 'soapbox/components/birthday_input';
|
||||||
import List, { ListItem } from 'soapbox/components/list';
|
import List, { ListItem } from 'soapbox/components/list';
|
||||||
|
import { Button, Column, Form, FormActions, FormGroup, Input, Textarea, HStack, Toggle, FileInput } from 'soapbox/components/ui';
|
||||||
|
import Streamfield, { StreamfieldComponent } from 'soapbox/components/ui/streamfield/streamfield';
|
||||||
import { useAppSelector, useAppDispatch, useOwnAccount, useFeatures } from 'soapbox/hooks';
|
import { useAppSelector, useAppDispatch, useOwnAccount, useFeatures } from 'soapbox/hooks';
|
||||||
import { normalizeAccount } from 'soapbox/normalizers';
|
import { normalizeAccount } from 'soapbox/normalizers';
|
||||||
import resizeImage from 'soapbox/utils/resize_image';
|
import resizeImage from 'soapbox/utils/resize_image';
|
||||||
|
|
||||||
import { Button, Column, Form, FormActions, FormGroup, Input, Textarea, HStack, Toggle, FileInput } from '../../components/ui';
|
|
||||||
import Streamfield, { StreamfieldComponent } from '../../components/ui/streamfield/streamfield';
|
|
||||||
|
|
||||||
import ProfilePreview from './components/profile-preview';
|
import ProfilePreview from './components/profile-preview';
|
||||||
|
|
||||||
import type { Account } from 'soapbox/types/entities';
|
import type { Account } from 'soapbox/types/entities';
|
||||||
|
|
|
@ -6,14 +6,14 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
|
import { fetchAccount, fetchAccountByUsername } from 'soapbox/actions/accounts';
|
||||||
|
import { fetchFavouritedStatuses, expandFavouritedStatuses, fetchAccountFavouritedStatuses, expandAccountFavouritedStatuses } from 'soapbox/actions/favourites';
|
||||||
import MissingIndicator from 'soapbox/components/missing_indicator';
|
import MissingIndicator from 'soapbox/components/missing_indicator';
|
||||||
|
import StatusList from 'soapbox/components/status_list';
|
||||||
import { Spinner } from 'soapbox/components/ui';
|
import { Spinner } from 'soapbox/components/ui';
|
||||||
import { findAccountByUsername } from 'soapbox/selectors';
|
import { findAccountByUsername } from 'soapbox/selectors';
|
||||||
import { getFeatures } from 'soapbox/utils/features';
|
import { getFeatures } from 'soapbox/utils/features';
|
||||||
|
|
||||||
import { fetchAccount, fetchAccountByUsername } from '../../actions/accounts';
|
|
||||||
import { fetchFavouritedStatuses, expandFavouritedStatuses, fetchAccountFavouritedStatuses, expandAccountFavouritedStatuses } from '../../actions/favourites';
|
|
||||||
import StatusList from '../../components/status_list';
|
|
||||||
import Column from '../ui/components/column';
|
import Column from '../ui/components/column';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
|
|
|
@ -6,20 +6,20 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import MissingIndicator from 'soapbox/components/missing_indicator';
|
|
||||||
import { Spinner } from 'soapbox/components/ui';
|
|
||||||
import { findAccountByUsername } from 'soapbox/selectors';
|
|
||||||
import { getFollowDifference } from 'soapbox/utils/accounts';
|
|
||||||
import { getFeatures } from 'soapbox/utils/features';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
fetchAccount,
|
fetchAccount,
|
||||||
fetchFollowers,
|
fetchFollowers,
|
||||||
expandFollowers,
|
expandFollowers,
|
||||||
fetchAccountByUsername,
|
fetchAccountByUsername,
|
||||||
} from '../../actions/accounts';
|
} from 'soapbox/actions/accounts';
|
||||||
import ScrollableList from '../../components/scrollable_list';
|
import MissingIndicator from 'soapbox/components/missing_indicator';
|
||||||
import AccountContainer from '../../containers/account_container';
|
import ScrollableList from 'soapbox/components/scrollable_list';
|
||||||
|
import { Spinner } from 'soapbox/components/ui';
|
||||||
|
import AccountContainer from 'soapbox/containers/account_container';
|
||||||
|
import { findAccountByUsername } from 'soapbox/selectors';
|
||||||
|
import { getFollowDifference } from 'soapbox/utils/accounts';
|
||||||
|
import { getFeatures } from 'soapbox/utils/features';
|
||||||
|
|
||||||
import Column from '../ui/components/column';
|
import Column from '../ui/components/column';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
|
|
|
@ -6,20 +6,20 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import MissingIndicator from 'soapbox/components/missing_indicator';
|
|
||||||
import { Spinner } from 'soapbox/components/ui';
|
|
||||||
import { findAccountByUsername } from 'soapbox/selectors';
|
|
||||||
import { getFollowDifference } from 'soapbox/utils/accounts';
|
|
||||||
import { getFeatures } from 'soapbox/utils/features';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
fetchAccount,
|
fetchAccount,
|
||||||
fetchFollowing,
|
fetchFollowing,
|
||||||
expandFollowing,
|
expandFollowing,
|
||||||
fetchAccountByUsername,
|
fetchAccountByUsername,
|
||||||
} from '../../actions/accounts';
|
} from 'soapbox/actions/accounts';
|
||||||
import ScrollableList from '../../components/scrollable_list';
|
import MissingIndicator from 'soapbox/components/missing_indicator';
|
||||||
import AccountContainer from '../../containers/account_container';
|
import ScrollableList from 'soapbox/components/scrollable_list';
|
||||||
|
import { Spinner } from 'soapbox/components/ui';
|
||||||
|
import AccountContainer from 'soapbox/containers/account_container';
|
||||||
|
import { findAccountByUsername } from 'soapbox/selectors';
|
||||||
|
import { getFollowDifference } from 'soapbox/utils/accounts';
|
||||||
|
import { getFeatures } from 'soapbox/utils/features';
|
||||||
|
|
||||||
import Column from '../ui/components/column';
|
import Column from '../ui/components/column';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
|
import { Button, Card, CardBody, Stack, Text } from 'soapbox/components/ui';
|
||||||
import VerificationBadge from 'soapbox/components/verification_badge';
|
import VerificationBadge from 'soapbox/components/verification_badge';
|
||||||
import RegistrationForm from 'soapbox/features/auth_login/components/registration_form';
|
import RegistrationForm from 'soapbox/features/auth_login/components/registration_form';
|
||||||
import { useAppSelector, useFeatures, useSoapboxConfig } from 'soapbox/hooks';
|
import { useAppSelector, useFeatures, useSoapboxConfig } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { Button, Card, CardBody, Stack, Text } from '../../components/ui';
|
|
||||||
|
|
||||||
const LandingPage = () => {
|
const LandingPage = () => {
|
||||||
const features = useFeatures();
|
const features = useFeatures();
|
||||||
const soapboxConfig = useSoapboxConfig();
|
const soapboxConfig = useSoapboxConfig();
|
||||||
|
|
|
@ -5,10 +5,9 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { defineMessages, injectIntl } from 'react-intl';
|
import { defineMessages, injectIntl } from 'react-intl';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
|
import { removeFromListAdder, addToListAdder } from 'soapbox/actions/lists';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
import IconButton from 'soapbox/components/icon_button';
|
||||||
import { removeFromListAdder, addToListAdder } from '../../../actions/lists';
|
|
||||||
import IconButton from '../../../components/icon_button';
|
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
remove: { id: 'lists.account.remove', defaultMessage: 'Remove from list' },
|
remove: { id: 'lists.account.remove', defaultMessage: 'Remove from list' },
|
||||||
|
|
|
@ -4,11 +4,10 @@ import React from 'react';
|
||||||
import { defineMessages, injectIntl } from 'react-intl';
|
import { defineMessages, injectIntl } from 'react-intl';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
|
import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from 'soapbox/actions/lists';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
import { Button } from 'soapbox/components/ui';
|
import { Button } from 'soapbox/components/ui';
|
||||||
|
|
||||||
import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists';
|
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
search: { id: 'lists.search', defaultMessage: 'Search among people you follow' },
|
search: { id: 'lists.search', defaultMessage: 'Search among people you follow' },
|
||||||
searchTitle: { id: 'tabs_bar.search', defaultMessage: 'Search' },
|
searchTitle: { id: 'tabs_bar.search', defaultMessage: 'Search' },
|
||||||
|
|
|
@ -3,8 +3,7 @@ import React from 'react';
|
||||||
import { defineMessages, injectIntl } from 'react-intl';
|
import { defineMessages, injectIntl } from 'react-intl';
|
||||||
|
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
import { Tabs } from 'soapbox/components/ui';
|
||||||
import { Tabs } from '../../../components/ui';
|
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
all: { id: 'notifications.filter.all', defaultMessage: 'All' },
|
all: { id: 'notifications.filter.all', defaultMessage: 'All' },
|
||||||
|
|
|
@ -4,14 +4,13 @@ import { defineMessages, FormattedMessage, IntlShape, MessageDescriptor } from '
|
||||||
import { useIntl } from 'react-intl';
|
import { useIntl } from 'react-intl';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
|
|
||||||
|
import Icon from 'soapbox/components/icon';
|
||||||
|
import Permalink from 'soapbox/components/permalink';
|
||||||
|
import { HStack, Text, Emoji } from 'soapbox/components/ui';
|
||||||
|
import AccountContainer from 'soapbox/containers/account_container';
|
||||||
|
import StatusContainer from 'soapbox/containers/status_container';
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
import { useAppSelector } from 'soapbox/hooks';
|
||||||
|
|
||||||
import Icon from '../../../components/icon';
|
|
||||||
import Permalink from '../../../components/permalink';
|
|
||||||
import { HStack, Text, Emoji } from '../../../components/ui';
|
|
||||||
import AccountContainer from '../../../containers/account_container';
|
|
||||||
import StatusContainer from '../../../containers/status_container';
|
|
||||||
|
|
||||||
import type { History } from 'history';
|
import type { History } from 'history';
|
||||||
import type { ScrollPosition } from 'soapbox/components/status';
|
import type { ScrollPosition } from 'soapbox/components/status';
|
||||||
import type { NotificationType } from 'soapbox/normalizers/notification';
|
import type { NotificationType } from 'soapbox/normalizers/notification';
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import { defineMessages, injectIntl } from 'react-intl';
|
import { defineMessages, injectIntl } from 'react-intl';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
|
import { setFilter } from 'soapbox/actions/notifications';
|
||||||
|
import { clearNotifications } from 'soapbox/actions/notifications';
|
||||||
|
import { changeAlerts as changePushNotifications } from 'soapbox/actions/push_notifications';
|
||||||
|
import { getSettings, changeSetting } from 'soapbox/actions/settings';
|
||||||
import { getFeatures } from 'soapbox/utils/features';
|
import { getFeatures } from 'soapbox/utils/features';
|
||||||
|
|
||||||
import { openModal } from '../../../actions/modals';
|
|
||||||
import { setFilter } from '../../../actions/notifications';
|
|
||||||
import { clearNotifications } from '../../../actions/notifications';
|
|
||||||
import { changeAlerts as changePushNotifications } from '../../../actions/push_notifications';
|
|
||||||
import { getSettings, changeSetting } from '../../../actions/settings';
|
|
||||||
import ColumnSettings from '../components/column_settings';
|
import ColumnSettings from '../components/column_settings';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
|
import { setFilter } from 'soapbox/actions/notifications';
|
||||||
import { getSettings } from 'soapbox/actions/settings';
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
import { getFeatures } from 'soapbox/utils/features';
|
import { getFeatures } from 'soapbox/utils/features';
|
||||||
|
|
||||||
import { setFilter } from '../../../actions/notifications';
|
|
||||||
import FilterBar from '../components/filter_bar';
|
import FilterBar from '../components/filter_bar';
|
||||||
|
|
||||||
const makeMapStateToProps = state => {
|
const makeMapStateToProps = state => {
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { getSettings } from 'soapbox/actions/settings';
|
import { mentionCompose } from 'soapbox/actions/compose';
|
||||||
|
|
||||||
import { mentionCompose } from '../../../actions/compose';
|
|
||||||
import {
|
import {
|
||||||
reblog,
|
reblog,
|
||||||
favourite,
|
favourite,
|
||||||
unreblog,
|
unreblog,
|
||||||
unfavourite,
|
unfavourite,
|
||||||
} from '../../../actions/interactions';
|
} from 'soapbox/actions/interactions';
|
||||||
import { openModal } from '../../../actions/modals';
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
import {
|
import {
|
||||||
hideStatus,
|
hideStatus,
|
||||||
revealStatus,
|
revealStatus,
|
||||||
} from '../../../actions/statuses';
|
} from 'soapbox/actions/statuses';
|
||||||
import { makeGetNotification } from '../../../selectors';
|
import { makeGetNotification } from 'soapbox/selectors';
|
||||||
|
|
||||||
import Notification from '../components/notification';
|
import Notification from '../components/notification';
|
||||||
|
|
||||||
const makeMapStateToProps = () => {
|
const makeMapStateToProps = () => {
|
||||||
|
|
|
@ -8,17 +8,16 @@ import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { createSelector } from 'reselect';
|
import { createSelector } from 'reselect';
|
||||||
|
|
||||||
import { getSettings } from 'soapbox/actions/settings';
|
|
||||||
import PlaceholderNotification from 'soapbox/features/placeholder/components/placeholder_notification';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
expandNotifications,
|
expandNotifications,
|
||||||
scrollTopNotifications,
|
scrollTopNotifications,
|
||||||
dequeueNotifications,
|
dequeueNotifications,
|
||||||
} from '../../actions/notifications';
|
} from 'soapbox/actions/notifications';
|
||||||
import ScrollableList from '../../components/scrollable_list';
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
import TimelineQueueButtonHeader from '../../components/timeline_queue_button_header';
|
import ScrollableList from 'soapbox/components/scrollable_list';
|
||||||
import { Column } from '../../components/ui';
|
import TimelineQueueButtonHeader from 'soapbox/components/timeline_queue_button_header';
|
||||||
|
import { Column } from 'soapbox/components/ui';
|
||||||
|
import PlaceholderNotification from 'soapbox/features/placeholder/components/placeholder_notification';
|
||||||
|
|
||||||
import FilterBarContainer from './containers/filter_bar_container';
|
import FilterBarContainer from './containers/filter_bar_container';
|
||||||
import NotificationContainer from './containers/notification_container';
|
import NotificationContainer from './containers/notification_container';
|
||||||
|
|
|
@ -4,13 +4,12 @@ import * as React from 'react';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
|
import { fetchSuggestions } from 'soapbox/actions/suggestions';
|
||||||
import ScrollableList from 'soapbox/components/scrollable_list';
|
import ScrollableList from 'soapbox/components/scrollable_list';
|
||||||
import { Button, Card, CardBody, Stack, Text } from 'soapbox/components/ui';
|
import { Button, Card, CardBody, Stack, Text } from 'soapbox/components/ui';
|
||||||
import AccountContainer from 'soapbox/containers/account_container';
|
import AccountContainer from 'soapbox/containers/account_container';
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
import { useAppSelector } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { fetchSuggestions } from '../../../actions/suggestions';
|
|
||||||
|
|
||||||
const SuggestedAccountsStep = ({ onNext }: { onNext: () => void }) => {
|
const SuggestedAccountsStep = ({ onNext }: { onNext: () => void }) => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,10 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
|
import { fetchPinnedStatuses } from 'soapbox/actions/pin_statuses';
|
||||||
import MissingIndicator from 'soapbox/components/missing_indicator';
|
import MissingIndicator from 'soapbox/components/missing_indicator';
|
||||||
|
import StatusList from 'soapbox/components/status_list';
|
||||||
|
|
||||||
import { fetchPinnedStatuses } from '../../actions/pin_statuses';
|
|
||||||
import StatusList from '../../components/status_list';
|
|
||||||
import Column from '../ui/components/column';
|
import Column from '../ui/components/column';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
|
|
|
@ -8,8 +8,7 @@ import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
import { getSettings } from 'soapbox/actions/settings';
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
import { getSoapboxConfig } from 'soapbox/actions/soapbox';
|
import { getSoapboxConfig } from 'soapbox/actions/soapbox';
|
||||||
|
import { Text } from 'soapbox/components/ui';
|
||||||
import { Text } from '../../../components/ui';
|
|
||||||
|
|
||||||
const mapStateToProps = (state, props) => {
|
const mapStateToProps = (state, props) => {
|
||||||
const soapboxConfig = getSoapboxConfig(state);
|
const soapboxConfig = getSoapboxConfig(state);
|
||||||
|
|
|
@ -5,12 +5,11 @@ import { Link, Redirect } from 'react-router-dom';
|
||||||
|
|
||||||
import { logIn, verifyCredentials } from 'soapbox/actions/auth';
|
import { logIn, verifyCredentials } from 'soapbox/actions/auth';
|
||||||
import { fetchInstance } from 'soapbox/actions/instance';
|
import { fetchInstance } from 'soapbox/actions/instance';
|
||||||
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
import SiteLogo from 'soapbox/components/site-logo';
|
import SiteLogo from 'soapbox/components/site-logo';
|
||||||
|
import { Button, Form, HStack, IconButton, Input, Tooltip } from 'soapbox/components/ui';
|
||||||
import { useAppSelector, useFeatures, useSoapboxConfig } from 'soapbox/hooks';
|
import { useAppSelector, useFeatures, useSoapboxConfig } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { openModal } from '../../../actions/modals';
|
|
||||||
import { Button, Form, HStack, IconButton, Input, Tooltip } from '../../../components/ui';
|
|
||||||
|
|
||||||
import Sonar from './sonar';
|
import Sonar from './sonar';
|
||||||
|
|
||||||
import type { AxiosError } from 'axios';
|
import type { AxiosError } from 'axios';
|
||||||
|
|
|
@ -5,12 +5,12 @@ import { connect } from 'react-redux';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
import { changeSetting, getSettings } from 'soapbox/actions/settings';
|
import { changeSetting, getSettings } from 'soapbox/actions/settings';
|
||||||
|
import { connectPublicStream } from 'soapbox/actions/streaming';
|
||||||
|
import { expandPublicTimeline } from 'soapbox/actions/timelines';
|
||||||
import SubNavigation from 'soapbox/components/sub_navigation';
|
import SubNavigation from 'soapbox/components/sub_navigation';
|
||||||
|
import { Column } from 'soapbox/components/ui';
|
||||||
import Accordion from 'soapbox/features/ui/components/accordion';
|
import Accordion from 'soapbox/features/ui/components/accordion';
|
||||||
|
|
||||||
import { connectPublicStream } from '../../actions/streaming';
|
|
||||||
import { expandPublicTimeline } from '../../actions/timelines';
|
|
||||||
import { Column } from '../../components/ui';
|
|
||||||
import PinnedHostsPicker from '../remote_timeline/components/pinned_hosts_picker';
|
import PinnedHostsPicker from '../remote_timeline/components/pinned_hosts_picker';
|
||||||
import StatusListContainer from '../ui/containers/status_list_container';
|
import StatusListContainer from '../ui/containers/status_list_container';
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,13 @@ import React, { useEffect, useRef } from 'react';
|
||||||
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
|
|
||||||
|
import { connectRemoteStream } from 'soapbox/actions/streaming';
|
||||||
|
import { expandRemoteTimeline } from 'soapbox/actions/timelines';
|
||||||
import IconButton from 'soapbox/components/icon_button';
|
import IconButton from 'soapbox/components/icon_button';
|
||||||
import { HStack, Text } from 'soapbox/components/ui';
|
import { HStack, Text } from 'soapbox/components/ui';
|
||||||
import Column from 'soapbox/features/ui/components/column';
|
import Column from 'soapbox/features/ui/components/column';
|
||||||
import { useAppDispatch, useSettings } from 'soapbox/hooks';
|
import { useAppDispatch, useSettings } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { connectRemoteStream } from '../../actions/streaming';
|
|
||||||
import { expandRemoteTimeline } from '../../actions/timelines';
|
|
||||||
import StatusListContainer from '../ui/containers/status_list_container';
|
import StatusListContainer from '../ui/containers/status_list_container';
|
||||||
|
|
||||||
import PinnedHostsPicker from './components/pinned_hosts_picker';
|
import PinnedHostsPicker from './components/pinned_hosts_picker';
|
||||||
|
|
|
@ -4,10 +4,9 @@ import { useHistory } from 'react-router-dom';
|
||||||
|
|
||||||
import { disableMfa } from 'soapbox/actions/mfa';
|
import { disableMfa } from 'soapbox/actions/mfa';
|
||||||
import snackbar from 'soapbox/actions/snackbar';
|
import snackbar from 'soapbox/actions/snackbar';
|
||||||
|
import { Button, Form, FormGroup, Input, FormActions, Stack, Text } from 'soapbox/components/ui';
|
||||||
import { useAppDispatch } from 'soapbox/hooks';
|
import { useAppDispatch } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { Button, Form, FormGroup, Input, FormActions, Stack, Text } from '../../../components/ui';
|
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
mfa_setup_disable_button: { id: 'column.mfa_disable_button', defaultMessage: 'Disable' },
|
mfa_setup_disable_button: { id: 'column.mfa_disable_button', defaultMessage: 'Disable' },
|
||||||
disableFail: { id: 'security.disable.fail', defaultMessage: 'Incorrect password. Try again.' },
|
disableFail: { id: 'security.disable.fail', defaultMessage: 'Incorrect password. Try again.' },
|
||||||
|
|
|
@ -4,10 +4,9 @@ import { useHistory } from 'react-router-dom';
|
||||||
|
|
||||||
import { fetchBackupCodes } from 'soapbox/actions/mfa';
|
import { fetchBackupCodes } from 'soapbox/actions/mfa';
|
||||||
import snackbar from 'soapbox/actions/snackbar';
|
import snackbar from 'soapbox/actions/snackbar';
|
||||||
|
import { Button, FormActions, Spinner, Stack, Text } from 'soapbox/components/ui';
|
||||||
import { useAppDispatch } from 'soapbox/hooks';
|
import { useAppDispatch } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { Button, FormActions, Spinner, Stack, Text } from '../../../components/ui';
|
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
mfaCancelButton: { id: 'column.mfa_cancel', defaultMessage: 'Cancel' },
|
mfaCancelButton: { id: 'column.mfa_cancel', defaultMessage: 'Cancel' },
|
||||||
mfaSetupButton: { id: 'column.mfa_setup', defaultMessage: 'Proceed to Setup' },
|
mfaSetupButton: { id: 'column.mfa_setup', defaultMessage: 'Proceed to Setup' },
|
||||||
|
|
|
@ -3,14 +3,13 @@ import React, { useCallback, useEffect, useState } from 'react';
|
||||||
import { useIntl, FormattedMessage, defineMessages } from 'react-intl';
|
import { useIntl, FormattedMessage, defineMessages } from 'react-intl';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
|
|
||||||
import snackbar from 'soapbox/actions/snackbar';
|
|
||||||
import { useAppDispatch } from 'soapbox/hooks';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
setupMfa,
|
setupMfa,
|
||||||
confirmMfa,
|
confirmMfa,
|
||||||
} from '../../../actions/mfa';
|
} from 'soapbox/actions/mfa';
|
||||||
import { Button, Form, FormActions, FormGroup, Input, Stack, Text } from '../../../components/ui';
|
import snackbar from 'soapbox/actions/snackbar';
|
||||||
|
import { Button, Form, FormActions, FormGroup, Input, Stack, Text } from 'soapbox/components/ui';
|
||||||
|
import { useAppDispatch } from 'soapbox/hooks';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
mfaCancelButton: { id: 'column.mfa_cancel', defaultMessage: 'Cancel' },
|
mfaCancelButton: { id: 'column.mfa_cancel', defaultMessage: 'Cancel' },
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { useIntl, defineMessages } from 'react-intl';
|
import { useIntl, defineMessages } from 'react-intl';
|
||||||
|
|
||||||
|
import { fetchMfa } from 'soapbox/actions/mfa';
|
||||||
|
import { Card, CardBody, CardHeader, CardTitle, Column } from 'soapbox/components/ui';
|
||||||
import { useAppSelector, useAppDispatch } from 'soapbox/hooks';
|
import { useAppSelector, useAppDispatch } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { fetchMfa } from '../../actions/mfa';
|
|
||||||
import { Card, CardBody, CardHeader, CardTitle, Column } from '../../components/ui';
|
|
||||||
|
|
||||||
import DisableOtpForm from './mfa/disable_otp_form';
|
import DisableOtpForm from './mfa/disable_otp_form';
|
||||||
import EnableOtpForm from './mfa/enable_otp_form';
|
import EnableOtpForm from './mfa/enable_otp_form';
|
||||||
import OtpConfirmForm from './mfa/otp_confirm_form';
|
import OtpConfirmForm from './mfa/otp_confirm_form';
|
||||||
|
|
|
@ -4,15 +4,14 @@ import { defineMessages, injectIntl, WrappedComponentProps as IntlComponentProps
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { withRouter, RouteComponentProps } from 'react-router-dom';
|
import { withRouter, RouteComponentProps } from 'react-router-dom';
|
||||||
|
|
||||||
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
import EmojiButtonWrapper from 'soapbox/components/emoji-button-wrapper';
|
import EmojiButtonWrapper from 'soapbox/components/emoji-button-wrapper';
|
||||||
|
import { HStack, IconButton } from 'soapbox/components/ui';
|
||||||
|
import DropdownMenuContainer from 'soapbox/containers/dropdown_menu_container';
|
||||||
import { isUserTouching } from 'soapbox/is_mobile';
|
import { isUserTouching } from 'soapbox/is_mobile';
|
||||||
import { getReactForStatus } from 'soapbox/utils/emoji_reacts';
|
import { getReactForStatus } from 'soapbox/utils/emoji_reacts';
|
||||||
import { getFeatures } from 'soapbox/utils/features';
|
import { getFeatures } from 'soapbox/utils/features';
|
||||||
|
|
||||||
import { openModal } from '../../../actions/modals';
|
|
||||||
import { HStack, IconButton } from '../../../components/ui';
|
|
||||||
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
|
|
||||||
|
|
||||||
import type { History } from 'history';
|
import type { History } from 'history';
|
||||||
import type { List as ImmutableList } from 'immutable';
|
import type { List as ImmutableList } from 'immutable';
|
||||||
import type { AnyAction } from 'redux';
|
import type { AnyAction } from 'redux';
|
||||||
|
|
|
@ -5,11 +5,10 @@ import { FormattedNumber } from 'react-intl';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
import { openModal } from 'soapbox/actions/modals';
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
|
import { HStack, IconButton, Text, Emoji } from 'soapbox/components/ui';
|
||||||
import { useAppSelector, useSoapboxConfig, useFeatures } from 'soapbox/hooks';
|
import { useAppSelector, useSoapboxConfig, useFeatures } from 'soapbox/hooks';
|
||||||
import { reduceEmoji } from 'soapbox/utils/emoji_reacts';
|
import { reduceEmoji } from 'soapbox/utils/emoji_reacts';
|
||||||
|
|
||||||
import { HStack, IconButton, Text, Emoji } from '../../../components/ui';
|
|
||||||
|
|
||||||
import type { Status } from 'soapbox/types/entities';
|
import type { Status } from 'soapbox/types/entities';
|
||||||
|
|
||||||
interface IStatusInteractionBar {
|
interface IStatusInteractionBar {
|
||||||
|
|
|
@ -8,30 +8,15 @@ import { connect } from 'react-redux';
|
||||||
import { withRouter, RouteComponentProps } from 'react-router-dom';
|
import { withRouter, RouteComponentProps } from 'react-router-dom';
|
||||||
import { createSelector } from 'reselect';
|
import { createSelector } from 'reselect';
|
||||||
|
|
||||||
|
import { blockAccount } from 'soapbox/actions/accounts';
|
||||||
import { launchChat } from 'soapbox/actions/chats';
|
import { launchChat } from 'soapbox/actions/chats';
|
||||||
import {
|
|
||||||
deactivateUserModal,
|
|
||||||
deleteUserModal,
|
|
||||||
deleteStatusModal,
|
|
||||||
toggleStatusSensitivityModal,
|
|
||||||
} from 'soapbox/actions/moderation';
|
|
||||||
import { getSettings } from 'soapbox/actions/settings';
|
|
||||||
import { getSoapboxConfig } from 'soapbox/actions/soapbox';
|
|
||||||
import ScrollableList from 'soapbox/components/scrollable_list';
|
|
||||||
import SubNavigation from 'soapbox/components/sub_navigation';
|
|
||||||
import Tombstone from 'soapbox/components/tombstone';
|
|
||||||
import { Column, Stack } from 'soapbox/components/ui';
|
|
||||||
import PlaceholderStatus from 'soapbox/features/placeholder/components/placeholder_status';
|
|
||||||
import PendingStatus from 'soapbox/features/ui/components/pending_status';
|
|
||||||
|
|
||||||
import { blockAccount } from '../../actions/accounts';
|
|
||||||
import {
|
import {
|
||||||
replyCompose,
|
replyCompose,
|
||||||
mentionCompose,
|
mentionCompose,
|
||||||
directCompose,
|
directCompose,
|
||||||
quoteCompose,
|
quoteCompose,
|
||||||
} from '../../actions/compose';
|
} from 'soapbox/actions/compose';
|
||||||
import { simpleEmojiReact } from '../../actions/emoji_reacts';
|
import { simpleEmojiReact } from 'soapbox/actions/emoji_reacts';
|
||||||
import {
|
import {
|
||||||
favourite,
|
favourite,
|
||||||
unfavourite,
|
unfavourite,
|
||||||
|
@ -41,10 +26,18 @@ import {
|
||||||
unbookmark,
|
unbookmark,
|
||||||
pin,
|
pin,
|
||||||
unpin,
|
unpin,
|
||||||
} from '../../actions/interactions';
|
} from 'soapbox/actions/interactions';
|
||||||
import { openModal } from '../../actions/modals';
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
import { initMuteModal } from '../../actions/mutes';
|
import {
|
||||||
import { initReport } from '../../actions/reports';
|
deactivateUserModal,
|
||||||
|
deleteUserModal,
|
||||||
|
deleteStatusModal,
|
||||||
|
toggleStatusSensitivityModal,
|
||||||
|
} from 'soapbox/actions/moderation';
|
||||||
|
import { initMuteModal } from 'soapbox/actions/mutes';
|
||||||
|
import { initReport } from 'soapbox/actions/reports';
|
||||||
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
|
import { getSoapboxConfig } from 'soapbox/actions/soapbox';
|
||||||
import {
|
import {
|
||||||
muteStatus,
|
muteStatus,
|
||||||
unmuteStatus,
|
unmuteStatus,
|
||||||
|
@ -52,11 +45,18 @@ import {
|
||||||
hideStatus,
|
hideStatus,
|
||||||
revealStatus,
|
revealStatus,
|
||||||
editStatus,
|
editStatus,
|
||||||
} from '../../actions/statuses';
|
} from 'soapbox/actions/statuses';
|
||||||
import { fetchStatusWithContext, fetchNext } from '../../actions/statuses';
|
import { fetchStatusWithContext, fetchNext } from 'soapbox/actions/statuses';
|
||||||
import MissingIndicator from '../../components/missing_indicator';
|
import MissingIndicator from 'soapbox/components/missing_indicator';
|
||||||
import { textForScreenReader, defaultMediaVisibility } from '../../components/status';
|
import ScrollableList from 'soapbox/components/scrollable_list';
|
||||||
import { makeGetStatus } from '../../selectors';
|
import { textForScreenReader, defaultMediaVisibility } from 'soapbox/components/status';
|
||||||
|
import SubNavigation from 'soapbox/components/sub_navigation';
|
||||||
|
import Tombstone from 'soapbox/components/tombstone';
|
||||||
|
import { Column, Stack } from 'soapbox/components/ui';
|
||||||
|
import PlaceholderStatus from 'soapbox/features/placeholder/components/placeholder_status';
|
||||||
|
import PendingStatus from 'soapbox/features/ui/components/pending_status';
|
||||||
|
import { makeGetStatus } from 'soapbox/selectors';
|
||||||
|
|
||||||
import { attachFullscreenListener, detachFullscreenListener, isFullscreen } from '../ui/util/fullscreen';
|
import { attachFullscreenListener, detachFullscreenListener, isFullscreen } from '../ui/util/fullscreen';
|
||||||
|
|
||||||
import ActionBar from './components/action-bar';
|
import ActionBar from './components/action-bar';
|
||||||
|
|
|
@ -5,8 +5,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
import AccountContainer from 'soapbox/containers/account_container';
|
||||||
import AccountContainer from '../../../containers/account_container';
|
|
||||||
|
|
||||||
export default class AccountListPanel extends ImmutablePureComponent {
|
export default class AccountListPanel extends ImmutablePureComponent {
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,9 @@ import PropTypes from 'prop-types';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { injectIntl, FormattedMessage } from 'react-intl';
|
import { injectIntl, FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
|
import { Modal } from 'soapbox/components/ui';
|
||||||
import { SimpleForm, FieldsGroup, Checkbox } from 'soapbox/features/forms';
|
import { SimpleForm, FieldsGroup, Checkbox } from 'soapbox/features/forms';
|
||||||
|
|
||||||
import { Modal } from '../../../components/ui';
|
|
||||||
|
|
||||||
export default @injectIntl
|
export default @injectIntl
|
||||||
class ConfirmationModal extends React.PureComponent {
|
class ConfirmationModal extends React.PureComponent {
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,7 @@ import Toggle from 'react-toggle';
|
||||||
import { muteAccount } from 'soapbox/actions/accounts';
|
import { muteAccount } from 'soapbox/actions/accounts';
|
||||||
import { closeModal } from 'soapbox/actions/modals';
|
import { closeModal } from 'soapbox/actions/modals';
|
||||||
import { toggleHideNotifications } from 'soapbox/actions/mutes';
|
import { toggleHideNotifications } from 'soapbox/actions/mutes';
|
||||||
import { Modal, HStack, Stack } from 'soapbox/components/ui';
|
import { Modal, HStack, Stack, Text } from 'soapbox/components/ui';
|
||||||
|
|
||||||
import { Text } from '../../../components/ui';
|
|
||||||
|
|
||||||
const mapStateToProps = state => {
|
const mapStateToProps = state => {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -7,13 +7,12 @@ import { Link, Redirect } from 'react-router-dom';
|
||||||
|
|
||||||
import { logIn, verifyCredentials } from 'soapbox/actions/auth';
|
import { logIn, verifyCredentials } from 'soapbox/actions/auth';
|
||||||
import { fetchInstance } from 'soapbox/actions/instance';
|
import { fetchInstance } from 'soapbox/actions/instance';
|
||||||
|
import { openSidebar } from 'soapbox/actions/sidebar';
|
||||||
import SiteLogo from 'soapbox/components/site-logo';
|
import SiteLogo from 'soapbox/components/site-logo';
|
||||||
import { Avatar, Button, Form, IconButton, Input, Tooltip } from 'soapbox/components/ui';
|
import { Avatar, Button, Form, IconButton, Input, Tooltip } from 'soapbox/components/ui';
|
||||||
import Search from 'soapbox/features/compose/components/search';
|
import Search from 'soapbox/features/compose/components/search';
|
||||||
import { useOwnAccount, useSoapboxConfig } from 'soapbox/hooks';
|
import { useOwnAccount, useSoapboxConfig } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { openSidebar } from '../../../actions/sidebar';
|
|
||||||
|
|
||||||
import ProfileDropdown from './profile-dropdown';
|
import ProfileDropdown from './profile-dropdown';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
|
|
|
@ -6,12 +6,11 @@ import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
import { logOut, switchAccount } from 'soapbox/actions/auth';
|
import { logOut, switchAccount } from 'soapbox/actions/auth';
|
||||||
import { fetchOwnAccounts } from 'soapbox/actions/auth';
|
import { fetchOwnAccounts } from 'soapbox/actions/auth';
|
||||||
|
import Account from 'soapbox/components/account';
|
||||||
import { Menu, MenuButton, MenuDivider, MenuItem, MenuLink, MenuList } from 'soapbox/components/ui';
|
import { Menu, MenuButton, MenuDivider, MenuItem, MenuLink, MenuList } from 'soapbox/components/ui';
|
||||||
import { useAppSelector, useFeatures } from 'soapbox/hooks';
|
import { useAppSelector, useFeatures } from 'soapbox/hooks';
|
||||||
import { makeGetAccount } from 'soapbox/selectors';
|
import { makeGetAccount } from 'soapbox/selectors';
|
||||||
|
|
||||||
import Account from '../../../components/account';
|
|
||||||
|
|
||||||
import ThemeToggle from './theme-toggle';
|
import ThemeToggle from './theme-toggle';
|
||||||
|
|
||||||
import type { Account as AccountEntity } from 'soapbox/types/entities';
|
import type { Account as AccountEntity } from 'soapbox/types/entities';
|
||||||
|
|
|
@ -4,11 +4,11 @@ import { FormattedMessage } from 'react-intl';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
import { openModal } from 'soapbox/actions/modals';
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
|
import { expandAccountMediaTimeline } from 'soapbox/actions/timelines';
|
||||||
import { Spinner, Widget } from 'soapbox/components/ui';
|
import { Spinner, Widget } from 'soapbox/components/ui';
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
import { useAppSelector } from 'soapbox/hooks';
|
||||||
import { getAccountGallery } from 'soapbox/selectors';
|
import { getAccountGallery } from 'soapbox/selectors';
|
||||||
|
|
||||||
import { expandAccountMediaTimeline } from '../../../actions/timelines';
|
|
||||||
import MediaItem from '../../account_gallery/components/media_item';
|
import MediaItem from '../../account_gallery/components/media_item';
|
||||||
|
|
||||||
import type { Account, Attachment } from 'soapbox/types/entities';
|
import type { Account, Attachment } from 'soapbox/types/entities';
|
||||||
|
|
|
@ -2,10 +2,9 @@ import React from 'react';
|
||||||
import { useIntl, defineMessages } from 'react-intl';
|
import { useIntl, defineMessages } from 'react-intl';
|
||||||
import { NavLink } from 'react-router-dom';
|
import { NavLink } from 'react-router-dom';
|
||||||
|
|
||||||
|
import { HStack, Text } from 'soapbox/components/ui';
|
||||||
import { shortNumberFormat } from 'soapbox/utils/numbers';
|
import { shortNumberFormat } from 'soapbox/utils/numbers';
|
||||||
|
|
||||||
import { HStack, Text } from '../../../components/ui';
|
|
||||||
|
|
||||||
import type { Account } from 'soapbox/types/entities';
|
import type { Account } from 'soapbox/types/entities';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
|
|
|
@ -3,12 +3,11 @@ import * as React from 'react';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
|
import { fetchTrends } from 'soapbox/actions/trends';
|
||||||
|
import Hashtag from 'soapbox/components/hashtag';
|
||||||
import { Widget } from 'soapbox/components/ui';
|
import { Widget } from 'soapbox/components/ui';
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
import { useAppSelector } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { fetchTrends } from '../../../actions/trends';
|
|
||||||
import Hashtag from '../../../components/hashtag';
|
|
||||||
|
|
||||||
interface ITrendsPanel {
|
interface ITrendsPanel {
|
||||||
limit: number
|
limit: number
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,12 +3,11 @@ import * as React from 'react';
|
||||||
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
|
import { fetchSuggestions, dismissSuggestion } from 'soapbox/actions/suggestions';
|
||||||
import { Widget } from 'soapbox/components/ui';
|
import { Widget } from 'soapbox/components/ui';
|
||||||
|
import AccountContainer from 'soapbox/containers/account_container';
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
import { useAppSelector } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { fetchSuggestions, dismissSuggestion } from '../../../actions/suggestions';
|
|
||||||
import AccountContainer from '../../../containers/account_container';
|
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
dismissSuggestion: { id: 'suggestions.dismiss', defaultMessage: 'Dismiss suggestion' },
|
dismissSuggestion: { id: 'suggestions.dismiss', defaultMessage: 'Dismiss suggestion' },
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
|
import { cancelReplyCompose } from 'soapbox/actions/compose';
|
||||||
|
import { closeModal } from 'soapbox/actions/modals';
|
||||||
import { cancelReport } from 'soapbox/actions/reports';
|
import { cancelReport } from 'soapbox/actions/reports';
|
||||||
|
|
||||||
import { cancelReplyCompose } from '../../../actions/compose';
|
|
||||||
import { closeModal } from '../../../actions/modals';
|
|
||||||
import ModalRoot from '../components/modal_root';
|
import ModalRoot from '../components/modal_root';
|
||||||
|
|
||||||
const mapStateToProps = state => {
|
const mapStateToProps = state => {
|
||||||
|
|
|
@ -3,11 +3,10 @@ import { debounce } from 'lodash';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { dequeueTimeline } from 'soapbox/actions/timelines';
|
import { dequeueTimeline } from 'soapbox/actions/timelines';
|
||||||
|
import { scrollTopTimeline } from 'soapbox/actions/timelines';
|
||||||
|
import StatusList from 'soapbox/components/status_list';
|
||||||
import { makeGetStatusIds } from 'soapbox/selectors';
|
import { makeGetStatusIds } from 'soapbox/selectors';
|
||||||
|
|
||||||
import { scrollTopTimeline } from '../../../actions/timelines';
|
|
||||||
import StatusList from '../../../components/status_list';
|
|
||||||
|
|
||||||
const makeMapStateToProps = () => {
|
const makeMapStateToProps = () => {
|
||||||
const getStatusIds = makeGetStatusIds();
|
const getStatusIds = makeGetStatusIds();
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,9 @@ import { useDispatch, useSelector } from 'react-redux';
|
||||||
|
|
||||||
import snackbar from 'soapbox/actions/snackbar';
|
import snackbar from 'soapbox/actions/snackbar';
|
||||||
import { confirmPhoneVerification, requestPhoneVerification } from 'soapbox/actions/verification';
|
import { confirmPhoneVerification, requestPhoneVerification } from 'soapbox/actions/verification';
|
||||||
|
import { Button, Form, FormGroup, Input, Text } from 'soapbox/components/ui';
|
||||||
import { formatPhoneNumber } from 'soapbox/utils/phone';
|
import { formatPhoneNumber } from 'soapbox/utils/phone';
|
||||||
|
|
||||||
import { Button, Form, FormGroup, Input, Text } from '../../../components/ui';
|
|
||||||
|
|
||||||
const Statuses = {
|
const Statuses = {
|
||||||
IDLE: 'IDLE',
|
IDLE: 'IDLE',
|
||||||
REQUESTED: 'REQUESTED',
|
REQUESTED: 'REQUESTED',
|
||||||
|
|
|
@ -3,14 +3,13 @@ import { useIntl } from 'react-intl';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
|
import { logOut } from 'soapbox/actions/auth';
|
||||||
import { openModal } from 'soapbox/actions/modals';
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
import LandingGradient from 'soapbox/components/landing-gradient';
|
import LandingGradient from 'soapbox/components/landing-gradient';
|
||||||
import SiteLogo from 'soapbox/components/site-logo';
|
import SiteLogo from 'soapbox/components/site-logo';
|
||||||
|
import { Button, Stack, Text } from 'soapbox/components/ui';
|
||||||
import { useAppSelector, useOwnAccount } from 'soapbox/hooks';
|
import { useAppSelector, useOwnAccount } from 'soapbox/hooks';
|
||||||
|
|
||||||
import { logOut } from '../../actions/auth';
|
|
||||||
import { Button, Stack, Text } from '../../components/ui';
|
|
||||||
|
|
||||||
const WaitlistPage = (/* { account } */) => {
|
const WaitlistPage = (/* { account } */) => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
|
|
|
@ -9,8 +9,8 @@ import { connect } from 'react-redux';
|
||||||
import { getSettings } from 'soapbox/actions/settings';
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
import Blurhash from 'soapbox/components/blurhash';
|
import Blurhash from 'soapbox/components/blurhash';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
import { isPanoramic, isPortrait, minimumAspectRatio, maximumAspectRatio } from 'soapbox/utils/media_aspect_ratio';
|
||||||
|
|
||||||
import { isPanoramic, isPortrait, minimumAspectRatio, maximumAspectRatio } from '../../utils/media_aspect_ratio';
|
|
||||||
import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui/util/fullscreen';
|
import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui/util/fullscreen';
|
||||||
|
|
||||||
const DEFAULT_HEIGHT = 300;
|
const DEFAULT_HEIGHT = 300;
|
||||||
|
|
Ładowanie…
Reference in New Issue