mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[AAE-10533] Generic App shell for HxP applications (#2679)
* [AAE-10533] Generic App shell for HxP applications * refactor * fix scss mixin path * remove forRoot in content-plugin * remove provided routers * revert router service * revert template usage * Added shell markdown * Move login component to content-plugin * Moved logic from app.component to app.service * remove upload-area from shell * cleaning * cleaning * update md * abstract preferences * allow to set shell parent route * fix preferencesService name * Fix for sidenav * Fix CR comments * [ci:force] * move translation service mock to aca-shared * fix e2e * Fix page title * remove drop area wrapper from whole application * Fix e2e * [ci:force] * Remove blank page from shell * Add upload files dialog * [ci:force] * Remove ExtensionsDataLoaderGuard from shell
This commit is contained in:
17
docs/extending/app-shell.md
Normal file
17
docs/extending/app-shell.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
Title: Shell
|
||||
---
|
||||
|
||||
# Shell
|
||||
|
||||
[AppShellModule](../../app/src/app/app-shell/app-shell.module.ts) is designated as a main layout for the application.
|
||||
|
||||
I order to attach routes to appShell, `withRoutes(routes: Routes | AppShellRoutesConfig)` method should be used.
|
||||
|
||||
Passed routes are going to be attached to [shell main route](../../app/src/app/app-shell/app-shell.routes.ts)
|
||||
|
||||
If you would like to provide custom app guard, you can provide your own using [SHELL_AUTH_TOKEN](../../app/src/app/app-shell/app-shell.routes.ts)
|
||||
|
||||
## Shell Service
|
||||
|
||||
In order to use `shell`, you need to provide `SHELL_APP_SERVICE` which provides necessary options for shell component to work.
|
@@ -202,7 +202,7 @@ for example mixing `core.every` and `core.not`.
|
||||
| 1.7.0 | app.navigation.isPersonalFiles | Current page is **Personal Files**. |
|
||||
| 1.7.0 | app.navigation.isLibraryFiles | Current page is **Library Files**. |
|
||||
|
||||
**Tip:** See the [Registration](/extending/registration) section for more details
|
||||
**Tip:** See the [Registration](./registration) section for more details
|
||||
on how to register your own entries to be re-used at runtime.
|
||||
|
||||
### Example
|
||||
|
Reference in New Issue
Block a user