From c12f113318b805971081dcf1aff15819680ec8f3 Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Mon, 6 Aug 2018 18:44:15 +0100 Subject: [PATCH] mgr/dashboard: Update prettier package MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Prettier updated the following rule, that implied we update our code: "Never inline decorators unless they’re lone parameter decorators" Signed-off-by: Tiago Melo --- .../mgr/dashboard/frontend/package-lock.json | 6 +- .../mgr/dashboard/frontend/package.json | 2 +- .../block/mirroring/mirroring.component.ts | 12 ++-- .../rbd-details/rbd-details.component.ts | 3 +- .../ceph/block/rbd-list/rbd-list.component.ts | 15 ++-- .../rbd-snapshot-list.component.ts | 23 ++++--- .../cephfs-chart/cephfs-chart.component.ts | 9 ++- .../cephfs-clients.component.ts | 3 +- .../cephfs-detail.component.spec.ts | 6 +- .../cephfs-detail/cephfs-detail.component.ts | 9 ++- .../cephfs-list/cephfs-list.component.spec.ts | 3 +- .../configuration/configuration.component.ts | 6 +- .../app/ceph/cluster/hosts/hosts.component.ts | 3 +- .../osd/osd-details/osd-details.component.ts | 3 +- .../osd/osd-list/osd-list.component.ts | 9 ++- .../osd-performance-histogram.component.ts | 3 +- .../health-pie/health-pie.component.ts | 17 +++-- .../info-card/info-card.component.ts | 15 ++-- .../table-performance-counter.component.ts | 9 ++- .../rgw-bucket-details.component.ts | 3 +- .../rgw-bucket-list.component.ts | 3 +- .../rgw-daemon-details.component.ts | 3 +- .../rgw-user-capability-modal.component.ts | 3 +- .../rgw-user-details.component.ts | 9 ++- .../rgw-user-list/rgw-user-list.component.ts | 3 +- .../rgw-user-s3-key-modal.component.ts | 3 +- .../rgw-user-subuser-modal.component.ts | 3 +- .../auth/user-list/user-list.component.ts | 3 +- .../deletion-modal.component.spec.ts | 6 +- .../deletion-modal.component.ts | 3 +- .../error-panel/error-panel.component.ts | 6 +- .../components/helper/helper.component.ts | 3 +- .../info-panel/info-panel.component.ts | 3 +- .../components/modal/modal.component.ts | 3 +- .../select-badges/select-badges.component.ts | 9 ++- .../sparkline/sparkline.component.ts | 9 ++- .../submit-button/submit-button.component.ts | 9 ++- .../usage-bar/usage-bar.component.ts | 6 +- .../view-cache/view-cache.component.ts | 6 +- .../warning-panel/warning-panel.component.ts | 3 +- .../table-key-value.component.ts | 15 ++-- .../shared/datatable/table/table.component.ts | 69 ++++++++++++------- .../copy2clipboard-button.directive.ts | 3 +- .../directives/dimless-binary.directive.ts | 15 ++-- .../directives/password-button.directive.ts | 3 +- 45 files changed, 238 insertions(+), 122 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/package-lock.json b/src/pybind/mgr/dashboard/frontend/package-lock.json index 54ca2e3641d24..d2b5c7e54f709 100644 --- a/src/pybind/mgr/dashboard/frontend/package-lock.json +++ b/src/pybind/mgr/dashboard/frontend/package-lock.json @@ -9058,9 +9058,9 @@ "dev": true }, "prettier": { - "version": "1.13.7", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.13.7.tgz", - "integrity": "sha512-KIU72UmYPGk4MujZGYMFwinB7lOf2LsDNGSOC8ufevsrPLISrZbNJlWstRi3m0AMuszbH+EFSQ/r6w56RSPK6w==", + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.14.0.tgz", + "integrity": "sha512-KtQ2EGaUwf2EyDfp1fxyEb0PqGKakVm0WyXwDt6u+cAoxbO2Z2CwKvOe3+b4+F2IlO9lYHi1kqFuRM70ddBnow==", "dev": true }, "pretty-error": { diff --git a/src/pybind/mgr/dashboard/frontend/package.json b/src/pybind/mgr/dashboard/frontend/package.json index b31ba852c7949..4c24d3e3e6061 100644 --- a/src/pybind/mgr/dashboard/frontend/package.json +++ b/src/pybind/mgr/dashboard/frontend/package.json @@ -78,7 +78,7 @@ "jest": "23.4.2", "jest-canvas-mock": "1.1.0", "jest-preset-angular": "6.0.0", - "prettier": "1.13.7", + "prettier": "1.14.0", "protractor": "5.4.0", "ts-node": "7.0.0", "tslint": "5.11.0", diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/mirroring.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/mirroring.component.ts index bf4a68c947234..11586e8a12b8c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/mirroring.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/mirroring.component.ts @@ -10,10 +10,14 @@ import { CephShortVersionPipe } from '../../../shared/pipes/ceph-short-version.p styleUrls: ['./mirroring.component.scss'] }) export class MirroringComponent implements OnInit { - @ViewChild('healthTmpl') healthTmpl: TemplateRef; - @ViewChild('stateTmpl') stateTmpl: TemplateRef; - @ViewChild('syncTmpl') syncTmpl: TemplateRef; - @ViewChild('progressTmpl') progressTmpl: TemplateRef; + @ViewChild('healthTmpl') + healthTmpl: TemplateRef; + @ViewChild('stateTmpl') + stateTmpl: TemplateRef; + @ViewChild('syncTmpl') + syncTmpl: TemplateRef; + @ViewChild('progressTmpl') + progressTmpl: TemplateRef; contentData: any; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-details/rbd-details.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-details/rbd-details.component.ts index 3cd778dd62e0e..702416b96d78b 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-details/rbd-details.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-details/rbd-details.component.ts @@ -8,7 +8,8 @@ import { CdTableSelection } from '../../../shared/models/cd-table-selection'; styleUrls: ['./rbd-details.component.scss'] }) export class RbdDetailsComponent implements OnChanges { - @Input() selection: CdTableSelection; + @Input() + selection: CdTableSelection; selectedItem: any; constructor() {} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts index 0b0b5f77a4d0d..e93f5f6402096 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts @@ -29,11 +29,16 @@ import { RbdModel } from './rbd-model'; styleUrls: ['./rbd-list.component.scss'] }) export class RbdListComponent implements OnInit, OnDestroy { - @ViewChild(TableComponent) table: TableComponent; - @ViewChild('usageTpl') usageTpl: TemplateRef; - @ViewChild('parentTpl') parentTpl: TemplateRef; - @ViewChild('nameTpl') nameTpl: TemplateRef; - @ViewChild('flattenTpl') flattenTpl: TemplateRef; + @ViewChild(TableComponent) + table: TableComponent; + @ViewChild('usageTpl') + usageTpl: TemplateRef; + @ViewChild('parentTpl') + parentTpl: TemplateRef; + @ViewChild('nameTpl') + nameTpl: TemplateRef; + @ViewChild('flattenTpl') + flattenTpl: TemplateRef; permission: Permission; images: any; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.ts index a3f2b40c28278..af27a265b88aa 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.ts @@ -26,14 +26,21 @@ import { RbdSnapshotModel } from './rbd-snapshot.model'; styleUrls: ['./rbd-snapshot-list.component.scss'] }) export class RbdSnapshotListComponent implements OnInit, OnChanges { - @Input() snapshots: RbdSnapshotModel[] = []; - @Input() poolName: string; - @Input() rbdName: string; - @Input() executingTasks: ExecutingTask[] = []; - - @ViewChild('nameTpl') nameTpl: TemplateRef; - @ViewChild('protectTpl') protectTpl: TemplateRef; - @ViewChild('rollbackTpl') rollbackTpl: TemplateRef; + @Input() + snapshots: RbdSnapshotModel[] = []; + @Input() + poolName: string; + @Input() + rbdName: string; + @Input() + executingTasks: ExecutingTask[] = []; + + @ViewChild('nameTpl') + nameTpl: TemplateRef; + @ViewChild('protectTpl') + protectTpl: TemplateRef; + @ViewChild('rollbackTpl') + rollbackTpl: TemplateRef; permission: Permission; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts index 39a03890add32..0ef6c5695b4b4 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts @@ -11,10 +11,13 @@ import { ChartTooltip } from '../../../shared/models/chart-tooltip'; styleUrls: ['./cephfs-chart.component.scss'] }) export class CephfsChartComponent implements OnChanges, OnInit { - @ViewChild('chartCanvas') chartCanvas: ElementRef; - @ViewChild('chartTooltip') chartTooltip: ElementRef; + @ViewChild('chartCanvas') + chartCanvas: ElementRef; + @ViewChild('chartTooltip') + chartTooltip: ElementRef; - @Input() mdsCounter: any; + @Input() + mdsCounter: any; lhsCounter = 'mds.inodes'; rhsCounter = 'mds_server.handle_client_request'; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.ts index e04f5019cdd50..093563155fb46 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.ts @@ -9,7 +9,8 @@ import { ViewCacheStatus } from '../../../shared/enum/view-cache-status.enum'; styleUrls: ['./cephfs-clients.component.scss'] }) export class CephfsClientsComponent implements OnInit { - @Input() id: number; + @Input() + id: number; clients: any; viewCacheStatus: ViewCacheStatus; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.spec.ts index 616630e2277d6..5f139c90d0c5e 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.spec.ts @@ -13,12 +13,14 @@ import { CephfsDetailComponent } from './cephfs-detail.component'; @Component({ selector: 'cd-cephfs-chart', template: '' }) class CephfsChartStubComponent { - @Input() mdsCounter: any; + @Input() + mdsCounter: any; } @Component({ selector: 'cd-cephfs-clients', template: '' }) class CephfsClientsStubComponent { - @Input() mdsCounter: any; + @Input() + mdsCounter: any; } describe('CephfsDetailComponent', () => { diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.ts index 378261026d196..8d28ce298825b 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.ts @@ -13,10 +13,13 @@ import { DimlessPipe } from '../../../shared/pipes/dimless.pipe'; styleUrls: ['./cephfs-detail.component.scss'] }) export class CephfsDetailComponent implements OnChanges, OnInit { - @ViewChild('poolUsageTpl') poolUsageTpl: TemplateRef; - @ViewChild('activityTmpl') activityTmpl: TemplateRef; + @ViewChild('poolUsageTpl') + poolUsageTpl: TemplateRef; + @ViewChild('activityTmpl') + activityTmpl: TemplateRef; - @Input() selection: CdTableSelection; + @Input() + selection: CdTableSelection; selectedItem: any; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts index aba6f1f4662df..a706737944510 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts @@ -10,7 +10,8 @@ import { CephfsListComponent } from './cephfs-list.component'; @Component({ selector: 'cd-cephfs-detail', template: '' }) class CephfsDetailStubComponent { - @Input() selection: CdTableSelection; + @Input() + selection: CdTableSelection; } describe('CephfsListComponent', () => { diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.ts index 6cf7046707254..bf82c9583ba92 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.ts @@ -74,8 +74,10 @@ export class ConfigurationComponent implements OnInit { create: 'Option only affects daemon creation.' }; - @ViewChild('confValTpl') public confValTpl: TemplateRef; - @ViewChild('confFlagTpl') public confFlagTpl: TemplateRef; + @ViewChild('confValTpl') + public confValTpl: TemplateRef; + @ViewChild('confFlagTpl') + public confFlagTpl: TemplateRef; constructor(private configurationService: ConfigurationService) {} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts index f574055bded63..0897b616e71c1 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts @@ -18,7 +18,8 @@ export class HostsComponent implements OnInit { hosts: Array = []; isLoadingHosts = false; - @ViewChild('servicesTpl') public servicesTpl: TemplateRef; + @ViewChild('servicesTpl') + public servicesTpl: TemplateRef; constructor( private authStorageService: AuthStorageService, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.ts index 5f3552b3455ba..f7b250f2c0618 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.ts @@ -11,7 +11,8 @@ import { CdTableSelection } from '../../../../shared/models/cd-table-selection'; styleUrls: ['./osd-details.component.scss'] }) export class OsdDetailsComponent implements OnChanges { - @Input() selection: CdTableSelection; + @Input() + selection: CdTableSelection; osd: any; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts index 899f935c5b851..92d19d44f5bb7 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts @@ -19,9 +19,12 @@ import { OsdScrubModalComponent } from '../osd-scrub-modal/osd-scrub-modal.compo styleUrls: ['./osd-list.component.scss'] }) export class OsdListComponent implements OnInit { - @ViewChild('statusColor') statusColor: TemplateRef; - @ViewChild('osdUsageTpl') osdUsageTpl: TemplateRef; - @ViewChild(TableComponent) tableComponent: TableComponent; + @ViewChild('statusColor') + statusColor: TemplateRef; + @ViewChild('osdUsageTpl') + osdUsageTpl: TemplateRef; + @ViewChild(TableComponent) + tableComponent: TableComponent; permission: Permission; bsModalRef: BsModalRef; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-performance-histogram/osd-performance-histogram.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-performance-histogram/osd-performance-histogram.component.ts index 7da067b4f9fe7..584446f9202ef 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-performance-histogram/osd-performance-histogram.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-performance-histogram/osd-performance-histogram.component.ts @@ -8,7 +8,8 @@ import * as _ from 'lodash'; styleUrls: ['./osd-performance-histogram.component.scss'] }) export class OsdPerformanceHistogramComponent implements OnChanges { - @Input() histogram: any; + @Input() + histogram: any; valuesStyle: any; last = {}; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health-pie/health-pie.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health-pie/health-pie.component.ts index 92c2b983371bb..cba11b5bbd22d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health-pie/health-pie.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health-pie/health-pie.component.ts @@ -20,12 +20,17 @@ import { DimlessBinaryPipe } from '../../../shared/pipes/dimless-binary.pipe'; styleUrls: ['./health-pie.component.scss'] }) export class HealthPieComponent implements OnChanges, OnInit { - @ViewChild('chartCanvas') chartCanvasRef: ElementRef; - @ViewChild('chartTooltip') chartTooltipRef: ElementRef; - - @Input() data: any; - @Input() tooltipFn: any; - @Output() prepareFn = new EventEmitter(); + @ViewChild('chartCanvas') + chartCanvasRef: ElementRef; + @ViewChild('chartTooltip') + chartTooltipRef: ElementRef; + + @Input() + data: any; + @Input() + tooltipFn: any; + @Output() + prepareFn = new EventEmitter(); chart: any = { chartType: 'doughnut', diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-card/info-card.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-card/info-card.component.ts index c01b5ca4d0cac..f669c9ef712d1 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-card/info-card.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-card/info-card.component.ts @@ -6,9 +6,14 @@ import { Component, Input } from '@angular/core'; styleUrls: ['./info-card.component.scss'] }) export class InfoCardComponent { - @Input() title: string; - @Input() link: string; - @Input() cardClass = 'col-md-6'; - @Input() imageClass: string; - @Input() contentClass: string; + @Input() + title: string; + @Input() + link: string; + @Input() + cardClass = 'col-md-6'; + @Input() + imageClass: string; + @Input() + contentClass: string; } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/table-performance-counter/table-performance-counter.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/table-performance-counter/table-performance-counter.component.ts index 89eb4b9e02b42..a18f08c52622d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/table-performance-counter/table-performance-counter.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/table-performance-counter/table-performance-counter.component.ts @@ -15,17 +15,20 @@ export class TablePerformanceCounterComponent implements OnInit { columns: Array = []; counters: Array = []; - @ViewChild('valueTpl') public valueTpl: TemplateRef; + @ViewChild('valueTpl') + public valueTpl: TemplateRef; /** * The service type, e.g. 'rgw', 'mds', 'mon', 'osd', ... */ - @Input() serviceType: string; + @Input() + serviceType: string; /** * The service identifier. */ - @Input() serviceId: string; + @Input() + serviceId: string; constructor(private performanceCounterService: PerformanceCounterService) {} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.ts index bc8bc418d0fd2..0b4fa50626c8c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.ts @@ -10,7 +10,8 @@ import { CdTableSelection } from '../../../shared/models/cd-table-selection'; export class RgwBucketDetailsComponent implements OnChanges { bucket: any; - @Input() selection: CdTableSelection; + @Input() + selection: CdTableSelection; constructor() {} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.ts index d03ea84fd43bb..3ba427dbdd07d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.ts @@ -18,7 +18,8 @@ import { AuthStorageService } from '../../../shared/services/auth-storage.servic styleUrls: ['./rgw-bucket-list.component.scss'] }) export class RgwBucketListComponent { - @ViewChild(TableComponent) table: TableComponent; + @ViewChild(TableComponent) + table: TableComponent; permission: Permission; columns: CdTableColumn[] = []; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-daemon-details/rgw-daemon-details.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-daemon-details/rgw-daemon-details.component.ts index 4d60308646da6..4c6135accfe56 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-daemon-details/rgw-daemon-details.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-daemon-details/rgw-daemon-details.component.ts @@ -14,7 +14,8 @@ export class RgwDaemonDetailsComponent implements OnChanges { metadata: any; serviceId = ''; - @Input() selection: CdTableSelection; + @Input() + selection: CdTableSelection; constructor(private rgwDaemonService: RgwDaemonService) {} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-capability-modal/rgw-user-capability-modal.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-capability-modal/rgw-user-capability-modal.component.ts index eacb9ca6ad6e9..de1b1f8c4963f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-capability-modal/rgw-user-capability-modal.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-capability-modal/rgw-user-capability-modal.component.ts @@ -18,7 +18,8 @@ export class RgwUserCapabilityModalComponent { * The event that is triggered when the 'Add' or 'Update' button * has been pressed. */ - @Output() submitAction = new EventEmitter(); + @Output() + submitAction = new EventEmitter(); formGroup: CdFormGroup; editing = true; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.ts index b466e562eb751..a5230f816e7ef 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.ts @@ -17,10 +17,13 @@ import { RgwUserSwiftKeyModalComponent } from '../rgw-user-swift-key-modal/rgw-u styleUrls: ['./rgw-user-details.component.scss'] }) export class RgwUserDetailsComponent implements OnChanges, OnInit { - @ViewChild('accessKeyTpl') public accessKeyTpl: TemplateRef; - @ViewChild('secretKeyTpl') public secretKeyTpl: TemplateRef; + @ViewChild('accessKeyTpl') + public accessKeyTpl: TemplateRef; + @ViewChild('secretKeyTpl') + public secretKeyTpl: TemplateRef; - @Input() selection: CdTableSelection; + @Input() + selection: CdTableSelection; // Details tab user: any; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-list/rgw-user-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-list/rgw-user-list.component.ts index fea045834e2f2..71c3b8fae927b 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-list/rgw-user-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-list/rgw-user-list.component.ts @@ -19,7 +19,8 @@ import { AuthStorageService } from '../../../shared/services/auth-storage.servic styleUrls: ['./rgw-user-list.component.scss'] }) export class RgwUserListComponent { - @ViewChild(TableComponent) table: TableComponent; + @ViewChild(TableComponent) + table: TableComponent; permission: Permission; columns: CdTableColumn[] = []; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.ts index 3741581973f02..7585fa7bc384e 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.ts @@ -18,7 +18,8 @@ export class RgwUserS3KeyModalComponent { /** * The event that is triggered when the 'Add' button as been pressed. */ - @Output() submitAction = new EventEmitter(); + @Output() + submitAction = new EventEmitter(); formGroup: CdFormGroup; viewing = true; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-subuser-modal/rgw-user-subuser-modal.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-subuser-modal/rgw-user-subuser-modal.component.ts index 8f5b427bd78f7..daac72f4dbd86 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-subuser-modal/rgw-user-subuser-modal.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-subuser-modal/rgw-user-subuser-modal.component.ts @@ -19,7 +19,8 @@ export class RgwUserSubuserModalComponent { * The event that is triggered when the 'Add' or 'Update' button * has been pressed. */ - @Output() submitAction = new EventEmitter(); + @Output() + submitAction = new EventEmitter(); formGroup: CdFormGroup; editing = true; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.ts index 03be329b7be40..4e8df0287734c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.ts @@ -18,7 +18,8 @@ import { NotificationService } from '../../../shared/services/notification.servi styleUrls: ['./user-list.component.scss'] }) export class UserListComponent implements OnInit { - @ViewChild('userRolesTpl') userRolesTpl: TemplateRef; + @ViewChild('userRolesTpl') + userRolesTpl: TemplateRef; permission: Permission; columns: CdTableColumn[]; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.spec.ts index 8bb94293eabde..cbbb839d2a3f1 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.spec.ts @@ -36,8 +36,10 @@ export class MockModule {} ` }) class MockComponent { - @ViewChild('ctrlDescription') ctrlDescription: TemplateRef; - @ViewChild('modalDescription') modalDescription: TemplateRef; + @ViewChild('ctrlDescription') + ctrlDescription: TemplateRef; + @ViewChild('modalDescription') + modalDescription: TemplateRef; someData = [1, 2, 3, 4, 5]; finished: number[]; ctrlRef: BsModalRef; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.ts index caf9d08b38f05..3091443314479 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.ts @@ -13,7 +13,8 @@ import { SubmitButtonComponent } from '../submit-button/submit-button.component' styleUrls: ['./deletion-modal.component.scss'] }) export class DeletionModalComponent implements OnInit { - @ViewChild(SubmitButtonComponent) submitButton: SubmitButtonComponent; + @ViewChild(SubmitButtonComponent) + submitButton: SubmitButtonComponent; description: TemplateRef; metaType: string; pattern = 'yes'; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/error-panel/error-panel.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/error-panel/error-panel.component.ts index 4065335727826..85ccef2c43bbc 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/error-panel/error-panel.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/error-panel/error-panel.component.ts @@ -10,11 +10,13 @@ export class ErrorPanelComponent { * The title to be displayed. Defaults to 'Error'. * @type {string} */ - @Input() title = 'Error'; + @Input() + title = 'Error'; /** * The event that is triggered when the 'Back' button is pressed. * @type {EventEmitter} */ - @Output() backAction = new EventEmitter(); + @Output() + backAction = new EventEmitter(); } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/helper/helper.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/helper/helper.component.ts index 64953917852ed..7430411bfcd8c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/helper/helper.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/helper/helper.component.ts @@ -6,7 +6,8 @@ import { Component, Input } from '@angular/core'; styleUrls: ['./helper.component.scss'] }) export class HelperComponent { - @Input() html: any; + @Input() + html: any; constructor() {} } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/info-panel/info-panel.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/info-panel/info-panel.component.ts index 9c728164d1f25..f6c5d1fdbfa69 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/info-panel/info-panel.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/info-panel/info-panel.component.ts @@ -10,5 +10,6 @@ export class InfoPanelComponent { * The title to be displayed. Defaults to 'Information'. * @type {string} */ - @Input() title = 'Information'; + @Input() + title = 'Information'; } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/modal/modal.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/modal/modal.component.ts index 23e0455838a95..38f3b27c9024c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/modal/modal.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/modal/modal.component.ts @@ -8,7 +8,8 @@ import { BsModalRef } from 'ngx-bootstrap/modal/bs-modal-ref.service'; styleUrls: ['./modal.component.scss'] }) export class ModalComponent { - @Input() modalRef: BsModalRef; + @Input() + modalRef: BsModalRef; constructor() {} } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/select-badges/select-badges.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/select-badges/select-badges.component.ts index 5ca1275e47148..38dc5cbae8782 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/select-badges/select-badges.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/select-badges/select-badges.component.ts @@ -7,9 +7,12 @@ import { Input } from '@angular/core'; styleUrls: ['./select-badges.component.scss'] }) export class SelectBadgesComponent implements OnChanges { - @Input() data: Array = []; - @Input() options: Array = []; - @Input() emptyMessage = 'There are no items.'; + @Input() + data: Array = []; + @Input() + options: Array = []; + @Input() + emptyMessage = 'There are no items.'; constructor() {} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/sparkline/sparkline.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/sparkline/sparkline.component.ts index 046d8d150ad3c..cd40d8bab175f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/sparkline/sparkline.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/sparkline/sparkline.component.ts @@ -9,10 +9,13 @@ import { ChartTooltip } from '../../../shared/models/chart-tooltip'; styleUrls: ['./sparkline.component.scss'] }) export class SparklineComponent implements OnInit, OnChanges { - @ViewChild('sparkCanvas') chartCanvasRef: ElementRef; - @ViewChild('sparkTooltip') chartTooltipRef: ElementRef; + @ViewChild('sparkCanvas') + chartCanvasRef: ElementRef; + @ViewChild('sparkTooltip') + chartTooltipRef: ElementRef; - @Input() data: any; + @Input() + data: any; @Input() style = { height: '30px', diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/submit-button/submit-button.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/submit-button/submit-button.component.ts index 4ad7ac70844e9..e11acd20ab894 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/submit-button/submit-button.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/submit-button/submit-button.component.ts @@ -27,9 +27,12 @@ import * as _ from 'lodash'; styleUrls: ['./submit-button.component.scss'] }) export class SubmitButtonComponent implements OnInit { - @Input() form: FormGroup | NgForm; - @Input() type = 'submit'; - @Output() submitAction = new EventEmitter(); + @Input() + form: FormGroup | NgForm; + @Input() + type = 'submit'; + @Output() + submitAction = new EventEmitter(); loading = false; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.ts index 1e007a07bd8da..e8b4ddc148eed 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.ts @@ -6,8 +6,10 @@ import { Component, Input, OnChanges } from '@angular/core'; styleUrls: ['./usage-bar.component.scss'] }) export class UsageBarComponent implements OnChanges { - @Input() totalBytes: number; - @Input() usedBytes: number; + @Input() + totalBytes: number; + @Input() + usedBytes: number; usedPercentage: number; freePercentage: number; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/view-cache/view-cache.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/view-cache/view-cache.component.ts index d3fb390902101..b0a806d0d4724 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/view-cache/view-cache.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/view-cache/view-cache.component.ts @@ -8,8 +8,10 @@ import { ViewCacheStatus } from '../../../shared/enum/view-cache-status.enum'; styleUrls: ['./view-cache.component.scss'] }) export class ViewCacheComponent implements OnInit { - @Input() status: ViewCacheStatus; - @Input() statusFor: string; + @Input() + status: ViewCacheStatus; + @Input() + statusFor: string; vcs = ViewCacheStatus; constructor() {} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/warning-panel/warning-panel.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/warning-panel/warning-panel.component.ts index 5dada0aecb90c..cdbf71f316696 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/warning-panel/warning-panel.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/warning-panel/warning-panel.component.ts @@ -10,5 +10,6 @@ export class WarningPanelComponent { * The title to be displayed. Defaults to 'Warning'. * @type {string} */ - @Input() title = 'Warning'; + @Input() + title = 'Warning'; } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.ts index a440bb1ffa693..23c2e46d5e250 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.ts @@ -21,12 +21,16 @@ import { CdTableColumn } from '../../models/cd-table-column'; export class TableKeyValueComponent implements OnInit, OnChanges { columns: Array = []; - @Input() data: any; - @Input() autoReload: any = 5000; + @Input() + data: any; + @Input() + autoReload: any = 5000; - @Input() renderObjects = false; + @Input() + renderObjects = false; // Only used if objects are rendered - @Input() appendParentKey = true; + @Input() + appendParentKey = true; tableData: { key: string; @@ -36,7 +40,8 @@ export class TableKeyValueComponent implements OnInit, OnChanges { /** * The function that will be called to update the input data. */ - @Output() fetchData = new EventEmitter(); + @Output() + fetchData = new EventEmitter(); constructor() {} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts index 4fadc365694bb..fddc65e6086e6 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts @@ -33,51 +33,72 @@ import { CdUserConfig } from '../../models/cd-user-config'; styleUrls: ['./table.component.scss'] }) export class TableComponent implements AfterContentChecked, OnInit, OnChanges, OnDestroy { - @ViewChild(DatatableComponent) table: DatatableComponent; - @ViewChild('tableCellBoldTpl') tableCellBoldTpl: TemplateRef; - @ViewChild('sparklineTpl') sparklineTpl: TemplateRef; - @ViewChild('routerLinkTpl') routerLinkTpl: TemplateRef; - @ViewChild('checkIconTpl') checkIconTpl: TemplateRef; - @ViewChild('perSecondTpl') perSecondTpl: TemplateRef; - @ViewChild('executingTpl') executingTpl: TemplateRef; + @ViewChild(DatatableComponent) + table: DatatableComponent; + @ViewChild('tableCellBoldTpl') + tableCellBoldTpl: TemplateRef; + @ViewChild('sparklineTpl') + sparklineTpl: TemplateRef; + @ViewChild('routerLinkTpl') + routerLinkTpl: TemplateRef; + @ViewChild('checkIconTpl') + checkIconTpl: TemplateRef; + @ViewChild('perSecondTpl') + perSecondTpl: TemplateRef; + @ViewChild('executingTpl') + executingTpl: TemplateRef; // This is the array with the items to be shown. - @Input() data: any[]; + @Input() + data: any[]; // Each item -> { prop: 'attribute name', name: 'display name' } - @Input() columns: CdTableColumn[]; + @Input() + columns: CdTableColumn[]; // Each item -> { prop: 'attribute name', dir: 'asc'||'desc'} - @Input() sorts?: SortPropDir[]; + @Input() + sorts?: SortPropDir[]; // Method used for setting column widths. - @Input() columnMode? = 'flex'; + @Input() + columnMode? = 'flex'; // Display the tool header, including reload button, pagination and search fields? - @Input() toolHeader? = true; + @Input() + toolHeader? = true; // Display the table header? - @Input() header? = true; + @Input() + header? = true; // Display the table footer? - @Input() footer? = true; + @Input() + footer? = true; // Page size to show. Set to 0 to show unlimited number of rows. - @Input() limit? = 10; + @Input() + limit? = 10; /** * Auto reload time in ms - per default every 5s * You can set it to 0, undefined or false to disable the auto reload feature in order to * trigger 'fetchData' if the reload button is clicked. */ - @Input() autoReload: any = 5000; + @Input() + autoReload: any = 5000; // Which row property is unique for a row. If the identifier is not specified in any // column, then the property name of the first column is used. Defaults to 'id'. - @Input() identifier = 'id'; + @Input() + identifier = 'id'; // If 'true', then the specified identifier is used anyway, although it is not specified // in any column. Defaults to 'false'. - @Input() forceIdentifier = false; + @Input() + forceIdentifier = false; // Allows other components to specify which type of selection they want, // e.g. 'single' or 'multi'. - @Input() selectionType: string = undefined; + @Input() + selectionType: string = undefined; // If `true` selected item details will be updated on table refresh - @Input() updateSelectionOnRefresh = true; + @Input() + updateSelectionOnRefresh = true; - @Input() autoSave = true; + @Input() + autoSave = true; /** * Should be a function to update the input data if undefined nothing will be triggered @@ -88,7 +109,8 @@ export class TableComponent implements AfterContentChecked, OnInit, OnChanges, O * What happens: * The function is triggered through one table and all tables will update */ - @Output() fetchData = new EventEmitter(); + @Output() + fetchData = new EventEmitter(); /** * This should be defined if you need access to the selection object. @@ -98,7 +120,8 @@ export class TableComponent implements AfterContentChecked, OnInit, OnChanges, O * * @memberof TableComponent */ - @Output() updateSelection = new EventEmitter(); + @Output() + updateSelection = new EventEmitter(); /** * Use this variable to access the selected row(s). diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/copy2clipboard-button.directive.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/copy2clipboard-button.directive.ts index f049fb29475f0..23aa4c12c8a86 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/copy2clipboard-button.directive.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/copy2clipboard-button.directive.ts @@ -6,7 +6,8 @@ import { ToastsManager } from 'ng2-toastr'; selector: '[cdCopy2ClipboardButton]' }) export class Copy2ClipboardButtonDirective implements OnInit { - @Input() private cdCopy2ClipboardButton: string; + @Input() + private cdCopy2ClipboardButton: string; constructor( private elementRef: ElementRef, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/dimless-binary.directive.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/dimless-binary.directive.ts index e5568a9565587..efe7e8da2f2bb 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/dimless-binary.directive.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/dimless-binary.directive.ts @@ -18,7 +18,8 @@ import { FormatterService } from '../services/formatter.service'; selector: '[cdDimlessBinary]' }) export class DimlessBinaryDirective implements OnInit { - @Output() ngModelChange: EventEmitter = new EventEmitter(); + @Output() + ngModelChange: EventEmitter = new EventEmitter(); /** * Minimum size in bytes. @@ -30,7 +31,8 @@ export class DimlessBinaryDirective implements OnInit { * Example: * Given minBytes=4096 (4KiB), if user type 1KiB, then model will be updated to 4KiB */ - @Input() minBytes: number; + @Input() + minBytes: number; /** * Maximum size in bytes. @@ -42,7 +44,8 @@ export class DimlessBinaryDirective implements OnInit { * Example: * Given maxBytes=3145728 (3MiB), if user type 4MiB, then model will be updated to 3MiB */ - @Input() maxBytes: number; + @Input() + maxBytes: number; /** * Value will be rounded up the nearest power of @@ -51,7 +54,8 @@ export class DimlessBinaryDirective implements OnInit { * Given roundPower=2, if user type 7KiB, then model will be updated to 8KiB * Given roundPower=2, if user type 5KiB, then model will be updated to 4KiB */ - @Input() roundPower: number; + @Input() + roundPower: number; /** * Default unit that should be used when user do not type a unit. @@ -61,7 +65,8 @@ export class DimlessBinaryDirective implements OnInit { * Given defaultUnit=null, if user type 7, then model will be updated to 7MiB * Given defaultUnit=k, if user type 7, then model will be updated to 7KiB */ - @Input() defaultUnit: string; + @Input() + defaultUnit: string; private el: HTMLInputElement; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/password-button.directive.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/password-button.directive.ts index b6b95184fd039..1a17b9f04b478 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/password-button.directive.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/password-button.directive.ts @@ -6,7 +6,8 @@ import { Directive, ElementRef, HostListener, Input, OnInit, Renderer2 } from '@ export class PasswordButtonDirective implements OnInit { private iElement: HTMLElement; - @Input() private cdPasswordButton: string; + @Input() + private cdPasswordButton: string; constructor(private elementRef: ElementRef, private renderer: Renderer2) {} -- 2.39.5