+
{header && (
-
+
)}
diff --git a/app/soapbox/features/ui/components/who-to-follow-panel.tsx b/app/soapbox/features/ui/components/who-to-follow-panel.tsx
index 852abcdba6..dd2fc91fa5 100644
--- a/app/soapbox/features/ui/components/who-to-follow-panel.tsx
+++ b/app/soapbox/features/ui/components/who-to-follow-panel.tsx
@@ -1,9 +1,9 @@
-import * as React from 'react';
+import React from 'react';
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
import { Link } from 'react-router-dom';
import { Text, Widget } from 'soapbox/components/ui';
-import AccountContainer from 'soapbox/containers/account_container';
+import AccountContainer from 'soapbox/containers/account-container';
import PlaceholderSidebarSuggestions from 'soapbox/features/placeholder/components/placeholder-sidebar-suggestions';
import { useDismissSuggestion, useSuggestions } from 'soapbox/queries/suggestions';
diff --git a/app/soapbox/features/ui/containers/bundle_container.tsx b/app/soapbox/features/ui/containers/bundle-container.tsx
similarity index 93%
rename from app/soapbox/features/ui/containers/bundle_container.tsx
rename to app/soapbox/features/ui/containers/bundle-container.tsx
index 12e4b37877..50a8b8629b 100644
--- a/app/soapbox/features/ui/containers/bundle_container.tsx
+++ b/app/soapbox/features/ui/containers/bundle-container.tsx
@@ -1,6 +1,7 @@
import { connect } from 'react-redux';
-import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from '../../../actions/bundles';
+import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from 'soapbox/actions/bundles';
+
import Bundle from '../components/bundle';
import type { AppDispatch } from 'soapbox/store';
diff --git a/app/soapbox/features/ui/containers/modal_container.js b/app/soapbox/features/ui/containers/modal-container.ts
similarity index 69%
rename from app/soapbox/features/ui/containers/modal_container.js
rename to app/soapbox/features/ui/containers/modal-container.ts
index c41f56371f..294cf9031e 100644
Binary files a/app/soapbox/features/ui/containers/modal_container.js and b/app/soapbox/features/ui/containers/modal-container.ts differ
diff --git a/app/soapbox/features/ui/containers/notifications_container.tsx b/app/soapbox/features/ui/containers/notifications-container.tsx
similarity index 100%
rename from app/soapbox/features/ui/containers/notifications_container.tsx
rename to app/soapbox/features/ui/containers/notifications-container.tsx
diff --git a/app/soapbox/features/ui/index.tsx b/app/soapbox/features/ui/index.tsx
index d0fa5ad59d..ea8186c8d5 100644
--- a/app/soapbox/features/ui/index.tsx
+++ b/app/soapbox/features/ui/index.tsx
@@ -11,37 +11,37 @@ import { fetchReports, fetchUsers, fetchConfig } from 'soapbox/actions/admin';
import { fetchAnnouncements } from 'soapbox/actions/announcements';
import { fetchChats } from 'soapbox/actions/chats';
import { uploadCompose, resetCompose } from 'soapbox/actions/compose';
-import { fetchCustomEmojis } from 'soapbox/actions/custom_emojis';
+import { fetchCustomEmojis } from 'soapbox/actions/custom-emojis';
import { fetchFilters } from 'soapbox/actions/filters';
import { fetchMarker } from 'soapbox/actions/markers';
import { openModal } from 'soapbox/actions/modals';
import { expandNotifications } from 'soapbox/actions/notifications';
-import { register as registerPushNotifications } from 'soapbox/actions/push_notifications';
-import { fetchScheduledStatuses } from 'soapbox/actions/scheduled_statuses';
+import { register as registerPushNotifications } from 'soapbox/actions/push-notifications';
+import { fetchScheduledStatuses } from 'soapbox/actions/scheduled-statuses';
import { connectUserStream } from 'soapbox/actions/streaming';
import { fetchSuggestionsForTimeline } from 'soapbox/actions/suggestions';
import { expandHomeTimeline } from 'soapbox/actions/timelines';
import Icon from 'soapbox/components/icon';
import SidebarNavigation from 'soapbox/components/sidebar-navigation';
-import ThumbNavigation from 'soapbox/components/thumb_navigation';
+import ThumbNavigation from 'soapbox/components/thumb-navigation';
import { Layout } from 'soapbox/components/ui';
import { useAppDispatch, useAppSelector, useOwnAccount, useSoapboxConfig, useFeatures } from 'soapbox/hooks';
-import AdminPage from 'soapbox/pages/admin_page';
-import DefaultPage from 'soapbox/pages/default_page';
-import EventPage from 'soapbox/pages/event_page';
+import AdminPage from 'soapbox/pages/admin-page';
+import DefaultPage from 'soapbox/pages/default-page';
+import EventPage from 'soapbox/pages/event-page';
// import GroupsPage from 'soapbox/pages/groups_page';
// import GroupPage from 'soapbox/pages/group_page';
-import HomePage from 'soapbox/pages/home_page';
-import ProfilePage from 'soapbox/pages/profile_page';
-import RemoteInstancePage from 'soapbox/pages/remote_instance_page';
-import StatusPage from 'soapbox/pages/status_page';
+import HomePage from 'soapbox/pages/home-page';
+import ProfilePage from 'soapbox/pages/profile-page';
+import RemoteInstancePage from 'soapbox/pages/remote-instance-page';
+import StatusPage from 'soapbox/pages/status-page';
import { getAccessToken, getVapidKey } from 'soapbox/utils/auth';
import { isStandalone } from 'soapbox/utils/state';
// import GroupSidebarPanel from '../groups/sidebar_panel';
-import BackgroundShapes from './components/background_shapes';
+import BackgroundShapes from './components/background-shapes';
import Navbar from './components/navbar';
-import BundleContainer from './containers/bundle_container';
+import BundleContainer from './containers/bundle-container';
import {
Status,
CommunityTimeline,
@@ -118,7 +118,7 @@ import {
ServiceWorkerInfo,
Events,
} from './util/async-components';
-import { WrappedRoute } from './util/react_router_helpers';
+import { WrappedRoute } from './util/react-router-helpers';
// Dummy import, to make sure that
ends up in the application bundle.
// Without this it ends up in ~8 very commonly used bundles.
diff --git a/app/soapbox/features/ui/util/async-components.ts b/app/soapbox/features/ui/util/async-components.ts
index 6cd217960a..daba52eefc 100644
--- a/app/soapbox/features/ui/util/async-components.ts
+++ b/app/soapbox/features/ui/util/async-components.ts
@@ -1,5 +1,5 @@
export function EmojiPicker() {
- return import(/* webpackChunkName: "emoji_picker" */'../../emoji/emoji_picker');
+ return import(/* webpackChunkName: "emoji_picker" */'../../emoji/emoji-picker');
}
export function Notifications() {
@@ -7,19 +7,19 @@ export function Notifications() {
}
export function HomeTimeline() {
- return import(/* webpackChunkName: "features/home_timeline" */'../../home_timeline');
+ return import(/* webpackChunkName: "features/home_timeline" */'../../home-timeline');
}
export function PublicTimeline() {
- return import(/* webpackChunkName: "features/public_timeline" */'../../public_timeline');
+ return import(/* webpackChunkName: "features/public_timeline" */'../../public-timeline');
}
export function RemoteTimeline() {
- return import(/* webpackChunkName: "features/remote_timeline" */'../../remote_timeline');
+ return import(/* webpackChunkName: "features/remote_timeline" */'../../remote-timeline');
}
export function CommunityTimeline() {
- return import(/* webpackChunkName: "features/community_timeline" */'../../community_timeline');
+ return import(/* webpackChunkName: "features/community_timeline" */'../../community-timeline');
}
export function HashtagTimeline() {
@@ -27,7 +27,7 @@ export function HashtagTimeline() {
}
export function DirectTimeline() {
- return import(/* webpackChunkName: "features/direct_timeline" */'../../direct_timeline');
+ return import(/* webpackChunkName: "features/direct_timeline" */'../../direct-timeline');
}
export function Conversations() {
@@ -35,7 +35,7 @@ export function Conversations() {
}
export function ListTimeline() {
- return import(/* webpackChunkName: "features/list_timeline" */'../../list_timeline');
+ return import(/* webpackChunkName: "features/list_timeline" */'../../list-timeline');
}
export function Lists() {
@@ -51,15 +51,15 @@ export function Status() {
}
export function PinnedStatuses() {
- return import(/* webpackChunkName: "features/pinned_statuses" */'../../pinned_statuses');
+ return import(/* webpackChunkName: "features/pinned_statuses" */'../../pinned-statuses');
}
export function AccountTimeline() {
- return import(/* webpackChunkName: "features/account_timeline" */'../../account_timeline');
+ return import(/* webpackChunkName: "features/account_timeline" */'../../account-timeline');
}
export function AccountGallery() {
- return import(/* webpackChunkName: "features/account_gallery" */'../../account_gallery');
+ return import(/* webpackChunkName: "features/account_gallery" */'../../account-gallery');
}
export function Followers() {
@@ -71,15 +71,15 @@ export function Following() {
}
export function FollowRequests() {
- return import(/* webpackChunkName: "features/follow_requests" */'../../follow_requests');
+ return import(/* webpackChunkName: "features/follow_requests" */'../../follow-requests');
}
export function GenericNotFound() {
- return import(/* webpackChunkName: "features/generic_not_found" */'../../generic_not_found');
+ return import(/* webpackChunkName: "features/generic_not_found" */'../../generic-not-found');
}
export function FavouritedStatuses() {
- return import(/* webpackChunkName: "features/favourited_statuses" */'../../favourited_statuses');
+ return import(/* webpackChunkName: "features/favourited_statuses" */'../../favourited-statuses');
}
export function Blocks() {
@@ -87,7 +87,7 @@ export function Blocks() {
}
export function DomainBlocks() {
- return import(/* webpackChunkName: "features/domain_blocks" */'../../domain_blocks');
+ return import(/* webpackChunkName: "features/domain_blocks" */'../../domain-blocks');
}
export function Mutes() {
@@ -95,7 +95,7 @@ export function Mutes() {
}
export function MuteModal() {
- return import(/* webpackChunkName: "modals/mute_modal" */'../components/mute_modal');
+ return import(/* webpackChunkName: "modals/mute_modal" */'../components/modals/mute-modal');
}
export function Filters() {
@@ -111,7 +111,7 @@ export function AccountModerationModal() {
}
export function MediaGallery() {
- return import(/* webpackChunkName: "status/media_gallery" */'../../../components/media_gallery');
+ return import(/* webpackChunkName: "status/media_gallery" */'../../../components/media-gallery');
}
export function Video() {
@@ -123,59 +123,59 @@ export function Audio() {
}
export function MediaModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/media-modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/media-modal');
}
export function VideoModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/video_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/video-modal');
}
export function BoostModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/boost_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/boost-modal');
}
export function ConfirmationModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/confirmation_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/confirmation-modal');
}
export function MissingDescriptionModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/missing_description_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/missing-description-modal');
}
export function ActionsModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/actions_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/actions-modal');
}
export function HotkeysModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/hotkeys_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/hotkeys-modal');
}
export function ComposeModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/compose_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/compose-modal');
}
export function ReplyMentionsModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/reply_mentions_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/reply-mentions-modal');
}
export function UnauthorizedModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/unauthorized_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/unauthorized-modal');
}
export function EditFederationModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/edit_federation_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/edit-federation-modal');
}
export function EmbedModal() {
- return import(/* webpackChunkName: "modals/embed_modal" */'../components/embed-modal');
+ return import(/* webpackChunkName: "modals/embed_modal" */'../components/modals/embed-modal');
}
export function ComponentModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/component_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/component-modal');
}
export function ReblogsModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/reblogs_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/reblogs-modal');
}
export function FavouritesModal() {
@@ -183,11 +183,11 @@ export function FavouritesModal() {
}
export function ReactionsModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/reactions_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/reactions-modal');
}
export function MentionsModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/mentions_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/mentions-modal');
}
export function LandingPageModal() {
@@ -195,7 +195,7 @@ export function LandingPageModal() {
}
export function BirthdaysModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/birthdays_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/birthdays-modal');
}
export function BirthdayPanel() {
@@ -203,15 +203,15 @@ export function BirthdayPanel() {
}
export function AccountNoteModal() {
- return import(/* webpackChunkName: "features/ui" */'../components/account_note_modal');
+ return import(/* webpackChunkName: "features/ui" */'../components/modals/account-note-modal');
}
export function ListEditor() {
- return import(/* webpackChunkName: "features/list_editor" */'../../list_editor');
+ return import(/* webpackChunkName: "features/list_editor" */'../../list-editor');
}
export function ListAdder() {
- return import(/*webpackChunkName: "features/list_adder" */'../../list_adder');
+ return import(/*webpackChunkName: "features/list_adder" */'../../list-adder');
}
export function Search() {
@@ -219,15 +219,15 @@ export function Search() {
}
export function LoginPage() {
- return import(/* webpackChunkName: "features/auth_login" */'../../auth_login/components/login_page');
+ return import(/* webpackChunkName: "features/auth_login" */'../../auth-login/components/login-page');
}
export function ExternalLogin() {
- return import(/* webpackChunkName: "features/external_login" */'../../external_login');
+ return import(/* webpackChunkName: "features/external_login" */'../../external-login');
}
export function LogoutPage() {
- return import(/* webpackChunkName: "features/auth_login" */'../../auth_login/components/logout');
+ return import(/* webpackChunkName: "features/auth_login" */'../../auth-login/components/logout');
}
export function Settings() {
@@ -235,39 +235,39 @@ export function Settings() {
}
export function MediaDisplay() {
- return import(/* webpackChunkName: "features/settings" */'../../settings/media_display');
+ return import(/* webpackChunkName: "features/settings" */'../../settings/media-display');
}
export function EditProfile() {
- return import(/* webpackChunkName: "features/edit_profile" */'../../edit_profile');
+ return import(/* webpackChunkName: "features/edit_profile" */'../../edit-profile');
}
export function EditEmail() {
- return import(/* webpackChunkName: "features/edit_email" */'../../edit_email');
+ return import(/* webpackChunkName: "features/edit_email" */'../../edit-email');
}
export function EmailConfirmation() {
- return import(/* webpackChunkName: "features/email_confirmation" */'../../email_confirmation');
+ return import(/* webpackChunkName: "features/email_confirmation" */'../../email-confirmation');
}
export function EditPassword() {
- return import(/* webpackChunkName: "features/edit_password" */'../../edit_password');
+ return import(/* webpackChunkName: "features/edit_password" */'../../edit-password');
}
export function DeleteAccount() {
- return import(/* webpackChunkName: "features/delete_account" */'../../delete_account');
+ return import(/* webpackChunkName: "features/delete_account" */'../../delete-account');
}
export function SoapboxConfig() {
- return import(/* webpackChunkName: "features/soapbox_config" */'../../soapbox_config');
+ return import(/* webpackChunkName: "features/soapbox_config" */'../../soapbox-config');
}
export function ExportData() {
- return import(/* webpackChunkName: "features/export_data" */ '../../export_data');
+ return import(/* webpackChunkName: "features/export_data" */ '../../export-data');
}
export function ImportData() {
- return import(/* webpackChunkName: "features/import_data" */'../../import_data');
+ return import(/* webpackChunkName: "features/import_data" */'../../import-data');
}
export function Backups() {
@@ -275,15 +275,15 @@ export function Backups() {
}
export function PasswordReset() {
- return import(/* webpackChunkName: "features/auth_login" */'../../auth_login/components/password_reset');
+ return import(/* webpackChunkName: "features/auth_login" */'../../auth-login/components/password-reset');
}
export function PasswordResetConfirm() {
- return import(/* webpackChunkName: "features/auth_login/password_reset_confirm" */'../../auth_login/components/password_reset_confirm');
+ return import(/* webpackChunkName: "features/auth_login/password_reset_confirm" */'../../auth-login/components/password-reset-confirm');
}
export function MfaForm() {
- return import(/* webpackChunkName: "features/security/mfa_form" */'../../security/mfa_form');
+ return import(/* webpackChunkName: "features/security/mfa_form" */'../../security/mfa-form');
}
export function ChatIndex() {
@@ -299,7 +299,7 @@ export function ChatPanes() {
}
export function ServerInfo() {
- return import(/* webpackChunkName: "features/server_info" */'../../server_info');
+ return import(/* webpackChunkName: "features/server_info" */'../../server-info');
}
export function Dashboard() {
@@ -307,15 +307,15 @@ export function Dashboard() {
}
export function ModerationLog() {
- return import(/* webpackChunkName: "features/admin/moderation_log" */'../../admin/moderation_log');
+ return import(/* webpackChunkName: "features/admin/moderation_log" */'../../admin/moderation-log');
}
export function UserPanel() {
- return import(/* webpackChunkName: "features/ui" */'../components/user_panel');
+ return import(/* webpackChunkName: "features/ui" */'../components/user-panel');
}
export function PromoPanel() {
- return import(/* webpackChunkName: "features/ui" */'../components/promo_panel');
+ return import(/* webpackChunkName: "features/ui" */'../components/promo-panel');
}
export function SignUpPanel() {
@@ -327,7 +327,7 @@ export function CtaBanner() {
}
export function FundingPanel() {
- return import(/* webpackChunkName: "features/ui" */'../components/funding_panel');
+ return import(/* webpackChunkName: "features/ui" */'../components/funding-panel');
}
export function TrendsPanel() {
@@ -335,47 +335,47 @@ export function TrendsPanel() {
}
export function ProfileInfoPanel() {
- return import(/* webpackChunkName: "features/account_timeline" */'../components/profile_info_panel');
+ return import(/* webpackChunkName: "features/account_timeline" */'../components/profile-info-panel');
}
export function ProfileMediaPanel() {
- return import(/* webpackChunkName: "features/account_gallery" */'../components/profile_media_panel');
+ return import(/* webpackChunkName: "features/account_gallery" */'../components/profile-media-panel');
}
export function ProfileFieldsPanel() {
- return import(/* webpackChunkName: "features/account_timeline" */'../components/profile_fields_panel');
+ return import(/* webpackChunkName: "features/account_timeline" */'../components/profile-fields-panel');
}
export function PinnedAccountsPanel() {
- return import(/* webpackChunkName: "features/pinned_accounts" */'../components/pinned_accounts_panel');
+ return import(/* webpackChunkName: "features/pinned_accounts" */'../components/pinned-accounts-panel');
}
export function InstanceInfoPanel() {
- return import(/* webpackChunkName: "features/remote_timeline" */'../components/instance_info_panel');
+ return import(/* webpackChunkName: "features/remote_timeline" */'../components/instance-info-panel');
}
export function InstanceModerationPanel() {
- return import(/* webpackChunkName: "features/remote_timeline" */'../components/instance_moderation_panel');
+ return import(/* webpackChunkName: "features/remote_timeline" */'../components/instance-moderation-panel');
}
export function LatestAccountsPanel() {
- return import(/* webpackChunkName: "features/admin" */'../../admin/components/latest_accounts_panel');
+ return import(/* webpackChunkName: "features/admin" */'../../admin/components/latest-accounts-panel');
}
export function SidebarMenu() {
- return import(/* webpackChunkName: "features/ui" */'../../../components/sidebar_menu');
+ return import(/* webpackChunkName: "features/ui" */'../../../components/sidebar-menu');
}
export function UploadArea() {
- return import(/* webpackChunkName: "features/compose" */'../components/upload_area');
+ return import(/* webpackChunkName: "features/compose" */'../components/upload-area');
}
export function NotificationsContainer() {
- return import(/* webpackChunkName: "features/ui" */'../containers/notifications_container');
+ return import(/* webpackChunkName: "features/ui" */'../containers/notifications-container');
}
export function ModalContainer() {
- return import(/* webpackChunkName: "features/ui" */'../containers/modal_container');
+ return import(/* webpackChunkName: "features/ui" */'../containers/modal-container');
}
export function ProfileHoverCard() {
@@ -387,31 +387,31 @@ export function StatusHoverCard() {
}
export function CryptoDonate() {
- return import(/* webpackChunkName: "features/crypto_donate" */'../../crypto_donate');
+ return import(/* webpackChunkName: "features/crypto_donate" */'../../crypto-donate');
}
export function CryptoDonatePanel() {
- return import(/* webpackChunkName: "features/crypto_donate" */'../../crypto_donate/components/crypto_donate_panel');
+ return import(/* webpackChunkName: "features/crypto_donate" */'../../crypto-donate/components/crypto-donate-panel');
}
export function CryptoAddress() {
- return import(/* webpackChunkName: "features/crypto_donate" */'../../crypto_donate/components/crypto_address');
+ return import(/* webpackChunkName: "features/crypto_donate" */'../../crypto-donate/components/crypto-address');
}
export function CryptoDonateModal() {
- return import(/* webpackChunkName: "features/crypto_donate" */'../components/crypto_donate_modal');
+ return import(/* webpackChunkName: "features/crypto_donate" */'../components/modals/crypto-donate-modal');
}
export function ScheduledStatuses() {
- return import(/* webpackChunkName: "features/scheduled_statuses" */'../../scheduled_statuses');
+ return import(/* webpackChunkName: "features/scheduled_statuses" */'../../scheduled-statuses');
}
export function UserIndex() {
- return import(/* webpackChunkName: "features/admin/user_index" */'../../admin/user_index');
+ return import(/* webpackChunkName: "features/admin/user_index" */'../../admin/user-index');
}
export function FederationRestrictions() {
- return import(/* webpackChunkName: "features/federation_restrictions" */'../../federation_restrictions');
+ return import(/* webpackChunkName: "features/federation_restrictions" */'../../federation-restrictions');
}
export function Aliases() {
@@ -423,7 +423,7 @@ export function Migration() {
}
export function ScheduleForm() {
- return import(/* webpackChunkName: "features/compose" */'../../compose/components/schedule_form');
+ return import(/* webpackChunkName: "features/compose" */'../../compose/components/schedule-form');
}
export function WhoToFollowPanel() {
@@ -439,7 +439,7 @@ export function Directory() {
}
export function RegisterInvite() {
- return import(/* webpackChunkName: "features/register_invite" */'../../register_invite');
+ return import(/* webpackChunkName: "features/register_invite" */'../../register-invite');
}
export function Share() {
@@ -447,11 +447,11 @@ export function Share() {
}
export function NewStatus() {
- return import(/* webpackChunkName: "features/new_status" */'../../new_status');
+ return import(/* webpackChunkName: "features/new_status" */'../../new-status');
}
export function IntentionalError() {
- return import(/* webpackChunkName: "error" */'../../intentional_error');
+ return import(/* webpackChunkName: "error" */'../../intentional-error');
}
export function Developers() {
@@ -467,7 +467,7 @@ export function SettingsStore() {
}
export function TestTimeline() {
- return import(/* webpackChunkName: "features/test_timeline" */'../../test_timeline');
+ return import(/* webpackChunkName: "features/test_timeline" */'../../test-timeline');
}
export function ServiceWorkerInfo() {
@@ -475,7 +475,7 @@ export function ServiceWorkerInfo() {
}
export function DatePicker() {
- return import(/* webpackChunkName: "date_picker" */'../../birthdays/date_picker');
+ return import(/* webpackChunkName: "date_picker" */'../../birthdays/date-picker');
}
export function OnboardingWizard() {
@@ -483,15 +483,15 @@ export function OnboardingWizard() {
}
export function WaitlistPage() {
- return import(/* webpackChunkName: "features/verification" */'../../verification/waitlist_page');
+ return import(/* webpackChunkName: "features/verification" */'../../verification/waitlist-page');
}
export function CompareHistoryModal() {
- return import(/*webpackChunkName: "modals/compare_history_modal" */'../components/compare_history_modal');
+ return import(/*webpackChunkName: "modals/compare_history_modal" */'../components/modals/compare-history-modal');
}
export function AuthTokenList() {
- return import(/* webpackChunkName: "features/auth_token_list" */'../../auth_token_list');
+ return import(/* webpackChunkName: "features/auth_token_list" */'../../auth-token-list');
}
export function VerifySmsModal() {
@@ -499,7 +499,7 @@ export function VerifySmsModal() {
}
export function FamiliarFollowersModal() {
- return import(/*webpackChunkName: "modals/familiar_followers_modal" */'../components/familiar_followers_modal');
+ return import(/*webpackChunkName: "modals/familiar_followers_modal" */'../components/modals/familiar-followers-modal');
}
export function AnnouncementsPanel() {
diff --git a/app/soapbox/features/ui/util/optional_motion.tsx b/app/soapbox/features/ui/util/optional-motion.tsx
similarity index 88%
rename from app/soapbox/features/ui/util/optional_motion.tsx
rename to app/soapbox/features/ui/util/optional-motion.tsx
index 15c0d0cd13..a51e847661 100644
--- a/app/soapbox/features/ui/util/optional_motion.tsx
+++ b/app/soapbox/features/ui/util/optional-motion.tsx
@@ -3,7 +3,7 @@ import { Motion, MotionProps } from 'react-motion';
import { useSettings } from 'soapbox/hooks';
-import ReducedMotion from './reduced_motion';
+import ReducedMotion from './reduced-motion';
const OptionalMotion = (props: MotionProps) => {
const reduceMotion = useSettings().get('reduceMotion');
diff --git a/app/soapbox/features/ui/util/pending_status_builder.ts b/app/soapbox/features/ui/util/pending-status-builder.ts
similarity index 96%
rename from app/soapbox/features/ui/util/pending_status_builder.ts
rename to app/soapbox/features/ui/util/pending-status-builder.ts
index 1ec288bbeb..cc3a06102f 100644
--- a/app/soapbox/features/ui/util/pending_status_builder.ts
+++ b/app/soapbox/features/ui/util/pending-status-builder.ts
@@ -4,7 +4,7 @@ import { normalizeStatus } from 'soapbox/normalizers/status';
import { calculateStatus } from 'soapbox/reducers/statuses';
import { makeGetAccount } from 'soapbox/selectors';
-import type { PendingStatus } from 'soapbox/reducers/pending_statuses';
+import type { PendingStatus } from 'soapbox/reducers/pending-statuses';
import type { RootState } from 'soapbox/store';
const getAccount = makeGetAccount();
diff --git a/app/soapbox/features/ui/util/react_router_helpers.tsx b/app/soapbox/features/ui/util/react-router-helpers.tsx
similarity index 90%
rename from app/soapbox/features/ui/util/react_router_helpers.tsx
rename to app/soapbox/features/ui/util/react-router-helpers.tsx
index 992a60e2bc..bb911af18b 100644
--- a/app/soapbox/features/ui/util/react_router_helpers.tsx
+++ b/app/soapbox/features/ui/util/react-router-helpers.tsx
@@ -4,11 +4,11 @@ import { Redirect, Route, useHistory, RouteProps, RouteComponentProps, match as
import { Layout } from 'soapbox/components/ui';
import { useOwnAccount, useSettings } from 'soapbox/hooks';
-import BundleColumnError from '../components/bundle_column_error';
-import ColumnForbidden from '../components/column_forbidden';
-import ColumnLoading from '../components/column_loading';
-import ColumnsArea from '../components/columns_area';
-import BundleContainer from '../containers/bundle_container';
+import BundleColumnError from '../components/bundle-column-error';
+import ColumnForbidden from '../components/column-forbidden';
+import ColumnLoading from '../components/column-loading';
+import ColumnsArea from '../components/columns-area';
+import BundleContainer from '../containers/bundle-container';
type PageProps = {
params?: MatchType['params'],
diff --git a/app/soapbox/features/ui/util/reduced_motion.tsx b/app/soapbox/features/ui/util/reduced-motion.tsx
similarity index 100%
rename from app/soapbox/features/ui/util/reduced_motion.tsx
rename to app/soapbox/features/ui/util/reduced-motion.tsx
diff --git a/app/soapbox/features/verification/email_passthru.tsx b/app/soapbox/features/verification/email-passthru.tsx
similarity index 99%
rename from app/soapbox/features/verification/email_passthru.tsx
rename to app/soapbox/features/verification/email-passthru.tsx
index e51f3220f5..bfdc017de5 100644
--- a/app/soapbox/features/verification/email_passthru.tsx
+++ b/app/soapbox/features/verification/email-passthru.tsx
@@ -1,4 +1,4 @@
-import * as React from 'react';
+import React from 'react';
import { defineMessages, useIntl } from 'react-intl';
import { useHistory, useParams } from 'react-router-dom';
diff --git a/app/soapbox/features/verification/index.tsx b/app/soapbox/features/verification/index.tsx
index 4470bd4c27..88c9dc435b 100644
--- a/app/soapbox/features/verification/index.tsx
+++ b/app/soapbox/features/verification/index.tsx
@@ -1,4 +1,4 @@
-import * as React from 'react';
+import React from 'react';
import { Redirect } from 'react-router-dom';
import { fetchVerificationConfig } from 'soapbox/actions/verification';
diff --git a/app/soapbox/features/verification/registration.tsx b/app/soapbox/features/verification/registration.tsx
index e4bf2c1e29..6539ca8c88 100644
--- a/app/soapbox/features/verification/registration.tsx
+++ b/app/soapbox/features/verification/registration.tsx
@@ -1,4 +1,4 @@
-import * as React from 'react';
+import React from 'react';
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
import { Redirect } from 'react-router-dom';
@@ -16,22 +16,12 @@ import PasswordIndicator from './components/password-indicator';
import type { AxiosError } from 'axios';
const messages = defineMessages({
- success: {
- id: 'registrations.success',
- defaultMessage: 'Welcome to {siteTitle}!',
- },
- usernameHint: {
- id: 'registrations.username.hint',
- defaultMessage: 'May only contain A-Z, 0-9, and underscores',
- },
- usernameTaken: {
- id: 'registrations.unprocessable_entity',
- defaultMessage: 'This username has already been taken.',
- },
- error: {
- id: 'registrations.error',
- defaultMessage: 'Failed to register your account.',
- },
+ success: { id: 'registrations.success', defaultMessage: 'Welcome to {siteTitle}!' },
+ usernameLabel: { id: 'registrations.username.label', defaultMessage: 'Your username' },
+ usernameHint: { id: 'registrations.username.hint', defaultMessage: 'May only contain A-Z, 0-9, and underscores' },
+ usernameTaken: { id: 'registrations.unprocessable_entity', defaultMessage: 'This username has already been taken.' },
+ passwordLabel: { id: 'registrations.password.label', defaultMessage: 'Password' },
+ error: { id: 'registrations.error', defaultMessage: 'Failed to register your account.' },
});
const initialState = {
@@ -108,7 +98,7 @@ const Registration = () => {
diff --git a/app/soapbox/features/verification/steps/email-verification.tsx b/app/soapbox/features/verification/steps/email-verification.tsx
index 95b888aef4..a834836160 100644
--- a/app/soapbox/features/verification/steps/email-verification.tsx
+++ b/app/soapbox/features/verification/steps/email-verification.tsx
@@ -11,8 +11,9 @@ import { useAppDispatch, useAppSelector } from 'soapbox/hooks';
const messages = defineMessages({
verificationSuccess: { id: 'email_verification.success', defaultMessage: 'Verification email sent successfully.' },
verificationFail: { id: 'email_verification.fail', defaultMessage: 'Failed to request email verification.' },
- verificationFailTakenAlert: { id: 'emai_verifilcation.exists', defaultMessage: 'This email has already been taken.' },
+ verificationFailTakenAlert: { id: 'email_verifilcation.exists', defaultMessage: 'This email has already been taken.' },
verificationFailTaken: { id: 'email_verification.taken', defaultMessage: 'is taken' },
+ emailLabel: { id: 'email_verification.email.label', defaultMessage: 'E-mail address' },
});
const Statuses = {
@@ -122,7 +123,7 @@ const EmailVerification = () => {
diff --git a/app/soapbox/features/verification/steps/sms-verification.tsx b/app/soapbox/features/verification/steps/sms-verification.tsx
index 7337c706d8..efe0a5ffc4 100644
--- a/app/soapbox/features/verification/steps/sms-verification.tsx
+++ b/app/soapbox/features/verification/steps/sms-verification.tsx
@@ -13,6 +13,7 @@ const messages = defineMessages({
verificationSuccess: { id: 'sms_verification.success', defaultMessage: 'A verification code has been sent to your phone number.' },
verificationFail: { id: 'sms_verification.fail', defaultMessage: 'Failed to send SMS message to your phone number.' },
verificationExpired: { id: 'sms_verification.expired', defaultMessage: 'Your SMS token has expired.' },
+ phoneLabel: { id: 'sms_verification.phone.label', defaultMessage: 'Phone number' },
});
const Statuses = {
@@ -98,7 +99,7 @@ const SmsVerification = () => {
- We sent you a 6-digit code via SMS. Enter it below.
+
{
onClick={resendVerificationCode}
disabled={requestedAnother}
>
- Resend verification code?
+
@@ -138,7 +139,7 @@ const SmsVerification = () => {