From: Sebastien Douheret Date: Fri, 19 May 2017 09:19:40 +0000 (+0200) Subject: Allow to set make arguments and rework build page. X-Git-Tag: v0.0.1-alpha~19 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-server.git;a=commitdiff_plain;h=c53aef75b26a586bffa8ade44f8fb157d36566b7 Allow to set make arguments and rework build page. --- diff --git a/webapp/src/app/build/build.component.css b/webapp/src/app/build/build.component.css index 5bfc898..11784db 100644 --- a/webapp/src/app/build/build.component.css +++ b/webapp/src/app/build/build.component.css @@ -6,5 +6,28 @@ .blocks .btn-primary { margin-left: 5px; margin-right: 5px; + margin-top: 5px; border-radius: 4px !important; +} + +.table-borderless>tbody>tr>td, +.table-borderless>tbody>tr>th, +.table-borderless>tfoot>tr>td, +.table-borderless>tfoot>tr>th, +.table-borderless>thead>tr>td, +.table-borderless>thead>tr>th { + border: none; +} + +.btn-large { + width: 10em; +} + +.fa-size-x2 { + font-size: 18px; +} + +.textarea-scroll { + width: 100%; + overflow-y: scroll; } \ No newline at end of file diff --git a/webapp/src/app/build/build.component.html b/webapp/src/app/build/build.component.html index 2ab7821..3d866f3 100644 --- a/webapp/src/app/build/build.component.html +++ b/webapp/src/app/build/build.component.html @@ -1,60 +1,71 @@
-
-
- -
- - -
-
-
-
- - -
-
+
+ + + + + + + + + + + + + + + + + + + +
Project +
+ + +
+
Cross SDK + + +
Sub-directory
Make arguments
-  
-
- - - -
-
-   -
-
- - +
+
+ + +
-
- +
+
+
+ +
+
+ {{ cmdInfo }} +
+
-
- -
-
- +
+
-
-
- {{ cmdInfo }} +
+
-
\ No newline at end of file +
diff --git a/webapp/src/app/build/build.component.ts b/webapp/src/app/build/build.component.ts index a99a1fe..17e545f 100644 --- a/webapp/src/app/build/build.component.ts +++ b/webapp/src/app/build/build.component.ts @@ -42,7 +42,10 @@ export class BuildComponent implements OnInit, AfterViewChecked { this.cmdOutput = ""; this.confValid = false; this.cmdInfo = ""; // TODO: to be remove (only for debug) - this.buildForm = fb.group({ subpath: this.subpathCtrl }); + this.buildForm = fb.group({ + subpath: this.subpathCtrl, + makeArgs: ["", Validators.nullValidator], + }); } ngOnInit() { @@ -94,12 +97,14 @@ export class BuildComponent implements OnInit, AfterViewChecked { this.cmdOutput += this._outputHeader(); + let sdkid = this.sdkSvr.getCurrentId(); + + let cmdArgs = args ? args : this.buildForm.value.makeArgs; + let t0 = performance.now(); this.cmdInfo = 'Start build of ' + prjID + ' at ' + t0; - let sdkid = this.sdkSvr.getCurrentId(); - - this.xdsSvr.make(prjID, this.buildForm.value.subpath, args, sdkid) + this.xdsSvr.make(prjID, this.buildForm.value.subpath, cmdArgs, sdkid) .subscribe(res => { this.startTime.set(String(res.cmdID), t0); },