From 8a6ad5e6f798b3e0041e0768a695a34df1051dc8 Mon Sep 17 00:00:00 2001 From: Chewbacca Date: Tue, 15 Nov 2022 14:06:20 -0500 Subject: [PATCH] Rename files (7): normalizers --- .../{admin_account.ts => admin-account.ts} | 0 .../normalizers/{admin_report.ts => admin-report.ts} | 0 ...uncement_reaction.ts => announcement-reaction.ts} | 0 app/soapbox/normalizers/announcement.ts | 2 +- .../normalizers/{chat_message.ts => chat-message.ts} | 0 app/soapbox/normalizers/index.ts | 12 ++++++------ .../soapbox/__tests__/soapbox_config-test.ts | 2 +- .../soapbox/{soapbox_config.ts => soapbox-config.ts} | 0 .../normalizers/{status_edit.ts => status-edit.ts} | 0 app/soapbox/types/soapbox.ts | 2 +- 10 files changed, 9 insertions(+), 9 deletions(-) rename app/soapbox/normalizers/{admin_account.ts => admin-account.ts} (100%) rename app/soapbox/normalizers/{admin_report.ts => admin-report.ts} (100%) rename app/soapbox/normalizers/{announcement_reaction.ts => announcement-reaction.ts} (100%) rename app/soapbox/normalizers/{chat_message.ts => chat-message.ts} (100%) rename app/soapbox/normalizers/soapbox/{soapbox_config.ts => soapbox-config.ts} (100%) rename app/soapbox/normalizers/{status_edit.ts => status-edit.ts} (100%) diff --git a/app/soapbox/normalizers/admin_account.ts b/app/soapbox/normalizers/admin-account.ts similarity index 100% rename from app/soapbox/normalizers/admin_account.ts rename to app/soapbox/normalizers/admin-account.ts diff --git a/app/soapbox/normalizers/admin_report.ts b/app/soapbox/normalizers/admin-report.ts similarity index 100% rename from app/soapbox/normalizers/admin_report.ts rename to app/soapbox/normalizers/admin-report.ts diff --git a/app/soapbox/normalizers/announcement_reaction.ts b/app/soapbox/normalizers/announcement-reaction.ts similarity index 100% rename from app/soapbox/normalizers/announcement_reaction.ts rename to app/soapbox/normalizers/announcement-reaction.ts diff --git a/app/soapbox/normalizers/announcement.ts b/app/soapbox/normalizers/announcement.ts index 59bc087ae8..b7573091c1 100644 --- a/app/soapbox/normalizers/announcement.ts +++ b/app/soapbox/normalizers/announcement.ts @@ -14,7 +14,7 @@ import emojify from 'soapbox/features/emoji/emoji'; import { normalizeEmoji } from 'soapbox/normalizers/emoji'; import { makeEmojiMap } from 'soapbox/utils/normalizers'; -import { normalizeAnnouncementReaction } from './announcement_reaction'; +import { normalizeAnnouncementReaction } from './announcement-reaction'; import { normalizeMention } from './mention'; import type { AnnouncementReaction, Emoji, Mention } from 'soapbox/types/entities'; diff --git a/app/soapbox/normalizers/chat_message.ts b/app/soapbox/normalizers/chat-message.ts similarity index 100% rename from app/soapbox/normalizers/chat_message.ts rename to app/soapbox/normalizers/chat-message.ts diff --git a/app/soapbox/normalizers/index.ts b/app/soapbox/normalizers/index.ts index 9fdc04f68b..0d2d1622cc 100644 --- a/app/soapbox/normalizers/index.ts +++ b/app/soapbox/normalizers/index.ts @@ -1,12 +1,12 @@ export { AccountRecord, FieldRecord, normalizeAccount } from './account'; -export { AdminAccountRecord, normalizeAdminAccount } from './admin_account'; -export { AdminReportRecord, normalizeAdminReport } from './admin_report'; +export { AdminAccountRecord, normalizeAdminAccount } from './admin-account'; +export { AdminReportRecord, normalizeAdminReport } from './admin-report'; export { AnnouncementRecord, normalizeAnnouncement } from './announcement'; -export { AnnouncementReactionRecord, normalizeAnnouncementReaction } from './announcement_reaction'; +export { AnnouncementReactionRecord, normalizeAnnouncementReaction } from './announcement-reaction'; export { AttachmentRecord, normalizeAttachment } from './attachment'; export { CardRecord, normalizeCard } from './card'; export { ChatRecord, normalizeChat } from './chat'; -export { ChatMessageRecord, normalizeChatMessage } from './chat_message'; +export { ChatMessageRecord, normalizeChatMessage } from './chat-message'; export { EmojiRecord, normalizeEmoji } from './emoji'; export { FilterRecord, normalizeFilter } from './filter'; export { HistoryRecord, normalizeHistory } from './history'; @@ -17,8 +17,8 @@ export { NotificationRecord, normalizeNotification } from './notification'; export { PollRecord, PollOptionRecord, normalizePoll } from './poll'; export { RelationshipRecord, normalizeRelationship } from './relationship'; export { StatusRecord, normalizeStatus } from './status'; -export { StatusEditRecord, normalizeStatusEdit } from './status_edit'; +export { StatusEditRecord, normalizeStatusEdit } from './status-edit'; export { TagRecord, normalizeTag } from './tag'; export { AdRecord, normalizeAd } from './soapbox/ad'; -export { SoapboxConfigRecord, normalizeSoapboxConfig } from './soapbox/soapbox_config'; +export { SoapboxConfigRecord, normalizeSoapboxConfig } from './soapbox/soapbox-config'; diff --git a/app/soapbox/normalizers/soapbox/__tests__/soapbox_config-test.ts b/app/soapbox/normalizers/soapbox/__tests__/soapbox_config-test.ts index e48198ecc1..9b70eba362 100644 --- a/app/soapbox/normalizers/soapbox/__tests__/soapbox_config-test.ts +++ b/app/soapbox/normalizers/soapbox/__tests__/soapbox_config-test.ts @@ -1,6 +1,6 @@ import { Record as ImmutableRecord } from 'immutable'; -import { normalizeSoapboxConfig } from '../soapbox_config'; +import { normalizeSoapboxConfig } from '../soapbox-config'; describe('normalizeSoapboxConfig()', () => { it('adds base fields', () => { diff --git a/app/soapbox/normalizers/soapbox/soapbox_config.ts b/app/soapbox/normalizers/soapbox/soapbox-config.ts similarity index 100% rename from app/soapbox/normalizers/soapbox/soapbox_config.ts rename to app/soapbox/normalizers/soapbox/soapbox-config.ts diff --git a/app/soapbox/normalizers/status_edit.ts b/app/soapbox/normalizers/status-edit.ts similarity index 100% rename from app/soapbox/normalizers/status_edit.ts rename to app/soapbox/normalizers/status-edit.ts diff --git a/app/soapbox/types/soapbox.ts b/app/soapbox/types/soapbox.ts index 1a37d1a88d..3b8b247a69 100644 --- a/app/soapbox/types/soapbox.ts +++ b/app/soapbox/types/soapbox.ts @@ -4,7 +4,7 @@ import { FooterItemRecord, CryptoAddressRecord, SoapboxConfigRecord, -} from 'soapbox/normalizers/soapbox/soapbox_config'; +} from 'soapbox/normalizers/soapbox/soapbox-config'; type Me = string | null | false | undefined;