Skip to content

Commit

Permalink
[apache#877] Optimize imports for dashboard module
Browse files Browse the repository at this point in the history
  • Loading branch information
aamirxshaikh committed Jan 24, 2023
1 parent 9252825 commit 0870f1e
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { GridsterItemComponent, GridType } from 'angular-gridster2';
import { GridsterInfo } from '../../models/gridster-info.model';
import { DashboardWidgetComponent } from '../widget/dashboard-widget.component';
import { exhaustMap } from 'rxjs/operators';
import { Observable, of, Subscription, timer } from 'rxjs';
import { Observable, Subscription, timer } from 'rxjs';

@Component({
selector: 'sp-dashboard-grid',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ import {
Input,
OnInit,
Output,
QueryList,
ViewChild,
ViewChildren,
ViewContainerRef,
} from '@angular/core';
import { AddVisualizationDialogComponent } from '../../dialogs/add-widget/add-visualization-dialog.component';
import {
Expand All @@ -47,7 +44,6 @@ import { zip } from 'rxjs';
import { GridsterItemComponent } from 'angular-gridster2';
import { ResizeService } from '../../services/resize.service';
import { GridsterInfo } from '../../models/gridster-info.model';
import { BaseDataExplorerWidgetDirective } from '../../../data-explorer/components/widgets/base/base-data-explorer-widget.directive';
import { BaseStreamPipesWidget } from '../widgets/base/base-widget';

@Component({
Expand Down
9 changes: 1 addition & 8 deletions ui/src/app/dashboard/components/widgets/base/base-widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ import {
SimpleChanges,
} from '@angular/core';
import { StaticPropertyExtractor } from '../../../sdk/extractor/static-property-extractor';
import {
BehaviorSubject,
interval,
Observable,
Subscription,
timer,
} from 'rxjs';
import { BehaviorSubject, interval, Observable, Subscription } from 'rxjs';
import { WidgetConfigBuilder } from '../../../registry/widget-config-builder';
import { ResizeService } from '../../../services/resize.service';
import {
Expand All @@ -47,7 +41,6 @@ import {
} from '@streampipes/platform-services';
import { exhaustMap, map, switchMap } from 'rxjs/operators';
import { GridsterItemComponent } from 'angular-gridster2';
import { query } from '@angular/animations';

@Directive()
export abstract class BaseStreamPipesWidget
Expand Down
1 change: 0 additions & 1 deletion ui/src/app/dashboard/dashboard.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ import { CustomMaterialModule } from '../CustomMaterial/custom-material.module';
import { ServicesModule } from '../services/services.module';
import { RouterModule } from '@angular/router';
import { SharedUiModule } from '@streampipes/shared-ui';
import { DataExplorerPanelCanDeactivateGuard } from '../data-explorer/data-explorer-panel.can-deactivate.guard';
import { DashboardPanelCanDeactivateGuard } from './dashboard.can-deactivate.guard';

@NgModule({
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/dashboard/registry/widget-config-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import {
DashboardWidgetSettings,
FreeTextStaticProperty,
OneOfStaticProperty,
StaticProperty,
Option,
StaticProperty,
} from '@streampipes/platform-services';

export class WidgetConfigBuilder {
Expand Down
1 change: 0 additions & 1 deletion ui/src/app/dashboard/registry/widget-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {
DashboardWidgetSettings,
DataLakeMeasure,
EventSchema,
VisualizablePipeline,
} from '@streampipes/platform-services';
import { WordCloudConfig } from '../components/widgets/wordcloud/wordcloud-config';
import { StatusWidgetConfig } from '../components/widgets/status/status-config';
Expand Down

0 comments on commit 0870f1e

Please sign in to comment.