aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+about
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+about')
-rw-r--r--client/src/app/+about/about-peertube/about-peertube.component.html9
-rw-r--r--client/src/app/+about/about-peertube/about-peertube.component.ts12
2 files changed, 16 insertions, 5 deletions
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 @@
65 <div class="privacy-contributors"> 65 <div class="privacy-contributors">
66 <my-about-peertube-contributors></my-about-peertube-contributors> 66 <my-about-peertube-contributors></my-about-peertube-contributors>
67 67
68 <div class="p2p-privacy"> 68 <div class="p2p-privacy">
69 <h3 i18n class="section-title">P2P & Privacy</h3> 69 <h3 class="section-title">
70 <div class="anchor" id="privacy"></div> <!-- privacy anchor -->
71 <ng-container i18n>P2P & Privacy</ng-container>
72 </h3>
70 73
71 <p i18n> 74 <p i18n>
72 PeerTube uses the BitTorrent protocol to share bandwidth between users by default to help lower the load on the server, 75 PeerTube uses the BitTorrent protocol to share bandwidth between users by default to help lower the load on the server,
@@ -95,7 +98,7 @@
95 <li i18n> 98 <li i18n>
96 For each request sent, the tracker returns random peers at a limited number. 99 For each request sent, the tracker returns random peers at a limited number.
97 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 100 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
98 requests sent to know every peers in the swarm 101 requests sent to know every peer in the swarm
99 </li> 102 </li>
100 103
101 <li i18n> 104 <li i18n>
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 @@
1import { Component } from '@angular/core' 1import { Component, AfterViewChecked } from '@angular/core'
2import { ViewportScroller } from '@angular/common'
2 3
3@Component({ 4@Component({
4 selector: 'my-about-peertube', 5 selector: 'my-about-peertube',
@@ -6,5 +7,12 @@ import { Component } from '@angular/core'
6 styleUrls: [ './about-peertube.component.scss' ] 7 styleUrls: [ './about-peertube.component.scss' ]
7}) 8})
8 9
9export class AboutPeertubeComponent { 10export class AboutPeertubeComponent implements AfterViewChecked {
11 constructor (
12 private viewportScroller: ViewportScroller
13 ) {}
14
15 ngAfterViewChecked () {
16 if (window.location.hash) this.viewportScroller.scrollToAnchor(window.location.hash.replace('#', ''))
17 }
10} 18}