Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame^] | 1 | <nav #confignav id="confignav"> |
| 2 | <a *ngFor="let session of sessionsService.sessions" [class.active]="session.key==activeSession.key" |
| 3 | (click)="changeActiveSession(session.key)">{{session.device.hostname}}:{{session.device.port}} |
| 4 | <!--<span *ngIf="session.key==activeSession.key" class="tab-reload tab-action-first" (click)="reloadData(session.key)">o</span>--> |
| 5 | <img *ngIf="session.key==activeSession.key" class="tab-icon tab-reload tab-action-first" src="assets/netopeer/icons/reload.svg" alt="o" title="reload" |
| 6 | onmouseover="this.src='assets/netopeer/icons/reload_active.svg'" |
| 7 | onmouseout="this.src='assets/netopeer/icons/reload.svg'" (click)="reloadData()"/> |
| 8 | <img class="tab-icon tab-close tab-action-last" src="assets/netopeer/icons/close.svg" alt="x" title="disconnect" |
| 9 | onmouseover="this.src='assets/netopeer/icons/close_active.svg'" |
| 10 | onmouseout="this.src='assets/netopeer/icons/close.svg'" (click)="disconnect(session.key)"/> |
| 11 | </a><a (click)="addSession()" onmouseout="getElementById('tabadd').style.filter='invert(100%)'" onmouseover="getElementById('tabadd').style.filter='invert(0%)'"> |
| 12 | <img id="tabadd" class="tab-icon tab-add tab-action-last" src="assets/netopeer/icons/add.svg" alt="+" title="add connection" |
| 13 | onmouseover="this.src='assets/netopeer/icons/add_active.svg'" |
| 14 | onmouseout="this.src='assets/netopeer/icons/add.svg'"/> |
| 15 | </a> |
Radek Krejci | 95bd14c | 2017-09-21 14:24:13 +0200 | [diff] [blame] | 16 | </nav> |
Radek Krejci | 95bd14c | 2017-09-21 14:24:13 +0200 | [diff] [blame] | 17 | |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame^] | 18 | <div class="netopeer-content" [style.padding-top]="'calc(' + confignav.offsetHeight + 'px - -0.7em)'"> |
Radek Krejci | 95bd14c | 2017-09-21 14:24:13 +0200 | [diff] [blame] | 19 | <div *ngIf="sessionsService.activeSession"> |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame^] | 20 | <p class="msg-failure msg-rounded" *ngIf="err_msg"><img class="msg-close" (click)="err_msg=''" src="assets/netopeer/icons/close_active.svg" alt="x" title="close"/>{{err_msg}}</p> |
Radek Krejci | ae75839 | 2017-10-20 10:53:26 +0200 | [diff] [blame] | 21 | <table class="items"> |
| 22 | <tr class="item_header"> |
| 23 | <th class="item_left item_actions" [ngSwitch]="activeSession.cpbltsVisibility"> |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame^] | 24 | <img *ngSwitchCase="false" class="item_action_expand" (click)="getCapabilities(activeSession.key);activeSession.cpbltsVisibility=true" |
| 25 | src="assets/netopeer/icons/show.svg" alt="v" title="show" |
| 26 | onmouseover="this.src='assets/netopeer/icons/show_active.svg'" |
| 27 | onmouseout="this.src='assets/netopeer/icons/show.svg'"/> |
| 28 | <img *ngSwitchCase="true" class="item_action_collapse" (click)="activeSession.cpbltsVisibility=false" |
| 29 | src="assets/netopeer/icons/close.svg" alt="x" title="close" |
| 30 | onmouseover="this.src='assets/netopeer/icons/close_active.svg'" |
| 31 | onmouseout="this.src='assets/netopeer/icons/close.svg'"/> |
Radek Krejci | ae75839 | 2017-10-20 10:53:26 +0200 | [diff] [blame] | 32 | </th> |
| 33 | <th>Capability / Module</th> |
| 34 | <th class="item_right">Version</th> |
| 35 | </tr> |
| 36 | <ng-container *ngIf="activeSession.cpbltsVisibility==true && activeSession.cpblts"> |
| 37 | <tr class="item" *ngFor="let cap of activeSession.cpblts"> |
| 38 | <td class="item_left"> </td> |
| 39 | <td>{{parseCapabilityName(cap)}}</td> |
| 40 | <td class="item_right">{{parseCapabilityRevision(cap)}}</td> |
| 41 | </tr> |
| 42 | </ng-container> |
| 43 | </table> |
| 44 | |
| 45 | <table class="items"> |
| 46 | <tr class="item_header"> |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame^] | 47 | <th class="item_left item_actions" style="cursor: default;"> </th> |
| 48 | <th class="item_right" >Data</th> |
Radek Krejci | ae75839 | 2017-10-20 10:53:26 +0200 | [diff] [blame] | 49 | </tr> |
| 50 | </table> |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame^] | 51 | <div> |
| 52 | <img *ngIf="activeSession.dataVisibility!='root'" class="icon_action" (click)="rpcGet(false);activeSession.dataVisibility='root'" |
| 53 | src="assets/netopeer/icons/show_children.svg" alt="v" title="expand roots" |
| 54 | onmouseover="this.src='assets/netopeer/icons/show_children_active.svg'" |
| 55 | onmouseout="this.src='assets/netopeer/icons/show_children.svg'"/> |
| 56 | <img *ngIf="activeSession.dataVisibility!='all'" class="icon_action" (click)="rpcGet(true);activeSession.dataVisibility='all'" |
| 57 | src="assets/netopeer/icons/show_all.svg" alt="w" title="expand all" |
| 58 | onmouseover="this.src='assets/netopeer/icons/show_all_active.svg'" |
| 59 | onmouseout="this.src='assets/netopeer/icons/show_all.svg'"/> |
| 60 | <img *ngIf="activeSession.dataVisibility!='none'" class="icon_action" (click)="activeSession.dataVisibility='none'" |
| 61 | src="assets/netopeer/icons/close.svg" alt="x" title="close" |
| 62 | onmouseover="this.src='assets/netopeer/icons/close_active.svg'" |
| 63 | onmouseout="this.src='assets/netopeer/icons/close.svg'"/> |
| 64 | <span><input type="checkbox" name="statusVisibility" [checked]="activeSession.statusVisibility" (change)="activeSession.statusVisibility = !activeSession.statusVisibility"/> include status data</span> |
| 65 | </div><br/> |
| 66 | <ng-container *ngIf="activeSession.dataVisibility!='none' && activeSession.data"> |
Radek Krejci | ae75839 | 2017-10-20 10:53:26 +0200 | [diff] [blame] | 67 | <div id="config-data"> |
Radek Krejci | a133960 | 2017-11-02 13:52:38 +0100 | [diff] [blame^] | 68 | <tree-view [treeData]="activeSession.data"></tree-view> |
| 69 | <!--<pre>{{activeSession.data | json}}</pre>--> |
Radek Krejci | ae75839 | 2017-10-20 10:53:26 +0200 | [diff] [blame] | 70 | </div> |
| 71 | </ng-container> |
Radek Krejci | 95bd14c | 2017-09-21 14:24:13 +0200 | [diff] [blame] | 72 | </div> |
| 73 | |
| 74 | </div> |