Skip to content

Commit

Permalink
NAS-130213: Do not show apps widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
denysbutenko committed Aug 8, 2024
1 parent e93f297 commit 88e1fa4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 37 deletions.
16 changes: 0 additions & 16 deletions src/app/pages/dashboard/dashboard.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ import { FormatDateTimePipe } from 'app/modules/pipes/format-date-time/format-da
import { MapValuePipe } from 'app/modules/pipes/map-value/map-value.pipe';
import { NetworkSpeedPipe } from 'app/modules/pipes/network-speed/network-speed.pipe';
import { TestIdModule } from 'app/modules/test-id/test-id.module';
import { AppCardLogoComponent } from 'app/pages/apps/components/app-card-logo/app-card-logo.component';
import { AppStatusCellComponent } from 'app/pages/apps/components/installed-apps/app-status-cell/app-status-cell.component';
import { AppUpdateCellComponent } from 'app/pages/apps/components/installed-apps/app-update-cell/app-update-cell.component';
import { DashboardComponent } from 'app/pages/dashboard/components/dashboard/dashboard.component';
import {
WidgetGroupControlsComponent,
Expand All @@ -45,11 +42,6 @@ import { routing } from 'app/pages/dashboard/dashboard.routing';
import { DashboardStore } from 'app/pages/dashboard/services/dashboard.store';
import { WidgetResourcesService } from 'app/pages/dashboard/services/widget-resources.service';
import { widgetComponents } from 'app/pages/dashboard/widgets/all-widgets.constant';
import { AppCardInfoComponent } from 'app/pages/dashboard/widgets/apps/common/app-card-info/app-card-info.component';
import { AppControlsComponent } from 'app/pages/dashboard/widgets/apps/common/app-controls/app-controls.component';
import { AppCpuInfoComponent } from 'app/pages/dashboard/widgets/apps/common/app-cpu-info/app-cpu-info.component';
import { AppMemoryInfoComponent } from 'app/pages/dashboard/widgets/apps/common/app-memory-info/app-memory-info.component';
import { AppNetworkInfoComponent } from 'app/pages/dashboard/widgets/apps/common/app-network-info/app-network-info.component';
import { BackupTaskActionsComponent } from 'app/pages/dashboard/widgets/backup/widget-backup/backup-task-actions/backup-task-actions.component';
import { BackupTaskEmptyComponent } from 'app/pages/dashboard/widgets/backup/widget-backup/backup-task-empty/backup-task-empty.component';
import { BackupTaskTileComponent } from 'app/pages/dashboard/widgets/backup/widget-backup/backup-task-tile/backup-task-tile.component';
Expand Down Expand Up @@ -87,11 +79,6 @@ import { PoolUsageGaugeComponent } from './widgets/storage/widget-pool/common/po
DisksWithZfsErrorsComponent,
PoolStatusComponent,
LastScanErrorsComponent,
AppCardInfoComponent,
AppMemoryInfoComponent,
AppCpuInfoComponent,
AppNetworkInfoComponent,
AppControlsComponent,
...widgetComponents,
],
providers: [
Expand Down Expand Up @@ -132,9 +119,6 @@ import { PoolUsageGaugeComponent } from './widgets/storage/widget-pool/common/po
ImgFallbackModule,
InterfaceStatusIconComponent,
UptimePipe,
AppCardLogoComponent,
AppStatusCellComponent,
AppUpdateCellComponent,
FormatDateTimePipe,
FileSizePipe,
CopyButtonComponent,
Expand Down
5 changes: 0 additions & 5 deletions src/app/pages/dashboard/types/widget.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
* Provide migration if possible.
*/
export enum WidgetType {
App = 'app',
AppInfo = 'app-info',
AppMemory = 'app-memory',
AppCpu = 'app-cpu',
AppNetwork = 'app-network',
Ipv4Address = 'ipv4-address',
Ipv6Address = 'ipv6-address',
Help = 'help',
Expand Down
16 changes: 0 additions & 16 deletions src/app/pages/dashboard/widgets/all-widgets.constant.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import { WidgetType } from 'app/pages/dashboard/types/widget.interface';
import { appWidget } from 'app/pages/dashboard/widgets/apps/widget-app/widget-app.definition';
import { appCpuWidget } from 'app/pages/dashboard/widgets/apps/widget-app-cpu/widget-app-cpu.definition';
import { appInfoWidget } from 'app/pages/dashboard/widgets/apps/widget-app-info/widget-app-info.definition';
import { appMemoryWidget } from 'app/pages/dashboard/widgets/apps/widget-app-memory/widget-app-memory.definition';
import { appNetworkWidget } from 'app/pages/dashboard/widgets/apps/widget-app-network/widget-app-network.definition';
import { backupTasksWidget } from 'app/pages/dashboard/widgets/backup/widget-backup/widget-backup.definition';
import { cpuWidget } from 'app/pages/dashboard/widgets/cpu/widget-cpu/widget-cpu.definition';
import { cpuTemperatureBarWidget } from 'app/pages/dashboard/widgets/cpu/widget-cpu-temperature-bar/widget-cpu-temperature-bar.definition';
Expand Down Expand Up @@ -38,12 +33,6 @@ import { systemImageWidget } from 'app/pages/dashboard/widgets/system/widget-sys
import { systemUptimeWidget } from 'app/pages/dashboard/widgets/system/widget-system-uptime/widget-system-uptime.definition';

export const widgetComponents = [
appWidget.component,
appWidget.settingsComponent,
appInfoWidget.component,
appMemoryWidget.component,
appCpuWidget.component,
appNetworkWidget.component,
ipv4AddressWidget.component,
ipv4AddressWidget.settingsComponent,
helpWidget.component,
Expand Down Expand Up @@ -76,11 +65,6 @@ export const widgetComponents = [
];

export const widgetRegistry = {
[WidgetType.App]: appWidget,
[WidgetType.AppInfo]: appInfoWidget,
[WidgetType.AppMemory]: appMemoryWidget,
[WidgetType.AppCpu]: appCpuWidget,
[WidgetType.AppNetwork]: appNetworkWidget,
[WidgetType.Pool]: poolWidget,
[WidgetType.PoolUsageGauge]: poolUsageGaugeWidget,
[WidgetType.PoolStatus]: poolStatusWidget,
Expand Down

0 comments on commit 88e1fa4

Please sign in to comment.