From 4c8749cb9e1e4a8d61697434e372f342def7bc70 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 8 Jun 2022 16:14:24 +0200 Subject: Migrate to bootstrap 5 --- client/package.json | 5 +- .../about-follows/about-follows.component.html | 3 +- .../about-follows/about-follows.component.scss | 1 + .../about-instance/about-instance.component.html | 6 +- .../about-instance/about-instance.component.scss | 11 +- client/src/app/+about/about.component.html | 2 +- .../account-video-channels.component.html | 2 +- client/src/app/+accounts/accounts.component.html | 2 +- client/src/app/+accounts/accounts.component.scss | 4 + .../edit-advanced-configuration.component.html | 15 +- .../edit-basic-configuration.component.html | 58 ++--- .../edit-custom-config.component.html | 4 +- .../edit-custom-config.component.scss | 5 - .../edit-homepage.component.html | 6 +- .../edit-instance-information.component.html | 28 ++- .../edit-live-configuration.component.html | 18 +- .../edit-vod-transcoding.component.html | 32 +-- .../followers-list/followers-list.component.html | 6 +- .../following-list/following-list.component.html | 6 +- .../video-block-list.component.html | 6 +- .../comments/video-comment-list.component.html | 2 +- .../users/user-edit/user-edit.component.html | 234 ++++++++++----------- .../+admin/overview/users/user-edit/user-edit.ts | 4 - .../users/user-edit/user-password.component.html | 26 +-- .../users/user-edit/user-password.component.scss | 12 +- .../users/user-list/user-list.component.html | 12 +- .../users/user-list/user-list.component.scss | 5 +- .../overview/videos/video-list.component.html | 26 +-- .../overview/videos/video-list.component.scss | 6 +- .../plugin-search/plugin-search.component.html | 4 +- .../plugin-search/plugin-search.component.scss | 3 +- .../src/app/+admin/system/jobs/jobs.component.html | 8 +- .../src/app/+admin/system/jobs/jobs.component.scss | 4 - .../video-channel-edit.component.html | 37 ++-- .../video-channel-edit.component.scss | 32 +-- .../my-account-applications.component.html | 9 +- .../my-account-notifications.component.html | 6 +- .../my-account-profile.component.scss | 4 - .../my-account-settings.component.html | 51 ++--- .../my-account-settings.component.scss | 3 +- .../src/app/+my-account/my-account.component.html | 2 +- .../src/app/+my-account/my-account.component.scss | 2 +- .../my-video-channels.component.html | 2 +- .../my-follows/my-followers.component.html | 2 +- .../my-follows/my-subscriptions.component.html | 2 +- .../my-history/my-history.component.html | 3 +- .../src/app/+my-library/my-library.component.html | 2 +- .../src/app/+my-library/my-library.component.scss | 2 +- .../my-ownership/my-ownership.component.html | 2 +- .../my-video-imports.component.html | 2 +- .../my-video-playlist-edit.component.html | 8 +- .../my-video-playlists.component.html | 3 +- .../modals/video-change-ownership.component.html | 2 +- .../modals/video-change-ownership.component.scss | 4 - .../+my-library/my-videos/my-videos.component.html | 2 +- .../+page-not-found/page-not-found.component.html | 6 +- .../src/app/+search/search-filters.component.html | 4 +- .../src/app/+search/search-filters.component.scss | 4 - client/src/app/+search/search.component.html | 10 +- .../+register/custom-stepper.component.html | 2 +- .../+register/register-step-channel.component.html | 4 +- .../+register/register-step-terms.component.html | 4 +- .../+register/register-step-user.component.html | 4 +- .../app/+signup/+register/register.component.scss | 16 -- .../+video-edit/shared/video-edit.component.scss | 8 - .../+video-edit/video-update.component.html | 2 +- .../comment/video-comment-add.component.html | 2 +- .../comment/video-comment-add.component.scss | 3 +- .../shared/comment/video-comment.component.html | 2 +- .../shared/comment/video-comments.component.html | 4 +- .../information/privacy-concerns.component.html | 2 +- .../playlist/video-watch-playlist.component.html | 6 +- .../playlist/video-watch-playlist.component.scss | 58 ++--- .../+video-watch/video-watch.component.html | 2 +- .../overview/video-overview.component.html | 2 +- .../src/app/header/search-typeahead.component.html | 6 +- client/src/app/header/suggestion.component.html | 8 +- client/src/app/menu/menu.component.html | 10 +- client/src/app/menu/notification.component.html | 4 +- client/src/app/modal/confirm.component.html | 2 +- client/src/app/modal/confirm.component.scss | 4 - .../shared-abuse-list/abuse-details.component.html | 10 +- .../abuse-list-table.component.html | 2 +- .../actor-avatar-edit.component.html | 4 +- .../actor-avatar-edit.component.scss | 52 ++--- .../advanced-input-filter.component.html | 13 +- .../advanced-input-filter.component.scss | 1 - .../shared-forms/input-switch.component.html | 2 +- .../input-toggle-hidden.component.html | 24 +-- .../input-toggle-hidden.component.scss | 11 +- .../shared-forms/peertube-checkbox.component.html | 4 +- .../shared-forms/peertube-checkbox.component.scss | 2 +- .../select/select-channel.component.html | 2 +- .../select/select-checkbox.component.html | 4 +- .../select/select-checkbox.component.scss | 2 +- .../instance-about-accordion.component.scss | 23 -- .../instance-features-table.component.html | 2 +- .../instance-features-table.component.scss | 5 +- .../misc/simple-search-input.component.html | 5 +- .../account-block-badges.component.html | 8 +- .../account-block-badges.component.scss | 3 +- .../account-blocklist.component.html | 2 +- .../report-modals/report.component.html | 5 +- .../report-modals/video-report.component.html | 44 ++-- .../server-blocklist.component.html | 2 +- .../shared-share-modal/video-share.component.html | 3 +- .../shared-share-modal/video-share.component.scss | 7 - .../user-video-settings.component.html | 4 +- .../user-video-settings.component.scss | 6 - .../remote-subscribe.component.html | 2 +- .../live-stream-information.component.html | 8 +- .../live-stream-information.component.scss | 7 +- .../video-download.component.html | 33 +-- .../video-download.component.scss | 7 + .../videos-list.component.html | 6 +- ...video-playlist-element-miniature.component.html | 2 +- ...video-playlist-element-miniature.component.scss | 5 +- client/src/sass/application.scss | 40 +++- client/src/sass/bootstrap.scss | 112 ++-------- client/src/sass/classes.scss | 5 + client/src/sass/include/_badges.scss | 61 ++++++ client/src/sass/include/_bootstrap-variables.scss | 10 +- client/src/sass/include/_mixins.scss | 62 +----- client/src/sass/include/_variables.scss | 1 + client/src/sass/player/_player-variables.scss | 2 + client/src/sass/primeng-custom.scss | 5 +- client/src/sass/z-index.scss | 1 - client/yarn.lock | 21 +- 128 files changed, 722 insertions(+), 847 deletions(-) create mode 100644 client/src/sass/include/_badges.scss (limited to 'client') diff --git a/client/package.json b/client/package.json index 30f1c4cbe..4441e84a2 100644 --- a/client/package.json +++ b/client/package.json @@ -48,7 +48,7 @@ "@babel/core": "^7.15.0", "@babel/preset-env": "^7.15.0", "@neos21/bootstrap3-glyphicons": "^1.0.1", - "@ng-bootstrap/ng-bootstrap": "^11.0.0", + "@ng-bootstrap/ng-bootstrap": "^12.1.2", "@ng-select/ng-select": "^8.1.1", "@ngx-loading-bar/core": "^6.0.0", "@ngx-loading-bar/http-client": "^6.0.0", @@ -57,6 +57,7 @@ "@peertube/p2p-media-loader-hlsjs": "^1.0.8", "@peertube/videojs-contextmenu": "^5.5.0", "@peertube/xliffmerge": "^2.0.3", + "@popperjs/core": "^2.11.5", "@types/chart.js": "^2.9.16", "@types/core-js": "^2.5.2", "@types/debug": "^4.1.5", @@ -79,7 +80,7 @@ "angular2-hotkeys": "^13.1.0", "angularx-qrcode": "13.0.3", "babel-loader": "^8.2.2", - "bootstrap": "^4.1.3", + "bootstrap": "^5.1.3", "buffer": "^6.0.3", "cache-chunk-store": "^3.0.0", "chart.js": "^3.5.1", diff --git a/client/src/app/+about/about-follows/about-follows.component.html b/client/src/app/+about/about-follows/about-follows.component.html index 6bc1d0448..f16f8bd71 100644 --- a/client/src/app/+about/about-follows/about-follows.component.html +++ b/client/src/app/+about/about-follows/about-follows.component.html @@ -1,5 +1,6 @@
-

