-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from cloudiator/development
Development
- Loading branch information
Showing
94 changed files
with
15,228 additions
and
409 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
src/app/app-dialog/dialogs/delete-schedule-dialog/delete-schedule-dialog.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,16 @@ | ||
<div class="modal is-active"> | ||
<div class="modal-background" (click)="onClose()"></div> | ||
<div class="modal-card"> | ||
<header class="modal-card-head"> | ||
<p class="modal-card-title">Delete {{scheduleName}}</p> | ||
<button class="delete" aria-label="close" (click)="onClose()"></button> | ||
</header> | ||
<section class="modal-card-body"> | ||
<div>Do you really want to delete this Schedule?</div> | ||
</section> | ||
<footer class="modal-card-foot"> | ||
<button class="button is-danger" (click)="onClose(true)">Delete</button> | ||
<button class="button" (click)="onClose()">Cancel</button> | ||
</footer> | ||
</div> | ||
</div> |
Empty file.
31 changes: 31 additions & 0 deletions
31
src/app/app-dialog/dialogs/delete-schedule-dialog/delete-schedule-dialog.component.spec.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,31 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { DeleteScheduleDialogComponent } from './delete-schedule-dialog.component'; | ||
import {DialogRef} from '../../model/dialogRef'; | ||
import {DIALOG_DATA} from '../../services/dialog.service'; | ||
|
||
describe('DeleteScheduleDialogComponent', () => { | ||
let component: DeleteScheduleDialogComponent; | ||
let fixture: ComponentFixture<DeleteScheduleDialogComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ DeleteScheduleDialogComponent ], | ||
providers: [ | ||
{provide: DialogRef, useVale: {}}, | ||
{ provide: DIALOG_DATA, useValue: {}} | ||
] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(DeleteScheduleDialogComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
24 changes: 24 additions & 0 deletions
24
src/app/app-dialog/dialogs/delete-schedule-dialog/delete-schedule-dialog.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,24 @@ | ||
import {Component, Inject, OnInit} from '@angular/core'; | ||
import {DialogRef} from '../../model/dialogRef'; | ||
import {DIALOG_DATA} from '../../services/dialog.service'; | ||
|
||
@Component({ | ||
selector: 'app-delete-schedule-dialog', | ||
templateUrl: './delete-schedule-dialog.component.html', | ||
styleUrls: ['./delete-schedule-dialog.component.scss'] | ||
}) | ||
export class DeleteScheduleDialogComponent implements OnInit { | ||
|
||
public scheduleName: string; | ||
|
||
constructor(public dialogRef: DialogRef, | ||
@Inject(DIALOG_DATA) public data: any) { } | ||
|
||
ngOnInit() { | ||
this.scheduleName = this.data.scheduleName; | ||
} | ||
|
||
public onClose(result = false) { | ||
this.dialogRef.close(result); | ||
} | ||
} |
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,15 @@ | ||
import {ConfirmNewCloudDialogComponent} from './confirm-new-cloud-dialog/confirm-new-cloud-dialog.component'; | ||
import {DeleteCloudDialogComponent} from './delete-cloud-dialog/delete-cloud-dialog.component'; | ||
import {DeleteScheduleDialogComponent} from './delete-schedule-dialog/delete-schedule-dialog.component'; | ||
import {ScheduleDiagnosticDialogComponent} from './schedule-diagnostic-dialog/schedule-diagnostic-dialog.component'; | ||
import {ToastComponent} from './toast/toast.component'; | ||
import {SshConsoleDialogComponent} from './ssh-console-dialog/ssh-console-dialog.component'; | ||
|
||
export { | ||
ConfirmNewCloudDialogComponent, | ||
DeleteScheduleDialogComponent, | ||
DeleteCloudDialogComponent, | ||
ScheduleDiagnosticDialogComponent, | ||
ToastComponent, | ||
SshConsoleDialogComponent | ||
}; |
15 changes: 15 additions & 0 deletions
15
...p/app-dialog/dialogs/schedule-diagnostic-dialog/schedule-diagnostic-dialog.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,15 @@ | ||
<div class="modal is-active"> | ||
<div class="modal-background" (click)="onClose()"></div> | ||
<div class="modal-card"> | ||
<header class="modal-card-head"> | ||
<p class="modal-card-title">Diagnostic {{data.task}}</p> | ||
<button class="delete" aria-label="close" (click)="onClose()"></button> | ||
</header> | ||
<section class="modal-card-body"> | ||
<div>{{data.diagnostic}}</div> | ||
</section> | ||
<footer class="modal-card-foot"> | ||
</footer> | ||
</div> | ||
</div> | ||
|
Empty file.
35 changes: 35 additions & 0 deletions
35
...pp-dialog/dialogs/schedule-diagnostic-dialog/schedule-diagnostic-dialog.component.spec.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,35 @@ | ||
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; | ||
|
||
import {ScheduleDiagnosticDialogComponent} from './schedule-diagnostic-dialog.component'; | ||
import {AppDialogModule} from '../../app-dialog.module'; | ||
import {DialogRef} from '../../model/dialogRef'; | ||
import {DIALOG_DATA} from '../../services/dialog.service'; | ||
|
||
describe('ScheduleDiagnosticDialogComponent', () => { | ||
let component: ScheduleDiagnosticDialogComponent; | ||
let fixture: ComponentFixture<ScheduleDiagnosticDialogComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ | ||
ScheduleDiagnosticDialogComponent | ||
], | ||
imports: [], | ||
providers: [ | ||
{provide: DialogRef, useVale: {}}, | ||
{ provide: DIALOG_DATA, useValue: {}} | ||
] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ScheduleDiagnosticDialogComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
23 changes: 23 additions & 0 deletions
23
...app/app-dialog/dialogs/schedule-diagnostic-dialog/schedule-diagnostic-dialog.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,23 @@ | ||
import {Component, Inject, OnInit} from '@angular/core'; | ||
import {DialogRef} from '../../model/dialogRef'; | ||
import {DIALOG_DATA} from '../../services/dialog.service'; | ||
import {CloudiatorProcess} from 'cloudiator-rest-api'; | ||
|
||
@Component({ | ||
selector: 'app-schedule-diagnostic-dialog', | ||
templateUrl: './schedule-diagnostic-dialog.component.html', | ||
styleUrls: ['./schedule-diagnostic-dialog.component.scss'] | ||
}) | ||
export class ScheduleDiagnosticDialogComponent implements OnInit { | ||
|
||
constructor(public dialogRef: DialogRef, | ||
@Inject(DIALOG_DATA) public data: CloudiatorProcess) { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
onClose() { | ||
this.dialogRef.close(); | ||
} | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/app/app-dialog/dialogs/ssh-console-dialog/ssh-console-dialog.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,14 @@ | ||
<div class="modal is-active" (window:resize)="onResize()"> | ||
<div class="modal-background"></div> | ||
<div class="modal-card"> | ||
<header class="modal-card-head"> | ||
<p class="modal-card-title">{{data.name}} SSH Terminal</p> | ||
<button class="delete" aria-label="close" (click)="onClose()"></button> | ||
</header> | ||
<section class="modal-card-body"> | ||
<div #terminal class="terminal-container"></div> | ||
</section> | ||
<footer class="modal-card-foot"> | ||
</footer> | ||
</div> | ||
</div> |
42 changes: 42 additions & 0 deletions
42
src/app/app-dialog/dialogs/ssh-console-dialog/ssh-console-dialog.component.scss
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,42 @@ | ||
@import "~bulma/sass/utilities/mixins"; | ||
|
||
.modal-card { | ||
width: 90%; | ||
height: 90%; | ||
} | ||
|
||
.modal-card-body { | ||
padding: 0; | ||
} | ||
|
||
.terminal-container { | ||
width: 100%; | ||
height: 100%; | ||
background-color: black; | ||
} | ||
|
||
.mobile-view { | ||
display: none; | ||
} | ||
|
||
@include mobile { | ||
.modal { | ||
padding: 0; | ||
align-items: stretch; | ||
} | ||
|
||
.modal-card { | ||
width: 100%; | ||
height: 100%; | ||
max-height: 100vh; | ||
margin: 0; | ||
} | ||
|
||
.modal-card-head { | ||
border-radius: 0; | ||
} | ||
|
||
.modal-card-foot { | ||
border-radius: 0; | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
src/app/app-dialog/dialogs/ssh-console-dialog/ssh-console-dialog.component.spec.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,43 @@ | ||
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; | ||
|
||
import {SshConsoleDialogComponent} from './ssh-console-dialog.component'; | ||
import {AppDialogModule} from '../../app-dialog.module'; | ||
import {DialogRef} from '../../model/dialogRef'; | ||
import {DIALOG_DATA, DialogService} from '../../services/dialog.service'; | ||
import {HttpClientTestingModule} from '@angular/common/http/testing'; | ||
import {ApiModule} from 'cloudiator-rest-api'; | ||
import {apiConfigFactory} from '../../../app.module'; | ||
import {RootStoreModule} from '../../../root-store'; | ||
import {ToastService} from '../../services/toast.service'; | ||
|
||
describe('SshConsoleDialogComponent', () => { | ||
let component: SshConsoleDialogComponent; | ||
let fixture: ComponentFixture<SshConsoleDialogComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [], | ||
imports: [ | ||
RootStoreModule, | ||
HttpClientTestingModule, | ||
ApiModule.forRoot(apiConfigFactory), | ||
AppDialogModule | ||
], | ||
providers: [ | ||
{provide: DialogRef, useVale: {}}, | ||
{provide: DIALOG_DATA, useValue: {}} | ||
] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(SshConsoleDialogComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.