Rename files (3): _ -> -
This commit is contained in:
parent
a0d960dd21
commit
5a449e7916
|
@ -21,8 +21,8 @@ import { getSettings } from './settings';
|
||||||
import { createStatus } from './statuses';
|
import { createStatus } from './statuses';
|
||||||
|
|
||||||
import type { History } from 'history';
|
import type { History } from 'history';
|
||||||
import type { Emoji } from 'soapbox/components/autosuggest_emoji';
|
import type { Emoji } from 'soapbox/components/autosuggest-emoji';
|
||||||
import type { AutoSuggestion } from 'soapbox/components/autosuggest_input';
|
import type { AutoSuggestion } from 'soapbox/components/autosuggest-input';
|
||||||
import type { AppDispatch, RootState } from 'soapbox/store';
|
import type { AppDispatch, RootState } from 'soapbox/store';
|
||||||
import type { Account, APIEntity, Status, Tag } from 'soapbox/types/entities';
|
import type { Account, APIEntity, Status, Tag } from 'soapbox/types/entities';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { saveSettings } from './settings';
|
import { saveSettings } from './settings';
|
||||||
|
|
||||||
import type { Emoji } from 'soapbox/components/autosuggest_emoji';
|
import type { Emoji } from 'soapbox/components/autosuggest-emoji';
|
||||||
import type { AppDispatch } from 'soapbox/store';
|
import type { AppDispatch } from 'soapbox/store';
|
||||||
|
|
||||||
const EMOJI_USE = 'EMOJI_USE';
|
const EMOJI_USE = 'EMOJI_USE';
|
||||||
|
|
|
@ -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 AutosuggestEmoji from '../autosuggest_emoji';
|
import AutosuggestEmoji from '../autosuggest-emoji';
|
||||||
|
|
||||||
describe('<AutosuggestEmoji />', () => {
|
describe('<AutosuggestEmoji />', () => {
|
||||||
it('renders native emoji', () => {
|
it('renders native emoji', () => {
|
|
@ -9,7 +9,7 @@ import { useSettings } from 'soapbox/hooks';
|
||||||
import Reaction from './reaction';
|
import Reaction from './reaction';
|
||||||
|
|
||||||
import type { List as ImmutableList, Map as ImmutableMap } from 'immutable';
|
import type { List as ImmutableList, Map as ImmutableMap } from 'immutable';
|
||||||
import type { Emoji } from 'soapbox/components/autosuggest_emoji';
|
import type { Emoji } from 'soapbox/components/autosuggest-emoji';
|
||||||
import type { AnnouncementReaction } from 'soapbox/types/entities';
|
import type { AnnouncementReaction } from 'soapbox/types/entities';
|
||||||
|
|
||||||
interface IReactionsBar {
|
interface IReactionsBar {
|
||||||
|
|
|
@ -3,7 +3,7 @@ import throttle from 'lodash/throttle';
|
||||||
import React, { useState, useRef, useCallback, useEffect } from 'react';
|
import React, { useState, useRef, useCallback, useEffect } from 'react';
|
||||||
|
|
||||||
import { accountSearch } from 'soapbox/actions/accounts';
|
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';
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { List as ImmutableList } from 'immutable';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component';
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
|
|
||||||
import AutosuggestEmoji, { Emoji } from 'soapbox/components/autosuggest_emoji';
|
import AutosuggestEmoji, { Emoji } from 'soapbox/components/autosuggest-emoji';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
import { Input } from 'soapbox/components/ui';
|
import { Input } from 'soapbox/components/ui';
|
||||||
import AutosuggestAccount from 'soapbox/features/compose/components/autosuggest_account';
|
import AutosuggestAccount from 'soapbox/features/compose/components/autosuggest_account';
|
|
@ -7,7 +7,7 @@ import Textarea from 'react-textarea-autosize';
|
||||||
import AutosuggestAccount from '../features/compose/components/autosuggest_account';
|
import AutosuggestAccount from '../features/compose/components/autosuggest_account';
|
||||||
import { isRtl } from '../rtl';
|
import { isRtl } from '../rtl';
|
||||||
|
|
||||||
import AutosuggestEmoji, { Emoji } from './autosuggest_emoji';
|
import AutosuggestEmoji, { Emoji } from './autosuggest-emoji';
|
||||||
|
|
||||||
import type { List as ImmutableList } from 'immutable';
|
import type { List as ImmutableList } from 'immutable';
|
||||||
|
|
|
@ -13,8 +13,8 @@ import {
|
||||||
insertEmojiCompose,
|
insertEmojiCompose,
|
||||||
uploadCompose,
|
uploadCompose,
|
||||||
} from 'soapbox/actions/compose';
|
} from 'soapbox/actions/compose';
|
||||||
import AutosuggestInput, { AutoSuggestion } from 'soapbox/components/autosuggest_input';
|
import AutosuggestInput, { AutoSuggestion } from 'soapbox/components/autosuggest-input';
|
||||||
import AutosuggestTextarea from 'soapbox/components/autosuggest_textarea';
|
import AutosuggestTextarea from 'soapbox/components/autosuggest-textarea';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
import { Button, Stack } from 'soapbox/components/ui';
|
import { Button, Stack } from 'soapbox/components/ui';
|
||||||
import { useAppDispatch, useAppSelector, useCompose, useFeatures, usePrevious } from 'soapbox/hooks';
|
import { useAppDispatch, useAppSelector, useCompose, useFeatures, usePrevious } from 'soapbox/hooks';
|
||||||
|
@ -41,7 +41,7 @@ import SpoilerInput from './spoiler-input';
|
||||||
import TextCharacterCounter from './text_character_counter';
|
import TextCharacterCounter from './text_character_counter';
|
||||||
import VisualCharacterCounter from './visual_character_counter';
|
import VisualCharacterCounter from './visual_character_counter';
|
||||||
|
|
||||||
import type { Emoji } from 'soapbox/components/autosuggest_emoji';
|
import type { Emoji } from 'soapbox/components/autosuggest-emoji';
|
||||||
|
|
||||||
const allowedAroundShortCode = '><\u0085\u0020\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\u0009\u000a\u000b\u000c\u000d';
|
const allowedAroundShortCode = '><\u0085\u0020\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\u0009\u000a\u000b\u000c\u000d';
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ import { useAppDispatch, useAppSelector } from 'soapbox/hooks';
|
||||||
|
|
||||||
import EmojiPickerMenu from './emoji-picker-menu';
|
import EmojiPickerMenu from './emoji-picker-menu';
|
||||||
|
|
||||||
import type { Emoji as EmojiType } from 'soapbox/components/autosuggest_emoji';
|
import type { Emoji as EmojiType } from 'soapbox/components/autosuggest-emoji';
|
||||||
import type { RootState } from 'soapbox/store';
|
import type { RootState } from 'soapbox/store';
|
||||||
|
|
||||||
let EmojiPicker: any, Emoji: any; // load asynchronously
|
let EmojiPicker: any, Emoji: any; // load asynchronously
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { buildCustomEmojis } from '../../../emoji/emoji';
|
||||||
import { EmojiPicker } from './emoji-picker-dropdown';
|
import { EmojiPicker } from './emoji-picker-dropdown';
|
||||||
import ModifierPicker from './modifier-picker';
|
import ModifierPicker from './modifier-picker';
|
||||||
|
|
||||||
import type { Emoji } from 'soapbox/components/autosuggest_emoji';
|
import type { Emoji } from 'soapbox/components/autosuggest-emoji';
|
||||||
|
|
||||||
const backgroundImageFn = () => require('emoji-datasource/img/twitter/sheets/32.png');
|
const backgroundImageFn = () => require('emoji-datasource/img/twitter/sheets/32.png');
|
||||||
const listenerOptions = supportsPassiveEvents ? { passive: true } : false;
|
const listenerOptions = supportsPassiveEvents ? { passive: true } : false;
|
||||||
|
|
|
@ -2,13 +2,13 @@ import React from 'react';
|
||||||
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
||||||
|
|
||||||
import { addPollOption, changePollOption, changePollSettings, clearComposeSuggestions, fetchComposeSuggestions, removePoll, removePollOption, selectComposeSuggestion } from 'soapbox/actions/compose';
|
import { addPollOption, changePollOption, changePollSettings, clearComposeSuggestions, fetchComposeSuggestions, removePoll, removePollOption, selectComposeSuggestion } from 'soapbox/actions/compose';
|
||||||
import AutosuggestInput from 'soapbox/components/autosuggest_input';
|
import AutosuggestInput from 'soapbox/components/autosuggest-input';
|
||||||
import { Button, Divider, HStack, Stack, Text, Toggle } from 'soapbox/components/ui';
|
import { Button, Divider, HStack, Stack, Text, Toggle } from 'soapbox/components/ui';
|
||||||
import { useAppDispatch, useAppSelector, useCompose } from 'soapbox/hooks';
|
import { useAppDispatch, useAppSelector, useCompose } from 'soapbox/hooks';
|
||||||
|
|
||||||
import DurationSelector from './duration-selector';
|
import DurationSelector from './duration-selector';
|
||||||
|
|
||||||
import type { AutoSuggestion } from 'soapbox/components/autosuggest_input';
|
import type { AutoSuggestion } from 'soapbox/components/autosuggest-input';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
option_placeholder: { id: 'compose_form.poll.option_placeholder', defaultMessage: 'Answer #{number}' },
|
option_placeholder: { id: 'compose_form.poll.option_placeholder', defaultMessage: 'Answer #{number}' },
|
||||||
|
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||||
import { defineMessages, useIntl } from 'react-intl';
|
import { defineMessages, useIntl } from 'react-intl';
|
||||||
|
|
||||||
import { changeComposeSpoilerness, changeComposeSpoilerText } from 'soapbox/actions/compose';
|
import { changeComposeSpoilerness, changeComposeSpoilerText } from 'soapbox/actions/compose';
|
||||||
import AutosuggestInput, { IAutosuggestInput } from 'soapbox/components/autosuggest_input';
|
import AutosuggestInput, { IAutosuggestInput } from 'soapbox/components/autosuggest-input';
|
||||||
import { Divider, Stack, Text } from 'soapbox/components/ui';
|
import { Divider, Stack, Text } from 'soapbox/components/ui';
|
||||||
import { useAppDispatch, useCompose } from 'soapbox/hooks';
|
import { useAppDispatch, useCompose } from 'soapbox/hooks';
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ import { normalizeAttachment } from '../normalizers/attachment';
|
||||||
import { unescapeHTML } from '../utils/html';
|
import { unescapeHTML } from '../utils/html';
|
||||||
|
|
||||||
import type { AnyAction } from 'redux';
|
import type { AnyAction } from 'redux';
|
||||||
import type { Emoji } from 'soapbox/components/autosuggest_emoji';
|
import type { Emoji } from 'soapbox/components/autosuggest-emoji';
|
||||||
import type {
|
import type {
|
||||||
Account as AccountEntity,
|
Account as AccountEntity,
|
||||||
APIEntity,
|
APIEntity,
|
||||||
|
|
|
@ -13,7 +13,7 @@ import {
|
||||||
FE_NAME,
|
FE_NAME,
|
||||||
} from '../actions/settings';
|
} from '../actions/settings';
|
||||||
|
|
||||||
import type { Emoji } from 'soapbox/components/autosuggest_emoji';
|
import type { Emoji } from 'soapbox/components/autosuggest-emoji';
|
||||||
import type { APIEntity } from 'soapbox/types/entities';
|
import type { APIEntity } from 'soapbox/types/entities';
|
||||||
|
|
||||||
type State = ImmutableMap<string, any>;
|
type State = ImmutableMap<string, any>;
|
||||||
|
|
Loading…
Reference in New Issue