mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-30 08:32:52 +00:00
Move flavours/glitch/utils/emoji back to flavours/glitch/features/emoji
This commit is contained in:
parent
b75bf336bd
commit
b728b25c10
|
@ -1,7 +1,7 @@
|
|||
import api from '../api';
|
||||
import { CancelToken, isCancel } from 'axios';
|
||||
import { throttle } from 'lodash';
|
||||
import { search as emojiSearch } from 'flavours/glitch/utils/emoji/emoji_mart_search_light';
|
||||
import { search as emojiSearch } from 'flavours/glitch/features/emoji/emoji_mart_search_light';
|
||||
import { useEmoji } from './emojis';
|
||||
import { tagHistory } from '../settings';
|
||||
import { recoverHashtags } from 'flavours/glitch/utils/hashtag';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import escapeTextContentForBrowser from 'escape-html';
|
||||
import emojify from 'flavours/glitch/utils/emoji';
|
||||
import emojify from 'flavours/glitch/features/emoji/emoji';
|
||||
import { unescapeHTML } from 'flavours/glitch/utils/html';
|
||||
import { autoHideCW } from 'flavours/glitch/utils/content_warning';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import unicodeMapping from 'flavours/glitch/utils/emoji/emoji_unicode_mapping_light';
|
||||
import unicodeMapping from 'flavours/glitch/features/emoji/emoji_unicode_mapping_light';
|
||||
|
||||
import { assetHost } from 'flavours/glitch/utils/config';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import classNames from 'classnames';
|
|||
import Motion from 'flavours/glitch/features/ui/util/optional_motion';
|
||||
import spring from 'react-motion/lib/spring';
|
||||
import escapeTextContentForBrowser from 'escape-html';
|
||||
import emojify from 'flavours/glitch/utils/emoji';
|
||||
import emojify from 'flavours/glitch/features/emoji/emoji';
|
||||
import RelativeTimestamp from './relative_timestamp';
|
||||
import Icon from 'flavours/glitch/components/icon';
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import Overlay from 'react-overlays/lib/Overlay';
|
|||
import classNames from 'classnames';
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
import { supportsPassiveEvents } from 'detect-passive-events';
|
||||
import { buildCustomEmojis, categoriesFromEmojis } from 'flavours/glitch/utils/emoji';
|
||||
import { buildCustomEmojis, categoriesFromEmojis } from 'flavours/glitch/features/emoji/emoji';
|
||||
import { useSystemEmojiFont } from 'flavours/glitch/initial_state';
|
||||
import { assetHost } from 'flavours/glitch/utils/config';
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import { defineMessages, injectIntl, FormattedMessage, FormattedDate } from 'rea
|
|||
import { autoPlayGif, reduceMotion, disableSwiping } from 'flavours/glitch/initial_state';
|
||||
import elephantUIPlane from 'mastodon/../images/elephant_ui_plane.svg';
|
||||
import { mascot } from 'flavours/glitch/initial_state';
|
||||
import unicodeMapping from 'flavours/glitch/utils/emoji/emoji_unicode_mapping_light';
|
||||
import unicodeMapping from 'flavours/glitch/features/emoji/emoji_unicode_mapping_light';
|
||||
import classNames from 'classnames';
|
||||
import EmojiPickerDropdown from 'flavours/glitch/features/emoji_picker';
|
||||
import AnimatedNumber from 'flavours/glitch/components/animated_number';
|
||||
|
|
|
@ -4,7 +4,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
|
|||
import { connect } from 'react-redux';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { closeModal } from 'flavours/glitch/actions/modal';
|
||||
import emojify from 'flavours/glitch/utils/emoji';
|
||||
import emojify from 'flavours/glitch/features/emoji/emoji';
|
||||
import escapeTextContentForBrowser from 'escape-html';
|
||||
import InlineAccount from 'flavours/glitch/components/inline_account';
|
||||
import IconButton from 'flavours/glitch/components/icon_button';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export function EmojiPicker () {
|
||||
return import(/* webpackChunkName: "flavours/glitch/async/emoji_picker" */'flavours/glitch/utils/emoji/emoji_picker');
|
||||
return import(/* webpackChunkName: "flavours/glitch/async/emoji_picker" */'flavours/glitch/features/emoji/emoji_picker');
|
||||
}
|
||||
|
||||
export function Compose () {
|
||||
|
|
|
@ -7,7 +7,7 @@ function main() {
|
|||
const IntlMessageFormat = require('intl-messageformat').default;
|
||||
const { timeAgoString } = require('flavours/glitch/components/relative_timestamp');
|
||||
const { delegate } = require('@rails/ujs');
|
||||
const emojify = require('flavours/glitch/utils/emoji').default;
|
||||
const emojify = require('flavours/glitch/features/emoji/emoji').default;
|
||||
const { getLocale } = require('locales');
|
||||
const { messages } = getLocale();
|
||||
const React = require('react');
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { List as ImmutableList, fromJS as ConvertToImmutable } from 'immutable';
|
||||
import { CUSTOM_EMOJIS_FETCH_SUCCESS } from 'flavours/glitch/actions/custom_emojis';
|
||||
import { search as emojiSearch } from 'flavours/glitch/utils/emoji/emoji_mart_search_light';
|
||||
import { buildCustomEmojis } from 'flavours/glitch/utils/emoji';
|
||||
import { search as emojiSearch } from 'flavours/glitch/features/emoji/emoji_mart_search_light';
|
||||
import { buildCustomEmojis } from 'flavours/glitch/features/emoji/emoji';
|
||||
|
||||
const initialState = ImmutableList([]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue