diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index c5ebac59..d452aa73 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -51,6 +51,7 @@ import { CopyIosTemplateComponent } from './components/preferences/dynamips/copy import { CopyDockerTemplateComponent } from './components/preferences/docker/copy-docker-template/copy-docker-template.component'; import { CopyIouTemplateComponent } from './components/preferences/ios-on-unix/copy-iou-template/copy-iou-template.component'; import { ListOfSnapshotsComponent } from './components/snapshots/list-of-snapshots/list-of-snapshots.component'; +import { ConsoleComponent } from './components/settings/console/console.component'; const routes: Routes = [ { @@ -62,6 +63,7 @@ const routes: Routes = [ { path: 'local', component: LocalServerComponent }, { path: 'server/:server_id/projects', component: ProjectsComponent }, { path: 'settings', component: SettingsComponent }, + { path: 'settings/console', component: ConsoleComponent }, { path: 'installed-software', component: InstalledSoftwareComponent }, { path: 'server/:server_id/project/:project_id/snapshots', component: ListOfSnapshotsComponent }, { path: 'server/:server_id/preferences', component: PreferencesComponent }, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 586395d3..0ba2aadf 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -169,6 +169,7 @@ import { DateFilter } from './filters/dateFilter.pipe'; import { NameFilter } from './filters/nameFilter.pipe'; import { CustomAdaptersComponent } from './components/preferences/common/custom-adapters/custom-adapters.component'; import { ConsoleDeviceActionComponent } from './components/project-map/context-menu/actions/console-device-action/console-device-action.component'; +import { ConsoleComponent } from './components/settings/console/console.component'; if (environment.production) { Raven.config('https://b2b1cfd9b043491eb6b566fd8acee358@sentry.io/842726', { @@ -275,7 +276,8 @@ if (environment.production) { NameFilter, ListOfSnapshotsComponent, CustomAdaptersComponent, - ConsoleDeviceActionComponent + ConsoleDeviceActionComponent, + ConsoleComponent ], imports: [ BrowserModule, diff --git a/src/app/components/settings/console/console.component.html b/src/app/components/settings/console/console.component.html new file mode 100644 index 00000000..530e7305 --- /dev/null +++ b/src/app/components/settings/console/console.component.html @@ -0,0 +1,26 @@ +
+
+
+

Console settings

+
+
+
+ +
+ + + + + + +
+
+
+ +
+
+
+
diff --git a/src/app/components/settings/console/console.component.scss b/src/app/components/settings/console/console.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/components/settings/console/console.component.spec.ts b/src/app/components/settings/console/console.component.spec.ts new file mode 100644 index 00000000..e8ebf2a1 --- /dev/null +++ b/src/app/components/settings/console/console.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ConsoleComponent } from './console.component'; + +describe('ConsoleComponent', () => { + let component: ConsoleComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ConsoleComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ConsoleComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/settings/console/console.component.ts b/src/app/components/settings/console/console.component.ts new file mode 100644 index 00000000..4fb1e09b --- /dev/null +++ b/src/app/components/settings/console/console.component.ts @@ -0,0 +1,21 @@ +import { Component, OnInit } from '@angular/core'; +import { FormGroup, FormControl, Validators } from '@angular/forms'; + +@Component({ + selector: 'app-console', + templateUrl: './console.component.html', + styleUrls: ['./console.component.scss'] +}) +export class ConsoleComponent implements OnInit { + + consoleForm = new FormGroup({ + 'runner': new FormControl('', [ Validators.required ]), + 'command': new FormControl(''), + }); + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/components/settings/settings.component.html b/src/app/components/settings/settings.component.html index ef4d5caf..d0e61074 100644 --- a/src/app/components/settings/settings.component.html +++ b/src/app/components/settings/settings.component.html @@ -27,6 +27,21 @@ > + + + + Console settings + Customize console settings + + +
+ + + mode_edit + +
+ +
diff --git a/src/app/components/settings/settings.component.scss b/src/app/components/settings/settings.component.scss index e69de29b..869dd968 100644 --- a/src/app/components/settings/settings.component.scss +++ b/src/app/components/settings/settings.component.scss @@ -0,0 +1,4 @@ + +.example-full-width { + width: 100%; +} \ No newline at end of file