1
This commit is contained in:
@@ -91,7 +91,6 @@ const SiteList = lazy(() => import("./pages/Sites/List"));
|
||||
const SiteManage = lazy(() => import("./pages/Sites/Manage"));
|
||||
const SiteDashboard = lazy(() => import("./pages/Sites/Dashboard"));
|
||||
const SiteContent = lazy(() => import("./pages/Sites/Content"));
|
||||
const SiteEditor = lazy(() => import("./pages/Sites/Editor"));
|
||||
const PageManager = lazy(() => import("./pages/Sites/PageManager"));
|
||||
const PostEditor = lazy(() => import("./pages/Sites/PostEditor"));
|
||||
const SitePreview = lazy(() => import("./pages/Sites/Preview"));
|
||||
@@ -99,6 +98,8 @@ const SiteSettings = lazy(() => import("./pages/Sites/Settings"));
|
||||
const SyncDashboard = lazy(() => import("./pages/Sites/SyncDashboard"));
|
||||
const DeploymentPanel = lazy(() => import("./pages/Sites/DeploymentPanel"));
|
||||
|
||||
// Content Manager Module - Lazy loaded
|
||||
const ContentManagerDashboard = lazy(() => import("./pages/ContentManager/Dashboard"));
|
||||
|
||||
// Help - Lazy loaded
|
||||
const Help = lazy(() => import("./pages/Help/Help"));
|
||||
@@ -249,6 +250,38 @@ export default function App() {
|
||||
</Suspense>
|
||||
} />
|
||||
|
||||
{/* Content Manager Module Routes */}
|
||||
<Route path="/content-manager" element={
|
||||
<Suspense fallback={null}>
|
||||
<ContentManagerDashboard />
|
||||
</Suspense>
|
||||
} />
|
||||
<Route path="/content-manager/posts" element={
|
||||
<Suspense fallback={null}>
|
||||
<ContentManagerDashboard />
|
||||
</Suspense>
|
||||
} />
|
||||
<Route path="/content-manager/pages" element={
|
||||
<Suspense fallback={null}>
|
||||
<ContentManagerDashboard />
|
||||
</Suspense>
|
||||
} />
|
||||
<Route path="/content-manager/new" element={
|
||||
<Suspense fallback={null}>
|
||||
<PostEditor />
|
||||
</Suspense>
|
||||
} />
|
||||
<Route path="/content-manager/:id" element={
|
||||
<Suspense fallback={null}>
|
||||
<PostEditor />
|
||||
</Suspense>
|
||||
} />
|
||||
<Route path="/content-manager/:id/edit" element={
|
||||
<Suspense fallback={null}>
|
||||
<PostEditor />
|
||||
</Suspense>
|
||||
} />
|
||||
|
||||
{/* Linker Module - Redirect dashboard to content */}
|
||||
<Route path="/linker" element={<Navigate to="/linker/content" replace />} />
|
||||
<Route path="/linker/content" element={
|
||||
@@ -491,11 +524,6 @@ export default function App() {
|
||||
<SiteContent />
|
||||
</Suspense>
|
||||
} />
|
||||
<Route path="/sites/:id/editor" element={
|
||||
<Suspense fallback={null}>
|
||||
<SiteEditor />
|
||||
</Suspense>
|
||||
} />
|
||||
<Route path="/sites/:id/preview" element={
|
||||
<Suspense fallback={null}>
|
||||
<SitePreview />
|
||||
|
||||
Reference in New Issue
Block a user