From d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 May 2023 15:27:15 +0200 Subject: Fix lint --- client/src/app/shared/shared-main/angular/number-formatter.pipe.ts | 2 +- .../app/shared/shared-main/buttons/action-dropdown.component.html | 2 +- .../src/app/shared/shared-main/buttons/action-dropdown.component.ts | 2 +- client/src/app/shared/shared-main/buttons/button.component.ts | 2 +- client/src/app/shared/shared-main/date/date-toggle.component.html | 3 +++ client/src/app/shared/shared-main/loaders/loader.component.ts | 4 ++-- .../app/shared/shared-main/users/user-notifications.component.html | 1 + client/src/app/shared/shared-main/users/user-quota.component.html | 6 ++++-- 8 files changed, 14 insertions(+), 8 deletions(-) (limited to 'client/src/app/shared/shared-main') diff --git a/client/src/app/shared/shared-main/angular/number-formatter.pipe.ts b/client/src/app/shared/shared-main/angular/number-formatter.pipe.ts index e0cb475fc..00cfbc692 100644 --- a/client/src/app/shared/shared-main/angular/number-formatter.pipe.ts +++ b/client/src/app/shared/shared-main/angular/number-formatter.pipe.ts @@ -17,7 +17,7 @@ export class NumberFormatterPipe implements PipeTransform { return +f } - private dictionary: Array<{ max: number, type: string }> = [ + private dictionary: { max: number, type: string }[] = [ { max: 1000, type: '' }, { max: 1000000, type: 'K' }, { max: 1000000000, type: 'M' } diff --git a/client/src/app/shared/shared-main/buttons/action-dropdown.component.html b/client/src/app/shared/shared-main/buttons/action-dropdown.component.html index bbfab7b37..d4aa9f380 100644 --- a/client/src/app/shared/shared-main/buttons/action-dropdown.component.html +++ b/client/src/app/shared/shared-main/buttons/action-dropdown.component.html @@ -40,7 +40,7 @@ diff --git a/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts b/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts index e39fbd66d..7d24ff4ae 100644 --- a/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts +++ b/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts @@ -55,7 +55,7 @@ export class ActionDropdownComponent { return {} } - areActionsDisplayed (actions: Array | DropdownAction[]>, entry: T): boolean { + areActionsDisplayed (actions: (DropdownAction | DropdownAction[])[], entry: T): boolean { return actions.some(a => { if (Array.isArray(a)) return this.areActionsDisplayed(a, entry) diff --git a/client/src/app/shared/shared-main/buttons/button.component.ts b/client/src/app/shared/shared-main/buttons/button.component.ts index 63a59cbe1..e3a830891 100644 --- a/client/src/app/shared/shared-main/buttons/button.component.ts +++ b/client/src/app/shared/shared-main/buttons/button.component.ts @@ -31,7 +31,7 @@ export class ButtonComponent implements OnInit, OnChanges { private buildClasses () { this.classes = { [this.className]: true, - disabled: this.disabled, + 'disabled': this.disabled, 'icon-only': !this.label, 'has-icon': !!this.icon, 'responsive-label': this.responsiveLabel diff --git a/client/src/app/shared/shared-main/date/date-toggle.component.html b/client/src/app/shared/shared-main/date/date-toggle.component.html index 14b6e7d7a..5277ae0e8 100644 --- a/client/src/app/shared/shared-main/date/date-toggle.component.html +++ b/client/src/app/shared/shared-main/date/date-toggle.component.html @@ -1,7 +1,10 @@ {{ getContent() }} diff --git a/client/src/app/shared/shared-main/loaders/loader.component.ts b/client/src/app/shared/shared-main/loaders/loader.component.ts index bd038f8b5..be9e130e7 100644 --- a/client/src/app/shared/shared-main/loaders/loader.component.ts +++ b/client/src/app/shared/shared-main/loaders/loader.component.ts @@ -10,8 +10,8 @@ export class LoaderComponent { private readonly sizes = { sm: { - width: '1rem', - height: '1rem', + 'width': '1rem', + 'height': '1rem', 'border-width': '0.15rem' }, xl: { diff --git a/client/src/app/shared/shared-main/users/user-notifications.component.html b/client/src/app/shared/shared-main/users/user-notifications.component.html index a51e08292..351e4dc3f 100644 --- a/client/src/app/shared/shared-main/users/user-notifications.component.html +++ b/client/src/app/shared/shared-main/users/user-notifications.component.html @@ -1,6 +1,7 @@
You don't have notifications.
+
diff --git a/client/src/app/shared/shared-main/users/user-quota.component.html b/client/src/app/shared/shared-main/users/user-quota.component.html index 0e0d38c2a..ac9085bb3 100644 --- a/client/src/app/shared/shared-main/users/user-quota.component.html +++ b/client/src/app/shared/shared-main/users/user-quota.component.html @@ -1,6 +1,7 @@
- +
Total video quota
+
@@ -10,7 +11,8 @@
- +
Daily video quota
+
-- cgit v1.2.3