]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: changes to first layout
authorPedro Gonzalez Gomez <pegonzal@redhat.com>
Fri, 22 Jul 2022 05:37:11 +0000 (07:37 +0200)
committerPedro Gonzalez Gomez <pegonzal@redhat.com>
Tue, 20 Dec 2022 07:30:14 +0000 (08:30 +0100)
CHANGES:

 - Renamed dashboardcomponents

 - Removed unnecesary styling

 - Added unit tests

Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/new-dashboard/card/card.component.scss
src/pybind/mgr/dashboard/frontend/src/app/ceph/new-dashboard/dashboard.module.ts

index 8ebe9aa82c57d7085170018e68ebf5983e60f794..c5778092bda2385e5bce9ee95d78dad1c4f0e1c9 100644 (file)
@@ -88,13 +88,8 @@ const routes: Routes = [
     canActivate: [AuthGuardService, ChangePasswordGuardService],
     canActivateChild: [AuthGuardService, ChangePasswordGuardService],
     children: [
-<<<<<<< HEAD
       { path: 'dashboard', component: DeprecatedDashboardComponent },
       { path: 'dashboard_3', component: DashboardComponent },
-=======
-      { path: 'dashboard', component: DashboardComponent },
-      { path: 'dashboard_3', component: NewDashboardComponent },
->>>>>>> 5eabca4ef19 (Start of landing-page dashboard revamp v3)
       { path: 'error', component: ErrorComponent },
 
       // Cluster
index 897d09a9a4b937d20dee95636059c29eda0883b9..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,40 +0,0 @@
-@use './src/styles/vendor/variables' as vv;
-@use './src/styles/defaults/mixins';
-
-$card-font-min-width: 320px;
-$card-font-max-width: 2048px;
-$card-font-min-size: 12px;
-$card-font-max-size: 21px;
-
-.card {
-  @include mixins.fluid-font-size(
-    $card-font-min-width,
-    $card-font-max-width,
-    $card-font-min-size,
-    $card-font-max-size
-  );
-  border: 0.5px solid vv.$gray-300;
-  border-radius: 3px;
-  height: 100%;
-
-  .card-body {
-    padding-top: 40px !important;
-
-    .card-title {
-      left: -0.6rem;
-      position: absolute;
-      top: -0.3rem;
-    }
-  }
-}
-
-.no-center {
-  left: unset;
-  position: unset;
-  top: unset;
-  transform: unset;
-}
-
-.content-highlight {
-  font-weight: bold;
-}
index 34d41ddb31adbf1cb23e5db3daf13173f82eabf0..5ccb751b0ea200cbe3eea2eeab0c0a8b1d9b84ea 100644 (file)
@@ -9,7 +9,10 @@ import { ChartsModule } from 'ng2-charts';
 import { SharedModule } from '~/app/shared/shared.module';
 import { CephSharedModule } from '../shared/ceph-shared.module';
 import { CardComponent } from './card/card.component';
+<<<<<<< HEAD
 import { DashboardPieComponent } from './dashboard-pie/dashboard-pie.component';
+=======
+>>>>>>> 59d734f8b53 (mgr/dashboard: changes to first layout)
 import { DashboardComponent } from './dashboard/dashboard.component';
 
 @NgModule({
@@ -25,6 +28,10 @@ import { DashboardComponent } from './dashboard/dashboard.component';
     ReactiveFormsModule
   ],
 
+<<<<<<< HEAD
   declarations: [DashboardComponent, CardComponent, DashboardPieComponent]
+=======
+  declarations: [DashboardComponent, CardComponent]
+>>>>>>> 59d734f8b53 (mgr/dashboard: changes to first layout)
 })
 export class NewDashboardModule {}