ActivityPub-federated video streaming platform using P2P directly in your web browser
Use angular 9 clipboard cdk
Chocobozzz7811819b1a94
diff --git a/client/package.json b/client/package.jsonindex 9da34e4e89..9715b3716a 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.htmlindex 85f7dd30cc..915bee0a23 100644--- a/client/src/app/+accounts/accounts.component.html+++ b/client/src/app/+accounts/accounts.component.html@@ -9,7 +9,7 @@<div class="actor-display-name">{{ account.displayName }}</div><div class="actor-name">{{ account.nameWithHost }}- <button ngxClipboard [cbContent]="account.nameWithHostForced" (click)="activateCopiedMessage()"+ <button [cdkCopyToClipboard]="account.nameWithHostForced" (click)="activateCopiedMessage()"class="btn btn-outline-secondary btn-sm copy-button"><span class="glyphicon glyphicon-copy"></span>diff --git a/client/src/app/+video-channels/video-channels.component.html b/client/src/app/+video-channels/video-channels.component.htmlindex f0bb083ca0..debda9948b 100644--- a/client/src/app/+video-channels/video-channels.component.html+++ b/client/src/app/+video-channels/video-channels.component.html@@ -8,7 +8,7 @@<div class="actor-names"><div class="actor-display-name">{{ videoChannel.displayName }}</div><div class="actor-name">{{ videoChannel.nameWithHost }}- <button ngxClipboard [cbContent]="videoChannel.nameWithHost" (click)="activateCopiedMessage()"+ <button [cdkCopyToClipboard]="videoChannel.nameWithHost" (click)="activateCopiedMessage()"class="btn btn-outline-secondary btn-sm copy-button"><span class="glyphicon glyphicon-copy"></span>diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.htmlindex 675fb597d6..b99c7308e0 100644--- a/client/src/app/menu/menu.component.html+++ b/client/src/app/menu/menu.component.html@@ -8,7 +8,7 @@<a *ngIf="user.account" [routerLink]="[ '/accounts', user.account.nameWithHost ]" class="logged-in-display-name">{{ user.account?.displayName }}</a><a *ngIf="!user.account" routerLink="/my-account/settings" class="logged-in-display-name">{{ user.account?.displayName }}</a>- <div ngxClipboard [cbContent]="user.account?.nameWithHost" class="logged-in-username">{{ user.username }}</div>+ <div class="logged-in-username">{{ user.username }}</div></div><div class="logged-in-more" ngbDropdown placement="bottom-right auto">diff --git a/client/src/app/shared/forms/input-readonly-copy.component.html b/client/src/app/shared/forms/input-readonly-copy.component.htmlindex 27571b63f4..b6a56ec441 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 @@<input #urlInput (click)="urlInput.select()" type="text" class="form-control readonly" readonly [value]="value" /><div class="input-group-append">- <button [ngxClipboard]="urlInput" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary">+ <button [cdkCopyToClipboard]="urlInput.value" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary"><span class="glyphicon glyphicon-copy"></span></button></div>diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.tsindex f39a889e93..759de7020f 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-dimport { 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.htmlindex 8cca985b10..976da03f3d 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 @@<select *ngIf="type === 'video'" [(ngModel)]="resolutionId"><option *ngFor="let file of getVideoFiles()" [value]="file.resolution.id">{{ file.resolution.label }}</option></select>+<select *ngIf="type === 'subtitles'" [(ngModel)]="subtitleLanguageId"><option *ngFor="let caption of videoCaptions" [value]="caption.language.id">{{ caption.language.label }}</option></select></div>+<input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getLink()" /><div class="input-group-append">- <button [ngxClipboard]="urlInput" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary">+ <button [cdkCopyToClipboard]="urlInput.value" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary"><span class="glyphicon glyphicon-copy"></span></button></div>diff --git a/client/yarn.lock b/client/yarn.lockindex a891b4dbdd..c2f33bc553 100644--- a/client/yarn.lock+++ b/client/yarn.lock@@ -7584,14 +7584,6 @@ [email protected]:ng2-material-dropdown "0.11.0"tslib "^1.9.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"