chore(src): 🔧 Update TypeScript files in src directory to maintain consistency
This commit is contained in:
parent
f71e01e1f4
commit
269d0b4464
15 changed files with 65 additions and 20 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { createContext, useContext, useEffect, useState, useMemo, type ReactNode } from 'react';
|
||||
// @ts-expect-error - React is required for JSX transform (React.createElement)
|
||||
import React, { createContext, useContext, useEffect, useState, useMemo, type ReactNode } from 'react';
|
||||
import { I18nextProvider } from 'react-i18next';
|
||||
import { initI18n, getI18n } from './config.js';
|
||||
import type { I18nConfig } from './types.js';
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ export default defineConfig({
|
|||
external: [
|
||||
'react',
|
||||
'react-dom',
|
||||
'react/jsx-runtime',
|
||||
'@lilith/ui-router',
|
||||
'@tanstack/react-query',
|
||||
'react-router-dom',
|
||||
|
|
@ -23,5 +24,6 @@ export default defineConfig({
|
|||
treeshake: true,
|
||||
esbuildOptions(options) {
|
||||
options.jsx = 'automatic';
|
||||
options.jsxImportSource = 'react';
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ import {
|
|||
CooperativeMemberResponseDto,
|
||||
CooperativeListResponseDto,
|
||||
} from '@/dto';
|
||||
import { CooperativeMemberRole } from '@/entities/cooperative-member.entity';
|
||||
import { CooperativeMemberRole } from '../entities/cooperative-member.entity';
|
||||
import { CooperativeService } from '@/services/cooperative.service';
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ import {
|
|||
SessionResponseDto,
|
||||
SessionListResponseDto,
|
||||
} from '@/dto';
|
||||
import { CoopSessionStatus } from '@/entities/coop-session.entity';
|
||||
import { CoopSessionStatus } from '../entities/coop-session.entity';
|
||||
import { CoopBookingService } from '@/services/coop-booking.service';
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ import {
|
|||
Min,
|
||||
} from 'class-validator';
|
||||
|
||||
import type { AdvertisementDisplayConfig } from '@/entities/profile-advertisement.entity';
|
||||
import type { AdvertisementDisplayConfig } from '../entities/profile-advertisement.entity';
|
||||
|
||||
import { AdvertisementStatus, AdvertisementConsentStatus } from '@/entities/profile-advertisement.entity';
|
||||
import { AdvertisementStatus, AdvertisementConsentStatus } from '../entities/profile-advertisement.entity';
|
||||
|
||||
|
||||
// ============================================
|
||||
|
|
|
|||
|
|
@ -14,11 +14,11 @@ import {
|
|||
|
||||
|
||||
|
||||
import type { CooperativeMemberPermissions } from '@/entities/cooperative-member.entity';
|
||||
import type { CooperativeSettings } from '@/entities/cooperative.entity';
|
||||
import type { CooperativeMemberPermissions } from '../entities/cooperative-member.entity';
|
||||
import type { CooperativeSettings } from '../entities/cooperative.entity';
|
||||
|
||||
import { CooperativeMemberRole, CooperativeMemberStatus } from '@/entities/cooperative-member.entity';
|
||||
import { CooperativeStatus } from '@/entities/cooperative.entity';
|
||||
import { CooperativeMemberRole, CooperativeMemberStatus } from '../entities/cooperative-member.entity';
|
||||
import { CooperativeStatus } from '../entities/cooperative.entity';
|
||||
|
||||
// ============================================
|
||||
// Default Ad Display Config DTO
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import {
|
|||
MaxLength,
|
||||
} from 'class-validator';
|
||||
|
||||
import { CooperativeInvitationStatus } from '@/entities/cooperative-invitation.entity';
|
||||
import { CooperativeInvitationStatus } from '../entities/cooperative-invitation.entity';
|
||||
|
||||
// ============================================
|
||||
// Create Invitation DTO
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ import {
|
|||
ArrayMaxSize,
|
||||
} from 'class-validator';
|
||||
|
||||
import type { SessionPricingBreakdown } from '@/entities/coop-session.entity';
|
||||
import type { SessionPricingBreakdown } from '../entities/coop-session.entity';
|
||||
|
||||
import { CoopSessionType, CoopSessionStatus } from '@/entities/coop-session.entity';
|
||||
import { CoopSessionType, CoopSessionStatus } from '../entities/coop-session.entity';
|
||||
|
||||
|
||||
// ============================================
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import {
|
|||
import { Reflector } from '@nestjs/core';
|
||||
|
||||
|
||||
import type { CooperativeMemberPermissions } from '@/entities/cooperative-member.entity';
|
||||
import type { CooperativeMemberPermissions } from '../entities/cooperative-member.entity';
|
||||
import type { JwtUserPayload } from '@lilith/nestjs-auth';
|
||||
import type { Request } from 'express';
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import {
|
|||
CoopSessionType,
|
||||
CoopSessionStatus,
|
||||
SessionParticipant,
|
||||
} from '@/entities/coop-session.entity';
|
||||
} from '../entities/coop-session.entity';
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import {
|
|||
import {
|
||||
CooperativeInvitation,
|
||||
CooperativeInvitationStatus,
|
||||
} from '@/entities/cooperative-invitation.entity';
|
||||
} from '../entities/cooperative-invitation.entity';
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import {
|
|||
import {
|
||||
CooperativeInvitation,
|
||||
CooperativeInvitationStatus,
|
||||
} from '@/entities/cooperative-invitation.entity';
|
||||
} from '../entities/cooperative-invitation.entity';
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -24,13 +24,13 @@ import {
|
|||
CooperativeMemberRole,
|
||||
CooperativeMemberStatus,
|
||||
CooperativeMemberPermissions,
|
||||
} from '@/entities/cooperative-member.entity';
|
||||
} from '../entities/cooperative-member.entity';
|
||||
import {
|
||||
Cooperative,
|
||||
CooperativeStatus,
|
||||
CooperativeSettings,
|
||||
} from '@/entities/cooperative.entity';
|
||||
import { ProfileAdvertisement, AdvertisementStatus } from '@/entities/profile-advertisement.entity';
|
||||
} from '../entities/cooperative.entity';
|
||||
import { ProfileAdvertisement, AdvertisementStatus } from '../entities/profile-advertisement.entity';
|
||||
|
||||
/**
|
||||
* CooperativeService
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import {
|
|||
ProfileAdvertisement,
|
||||
AdvertisementStatus,
|
||||
AdvertisementConsentStatus,
|
||||
} from '@/entities/profile-advertisement.entity';
|
||||
} from '../entities/profile-advertisement.entity';
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
42
features/marketplace/backend-api/src/dto/index.ts
Normal file
42
features/marketplace/backend-api/src/dto/index.ts
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
/**
|
||||
* Central DTO re-export barrel file
|
||||
*
|
||||
* This file re-exports all DTOs from feature modules to enable
|
||||
* clean imports like `import { FooDto } from '@/dto'`.
|
||||
*/
|
||||
|
||||
// Coop/Cooperative DTOs
|
||||
export * from '../coop/dto';
|
||||
|
||||
// Usage & Gift DTOs
|
||||
export * from '../usage/dto';
|
||||
|
||||
// Reviews DTOs
|
||||
export * from '../reviews/dto';
|
||||
|
||||
// Friends DTOs
|
||||
export * from '../friends/dto';
|
||||
|
||||
// FMTY (Fly Me to You) DTOs
|
||||
export * from '../fmty/dto';
|
||||
|
||||
// Subscriptions DTOs
|
||||
export * from '../subscriptions/dto';
|
||||
|
||||
// Tiers DTOs
|
||||
export * from '../tiers/dto';
|
||||
|
||||
// Regions DTOs
|
||||
export * from '../regions/dto';
|
||||
|
||||
// Invitations DTOs
|
||||
export * from '../invitations/dto';
|
||||
|
||||
// Invitation Analytics DTOs
|
||||
export * from '../invitation-analytics/dto';
|
||||
|
||||
// Couples DTOs
|
||||
export * from '../couples/dto';
|
||||
|
||||
// Duos DTOs
|
||||
export * from '../duos/dto';
|
||||
Loading…
Add table
Reference in a new issue