-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
1,865 additions
and
2,096 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,100 +1,103 @@ | ||
/* eslint-disable */ | ||
import { NgModule } from '@angular/core' | ||
import { RouterModule, Routes } from '@angular/router' | ||
import {NgModule} from '@angular/core' | ||
import {RouterModule, Routes} from '@angular/router' | ||
// Layouts | ||
import { ConsentInfoComponent } from './consent-info.component' | ||
import { FullLayoutComponent } from './layouts/full-layout.component' | ||
import { MemberGuardService } from './member-guard.service' | ||
import { RegistrationInfoComponent } from './registration-info.component' | ||
import { LoggedInGuard } from './logged-in-guard.service' | ||
import { CreditsCalculatorComponent } from './credits-calculator/credits-calculator.component' | ||
import {ConsentInfoComponent} from './consent-info.component' | ||
import {FullLayoutComponent} from './layouts/full-layout.component' | ||
import {MemberGuardService} from './member-guard.service' | ||
import {RegistrationInfoComponent} from './registration-info.component' | ||
import {LoggedInGuard} from './logged-in-guard.service' | ||
import {CreditsCalculatorComponent} from './credits-calculator/credits-calculator.component' | ||
import {VoGuardService} from './shared/guards/vo-guard.service'; | ||
|
||
export const routes: Routes = [ | ||
{ | ||
path: '', | ||
redirectTo: 'userinfo', | ||
pathMatch: 'full', | ||
}, | ||
{ | ||
path: 'registration-info', | ||
component: RegistrationInfoComponent, | ||
pathMatch: 'full', | ||
}, | ||
{ | ||
path: 'consent-info', | ||
component: ConsentInfoComponent, | ||
pathMatch: 'full', | ||
}, | ||
{ | ||
path: '', | ||
component: FullLayoutComponent, | ||
canActivate: [MemberGuardService], | ||
data: { | ||
title: 'de.NBI Cloud Portal', | ||
{ | ||
path: '', | ||
redirectTo: 'userinfo', | ||
pathMatch: 'full', | ||
}, | ||
children: [ | ||
{ | ||
path: 'userinfo', | ||
canActivate: [LoggedInGuard], | ||
{ | ||
path: 'registration-info', | ||
component: RegistrationInfoComponent, | ||
pathMatch: 'full', | ||
}, | ||
{ | ||
path: 'consent-info', | ||
component: ConsentInfoComponent, | ||
pathMatch: 'full', | ||
}, | ||
{ | ||
path: '', | ||
component: FullLayoutComponent, | ||
canActivate: [MemberGuardService], | ||
data: { | ||
title: 'de.NBI Cloud Portal', | ||
}, | ||
children: [ | ||
{ | ||
path: 'userinfo', | ||
canActivate: [LoggedInGuard], | ||
|
||
// eslint-disable-next-line @typescript-eslint/promise-function-async | ||
loadChildren: () => import('./userinfo/userinfo.module').then(m => m.UserinfoModule), | ||
}, | ||
{ | ||
path: 'help', | ||
canActivate: [LoggedInGuard], | ||
// eslint-disable-next-line @typescript-eslint/promise-function-async | ||
loadChildren: () => import('./userinfo/userinfo.module').then(m => m.UserinfoModule), | ||
}, | ||
{ | ||
path: 'help', | ||
canActivate: [LoggedInGuard], | ||
|
||
// eslint-disable-next-line @typescript-eslint/promise-function-async | ||
loadChildren: () => import('./help/help.module').then(m => m.HelpModule), | ||
}, | ||
{ | ||
path: 'project-management', | ||
canActivate: [LoggedInGuard], | ||
// eslint-disable-next-line @typescript-eslint/promise-function-async | ||
loadChildren: () => import('./help/help.module').then(m => m.HelpModule), | ||
}, | ||
{ | ||
path: 'project-management', | ||
canActivate: [LoggedInGuard], | ||
|
||
loadChildren: () => import('./projectmanagement/projectmanagement.module').then(m => m.ProjectManagementModule), | ||
}, | ||
{ | ||
path: 'applications', | ||
canActivate: [LoggedInGuard], | ||
loadChildren: () => import('./projectmanagement/projectmanagement.module').then(m => m.ProjectManagementModule), | ||
}, | ||
{ | ||
path: 'applications', | ||
canActivate: [LoggedInGuard], | ||
|
||
loadChildren: () => import('./applications/applications.module').then(m => m.ApplicationsModule), | ||
}, | ||
{ | ||
path: 'virtualmachines', | ||
canActivate: [LoggedInGuard], | ||
loadChildren: () => import('./applications/applications.module').then(m => m.ApplicationsModule), | ||
}, | ||
{ | ||
path: 'virtualmachines', | ||
canActivate: [LoggedInGuard], | ||
|
||
loadChildren: () => import('./virtualmachines/vm.module').then(m => m.VmModule), | ||
}, | ||
{ | ||
path: 'vo-manager', | ||
loadChildren: () => import('./vo_manager/VoManager.module').then(m => m.VoManagerModule), | ||
}, | ||
{ | ||
path: 'facility-manager', | ||
canActivate: [LoggedInGuard], | ||
loadChildren: () => import('./virtualmachines/vm.module').then(m => m.VmModule), | ||
}, | ||
{ | ||
path: 'vo-manager', | ||
loadChildren: () => import('./vo_manager/VoManager.module').then(m => m.VoManagerModule), | ||
canActivate: [VoGuardService] | ||
}, | ||
{ | ||
path: 'facility-manager', | ||
canActivate: [LoggedInGuard], | ||
|
||
loadChildren: () => import('./facility_manager/facilitymanager.module').then(m => m.FacilitymanagerModule), | ||
}, | ||
{ | ||
path: 'credits-calculator', | ||
canActivate: [LoggedInGuard], | ||
component: CreditsCalculatorComponent, | ||
loadChildren: () => import('./facility_manager/facilitymanager.module').then(m => m.FacilitymanagerModule), | ||
}, | ||
{ | ||
path: 'credits-calculator', | ||
canActivate: [LoggedInGuard], | ||
component: CreditsCalculatorComponent, | ||
|
||
loadChildren: () => | ||
import('./credits-calculator/credits-calculator.module').then(m => m.CreditsCalculatorModule), | ||
}, | ||
], | ||
}, | ||
loadChildren: () => | ||
import('./credits-calculator/credits-calculator.module').then(m => m.CreditsCalculatorModule), | ||
}, | ||
], | ||
}, | ||
] | ||
|
||
/** | ||
* App routing module. | ||
*/ | ||
@NgModule({ | ||
imports: [RouterModule.forRoot(routes, {})], | ||
exports: [RouterModule], | ||
providers: [MemberGuardService, LoggedInGuard], | ||
imports: [RouterModule.forRoot(routes, {})], | ||
exports: [RouterModule], | ||
providers: [MemberGuardService, LoggedInGuard], | ||
}) | ||
export class AppRoutingModule {} | ||
export class AppRoutingModule { | ||
} | ||
|
||
/* eslint-enable */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
.../applications/application-formular/kubernetes-formular/kubernetes-formular.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<app-application-formular | ||
[kubernetes_access]="kubernetes_access" | ||
[openstack_project]="openstack_application" | ||
[title]="title" | ||
></app-application-formular> |
16 changes: 16 additions & 0 deletions
16
...pp/applications/application-formular/kubernetes-formular/kubernetes-formular.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
/** | ||
* This components provides the functions to create a new Kubernetes Cloud Application. | ||
*/ | ||
@Component({ | ||
selector: 'app-kubernetes-formular', | ||
templateUrl: 'kubernetes-formular.component.html', | ||
styleUrls: ['kubernetes-formular.component.css'], | ||
}) | ||
export class KubernetesFormularComponent { | ||
openstack_application: boolean = true; | ||
kubernetes_access: boolean = true; | ||
|
||
title: string = 'New Kubernetes Application'; | ||
} |
1 change: 1 addition & 0 deletions
1
...pp/applications/application-formular/openstack-formular/addcloudapplication.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* #flavor-card {cursor: pointer;} */ |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 41 additions & 32 deletions
73
src/app/applications/application-list/application-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,41 @@ | ||
<div *ngIf="applications.length > 0" class="card-body" data-test-id="submitted_applications_container"> | ||
<div> | ||
<table class="table table-responsive table-borderless table-hover"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th>Project Name</th> | ||
<th>Short Name</th> | ||
<th>Date submitted</th> | ||
<th>User</th> | ||
<th>Institute</th> | ||
<th *ngIf="is_vo_admin && voView">Compute Center</th> | ||
<th>Actions</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@for (application of applications; track application.project_application_id) { | ||
<app-application-card | ||
class="table-line" | ||
[application]="application" | ||
[facilityView]="facilityView" | ||
[voView]="voView" | ||
(reloadNumbersTrigger)="triggerReloadNumbers()" | ||
[computeCenters]="computeCenters" | ||
(removeApplicationTrigger)="removeApplicationFromList($event)" | ||
[tabState]="tabState" | ||
></app-application-card> | ||
} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
@if (applications.length <= 0) { | ||
<div class="card-body" [attr.data-test-id]="dataTestId"> | ||
<div class="alert alert-success" role="alert"> | ||
<strong>No new Applications!</strong> There is nothing to review. | ||
</div> | ||
</div> | ||
} @else { | ||
|
||
<div class="card-body" [attr.data-test-id]="dataTestId"> | ||
<div> | ||
<table class="table table-responsive table-borderless table-hover"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th>Project Name</th> | ||
<th>Short Name</th> | ||
<th>Date submitted</th> | ||
<th>User</th> | ||
<th>Institute</th> | ||
<th *ngIf="is_vo_admin && voView">Compute Center</th> | ||
<th>Actions</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@for (application of applications; track application.project_application_id) { | ||
<app-application-card | ||
class="table-line" | ||
[application]="application" | ||
[facilityView]="facilityView" | ||
[voView]="voView" | ||
(reloadNumbersTrigger)="triggerReloadNumbers()" | ||
[computeCenters]="computeCenters" | ||
(removeApplicationTrigger)="removeApplicationFromList($event)" | ||
[tabState]="tabState" | ||
></app-application-card> | ||
} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
} |
Oops, something went wrong.