summaryrefslogtreecommitdiffstats
path: root/webapp/src/app/build/build.component.html
blob: 3d866f309e327e9388e62c6f96c1dd26ec963e1d (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
<form [formGroup]="buildForm">
    <div class="col-xs-12">
        <table class="table table-borderless">
            <tbody>
                <tr>
                    <th style="border: none;">Project</th>
                    <td>
                        <div class="btn-group" dropdown *ngIf="curProject">
                            <button dropdownToggle type="button" class="btn btn-primary dropdown-toggle" style="width: 20em;">
                            {{curProject.label}} <span class="caret" style="float: right; margin-top: 8px;"></span>
                        </button>
                            <ul *dropdownMenu class="dropdown-menu" role="menu">
                                <li role="menuitem"><a class="dropdown-item" *ngFor="let prj of (config$ | async)?.projects" (click)="curProject=prj">
                                {{prj.label}}</a>
                                </li>
                            </ul>
                        </div>
                    </td>
                </tr>
                <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>Sub-directory</th>
                    <td> <input type="text" style="width:99%;" formControlName="subpath"> </td>
                </tr>
                <tr>
                    <th>Make arguments</th>
                    <td> <input type="text" style="width:99%;" formControlName="makeArgs"> </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)="make() " [disabled]="!confValid ">Build</button>
                <button class="btn btn-primary btn-large" (click)="make('clean') " [disabled]="!confValid ">Clean</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>