From 62d521ea66cde53c361863485935c0da7fa74101 Mon Sep 17 00:00:00 2001 From: Bastian Jakobi <55296998+bastianjakobi@users.noreply.github.com> Date: Thu, 25 Jan 2024 12:39:26 +0100 Subject: [PATCH] refactor: rename incorrectly named files (#83) Co-authored-by: Bastian Jakobi --- libs/portal-integration-angular/src/index.ts | 8 ++++---- .../content-container.component.html} | 0 .../content-container.component.spec.ts} | 6 +++--- .../content-container.component.stories.ts} | 8 ++++---- .../content-container.component.ts} | 2 +- .../content.component.html} | 0 .../content.component.spec.ts} | 6 +++--- .../content.component.stories.ts} | 4 ++-- .../content.component.ts} | 2 +- ...tainer.directive.ts => content-container.directive.ts} | 0 .../{ocx-content.directive.ts => content.directive.ts} | 0 .../src/lib/core/portal-core.module.ts | 8 ++++---- ...-container.harness.ts => content-container.harness.ts} | 0 .../{ocx-content.harness.ts => content.harness.ts} | 0 14 files changed, 22 insertions(+), 22 deletions(-) rename libs/portal-integration-angular/src/lib/core/components/{ocx-content-container/ocx-content-container.component.html => content-container/content-container.component.html} (100%) rename libs/portal-integration-angular/src/lib/core/components/{ocx-content-container/ocx-content-container.component.spec.ts => content-container/content-container.component.spec.ts} (88%) rename libs/portal-integration-angular/src/lib/core/components/{ocx-content-container/ocx-content-container.component.stories.ts => content-container/content-container.component.stories.ts} (90%) rename libs/portal-integration-angular/src/lib/core/components/{ocx-content-container/ocx-content-container.component.ts => content-container/content-container.component.ts} (90%) rename libs/portal-integration-angular/src/lib/core/components/{ocx-content/ocx-content.component.html => content/content.component.html} (100%) rename libs/portal-integration-angular/src/lib/core/components/{ocx-content/ocx-content.component.spec.ts => content/content.component.spec.ts} (88%) rename libs/portal-integration-angular/src/lib/core/components/{ocx-content/ocx-content.component.stories.ts => content/content.component.stories.ts} (89%) rename libs/portal-integration-angular/src/lib/core/components/{ocx-content/ocx-content.component.ts => content/content.component.ts} (82%) rename libs/portal-integration-angular/src/lib/core/directives/{ocx-content-container.directive.ts => content-container.directive.ts} (100%) rename libs/portal-integration-angular/src/lib/core/directives/{ocx-content.directive.ts => content.directive.ts} (100%) rename libs/portal-integration-angular/testing/{ocx-content-container.harness.ts => content-container.harness.ts} (100%) rename libs/portal-integration-angular/testing/{ocx-content.harness.ts => content.harness.ts} (100%) diff --git a/libs/portal-integration-angular/src/index.ts b/libs/portal-integration-angular/src/index.ts index 05bced70..1818fbb1 100644 --- a/libs/portal-integration-angular/src/index.ts +++ b/libs/portal-integration-angular/src/index.ts @@ -7,8 +7,8 @@ export * from './lib/core/directives/basic.directive' export * from './lib/core/directives/patch-form-group-values.driective' export * from './lib/core/directives/set-input-value.directive' export * from './lib/core/directives/loading-indicator.directive' -export * from './lib/core/directives/ocx-content.directive' -export * from './lib/core/directives/ocx-content-container.directive' +export * from './lib/core/directives/content.directive' +export * from './lib/core/directives/content-container.directive' // components export * from './lib/core/components/loading/loading.component' @@ -52,8 +52,8 @@ export * from './lib/core/components/group-by-count-diagram/group-by-count-diagr export * from './lib/core/components/diagram/diagram.component' export * from './lib/core/components/search-config/search-config.component' export * from './lib/core/components/loading-indicator/loading-indicator.component' -export * from './lib/core/components/ocx-content-container/ocx-content-container.component' -export * from './lib/core/components/ocx-content/ocx-content.component' +export * from './lib/core/components/content-container/content-container.component' +export * from './lib/core/components/content/content.component' // services export * from './lib/services/app.menu.service' diff --git a/libs/portal-integration-angular/src/lib/core/components/ocx-content-container/ocx-content-container.component.html b/libs/portal-integration-angular/src/lib/core/components/content-container/content-container.component.html similarity index 100% rename from libs/portal-integration-angular/src/lib/core/components/ocx-content-container/ocx-content-container.component.html rename to libs/portal-integration-angular/src/lib/core/components/content-container/content-container.component.html diff --git a/libs/portal-integration-angular/src/lib/core/components/ocx-content-container/ocx-content-container.component.spec.ts b/libs/portal-integration-angular/src/lib/core/components/content-container/content-container.component.spec.ts similarity index 88% rename from libs/portal-integration-angular/src/lib/core/components/ocx-content-container/ocx-content-container.component.spec.ts rename to libs/portal-integration-angular/src/lib/core/components/content-container/content-container.component.spec.ts index f2048462..73f19de0 100644 --- a/libs/portal-integration-angular/src/lib/core/components/ocx-content-container/ocx-content-container.component.spec.ts +++ b/libs/portal-integration-angular/src/lib/core/components/content-container/content-container.component.spec.ts @@ -1,7 +1,7 @@ -import { OcxContentContainerHarness } from './../../../../../testing/ocx-content-container.harness' +import { OcxContentContainerHarness } from '../../../../../testing/content-container.harness' import { ComponentFixture, TestBed } from '@angular/core/testing' -import { OcxContentContainerComponent } from './ocx-content-container.component' -import { OcxContentContainerDirective } from '../../directives/ocx-content-container.directive' +import { OcxContentContainerComponent } from './content-container.component' +import { OcxContentContainerDirective } from '../../directives/content-container.directive' import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed' describe('OcxContentContainerComponent', () => { diff --git a/libs/portal-integration-angular/src/lib/core/components/ocx-content-container/ocx-content-container.component.stories.ts b/libs/portal-integration-angular/src/lib/core/components/content-container/content-container.component.stories.ts similarity index 90% rename from libs/portal-integration-angular/src/lib/core/components/ocx-content-container/ocx-content-container.component.stories.ts rename to libs/portal-integration-angular/src/lib/core/components/content-container/content-container.component.stories.ts index d3961487..983068ac 100644 --- a/libs/portal-integration-angular/src/lib/core/components/ocx-content-container/ocx-content-container.component.stories.ts +++ b/libs/portal-integration-angular/src/lib/core/components/content-container/content-container.component.stories.ts @@ -1,7 +1,7 @@ -import { OcxContentContainerDirective } from '../../directives/ocx-content-container.directive' -import { OcxContentDirective } from '../../directives/ocx-content.directive' -import { OcxContentComponent } from '../ocx-content/ocx-content.component' -import { OcxContentContainerComponent } from './ocx-content-container.component' +import { OcxContentContainerDirective } from '../../directives/content-container.directive' +import { OcxContentDirective } from '../../directives/content.directive' +import { OcxContentComponent } from '../content/content.component' +import { OcxContentContainerComponent } from './content-container.component' import { moduleMetadata, Meta } from '@storybook/angular' export default { diff --git a/libs/portal-integration-angular/src/lib/core/components/ocx-content-container/ocx-content-container.component.ts b/libs/portal-integration-angular/src/lib/core/components/content-container/content-container.component.ts similarity index 90% rename from libs/portal-integration-angular/src/lib/core/components/ocx-content-container/ocx-content-container.component.ts rename to libs/portal-integration-angular/src/lib/core/components/content-container/content-container.component.ts index 0c90602d..2b3c7fb8 100644 --- a/libs/portal-integration-angular/src/lib/core/components/ocx-content-container/ocx-content-container.component.ts +++ b/libs/portal-integration-angular/src/lib/core/components/content-container/content-container.component.ts @@ -2,7 +2,7 @@ import { Component, Input } from '@angular/core' @Component({ selector: 'ocx-content-container', - templateUrl: './ocx-content-container.component.html', + templateUrl: './content-container.component.html', }) export class OcxContentContainerComponent { /** diff --git a/libs/portal-integration-angular/src/lib/core/components/ocx-content/ocx-content.component.html b/libs/portal-integration-angular/src/lib/core/components/content/content.component.html similarity index 100% rename from libs/portal-integration-angular/src/lib/core/components/ocx-content/ocx-content.component.html rename to libs/portal-integration-angular/src/lib/core/components/content/content.component.html diff --git a/libs/portal-integration-angular/src/lib/core/components/ocx-content/ocx-content.component.spec.ts b/libs/portal-integration-angular/src/lib/core/components/content/content.component.spec.ts similarity index 88% rename from libs/portal-integration-angular/src/lib/core/components/ocx-content/ocx-content.component.spec.ts rename to libs/portal-integration-angular/src/lib/core/components/content/content.component.spec.ts index 88052ee9..50214ee9 100644 --- a/libs/portal-integration-angular/src/lib/core/components/ocx-content/ocx-content.component.spec.ts +++ b/libs/portal-integration-angular/src/lib/core/components/content/content.component.spec.ts @@ -1,7 +1,7 @@ -import { OcxContentHarness } from './../../../../../testing/ocx-content.harness'; +import { OcxContentHarness } from '../../../../../testing/content.harness'; import { ComponentFixture, TestBed } from '@angular/core/testing' -import { OcxContentComponent } from './ocx-content.component' -import { OcxContentDirective } from '../../directives/ocx-content.directive' +import { OcxContentComponent } from './content.component' +import { OcxContentDirective } from '../../directives/content.directive' import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed'; describe('OcxContentComponent', () => { diff --git a/libs/portal-integration-angular/src/lib/core/components/ocx-content/ocx-content.component.stories.ts b/libs/portal-integration-angular/src/lib/core/components/content/content.component.stories.ts similarity index 89% rename from libs/portal-integration-angular/src/lib/core/components/ocx-content/ocx-content.component.stories.ts rename to libs/portal-integration-angular/src/lib/core/components/content/content.component.stories.ts index c31c4579..0ad5d4b5 100644 --- a/libs/portal-integration-angular/src/lib/core/components/ocx-content/ocx-content.component.stories.ts +++ b/libs/portal-integration-angular/src/lib/core/components/content/content.component.stories.ts @@ -1,5 +1,5 @@ -import { OcxContentDirective } from '../../directives/ocx-content.directive'; -import { OcxContentComponent } from './ocx-content.component'; +import { OcxContentDirective } from '../../directives/content.directive'; +import { OcxContentComponent } from './content.component'; import { moduleMetadata, Meta } from '@storybook/angular' export default { diff --git a/libs/portal-integration-angular/src/lib/core/components/ocx-content/ocx-content.component.ts b/libs/portal-integration-angular/src/lib/core/components/content/content.component.ts similarity index 82% rename from libs/portal-integration-angular/src/lib/core/components/ocx-content/ocx-content.component.ts rename to libs/portal-integration-angular/src/lib/core/components/content/content.component.ts index 6169e3ff..e5db6348 100644 --- a/libs/portal-integration-angular/src/lib/core/components/ocx-content/ocx-content.component.ts +++ b/libs/portal-integration-angular/src/lib/core/components/content/content.component.ts @@ -2,7 +2,7 @@ import { Component, Input } from '@angular/core' @Component({ selector: 'ocx-content', - templateUrl: './ocx-content.component.html', + templateUrl: './content.component.html', }) export class OcxContentComponent { /** diff --git a/libs/portal-integration-angular/src/lib/core/directives/ocx-content-container.directive.ts b/libs/portal-integration-angular/src/lib/core/directives/content-container.directive.ts similarity index 100% rename from libs/portal-integration-angular/src/lib/core/directives/ocx-content-container.directive.ts rename to libs/portal-integration-angular/src/lib/core/directives/content-container.directive.ts diff --git a/libs/portal-integration-angular/src/lib/core/directives/ocx-content.directive.ts b/libs/portal-integration-angular/src/lib/core/directives/content.directive.ts similarity index 100% rename from libs/portal-integration-angular/src/lib/core/directives/ocx-content.directive.ts rename to libs/portal-integration-angular/src/lib/core/directives/content.directive.ts diff --git a/libs/portal-integration-angular/src/lib/core/portal-core.module.ts b/libs/portal-integration-angular/src/lib/core/portal-core.module.ts index d3a450c0..94bfd1e4 100644 --- a/libs/portal-integration-angular/src/lib/core/portal-core.module.ts +++ b/libs/portal-integration-angular/src/lib/core/portal-core.module.ts @@ -76,10 +76,10 @@ import { LoadingIndicatorComponent } from './components/loading-indicator/loadin import { LoadingIndicatorDirective } from './directives/loading-indicator.directive' import { DiagramComponent } from './components/diagram/diagram.component' import { GroupByCountDiagramComponent } from './components/group-by-count-diagram/group-by-count-diagram.component' -import { OcxContentDirective } from './directives/ocx-content.directive' -import { OcxContentComponent } from './components/ocx-content/ocx-content.component' -import { OcxContentContainerComponent } from './components/ocx-content-container/ocx-content-container.component' -import { OcxContentContainerDirective } from './directives/ocx-content-container.directive' +import { OcxContentDirective } from './directives/content.directive' +import { OcxContentComponent } from './components/content/content.component' +import { OcxContentContainerComponent } from './components/content-container/content-container.component' +import { OcxContentContainerDirective } from './directives/content-container.directive' import { SearchConfigComponent } from './components/search-config/search-config.component' import { UserService } from '../services/user.service' import { UserProfileAPIService } from '../services/userprofile-api.service' diff --git a/libs/portal-integration-angular/testing/ocx-content-container.harness.ts b/libs/portal-integration-angular/testing/content-container.harness.ts similarity index 100% rename from libs/portal-integration-angular/testing/ocx-content-container.harness.ts rename to libs/portal-integration-angular/testing/content-container.harness.ts diff --git a/libs/portal-integration-angular/testing/ocx-content.harness.ts b/libs/portal-integration-angular/testing/content.harness.ts similarity index 100% rename from libs/portal-integration-angular/testing/ocx-content.harness.ts rename to libs/portal-integration-angular/testing/content.harness.ts