]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Update prettier to 1.16 26437/head
authorTiago Melo <tmelo@suse.com>
Wed, 23 Jan 2019 01:02:50 +0000 (01:02 +0000)
committerTiago Melo <tmelo@suse.com>
Thu, 14 Feb 2019 23:46:37 +0000 (23:46 +0000)
Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/.prettierignore [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/package-lock.json
src/pybind/mgr/dashboard/frontend/package.json
src/pybind/mgr/dashboard/frontend/src/app/shared/components/critical-confirmation-modal/critical-confirmation-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-actions/table-actions.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/autofocus.directive.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/ordinal.pipe.ts
src/pybind/mgr/dashboard/frontend/src/testing/unit-test-helper.ts

diff --git a/src/pybind/mgr/dashboard/frontend/.prettierignore b/src/pybind/mgr/dashboard/frontend/.prettierignore
new file mode 100644 (file)
index 0000000..2d19fc7
--- /dev/null
@@ -0,0 +1 @@
+*.html
index a242bb05d735f648fdb607708cf5463e8de33ada..aec6421025dd8b5d42a3b11853c8d05d520459c7 100644 (file)
       "dev": true
     },
     "prettier": {
-      "version": "1.14.3",
-      "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.14.3.tgz",
-      "integrity": "sha512-qZDVnCrnpsRJJq5nSsiHCE3BYMED2OtsI+cmzIzF1QIfqm5ALf8tEJcO27zV1gKNKRPdhjO0dNWnrzssDQ1tFg==",
+      "version": "1.16.4",
+      "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.16.4.tgz",
+      "integrity": "sha512-ZzWuos7TI5CKUeQAtFd6Zhm2s6EpAD/ZLApIhsF9pRvRtM1RFo61dM/4MSRUA0SuLugA/zgrZD8m0BaY46Og7g==",
       "dev": true
     },
     "pretty-format": {
index 7597aff778cd5c63ff5a9af0b5339b768699a058..ff3139e79648bc1d6fbb05b4d20ad5d91e4d5956 100644 (file)
@@ -96,7 +96,7 @@
     "jest-canvas-mock": "1.1.0",
     "jest-preset-angular": "6.0.2",
     "jest-silent-reporter": "0.1.1",
-    "prettier": "1.14.3",
+    "prettier": "1.16.4",
     "protractor": "5.4.2",
     "replace-in-file": "3.4.3",
     "ts-node": "8.0.2",
index d749a233c590807bf511e6a9233676cc3b15153a..1bd28c2e10a4a835c5a95e87934ed51bd83d1197 100644 (file)
@@ -17,9 +17,7 @@ export class MockModule {}
 
 @Component({
   template: `
-    <button type="button"
-        class="btn btn-sm btn-primary"
-        (click)="openCtrlDriven()">
+    <button type="button" class="btn btn-sm btn-primary" (click)="openCtrlDriven()">
       <i class="fa fa-fw fa-times"></i>Deletion Ctrl-Test
       <ng-template #ctrlDescription>
         The spinner is handled by the controller if you have use the modal as ViewChild in order to
@@ -27,9 +25,7 @@ export class MockModule {}
       </ng-template>
     </button>
 
-    <button type="button"
-            class="btn btn-sm btn-primary"
-            (click)="openModalDriven()">
+    <button type="button" class="btn btn-sm btn-primary" (click)="openModalDriven()">
       <i class="fa fa-fw fa-times"></i>Deletion Modal-Test
       <ng-template #modalDescription>
         The spinner is handled by the modal if your given deletion function returns a Observable.
index b59592195c1bb07a5e02ef35d003ab100165e336..6b4d57eb78af487b29f151cd2e5ddc17eab19e7f 100644 (file)
@@ -57,8 +57,8 @@ export class TableActionsComponent implements OnInit {
   }
 
   private updateDropDownActions() {
-    this.dropDownActions = this.tableActions.filter(
-      (action) => (action.visible ? action.visible(this.selection) : action)
+    this.dropDownActions = this.tableActions.filter((action) =>
+      action.visible ? action.visible(this.selection) : action
     );
   }
 
index 27074ef606e92e2e73965b32cdef5d387fc6253e..afbc3539533fc1ebbd56c0b00ce934cb94a9dd0b 100644 (file)
@@ -8,18 +8,20 @@ import { AutofocusDirective } from './autofocus.directive';
 @Component({
   template: `
     <form>
-      <input id="x" type="text">
-      <input id="y" type="password" autofocus>
-    </form>`
+      <input id="x" type="text" />
+      <input id="y" type="password" autofocus />
+    </form>
+  `
 })
 export class PasswordFormComponent {}
 
 @Component({
   template: `
     <form>
-      <input id="x" type="checkbox" autofocus>
-      <input id="y" type="text">
-    </form>`
+      <input id="x" type="checkbox" autofocus />
+      <input id="y" type="text" />
+    </form>
+  `
 })
 export class CheckboxFormComponent {}
 
index d2e176cf6bd3b21b08817dbd3f87f77c8bde4feb..da89a02407a394896e0a0a6256b14b099c037d2b 100644 (file)
@@ -14,12 +14,12 @@ export class OrdinalPipe implements PipeTransform {
       (Math.floor(num / 10) === 1
         ? 'th'
         : num % 10 === 1
-          ? 'st'
-          : num % 10 === 2
-            ? 'nd'
-            : num % 10 === 3
-              ? 'rd'
-              : 'th')
+        ? 'st'
+        : num % 10 === 2
+        ? 'nd'
+        : num % 10 === 3
+        ? 'rd'
+        : 'th')
     );
   }
 }
index e4dcd176deb57e461e23fcbf05a0c08c0cede98e..64540c9c6a4758f059aaa2ee20ecd6c44ea1e16e 100644 (file)
@@ -27,7 +27,8 @@ export function configureTestBed(configuration, useOldMethod?) {
         TestBed.resetTestingModule = () => TestBed;
       })()
         .then(done)
-        .catch(done.fail));
+        .catch(done.fail)
+    );
     afterAll(() => {
       TestBed.resetTestingModule = resetTestingModule;
     });