diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts index 662a96179..adeafc2af 100644 --- a/frontend/src/app/app-routing.module.ts +++ b/frontend/src/app/app-routing.module.ts @@ -15,6 +15,7 @@ import { StatusViewComponent } from './components/status-view/status-view.compon import { DashboardComponent } from './dashboard/dashboard.component'; import { LatestBlocksComponent } from './components/latest-blocks/latest-blocks.component'; import { ApiDocsComponent } from './components/api-docs/api-docs.component'; +import { TermsOfServiceComponent } from './components/terms-of-service/terms-of-service.component'; const routes: Routes = [ { @@ -59,6 +60,10 @@ const routes: Routes = [ path: 'api', component: ApiDocsComponent, }, + { + path: 'terms-of-service', + component: TermsOfServiceComponent + }, { path: 'address/:id', children: [], diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts index 9997ff97e..5a6bdc57a 100644 --- a/frontend/src/app/app.module.ts +++ b/frontend/src/app/app.module.ts @@ -45,6 +45,7 @@ import { DashboardComponent } from './dashboard/dashboard.component'; import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome'; import { faChartArea, faCogs, faCubes, faDatabase, faInfoCircle, faList, faSearch, faTachometerAlt, faThList, faTv } from '@fortawesome/free-solid-svg-icons'; import { ApiDocsComponent } from './components/api-docs/api-docs.component'; +import { TermsOfServiceComponent } from './components/terms-of-service/terms-of-service.component'; @NgModule({ declarations: [ @@ -78,6 +79,7 @@ import { ApiDocsComponent } from './components/api-docs/api-docs.component'; FeesBoxComponent, DashboardComponent, ApiDocsComponent, + TermsOfServiceComponent, ], imports: [ BrowserModule, diff --git a/frontend/src/app/components/about/about.component.html b/frontend/src/app/components/about/about.component.html index e616fd379..675459dad 100644 --- a/frontend/src/app/components/about/about.component.html +++ b/frontend/src/app/components/about/about.component.html @@ -4,28 +4,12 @@

+
+ v2.0-SNAPSHOT ({{ gitCommit$ | async }}) +
+
- - - - - - - - - - - - - - - - - - -


-

Maintainers

@@ -115,12 +99,34 @@

If you specified a Twitter handle, the profile photo should now be visible on this page when you reload.

+



+ + + + + + + + + + + + + + + + + + + +
+ -
+

- Git commit: {{ gitCommit$ | async }} + Terms of Service
diff --git a/frontend/src/app/components/about/about.component.ts b/frontend/src/app/components/about/about.component.ts index a239adf46..fc7eb6bc4 100644 --- a/frontend/src/app/components/about/about.component.ts +++ b/frontend/src/app/components/about/about.component.ts @@ -7,6 +7,7 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { ApiService } from 'src/app/services/api.service'; import { env } from '../../app.constants'; import { DomSanitizer, SafeUrl } from '@angular/platform-browser'; +import { map } from 'rxjs/operators'; @Component({ selector: 'app-about', @@ -33,7 +34,7 @@ export class AboutComponent implements OnInit { ) { } ngOnInit() { - this.gitCommit$ = this.stateService.gitCommit$; + this.gitCommit$ = this.stateService.gitCommit$.pipe(map((str) => str.substr(0, 8))); this.seoService.setTitle('About'); this.websocketService.want(['blocks']); diff --git a/frontend/src/app/components/terms-of-service/terms-of-service.component.html b/frontend/src/app/components/terms-of-service/terms-of-service.component.html new file mode 100644 index 000000000..b3f4b75a8 --- /dev/null +++ b/frontend/src/app/components/terms-of-service/terms-of-service.component.html @@ -0,0 +1,40 @@ +
+
+
+ +

+ +

Terms of Service

+
Updated: October 11, 2020
+ +

+ +
+ +
By using this website or accessing its API, you agree to these Terms of Service:
+ +
+ +

NO WARRANTY

+ +

This website is operated in the hope that it will be useful, but all services and data are provided on an "AS IS, AS AVAILABLE" basis, WITHOUT ANY WARRANTY OR REPRESENTATIONS; express or implied, without even the implied warranties of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, CONTINUOUS AVAILABILITY, or UNINTERRUPTED SERVICE. It is your responsibility to verify all data obtained from this website or its API service in relation to inaccuracies and omissions.

+ +
+ +

NO LIABILITY

+ +

Under no circumstance will the developers or operators of this website be held liable for any damages or losses, whether direct, indirect, or any other nature, that are deemed or alleged to have resulted from or been caused by this website or its contents, including, but without limitation to, errors, inaccuracies or ambiguity in this website or its contents, failures, malfunctions, delays or interruptions in operation or transmission, any persons use or misuse of this website or its content, any errors or omissions in content, damage for loss of business, loss of profits, business interruption, loss of business information, or any other pecuniary or consequential loss or damage.

+ +
+ +

PRIVACY POLICY

+ +

The operators of this website may collect your IP address as part of basic webserver logs and a self-hosted statistics application, but this data will never be sold or shared with third parties. Please use Tor when accessing this website to protect your privacy.

+ +
+ +

+ +
+ +
diff --git a/frontend/src/app/components/terms-of-service/terms-of-service.component.scss b/frontend/src/app/components/terms-of-service/terms-of-service.component.scss new file mode 100644 index 000000000..8d1c8b69c --- /dev/null +++ b/frontend/src/app/components/terms-of-service/terms-of-service.component.scss @@ -0,0 +1 @@ + diff --git a/frontend/src/app/components/terms-of-service/terms-of-service.component.ts b/frontend/src/app/components/terms-of-service/terms-of-service.component.ts new file mode 100644 index 000000000..c45547be5 --- /dev/null +++ b/frontend/src/app/components/terms-of-service/terms-of-service.component.ts @@ -0,0 +1,9 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-terms-of-service', + templateUrl: './terms-of-service.component.html' +}) +export class TermsOfServiceComponent { + constructor() { } +} diff --git a/frontend/src/app/dashboard/dashboard.component.html b/frontend/src/app/dashboard/dashboard.component.html index 6a41acc37..107285713 100644 --- a/frontend/src/app/dashboard/dashboard.component.html +++ b/frontend/src/app/dashboard/dashboard.component.html @@ -130,6 +130,12 @@ +
+ +
+ Terms of Service +
+ @@ -140,4 +146,4 @@
-
\ No newline at end of file +