123
This commit is contained in:
@@ -94,14 +94,10 @@ const SiteDashboard = lazy(() => import("./pages/Sites/Dashboard"));
|
||||
const SiteContent = lazy(() => import("./pages/Sites/Content"));
|
||||
const PageManager = lazy(() => import("./pages/Sites/PageManager"));
|
||||
const PostEditor = lazy(() => import("./pages/Sites/PostEditor"));
|
||||
const SitePreview = lazy(() => import("./pages/Sites/Preview"));
|
||||
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"));
|
||||
const Docs = lazy(() => import("./pages/Help/Docs"));
|
||||
@@ -210,8 +206,8 @@ export default function App() {
|
||||
</Suspense>
|
||||
} />
|
||||
|
||||
{/* Writer Module - Redirect dashboard to content */}
|
||||
<Route path="/writer" element={<Navigate to="/writer/content" replace />} />
|
||||
{/* Writer Module - Redirect dashboard to tasks */}
|
||||
<Route path="/writer" element={<Navigate to="/writer/tasks" replace />} />
|
||||
<Route path="/writer/tasks" element={
|
||||
<Suspense fallback={null}>
|
||||
<ModuleGuard module="writer">
|
||||
@@ -258,37 +254,6 @@ 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 />} />
|
||||
@@ -532,11 +497,6 @@ export default function App() {
|
||||
<SiteContent />
|
||||
</Suspense>
|
||||
} />
|
||||
<Route path="/sites/:id/preview" element={
|
||||
<Suspense fallback={null}>
|
||||
<SitePreview />
|
||||
</Suspense>
|
||||
} />
|
||||
<Route path="/sites/:id/settings" element={
|
||||
<Suspense fallback={null}>
|
||||
<SiteSettings />
|
||||
|
||||
Reference in New Issue
Block a user