]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: Introduce layout components
authorVolker Theile <vtheile@suse.com>
Mon, 13 Jan 2020 09:06:25 +0000 (10:06 +0100)
committerVolker Theile <vtheile@suse.com>
Mon, 20 Jan 2020 08:09:54 +0000 (09:09 +0100)
commitc320371e7d053efbbabc7ef3efbbe1152c2e0ed3
tree42f9d69f4d1a08e9c99b427ad7af8388d99a6d63
parent2cc286075f753a9ba48dc7223a3eacd3b1a79744
mgr/dashboard: Introduce layout components

This PR will simplify the code of the app component in that way that it introduces layout components. Depending on the route a specific layout is choosen. Currently there are two layouts:

- Workbench
- Blank

The blank layout, which does not show any navigation controls, is used for the error, login and logout pages. The workbench layout shows the navigation controls and is mainly used for all pages that are used to configure Ceph.

The 403 and 404 pages have a 'Back' button that will redirect to /login. The Angular router will redirect to /dashboard if logged in.

Fixes: https://tracker.ceph.com/issues/43565
Signed-off-by: Volker Theile <vtheile@suse.com>
23 files changed:
src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts
src/pybind/mgr/dashboard/frontend/src/app/app.component.html
src/pybind/mgr/dashboard/frontend/src/app/app.component.scss
src/pybind/mgr/dashboard/frontend/src/app/app.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/app.component.ts
src/pybind/mgr/dashboard/frontend/src/app/app.module.ts
src/pybind/mgr/dashboard/frontend/src/app/core/auth/login/login.component.scss
src/pybind/mgr/dashboard/frontend/src/app/core/auth/sso/sso-not-found/sso-not-found.component.html
src/pybind/mgr/dashboard/frontend/src/app/core/core.module.ts
src/pybind/mgr/dashboard/frontend/src/app/core/forbidden/forbidden.component.html
src/pybind/mgr/dashboard/frontend/src/app/core/forbidden/forbidden.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/core/layouts/blank-layout/blank-layout.component.html [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/core/layouts/blank-layout/blank-layout.component.scss [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/core/layouts/blank-layout/blank-layout.component.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/core/layouts/blank-layout/blank-layout.component.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.html [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.scss [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/core/not-found/not-found.component.html
src/pybind/mgr/dashboard/frontend/src/app/core/not-found/not-found.component.scss
src/pybind/mgr/dashboard/frontend/src/app/core/not-found/not-found.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/styles.scss