]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: get SASS vars values in TS through CssHelper.
authorAlfonso Martínez <almartin@redhat.com>
Fri, 14 May 2021 15:01:17 +0000 (17:01 +0200)
committerAlfonso Martínez <almartin@redhat.com>
Wed, 19 May 2021 12:39:08 +0000 (14:39 +0200)
commitcde1e3667afe3fd2bef149b213557bc241dffae7
treea7b7fe3e9a8289638b7df85e3e8f524ce462b7d8
parent2891130fa353c82155bde3d6906119faf8dc1939
mgr/dashboard: get SASS vars values in TS through CssHelper.

Now SASS vendor variables' values can be retrieved by var name via CssHelper.

We were relying on the angular webpack config that has changed in the latest v10.x and v11.
See: https://github.com/angular/angular-cli/issues/19622#issuecomment-744395101

Fixes: https://tracker.ceph.com/issues/50800
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
(cherry picked from commit 7310e15a9bb704c3b214b9b5373807b1167df009)
20 files changed:
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health-pie/health-pie.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health-pie/health-pie.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-list/rgw-user-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/classes/cd-helper.class.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/classes/css-helper.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/enum/color.enum.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/enum/health-color.enum.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/health-color.pipe.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/health-color.pipe.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/favicon.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/favicon.service.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/shared.module.ts
src/pybind/mgr/dashboard/frontend/src/setupJest.ts
src/pybind/mgr/dashboard/frontend/src/styles.scss
src/pybind/mgr/dashboard/frontend/src/styles.scss.d.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/styles/defaults/_bootstrap-defaults.scss
src/pybind/mgr/dashboard/frontend/src/styles/vendor/_index.scss