Rename files (12): rand

This commit is contained in:
Chewbacca 2022-11-15 15:48:54 -05:00
parent 637d78db01
commit 8818763f28
29 changed files with 27 additions and 27 deletions

View file

@ -1,6 +1,6 @@
import axios from 'axios'; import axios from 'axios';
import * as BuildConfig from 'soapbox/build_config'; import * as BuildConfig from 'soapbox/build-config';
import { isURL } from 'soapbox/utils/auth'; import { isURL } from 'soapbox/utils/auth';
import sourceCode from 'soapbox/utils/code'; import sourceCode from 'soapbox/utils/code';
import { getFeatures } from 'soapbox/utils/features'; import { getFeatures } from 'soapbox/utils/features';

View file

@ -9,7 +9,7 @@ import axios, { AxiosInstance, AxiosResponse } from 'axios';
import LinkHeader from 'http-link-header'; import LinkHeader from 'http-link-header';
import { createSelector } from 'reselect'; import { createSelector } from 'reselect';
import * as BuildConfig from 'soapbox/build_config'; import * as BuildConfig from 'soapbox/build-config';
import { RootState } from 'soapbox/store'; import { RootState } from 'soapbox/store';
import { getAccessToken, getAppToken, isURL, parseBaseURL } from 'soapbox/utils/auth'; import { getAccessToken, getAppToken, isURL, parseBaseURL } from 'soapbox/utils/auth';

View file

