From d0800f7661f13fabe7bb6f4aa0ea50764f106405 Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Mon, 28 Feb 2022 08:34:43 +0100 Subject: Implement avatar miniatures (#4639) * client: remove unused file * refactor(client/my-actor-avatar): size from input Read size from component input instead of scss, to make it possible to use smaller avatar images when implemented. * implement avatar miniatures close #4560 * fix(test): max file size * fix(search-index): normalize res acc to avatarMini * refactor avatars to an array * client/search: resize channel avatar to 120 * refactor(client/videos): remove unused function * client(actor-avatar): set default size * fix tests and avatars full result When findOne is used only an array containting one avatar is returned. * update migration version and version notations * server/search: harmonize normalizing * Cleanup avatar miniature PR Co-authored-by: Chocobozzz --- .../account-video-channels.component.html | 7 ++- .../account-video-channels.component.scss | 1 - client/src/app/+accounts/accounts.component.html | 2 +- .../instance-account-blocklist.component.html | 56 ---------------------- .../video-comment-list.component.html | 2 +- .../video-channel-update.component.ts | 4 +- .../my-account-settings.component.ts | 2 +- .../my-video-channels.component.html | 2 +- .../my-video-channels.component.scss | 1 - .../my-follows/my-followers.component.html | 2 +- .../my-follows/my-followers.component.scss | 2 +- .../my-follows/my-subscriptions.component.html | 2 +- .../my-accept-ownership.component.ts | 4 +- .../my-ownership/my-ownership.component.html | 2 +- .../my-video-playlist-create.component.ts | 4 +- .../my-video-playlist-update.component.ts | 4 +- client/src/app/+search/search.component.html | 2 +- client/src/app/+search/search.component.scss | 4 -- .../+video-channels/video-channels.component.html | 4 +- .../+video-channels/video-channels.component.scss | 4 -- .../+video-edit/video-add-components/video-send.ts | 4 +- .../+videos/+video-edit/video-update.resolver.ts | 4 +- .../shared/comment/video-comment.component.html | 2 +- .../shared/comment/video-comment.component.scss | 9 ---- .../metadata/video-avatar-channel.component.html | 6 +-- .../metadata/video-avatar-channel.component.scss | 9 ---- .../metadata/video-avatar-channel.component.ts | 4 -- .../overview/video-overview.component.html | 2 +- .../overview/video-overview.component.scss | 1 - client/src/app/core/users/user.model.ts | 4 +- client/src/app/core/users/user.service.ts | 2 +- client/src/app/helpers/utils/channel.ts | 7 +-- .../modal/account-setup-warning-modal.component.ts | 2 +- .../abuse-list-table.component.html | 2 +- .../actor-avatar-edit.component.ts | 2 +- .../shared-actor-image/actor-avatar.component.scss | 29 +++-------- .../shared-actor-image/actor-avatar.component.ts | 15 +++--- .../channel-miniature-markup.component.html | 2 +- .../channel-miniature-markup.component.scss | 2 - .../select/select-channel.component.ts | 2 +- .../shared/shared-main/account/account.model.ts | 16 ++++--- .../app/shared/shared-main/account/actor.model.ts | 20 ++++---- .../misc/channels-setup-message.component.ts | 2 +- .../shared-main/users/user-notification.model.ts | 8 ++-- .../video-channel/video-channel.model.ts | 42 +++++++++------- .../video-channel/video-channel.service.ts | 2 +- .../app/shared/shared-main/video/video.model.ts | 12 ++++- .../account-blocklist.component.html | 2 +- .../video-miniature.component.html | 2 + 49 files changed, 123 insertions(+), 204 deletions(-) delete mode 100644 client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html (limited to 'client/src/app') diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html index 105bc12c3..379c0443e 100644 --- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html +++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html @@ -9,8 +9,11 @@

diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss b/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss index be9e94f69..30b8098be 100644 --- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss +++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss @@ -29,7 +29,6 @@ grid-template-rows: auto 1fr; my-actor-avatar { - @include actor-avatar-size(75px); @include margin-right(15px); grid-column: 1; diff --git a/client/src/app/+accounts/accounts.component.html b/client/src/app/+accounts/accounts.component.html index 8362e6b7e..1544ad034 100644 --- a/client/src/app/+accounts/accounts.component.html +++ b/client/src/app/+accounts/accounts.component.html @@ -2,7 +2,7 @@