]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Update prettier package 23466/head
authorTiago Melo <tspmelo@gmail.com>
Mon, 6 Aug 2018 17:44:15 +0000 (18:44 +0100)
committerTiago Melo <tspmelo@gmail.com>
Tue, 7 Aug 2018 09:05:17 +0000 (10:05 +0100)
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 <tmelo@suse.com>
45 files changed:
src/pybind/mgr/dashboard/frontend/package-lock.json
src/pybind/mgr/dashboard/frontend/package.json
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/mirroring.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-details/rbd-details.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-details/osd-details.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-performance-histogram/osd-performance-histogram.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health-pie/health-pie.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/info-card/info-card.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/table-performance-counter/table-performance-counter.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-daemon-details/rgw-daemon-details.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-capability-modal/rgw-user-capability-modal.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-list/rgw-user-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-subuser-modal/rgw-user-subuser-modal.component.ts
src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/error-panel/error-panel.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/helper/helper.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/info-panel/info-panel.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/modal/modal.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/select-badges/select-badges.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/sparkline/sparkline.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/submit-button/submit-button.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/view-cache/view-cache.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/warning-panel/warning-panel.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/copy2clipboard-button.directive.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/dimless-binary.directive.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/password-button.directive.ts

index 54ca2e3641d240793759d3669a42409a0a5677a1..d2b5c7e54f7099fe31733edba9c7c344748743bd 100644 (file)
       "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": {
index b31ba852c79497212e55be33287468ad63e321c5..4c24d3e3e606108744306872a0cd6e6c5590cc30 100644 (file)
@@ -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",
index bf4a68c947234fc03d3d4798fe3717da459ff8d3..11586e8a12b8c2af7b89ffacc47f9078bbaeebbc 100644 (file)
@@ -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<any>;
-  @ViewChild('stateTmpl') stateTmpl: TemplateRef<any>;
-  @ViewChild('syncTmpl') syncTmpl: TemplateRef<any>;
-  @ViewChild('progressTmpl') progressTmpl: TemplateRef<any>;
+  @ViewChild('healthTmpl')
+  healthTmpl: TemplateRef<any>;
+  @ViewChild('stateTmpl')
+  stateTmpl: TemplateRef<any>;
+  @ViewChild('syncTmpl')
+  syncTmpl: TemplateRef<any>;
+  @ViewChild('progressTmpl')
+  progressTmpl: TemplateRef<any>;
 
   contentData: any;
 
index 3cd778dd62e0e8586db6cc8a29dc21849a9a2e9c..702416b96d78b6b491508f2b2a40cb258ae4680f 100644 (file)
@@ -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() {}
index 0b0b5f77a4d0d3ef401ade5088251de38be60bc4..e93f5f6402096167d576302b91cdbcf09f0925b7 100644 (file)
@@ -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<any>;
-  @ViewChild('parentTpl') parentTpl: TemplateRef<any>;
-  @ViewChild('nameTpl') nameTpl: TemplateRef<any>;
-  @ViewChild('flattenTpl') flattenTpl: TemplateRef<any>;
+  @ViewChild(TableComponent)
+  table: TableComponent;
+  @ViewChild('usageTpl')
+  usageTpl: TemplateRef<any>;
+  @ViewChild('parentTpl')
+  parentTpl: TemplateRef<any>;
+  @ViewChild('nameTpl')
+  nameTpl: TemplateRef<any>;
+  @ViewChild('flattenTpl')
+  flattenTpl: TemplateRef<any>;
 
   permission: Permission;
   images: any;
index a3f2b40c2827876e842663948f03659bf79739aa..af27a265b88aa3d47bf00620229e00506b3aaddc 100644 (file)
@@ -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<any>;
-  @ViewChild('protectTpl') protectTpl: TemplateRef<any>;
-  @ViewChild('rollbackTpl') rollbackTpl: TemplateRef<any>;
+  @Input()
+  snapshots: RbdSnapshotModel[] = [];
+  @Input()
+  poolName: string;
+  @Input()
+  rbdName: string;
+  @Input()
+  executingTasks: ExecutingTask[] = [];
+
+  @ViewChild('nameTpl')
+  nameTpl: TemplateRef<any>;
+  @ViewChild('protectTpl')
+  protectTpl: TemplateRef<any>;
+  @ViewChild('rollbackTpl')
+  rollbackTpl: TemplateRef<any>;
 
   permission: Permission;
 
index 39a03890add32ab28d9317aa1c46c283e7c77756..0ef6c5695b4b44ad50a698dd3d02eb824d0cd7f3 100644 (file)
@@ -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';
index e04f5019cdd50dacee5460668ea853540130a385..093563155fb46b6778e752cb3d39992bdd88a635 100644 (file)
@@ -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;
index 616630e2277d6f2d2417f15656e65babb9cdb59e..5f139c90d0c5e23d8f32b8fdbfedc10ca7082efd 100644 (file)
@@ -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', () => {
index 378261026d196ed31a18bf1d6b9c56bc0864625f..8d28ce298825b0b30a985bcc5c5d0ef22034cb89 100644 (file)
@@ -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<any>;
-  @ViewChild('activityTmpl') activityTmpl: TemplateRef<any>;
+  @ViewChild('poolUsageTpl')
+  poolUsageTpl: TemplateRef<any>;
+  @ViewChild('activityTmpl')
+  activityTmpl: TemplateRef<any>;
 
-  @Input() selection: CdTableSelection;
+  @Input()
+  selection: CdTableSelection;
 
   selectedItem: any;
 
index aba6f1f4662dfcf59b54b5f908c2e031f4857e10..a706737944510b93c490e6483fbdedeecadc49b8 100644 (file)
@@ -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', () => {
index 6cf7046707254c738ecbcb4418fd6b4b04ecb35a..bf82c9583ba9284ec4fa46fd71072bbf801fd40d 100644 (file)
@@ -74,8 +74,10 @@ export class ConfigurationComponent implements OnInit {
     create: 'Option only affects daemon creation.'
   };
 
-  @ViewChild('confValTpl') public confValTpl: TemplateRef<any>;
-  @ViewChild('confFlagTpl') public confFlagTpl: TemplateRef<any>;
+  @ViewChild('confValTpl')
+  public confValTpl: TemplateRef<any>;
+  @ViewChild('confFlagTpl')
+  public confFlagTpl: TemplateRef<any>;
 
   constructor(private configurationService: ConfigurationService) {}
 
index f574055bded6330d4c4c04266d6cec2a6acf2a1a..0897b616e71c1f1e57287e8dc052677a2cac74e9 100644 (file)
@@ -18,7 +18,8 @@ export class HostsComponent implements OnInit {
   hosts: Array<object> = [];
   isLoadingHosts = false;
 
-  @ViewChild('servicesTpl') public servicesTpl: TemplateRef<any>;
+  @ViewChild('servicesTpl')
+  public servicesTpl: TemplateRef<any>;
 
   constructor(
     private authStorageService: AuthStorageService,
index 5f3552b3455baa707fe207a8aa0d68ca61af10eb..f7b250f2c061835a92acc64eb6807e06ae44ec3f 100644 (file)
@@ -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;
 
index 899f935c5b851847e7b005c26149b1f53444d643..92d19d44f5bb783760aa8fa6413396d27f269aed 100644 (file)
@@ -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<any>;
-  @ViewChild('osdUsageTpl') osdUsageTpl: TemplateRef<any>;
-  @ViewChild(TableComponent) tableComponent: TableComponent;
+  @ViewChild('statusColor')
+  statusColor: TemplateRef<any>;
+  @ViewChild('osdUsageTpl')
+  osdUsageTpl: TemplateRef<any>;
+  @ViewChild(TableComponent)
+  tableComponent: TableComponent;
 
   permission: Permission;
   bsModalRef: BsModalRef;
index 7da067b4f9fe7606b23f2941f973ba69525de8a2..584446f9202ef01752d6faf0b452db7b1300503c 100644 (file)
@@ -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 = {};
 
index 92c2b983371bb7c7c1837294f0a0acc9b6784462..cba11b5bbd22df94f5348336869c3542be4ffef3 100644 (file)
@@ -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',
index c01b5ca4d0cac647df8279b521a66b8e0c052a79..f669c9ef712d12da9a9bff9236594803ad7afe70 100644 (file)
@@ -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;
 }
index 89eb4b9e02b428a2e4e9d307c6f09fb53bed82c5..a18f08c52622d066d4e938aa52f987d282001936 100644 (file)
@@ -15,17 +15,20 @@ export class TablePerformanceCounterComponent implements OnInit {
   columns: Array<CdTableColumn> = [];
   counters: Array<object> = [];
 
-  @ViewChild('valueTpl') public valueTpl: TemplateRef<any>;
+  @ViewChild('valueTpl')
+  public valueTpl: TemplateRef<any>;
 
   /**
    * 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) {}
 
index bc8bc418d0fd28cd13628c897d9ae9963841d41d..0b4fa50626c8ce5de5881901f494439fe251ff6a 100644 (file)
@@ -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() {}
 
index d03ea84fd43bb6b727a3d5828edfb0e217315a8d..3ba427dbdd07d39a06c650b6805643acbd7da361 100644 (file)
@@ -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[] = [];
index 4d60308646da69f93ff3a21ecaaa62495ddfc80e..4c6135accfe564618be0de6fc60eb07760f0bf64 100644 (file)
@@ -14,7 +14,8 @@ export class RgwDaemonDetailsComponent implements OnChanges {
   metadata: any;
   serviceId = '';
 
-  @Input() selection: CdTableSelection;
+  @Input()
+  selection: CdTableSelection;
 
   constructor(private rgwDaemonService: RgwDaemonService) {}
 
index eacb9ca6ad6e93082cd5181950fe151cf119a38a..de1b1f8c4963f79a58b9aa31d69d9d179e2d1bb4 100644 (file)
@@ -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;
index b466e562eb751d4aa4fef08657b06b004794ed72..a5230f816e7efda56b95138803953450e5da6d6d 100644 (file)
@@ -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<any>;
-  @ViewChild('secretKeyTpl') public secretKeyTpl: TemplateRef<any>;
+  @ViewChild('accessKeyTpl')
+  public accessKeyTpl: TemplateRef<any>;
+  @ViewChild('secretKeyTpl')
+  public secretKeyTpl: TemplateRef<any>;
 
-  @Input() selection: CdTableSelection;
+  @Input()
+  selection: CdTableSelection;
 
   // Details tab
   user: any;
index fea045834e2f2443712167eb79dc41cc3c728fd7..71c3b8fae927b196025d6504a763a3e8b98b2be4 100644 (file)
@@ -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[] = [];
index 3741581973f024faf357b535d304fc41534fe67d..7585fa7bc384e199a9df0dce95372abea64c8a38 100644 (file)
@@ -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;
index 8f5b427bd78f722866853ef737cea33e01ab1030..daac72f4dbd86f14216d2f08f05f85aeab4fa586 100644 (file)
@@ -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;
index 03be329b7be4039d53079a22af8691b4b171ae11..4e8df0287734c6523a2b1c0218987be1bce14add 100644 (file)
@@ -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<any>;
+  @ViewChild('userRolesTpl')
+  userRolesTpl: TemplateRef<any>;
 
   permission: Permission;
   columns: CdTableColumn[];
index 8bb94293eabde6eac6a6c47f500a1b8da1c49be6..cbbb839d2a3f1b713237dfd2b012c0bc02dce4b7 100644 (file)
@@ -36,8 +36,10 @@ export class MockModule {}
   `
 })
 class MockComponent {
-  @ViewChild('ctrlDescription') ctrlDescription: TemplateRef<any>;
-  @ViewChild('modalDescription') modalDescription: TemplateRef<any>;
+  @ViewChild('ctrlDescription')
+  ctrlDescription: TemplateRef<any>;
+  @ViewChild('modalDescription')
+  modalDescription: TemplateRef<any>;
   someData = [1, 2, 3, 4, 5];
   finished: number[];
   ctrlRef: BsModalRef;
index caf9d08b38f05802a85c96da88bbb3aef54fafea..3091443314479d40389ecc8505b1d0e4588f9a4e 100644 (file)
@@ -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<any>;
   metaType: string;
   pattern = 'yes';
index 4065335727826b27c89a42c1282088785efa27b4..85ccef2c43bbc0d1f0281386847a325ed84d25f9 100644 (file)
@@ -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<any>}
    */
-  @Output() backAction = new EventEmitter();
+  @Output()
+  backAction = new EventEmitter();
 }
index 64953917852eddb4e0d467d125694a4a9e5e00ad..7430411bfcd8cdbadb627aeb7591c1ebf02c038c 100644 (file)
@@ -6,7 +6,8 @@ import { Component, Input } from '@angular/core';
   styleUrls: ['./helper.component.scss']
 })
 export class HelperComponent {
-  @Input() html: any;
+  @Input()
+  html: any;
 
   constructor() {}
 }
