From 5411da31d1070654e4c4b80ad3ad6889b048a4db Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 23 Mar 2020 23:43:51 +0100 Subject: Describe user video settings checkboxes, put emphasis on p2p Also improve more info links about p2p and privacy in PeerTube, present in the privacy concern notice and in the video settings. --- .../app/+about/about-peertube/about-peertube.component.html | 9 ++++++--- .../app/+about/about-peertube/about-peertube.component.ts | 12 ++++++++++-- 2 files changed, 16 insertions(+), 5 deletions(-) (limited to 'client/src/app/+about') diff --git a/client/src/app/+about/about-peertube/about-peertube.component.html b/client/src/app/+about/about-peertube/about-peertube.component.html index 26a3d4554..e5a8b2097 100644 --- a/client/src/app/+about/about-peertube/about-peertube.component.html +++ b/client/src/app/+about/about-peertube/about-peertube.component.html @@ -65,8 +65,11 @@
-
-

P2P & Privacy

+
+

+
+ P2P & Privacy +

PeerTube uses the BitTorrent protocol to share bandwidth between users by default to help lower the load on the server, @@ -95,7 +98,7 @@

  • For each request sent, the tracker returns random peers at a limited number. For instance, if there are 1000 peers in the swarm and the tracker sends only 20 peers for each request, there must be at least 50 - requests sent to know every peers in the swarm + requests sent to know every peer in the swarm
  • diff --git a/client/src/app/+about/about-peertube/about-peertube.component.ts b/client/src/app/+about/about-peertube/about-peertube.component.ts index 64fd30837..98c5f93c3 100644 --- a/client/src/app/+about/about-peertube/about-peertube.component.ts +++ b/client/src/app/+about/about-peertube/about-peertube.component.ts @@ -1,4 +1,5 @@ -import { Component } from '@angular/core' +import { Component, AfterViewChecked } from '@angular/core' +import { ViewportScroller } from '@angular/common' @Component({ selector: 'my-about-peertube', @@ -6,5 +7,12 @@ import { Component } from '@angular/core' styleUrls: [ './about-peertube.component.scss' ] }) -export class AboutPeertubeComponent { +export class AboutPeertubeComponent implements AfterViewChecked { + constructor ( + private viewportScroller: ViewportScroller + ) {} + + ngAfterViewChecked () { + if (window.location.hash) this.viewportScroller.scrollToAnchor(window.location.hash.replace('#', '')) + } } -- cgit v1.2.3