From 9a8a742890d34256e970e7a83d1277529000722f Mon Sep 17 00:00:00 2001 From: Ricardo Marques Date: Tue, 30 Jan 2018 23:12:53 +0000 Subject: [PATCH] mgr/dashboard_v2: Rename "host" module to "cluster" Signed-off-by: Ricardo Marques --- .../mgr/dashboard_v2/frontend/src/app/app-routing.module.ts | 2 +- .../mgr/dashboard_v2/frontend/src/app/app.component.spec.ts | 4 ++-- .../mgr/dashboard_v2/frontend/src/app/ceph/ceph.module.ts | 4 ++-- .../ceph/{host/host.module.ts => cluster/cluster.module.ts} | 2 +- .../src/app/ceph/{host => cluster}/hosts/hosts.component.html | 0 .../src/app/ceph/{host => cluster}/hosts/hosts.component.scss | 0 .../app/ceph/{host => cluster}/hosts/hosts.component.spec.ts | 0 .../src/app/ceph/{host => cluster}/hosts/hosts.component.ts | 0 .../src/app/ceph/{host => cluster}/service-list.pipe.spec.ts | 0 .../src/app/ceph/{host => cluster}/service-list.pipe.ts | 0 10 files changed, 6 insertions(+), 6 deletions(-) rename src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/{host/host.module.ts => cluster/cluster.module.ts} (92%) rename src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/{host => cluster}/hosts/hosts.component.html (100%) rename src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/{host => cluster}/hosts/hosts.component.scss (100%) rename src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/{host => cluster}/hosts/hosts.component.spec.ts (100%) rename src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/{host => cluster}/hosts/hosts.component.ts (100%) rename src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/{host => cluster}/service-list.pipe.spec.ts (100%) rename src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/{host => cluster}/service-list.pipe.ts (100%) diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/app-routing.module.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/app-routing.module.ts index b65f2b24fa6..1b15ceac9bd 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/app-routing.module.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/app-routing.module.ts @@ -2,7 +2,7 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { AuthGuardService } from './shared/services/auth-guard.service'; import { LoginComponent } from './core/auth/login/login.component'; -import { HostsComponent } from './ceph/host/hosts/hosts.component'; +import { HostsComponent } from './ceph/cluster/hosts/hosts.component'; const routes: Routes = [ { path: '', redirectTo: 'hosts', pathMatch: 'full' }, diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/app.component.spec.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/app.component.spec.ts index b7962ab6948..a68678ca811 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/app.component.spec.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/app.component.spec.ts @@ -4,7 +4,7 @@ import { AppComponent } from './app.component'; import { CoreModule } from './core/core.module'; import { SharedModule } from './shared/shared.module'; import { ToastModule } from 'ng2-toastr'; -import { HostModule } from './ceph/host/host.module'; +import { ClusterModule } from './ceph/cluster/cluster.module'; describe('AppComponent', () => { beforeEach(async(() => { @@ -14,7 +14,7 @@ describe('AppComponent', () => { CoreModule, SharedModule, ToastModule.forRoot(), - HostModule + ClusterModule ], declarations: [ AppComponent diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/ceph.module.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/ceph.module.ts index 6a8eda9a78e..74a88bd9b89 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/ceph.module.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/ceph.module.ts @@ -1,11 +1,11 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { HostModule } from './host/host.module'; +import { ClusterModule } from './cluster/cluster.module'; @NgModule({ imports: [ CommonModule, - HostModule + ClusterModule ], declarations: [] }) diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/host.module.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/cluster.module.ts similarity index 92% rename from src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/host.module.ts rename to src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/cluster.module.ts index c6055aee75a..439f18414a2 100644 --- a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/host.module.ts +++ b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/cluster.module.ts @@ -12,4 +12,4 @@ import { ServiceListPipe } from './service-list.pipe'; ], declarations: [HostsComponent, ServiceListPipe], }) -export class HostModule { } +export class ClusterModule { } diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/hosts/hosts.component.html b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.html similarity index 100% rename from src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/hosts/hosts.component.html rename to src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.html diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/hosts/hosts.component.scss b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.scss similarity index 100% rename from src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/hosts/hosts.component.scss rename to src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.scss diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/hosts/hosts.component.spec.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts similarity index 100% rename from src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/hosts/hosts.component.spec.ts rename to src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/hosts/hosts.component.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.ts similarity index 100% rename from src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/hosts/hosts.component.ts rename to src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.ts diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/service-list.pipe.spec.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/service-list.pipe.spec.ts similarity index 100% rename from src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/service-list.pipe.spec.ts rename to src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/service-list.pipe.spec.ts diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/service-list.pipe.ts b/src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/service-list.pipe.ts similarity index 100% rename from src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/host/service-list.pipe.ts rename to src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/service-list.pipe.ts -- 2.39.5