From 88bfdca110f441572707d6628f5dd0da524e8ded Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Tue, 7 Apr 2026 12:02:14 +0300 Subject: [PATCH] Move IoT Hub browse and item card components to HomeComponentsModule - Move iot-hub-browse.component to home/components/iot-hub/ - Move iot-hub-item-card.component to home/components/iot-hub/ - Register both in HomeComponentsModule (declarations + exports) - Remove from IotHubModule declarations - Update relative imports to use @home/pages/iot-hub/ for dialog dependencies --- .../app/modules/home/components/home-components.module.ts | 6 ++++++ .../iot-hub/iot-hub-browse.component.html | 0 .../iot-hub/iot-hub-browse.component.scss | 0 .../iot-hub/iot-hub-browse.component.ts | 8 ++++---- .../iot-hub/iot-hub-item-card.component.html | 0 .../iot-hub/iot-hub-item-card.component.scss | 0 .../iot-hub/iot-hub-item-card.component.ts | 0 .../src/app/modules/home/pages/iot-hub/iot-hub.module.ts | 4 ---- 8 files changed, 10 insertions(+), 8 deletions(-) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/iot-hub-browse.component.html (100%) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/iot-hub-browse.component.scss (100%) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/iot-hub-browse.component.ts (98%) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/iot-hub-item-card.component.html (100%) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/iot-hub-item-card.component.scss (100%) rename ui-ngx/src/app/modules/home/{pages => components}/iot-hub/iot-hub-item-card.component.ts (100%) diff --git a/ui-ngx/src/app/modules/home/components/home-components.module.ts b/ui-ngx/src/app/modules/home/components/home-components.module.ts index 9eb6609f25..1d52e8156c 100644 --- a/ui-ngx/src/app/modules/home/components/home-components.module.ts +++ b/ui-ngx/src/app/modules/home/components/home-components.module.ts @@ -113,6 +113,8 @@ import { DashboardLayoutComponent } from '@home/components/dashboard-page/layout import { EditWidgetComponent } from '@home/components/dashboard-page/edit-widget.component'; import { DashboardWidgetSelectComponent } from '@home/components/dashboard-page/dashboard-widget-select.component'; import { TbIotHubItemDetailDialogComponent } from '@home/components/iot-hub/iot-hub-item-detail-dialog.component'; +import { TbIotHubBrowseComponent } from '@home/components/iot-hub/iot-hub-browse.component'; +import { TbIotHubItemCardComponent } from '@home/components/iot-hub/iot-hub-item-card.component'; import { AddWidgetDialogComponent } from '@home/components/dashboard-page/add-widget-dialog.component'; import { ManageDashboardLayoutsDialogComponent } from '@home/components/dashboard-page/layout/manage-dashboard-layouts-dialog.component'; import { @@ -323,6 +325,8 @@ import { SolutionInstallDialogComponent } from '@home/components/solution/soluti EditWidgetComponent, DashboardWidgetSelectComponent, TbIotHubItemDetailDialogComponent, + TbIotHubBrowseComponent, + TbIotHubItemCardComponent, AddWidgetDialogComponent, MoveWidgetsDialogComponent, ManageDashboardLayoutsDialogComponent, @@ -474,6 +478,8 @@ import { SolutionInstallDialogComponent } from '@home/components/solution/soluti EditWidgetComponent, DashboardWidgetSelectComponent, TbIotHubItemDetailDialogComponent, + TbIotHubBrowseComponent, + TbIotHubItemCardComponent, AddWidgetDialogComponent, MoveWidgetsDialogComponent, ManageDashboardLayoutsDialogComponent, diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-browse.component.html b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.html similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-browse.component.html rename to ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.html diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-browse.component.scss b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.scss similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-browse.component.scss rename to ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.scss diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-browse.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.ts similarity index 98% rename from ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-browse.component.ts rename to ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.ts index eaeb4ed0cf..d9f66a23a5 100644 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-browse.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-browse.component.ts @@ -32,10 +32,10 @@ import { MatDialog } from '@angular/material/dialog'; import { TranslateService } from '@ngx-translate/core'; import { ActivatedRoute, Router } from '@angular/router'; import { TbIotHubItemDetailDialogComponent, IotHubItemDetailDialogData } from '@home/components/iot-hub/iot-hub-item-detail-dialog.component'; -import { TbIotHubInstallDialogComponent, IotHubInstallDialogData } from './iot-hub-install-dialog.component'; -import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from './iot-hub-update-dialog.component'; -import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from './iot-hub-delete-dialog.component'; -import { TbDeviceInstallDialogComponent, DeviceInstallDialogData } from './device-install-dialog/device-install-dialog.component'; +import { TbIotHubInstallDialogComponent, IotHubInstallDialogData } from '@home/pages/iot-hub/iot-hub-install-dialog.component'; +import { TbIotHubUpdateDialogComponent, IotHubUpdateDialogData } from '@home/pages/iot-hub/iot-hub-update-dialog.component'; +import { TbIotHubDeleteDialogComponent, IotHubDeleteDialogData } from '@home/pages/iot-hub/iot-hub-delete-dialog.component'; +import { TbDeviceInstallDialogComponent, DeviceInstallDialogData } from '@home/pages/iot-hub/device-install-dialog/device-install-dialog.component'; interface SortOption { value: string; diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-item-card.component.html b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.html similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-item-card.component.html rename to ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.html diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-item-card.component.scss b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.scss similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-item-card.component.scss rename to ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.scss diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-item-card.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.ts similarity index 100% rename from ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-item-card.component.ts rename to ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-card.component.ts diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub.module.ts b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub.module.ts index ac2bda4b50..e097c5c883 100644 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub.module.ts +++ b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub.module.ts @@ -20,10 +20,8 @@ import { SharedModule } from '@shared/shared.module'; import { IotHubRoutingModule } from './iot-hub-routing.module'; import { TbIotHubHomeComponent } from './iot-hub-home.component'; import { TbIotHubItemsPageComponent } from './iot-hub-items-page.component'; -import { TbIotHubBrowseComponent } from './iot-hub-browse.component'; import { TbIotHubCreatorProfileComponent } from './iot-hub-creator-profile.component'; import { TbIotHubInstallDialogComponent } from './iot-hub-install-dialog.component'; -import { TbIotHubItemCardComponent } from './iot-hub-item-card.component'; import { TbIotHubInstalledItemsComponent } from './iot-hub-installed-items.component'; import { TbIotHubUpdateDialogComponent } from './iot-hub-update-dialog.component'; import { TbIotHubDeleteDialogComponent } from './iot-hub-delete-dialog.component'; @@ -34,10 +32,8 @@ import { TbIotHubSearchComponent } from './iot-hub-search.component'; declarations: [ TbIotHubHomeComponent, TbIotHubItemsPageComponent, - TbIotHubBrowseComponent, TbIotHubCreatorProfileComponent, TbIotHubInstallDialogComponent, - TbIotHubItemCardComponent, TbIotHubInstalledItemsComponent, TbIotHubUpdateDialogComponent, TbIotHubDeleteDialogComponent,