diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 19d3923..f250712 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -9,7 +9,7 @@ import { AceEditorModule } from 'ng2-ace-editor';
import { AppComponent } from './app.component';
import { DashboardComponent } from './dashboard/dashboard.component';
import { HeaderComponent } from './header/header.component';
-import { LoginComponent } from './login/login.component';
+import { LoginComponent } from './web/web.component';
import { MarkdownService } from './services/markdown.service';
import { TerminadoService } from './services/terminado.service';
import { WebideComponent } from './webide/webide.component';
@@ -20,6 +20,7 @@ import { FSMUpdateService } from './services/fsmupdate.service';
import { ProcessManagerService } from './services/processmanager.service';
import { AppRoutingModule } from './app-routing.module';
import { TestmessengerComponent } from './testmessenger/testmessenger.component';
+import { DeploymentNotificationService } from './services/deployment-notification.service';
@NgModule({
@@ -46,7 +47,8 @@ import { TestmessengerComponent } from './testmessenger/testmessenger.component'
WebSocketService,
TerminadoService,
FSMUpdateService,
- ProcessManagerService
+ ProcessManagerService,
+ DeploymentNotificationService
],
bootstrap: [
AppComponent
diff --git a/src/app/dashboard/dashboard.component.html b/src/app/dashboard/dashboard.component.html
index 8522578..b8c292c 100755
--- a/src/app/dashboard/dashboard.component.html
+++ b/src/app/dashboard/dashboard.component.html
@@ -1,7 +1,17 @@
-
-
Instructions
+
+
diff --git a/src/app/messages/messages.component.scss b/src/app/messages/messages.component.scss
index 90c889f..2a3aedd 100755
--- a/src/app/messages/messages.component.scss
+++ b/src/app/messages/messages.component.scss
@@ -1,28 +1,21 @@
-$space: 24px;
-
-$small: 0.75 * $space;
-$tiny: 0.5 * $space;
-$hair: 0.25 * $space;
-
-
-$tao-blue-500: #277EEC;
-$tao-gray-100: #F2F2F2;
-
-$tao-panel-border-radius-sm: 8px;
-
-$font-size-tiny: 12px;
-$font-size-base: 14px;
-
+@import "../../assets/scss/variables.scss";
.tfw-messages-main {
- max-height: 50vmin;
- overflow-y: scroll;
- h5 {
+
+ .tfw-grid-messages-header {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
margin-bottom: $small;
- color: $tao-blue-500;
- font-weight: 500;
+
+
+ span {
+ color: $tao-blue-500;
+ font-weight: 500;
+ font-size: $font-size-h3;
+ }
}
+
}
.tfw-grid-message {
diff --git a/src/app/services/deployment-notification.service.ts b/src/app/services/deployment-notification.service.ts
new file mode 100644
index 0000000..3403634
--- /dev/null
+++ b/src/app/services/deployment-notification.service.ts
@@ -0,0 +1,11 @@
+import { Injectable } from '@angular/core';
+import { Subject } from 'rxjs/Subject';
+
+@Injectable()
+export class DeploymentNotificationService {
+
+ deploying: Subject
= new Subject();
+
+ constructor() { }
+
+}
diff --git a/src/app/services/terminado.service.ts b/src/app/services/terminado.service.ts
index c197ef0..ed65e34 100644
--- a/src/app/services/terminado.service.ts
+++ b/src/app/services/terminado.service.ts
@@ -11,7 +11,32 @@ export class TerminadoService {
constructor() {
Terminal.applyAddon(fit);
Terminal.applyAddon(terminado);
- this.xterm = new Terminal();
+ this.xterm = new Terminal({
+ theme: {
+ foreground: '#ffffff',
+ background: '#0C0C0C', // $tao-gray-800
+ cursor: '#ffffff',
+ selection: 'rgba(255, 255, 255, 0.3)',
+ black: '#000000',
+ red: '#FF5252', // $tao-red-500
+ brightRed: '#FF7171', // $tao-red-400
+ green: '#2fd19f', // $tao-bright-green-500
+ brightGreen: '#2fd19f', // $tao-bright-green-500
+ brightYellow: '#FFD283', // $tao-warm-yellow-300
+ yellow: '#FFB83B', // $tao-warm-yellow-500
+ magenta: '#FF8FC6', // $tao-pink-200
+ brightMagenta: '#FF8FC6', // $tao-pink-200
+ cyan: '#277EEC', // $tao-blue-500
+ blue: '#277EEC', // $tao-blue-500
+ brightCyan: '#42B7DF', // $tao-sky-400
+ brightBlue: '#19A7D8', // $tao-sky-500
+ white: '#FAFAFA', // $tao-gray-50
+ brightBlack: '#808080',
+ brightWhite: '#ffffff'
+ },
+ fontSize: 14
+ });
+
const wsproto = (location.protocol === 'https:') ? 'wss://' : 'ws://';
this.ws = new WebSocket(wsproto + window.location.host + '/terminal');
}
diff --git a/src/app/terminal/terminal.component.html b/src/app/terminal/terminal.component.html
index 8788452..26e795b 100644
--- a/src/app/terminal/terminal.component.html
+++ b/src/app/terminal/terminal.component.html
@@ -1 +1 @@
-
+
diff --git a/src/app/terminal/terminal.component.scss b/src/app/terminal/terminal.component.scss
index e69de29..43d03af 100644
--- a/src/app/terminal/terminal.component.scss
+++ b/src/app/terminal/terminal.component.scss
@@ -0,0 +1,14 @@
+@import "../../assets/scss/mixins/layout.scss";
+@import "../../app/dashboard/dashboard.component.scss";
+
+
+
+
+.tfw-xterm {
+ max-height: 100%;
+ height: 100%;
+ min-height: 100%;
+}
+
+
+
diff --git a/src/app/login/login.component.html b/src/app/web/web.component.html
similarity index 87%
rename from src/app/login/login.component.html
rename to src/app/web/web.component.html
index 3bf09e8..c85a8c4 100644
--- a/src/app/login/login.component.html
+++ b/src/app/web/web.component.html
@@ -1,3 +1,4 @@
+
+
-
diff --git a/src/app/login/login.component.scss b/src/app/web/web.component.scss
similarity index 100%
rename from src/app/login/login.component.scss
rename to src/app/web/web.component.scss
diff --git a/src/app/login/login.component.ts b/src/app/web/web.component.ts
similarity index 55%
rename from src/app/login/login.component.ts
rename to src/app/web/web.component.ts
index cb75932..dd136b0 100644
--- a/src/app/login/login.component.ts
+++ b/src/app/web/web.component.ts
@@ -1,21 +1,25 @@
import { HttpClient } from '@angular/common/http';
-import { Component, OnInit } from '@angular/core';
+import { Component, OnDestroy, OnInit } from '@angular/core';
import { Observable } from 'rxjs/Observable';
-import { Login } from './login';
+import { Login } from './web';
+import { DeploymentNotificationService } from '../services/deployment-notification.service';
+import { Subscription } from 'rxjs/Subscription';
@Component({
- selector: 'app-login',
- templateUrl: './login.component.html',
- styleUrls: ['./login.component.scss']
+ selector: 'app-web',
+ templateUrl: './web.component.html',
+ styleUrls: ['./web.component.scss']
})
-export class LoginComponent implements OnInit {
+export class LoginComponent {
model = new Login('', '');
submitted = false;
is_admin: boolean;
logged_in_email: string;
+
constructor(
private http: HttpClient
) {}
+
onSubmit() {
this.postLogin(this.model).subscribe(
res => {
@@ -27,8 +31,6 @@ export class LoginComponent implements OnInit {
}
postLogin(login: Login): Observable {
- return this.http.post('/login', login);
+ return this.http.post('/web', login);
}
-
- ngOnInit() {}
}
diff --git a/src/app/login/login.ts b/src/app/web/web.ts
similarity index 100%
rename from src/app/login/login.ts
rename to src/app/web/web.ts
diff --git a/src/app/webide/webide.component.html b/src/app/webide/webide.component.html
index 6bbb1b3..69547d9 100644
--- a/src/app/webide/webide.component.html
+++ b/src/app/webide/webide.component.html
@@ -1,4 +1,4 @@
-