From ab757d86b0c1e3957ceb37c11c71422ff58308fb Mon Sep 17 00:00:00 2001 From: RINO767 Date: Tue, 16 Oct 2018 13:12:36 +0200 Subject: [PATCH 01/29] started work on yaml editor --- package.json | 3 +- src/app/app-routing.module.ts | 3 + src/app/app.module.ts | 2 + src/app/components/app/app.component.html | 7 +- .../cloud-view/cloud-view.component.html | 191 +++++++++--------- .../yaml-editor/yaml-editor.component.html | 35 ++++ .../yaml-editor/yaml-editor.component.scss | 17 ++ .../yaml-editor/yaml-editor.component.spec.ts | 25 +++ .../yaml-editor/yaml-editor.component.ts | 45 +++++ src/styles.scss | 6 + 10 files changed, 238 insertions(+), 96 deletions(-) create mode 100644 src/app/components/editor/yaml-editor/yaml-editor.component.html create mode 100644 src/app/components/editor/yaml-editor/yaml-editor.component.scss create mode 100644 src/app/components/editor/yaml-editor/yaml-editor.component.spec.ts create mode 100644 src/app/components/editor/yaml-editor/yaml-editor.component.ts diff --git a/package.json b/package.json index ed086b2..42359b2 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@angular/platform-browser-dynamic": "^6.1.9", "@angular/router": "^6.1.9", "@ngrx/store": "^6.0.1", + "brace": "^0.11.1", "bulma-checkradio": "^2.1.0", "bulma-divider": "^2.0.1", "cloudiator-rest-api": "0.0.2-SNAPSHOT.201810100853", @@ -41,7 +42,7 @@ "@types/jasmine": "^2.8.9", "@types/jasminewd2": "^2.0.5", "@types/node": "~8.9.4", - "bulma": "^0.7.1", + "bulma": "^0.7.2", "codelyzer": "~4.2.1", "hoek": "^5.0.3", "jasmine-core": "~2.99.1", diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 2ae1e70..d2b7bec 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -6,6 +6,7 @@ import {CloudViewComponent} from './components/clouds/cloud-view/cloud-view.comp import {HardwareOverviewComponent} from './components/hardware/hardware-overview/hardware-overview.component'; import {ImagesOverviewComponent} from './components/images/images-overview/images-overview.component'; import {LocationsOverviewComponent} from './components/locations/locations-overview/locations-overview.component'; +import {YamlEditorComponent} from './components/editor/yaml-editor/yaml-editor.component'; const routes: Routes = [ @@ -19,6 +20,8 @@ const routes: Routes = [ {path: 'locations', component: LocationsOverviewComponent}, + {path: 'editor', component: YamlEditorComponent}, + {path: 'clouds', component: CloudOverviewComponent}, {path: '', component: CloudOverviewComponent}, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index b9944cb..1a169cb 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -24,6 +24,7 @@ import {HardwareOverviewComponent} from './components/hardware/hardware-overview import {CdkTableModule} from '@angular/cdk/table'; import {ImagesOverviewComponent} from './components/images/images-overview/images-overview.component'; import { LocationsOverviewComponent } from './components/locations/locations-overview/locations-overview.component'; +import { YamlEditorComponent } from './components/editor/yaml-editor/yaml-editor.component'; export function apiConfigFactory(): Configuration { const params: ConfigurationParameters = { @@ -46,6 +47,7 @@ export function apiConfigFactory(): Configuration { HardwareOverviewComponent, ImagesOverviewComponent, LocationsOverviewComponent, + YamlEditorComponent, ], imports: [ BrowserModule, diff --git a/src/app/components/app/app.component.html b/src/app/components/app/app.component.html index e800360..fc2e485 100644 --- a/src/app/components/app/app.component.html +++ b/src/app/components/app/app.component.html @@ -32,6 +32,9 @@ Locations + + Editor +