mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-17 14:28:13 +00:00
Merge branch 'master' into github_issues
This commit is contained in:
@ -67,6 +67,8 @@
|
|||||||
"core-js": "^3.8.2",
|
"core-js": "^3.8.2",
|
||||||
"d3-ng2-service": "^2.1.0",
|
"d3-ng2-service": "^2.1.0",
|
||||||
"eev": "^0.1.5",
|
"eev": "^0.1.5",
|
||||||
|
"file-saver": "^2.0.5",
|
||||||
|
"ini": "^1.3.8",
|
||||||
"material-design-icons": "^3.0.1",
|
"material-design-icons": "^3.0.1",
|
||||||
"ng-circle-progress": "^1.6.0",
|
"ng-circle-progress": "^1.6.0",
|
||||||
"ng2-file-upload": "^1.3.0",
|
"ng2-file-upload": "^1.3.0",
|
||||||
|
@ -103,8 +103,12 @@ export class NodeWidget implements Widget {
|
|||||||
if (n.height > 64) return 64;
|
if (n.height > 64) return 64;
|
||||||
return n.height;
|
return n.height;
|
||||||
})
|
})
|
||||||
.attr('x', (n: MapNode) => 0)
|
.attr('x', (n: MapNode) => {
|
||||||
.attr('y', (n: MapNode) => 0)
|
return 0
|
||||||
|
})
|
||||||
|
.attr('y', (n: MapNode) => {
|
||||||
|
return 0
|
||||||
|
})
|
||||||
.on('mouseover', function(this, n: MapNode) {
|
.on('mouseover', function(this, n: MapNode) {
|
||||||
select(this).attr('class', 'over');
|
select(this).attr('class', 'over');
|
||||||
})
|
})
|
||||||
@ -113,6 +117,7 @@ export class NodeWidget implements Widget {
|
|||||||
});
|
});
|
||||||
|
|
||||||
node_body_merge.attr('transform', (n: MapNode) => {
|
node_body_merge.attr('transform', (n: MapNode) => {
|
||||||
|
if (!n.width) return `translate(${n.x - 30},${n.y - 30})`
|
||||||
return `translate(${n.x},${n.y})`;
|
return `translate(${n.x},${n.y})`;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ export class BuiltInTemplatesConfigurationService {
|
|||||||
let categories = [["Default", "guest"],
|
let categories = [["Default", "guest"],
|
||||||
["Routers", "router"],
|
["Routers", "router"],
|
||||||
["Switches", "switch"],
|
["Switches", "switch"],
|
||||||
["End devices", "end_device"],
|
["End devices", "guest"],
|
||||||
["Security devices", "security_device"]];
|
["Security devices", "firewall"]];
|
||||||
|
|
||||||
return categories;
|
return categories;
|
||||||
}
|
}
|
||||||
@ -20,8 +20,8 @@ export class BuiltInTemplatesConfigurationService {
|
|||||||
let categories = [["Default", "guest"],
|
let categories = [["Default", "guest"],
|
||||||
["Routers", "router"],
|
["Routers", "router"],
|
||||||
["Switches", "switch"],
|
["Switches", "switch"],
|
||||||
["End devices", "end_device"],
|
["End devices", "guest"],
|
||||||
["Security devices", "security_device"]];
|
["Security devices", "firewall"]];
|
||||||
|
|
||||||
return categories;
|
return categories;
|
||||||
}
|
}
|
||||||
@ -30,8 +30,8 @@ export class BuiltInTemplatesConfigurationService {
|
|||||||
let categories = [["Default", "guest"],
|
let categories = [["Default", "guest"],
|
||||||
["Routers", "router"],
|
["Routers", "router"],
|
||||||
["Switches", "switch"],
|
["Switches", "switch"],
|
||||||
["End devices", "end_device"],
|
["End devices", "guest"],
|
||||||
["Security devices", "security_device"]];
|
["Security devices", "firewall"]];
|
||||||
|
|
||||||
return categories;
|
return categories;
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,10 @@ export class DockerConfigurationService {
|
|||||||
|
|
||||||
getCategories() {
|
getCategories() {
|
||||||
let categories = [["Default", "guest"],
|
let categories = [["Default", "guest"],
|
||||||
["Routers", "routers"],
|
["Routers", "router"],
|
||||||
["Switches", "switches"],
|
["Switches", "switch"],
|
||||||
["End devices", "end_devices"],
|
["End devices", "guest"],
|
||||||
["Security devices", "security_devices"]];
|
["Security devices", "firewall"]];
|
||||||
|
|
||||||
return categories;
|
return categories;
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,8 @@ export class IouConfigurationService {
|
|||||||
let categories = [["Default", "guest"],
|
let categories = [["Default", "guest"],
|
||||||
["Routers", "router"],
|
["Routers", "router"],
|
||||||
["Switches", "switch"],
|
["Switches", "switch"],
|
||||||
["End devices", "end_device"],
|
["End devices", "guest"],
|
||||||
["Security devices", "security_device"]];
|
["Security devices", "firewall"]];
|
||||||
|
|
||||||
return categories;
|
return categories;
|
||||||
}
|
}
|
||||||
|
@ -64,17 +64,17 @@ export class QemuConfigurationService {
|
|||||||
|
|
||||||
getBootPriorities() {
|
getBootPriorities() {
|
||||||
let bootPriorities = [["HDD", "c"],
|
let bootPriorities = [["HDD", "c"],
|
||||||
["CD/DVD-ROM", "d"],
|
["CD/DVD-ROM", "d"],
|
||||||
["Network", "n"],
|
["Network", "n"],
|
||||||
["HDD or Network", "cn"],
|
["HDD or Network", "cn"],
|
||||||
["HDD or CD/DVD-ROM", "cd"]];
|
["HDD or CD/DVD-ROM", "cd"]];
|
||||||
|
|
||||||
return bootPriorities;
|
return bootPriorities;
|
||||||
}
|
}
|
||||||
|
|
||||||
getOnCloseOptions() {
|
getOnCloseOptions() {
|
||||||
let onCloseOptions = [["Power off the VM", "power_off"],
|
let onCloseOptions = [["Power off the VM", "power_off"],
|
||||||
["Send the shutdown signal (ACPI)", "shutdown_signal"],
|
["Send the shutdown signal (ACPI)", "shutdown_signal"],
|
||||||
["Save the VM state", "save_vm_state"]];
|
["Save the VM state", "save_vm_state"]];
|
||||||
|
|
||||||
return onCloseOptions;
|
return onCloseOptions;
|
||||||
@ -82,10 +82,10 @@ export class QemuConfigurationService {
|
|||||||
|
|
||||||
getCategories() {
|
getCategories() {
|
||||||
let categories = [["Default", "guest"],
|
let categories = [["Default", "guest"],
|
||||||
["Routers", "routers"],
|
["Routers", "router"],
|
||||||
["Switches", "switches"],
|
["Switches", "switch"],
|
||||||
["End devices", "end_devices"],
|
["End devices", "guest"],
|
||||||
["Security devices", "security_devices"]];
|
["Security devices", "firewall"]];
|
||||||
|
|
||||||
return categories;
|
return categories;
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,8 @@ export class VirtualBoxConfigurationService{
|
|||||||
}
|
}
|
||||||
|
|
||||||
getOnCloseoptions() {
|
getOnCloseoptions() {
|
||||||
let onCloseOptions = [["Power off the VM", "power_off"],
|
let onCloseOptions = [["Power off the VM", "power_off"],
|
||||||
["Send the shutdown signal (ACPI)", "shutdown_signal"],
|
["Send the shutdown signal (ACPI)", "shutdown_signal"],
|
||||||
["Save the VM state", "save_vm_state"]];
|
["Save the VM state", "save_vm_state"]];
|
||||||
|
|
||||||
return onCloseOptions;
|
return onCloseOptions;
|
||||||
@ -16,10 +16,10 @@ export class VirtualBoxConfigurationService{
|
|||||||
|
|
||||||
getCategories() {
|
getCategories() {
|
||||||
let categories = [["Default", "guest"],
|
let categories = [["Default", "guest"],
|
||||||
["Routers", "routers"],
|
["Routers", "router"],
|
||||||
["Switches", "switches"],
|
["Switches", "switch"],
|
||||||
["End devices", "end_devices"],
|
["End devices", "guest"],
|
||||||
["Security devices", "security_devices"]];
|
["Security devices", "firewall"]];
|
||||||
|
|
||||||
return categories;
|
return categories;
|
||||||
}
|
}
|
||||||
@ -33,5 +33,5 @@ export class VirtualBoxConfigurationService{
|
|||||||
"Paravirtualized Network (virtio-net)"];
|
"Paravirtualized Network (virtio-net)"];
|
||||||
|
|
||||||
return networkTypes;
|
return networkTypes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,8 @@ export class VmwareConfigurationService{
|
|||||||
}
|
}
|
||||||
|
|
||||||
getOnCloseoptions() {
|
getOnCloseoptions() {
|
||||||
let onCloseOptions = [["Power off the VM", "power_off"],
|
let onCloseOptions = [["Power off the VM", "power_off"],
|
||||||
["Send the shutdown signal (ACPI)", "shutdown_signal"],
|
["Send the shutdown signal (ACPI)", "shutdown_signal"],
|
||||||
["Save the VM state", "save_vm_state"]];
|
["Save the VM state", "save_vm_state"]];
|
||||||
|
|
||||||
return onCloseOptions;
|
return onCloseOptions;
|
||||||
@ -16,10 +16,10 @@ export class VmwareConfigurationService{
|
|||||||
|
|
||||||
getCategories() {
|
getCategories() {
|
||||||
let categories = [["Default", "guest"],
|
let categories = [["Default", "guest"],
|
||||||
["Routers", "routers"],
|
["Routers", "router"],
|
||||||
["Switches", "switches"],
|
["Switches", "switch"],
|
||||||
["End devices", "end_devices"],
|
["End devices", "guest"],
|
||||||
["Security devices", "security_devices"]];
|
["Security devices", "firewall"]];
|
||||||
|
|
||||||
return categories;
|
return categories;
|
||||||
}
|
}
|
||||||
@ -35,5 +35,5 @@ export class VmwareConfigurationService{
|
|||||||
"vmxnet3"];
|
"vmxnet3"];
|
||||||
|
|
||||||
return networkTypes;
|
return networkTypes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,10 @@ export class VpcsConfigurationService {
|
|||||||
|
|
||||||
getCategories(){
|
getCategories(){
|
||||||
let categories = [["Default", "guest"],
|
let categories = [["Default", "guest"],
|
||||||
["Routers", "routers"],
|
["Routers", "router"],
|
||||||
["Switches", "switches"],
|
["Switches", "switch"],
|
||||||
["End devices", "end_devices"],
|
["End devices", "guest"],
|
||||||
["Security devices", "security_devices"]];
|
["Security devices", "firewall"]];
|
||||||
|
|
||||||
return categories;
|
return categories;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user