feat(settings): move /settings from AppShell to StartLayout — no workspace sidebar
This commit is contained in:
@@ -139,6 +139,37 @@ const router = createBrowserRouter([
|
|||||||
),
|
),
|
||||||
children: [
|
children: [
|
||||||
{ path: '/start', element: withSuspense(<StartPage />) },
|
{ path: '/start', element: withSuspense(<StartPage />) },
|
||||||
|
{
|
||||||
|
path: '/settings',
|
||||||
|
element: <PermissionRoute permission="settings:read">{withSuspense(<SettingsPage />)}</PermissionRoute>,
|
||||||
|
children: [
|
||||||
|
{ path: 'stammdaten', element: withSuspense(<SettingsStammdatenPage />) },
|
||||||
|
{ path: 'user-management', element: withSuspense(<SettingsUserManagementPage />) },
|
||||||
|
{ path: 'roles', element: withSuspense(<SettingsRolesPage />) },
|
||||||
|
{ path: 'users', element: withSuspense(<SettingsUsersPage />) },
|
||||||
|
{ path: 'groups', element: withSuspense(<SettingsGroupsPage />) },
|
||||||
|
{ path: 'plugins', element: withSuspense(<SettingsPluginsPage />) },
|
||||||
|
{ path: 'system', element: withSuspense(<SettingsSystemPage />) },
|
||||||
|
{ path: 'currencies', element: withSuspense(<SettingsCurrenciesPage />) },
|
||||||
|
{ path: 'taxes', element: withSuspense(<SettingsTaxesPage />) },
|
||||||
|
{ path: 'sequences', element: withSuspense(<SettingsSequencesPage />) },
|
||||||
|
{ path: 'mail', element: withSuspense(<MailSettingsPage />) },
|
||||||
|
{ path: 'notifications', element: withSuspense(<SettingsNotificationsPage />) },
|
||||||
|
{ path: 'ai', element: withSuspense(<AISettingsPage />) },
|
||||||
|
{ path: 'ai-proactive', element: withSuspense(<ProactiveAISettings />) },
|
||||||
|
{ path: 'theme', element: withSuspense(<SettingsThemePage />) },
|
||||||
|
{ path: 'automation', element: withSuspense(<AutomationSettingsPage />) },
|
||||||
|
{ path: 'mcp', element: withSuspense(<SettingsMcpPage />) },
|
||||||
|
{ path: 'ai-settings', element: withSuspense(<SettingsAIPage />) },
|
||||||
|
{ path: 'menu', element: withSuspense(<SettingsMenuOrderPage />) },
|
||||||
|
{ path: 'custom-fields', element: withSuspense(<CustomFieldsPage />) },
|
||||||
|
{ path: 'webhooks', element: withSuspense(<SettingsWebhooksPage />) },
|
||||||
|
{ path: 'workspaces', element: withSuspense(<WorkspaceManagerPage />) },
|
||||||
|
{ path: 'backup', element: withSuspense(<SettingsBackupPage />) },
|
||||||
|
{ path: 'rechte', element: <PermissionRoute permission="settings:read">{withSuspense(<SettingsRechtePage />)}</PermissionRoute> },
|
||||||
|
{ path: '*', element: <ErrorBoundary>{<PluginRouteRenderer />}</ErrorBoundary> },
|
||||||
|
],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -174,37 +205,6 @@ const router = createBrowserRouter([
|
|||||||
{ path: '/api-docs', element: <PermissionRoute permission="settings:read">{withSuspense(<ApiDocsPage />)}</PermissionRoute> },
|
{ path: '/api-docs', element: <PermissionRoute permission="settings:read">{withSuspense(<ApiDocsPage />)}</PermissionRoute> },
|
||||||
{ path: '/activity', element: <PermissionRoute permission="activity:read">{withSuspense(<ActivityTimelinePage />)}</PermissionRoute> },
|
{ path: '/activity', element: <PermissionRoute permission="activity:read">{withSuspense(<ActivityTimelinePage />)}</PermissionRoute> },
|
||||||
{ path: '/profile', element: withSuspense(<SettingsProfilePage />) },
|
{ path: '/profile', element: withSuspense(<SettingsProfilePage />) },
|
||||||
{
|
|
||||||
path: '/settings',
|
|
||||||
element: <PermissionRoute permission="settings:read">{withSuspense(<SettingsPage />)}</PermissionRoute>,
|
|
||||||
children: [
|
|
||||||
{ path: 'stammdaten', element: withSuspense(<SettingsStammdatenPage />) },
|
|
||||||
{ path: 'user-management', element: withSuspense(<SettingsUserManagementPage />) },
|
|
||||||
{ path: 'roles', element: withSuspense(<SettingsRolesPage />) },
|
|
||||||
{ path: 'users', element: withSuspense(<SettingsUsersPage />) },
|
|
||||||
{ path: 'groups', element: withSuspense(<SettingsGroupsPage />) },
|
|
||||||
{ path: 'plugins', element: withSuspense(<SettingsPluginsPage />) },
|
|
||||||
{ path: 'system', element: withSuspense(<SettingsSystemPage />) },
|
|
||||||
{ path: 'currencies', element: withSuspense(<SettingsCurrenciesPage />) },
|
|
||||||
{ path: 'taxes', element: withSuspense(<SettingsTaxesPage />) },
|
|
||||||
{ path: 'sequences', element: withSuspense(<SettingsSequencesPage />) },
|
|
||||||
{ path: 'mail', element: withSuspense(<MailSettingsPage />) },
|
|
||||||
{ path: 'notifications', element: withSuspense(<SettingsNotificationsPage />) },
|
|
||||||
{ path: 'ai', element: withSuspense(<AISettingsPage />) },
|
|
||||||
{ path: 'ai-proactive', element: withSuspense(<ProactiveAISettings />) },
|
|
||||||
{ path: 'theme', element: withSuspense(<SettingsThemePage />) },
|
|
||||||
{ path: 'automation', element: withSuspense(<AutomationSettingsPage />) },
|
|
||||||
{ path: 'mcp', element: withSuspense(<SettingsMcpPage />) },
|
|
||||||
{ path: 'ai-settings', element: withSuspense(<SettingsAIPage />) },
|
|
||||||
{ path: 'menu', element: withSuspense(<SettingsMenuOrderPage />) },
|
|
||||||
{ path: 'custom-fields', element: withSuspense(<CustomFieldsPage />) },
|
|
||||||
{ path: 'webhooks', element: withSuspense(<SettingsWebhooksPage />) },
|
|
||||||
{ path: 'workspaces', element: withSuspense(<WorkspaceManagerPage />) },
|
|
||||||
{ path: 'backup', element: withSuspense(<SettingsBackupPage />) },
|
|
||||||
{ path: 'rechte', element: <PermissionRoute permission="settings:read">{withSuspense(<SettingsRechtePage />)}</PermissionRoute> },
|
|
||||||
{ path: '*', element: <ErrorBoundary>{<PluginRouteRenderer />}</ErrorBoundary> },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{ path: '*', element: <ErrorBoundary>{<PluginRouteRenderer />}</ErrorBoundary> },
|
{ path: '*', element: <ErrorBoundary>{<PluginRouteRenderer />}</ErrorBoundary> },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user