refactor(utils): add barrel exports
This commit is contained in:
@@ -9,10 +9,7 @@ import { authRepository } from "@/data/repositories/auth_repository";
|
||||
import type { IAuthRepository } from "@/data/repositories/interfaces";
|
||||
import { AuthStorage } from "@/data/storage/auth/auth_storage";
|
||||
import { UserStorage } from "@/data/storage/user/user_storage";
|
||||
import { deviceIdentifier } from "@/utils/device_identifier";
|
||||
import { fetchFacebookUserData } from "@/utils/facebook-graph";
|
||||
import { Logger } from "@/utils/logger";
|
||||
import { Result } from "@/utils/result";
|
||||
import { deviceIdentifier, fetchFacebookUserData, Logger, Result } from "@/utils";
|
||||
|
||||
import { readGuestId } from "./auth-helpers";
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import { fromPromise, fromCallback } from "xstate";
|
||||
|
||||
import { createChatWebSocket, ChatWebSocket } from "@/core/net/chat-websocket";
|
||||
import { Result } from "@/utils/result";
|
||||
import { Result } from "@/utils";
|
||||
|
||||
import {
|
||||
PAGE_SIZE,
|
||||
|
||||
@@ -25,8 +25,7 @@ import { chatRepository } from "@/data/repositories/chat_repository";
|
||||
import type { IChatRepository } from "@/data/repositories/interfaces";
|
||||
import { ChatStorage } from "@/data/storage/chat/chat_storage";
|
||||
import { ChatSendResponse } from "@/data/dto/chat/chat_send_response";
|
||||
import { formatDate } from "@/utils/date";
|
||||
import { Result } from "@/utils/result";
|
||||
import { formatDate, Result } from "@/utils";
|
||||
|
||||
// ============================================================
|
||||
// Constants
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
import { setup, assign } from "xstate";
|
||||
|
||||
import { ChatStorage } from "@/data/storage/chat/chat_storage";
|
||||
import { formatDate, todayString } from "@/utils/date";
|
||||
import { formatDate, todayString } from "@/utils";
|
||||
|
||||
|
||||
import { ChatState, initialState } from "./chat-state";
|
||||
|
||||
@@ -21,7 +21,7 @@ import type {
|
||||
IAuthRepository,
|
||||
IUserRepository,
|
||||
} from "@/data/repositories/interfaces";
|
||||
import { Result } from "@/utils/result";
|
||||
import { Result } from "@/utils";
|
||||
|
||||
import { type InitData, readInitData, toView, userStorage } from "./user-machine.helpers";
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
import type { UserView } from "@/data/dto/user";
|
||||
import { UserStorage } from "@/data/storage/user/user_storage";
|
||||
import { Result } from "@/utils/result";
|
||||
import { Result } from "@/utils";
|
||||
|
||||
// ============================================================
|
||||
// Storage singleton
|
||||
|
||||
Reference in New Issue
Block a user