From 2bc9bd08cd121bdffbf56a0241c4decfb77bfdd5 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 13 Apr 2020 17:03:01 +0200 Subject: Improving select displays, focus box-shadows for paginators, instructions for index url --- .../edit-custom-config.component.html | 35 +++++++++++----------- .../src/app/+admin/config/shared/config.service.ts | 12 +++++--- .../video-redundancies-list.component.html | 14 ++++----- .../video-redundancies-list.component.ts | 4 +-- .../instance-account-blocklist.component.html | 3 ++ .../instance-server-blocklist.component.html | 4 ++- .../moderation-comment-modal.component.html | 4 ++- .../moderation-comment-modal.component.ts | 2 +- .../video-abuse-list.component.html | 15 +++++----- .../video-blacklist-list.component.html | 16 +++++----- .../src/app/+admin/system/jobs/jobs.component.html | 4 +-- .../src/app/+admin/system/logs/logs.component.html | 6 ++-- .../users/user-edit/user-edit.component.html | 4 +-- client/src/app/+admin/users/user-edit/user-edit.ts | 13 +++++--- .../users/user-list/user-list.component.html | 2 ++ .../users/user-list/user-list.component.scss | 5 ++++ .../my-account-blocklist.component.html | 1 + .../my-account-server-blocklist.component.html | 2 +- .../my-account-video-settings.component.html | 1 + .../shared/forms/timestamp-input.component.scss | 7 +++++ .../+video-watch/modal/video-share.component.ts | 2 +- client/src/sass/bootstrap.scss | 13 ++++---- client/src/sass/primeng-custom.scss | 32 ++++++++++++++++---- 23 files changed, 130 insertions(+), 71 deletions(-) diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html index 4ce4c18fc..b925d3d02 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html @@ -108,6 +108,7 @@
- @@ -331,7 +332,7 @@
@@ -441,10 +442,14 @@
- ⚠️ This functionality requires a lot of attention and extra moderation. +

⚠️ This functionality requires a lot of attention and extra moderation.

+ + + You should only follow indexes you trust, or host your own. +
@@ -651,20 +656,16 @@
-
- -
- -
- -
-
{{ formErrors.transcoding.threads }}
+
+ +
+
- +
{{ formErrors.transcoding.threads }}
diff --git a/client/src/app/+admin/config/shared/config.service.ts b/client/src/app/+admin/config/shared/config.service.ts index 28a3d67d6..874b8094d 100644 --- a/client/src/app/+admin/config/shared/config.service.ts +++ b/client/src/app/+admin/config/shared/config.service.ts @@ -10,8 +10,8 @@ import { I18n } from '@ngx-translate/i18n-polyfill' export class ConfigService { private static BASE_APPLICATION_URL = environment.apiUrl + '/api/v1/config' - videoQuotaOptions: { value: number, label: string }[] = [] - videoQuotaDailyOptions: { value: number, label: string }[] = [] + videoQuotaOptions: { value: number, label: string, disabled?: boolean }[] = [] + videoQuotaDailyOptions: { value: number, label: string, disabled?: boolean }[] = [] constructor ( private authHttp: HttpClient, @@ -19,8 +19,10 @@ export class ConfigService { private i18n: I18n ) { this.videoQuotaOptions = [ + { value: undefined, label: 'Default quota', disabled: true }, { value: -1, label: this.i18n('Unlimited') }, - { value: 0, label: '0' }, + { value: undefined, label: '─────', disabled: true }, + { value: 0, label: this.i18n('None - no upload possible') }, { value: 100 * 1024 * 1024, label: this.i18n('100MB') }, { value: 500 * 1024 * 1024, label: this.i18n('500MB') }, { value: 1024 * 1024 * 1024, label: this.i18n('1GB') }, @@ -30,8 +32,10 @@ export class ConfigService { ] this.videoQuotaDailyOptions = [ + { value: undefined, label: 'Default daily upload limit', disabled: true }, { value: -1, label: this.i18n('Unlimited') }, - { value: 0, label: '0' }, + { value: undefined, label: '─────', disabled: true }, + { value: 0, label: this.i18n('None - no upload possible') }, { value: 10 * 1024 * 1024, label: this.i18n('10MB') }, { value: 50 * 1024 * 1024, label: this.i18n('50MB') }, { value: 100 * 1024 * 1024, label: this.i18n('100MB') }, diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html index 18d88c20c..07362b3b9 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html @@ -3,9 +3,9 @@
- + +
@@ -22,14 +22,14 @@ Video name Video URL Total size - + - + @@ -53,7 +53,7 @@ - +
@@ -61,7 +61,7 @@ - +
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts index d563b4e95..2b62d30a3 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts @@ -66,9 +66,9 @@ export class VideoRedundanciesListComponent extends RestTable implements OnInit } getColspan () { - if (this.isDisplayingRemoteVideos()) return 3 + if (this.isDisplayingRemoteVideos()) return 5 - return 2 + return 4 } isDisplayingRemoteVideos () { diff --git a/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html b/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html index 7797bc56e..8c3930643 100644 --- a/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html +++ b/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html @@ -1,12 +1,15 @@ Account Muted at + diff --git a/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.html b/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.html index f634ba834..44c5c2fb8 100644 --- a/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.html +++ b/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.html @@ -1,13 +1,15 @@ Instance Muted at - + diff --git a/client/src/app/+admin/moderation/video-abuse-list/moderation-comment-modal.component.html b/client/src/app/+admin/moderation/video-abuse-list/moderation-comment-modal.component.html index 8fbd33871..8082e93f4 100644 --- a/client/src/app/+admin/moderation/video-abuse-list/moderation-comment-modal.component.html +++ b/client/src/app/+admin/moderation/video-abuse-list/moderation-comment-modal.component.html @@ -8,7 +8,9 @@