feat(help): help page with tree navigation, 6 help articles, routes in StartLayout
This commit is contained in:
@@ -70,6 +70,13 @@ const WorkspaceManagerPage = React.lazy(() => import('@/pages/SettingsWorkspaces
|
||||
const SettingsRechtePage = React.lazy(() => import('@/pages/SettingsRechte').then(m => ({ default: m.SettingsRechtePage })));
|
||||
const NoAccessPage = React.lazy(() => import('@/pages/NoAccessPage').then(m => ({ default: m.NoAccessPage })));
|
||||
const StartPage = React.lazy(() => import('@/pages/StartPage').then(m => ({ default: m.StartPage })));
|
||||
const HelpPage = React.lazy(() => import('@/pages/Help').then(m => ({ default: m.HelpPage })));
|
||||
const HelpWelcomePage = React.lazy(() => import('@/pages/help/HelpWelcome').then(m => ({ default: m.HelpWelcomePage })));
|
||||
const HelpLoginPage = React.lazy(() => import('@/pages/help/HelpLogin').then(m => ({ default: m.HelpLoginPage })));
|
||||
const HelpNavigationPage = React.lazy(() => import('@/pages/help/HelpNavigation').then(m => ({ default: m.HelpNavigationPage })));
|
||||
const HelpContactsPage = React.lazy(() => import('@/pages/help/HelpContacts').then(m => ({ default: m.HelpContactsPage })));
|
||||
const HelpMailSetupPage = React.lazy(() => import('@/pages/help/HelpMailSetup').then(m => ({ default: m.HelpMailSetupPage })));
|
||||
const HelpPlaceholderPage = React.lazy(() => import('@/pages/help/HelpPlaceholder').then(m => ({ default: m.HelpPlaceholderPage })));
|
||||
const ApiDocsPage = React.lazy(() => import('@/pages/ApiDocs').then(m => ({ default: m.ApiDocsPage })));
|
||||
|
||||
/** Centered spinner fallback for lazy-loaded routes */
|
||||
@@ -139,6 +146,18 @@ const router = createBrowserRouter([
|
||||
),
|
||||
children: [
|
||||
{ path: '/start', element: withSuspense(<StartPage />) },
|
||||
{
|
||||
path: '/help',
|
||||
element: withSuspense(<HelpPage />),
|
||||
children: [
|
||||
{ path: 'welcome', element: withSuspense(<HelpWelcomePage />) },
|
||||
{ path: 'login', element: withSuspense(<HelpLoginPage />) },
|
||||
{ path: 'navigation', element: withSuspense(<HelpNavigationPage />) },
|
||||
{ path: 'contacts', element: withSuspense(<HelpContactsPage />) },
|
||||
{ path: 'mail-setup', element: withSuspense(<HelpMailSetupPage />) },
|
||||
{ path: '*', element: withSuspense(<HelpPlaceholderPage />) },
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/settings',
|
||||
element: <PermissionRoute permission="settings:read">{withSuspense(<SettingsPage />)}</PermissionRoute>,
|
||||
|
||||
Reference in New Issue
Block a user