From 50812196e9e66edbe4f0d2f3e169b20d89732d42 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 16 Jun 2020 20:00:45 +0000 Subject: [PATCH] [Usage Statistics | Trunk]: Finish home page, except third section --- src/app/app.component.html | 2 +- src/app/app.component.ts | 5 +- src/app/home/home.component.html | 2 +- src/app/resources/resources.component.html | 112 +++++++++++---------- src/styles.css | 4 - 5 files changed, 62 insertions(+), 63 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index 160d3b2..078ca41 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,4 +1,4 @@ -
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index dd4679e..1b4f8b3 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -29,7 +29,8 @@ export class AppComponent implements OnInit { private router: Router) { this.router.events.subscribe(event => { if (event instanceof NavigationStart) { - this.isHome.next(event.url === '/'); + let path = event.url.split('?')[0]; + this.isHome.next(path === '/'); } }) } @@ -47,7 +48,7 @@ export class AppComponent implements OnInit { if(!isHome) { this.menuItems = [ { - rootItem: new MenuItem("home", "Home", "", "", false, [], null, {}), + rootItem: new MenuItem("home", "Home", "", "/", false, [], null, {}), items: [ new MenuItem("intro", "Usage Statistics Intro", "", "/", false, [], null, {}), new MenuItem("countries", "Track Countries Usage Activity", "", "/", false, [], null, {slide: 2}), diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index 8d59469..e4970b1 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -88,7 +88,7 @@
- + diff --git a/src/app/resources/resources.component.html b/src/app/resources/resources.component.html index 27507bc..7b49de9 100644 --- a/src/app/resources/resources.component.html +++ b/src/app/resources/resources.component.html @@ -5,11 +5,11 @@

{{ - 'The service has to be enabled for the repository. This step results in the generation of two unique identifiers:' - | titlecase }} + 'The service has to be enabled for the repository. This step results in the generation of two unique identifiers:' + | titlecase }}

    -
  • a Matomo-ID that associates the repository with its usage events in Matomo platform;
  • +
  • a Matomo-ID that associates the repository with its usage events in Matomo platform;
  • an authentication-ID that allows to track usage activity on the Matomo platform.

After the generation of the identifiers the repository manager has to perform the following steps:

@@ -55,61 +55,63 @@
-
-
+
-
Follow USAGE STATISTICS guidelines
-
-
- -

Guidelines

-
- - https://openaire.github.io/usage-statistics-guidelines/ - +
Follow USAGE STATISTICS guidelines
+ -
- -

Software

- -
-
- -

Services API

-
- SUSHI Lite Endpoint - - - http://services.openaire.eu/usagestats/sushilite/ - +
+ +

Software

+
-
- diff --git a/src/styles.css b/src/styles.css index e7b4b2a..6301d1a 100644 --- a/src/styles.css +++ b/src/styles.css @@ -9,10 +9,6 @@ --portal-dark-color: #a0462c; } -body, html { - height: 100%; -} - main { background-color: #F9FBFC; color: #333333;