Merge branch 'master' into unit-tests

This commit is contained in:
Piotr Pekala
2019-03-07 07:15:22 -08:00
7 changed files with 16 additions and 4 deletions

View File

@ -4,6 +4,7 @@ productName: "GNS3 Web UI"
artifactName: "${productName}-${os}-${arch}-${version}.${ext}" artifactName: "${productName}-${os}-${arch}-${version}.${ext}"
asar: true asar: true
compression: normal compression: normal
generateUpdatesFilesForAllChannels: true
directories: directories:
output: build output: build

View File

@ -1,6 +1,6 @@
{ {
"name": "gns3-web-ui", "name": "gns3-web-ui",
"version": "0.0.1-beta.0", "version": "2019.1.0-alpha.1dev",
"author": { "author": {
"name": "GNS3 Technology Inc.", "name": "GNS3 Technology Inc.",
"email": "developers@gns3.com" "email": "developers@gns3.com"

View File

@ -57,6 +57,12 @@ export class MovingTool {
}); });
}; };
// disable zooming on wheel
this.zoom.filter(() => {
const e: D3ZoomEvent<SVGSVGElement, any> = event;
return e.type === 'mousedown';
});
this.zoom.on('zoom', onZoom); this.zoom.on('zoom', onZoom);
selection.call(this.zoom); selection.call(this.zoom);
} }

View File

@ -87,7 +87,7 @@
</mat-toolbar> </mat-toolbar>
</div> </div>
<div id="show-menu-wrapper" [ngClass]="{ shadowed: !drawTools.visibility }"> <div id="show-menu-wrapper" [ngClass]="{ shadowed: !drawTools.visibility }" *ngIf="!readonly">
<button class="arrow-button" mat-icon-button (click)="showMenu()"><mat-icon>keyboard_arrow_right</mat-icon></button> <button class="arrow-button" mat-icon-button (click)="showMenu()"><mat-icon>keyboard_arrow_right</mat-icon></button>
</div> </div>

View File

@ -21,11 +21,11 @@
> >
</div> </div>
<div> <!-- <div>
<mat-checkbox [(ngModel)]="settings.angular_map" <mat-checkbox [(ngModel)]="settings.angular_map"
>Enable experimental Angular Map (WARNING: IT CAN BREAK YOU LABS!)</mat-checkbox >Enable experimental Angular Map (WARNING: IT CAN BREAK YOU LABS!)</mat-checkbox
> >
</div> </div> -->
</mat-expansion-panel> </mat-expansion-panel>
</mat-accordion> </mat-accordion>
</div> </div>

View File

@ -67,6 +67,10 @@ header {
width: 100%; width: 100%;
} }
.container {
padding: 0%;
}
.mat-dialog-content > * { .mat-dialog-content > * {
width: 100%; width: 100%;
} }

View File

@ -70,6 +70,7 @@ export class ServerService {
server.name = 'local'; server.name = 'local';
server.host = host; server.host = host;
server.port = port; server.port = port;
server.location = 'local';
server.is_local = true; server.is_local = true;
this.create(server).then(created => { this.create(server).then(created => {
resolve(created); resolve(created);