From b919a429ee541748e2c3c2e52fe0133be667889a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Fri, 18 May 2018 09:50:30 +0200 Subject: [PATCH] advancing --- proxy.conf.json | 2 +- .../client-download.component.html | 35 +++++++----- .../client-download.component.ts | 7 +-- src/app/login/login.component.ts | 4 +- src/app/navbar/navbar.component.html | 19 +++++-- src/app/navbar/navbar.component.ts | 7 ++- src/app/services/services.component.ts | 5 +- src/app/uds-api.service.ts | 57 +++++++++++++++---- 8 files changed, 94 insertions(+), 42 deletions(-) diff --git a/proxy.conf.json b/proxy.conf.json index adf2510..94f749e 100644 --- a/proxy.conf.json +++ b/proxy.conf.json @@ -19,7 +19,7 @@ "changeOrigin": true, "logLevel": "info" }, - "/login": { + "/log.*": { "target": { "host": "172.27.0.1", "protocol": "http:", diff --git a/src/app/client-download/client-download.component.html b/src/app/client-download/client-download.component.html index 8c2edac..d5896f1 100644 --- a/src/app/client-download/client-download.component.html +++ b/src/app/client-download/client-download.component.html @@ -1,16 +1,23 @@ -
-

UDS Plugin

-

Download uds plugin for your platform

-
+
+

+ UDS Plugin +

+

+ Download UDS client plugin for your platform +

+
-
-
-
- -
-

{{ p.os }}

-

{{ p.description }}

- Download -
-
+
+
+
+ +
+

{{ p.name }}

+

{{ p.description }}

+ + Download +
+
+
+
diff --git a/src/app/client-download/client-download.component.ts b/src/app/client-download/client-download.component.ts index 8bb6346..91e3909 100644 --- a/src/app/client-download/client-download.component.ts +++ b/src/app/client-download/client-download.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit } from '@angular/core'; -import { UdsApiService, Plugin } from '../uds-api.service'; +import { UdsApiService, Downloadable } from '../uds-api.service'; @Component({ selector: 'uds-client-download', @@ -8,10 +8,9 @@ import { UdsApiService, Plugin } from '../uds-api.service'; }) export class ClientDownloadComponent implements OnInit { - plugins: Plugin[]; + plugins: Downloadable[]; - constructor(private api: UdsApiService) { - this.plugins = api.getPlugins(); + constructor(public api: UdsApiService) { } ngOnInit() { diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index b3cb2a6..2eac221 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit } from '@angular/core'; -import { UdsApiService, Plugin } from '../uds-api.service'; +import { UdsApiService, Downloadable } from '../uds-api.service'; @Component({ selector: 'uds-login', @@ -8,7 +8,7 @@ import { UdsApiService, Plugin } from '../uds-api.service'; }) export class LoginComponent implements OnInit { - constructor(private api: UdsApiService) { } + constructor(public api: UdsApiService) { } ngOnInit() { } diff --git a/src/app/navbar/navbar.component.html b/src/app/navbar/navbar.component.html index d421675..dc9ee2c 100644 --- a/src/app/navbar/navbar.component.html +++ b/src/app/navbar/navbar.component.html @@ -3,10 +3,10 @@ Universal Desktop Services Universal Desktop Services - -