veza/apps/web/src/components/ui/lazy-component/lazyExports.ts
senke 4a422fc4c3 feat(v0.10.1): Tags & Genres discover - F351-F355
- Tags déclaratifs (max 10, 30 chars) via track_tags + tags
- Genres normalisés (max 3) via track_genres + taxonomy
- GET /api/v1/discover/genre/:genre, tag/:tag (browse chrono)
- POST/DELETE follow genre/tag
- Section feed "Nouvelles sorties dans vos genres"
- Track update: SyncTrackTags, SyncTrackGenres via discover service
- Frontend: discoverService, FeedPage by_genres, DiscoverPage
- Migration 126_tags_genres_discover
- MSW handlers for discover
2026-03-09 01:52:56 +01:00

285 lines
7.1 KiB
TypeScript

import { createLazyComponent } from './createLazyComponent';
export const LazyDashboard = createLazyComponent(
() => import('@/features/dashboard/pages/DashboardPage'),
undefined,
'Dashboard',
);
export const LazyChat = createLazyComponent(
() =>
import('@/features/chat/pages/ChatPage').then((m) => ({ default: m.ChatPage })),
undefined,
'Chat',
);
export const LazyChatJoin = createLazyComponent(
() =>
import('@/features/chat/pages/ChatJoinPage').then((m) => ({ default: m.ChatJoinPage })),
undefined,
'Chat Join',
);
export const LazyLibrary = createLazyComponent(
() =>
import('@/features/library/pages/LibraryPage').then((m) => ({
default: m.LibraryPage,
})),
undefined,
'Library',
);
export const LazyProfile = createLazyComponent(
() =>
import('@/features/profile/pages/UserProfilePage').then((m) => ({
default: m.UserProfilePage,
})),
undefined,
'Profile',
);
export const LazySettings = createLazyComponent(
() =>
import('@/features/settings/pages/SettingsPage').then((m) => ({
default: m.SettingsPage,
})),
undefined,
'Settings',
);
export const LazyLogin = createLazyComponent(
() => import('@/features/auth/pages/LoginPage'),
undefined,
'Login',
);
export const LazyRegister = createLazyComponent(
() => import('@/features/auth/pages/RegisterPage'),
undefined,
'Register',
);
export const LazyForgotPassword = createLazyComponent(
() => import('@/features/auth/pages/ForgotPasswordPage'),
undefined,
'Forgot Password',
);
export const LazyVerifyEmail = createLazyComponent(
() => import('@/features/auth/pages/VerifyEmailPage'),
undefined,
'Verify Email',
);
export const LazyResetPassword = createLazyComponent(
() => import('@/features/auth/pages/ResetPasswordPage'),
undefined,
'Reset Password',
);
export const LazySessions = createLazyComponent(
() => import('@/features/auth/pages/SessionsPage'),
undefined,
'Sessions',
);
export const LazyNotFound = createLazyComponent(
() => import('@/features/error/pages/NotFoundPage'),
undefined,
'Not Found',
);
export const LazyServerError = createLazyComponent(
() => import('@/features/error/pages/ServerErrorPage'),
undefined,
'Server Error',
);
export const LazyUserProfile = createLazyComponent(
() =>
import('@/features/profile/pages/UserProfilePage').then((m) => ({
default: m.UserProfilePage,
})),
undefined,
'User Profile',
);
export const LazyRoles = createLazyComponent(
() =>
import('@/features/roles/pages/RolesPage').then((m) => ({
default: m.RolesPage,
})),
undefined,
'Roles',
);
export const LazyTrackDetail = createLazyComponent(
() =>
import('@/features/tracks/pages/TrackDetailPage').then((m) => ({
default: m.TrackDetailPage,
})),
undefined,
'Track Detail',
);
export const LazyPlaylistRoutes = createLazyComponent(
() =>
import('@/features/playlists/routes').then((m) => ({
default: m.PlaylistRoutes,
})),
undefined,
'Playlists',
);
export const LazyAdminDashboard = createLazyComponent(
() =>
import('@/features/admin/pages/AdminDashboardPage').then((m) => ({
default: m.AdminDashboardPage,
})),
undefined,
'Admin Dashboard',
);
export const LazyAdminTransfers = createLazyComponent(
() =>
import('@/features/admin/pages/AdminTransfersPage').then((m) => ({
default: m.AdminTransfersPage,
})),
undefined,
'Admin Transfers',
);
export const LazyAnalytics = createLazyComponent(
() =>
import('@/features/analytics/pages/AnalyticsPage').then((m) => ({
default: m.AnalyticsPage,
})),
undefined,
'Analytics',
);
export const LazyWebhooks = createLazyComponent(
() =>
import('@/features/developer/pages/WebhooksPage').then((m) => ({
default: m.WebhooksPage,
})),
undefined,
'Webhooks',
);
export const LazyDesignSystemDemo = createLazyComponent(
() =>
import('@/components/demo/DesignSystemDemo').then((m) => ({
default: m.DesignSystemDemo,
})),
undefined,
'Design System Demo',
);
export const LazySocial = createLazyComponent(
() =>
import('@/features/social/pages/SocialPage').then((m) => ({
default: m.SocialPage,
})),
undefined,
'Social',
);
export const LazyFeed = createLazyComponent(
() => import('@/features/feed/pages/FeedPage'),
undefined,
'Feed',
);
export const LazyDiscover = createLazyComponent(
() =>
import('@/features/discover/pages/DiscoverPage').then((m) => ({
default: m.DiscoverPage,
})),
undefined,
'Discover',
);
export const LazyGear = createLazyComponent(
() =>
import('@/features/inventory/pages/GearPage').then((m) => ({
default: m.GearPage,
})),
undefined,
'Gear',
);
export const LazyLive = createLazyComponent(
() =>
import('@/features/live/pages/LivePage').then((m) => ({
default: m.LivePage,
})),
undefined,
'Live',
);
export const LazyGoLive = createLazyComponent(
() =>
import('@/features/live/pages/GoLivePage').then((m) => ({
default: m.GoLivePage,
})),
undefined,
'Go Live',
);
export const LazyCloud = createLazyComponent(
() => import('@/features/cloud/pages/CloudPage'),
undefined,
'Cloud',
);
export const LazyQueue = createLazyComponent(
() =>
import('@/features/library/pages/QueuePage').then((m) => ({
default: m.QueuePage,
})),
undefined,
'Queue',
);
export const LazyDeveloper = createLazyComponent(
() =>
import('@/features/developer/pages/DeveloperDashboardPage').then((m) => ({
default: m.DeveloperDashboardPage,
})),
undefined,
'Developer',
);
export const LazyNotifications = createLazyComponent(
() =>
import('@/features/notifications/pages/NotificationsPage').then((m) => ({
default: m.NotificationsPage,
})),
undefined,
'Notifications',
);
export const LazyMarketplace = createLazyComponent(
() =>
import('@/features/marketplace/pages/MarketplacePage').then((m) => ({
default: m.MarketplacePage,
})),
undefined,
'Marketplace',
);
export const LazySearch = createLazyComponent(
() =>
import('@/features/search/pages/SearchPage').then((m) => ({
default: m.SearchPage,
})),
undefined,
'Search',
);
export const LazySellerDashboard = createLazyComponent(
() =>
import('@/features/seller/pages/SellerDashboardPage').then((m) => ({
default: m.SellerDashboardPage,
})),
undefined,
'Seller Dashboard',
);
export const LazyWishlist = createLazyComponent(
() =>
import('@/features/marketplace/pages/WishlistPage').then((m) => ({
default: m.WishlistPage,
})),
undefined,
'Wishlist',
);
export const LazyPurchases = createLazyComponent(
() =>
import('@/features/purchases/pages/PurchasesPage').then((m) => ({
default: m.PurchasesPage,
})),
undefined,
'Purchases',
);
export const LazyProductDetail = createLazyComponent(
() =>
import('@/features/marketplace/pages/ProductDetailPage').then((m) => ({
default: m.ProductDetailPage,
})),
undefined,
'Product Detail',
);
export const LazyCheckoutComplete = createLazyComponent(
() =>
import('@/features/checkout/CheckoutCompletePage').then((m) => ({
default: m.CheckoutCompletePage,
})),
undefined,
'Checkout Complete',
);