index 9c728164d1f25a7680482b07fdc043b12c962f30..f6c5d1fdbfa69465f1e9ab0e03193ff5c7511285 100644 (file)
@@ -10,5 +10,6 @@ export class InfoPanelComponent {
    * The title to be displayed. Defaults to 'Information'.
    * @type {string}
    */
-  @Input() title = 'Information';
+  @Input()
+  title = 'Information';
 }
index 23e0455838a95fd4236aa05568bf94279fe07876..38f3b27c9024c54e65ad83e2cb17549c91f565c6 100644 (file)
@@ -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() {}
 }
index 5ca1275e47148988cbc15ddab8750ec855b1ce9f..38dc5cbae878259ed1e4197c03f531a141f90504 100644 (file)
@@ -7,9 +7,12 @@ import { Input } from '@angular/core';
   styleUrls: ['./select-badges.component.scss']
 })
 export class SelectBadgesComponent implements OnChanges {
-  @Input() data: Array<string> = [];
-  @Input() options: Array<SelectBadgesOption> = [];
-  @Input() emptyMessage = 'There are no items.';
+  @Input()
+  data: Array<string> = [];
+  @Input()
+  options: Array<SelectBadgesOption> = [];
+  @Input()
+  emptyMessage = 'There are no items.';
 
   constructor() {}
 
index 046d8d150ad3cb39b2836ab5a2af1eae6f496445..cd40d8bab175f5ba2f9c1203647b8d3adab7ee21 100644 (file)
@@ -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',
index 4ad7ac70844e9373d0965731bbe75a899b134ab3..e11acd20ab894841b35b184ff934f43a18fdf29f 100644 (file)
@@ -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;
 
index 1e007a07bd8daf9973f8b9f322c0c78dfde8dc50..e8b4ddc148eedb7012ffb39bdd4422c94e1a2701 100644 (file)
@@ -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;
index d3fb39090210141dc3f9f196f8ce37f8197c9ba6..b0a806d0d47243013303b7cc80dba7a43e3aaff4 100644 (file)
@@ -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() {}
index 5dada0aecb90cecce96c6bf78865247ca9d4c59a..cdbf71f31669621e830215a717b4958e12575e3f 100644 (file)
@@ -10,5 +10,6 @@ export class WarningPanelComponent {
    * The title to be displayed. Defaults to 'Warning'.
    * @type {string}
    */
-  @Input() title = 'Warning';
+  @Input()
+  title = 'Warning';
 }
index a440bb1ffa693cbaf00a41d7caee798b36badc49..23c2e46d5e2507d04fecc3f922be0568aadf3ba1 100644 (file)
@@ -21,12 +21,16 @@ import { CdTableColumn } from '../../models/cd-table-column';
 export class TableKeyValueComponent implements OnInit, OnChanges {
   columns: Array<CdTableColumn> = [];
 
-  @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() {}
 
index 4fadc365694bb547efddd327e0feda1e64ab23d5..fddc65e6086e6e28203062c5257dd94f4efd2784 100644 (file)
@@ -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<any>;
-  @ViewChild('sparklineTpl') sparklineTpl: TemplateRef<any>;
-  @ViewChild('routerLinkTpl') routerLinkTpl: TemplateRef<any>;
-  @ViewChild('checkIconTpl') checkIconTpl: TemplateRef<any>;
-  @ViewChild('perSecondTpl') perSecondTpl: TemplateRef<any>;
-  @ViewChild('executingTpl') executingTpl: TemplateRef<any>;
+  @ViewChild(DatatableComponent)
+  table: DatatableComponent;
+  @ViewChild('tableCellBoldTpl')
+  tableCellBoldTpl: TemplateRef<any>;
+  @ViewChild('sparklineTpl')
+  sparklineTpl: TemplateRef<any>;
+  @ViewChild('routerLinkTpl')
+  routerLinkTpl: TemplateRef<any>;
+  @ViewChild('checkIconTpl')
+  checkIconTpl: TemplateRef<any>;
+  @ViewChild('perSecondTpl')
+  perSecondTpl: TemplateRef<any>;
+  @ViewChild('executingTpl')
+  executingTpl: TemplateRef<any>;
 
   // 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).
index f049fb29475f0f1bfab12d7bda6107e4a61c26c3..23aa4c12c8a86c0ea82d295dc1ea0c01e86a389f 100644 (file)
@@ -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,
index e5568a9565587a6fd1b9f9264d1cb77826834344..efe7e8da2f2bb521c9d429f11ce4c3dc4e47c193 100644 (file)
@@ -18,7 +18,8 @@ import { FormatterService } from '../services/formatter.service';
   selector: '[cdDimlessBinary]'
 })
 export class DimlessBinaryDirective implements OnInit {
-  @Output() ngModelChange: EventEmitter<any> = new EventEmitter();
+  @Output()
+  ngModelChange: EventEmitter<any> = 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 <roundPower>
@@ -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;
 
index b6b95184fd0391612546cc309977a5f34855b353..1a17b9f04b478634e1f05245b3ad8849661f01d0 100644 (file)
@@ -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) {}