@ -7,7 +7,7 @@ import { simpleEmojiReact } from 'soapbox/actions/emoji_reacts';
import { openModal } from 'soapbox/actions/modals'; import { openModal } from 'soapbox/actions/modals';
import EmojiSelector from 'soapbox/components/ui/emoji-selector/emoji-selector'; import EmojiSelector from 'soapbox/components/ui/emoji-selector/emoji-selector';
import { useAppSelector, useOwnAccount, useSoapboxConfig } from 'soapbox/hooks'; import { useAppSelector, useOwnAccount, useSoapboxConfig } from 'soapbox/hooks';
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';
interface IEmojiButtonWrapper { interface IEmojiButtonWrapper {

View file

@ -3,7 +3,7 @@ import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { getSoapboxConfig } from 'soapbox/actions/soapbox'; import { getSoapboxConfig } from 'soapbox/actions/soapbox';
import * as BuildConfig from 'soapbox/build_config'; import * as BuildConfig from 'soapbox/build-config';
import { Text, Stack } from 'soapbox/components/ui'; import { Text, Stack } from 'soapbox/components/ui';
import { captureException } from 'soapbox/monitoring'; import { captureException } from 'soapbox/monitoring';
import KVStore from 'soapbox/storage/kv-store'; import KVStore from 'soapbox/storage/kv-store';

View file

@ -1,6 +1,6 @@
import React, { useEffect, useRef } from 'react'; import React, { useEffect, useRef } from 'react';
import { isIOS } from 'soapbox/is_mobile'; import { isIOS } from 'soapbox/is-mobile';
interface IExtendedVideoPlayer { interface IExtendedVideoPlayer {
src: string, src: string,

View file

@ -8,7 +8,7 @@ import {
closeProfileHoverCard, closeProfileHoverCard,
} from 'soapbox/actions/profile_hover_card'; } from 'soapbox/actions/profile_hover_card';
import { useAppDispatch } from 'soapbox/hooks'; import { useAppDispatch } from 'soapbox/hooks';
import { isMobile } from 'soapbox/is_mobile'; import { isMobile } from 'soapbox/is-mobile';
const showProfileHoverCard = debounce((dispatch, ref, accountId) => { const showProfileHoverCard = debounce((dispatch, ref, accountId) => {
dispatch(openProfileHoverCard(ref, accountId)); dispatch(openProfileHoverCard(ref, accountId));

View file

@ -7,7 +7,7 @@ import {
openStatusHoverCard, openStatusHoverCard,
closeStatusHoverCard, closeStatusHoverCard,
} from 'soapbox/actions/status-hover-card'; } from 'soapbox/actions/status-hover-card';
import { isMobile } from 'soapbox/is_mobile'; import { isMobile } from 'soapbox/is-mobile';
const showStatusHoverCard = debounce((dispatch, ref, statusId) => { const showStatusHoverCard = debounce((dispatch, ref, statusId) => {
dispatch(openStatusHoverCard(ref, statusId)); dispatch(openStatusHoverCard(ref, statusId));

View file

@ -9,7 +9,7 @@ import { useSettings } from 'soapbox/hooks';
import { Attachment } from 'soapbox/types/entities'; import { Attachment } from 'soapbox/types/entities';
import { truncateFilename } from 'soapbox/utils/media'; import { truncateFilename } from 'soapbox/utils/media';
import { isIOS } from '../is_mobile'; import { isIOS } from '../is-mobile';
import { isPanoramic, isPortrait, isNonConformingRatio, minimumAspectRatio, maximumAspectRatio } from '../utils/media-aspect-ratio'; import { isPanoramic, isPortrait, isNonConformingRatio, minimumAspectRatio, maximumAspectRatio } from '../utils/media-aspect-ratio';
import type { Property } from 'csstype'; import type { Property } from 'csstype';

View file

@ -3,7 +3,7 @@ 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';

View file

@ -13,7 +13,7 @@ import { loadInstance } from 'soapbox/actions/instance';
import { fetchMe } from 'soapbox/actions/me'; import { fetchMe } from 'soapbox/actions/me';
import { loadSoapboxConfig, getSoapboxConfig } from 'soapbox/actions/soapbox'; import { loadSoapboxConfig, getSoapboxConfig } from 'soapbox/actions/soapbox';
import { fetchVerificationConfig } from 'soapbox/actions/verification'; import { fetchVerificationConfig } from 'soapbox/actions/verification';
import * as BuildConfig from 'soapbox/build_config'; import * as BuildConfig from 'soapbox/build-config';
import GdprBanner from 'soapbox/components/gdpr-banner'; import GdprBanner from 'soapbox/components/gdpr-banner';
import Helmet from 'soapbox/components/helmet'; import Helmet from 'soapbox/components/helmet';
import LoadingScreen from 'soapbox/components/loading-screen'; import LoadingScreen from 'soapbox/components/loading-screen';

View file

@ -1,7 +1,7 @@
/** /**
* Functions for dealing with custom build configuration. * Functions for dealing with custom build configuration.
*/ */
import * as BuildConfig from 'soapbox/build_config'; import * as BuildConfig from 'soapbox/build-config';
/** Require a custom JSON file if it exists */ /** Require a custom JSON file if it exists */
export const custom = (filename: string, fallback: any = {}): any => { export const custom = (filename: string, fallback: any = {}): any => {

View file

@ -5,7 +5,7 @@ import Blurhash from 'soapbox/components/blurhash';
import Icon from 'soapbox/components/icon'; import Icon from 'soapbox/components/icon';
import StillImage from 'soapbox/components/still-image'; import StillImage from 'soapbox/components/still-image';
import { useSettings } from 'soapbox/hooks'; import { useSettings } from 'soapbox/hooks';
import { isIOS } from 'soapbox/is_mobile'; import { isIOS } from 'soapbox/is-mobile';
import type { Attachment } from 'soapbox/types/entities'; import type { Attachment } from 'soapbox/types/entities';

View file

@ -18,7 +18,7 @@ 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';
import { isMobile } from 'soapbox/is_mobile'; import { isMobile } from 'soapbox/is-mobile';
import QuotedStatusContainer from '../containers/quoted-status-container'; import QuotedStatusContainer from '../containers/quoted-status-container';
import ReplyIndicatorContainer from '../containers/reply-indicator-container'; import ReplyIndicatorContainer from '../containers/reply-indicator-container';

View file

@ -11,7 +11,7 @@ import { closeModal, openModal } from 'soapbox/actions/modals';
import Icon from 'soapbox/components/icon'; import Icon from 'soapbox/components/icon';
import { IconButton } from 'soapbox/components/ui'; import { IconButton } from 'soapbox/components/ui';
import { useAppDispatch, useCompose } from 'soapbox/hooks'; import { useAppDispatch, useCompose } from 'soapbox/hooks';
import { isUserTouching } from 'soapbox/is_mobile'; import { isUserTouching } from 'soapbox/is-mobile';
import Motion from '../../ui/util/optional_motion'; import Motion from '../../ui/util/optional_motion';

View file

@ -2,7 +2,7 @@ import { supportsPassiveEvents } from 'detect-passive-events';
import React, { useEffect, useRef } from 'react'; import React, { useEffect, useRef } from 'react';
import { SketchPicker, ColorChangeHandler } from 'react-color'; import { SketchPicker, ColorChangeHandler } from 'react-color';
import { isMobile } from 'soapbox/is_mobile'; import { isMobile } from 'soapbox/is-mobile';
const listenerOptions = supportsPassiveEvents ? { passive: true } : false; const listenerOptions = supportsPassiveEvents ? { passive: true } : false;

View file

@ -2,7 +2,7 @@ import React, { useState, useRef } from 'react';
// @ts-ignore: TODO: upgrade react-overlays. v3.1 and above have TS definitions // @ts-ignore: TODO: upgrade react-overlays. v3.1 and above have TS definitions
import Overlay from 'react-overlays/lib/Overlay'; import Overlay from 'react-overlays/lib/Overlay';
import { isMobile } from 'soapbox/is_mobile'; import { isMobile } from 'soapbox/is-mobile';
import ColorPicker from './color-picker'; import ColorPicker from './color-picker';

View file

@ -5,11 +5,11 @@
// it will execute in the same tick of the event loop (i.e. near-instant). // it will execute in the same tick of the event loop (i.e. near-instant).
function importBasePolyfills() { function importBasePolyfills() {
return import(/* webpackChunkName: "base_polyfills" */ './base_polyfills'); return import(/* webpackChunkName: "base_polyfills" */ './base-polyfills');
} }
function importExtraPolyfills() { function importExtraPolyfills() {
return import(/* webpackChunkName: "extra_polyfills" */ './extra_polyfills'); return import(/* webpackChunkName: "extra_polyfills" */ './extra-polyfills');
} }
function loadPolyfills() { function loadPolyfills() {

View file

@ -8,7 +8,7 @@ import { defineMessages } from 'react-intl';
import snackbar from 'soapbox/actions/snackbar'; import snackbar from 'soapbox/actions/snackbar';
import { setSwUpdating } from 'soapbox/actions/sw'; import { setSwUpdating } from 'soapbox/actions/sw';
import * as BuildConfig from 'soapbox/build_config'; import * as BuildConfig from 'soapbox/build-config';
import { store } from 'soapbox/store'; import { store } from 'soapbox/store';
import { printConsoleWarning } from 'soapbox/utils/console'; import { printConsoleWarning } from 'soapbox/utils/console';

View file

@ -1,4 +1,4 @@
import * as BuildConfig from 'soapbox/build_config'; import * as BuildConfig from 'soapbox/build-config';
import type { CaptureContext } from '@sentry/types'; import type { CaptureContext } from '@sentry/types';

View file

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import * as BuildConfig from 'soapbox/build_config'; import * as BuildConfig from 'soapbox/build-config';
// //
// Tools for performance debugging, only enabled in development mode. // Tools for performance debugging, only enabled in development mode.

View file

@ -2,7 +2,7 @@ import { Map as ImmutableMap, List as ImmutableList, fromJS } from 'immutable';
import trim from 'lodash/trim'; import trim from 'lodash/trim';
import { MASTODON_PRELOAD_IMPORT } from 'soapbox/actions/preload'; import { MASTODON_PRELOAD_IMPORT } from 'soapbox/actions/preload';
import { FE_SUBDIRECTORY } from 'soapbox/build_config'; import { FE_SUBDIRECTORY } from 'soapbox/build-config';
import KVStore from 'soapbox/storage/kv-store'; import KVStore from 'soapbox/storage/kv-store';
import { validId, isURL } from 'soapbox/utils/auth'; import { validId, isURL } from 'soapbox/utils/auth';

View file

@ -2,7 +2,7 @@ import { Record as ImmutableRecord } from 'immutable';
import { combineReducers } from 'redux-immutable'; import { combineReducers } from 'redux-immutable';
import { AUTH_LOGGED_OUT } from 'soapbox/actions/auth'; import { AUTH_LOGGED_OUT } from 'soapbox/actions/auth';
import * as BuildConfig from 'soapbox/build_config'; import * as BuildConfig from 'soapbox/build-config';
import account_notes from './account-notes'; import account_notes from './account-notes';
import accounts from './accounts'; import accounts from './accounts';

View file

@ -1,7 +1,7 @@
import { compareId } from '../utils/comparators'; import { compareId } from '../comparators';
test('compareId', () => { test('compareId', () => {
expect(compareId('3', '3')).toBe(0); expect(compareId('3', '3')).toBe(0);
expect(compareId('10', '1')).toBe(1); expect(compareId('10', '1')).toBe(1);
expect(compareId('99', '100')).toBe(-1); expect(compareId('99', '100')).toBe(-1);
}); });

View file

@ -4,7 +4,7 @@
*/ */
import { getSoapboxConfig } from 'soapbox/actions/soapbox'; import { getSoapboxConfig } from 'soapbox/actions/soapbox';
import * as BuildConfig from 'soapbox/build_config'; import * as BuildConfig from 'soapbox/build-config';
import { isPrerendered } from 'soapbox/precheck'; import { isPrerendered } from 'soapbox/precheck';
import { isURL } from 'soapbox/utils/auth'; import { isURL } from 'soapbox/utils/auth';

View file

@ -5,7 +5,7 @@
import { join } from 'path'; import { join } from 'path';
import * as BuildConfig from 'soapbox/build_config'; import * as BuildConfig from 'soapbox/build-config';
/** Gets the path to a file with build configuration being considered. */ /** Gets the path to a file with build configuration being considered. */
export const joinPublicPath = (...paths: string[]): string => { export const joinPublicPath = (...paths: string[]): string => {