dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_RgwModule cluster_RgwModule_declarations cluster_RgwModule_imports cluster_RgwModule_exports Rgw501Component Rgw501Component RgwModule RgwModule Rgw501Component->RgwModule RgwBucketDetailsComponent RgwBucketDetailsComponent RgwBucketDetailsComponent->RgwModule RgwBucketFormComponent RgwBucketFormComponent RgwBucketFormComponent->RgwModule RgwBucketFormComponent->RgwModule RgwBucketListComponent RgwBucketListComponent RgwBucketListComponent->RgwModule RgwDaemonDetailsComponent RgwDaemonDetailsComponent RgwDaemonDetailsComponent->RgwModule RgwDaemonListComponent RgwDaemonListComponent RgwDaemonListComponent->RgwModule RgwUserCapabilityModalComponent RgwUserCapabilityModalComponent RgwUserCapabilityModalComponent->RgwModule RgwUserDetailsComponent RgwUserDetailsComponent RgwUserDetailsComponent->RgwModule RgwUserFormComponent RgwUserFormComponent RgwUserFormComponent->RgwModule RgwUserListComponent RgwUserListComponent RgwUserListComponent->RgwModule RgwUserS3KeyModalComponent RgwUserS3KeyModalComponent RgwUserS3KeyModalComponent->RgwModule RgwUserSubuserModalComponent RgwUserSubuserModalComponent RgwUserSubuserModalComponent->RgwModule RgwUserSwiftKeyModalComponent RgwUserSwiftKeyModalComponent RgwUserSwiftKeyModalComponent->RgwModule Rgw501Component Rgw501Component RgwModule->Rgw501Component RgwBucketDetailsComponent RgwBucketDetailsComponent RgwModule->RgwBucketDetailsComponent RgwBucketFormComponent RgwBucketFormComponent RgwModule->RgwBucketFormComponent RgwBucketListComponent RgwBucketListComponent RgwModule->RgwBucketListComponent RgwDaemonDetailsComponent RgwDaemonDetailsComponent RgwModule->RgwDaemonDetailsComponent RgwDaemonListComponent RgwDaemonListComponent RgwModule->RgwDaemonListComponent RgwUserDetailsComponent RgwUserDetailsComponent RgwModule->RgwUserDetailsComponent RgwUserListComponent RgwUserListComponent RgwModule->RgwUserListComponent PerformanceCounterModule PerformanceCounterModule PerformanceCounterModule->RgwModule SharedModule SharedModule SharedModule->RgwModule
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { RouterModule, Routes } from '@angular/router';

import { AlertModule } from 'ngx-bootstrap/alert';
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
import { ModalModule } from 'ngx-bootstrap/modal';
import { TabsModule } from 'ngx-bootstrap/tabs';
import { TooltipModule } from 'ngx-bootstrap/tooltip';

import { ActionLabels, URLVerbs } from '../../shared/constants/app.constants';
import { AuthGuardService } from '../../shared/services/auth-guard.service';
import { SharedModule } from '../../shared/shared.module';
import { PerformanceCounterModule } from '../performance-counter/performance-counter.module';
import { Rgw501Component } from './rgw-501/rgw-501.component';
import { RgwBucketDetailsComponent } from './rgw-bucket-details/rgw-bucket-details.component';
import { RgwBucketFormComponent } from './rgw-bucket-form/rgw-bucket-form.component';
import { RgwBucketListComponent } from './rgw-bucket-list/rgw-bucket-list.component';
import { RgwDaemonDetailsComponent } from './rgw-daemon-details/rgw-daemon-details.component';
import { RgwDaemonListComponent } from './rgw-daemon-list/rgw-daemon-list.component';
import { RgwUserCapabilityModalComponent } from './rgw-user-capability-modal/rgw-user-capability-modal.component';
import { RgwUserDetailsComponent } from './rgw-user-details/rgw-user-details.component';
import { RgwUserFormComponent } from './rgw-user-form/rgw-user-form.component';
import { RgwUserListComponent } from './rgw-user-list/rgw-user-list.component';
import { RgwUserS3KeyModalComponent } from './rgw-user-s3-key-modal/rgw-user-s3-key-modal.component';
import { RgwUserSubuserModalComponent } from './rgw-user-subuser-modal/rgw-user-subuser-modal.component';
import { RgwUserSwiftKeyModalComponent } from './rgw-user-swift-key-modal/rgw-user-swift-key-modal.component';

@NgModule({
  entryComponents: [
    RgwDaemonDetailsComponent,
    RgwBucketDetailsComponent,
    RgwUserDetailsComponent,
    RgwUserSwiftKeyModalComponent,
    RgwUserS3KeyModalComponent,
    RgwUserCapabilityModalComponent,
    RgwUserSubuserModalComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    FormsModule,
    ReactiveFormsModule,
    PerformanceCounterModule,
    AlertModule.forRoot(),
    BsDropdownModule.forRoot(),
    TabsModule.forRoot(),
    TooltipModule.forRoot(),
    ModalModule.forRoot(),
    RouterModule
  ],
  exports: [
    Rgw501Component,
    RgwDaemonListComponent,
    RgwDaemonDetailsComponent,
    RgwBucketFormComponent,
    RgwBucketListComponent,
    RgwBucketDetailsComponent,
    RgwUserListComponent,
    RgwUserDetailsComponent
  ],
  declarations: [
    Rgw501Component,
    RgwDaemonListComponent,
    RgwDaemonDetailsComponent,
    RgwBucketFormComponent,
    RgwBucketListComponent,
    RgwBucketDetailsComponent,
    RgwUserListComponent,
    RgwUserDetailsComponent,
    RgwBucketFormComponent,
    RgwUserFormComponent,
    RgwUserSwiftKeyModalComponent,
    RgwUserS3KeyModalComponent,
    RgwUserCapabilityModalComponent,
    RgwUserSubuserModalComponent
  ]
})
export class RgwModule {}

const routes: Routes = [
  {
    path: '',
    redirectTo: 'daemon',
    pathMatch: 'full'
  },
  { path: 'daemon', component: RgwDaemonListComponent, data: { breadcrumbs: 'Daemons' } },
  {
    path: 'user',
    data: { breadcrumbs: 'Users' },
    children: [
      { path: '', component: RgwUserListComponent },
      {
        path: 'create',
        component: RgwUserFormComponent,
        data: { breadcrumbs: 'Create' }
      },
      {
        path: `${'edit'}/:uid`,
        component: RgwUserFormComponent,
        data: { breadcrumbs: 'Edit' }
      }
    ]
  },
  {
    path: 'bucket',
    data: { breadcrumbs: 'Buckets' },
    children: [
      { path: '', component: RgwBucketListComponent },
      {
        path: 'create',
        component: RgwBucketFormComponent,
        data: { breadcrumbs: 'Create' }
      },
      {
        path: `${'edit'}/:bid`,
        component: RgwBucketFormComponent,
        data: { breadcrumbs: 'Edit' }
      }
    ]
  },
  {
    path: '501/:message',
    component: Rgw501Component,
    canActivate: [AuthGuardService],
    data: { breadcrumbs: 'Object Gateway' }
  }
];

@NgModule({
  imports: [RgwModule, RouterModule.forChild(routes)]
})
export class RoutedRgwModule {}

result-matching ""

    No results matching ""