235 lines
5.8 KiB
TypeScript
235 lines
5.8 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 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('@/components/admin/AdminDashboardView').then((m) => ({
|
|
default: m.AdminDashboardView,
|
|
})),
|
|
undefined,
|
|
'Admin Dashboard',
|
|
);
|
|
export const LazyAnalytics = createLazyComponent(
|
|
() =>
|
|
import('@/components/views/AnalyticsView').then((m) => ({
|
|
default: m.AnalyticsView,
|
|
})),
|
|
undefined,
|
|
'Analytics',
|
|
);
|
|
export const LazyWebhooks = createLazyComponent(
|
|
() =>
|
|
import('@/components/developer/WebhooksView').then((m) => ({
|
|
default: m.WebhooksView,
|
|
})),
|
|
undefined,
|
|
'Webhooks',
|
|
);
|
|
export const LazyDesignSystemDemo = createLazyComponent(
|
|
() =>
|
|
import('@/components/demo/DesignSystemDemo').then((m) => ({
|
|
default: m.DesignSystemDemo,
|
|
})),
|
|
undefined,
|
|
'Design System Demo',
|
|
);
|
|
export const LazySocial = createLazyComponent(
|
|
() =>
|
|
import('@/components/views/SocialView').then((m) => ({
|
|
default: m.SocialView,
|
|
})),
|
|
undefined,
|
|
'Social',
|
|
);
|
|
export const LazyGear = createLazyComponent(
|
|
() =>
|
|
import('@/components/views/GearView').then((m) => ({ default: m.GearView })),
|
|
undefined,
|
|
'Gear',
|
|
);
|
|
export const LazyLive = createLazyComponent(
|
|
() =>
|
|
import('@/components/views/LiveView').then((m) => ({
|
|
default: m.LiveView,
|
|
})),
|
|
undefined,
|
|
'Live',
|
|
);
|
|
export const LazyEducation = createLazyComponent(
|
|
() =>
|
|
import('@/components/views/EducationView').then((m) => ({
|
|
default: m.EducationView,
|
|
})),
|
|
undefined,
|
|
'Education',
|
|
);
|
|
export const LazyQueue = createLazyComponent(
|
|
() =>
|
|
import('@/components/library/playlists/QueueView').then((m) => ({
|
|
default: m.QueueView,
|
|
})),
|
|
undefined,
|
|
'Queue',
|
|
);
|
|
export const LazyDeveloper = createLazyComponent(
|
|
() =>
|
|
import('@/components/developer/DeveloperDashboardView').then((m) => ({
|
|
default: m.DeveloperDashboardView,
|
|
})),
|
|
undefined,
|
|
'Developer',
|
|
);
|
|
export const LazyNotifications = createLazyComponent(
|
|
() =>
|
|
import('@/components/views/NotificationsView').then((m) => ({
|
|
default: m.NotificationsView,
|
|
})),
|
|
undefined,
|
|
'Notifications',
|
|
);
|
|
export const LazyMarketplace = createLazyComponent(
|
|
() =>
|
|
import('@/pages/marketplace/MarketplaceHome').then((m) => ({
|
|
default: m.MarketplaceHome,
|
|
})),
|
|
undefined,
|
|
'Marketplace',
|
|
);
|
|
export const LazySearch = createLazyComponent(
|
|
() =>
|
|
import('@/features/search/pages/SearchPage').then((m) => ({
|
|
default: m.SearchPage,
|
|
})),
|
|
undefined,
|
|
'Search',
|
|
);
|
|
export const LazySellerDashboard = createLazyComponent(
|
|
() =>
|
|
import('@/components/seller/SellerDashboardView').then((m) => ({
|
|
default: m.SellerDashboardView,
|
|
})),
|
|
undefined,
|
|
'Seller Dashboard',
|
|
);
|
|
export const LazyWishlist = createLazyComponent(
|
|
() =>
|
|
import('@/components/commerce/WishlistView').then((m) => ({
|
|
default: m.WishlistView,
|
|
})),
|
|
undefined,
|
|
'Wishlist',
|
|
);
|
|
export const LazyPurchases = createLazyComponent(
|
|
() =>
|
|
import('@/components/views/PurchasesView').then((m) => ({
|
|
default: m.PurchasesView,
|
|
})),
|
|
undefined,
|
|
'Purchases',
|
|
);
|