summaryrefslogtreecommitdiffstats
path: root/webapp/src/app/devel/build/build.component.html
blob: f4be204752449f9001156d731e34b8885377d926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<div class="panel panel-default">
    <div class="panel-heading">
        <h2 class="panel-title">Build</h2>
    </div>
    <div class="panel-body">
        <form [formGroup]="buildForm">
            <div class="col-xs-12">
                <table class="table table-borderless table-center">
                    <tbody>
                        <tr>
                            <th>Cross SDK</th>
                            <td>
                                <!-- FIXME why not working ?
                        <sdk-select-dropdown [sdks]="(sdks$ | async)"></sdk-select-dropdown>
                        -->
                                <sdk-select-dropdown></sdk-select-dropdown>
                            </td>
                        </tr>
                        <tr>
                            <th>Project root path</th>
                            <td> <input type="text" disabled style="width:99%;" [value]="curProject && curProject.path"></td>
                        </tr>
                        <tr>
                            <th>Sub-path</th>
                            <td> <input type="text" style="width:99%;" formControlName="subpath"> </td>
                        </tr>
                        <tr>
                            <th>Command arguments</th>
                            <td> <input type="text" style="width:99%;" formControlName="cmdArgs"> </td>
                        </tr>
                        <tr>
                            <th>Env variables</th>
                            <td> <input type="text" style="width:99%;" formControlName="envVars"> </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="row">
                <div class="col-xs-12 text-center">
                    <div class="btn-group blocks">
                        <button class="btn btn-primary btn-large" (click)="preBuild()" [disabled]="!curProject">Pre-Build</button>
                        <button class="btn btn-primary btn-large" (click)="build()" [disabled]="!curProject">Build</button>
                        <button class="btn btn-primary btn-large" (click)="populate()" [disabled]="!curProject ">Populate</button>
                        <button *ngIf="debugEnable" class="btn btn-primary btn-large" (click)="execCmd()" [disabled]="!curProject ">Execute command</button>
                        <button *ngIf="debugEnable" class="btn btn-primary btn-large" (click)="make()" [disabled]="!curProject ">Make</button>
                    </div>
                </div>
            </div>
        </form>

        <div style="margin-left: 2em; margin-right: 2em; ">
            <div class="row ">
                <div class="col-xs-10">
                    <div class="row ">
                        <div class="col-xs-4">
                            <label>Command Output</label>
                        </div>
                        <div class="col-xs-8" style="font-size:x-small; margin-top:5px;">
                            {{ cmdInfo }}
                        </div>
                    </div>
                </div>
                <div class="col-xs-2">
                    <button class="btn btn-link pull-right " (click)="reset() "><span class="fa fa-eraser fa-size-x2"></span></button>
                </div>
            </div>
            <div class="row ">
                <div class="col-xs-12 text-center ">
                    <textarea rows="20" class="textarea-scroll" #scrollOutput>{{ cmdOutput }}</textarea>
                </div>
            </div>
        </div>
    </div>
</div>