mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-07 10:36:41 +00:00
Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
10fbc40d68 | ||
|
94880b7b1f | ||
|
fecebdd0a7 | ||
|
1a49bec3d4 | ||
|
64f9631946 | ||
|
84169a2c1e | ||
|
2a9ced5cbd | ||
|
ee5b88e19a | ||
|
ad0c96a40e | ||
|
aa59462526 | ||
|
ffb0e66b34 | ||
|
985d3a9ab3 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gns3-web-ui",
|
"name": "gns3-web-ui",
|
||||||
"version": "2.2.53.dev1",
|
"version": "2.2.53",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "GNS3 Technology Inc.",
|
"name": "GNS3 Technology Inc.",
|
||||||
"email": "developers@gns3.com"
|
"email": "developers@gns3.com"
|
||||||
|
@ -170,7 +170,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
Install required files
|
Install the required files
|
||||||
<button
|
<button
|
||||||
mat-icon-button
|
mat-icon-button
|
||||||
matTooltip="Refresh list of images"
|
matTooltip="Refresh list of images"
|
||||||
@ -441,7 +441,7 @@
|
|||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
Install required files
|
Install the required images
|
||||||
<button
|
<button
|
||||||
mat-icon-button
|
mat-icon-button
|
||||||
matTooltip="Refresh list of images"
|
matTooltip="Refresh list of images"
|
||||||
@ -453,10 +453,16 @@
|
|||||||
<mat-list>
|
<mat-list>
|
||||||
<mat-list-item *ngFor="let image of applianceToInstall.images">
|
<mat-list-item *ngFor="let image of applianceToInstall.images">
|
||||||
<div class="list-item">
|
<div class="list-item">
|
||||||
<div>
|
<span>
|
||||||
{{ image.filename }}
|
{{ image.filename }}
|
||||||
</div>
|
</span>
|
||||||
<div>
|
<div>
|
||||||
|
<span *ngIf="checkImageFromVersion(image.filename)">
|
||||||
|
<mat-icon matTooltip="Ready to install" matTooltipClass="custom-tooltip">check</mat-icon>
|
||||||
|
</span>
|
||||||
|
<span *ngIf="!checkImageFromVersion(image.filename)">
|
||||||
|
<mat-icon matTooltip="Missing" matTooltipClass="custom-tooltip">close</mat-icon>
|
||||||
|
</span>
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
class="non-visible"
|
class="non-visible"
|
||||||
@ -499,7 +505,7 @@
|
|||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
Install required files
|
Install the required images
|
||||||
<button
|
<button
|
||||||
mat-icon-button
|
mat-icon-button
|
||||||
matTooltip="Refresh list of images"
|
matTooltip="Refresh list of images"
|
||||||
@ -511,9 +517,15 @@
|
|||||||
<mat-list>
|
<mat-list>
|
||||||
<mat-list-item *ngFor="let image of applianceToInstall.images">
|
<mat-list-item *ngFor="let image of applianceToInstall.images">
|
||||||
<div class="list-item">
|
<div class="list-item">
|
||||||
<div>
|
<span>
|
||||||
{{ image.filename }}
|
{{ image.filename }}
|
||||||
</div>
|
</span>
|
||||||
|
<span *ngIf="checkImageFromVersion(image.filename)">
|
||||||
|
<mat-icon matTooltip="Ready to install" matTooltipClass="custom-tooltip">check</mat-icon>
|
||||||
|
</span>
|
||||||
|
<span *ngIf="!checkImageFromVersion(image.filename)">
|
||||||
|
<mat-icon matTooltip="Missing" matTooltipClass="custom-tooltip">close</mat-icon>
|
||||||
|
</span>
|
||||||
<div>
|
<div>
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
|
@ -143,7 +143,7 @@ export class NewTemplateDialogComponent implements OnInit {
|
|||||||
this.qemuBinaries = binaries;
|
this.qemuBinaries = binaries;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.uploader = new FileUploader({});
|
this.uploader = new FileUploader({url: ''});
|
||||||
this.uploader.onAfterAddingFile = (file) => {
|
this.uploader.onAfterAddingFile = (file) => {
|
||||||
file.withCredentials = false;
|
file.withCredentials = false;
|
||||||
};
|
};
|
||||||
@ -162,7 +162,7 @@ export class NewTemplateDialogComponent implements OnInit {
|
|||||||
this.getAppliance(item.url);
|
this.getAppliance(item.url);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.uploaderImage = new FileUploader({});
|
this.uploaderImage = new FileUploader({url: ''});
|
||||||
this.uploaderImage.onAfterAddingFile = (file) => {
|
this.uploaderImage.onAfterAddingFile = (file) => {
|
||||||
file.withCredentials = false;
|
file.withCredentials = false;
|
||||||
};
|
};
|
||||||
|
@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
|
|||||||
@Injectable()
|
@Injectable()
|
||||||
export class ProjectNameValidator {
|
export class ProjectNameValidator {
|
||||||
get(projectName) {
|
get(projectName) {
|
||||||
var pattern = new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/);
|
var pattern = new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\"<>\?]/);
|
||||||
|
|
||||||
if (!pattern.test(projectName.value)) {
|
if (!pattern.test(projectName.value)) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -31,6 +31,11 @@ export class MapSettingsService {
|
|||||||
} else {
|
} else {
|
||||||
localStorage.setItem('symbolScaling', 'true');
|
localStorage.setItem('symbolScaling', 'true');
|
||||||
}
|
}
|
||||||
|
if (localStorage.getItem('showInterfaceLabels')) {
|
||||||
|
this.showInterfaceLabels = localStorage.getItem('showInterfaceLabels') === 'true' ? true : false;
|
||||||
|
} else {
|
||||||
|
localStorage.setItem('showInterfaceLabels', 'true');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public getSymbolScaling(): boolean {
|
public getSymbolScaling(): boolean {
|
||||||
@ -72,6 +77,12 @@ export class MapSettingsService {
|
|||||||
|
|
||||||
toggleShowInterfaceLabels(value: boolean) {
|
toggleShowInterfaceLabels(value: boolean) {
|
||||||
this.showInterfaceLabels = value;
|
this.showInterfaceLabels = value;
|
||||||
|
localStorage.removeItem('showInterfaceLabels');
|
||||||
|
if (value) {
|
||||||
|
localStorage.setItem('showInterfaceLabels', 'true');
|
||||||
|
} else {
|
||||||
|
localStorage.setItem('showInterfaceLabels', 'false');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleIntegrateInterfaceLabels(value: boolean) {
|
toggleIntegrateInterfaceLabels(value: boolean) {
|
||||||
|
12
yarn.lock
12
yarn.lock
@ -7512,9 +7512,9 @@ nan@^2.12.1:
|
|||||||
integrity sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==
|
integrity sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==
|
||||||
|
|
||||||
nanoid@^3.1.23, nanoid@^3.1.30:
|
nanoid@^3.1.23, nanoid@^3.1.30:
|
||||||
version "3.2.0"
|
version "3.3.8"
|
||||||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.2.0.tgz#62667522da6673971cca916a6d3eff3f415ff80c"
|
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.8.tgz#b1be3030bee36aaff18bacb375e5cce521684baf"
|
||||||
integrity sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA==
|
integrity sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==
|
||||||
|
|
||||||
nanomatch@^1.2.9:
|
nanomatch@^1.2.9:
|
||||||
version "1.2.13"
|
version "1.2.13"
|
||||||
@ -9679,9 +9679,9 @@ serialize-error@^7.0.1:
|
|||||||
type-fest "^0.13.1"
|
type-fest "^0.13.1"
|
||||||
|
|
||||||
serialize-javascript@^6.0.0:
|
serialize-javascript@^6.0.0:
|
||||||
version "6.0.0"
|
version "6.0.2"
|
||||||
resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz"
|
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.2.tgz#defa1e055c83bf6d59ea805d8da862254eb6a6c2"
|
||||||
integrity sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==
|
integrity sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==
|
||||||
dependencies:
|
dependencies:
|
||||||
randombytes "^2.1.0"
|
randombytes "^2.1.0"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user