From 2f4c784a92ac50cacef07f4925e284b4041422f4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 12 Jun 2019 12:40:24 +0200 Subject: [PATCH] Add params to share modal --- client/src/app/search/search.component.html | 2 +- client/src/app/search/search.component.scss | 12 -- client/src/app/search/search.module.ts | 5 +- client/src/app/shared/shared.module.ts | 11 +- .../modal/video-share.component.html | 190 ++++++++++++++---- .../modal/video-share.component.scss | 68 ++++++- .../modal/video-share.component.ts | 91 ++++++++- .../+video-watch/video-watch.component.html | 2 +- .../+video-watch/video-watch.component.ts | 5 +- .../assets/player/peertube-player-manager.ts | 2 +- client/src/assets/player/utils.ts | 51 ++++- .../peertube-link-button.ts | 2 +- client/src/sass/application.scss | 118 +---------- client/src/sass/bootstrap.scss | 138 +++++++++++++ client/src/sass/include/_mixins.scss | 18 +- 15 files changed, 505 insertions(+), 210 deletions(-) create mode 100644 client/src/sass/bootstrap.scss diff --git a/client/src/app/search/search.component.html b/client/src/app/search/search.component.html index 0a9f78cb2..055f64cc8 100644 --- a/client/src/app/search/search.component.html +++ b/client/src/app/search/search.component.html @@ -20,7 +20,7 @@ -
+
diff --git a/client/src/app/search/search.component.scss b/client/src/app/search/search.component.scss index 4e3ce1c96..3343a276d 100644 --- a/client/src/app/search/search.component.scss +++ b/client/src/app/search/search.component.scss @@ -35,18 +35,6 @@ } } } - - .results-filter { - // Animation when we show/hide the filters - transition: max-height 0.3s; - display: block !important; - overflow: hidden !important; - max-height: 0; - - &.show { - max-height: 1500px; - } - } } .entry { diff --git a/client/src/app/search/search.module.ts b/client/src/app/search/search.module.ts index 0411fbe24..8b791621e 100644 --- a/client/src/app/search/search.module.ts +++ b/client/src/app/search/search.module.ts @@ -4,14 +4,11 @@ import { SearchComponent } from '@app/search/search.component' import { SearchService } from '@app/search/search.service' import { SearchRoutingModule } from '@app/search/search-routing.module' import { SearchFiltersComponent } from '@app/search/search-filters.component' -import { NgbCollapseModule } from '@ng-bootstrap/ng-bootstrap' @NgModule({ imports: [ SearchRoutingModule, - SharedModule, - - NgbCollapseModule + SharedModule ], declarations: [ diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts index 1d49c7bc8..eb57a2fff 100644 --- a/client/src/app/shared/shared.module.ts +++ b/client/src/app/shared/shared.module.ts @@ -53,7 +53,14 @@ import { VideoCaptionService } from '@app/shared/video-caption' import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component' import { VideoImportService } from '@app/shared/video-import/video-import.service' import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component' -import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap' +import { + NgbCollapseModule, + NgbDropdownModule, + NgbModalModule, + NgbPopoverModule, + NgbTabsetModule, + NgbTooltipModule +} from '@ng-bootstrap/ng-bootstrap' import { RemoteSubscribeComponent, SubscribeButtonComponent, UserSubscriptionService } from '@app/shared/user-subscription' import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component' import { OverviewService } from '@app/shared/overview' @@ -100,6 +107,7 @@ import { FollowService } from '@app/shared/instance/follow.service' NgbPopoverModule, NgbTabsetModule, NgbTooltipModule, + NgbCollapseModule, ClipboardModule, @@ -170,6 +178,7 @@ import { FollowService } from '@app/shared/instance/follow.service' NgbPopoverModule, NgbTabsetModule, NgbTooltipModule, + NgbCollapseModule, ClipboardModule, diff --git a/client/src/app/videos/+video-watch/modal/video-share.component.html b/client/src/app/videos/+video-watch/modal/video-share.component.html index 955b2b80c..82e59d04d 100644 --- a/client/src/app/videos/+video-watch/modal/video-share.component.html +++ b/client/src/app/videos/+video-watch/modal/video-share.component.html @@ -5,53 +5,167 @@