[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:
Bartosz Sekuła
2022-11-23 14:45:32 +01:00
committed by GitHub
parent 3650aff589
commit 456454fee1
271 changed files with 1959 additions and 1167 deletions

View 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.

View File

@@ -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