mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
refactor(imports): replace relative imports with path aliases (#2741)
This commit is contained in:
1 parent
a59b80ce11
commit
84dcf6b8a8
1834 files changed
+11601
-10725
No files matched your search
@@ -1,13 +1,13 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {describe, expect, it} from 'vitest';
|
||||
import {
|
||||
type ChannelIncomingMessageInput,
|
||||
createChannelIncomingMessageSnapshot,
|
||||
resolveChannelIncomingMessageDecision,
|
||||
selectChannelIncomingMessageDecision,
|
||||
transitionChannelIncomingMessageSnapshot,
|
||||
} from './ChannelIncomingMessageStateMachine';
|
||||
} from '@app/features/messaging/state/ChannelIncomingMessageStateMachine';
|
||||
import {describe, expect, it} from 'vitest';
|
||||
|
||||
function input(overrides: Partial<ChannelIncomingMessageInput> = {}): ChannelIncomingMessageInput {
|
||||
return {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {describe, expect, it} from 'vitest';
|
||||
import {
|
||||
type ChannelMessagesLoadInput,
|
||||
type ChannelMessagesWindowInput,
|
||||
@@ -17,7 +16,8 @@ import {
|
||||
selectChannelMessagesWindowStatus,
|
||||
transitionChannelMessagesLoadSnapshot,
|
||||
transitionChannelMessagesWindowSnapshot,
|
||||
} from './ChannelMessagesLoadStateMachine';
|
||||
} from '@app/features/messaging/state/ChannelMessagesLoadStateMachine';
|
||||
import {describe, expect, it} from 'vitest';
|
||||
|
||||
function input(overrides: Partial<ChannelMessagesLoadInput> = {}): ChannelMessagesLoadInput {
|
||||
return {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {describe, expect, it} from 'vitest';
|
||||
import {
|
||||
createMessageLocalSendRateLimitSnapshot,
|
||||
createMessageQueuePayloadRouteSnapshot,
|
||||
@@ -19,7 +18,8 @@ import {
|
||||
transitionMessageQueuePayloadRouteSnapshot,
|
||||
transitionMessageQueueRequestOutcomeSnapshot,
|
||||
transitionMessageQueueSendExecutionSnapshot,
|
||||
} from './MessageQueueStateMachine';
|
||||
} from '@app/features/messaging/state/MessageQueueStateMachine';
|
||||
import {describe, expect, it} from 'vitest';
|
||||
|
||||
function localLimiter(overrides: Partial<MessageLocalSendRateLimitInput> = {}): MessageLocalSendRateLimitInput {
|
||||
return {
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type {ReactionEmoji} from '@app/features/messaging/utils/ReactionUtils';
|
||||
import {bench, describe} from 'vitest';
|
||||
import {
|
||||
createReactionMachineSnapshot,
|
||||
emptyMap,
|
||||
mapToReactions,
|
||||
transitionReactionSnapshot,
|
||||
} from './ReactionStateMachine';
|
||||
} from '@app/features/messaging/state/ReactionStateMachine';
|
||||
import type {ReactionEmoji} from '@app/features/messaging/utils/ReactionUtils';
|
||||
import {bench, describe} from 'vitest';
|
||||
|
||||
const EMOJIS: Array<ReactionEmoji> = Array.from({length: 32}, (_value, index) => ({
|
||||
id: index % 3 === 0 ? `emoji-${index}` : undefined,
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type {ReactionEmoji} from '@app/features/messaging/utils/ReactionUtils';
|
||||
import {describe, expect, it} from 'vitest';
|
||||
import {
|
||||
applyAdd,
|
||||
applyRemove,
|
||||
@@ -21,7 +19,9 @@ import {
|
||||
transitionReactionMap,
|
||||
transitionReactionSnapshot,
|
||||
untrackReactor,
|
||||
} from './ReactionStateMachine';
|
||||
} from '@app/features/messaging/state/ReactionStateMachine';
|
||||
import type {ReactionEmoji} from '@app/features/messaging/utils/ReactionUtils';
|
||||
import {describe, expect, it} from 'vitest';
|
||||
|
||||
const ME = 'me-user-id';
|
||||
const ALICE = 'alice-id';
|
||||
|
||||
Reference in new issue
Block a user