Rename files (0): _ -> -
This commit is contained in:
parent
db5d0d6400
commit
e78242806f
|
@ -1,4 +1,4 @@
|
||||||
import type { DropdownPlacement } from 'soapbox/components/dropdown_menu';
|
import type { DropdownPlacement } from 'soapbox/components/dropdown-menu';
|
||||||
|
|
||||||
const DROPDOWN_MENU_OPEN = 'DROPDOWN_MENU_OPEN';
|
const DROPDOWN_MENU_OPEN = 'DROPDOWN_MENU_OPEN';
|
||||||
const DROPDOWN_MENU_CLOSE = 'DROPDOWN_MENU_CLOSE';
|
const DROPDOWN_MENU_CLOSE = 'DROPDOWN_MENU_CLOSE';
|
||||||
|
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||||
import { normalizeAccount } from 'soapbox/normalizers';
|
import { normalizeAccount } from 'soapbox/normalizers';
|
||||||
|
|
||||||
import { render, screen } from '../../jest/test-helpers';
|
import { render, screen } from '../../jest/test-helpers';
|
||||||
import AvatarOverlay from '../avatar_overlay';
|
import AvatarOverlay from '../avatar-overlay';
|
||||||
|
|
||||||
import type { ReducerAccount } from 'soapbox/reducers/accounts';
|
import type { ReducerAccount } from 'soapbox/reducers/accounts';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { render, screen } from '../../jest/test-helpers';
|
import { render, screen } from '../../jest/test-helpers';
|
||||||
import EmojiSelector from '../emoji_selector';
|
import EmojiSelector from '../emoji-selector';
|
||||||
|
|
||||||
describe('<EmojiSelector />', () => {
|
describe('<EmojiSelector />', () => {
|
||||||
it('renders correctly', () => {
|
it('renders correctly', () => {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import classNames from 'clsx';
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { defineMessages, useIntl } from 'react-intl';
|
import { defineMessages, useIntl } from 'react-intl';
|
||||||
|
|
||||||
import AutosuggestAccountInput from 'soapbox/components/autosuggest_account_input';
|
import AutosuggestAccountInput from 'soapbox/components/autosuggest-account-input';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
|
@ -1,54 +0,0 @@
|
||||||
import React from 'react';
|
|
||||||
|
|
||||||
import Icon from 'soapbox/components/icon';
|
|
||||||
|
|
||||||
import type { Attachment as AttachmentEntity } from 'soapbox/types/entities';
|
|
||||||
|
|
||||||
const filename = (url: string) => url.split('/').pop()!.split('#')[0].split('?')[0];
|
|
||||||
|
|
||||||
interface IAttachmentList {
|
|
||||||
media: AttachmentEntity[],
|
|
||||||
compact?: boolean,
|
|
||||||
}
|
|
||||||
|
|
||||||
const AttachmentList: React.FC<IAttachmentList> = ({ media, compact }) => {
|
|
||||||
if (compact) {
|
|
||||||
return (
|
|
||||||
<div className='attachment-list compact'>
|
|
||||||
<ul className='attachment-list__list'>
|
|
||||||
{media.map(attachment => {
|
|
||||||
const displayUrl = attachment.get('remote_url') || attachment.get('url');
|
|
||||||
|
|
||||||
return (
|
|
||||||
<li key={attachment.get('id')}>
|
|
||||||
<a href={displayUrl} target='_blank' rel='noopener'><Icon id='link' /> {filename(displayUrl)}</a>
|
|
||||||
</li>
|
|
||||||
);
|
|
||||||
})}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className='attachment-list'>
|
|
||||||
<div className='attachment-list__icon'>
|
|
||||||
<Icon id='link' />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<ul className='attachment-list__list'>
|
|
||||||
{media.map(attachment => {
|
|
||||||
const displayUrl = attachment.get('remote_url') || attachment.get('url');
|
|
||||||
|
|
||||||
return (
|
|
||||||
<li key={attachment.get('id')}>
|
|
||||||
<a href={displayUrl} target='_blank' rel='noopener'>{filename(displayUrl)}</a>
|
|
||||||
</li>
|
|
||||||
);
|
|
||||||
})}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default AttachmentList;
|
|
|
@ -6,10 +6,10 @@ import { accountSearch } from 'soapbox/actions/accounts';
|
||||||
import AutosuggestInput, { AutoSuggestion } from 'soapbox/components/autosuggest_input';
|
import AutosuggestInput, { AutoSuggestion } from 'soapbox/components/autosuggest_input';
|
||||||
import { useAppDispatch } from 'soapbox/hooks';
|
import { useAppDispatch } from 'soapbox/hooks';
|
||||||
|
|
||||||
import type { Menu } from 'soapbox/components/dropdown_menu';
|
import type { Menu } from 'soapbox/components/dropdown-menu';
|
||||||
import type { InputThemes } from 'soapbox/components/ui/input/input';
|
import type { InputThemes } from 'soapbox/components/ui/input/input';
|
||||||
|
|
||||||
const noOp = () => {};
|
const noOp = () => { };
|
||||||
|
|
||||||
interface IAutosuggestAccountInput {
|
interface IAutosuggestAccountInput {
|
||||||
onChange: React.ChangeEventHandler<HTMLInputElement>,
|
onChange: React.ChangeEventHandler<HTMLInputElement>,
|
|
@ -10,7 +10,7 @@ import { Input } from 'soapbox/components/ui';
|
||||||
import AutosuggestAccount from 'soapbox/features/compose/components/autosuggest_account';
|
import AutosuggestAccount from 'soapbox/features/compose/components/autosuggest_account';
|
||||||
import { isRtl } from 'soapbox/rtl';
|
import { isRtl } from 'soapbox/rtl';
|
||||||
|
|
||||||
import type { Menu, MenuItem } from 'soapbox/components/dropdown_menu';
|
import type { Menu, MenuItem } from 'soapbox/components/dropdown-menu';
|
||||||
import type { InputThemes } from 'soapbox/components/ui/input/input';
|
import type { InputThemes } from 'soapbox/components/ui/input/input';
|
||||||
|
|
||||||
type CursorMatch = [
|
type CursorMatch = [
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import ForkAwesomeIcon, { IForkAwesomeIcon } from './fork_awesome_icon';
|
import ForkAwesomeIcon, { IForkAwesomeIcon } from './fork-awesome-icon';
|
||||||
import SvgIcon, { ISvgIcon } from './svg_icon';
|
import SvgIcon, { ISvgIcon } from './svg_icon';
|
||||||
|
|
||||||
export type IIcon = IForkAwesomeIcon | ISvgIcon;
|
export type IIcon = IForkAwesomeIcon | ISvgIcon;
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { getFeatures } from 'soapbox/utils/features';
|
||||||
|
|
||||||
import SidebarNavigationLink from './sidebar-navigation-link';
|
import SidebarNavigationLink from './sidebar-navigation-link';
|
||||||
|
|
||||||
import type { Menu } from 'soapbox/components/dropdown_menu';
|
import type { Menu } from 'soapbox/components/dropdown-menu';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
follow_requests: { id: 'navigation_bar.follow_requests', defaultMessage: 'Follow requests' },
|
follow_requests: { id: 'navigation_bar.follow_requests', defaultMessage: 'Follow requests' },
|
||||||
|
|
|
@ -21,7 +21,7 @@ import { useAppDispatch, useAppSelector, useFeatures, useOwnAccount, useSettings
|
||||||
import { isLocal } from 'soapbox/utils/accounts';
|
import { isLocal } from 'soapbox/utils/accounts';
|
||||||
import { getReactForStatus, reduceEmoji } from 'soapbox/utils/emoji_reacts';
|
import { getReactForStatus, reduceEmoji } from 'soapbox/utils/emoji_reacts';
|
||||||
|
|
||||||
import type { Menu } from 'soapbox/components/dropdown_menu';
|
import type { Menu } from 'soapbox/components/dropdown-menu';
|
||||||
import type { Account, Status } from 'soapbox/types/entities';
|
import type { Account, Status } from 'soapbox/types/entities';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
|
|
|
@ -2,11 +2,11 @@ import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { openDropdownMenu, closeDropdownMenu } from '../actions/dropdown_menu';
|
import { openDropdownMenu, closeDropdownMenu } from '../actions/dropdown_menu';
|
||||||
import { openModal, closeModal } from '../actions/modals';
|
import { openModal, closeModal } from '../actions/modals';
|
||||||
import DropdownMenu from '../components/dropdown_menu';
|
import DropdownMenu from '../components/dropdown-menu';
|
||||||
import { isUserTouching } from '../is_mobile';
|
import { isUserTouching } from '../is_mobile';
|
||||||
|
|
||||||
import type { Dispatch } from 'redux';
|
import type { Dispatch } from 'redux';
|
||||||
import type { DropdownPlacement, IDropdown } from 'soapbox/components/dropdown_menu';
|
import type { DropdownPlacement, IDropdown } from 'soapbox/components/dropdown-menu';
|
||||||
import type { RootState } from 'soapbox/store';
|
import type { RootState } from 'soapbox/store';
|
||||||
|
|
||||||
const mapStateToProps = (state: RootState) => ({
|
const mapStateToProps = (state: RootState) => ({
|
||||||
|
|
|
@ -45,7 +45,7 @@ import { generateThemeCss } from 'soapbox/utils/theme';
|
||||||
|
|
||||||
import { checkOnboardingStatus } from '../actions/onboarding';
|
import { checkOnboardingStatus } from '../actions/onboarding';
|
||||||
import { preload } from '../actions/preload';
|
import { preload } from '../actions/preload';
|
||||||
import ErrorBoundary from '../components/error_boundary';
|
import ErrorBoundary from '../components/error-boundary';
|
||||||
import UI from '../features/ui';
|
import UI from '../features/ui';
|
||||||
import { store } from '../store';
|
import { store } from '../store';
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ import { normalizeAttachment } from 'soapbox/normalizers';
|
||||||
import { Account } from 'soapbox/types/entities';
|
import { Account } from 'soapbox/types/entities';
|
||||||
import { isRemote } from 'soapbox/utils/accounts';
|
import { isRemote } from 'soapbox/utils/accounts';
|
||||||
|
|
||||||
import type { Menu as MenuType } from 'soapbox/components/dropdown_menu';
|
import type { Menu as MenuType } from 'soapbox/components/dropdown-menu';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
edit_profile: { id: 'account.edit_profile', defaultMessage: 'Edit profile' },
|
edit_profile: { id: 'account.edit_profile', defaultMessage: 'Edit profile' },
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
import { NavLink } from 'react-router-dom';
|
import { NavLink } from 'react-router-dom';
|
||||||
|
|
||||||
import AvatarOverlay from 'soapbox/components/avatar_overlay';
|
import AvatarOverlay from 'soapbox/components/avatar-overlay';
|
||||||
import DisplayName from 'soapbox/components/display-name';
|
import DisplayName from 'soapbox/components/display-name';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { v4 as uuidv4 } from 'uuid';
|
||||||
import { accountLookup } from 'soapbox/actions/accounts';
|
import { accountLookup } from 'soapbox/actions/accounts';
|
||||||
import { register, verifyCredentials } from 'soapbox/actions/auth';
|
import { register, verifyCredentials } from 'soapbox/actions/auth';
|
||||||
import { openModal } from 'soapbox/actions/modals';
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
import BirthdayInput from 'soapbox/components/birthday_input';
|
import BirthdayInput from 'soapbox/components/birthday-input';
|
||||||
import { Checkbox, Form, FormGroup, FormActions, Button, Input, Textarea } from 'soapbox/components/ui';
|
import { Checkbox, Form, FormGroup, FormActions, Button, Input, Textarea } from 'soapbox/components/ui';
|
||||||
import CaptchaField from 'soapbox/features/auth_login/components/captcha';
|
import CaptchaField from 'soapbox/features/auth_login/components/captcha';
|
||||||
import { useAppSelector, useAppDispatch, useSettings, useFeatures } from 'soapbox/hooks';
|
import { useAppSelector, useAppDispatch, useSettings, useFeatures } from 'soapbox/hooks';
|
||||||
|
|
|
@ -21,7 +21,7 @@ import { MediaGallery } from 'soapbox/features/ui/util/async-components';
|
||||||
import { useAppSelector, useAppDispatch, useRefEventHandler } from 'soapbox/hooks';
|
import { useAppSelector, useAppDispatch, useRefEventHandler } from 'soapbox/hooks';
|
||||||
import { onlyEmoji } from 'soapbox/utils/rich_content';
|
import { onlyEmoji } from 'soapbox/utils/rich_content';
|
||||||
|
|
||||||
import type { Menu } from 'soapbox/components/dropdown_menu';
|
import type { Menu } from 'soapbox/components/dropdown-menu';
|
||||||
import type { ChatMessage as ChatMessageEntity } from 'soapbox/types/entities';
|
import type { ChatMessage as ChatMessageEntity } from 'soapbox/types/entities';
|
||||||
|
|
||||||
const BIG_EMOJI_LIMIT = 1;
|
const BIG_EMOJI_LIMIT = 1;
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { createSelector } from 'reselect';
|
||||||
|
|
||||||
import { openChat, launchChat, toggleMainWindow } from 'soapbox/actions/chats';
|
import { openChat, launchChat, toggleMainWindow } from 'soapbox/actions/chats';
|
||||||
import { getSettings } from 'soapbox/actions/settings';
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
import AccountSearch from 'soapbox/components/account_search';
|
import AccountSearch from 'soapbox/components/account-search';
|
||||||
import { Counter } from 'soapbox/components/ui';
|
import { Counter } from 'soapbox/components/ui';
|
||||||
import AudioToggle from 'soapbox/features/chats/components/audio-toggle';
|
import AudioToggle from 'soapbox/features/chats/components/audio-toggle';
|
||||||
import { useAppDispatch, useAppSelector, useSettings } from 'soapbox/hooks';
|
import { useAppDispatch, useAppSelector, useSettings } from 'soapbox/hooks';
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { useDispatch } from 'react-redux';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
|
|
||||||
import { launchChat } from 'soapbox/actions/chats';
|
import { launchChat } from 'soapbox/actions/chats';
|
||||||
import AccountSearch from 'soapbox/components/account_search';
|
import AccountSearch from 'soapbox/components/account-search';
|
||||||
import AudioToggle from 'soapbox/features/chats/components/audio-toggle';
|
import AudioToggle from 'soapbox/features/chats/components/audio-toggle';
|
||||||
|
|
||||||
import { Column } from '../../components/ui';
|
import { Column } from '../../components/ui';
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
showSearch,
|
showSearch,
|
||||||
submitSearch,
|
submitSearch,
|
||||||
} from 'soapbox/actions/search';
|
} from 'soapbox/actions/search';
|
||||||
import AutosuggestAccountInput from 'soapbox/components/autosuggest_account_input';
|
import AutosuggestAccountInput from 'soapbox/components/autosuggest-account-input';
|
||||||
import { Input } from 'soapbox/components/ui';
|
import { Input } from 'soapbox/components/ui';
|
||||||
import SvgIcon from 'soapbox/components/ui/icon/svg-icon';
|
import SvgIcon from 'soapbox/components/ui/icon/svg-icon';
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
import { useAppSelector } from 'soapbox/hooks';
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
||||||
import { directComposeById } from 'soapbox/actions/compose';
|
import { directComposeById } from 'soapbox/actions/compose';
|
||||||
import { mountConversations, unmountConversations, expandConversations } from 'soapbox/actions/conversations';
|
import { mountConversations, unmountConversations, expandConversations } from 'soapbox/actions/conversations';
|
||||||
import { connectDirectStream } from 'soapbox/actions/streaming';
|
import { connectDirectStream } from 'soapbox/actions/streaming';
|
||||||
import AccountSearch from 'soapbox/components/account_search';
|
import AccountSearch from 'soapbox/components/account-search';
|
||||||
import { Column } from 'soapbox/components/ui';
|
import { Column } from 'soapbox/components/ui';
|
||||||
import { useAppDispatch } from 'soapbox/hooks';
|
import { useAppDispatch } from 'soapbox/hooks';
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
||||||
import { directComposeById } from 'soapbox/actions/compose';
|
import { directComposeById } from 'soapbox/actions/compose';
|
||||||
import { connectDirectStream } from 'soapbox/actions/streaming';
|
import { connectDirectStream } from 'soapbox/actions/streaming';
|
||||||
import { expandDirectTimeline } from 'soapbox/actions/timelines';
|
import { expandDirectTimeline } from 'soapbox/actions/timelines';
|
||||||
import AccountSearch from 'soapbox/components/account_search';
|
import AccountSearch from 'soapbox/components/account-search';
|
||||||
import ColumnHeader from 'soapbox/components/column_header';
|
import ColumnHeader from 'soapbox/components/column-header';
|
||||||
import { Column } from 'soapbox/components/ui';
|
import { Column } from 'soapbox/components/ui';
|
||||||
import { useAppDispatch, useAppSelector } from 'soapbox/hooks';
|
import { useAppDispatch, useAppSelector } from 'soapbox/hooks';
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
||||||
import { updateNotificationSettings } from 'soapbox/actions/accounts';
|
import { updateNotificationSettings } from 'soapbox/actions/accounts';
|
||||||
import { patchMe } from 'soapbox/actions/me';
|
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 {
|
import {
|
||||||
Button,
|
Button,
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
||||||
import { Text } from 'soapbox/components/ui';
|
import { Text } from 'soapbox/components/ui';
|
||||||
import DropdownMenu from 'soapbox/containers/dropdown_menu_container';
|
import DropdownMenu from 'soapbox/containers/dropdown_menu_container';
|
||||||
|
|
||||||
import type { Menu } from 'soapbox/components/dropdown_menu';
|
import type { Menu } from 'soapbox/components/dropdown-menu';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
collapse: { id: 'accordion.collapse', defaultMessage: 'Collapse' },
|
collapse: { id: 'accordion.collapse', defaultMessage: 'Collapse' },
|
||||||
|
|
|
@ -10,7 +10,7 @@ import AccountContainer from 'soapbox/containers/account_container';
|
||||||
|
|
||||||
import Motion from '../util/optional_motion';
|
import Motion from '../util/optional_motion';
|
||||||
|
|
||||||
import type { Menu, MenuItem } from 'soapbox/components/dropdown_menu';
|
import type { Menu, MenuItem } from 'soapbox/components/dropdown-menu';
|
||||||
import type { Status as StatusEntity } from 'soapbox/types/entities';
|
import type { Status as StatusEntity } from 'soapbox/types/entities';
|
||||||
|
|
||||||
interface IActionsModal {
|
interface IActionsModal {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
import ReactSwipeableViews from 'react-swipeable-views';
|
import ReactSwipeableViews from 'react-swipeable-views';
|
||||||
|
|
||||||
import ExtendedVideoPlayer from 'soapbox/components/extended_video_player';
|
import ExtendedVideoPlayer from 'soapbox/components/extended-video-player';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
import IconButton from 'soapbox/components/icon_button';
|
import IconButton from 'soapbox/components/icon_button';
|
||||||
import Audio from 'soapbox/features/audio';
|
import Audio from 'soapbox/features/audio';
|
||||||
|
|
|
@ -6,7 +6,7 @@ import {
|
||||||
} from '../actions/dropdown_menu';
|
} from '../actions/dropdown_menu';
|
||||||
|
|
||||||
import type { AnyAction } from 'redux';
|
import type { AnyAction } from 'redux';
|
||||||
import type { DropdownPlacement } from 'soapbox/components/dropdown_menu';
|
import type { DropdownPlacement } from 'soapbox/components/dropdown-menu';
|
||||||
|
|
||||||
const ReducerRecord = ImmutableRecord({
|
const ReducerRecord = ImmutableRecord({
|
||||||
openId: null as number | null,
|
openId: null as number | null,
|
||||||
|
|
Loading…
Reference in New Issue