Follows

+

Follows

+

Follower instances ({{ followersPagination.totalItems }})

diff --git a/client/src/app/+about/about-follows/about-follows.component.scss b/client/src/app/+about/about-follows/about-follows.component.scss index 80eb997e4..057d04ced 100644 --- a/client/src/app/+about/about-follows/about-follows.component.scss +++ b/client/src/app/+about/about-follows/about-follows.component.scss @@ -15,6 +15,7 @@ a { .no-results { justify-content: flex-start; + align-items: flex-start; } .show-more { diff --git a/client/src/app/+about/about-instance/about-instance.component.html b/client/src/app/+about/about-instance/about-instance.component.html index 7f2a6aa77..b113df82f 100644 --- a/client/src/app/+about/about-instance/about-instance.component.html +++ b/client/src/app/+about/about-instance/about-instance.component.html @@ -8,9 +8,9 @@
- {{ category }} + {{ category }} - {{ language }} + {{ language }}
@@ -204,7 +204,7 @@
-

FEATURES

+

FEATURES

diff --git a/client/src/app/+about/about-instance/about-instance.component.scss b/client/src/app/+about/about-instance/about-instance.component.scss index 965c04b6c..a48783639 100644 --- a/client/src/app/+about/about-instance/about-instance.component.scss +++ b/client/src/app/+about/about-instance/about-instance.component.scss @@ -19,18 +19,11 @@ } .instance-badges { - font-size: 16px; margin-bottom: 20px; + font-size: 16px; - .badge { + .pt-badge { @include margin-right(5px); - - font-size: 12px; - font-weight: $font-semibold; - - &.category { - background-color: pvar(--mainColor); - } } } diff --git a/client/src/app/+about/about.component.html b/client/src/app/+about/about.component.html index 63d429ebf..3b7343a04 100644 --- a/client/src/app/+about/about.component.html +++ b/client/src/app/+about/about.component.html @@ -1,4 +1,4 @@ -
+