AAE-36614 new provideShell api (#11006)

This commit is contained in:
Denys Vuika
2025-07-14 08:21:05 -04:00
committed by GitHub
parent 2ebee4c024
commit 7aa07ef525
6 changed files with 105 additions and 13 deletions

View File

@@ -9,9 +9,19 @@ This module provides the main layout for the application, allowing you to define
Passed routes are going to be attached to shell main route.
```typescript
import { provideShellRoutes } from '@alfresco/adf-core/shell';
import { provideShell } from '@alfresco/adf-core/shell';
provideShellRoutes([/*Your Routes*/])
provideShell(
{
routes: [],
appService: AppService,
authGuard: AuthGuard,
navBar: {
minWidth: 0,
maxWidth: 100
}
}
)
```
If you would like to provide custom app guard, you can provide your own using `SHELL_AUTH_TOKEN`.