From 7811819b1a942c99a80e36eb93cc3a8b0e7fc5f2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 10 Feb 2020 14:37:15 +0100 Subject: [PATCH] Use angular 9 clipboard cdk --- client/package.json | 1 - client/src/app/+accounts/accounts.component.html | 2 +- .../+video-channels/video-channels.component.html | 2 +- client/src/app/menu/menu.component.html | 2 +- .../forms/input-readonly-copy.component.html | 2 +- client/src/app/shared/shared.module.ts | 2 +- .../video/modals/video-download.component.html | 4 +++- client/yarn.lock | 15 --------------- 8 files changed, 8 insertions(+), 22 deletions(-) diff --git a/client/package.json b/client/package.json index 9da34e4e8..9715b3716 100644 --- a/client/package.json +++ b/client/package.json @@ -103,7 +103,6 @@ "lodash-es": "^4.17.4", "markdown-it": "^9.0.1", "ngx-chips": "2.1.0", - "ngx-clipboard": "12.3.0", "ngx-pipes": "^2.6.0", "node-sass": "^4.9.3", "npm-font-source-sans-pro": "^1.0.2", diff --git a/client/src/app/+accounts/accounts.component.html b/client/src/app/+accounts/accounts.component.html index 85f7dd30c..915bee0a2 100644 --- a/client/src/app/+accounts/accounts.component.html +++ b/client/src/app/+accounts/accounts.component.html @@ -9,7 +9,7 @@
{{ account.displayName }}
{{ account.nameWithHost }} -
diff --git a/client/src/app/shared/forms/input-readonly-copy.component.html b/client/src/app/shared/forms/input-readonly-copy.component.html index 27571b63f..b6a56ec44 100644 --- a/client/src/app/shared/forms/input-readonly-copy.component.html +++ b/client/src/app/shared/forms/input-readonly-copy.component.html @@ -2,7 +2,7 @@
-
diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts index f39a889e9..759de7020 100644 --- a/client/src/app/shared/shared.module.ts +++ b/client/src/app/shared/shared.module.ts @@ -93,12 +93,12 @@ import { VideoActionsDropdownComponent } from '@app/shared/video/video-actions-d import { VideoBlacklistComponent } from '@app/shared/video/modals/video-blacklist.component' import { VideoDownloadComponent } from '@app/shared/video/modals/video-download.component' import { VideoReportComponent } from '@app/shared/video/modals/video-report.component' -import { ClipboardModule } from 'ngx-clipboard' import { FollowService } from '@app/shared/instance/follow.service' import { MultiSelectModule } from 'primeng/multiselect' import { FeatureBooleanComponent } from '@app/shared/instance/feature-boolean.component' import { InputReadonlyCopyComponent } from '@app/shared/forms/input-readonly-copy.component' import { RedundancyService } from '@app/shared/video/redundancy.service' +import { ClipboardModule } from '@angular/cdk/clipboard' @NgModule({ imports: [ diff --git a/client/src/app/shared/video/modals/video-download.component.html b/client/src/app/shared/video/modals/video-download.component.html index 8cca985b1..976da03f3 100644 --- a/client/src/app/shared/video/modals/video-download.component.html +++ b/client/src/app/shared/video/modals/video-download.component.html @@ -23,13 +23,15 @@ +
+
-
diff --git a/client/yarn.lock b/client/yarn.lock index a891b4dbd..c2f33bc55 100644 --- a/client/yarn.lock +++ b/client/yarn.lock @@ -7584,14 +7584,6 @@ ngx-chips@2.1.0: ng2-material-dropdown "0.11.0" tslib "^1.9.0" -ngx-clipboard@12.3.0: - version "12.3.0" - resolved "https://registry.yarnpkg.com/ngx-clipboard/-/ngx-clipboard-12.3.0.tgz#8e61a894ff57249db64b733d26f9a0b98c08829f" - integrity sha512-ToSsuDv9I1L0g+TcthePcZ4B859/MpoarlHVr2KnHWy3pR8SxfJlNyP2i9STYRQkJ5bSEg65RFErW4tx52lHYQ== - dependencies: - ngx-window-token "^2.0.0" - tslib "^1.9.0" - ngx-pipes@^2.6.0: version "2.6.0" resolved "https://registry.yarnpkg.com/ngx-pipes/-/ngx-pipes-2.6.0.tgz#8aec62de477067ef2726f2b87086a169bcf41b8a" @@ -7599,13 +7591,6 @@ ngx-pipes@^2.6.0: dependencies: tslib "^1.9.0" -ngx-window-token@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/ngx-window-token/-/ngx-window-token-2.0.1.tgz#8f91221af4116aa9f49bb3f7a6f1111639884fba" - integrity sha512-rvqdqJEfnWXQFU5fyfYt06E10tR/UtFOYdF3QebfcOh5VIJhnTKiprX8e4B9OrX7WEVFm9BT8uV72xXcEgsaKA== - dependencies: - tslib "^1.9.0" - nice-try@^1.0.4: version "1.0.5" resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"