mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-11 05:17:41 +03:00
Feature #4215: topology styling, update vis library version
This commit is contained in:
parent
166e0fd586
commit
0d4a7457d2
@ -22,15 +22,10 @@ define(function(require) {
|
||||
var OpenNebula = require('opennebula');
|
||||
var VNetUtils = require('tabs/vnets-tab/utils/common');
|
||||
|
||||
|
||||
var Vis = require('vis');
|
||||
|
||||
var TemplateDashboard = require('hbs!./vnets-topology-tab/html');
|
||||
|
||||
var VNETS_TAB_ID = require('tabs/vnets-tab/tabId');
|
||||
|
||||
var VNETS_CREATE_FORM_PANEL_ID = require('tabs/vnets-tab/form-panels/create/formPanelId');
|
||||
|
||||
var _network;
|
||||
var _vnetList;
|
||||
|
||||
@ -146,12 +141,17 @@ define(function(require) {
|
||||
if (vnet.PARENT_NETWORK_ID.length > 0){
|
||||
group = "reservation";
|
||||
|
||||
edges.push({from: "vnet"+vnet.PARENT_NETWORK_ID, to: vnetNodeId});
|
||||
edges.push({
|
||||
from: "vnet"+vnet.PARENT_NETWORK_ID,
|
||||
to: vnetNodeId,
|
||||
dashes: true,
|
||||
color: "#0098c3"
|
||||
});
|
||||
}
|
||||
|
||||
nodes.push({
|
||||
id: vnetNodeId,
|
||||
label: "VNet "+vnet.NAME,
|
||||
label: " VNet "+vnet.NAME + " ", // Spaces for padding, no other reason
|
||||
group: group});
|
||||
|
||||
// VRouter nodes
|
||||
@ -281,19 +281,57 @@ define(function(require) {
|
||||
groups: {
|
||||
vnet: {
|
||||
shape: 'box',
|
||||
color: '#cfcfcf'
|
||||
color: {
|
||||
border: "#007a9c",
|
||||
background: "#0098c3",
|
||||
hover: "#007a9c",
|
||||
highlight: "#007a9c"
|
||||
},
|
||||
font: {
|
||||
color: "#fff"
|
||||
}
|
||||
},
|
||||
reservation: {
|
||||
shape: 'box',
|
||||
color: '#cfcfcf'
|
||||
color: {
|
||||
border: "#007a9c",
|
||||
background: "#0098c3",
|
||||
hover: "#007a9c",
|
||||
highlight: "#007a9c"
|
||||
},
|
||||
font: {
|
||||
color: "#fff"
|
||||
}
|
||||
},
|
||||
vr: {
|
||||
shape: 'circle',
|
||||
color: '#999'
|
||||
color: {
|
||||
border: "#43AC6A",
|
||||
background: "#fff",
|
||||
hover: {
|
||||
border: "#43AC6A",
|
||||
background: "#f7f7f7"
|
||||
},
|
||||
highlight: {
|
||||
border: "#43AC6A",
|
||||
background: "#f7f7f7"
|
||||
}
|
||||
}
|
||||
},
|
||||
vm: {
|
||||
shape: 'circle',
|
||||
color: '#cfcfcf'
|
||||
color: {
|
||||
border: "#007a9c",
|
||||
background: "#fff",
|
||||
hover: {
|
||||
border: "#007a9c",
|
||||
background: "#f7f7f7"
|
||||
},
|
||||
highlight: {
|
||||
border: "#007a9c",
|
||||
background: "#f7f7f7"
|
||||
}
|
||||
}
|
||||
},
|
||||
vmCluster: {
|
||||
shape: 'circle',
|
||||
|
@ -14,4 +14,4 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div id="visgraph" style="width: 100%;height: 600px;"></div>
|
||||
<div id="visgraph" style="width: 100%; min-height: 400px; height: 75vh;"></div>
|
||||
|
@ -23,7 +23,7 @@
|
||||
"almond": "0.3.1",
|
||||
"datatables": "1.10.7",
|
||||
"foundation": "5.5.2",
|
||||
"vis": "4.10.0"
|
||||
"vis": "4.12.0"
|
||||
},
|
||||
"version": "4.14",
|
||||
"authors": [
|
||||
|
Loading…
Reference in New Issue
Block a user