From 1e78d583c6e612663f481ceda643326dcb47c0b3 Mon Sep 17 00:00:00 2001 From: Nikolaos Laskaris Date: Mon, 13 Nov 2017 18:19:43 +0200 Subject: [PATCH 1/7] -- --- dmp-frontend/src/app/app.component.css | 10 ++- dmp-frontend/src/app/app.component.html | 2 +- .../src/app/form/dynamic-form.component.css | 65 +++++++++++++++++- .../src/app/form/dynamic-form.component.html | 29 ++++++-- .../src/app/form/dynamic-form.component.ts | 6 +- .../form/tableOfContents/toc.component.css | 9 ++- .../form/tableOfContents/toc.component.html | 68 +++++++++---------- .../src/app/services/login/token.service.ts | 1 + dmp-frontend/src/app/services/rest-base.ts | 2 +- 9 files changed, 142 insertions(+), 50 deletions(-) diff --git a/dmp-frontend/src/app/app.component.css b/dmp-frontend/src/app/app.component.css index 69ad35423..1ee1ff12e 100644 --- a/dmp-frontend/src/app/app.component.css +++ b/dmp-frontend/src/app/app.component.css @@ -36,9 +36,15 @@ cursor: pointer; } +.navbar { + -webkit-box-shadow: 0px 0px 12px 2px rgba(0,0,0,0.73); + -moz-box-shadow: 0px 0px 12px 2px rgba(0,0,0,0.73); + box-shadow: 0px 0px 12px 2px rgba(0,0,0,0.73); + margin-bottom: 5px; +} -.navbar-title -{ + +.navbar-title { position: absolute; width: 100%; left: 0; diff --git a/dmp-frontend/src/app/app.component.html b/dmp-frontend/src/app/app.component.html index 8aefeb25f..eaa6b69a2 100644 --- a/dmp-frontend/src/app/app.component.html +++ b/dmp-frontend/src/app/app.component.html @@ -1,6 +1,6 @@
- + \ No newline at end of file diff --git a/dmp-frontend/src/app/services/login/token.service.ts b/dmp-frontend/src/app/services/login/token.service.ts index 7344c9b4b..8a503c4a2 100644 --- a/dmp-frontend/src/app/services/login/token.service.ts +++ b/dmp-frontend/src/app/services/login/token.service.ts @@ -83,6 +83,7 @@ export class TokenService { logout(){ + debugger; //set the log out actions here this.setLoggedIn(false); this.setEmail(null); diff --git a/dmp-frontend/src/app/services/rest-base.ts b/dmp-frontend/src/app/services/rest-base.ts index 981357da9..b2d38eeb0 100644 --- a/dmp-frontend/src/app/services/rest-base.ts +++ b/dmp-frontend/src/app/services/rest-base.ts @@ -18,6 +18,7 @@ export class RestBase { + /* protocol: string = "http"; hostname: string ="dl010.madgik.di.uoa.gr" ;//"localhost";//"dl010.madgik.di.uoa.gr";// @@ -31,7 +32,6 @@ export class RestBase { hostname: string = "dionysus.di.uoa.gr" ; port: number = 7070; webappname: string = "dmp-backend"; - proxyPath : string = this.protocol+"://"+this.hostname+":"+this.port+"/"+this.webappname+"/proxy/"; From 910173c90706251b788fc963f300a14524078a71 Mon Sep 17 00:00:00 2001 From: Nikolaos Laskaris Date: Mon, 13 Nov 2017 18:41:07 +0200 Subject: [PATCH 2/7] -- --- dmp-frontend/src/app/app.component.css | 6 ++- dmp-frontend/src/app/app.component.html | 55 +++++++++++-------------- 2 files changed, 28 insertions(+), 33 deletions(-) diff --git a/dmp-frontend/src/app/app.component.css b/dmp-frontend/src/app/app.component.css index 1ee1ff12e..7c3bd07bf 100644 --- a/dmp-frontend/src/app/app.component.css +++ b/dmp-frontend/src/app/app.component.css @@ -45,11 +45,13 @@ .navbar-title { - position: absolute; + /* width: 100%; + position: absolute; left: 0; - text-align: center; + */ margin:0 auto; + text-align: center; } .navbar-toggle { z-index:3; diff --git a/dmp-frontend/src/app/app.component.html b/dmp-frontend/src/app/app.component.html index eaa6b69a2..ca4ae1a85 100644 --- a/dmp-frontend/src/app/app.component.html +++ b/dmp-frontend/src/app/app.component.html @@ -1,41 +1,34 @@
From 6f605960e5ed2a86f78646460b32fa226ef12e21 Mon Sep 17 00:00:00 2001 From: Nikolaos Laskaris Date: Mon, 13 Nov 2017 19:13:49 +0200 Subject: [PATCH 3/7] -- --- dmp-frontend/src/app/app-routing.module.ts | 6 ++-- dmp-frontend/src/app/app.component.html | 29 ++++++++++++++----- dmp-frontend/src/app/app.component.ts | 9 ++++++ .../src/app/form/dynamic-form.component.css | 17 +++++++---- .../src/app/form/dynamic-form.component.ts | 3 +- .../main-sign-in/main-sign-in.component.ts | 4 +-- 6 files changed, 49 insertions(+), 19 deletions(-) diff --git a/dmp-frontend/src/app/app-routing.module.ts b/dmp-frontend/src/app/app-routing.module.ts index 884023531..8e57a602c 100644 --- a/dmp-frontend/src/app/app-routing.module.ts +++ b/dmp-frontend/src/app/app-routing.module.ts @@ -14,10 +14,10 @@ import { MainSignInComponent } from './login/main-sign-in/main-sign-in.component const appRoutes: Routes = [ { path: 'dynamic-form', component: DynamicFormComponent, canActivate: [AuthGuard] }, { path: 'login', component: MainSignInComponent}, - //{ path: 'projects', component: ProjectsComponent}, - //{ path: 'dmps', component: DmpComponent}, + { path: 'projects', component: ProjectsComponent}, + { path: 'dmps', component: DmpComponent}, { path: 'workspace', component: UserWorkspaceComponent}, - //{ path: '', component: EmptyComponent}, + { path: 'welcome', component: EmptyComponent}, { path: '', redirectTo: '/login', pathMatch: 'full' }, { path: '**', component: PageNotFoundComponent }, /* diff --git a/dmp-frontend/src/app/app.component.html b/dmp-frontend/src/app/app.component.html index ca4ae1a85..5455350f2 100644 --- a/dmp-frontend/src/app/app.component.html +++ b/dmp-frontend/src/app/app.component.html @@ -1,17 +1,32 @@