From d99339ee6cd550ede8a5f36464c663a91a90bfd0 Mon Sep 17 00:00:00 2001 From: Chewbacca Date: Tue, 15 Nov 2022 15:39:43 -0500 Subject: [PATCH] Rename files (9): reducers --- .../actions/__tests__/account-notes.test.ts | 2 +- .../actions/__tests__/accounts.test.ts | 2 +- app/soapbox/actions/__tests__/blocks.test.ts | 2 +- .../features/scheduled-statuses/builder.tsx | 2 +- .../ui/components/reactions_modal.tsx | 2 +- .../ui/util/pending_status_builder.ts | 2 +- ...ters.test.ts => accounts-counters.test.ts} | 2 +- ...m_emojis.test.ts => custom-emojis.test.ts} | 2 +- ...ain_lists.test.ts => domain-lists.test.ts} | 2 +- ...own_menu.test.ts => dropdown-menu.test.ts} | 2 +- ...{list_adder.test.ts => list-adder.test.ts} | 2 +- ...ons.test.ts => push-notifications.test.ts} | 2 +- ...tus_lists.test.ts => status-lists.test.ts} | 2 +- ...{user_lists.test.ts => user-lists.test.ts} | 2 +- .../{account_notes.ts => account-notes.ts} | 0 ...ounts_counters.ts => accounts-counters.ts} | 0 .../reducers/{admin_log.ts => admin-log.ts} | 0 ...message_lists.ts => chat-message-lists.ts} | 0 .../{chat_messages.ts => chat-messages.ts} | 0 .../{custom_emojis.ts => custom-emojis.ts} | 0 .../{domain_lists.ts => domain-lists.ts} | 0 .../{dropdown_menu.ts => dropdown-menu.ts} | 0 app/soapbox/reducers/index.ts | 34 +++++++++---------- .../reducers/{list_adder.ts => list-adder.ts} | 0 .../{list_editor.ts => list-editor.ts} | 0 ...ending_statuses.ts => pending-statuses.ts} | 0 ...le_hover_card.ts => profile-hover-card.ts} | 0 ...notifications.ts => push-notifications.ts} | 0 ...uled_statuses.ts => scheduled-statuses.ts} | 0 .../{status_lists.ts => status-lists.ts} | 0 ...nding_statuses.ts => trending-statuses.ts} | 0 .../reducers/{user_lists.ts => user-lists.ts} | 0 32 files changed, 31 insertions(+), 31 deletions(-) rename app/soapbox/reducers/__tests__/{accounts_counters.test.ts => accounts-counters.test.ts} (97%) rename app/soapbox/reducers/__tests__/{custom_emojis.test.ts => custom-emojis.test.ts} (84%) rename app/soapbox/reducers/__tests__/{domain_lists.test.ts => domain-lists.test.ts} (85%) rename app/soapbox/reducers/__tests__/{dropdown_menu.test.ts => dropdown-menu.test.ts} (85%) rename app/soapbox/reducers/__tests__/{list_adder.test.ts => list-adder.test.ts} (98%) rename app/soapbox/reducers/__tests__/{push_notifications.test.ts => push-notifications.test.ts} (90%) rename app/soapbox/reducers/__tests__/{status_lists.test.ts => status-lists.test.ts} (94%) rename app/soapbox/reducers/__tests__/{user_lists.test.ts => user-lists.test.ts} (95%) rename app/soapbox/reducers/{account_notes.ts => account-notes.ts} (100%) rename app/soapbox/reducers/{accounts_counters.ts => accounts-counters.ts} (100%) rename app/soapbox/reducers/{admin_log.ts => admin-log.ts} (100%) rename app/soapbox/reducers/{chat_message_lists.ts => chat-message-lists.ts} (100%) rename app/soapbox/reducers/{chat_messages.ts => chat-messages.ts} (100%) rename app/soapbox/reducers/{custom_emojis.ts => custom-emojis.ts} (100%) rename app/soapbox/reducers/{domain_lists.ts => domain-lists.ts} (100%) rename app/soapbox/reducers/{dropdown_menu.ts => dropdown-menu.ts} (100%) rename app/soapbox/reducers/{list_adder.ts => list-adder.ts} (100%) rename app/soapbox/reducers/{list_editor.ts => list-editor.ts} (100%) rename app/soapbox/reducers/{pending_statuses.ts => pending-statuses.ts} (100%) rename app/soapbox/reducers/{profile_hover_card.ts => profile-hover-card.ts} (100%) rename app/soapbox/reducers/{push_notifications.ts => push-notifications.ts} (100%) rename app/soapbox/reducers/{scheduled_statuses.ts => scheduled-statuses.ts} (100%) rename app/soapbox/reducers/{status_lists.ts => status-lists.ts} (100%) rename app/soapbox/reducers/{trending_statuses.ts => trending-statuses.ts} (100%) rename app/soapbox/reducers/{user_lists.ts => user-lists.ts} (100%) diff --git a/app/soapbox/actions/__tests__/account-notes.test.ts b/app/soapbox/actions/__tests__/account-notes.test.ts index 61e0c20b0..8b85eecc5 100644 --- a/app/soapbox/actions/__tests__/account-notes.test.ts +++ b/app/soapbox/actions/__tests__/account-notes.test.ts @@ -2,7 +2,7 @@ import { Map as ImmutableMap } from 'immutable'; import { __stub } from 'soapbox/api'; import { mockStore, rootState } from 'soapbox/jest/test-helpers'; -import { ReducerRecord, EditRecord } from 'soapbox/reducers/account_notes'; +import { ReducerRecord, EditRecord } from 'soapbox/reducers/account-notes'; import { normalizeAccount, normalizeRelationship } from '../../normalizers'; import { changeAccountNoteComment, initAccountNoteModal, submitAccountNote } from '../account-notes'; diff --git a/app/soapbox/actions/__tests__/accounts.test.ts b/app/soapbox/actions/__tests__/accounts.test.ts index 0793e36f7..d9faa0213 100644 --- a/app/soapbox/actions/__tests__/accounts.test.ts +++ b/app/soapbox/actions/__tests__/accounts.test.ts @@ -2,7 +2,7 @@ import { Map as ImmutableMap } from 'immutable'; import { __stub } from 'soapbox/api'; import { mockStore, rootState } from 'soapbox/jest/test-helpers'; -import { ListRecord, ReducerRecord } from 'soapbox/reducers/user_lists'; +import { ListRecord, ReducerRecord } from 'soapbox/reducers/user-lists'; import { normalizeAccount, normalizeInstance, normalizeRelationship } from '../../normalizers'; import { diff --git a/app/soapbox/actions/__tests__/blocks.test.ts b/app/soapbox/actions/__tests__/blocks.test.ts index 8b4c040b3..49f649ab6 100644 --- a/app/soapbox/actions/__tests__/blocks.test.ts +++ b/app/soapbox/actions/__tests__/blocks.test.ts @@ -1,6 +1,6 @@ import { __stub } from 'soapbox/api'; import { mockStore, rootState } from 'soapbox/jest/test-helpers'; -import { ListRecord, ReducerRecord as UserListsRecord } from 'soapbox/reducers/user_lists'; +import { ListRecord, ReducerRecord as UserListsRecord } from 'soapbox/reducers/user-lists'; import { expandBlocks, fetchBlocks } from '../blocks'; diff --git a/app/soapbox/features/scheduled-statuses/builder.tsx b/app/soapbox/features/scheduled-statuses/builder.tsx index 9db827412..dbd40f101 100644 --- a/app/soapbox/features/scheduled-statuses/builder.tsx +++ b/app/soapbox/features/scheduled-statuses/builder.tsx @@ -4,7 +4,7 @@ import { normalizeStatus } from 'soapbox/normalizers/status'; import { calculateStatus } from 'soapbox/reducers/statuses'; import { makeGetAccount } from 'soapbox/selectors'; -import type { ScheduledStatus } from 'soapbox/reducers/scheduled_statuses'; +import type { ScheduledStatus } from 'soapbox/reducers/scheduled-statuses'; import type { RootState } from 'soapbox/store'; export const buildStatus = (state: RootState, scheduledStatus: ScheduledStatus) => { diff --git a/app/soapbox/features/ui/components/reactions_modal.tsx b/app/soapbox/features/ui/components/reactions_modal.tsx index 5656eca18..60c8bd158 100644 --- a/app/soapbox/features/ui/components/reactions_modal.tsx +++ b/app/soapbox/features/ui/components/reactions_modal.tsx @@ -7,7 +7,7 @@ import ScrollableList from 'soapbox/components/scrollable-list'; import { Emoji, Modal, Spinner, Tabs } from 'soapbox/components/ui'; import AccountContainer from 'soapbox/containers/account-container'; import { useAppDispatch, useAppSelector } from 'soapbox/hooks'; -import { ReactionRecord } from 'soapbox/reducers/user_lists'; +import { ReactionRecord } from 'soapbox/reducers/user-lists'; import type { Item } from 'soapbox/components/ui/tabs/tabs'; diff --git a/app/soapbox/features/ui/util/pending_status_builder.ts b/app/soapbox/features/ui/util/pending_status_builder.ts index 1ec288bbe..cc3a06102 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/reducers/__tests__/accounts_counters.test.ts b/app/soapbox/reducers/__tests__/accounts-counters.test.ts similarity index 97% rename from app/soapbox/reducers/__tests__/accounts_counters.test.ts rename to app/soapbox/reducers/__tests__/accounts-counters.test.ts index 114f28b54..f1259696a 100644 --- a/app/soapbox/reducers/__tests__/accounts_counters.test.ts +++ b/app/soapbox/reducers/__tests__/accounts-counters.test.ts @@ -1,6 +1,6 @@ import { Map as ImmutableMap } from 'immutable'; -import reducer from '../accounts_counters'; +import reducer from '../accounts-counters'; // import { ACCOUNT_FOLLOW_SUCCESS, ACCOUNT_UNFOLLOW_SUCCESS } from 'soapbox/actions/accounts'; // import relationship from 'soapbox/__fixtures__/relationship.json'; // import accounts_counter_initial from 'soapbox/__fixtures__/accounts_counter_initial.json'; diff --git a/app/soapbox/reducers/__tests__/custom_emojis.test.ts b/app/soapbox/reducers/__tests__/custom-emojis.test.ts similarity index 84% rename from app/soapbox/reducers/__tests__/custom_emojis.test.ts rename to app/soapbox/reducers/__tests__/custom-emojis.test.ts index e2991d5fb..294c9c0cf 100644 --- a/app/soapbox/reducers/__tests__/custom_emojis.test.ts +++ b/app/soapbox/reducers/__tests__/custom-emojis.test.ts @@ -1,6 +1,6 @@ import { List as ImmutableList } from 'immutable'; -import reducer from '../custom_emojis'; +import reducer from '../custom-emojis'; describe('custom_emojis reducer', () => { it('should return the initial state', () => { diff --git a/app/soapbox/reducers/__tests__/domain_lists.test.ts b/app/soapbox/reducers/__tests__/domain-lists.test.ts similarity index 85% rename from app/soapbox/reducers/__tests__/domain_lists.test.ts rename to app/soapbox/reducers/__tests__/domain-lists.test.ts index 573ec9262..7ba4d32f7 100644 --- a/app/soapbox/reducers/__tests__/domain_lists.test.ts +++ b/app/soapbox/reducers/__tests__/domain-lists.test.ts @@ -1,4 +1,4 @@ -import reducer from '../domain_lists'; +import reducer from '../domain-lists'; describe('domain_lists reducer', () => { it('should return the initial state', () => { diff --git a/app/soapbox/reducers/__tests__/dropdown_menu.test.ts b/app/soapbox/reducers/__tests__/dropdown-menu.test.ts similarity index 85% rename from app/soapbox/reducers/__tests__/dropdown_menu.test.ts rename to app/soapbox/reducers/__tests__/dropdown-menu.test.ts index 676af592f..5168d5e73 100644 --- a/app/soapbox/reducers/__tests__/dropdown_menu.test.ts +++ b/app/soapbox/reducers/__tests__/dropdown-menu.test.ts @@ -1,4 +1,4 @@ -import reducer from '../dropdown_menu'; +import reducer from '../dropdown-menu'; describe('dropdown_menu reducer', () => { it('should return the initial state', () => { diff --git a/app/soapbox/reducers/__tests__/list_adder.test.ts b/app/soapbox/reducers/__tests__/list-adder.test.ts similarity index 98% rename from app/soapbox/reducers/__tests__/list_adder.test.ts rename to app/soapbox/reducers/__tests__/list-adder.test.ts index 3989cf5e7..f3ede138c 100644 --- a/app/soapbox/reducers/__tests__/list_adder.test.ts +++ b/app/soapbox/reducers/__tests__/list-adder.test.ts @@ -2,7 +2,7 @@ import { List as ImmutableList, Record as ImmutableRecord } from 'immutable'; import * as actions from 'soapbox/actions/lists'; -import reducer from '../list_adder'; +import reducer from '../list-adder'; describe('list_adder reducer', () => { it('should return the initial state', () => { diff --git a/app/soapbox/reducers/__tests__/push_notifications.test.ts b/app/soapbox/reducers/__tests__/push-notifications.test.ts similarity index 90% rename from app/soapbox/reducers/__tests__/push_notifications.test.ts rename to app/soapbox/reducers/__tests__/push-notifications.test.ts index 6afcba258..89778cf23 100644 --- a/app/soapbox/reducers/__tests__/push_notifications.test.ts +++ b/app/soapbox/reducers/__tests__/push-notifications.test.ts @@ -1,4 +1,4 @@ -import reducer from '../push_notifications'; +import reducer from '../push-notifications'; describe('push_notifications reducer', () => { it('should return the initial state', () => { diff --git a/app/soapbox/reducers/__tests__/status_lists.test.ts b/app/soapbox/reducers/__tests__/status-lists.test.ts similarity index 94% rename from app/soapbox/reducers/__tests__/status_lists.test.ts rename to app/soapbox/reducers/__tests__/status-lists.test.ts index 2333df89a..b01daee09 100644 --- a/app/soapbox/reducers/__tests__/status_lists.test.ts +++ b/app/soapbox/reducers/__tests__/status-lists.test.ts @@ -1,4 +1,4 @@ -import reducer from '../status_lists'; +import reducer from '../status-lists'; describe('status_lists reducer', () => { it('should return the initial state', () => { diff --git a/app/soapbox/reducers/__tests__/user_lists.test.ts b/app/soapbox/reducers/__tests__/user-lists.test.ts similarity index 95% rename from app/soapbox/reducers/__tests__/user_lists.test.ts rename to app/soapbox/reducers/__tests__/user-lists.test.ts index fa23f845f..396ca7239 100644 --- a/app/soapbox/reducers/__tests__/user_lists.test.ts +++ b/app/soapbox/reducers/__tests__/user-lists.test.ts @@ -1,6 +1,6 @@ import { OrderedSet as ImmutableOrderedSet } from 'immutable'; -import reducer from '../user_lists'; +import reducer from '../user-lists'; describe('user_lists reducer', () => { it('should return the initial state', () => { diff --git a/app/soapbox/reducers/account_notes.ts b/app/soapbox/reducers/account-notes.ts similarity index 100% rename from app/soapbox/reducers/account_notes.ts rename to app/soapbox/reducers/account-notes.ts diff --git a/app/soapbox/reducers/accounts_counters.ts b/app/soapbox/reducers/accounts-counters.ts similarity index 100% rename from app/soapbox/reducers/accounts_counters.ts rename to app/soapbox/reducers/accounts-counters.ts diff --git a/app/soapbox/reducers/admin_log.ts b/app/soapbox/reducers/admin-log.ts similarity index 100% rename from app/soapbox/reducers/admin_log.ts rename to app/soapbox/reducers/admin-log.ts diff --git a/app/soapbox/reducers/chat_message_lists.ts b/app/soapbox/reducers/chat-message-lists.ts similarity index 100% rename from app/soapbox/reducers/chat_message_lists.ts rename to app/soapbox/reducers/chat-message-lists.ts diff --git a/app/soapbox/reducers/chat_messages.ts b/app/soapbox/reducers/chat-messages.ts similarity index 100% rename from app/soapbox/reducers/chat_messages.ts rename to app/soapbox/reducers/chat-messages.ts diff --git a/app/soapbox/reducers/custom_emojis.ts b/app/soapbox/reducers/custom-emojis.ts similarity index 100% rename from app/soapbox/reducers/custom_emojis.ts rename to app/soapbox/reducers/custom-emojis.ts diff --git a/app/soapbox/reducers/domain_lists.ts b/app/soapbox/reducers/domain-lists.ts similarity index 100% rename from app/soapbox/reducers/domain_lists.ts rename to app/soapbox/reducers/domain-lists.ts diff --git a/app/soapbox/reducers/dropdown_menu.ts b/app/soapbox/reducers/dropdown-menu.ts similarity index 100% rename from app/soapbox/reducers/dropdown_menu.ts rename to app/soapbox/reducers/dropdown-menu.ts diff --git a/app/soapbox/reducers/index.ts b/app/soapbox/reducers/index.ts index 8c59c014f..16e7307da 100644 --- a/app/soapbox/reducers/index.ts +++ b/app/soapbox/reducers/index.ts @@ -4,31 +4,31 @@ import { combineReducers } from 'redux-immutable'; import { AUTH_LOGGED_OUT } from 'soapbox/actions/auth'; 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_counters from './accounts_counters'; +import accounts_counters from './accounts-counters'; import accounts_meta from './accounts_meta'; import admin from './admin'; -import admin_log from './admin_log'; +import admin_log from './admin-log'; import alerts from './alerts'; import aliases from './aliases'; import announcements from './announcements'; import auth from './auth'; import backups from './backups'; -import chat_message_lists from './chat_message_lists'; -import chat_messages from './chat_messages'; +import chat_message_lists from './chat-message-lists'; +import chat_messages from './chat-messages'; import chats from './chats'; import compose from './compose'; import contexts from './contexts'; import conversations from './conversations'; -import custom_emojis from './custom_emojis'; -import domain_lists from './domain_lists'; -import dropdown_menu from './dropdown_menu'; +import custom_emojis from './custom-emojis'; +import domain_lists from './domain-lists'; +import dropdown_menu from './dropdown-menu'; import filters from './filters'; import history from './history'; import instance from './instance'; -import listAdder from './list_adder'; -import listEditor from './list_editor'; +import listAdder from './list-adder'; +import listEditor from './list-editor'; import lists from './lists'; import me from './me'; import meta from './meta'; @@ -37,27 +37,27 @@ import mutes from './mutes'; import notifications from './notifications'; import onboarding from './onboarding'; import patron from './patron'; -import pending_statuses from './pending_statuses'; +import pending_statuses from './pending-statuses'; import polls from './polls'; -import profile_hover_card from './profile_hover_card'; -import push_notifications from './push_notifications'; +import profile_hover_card from './profile-hover-card'; +import push_notifications from './push-notifications'; import relationships from './relationships'; import reports from './reports'; import rules from './rules'; -import scheduled_statuses from './scheduled_statuses'; +import scheduled_statuses from './scheduled-statuses'; import search from './search'; import security from './security'; import settings from './settings'; import sidebar from './sidebar'; import soapbox from './soapbox'; import status_hover_card from './status-hover-card'; -import status_lists from './status_lists'; +import status_lists from './status-lists'; import statuses from './statuses'; import suggestions from './suggestions'; import timelines from './timelines'; -import trending_statuses from './trending_statuses'; +import trending_statuses from './trending-statuses'; import trends from './trends'; -import user_lists from './user_lists'; +import user_lists from './user-lists'; import verification from './verification'; const reducers = { diff --git a/app/soapbox/reducers/list_adder.ts b/app/soapbox/reducers/list-adder.ts similarity index 100% rename from app/soapbox/reducers/list_adder.ts rename to app/soapbox/reducers/list-adder.ts diff --git a/app/soapbox/reducers/list_editor.ts b/app/soapbox/reducers/list-editor.ts similarity index 100% rename from app/soapbox/reducers/list_editor.ts rename to app/soapbox/reducers/list-editor.ts diff --git a/app/soapbox/reducers/pending_statuses.ts b/app/soapbox/reducers/pending-statuses.ts similarity index 100% rename from app/soapbox/reducers/pending_statuses.ts rename to app/soapbox/reducers/pending-statuses.ts diff --git a/app/soapbox/reducers/profile_hover_card.ts b/app/soapbox/reducers/profile-hover-card.ts similarity index 100% rename from app/soapbox/reducers/profile_hover_card.ts rename to app/soapbox/reducers/profile-hover-card.ts diff --git a/app/soapbox/reducers/push_notifications.ts b/app/soapbox/reducers/push-notifications.ts similarity index 100% rename from app/soapbox/reducers/push_notifications.ts rename to app/soapbox/reducers/push-notifications.ts diff --git a/app/soapbox/reducers/scheduled_statuses.ts b/app/soapbox/reducers/scheduled-statuses.ts similarity index 100% rename from app/soapbox/reducers/scheduled_statuses.ts rename to app/soapbox/reducers/scheduled-statuses.ts diff --git a/app/soapbox/reducers/status_lists.ts b/app/soapbox/reducers/status-lists.ts similarity index 100% rename from app/soapbox/reducers/status_lists.ts rename to app/soapbox/reducers/status-lists.ts diff --git a/app/soapbox/reducers/trending_statuses.ts b/app/soapbox/reducers/trending-statuses.ts similarity index 100% rename from app/soapbox/reducers/trending_statuses.ts rename to app/soapbox/reducers/trending-statuses.ts diff --git a/app/soapbox/reducers/user_lists.ts b/app/soapbox/reducers/user-lists.ts similarity index 100% rename from app/soapbox/reducers/user_lists.ts rename to app/soapbox/reducers/user-lists.ts