refactor(imports): replace relative imports with path aliases (#2741)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-13 20:18:22 +02:00
1 parent a59b80ce11
commit 84dcf6b8a8
1834 files changed
+11601 -10725

No files matched your search

@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {isSettingsItemNew} from '@app/features/user/components/settings_utils/SettingsMetadata';
import {describe, expect, it} from 'vitest';
import {isSettingsItemNew} from './SettingsMetadata';
const NOW = new Date('2026-06-04T12:00:00.000Z');
@@ -1,9 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {STICKERS_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';
import {VOICE_CALL_DESCRIPTOR} from '@app/features/voice/utils/VoiceMessageDescriptors';
import {msg} from '@lingui/core/macro';
import type {SectionDefinition} from './SectionRegistryTypes';
import type {SectionDefinition} from '@app/features/user/components/settings_utils/section_registry/SectionRegistryTypes';
import {
ACCESSIBILITY_DESCRIPTOR,
CALL_DESCRIPTOR,
@@ -26,7 +24,9 @@ import {
STRIKETHROUGH_DESCRIPTOR,
TEXT_TO_SPEECH_3_DESCRIPTOR,
TTS_DESCRIPTOR,
} from './SharedDescriptors';
} from '@app/features/user/components/settings_utils/section_registry/SharedDescriptors';
import {VOICE_CALL_DESCRIPTOR} from '@app/features/voice/utils/VoiceMessageDescriptors';
import {msg} from '@lingui/core/macro';
const CONTRAST_DESCRIPTOR = msg({
message: 'Contrast',
@@ -1,10 +1,13 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {EMAIL_DESCRIPTOR, PASSWORD_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';
import {shouldShowClaimedAccountSections} from '@app/features/user/components/settings_utils/section_registry/SectionRegistryHelpers';
import type {SectionDefinition} from '@app/features/user/components/settings_utils/section_registry/SectionRegistryTypes';
import {
DELETE_DESCRIPTOR,
REMOVE_DESCRIPTOR,
} from '@app/features/user/components/settings_utils/section_registry/SharedDescriptors';
import {msg} from '@lingui/core/macro';
import {shouldShowClaimedAccountSections} from './SectionRegistryHelpers';
import type {SectionDefinition} from './SectionRegistryTypes';
import {DELETE_DESCRIPTOR, REMOVE_DESCRIPTOR} from './SharedDescriptors';
const MAIL_DESCRIPTOR = msg({
message: 'Mail',
@@ -7,8 +7,7 @@ import {
} from '@app/features/i18n/utils/CommonMessageDescriptors';
import {shouldShowHdrSettings} from '@app/features/user/components/modals/tabs/appearance_tab/AppearanceTabHdrTab';
import {shouldShowAppZoomLevel} from '@app/features/user/components/settings_utils/AppZoomLevelUtils';
import {msg} from '@lingui/core/macro';
import type {SectionDefinition} from './SectionRegistryTypes';
import type {SectionDefinition} from '@app/features/user/components/settings_utils/section_registry/SectionRegistryTypes';
import {
CHANNEL_LIST_DESCRIPTOR,
CHAT_INPUT_DESCRIPTOR,
@@ -29,7 +28,8 @@ import {
TYPING_DESCRIPTOR,
UNREAD_DESCRIPTOR,
VOICE_DESCRIPTOR,
} from './SharedDescriptors';
} from '@app/features/user/components/settings_utils/section_registry/SharedDescriptors';
import {msg} from '@lingui/core/macro';
const CHOOSE_A_BASE_APPEARANCE_MANAGE_QUICK_CSS_ORGANIZE_DESCRIPTOR = msg({
message: 'Choose a base appearance, manage quick CSS, organize saved theme files, and tune theme tokens.',
@@ -2,10 +2,13 @@
import {STICKERS_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';
import {getPermissionTitleDescriptor} from '@app/features/permissions/utils/PermissionLabelDescriptors';
import type {SectionDefinition} from '@app/features/user/components/settings_utils/section_registry/SectionRegistryTypes';
import {
EMOJI_DESCRIPTOR,
MENTIONS_DESCRIPTOR,
} from '@app/features/user/components/settings_utils/section_registry/SharedDescriptors';
import {Permissions} from '@fluxer/constants/src/ChannelConstants';
import {msg} from '@lingui/core/macro';
import type {SectionDefinition} from './SectionRegistryTypes';
import {EMOJI_DESCRIPTOR, MENTIONS_DESCRIPTOR} from './SharedDescriptors';
const REACTIONS_DESCRIPTOR = msg({
message: 'Reactions',
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import type {SectionDefinition} from '@app/features/user/components/settings_utils/section_registry/SectionRegistryTypes';
import {msg} from '@lingui/core/macro';
import type {SectionDefinition} from './SectionRegistryTypes';
const PROFILE_CUSTOMIZATION_DESCRIPTOR = msg({
message: 'Profile customization',
@@ -1,12 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {GENERAL_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';
import {
VOICE_DEAFEN_DESCRIPTOR,
VOICE_DEAFEN_SOUND_DESCRIPTOR,
} from '@app/features/voice/utils/VoiceMessageDescriptors';
import {msg} from '@lingui/core/macro';
import type {SectionDefinition} from './SectionRegistryTypes';
import type {SectionDefinition} from '@app/features/user/components/settings_utils/section_registry/SectionRegistryTypes';
import {
ACCESSIBILITY_DESCRIPTOR,
AUDIO_2_DESCRIPTOR,
@@ -25,7 +20,12 @@ import {
TTS_DESCRIPTOR,
UNREAD_DESCRIPTOR,
VOLUME_DESCRIPTOR,
} from './SharedDescriptors';
} from '@app/features/user/components/settings_utils/section_registry/SharedDescriptors';
import {
VOICE_DEAFEN_DESCRIPTOR,
VOICE_DEAFEN_SOUND_DESCRIPTOR,
} from '@app/features/voice/utils/VoiceMessageDescriptors';
import {msg} from '@lingui/core/macro';
const NOTIFICATIONS_2_DESCRIPTOR = msg({
message: 'Notifications',
@@ -6,8 +6,7 @@ import {
FRIENDS_OF_FRIENDS_DESCRIPTOR,
} from '@app/features/i18n/utils/CommonMessageDescriptors';
import {ADD_FRIEND_DESCRIPTOR} from '@app/features/relationship/utils/RelationshipMessageDescriptors';
import {msg} from '@lingui/core/macro';
import type {SectionDefinition} from './SectionRegistryTypes';
import type {SectionDefinition} from '@app/features/user/components/settings_utils/section_registry/SectionRegistryTypes';
import {
DELETE_DESCRIPTOR,
DIRECT_MESSAGE_DESCRIPTOR,
@@ -15,7 +14,8 @@ import {
FRIENDS_DESCRIPTOR,
REMOVE_DESCRIPTOR,
VOICE_DESCRIPTOR,
} from './SharedDescriptors';
} from '@app/features/user/components/settings_utils/section_registry/SharedDescriptors';
import {msg} from '@lingui/core/macro';
const FRIEND_REQUESTS_DESCRIPTOR = msg({
message: 'Friend requests',
@@ -1,5 +1,12 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import type {SectionDefinition} from '@app/features/user/components/settings_utils/section_registry/SectionRegistryTypes';
import {
AUDIO_2_DESCRIPTOR,
PLUTONIUM_DESCRIPTOR,
VOICE_DESCRIPTOR,
VOLUME_DESCRIPTOR,
} from '@app/features/user/components/settings_utils/section_registry/SharedDescriptors';
import {
VOICE_DIRECT_INPUT_PROFILE_DESCRIPTOR,
VOICE_ECHO_CANCELLATION_DESCRIPTOR,
@@ -11,8 +18,6 @@ import {
VOICE_OUTPUT_VOLUME_DESCRIPTOR,
} from '@app/features/voice/utils/VoiceMessageDescriptors';
import {msg} from '@lingui/core/macro';
import type {SectionDefinition} from './SectionRegistryTypes';
import {AUDIO_2_DESCRIPTOR, PLUTONIUM_DESCRIPTOR, VOICE_DESCRIPTOR, VOLUME_DESCRIPTOR} from './SharedDescriptors';
const CONFIGURE_YOUR_MICROPHONE_SPEAKERS_INPUT_MODE_PROCESSING_AND_DESCRIPTOR = msg({
message: 'Configure your microphone, speakers, input mode, processing, and voice sounds.',