add black theme to widget dashboard
This commit is contained in:
parent
b6ea565118
commit
48cc1283cc
|
@ -290,7 +290,7 @@ function treeview_printModuleTable($id_module, $server_data=false, $no_head=fals
|
|||
}
|
||||
|
||||
$last_data_str .= ' ';
|
||||
$last_data_str .= html_print_image('images/clock2.png', true, ['title' => $last_data['timestamp'], 'width' => '18px']);
|
||||
$last_data_str .= html_print_image('images/clock2.png', true, ['title' => $last_data['timestamp'], 'width' => '18px', 'class' => 'invert_filter']);
|
||||
|
||||
$is_snapshot = is_snapshot_data($last_data['datos']);
|
||||
$is_large_image = is_text_to_black_string($last_data['datos']);
|
||||
|
@ -307,7 +307,7 @@ function treeview_printModuleTable($id_module, $server_data=false, $no_head=fals
|
|||
}
|
||||
|
||||
if ($salida !== null) {
|
||||
$last_data_str = html_print_image('images/clock2.png', true, ['title' => $last_data['timestamp'], 'width' => '18px']);
|
||||
$last_data_str = html_print_image('images/clock2.png', true, ['title' => $last_data['timestamp'], 'width' => '18px', 'class' => 'invert_filter']);
|
||||
}
|
||||
|
||||
$last_data_str .= $salida;
|
||||
|
|
|
@ -247,7 +247,7 @@ Licensed under the MIT license.
|
|||
// Create the text layer container, if it doesn't exist
|
||||
|
||||
if (this.textContainer == null) {
|
||||
this.textContainer = $("<div class='flot-text'></div>")
|
||||
this.textContainer = $("<div class='flot-text white_important'></div>")
|
||||
.css({
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
|
|
|
@ -2486,6 +2486,7 @@ function printClockAnalogic1(
|
|||
var face = svg
|
||||
.append("g")
|
||||
.attr("id", "clock-face")
|
||||
.attr("class", "invert_filter")
|
||||
.attr(
|
||||
"transform",
|
||||
"translate(" +
|
||||
|
|
|
@ -1211,43 +1211,43 @@ function add_agent_node(agents) {
|
|||
graph.nodes.push(temp_node);
|
||||
|
||||
/*jQuery.each(data['rel'], function(i, relation) {
|
||||
var temp_link = {};
|
||||
if (i == 0) {
|
||||
var found = 0;
|
||||
temp_link['source'] = graph.nodes[temp_node['id']];
|
||||
jQuery.each(graph.nodes, function(j, element) {
|
||||
if (element.id_agent == relation['id_agent_end']) {
|
||||
found = j;
|
||||
}
|
||||
});
|
||||
temp_link['target'] = graph.nodes[found];
|
||||
}
|
||||
else {
|
||||
var found = 0;
|
||||
temp_link['target'] = graph.nodes[temp_node['id']];
|
||||
jQuery.each(graph.nodes, function(j, element) {
|
||||
if (element.id_agent == relation['id_agent_start']) {
|
||||
found = j;
|
||||
}
|
||||
});
|
||||
temp_link['source'] = graph.nodes[found];
|
||||
}
|
||||
temp_link['id_db'] = String(relation['id_db']);
|
||||
temp_link['id_agent_end'] = String(relation['id_agent_end']);
|
||||
temp_link['id_agent_start'] = String(relation['id_agent_start']);
|
||||
temp_link['id_module_end'] = relation['id_module_end'];
|
||||
temp_link['id_module_start'] = relation['id_module_start'];
|
||||
temp_link['source_in_db'] = String(relation['source_in_db']);
|
||||
temp_link['target_in_db'] = String(relation['target_in_db']);
|
||||
temp_link['arrow_end'] = relation['arrow_end'];
|
||||
temp_link['arrow_start'] = relation['arrow_start'];
|
||||
temp_link['status_end'] = relation['status_end'];
|
||||
temp_link['status_start'] = relation['status_start'];
|
||||
temp_link['text_end'] = relation['text_end'];
|
||||
temp_link['text_start'] = relation['text_start'];
|
||||
|
||||
graph.links.push(temp_link);
|
||||
});*/
|
||||
var temp_link = {};
|
||||
if (i == 0) {
|
||||
var found = 0;
|
||||
temp_link['source'] = graph.nodes[temp_node['id']];
|
||||
jQuery.each(graph.nodes, function(j, element) {
|
||||
if (element.id_agent == relation['id_agent_end']) {
|
||||
found = j;
|
||||
}
|
||||
});
|
||||
temp_link['target'] = graph.nodes[found];
|
||||
}
|
||||
else {
|
||||
var found = 0;
|
||||
temp_link['target'] = graph.nodes[temp_node['id']];
|
||||
jQuery.each(graph.nodes, function(j, element) {
|
||||
if (element.id_agent == relation['id_agent_start']) {
|
||||
found = j;
|
||||
}
|
||||
});
|
||||
temp_link['source'] = graph.nodes[found];
|
||||
}
|
||||
temp_link['id_db'] = String(relation['id_db']);
|
||||
temp_link['id_agent_end'] = String(relation['id_agent_end']);
|
||||
temp_link['id_agent_start'] = String(relation['id_agent_start']);
|
||||
temp_link['id_module_end'] = relation['id_module_end'];
|
||||
temp_link['id_module_start'] = relation['id_module_start'];
|
||||
temp_link['source_in_db'] = String(relation['source_in_db']);
|
||||
temp_link['target_in_db'] = String(relation['target_in_db']);
|
||||
temp_link['arrow_end'] = relation['arrow_end'];
|
||||
temp_link['arrow_start'] = relation['arrow_start'];
|
||||
temp_link['status_end'] = relation['status_end'];
|
||||
temp_link['status_start'] = relation['status_start'];
|
||||
temp_link['text_end'] = relation['text_end'];
|
||||
temp_link['text_start'] = relation['text_start'];
|
||||
|
||||
graph.links.push(temp_link);
|
||||
});*/
|
||||
|
||||
draw_elements_graph();
|
||||
init_drag_and_drop();
|
||||
|
@ -3385,8 +3385,8 @@ function init_graph(parameter_object) {
|
|||
"stroke-opacity: 0.75; " +
|
||||
"stroke-dasharray: none; " +
|
||||
"stroke-dashoffset: 0"
|
||||
);
|
||||
|
||||
)
|
||||
.attr("class", "fill_222");
|
||||
window.layer_graph
|
||||
.append("text")
|
||||
.append("tspan")
|
||||
|
@ -3406,6 +3406,7 @@ function init_graph(parameter_object) {
|
|||
"stroke: none; " +
|
||||
"font-family: Verdana"
|
||||
)
|
||||
.attr("class", "fill_fff")
|
||||
.attr(
|
||||
"x",
|
||||
networkmap_dimensions[0] + node_radius - holding_area_dimensions[0]
|
||||
|
@ -4072,7 +4073,7 @@ function draw_elements_graph() {
|
|||
|
||||
node_temp
|
||||
.append("text")
|
||||
.attr("class", "node_text")
|
||||
.attr("class", "node_text fill_fff")
|
||||
.attr("id", "node_text_" + networkmap_id)
|
||||
.attr(
|
||||
"style",
|
||||
|
@ -4094,7 +4095,7 @@ function draw_elements_graph() {
|
|||
.text(function(d) {
|
||||
return ellipsize(get_node_name_ov(d), 30);
|
||||
})
|
||||
.classed("dragable_node", true) //own dragable
|
||||
.classed("dragable_node fill_fff", true) //own dragable
|
||||
.on("click", selected_node)
|
||||
.on("contextmenu", function(d) {
|
||||
show_menu("node", d);
|
||||
|
|
|
@ -952,6 +952,7 @@ function show_module_detail_dialog(
|
|||
period,
|
||||
module_name
|
||||
) {
|
||||
console.log("empezamos");
|
||||
var params = {};
|
||||
var f = new Date();
|
||||
period = $("#period").val();
|
||||
|
|
|
@ -686,7 +686,7 @@ class TreeViewWidget extends Widget
|
|||
];
|
||||
|
||||
// Show the modal window of an module.
|
||||
$output .= '<div id="module_details_window" class="invisible">';
|
||||
$output .= '<div id="module_details_window" class="">';
|
||||
$output .= '</div>';
|
||||
|
||||
// Script.
|
||||
|
|
|
@ -931,3 +931,18 @@ div.integria_details_description textarea {
|
|||
.bg_222_important {
|
||||
background-color: #222 !important;
|
||||
}
|
||||
|
||||
.networkconsole {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background-color: #111;
|
||||
}
|
||||
|
||||
.fill_222 {
|
||||
fill: #222 !important;
|
||||
}
|
||||
.fill_fff {
|
||||
fill: #fff !important;
|
||||
}
|
||||
|
|
|
@ -438,7 +438,7 @@ enterprise_hook('close_meta_frame');
|
|||
.hide()
|
||||
.prop("id", "module_details_window")
|
||||
.appendTo('body');
|
||||
|
||||
console.log("vamos a ver");
|
||||
function show_module_detail_dialog(module_id, id_agent, server_name, offset, period, module_name) {
|
||||
var params = {};
|
||||
var f = new Date();
|
||||
|
|
Loading…
Reference in New Issue