mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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 .= ' ';
|
||||||
$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_snapshot = is_snapshot_data($last_data['datos']);
|
||||||
$is_large_image = is_text_to_black_string($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) {
|
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;
|
$last_data_str .= $salida;
|
||||||
|
@ -247,7 +247,7 @@ Licensed under the MIT license.
|
|||||||
// Create the text layer container, if it doesn't exist
|
// Create the text layer container, if it doesn't exist
|
||||||
|
|
||||||
if (this.textContainer == null) {
|
if (this.textContainer == null) {
|
||||||
this.textContainer = $("<div class='flot-text'></div>")
|
this.textContainer = $("<div class='flot-text white_important'></div>")
|
||||||
.css({
|
.css({
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
top: 0,
|
top: 0,
|
||||||
|
@ -2486,6 +2486,7 @@ function printClockAnalogic1(
|
|||||||
var face = svg
|
var face = svg
|
||||||
.append("g")
|
.append("g")
|
||||||
.attr("id", "clock-face")
|
.attr("id", "clock-face")
|
||||||
|
.attr("class", "invert_filter")
|
||||||
.attr(
|
.attr(
|
||||||
"transform",
|
"transform",
|
||||||
"translate(" +
|
"translate(" +
|
||||||
|
@ -1211,43 +1211,43 @@ function add_agent_node(agents) {
|
|||||||
graph.nodes.push(temp_node);
|
graph.nodes.push(temp_node);
|
||||||
|
|
||||||
/*jQuery.each(data['rel'], function(i, relation) {
|
/*jQuery.each(data['rel'], function(i, relation) {
|
||||||
var temp_link = {};
|
var temp_link = {};
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
var found = 0;
|
var found = 0;
|
||||||
temp_link['source'] = graph.nodes[temp_node['id']];
|
temp_link['source'] = graph.nodes[temp_node['id']];
|
||||||
jQuery.each(graph.nodes, function(j, element) {
|
jQuery.each(graph.nodes, function(j, element) {
|
||||||
if (element.id_agent == relation['id_agent_end']) {
|
if (element.id_agent == relation['id_agent_end']) {
|
||||||
found = j;
|
found = j;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
temp_link['target'] = graph.nodes[found];
|
temp_link['target'] = graph.nodes[found];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var found = 0;
|
var found = 0;
|
||||||
temp_link['target'] = graph.nodes[temp_node['id']];
|
temp_link['target'] = graph.nodes[temp_node['id']];
|
||||||
jQuery.each(graph.nodes, function(j, element) {
|
jQuery.each(graph.nodes, function(j, element) {
|
||||||
if (element.id_agent == relation['id_agent_start']) {
|
if (element.id_agent == relation['id_agent_start']) {
|
||||||
found = j;
|
found = j;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
temp_link['source'] = graph.nodes[found];
|
temp_link['source'] = graph.nodes[found];
|
||||||
}
|
}
|
||||||
temp_link['id_db'] = String(relation['id_db']);
|
temp_link['id_db'] = String(relation['id_db']);
|
||||||
temp_link['id_agent_end'] = String(relation['id_agent_end']);
|
temp_link['id_agent_end'] = String(relation['id_agent_end']);
|
||||||
temp_link['id_agent_start'] = String(relation['id_agent_start']);
|
temp_link['id_agent_start'] = String(relation['id_agent_start']);
|
||||||
temp_link['id_module_end'] = relation['id_module_end'];
|
temp_link['id_module_end'] = relation['id_module_end'];
|
||||||
temp_link['id_module_start'] = relation['id_module_start'];
|
temp_link['id_module_start'] = relation['id_module_start'];
|
||||||
temp_link['source_in_db'] = String(relation['source_in_db']);
|
temp_link['source_in_db'] = String(relation['source_in_db']);
|
||||||
temp_link['target_in_db'] = String(relation['target_in_db']);
|
temp_link['target_in_db'] = String(relation['target_in_db']);
|
||||||
temp_link['arrow_end'] = relation['arrow_end'];
|
temp_link['arrow_end'] = relation['arrow_end'];
|
||||||
temp_link['arrow_start'] = relation['arrow_start'];
|
temp_link['arrow_start'] = relation['arrow_start'];
|
||||||
temp_link['status_end'] = relation['status_end'];
|
temp_link['status_end'] = relation['status_end'];
|
||||||
temp_link['status_start'] = relation['status_start'];
|
temp_link['status_start'] = relation['status_start'];
|
||||||
temp_link['text_end'] = relation['text_end'];
|
temp_link['text_end'] = relation['text_end'];
|
||||||
temp_link['text_start'] = relation['text_start'];
|
temp_link['text_start'] = relation['text_start'];
|
||||||
|
|
||||||
graph.links.push(temp_link);
|
graph.links.push(temp_link);
|
||||||
});*/
|
});*/
|
||||||
|
|
||||||
draw_elements_graph();
|
draw_elements_graph();
|
||||||
init_drag_and_drop();
|
init_drag_and_drop();
|
||||||
@ -3385,8 +3385,8 @@ function init_graph(parameter_object) {
|
|||||||
"stroke-opacity: 0.75; " +
|
"stroke-opacity: 0.75; " +
|
||||||
"stroke-dasharray: none; " +
|
"stroke-dasharray: none; " +
|
||||||
"stroke-dashoffset: 0"
|
"stroke-dashoffset: 0"
|
||||||
);
|
)
|
||||||
|
.attr("class", "fill_222");
|
||||||
window.layer_graph
|
window.layer_graph
|
||||||
.append("text")
|
.append("text")
|
||||||
.append("tspan")
|
.append("tspan")
|
||||||
@ -3406,6 +3406,7 @@ function init_graph(parameter_object) {
|
|||||||
"stroke: none; " +
|
"stroke: none; " +
|
||||||
"font-family: Verdana"
|
"font-family: Verdana"
|
||||||
)
|
)
|
||||||
|
.attr("class", "fill_fff")
|
||||||
.attr(
|
.attr(
|
||||||
"x",
|
"x",
|
||||||
networkmap_dimensions[0] + node_radius - holding_area_dimensions[0]
|
networkmap_dimensions[0] + node_radius - holding_area_dimensions[0]
|
||||||
@ -4072,7 +4073,7 @@ function draw_elements_graph() {
|
|||||||
|
|
||||||
node_temp
|
node_temp
|
||||||
.append("text")
|
.append("text")
|
||||||
.attr("class", "node_text")
|
.attr("class", "node_text fill_fff")
|
||||||
.attr("id", "node_text_" + networkmap_id)
|
.attr("id", "node_text_" + networkmap_id)
|
||||||
.attr(
|
.attr(
|
||||||
"style",
|
"style",
|
||||||
@ -4094,7 +4095,7 @@ function draw_elements_graph() {
|
|||||||
.text(function(d) {
|
.text(function(d) {
|
||||||
return ellipsize(get_node_name_ov(d), 30);
|
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("click", selected_node)
|
||||||
.on("contextmenu", function(d) {
|
.on("contextmenu", function(d) {
|
||||||
show_menu("node", d);
|
show_menu("node", d);
|
||||||
|
@ -952,6 +952,7 @@ function show_module_detail_dialog(
|
|||||||
period,
|
period,
|
||||||
module_name
|
module_name
|
||||||
) {
|
) {
|
||||||
|
console.log("empezamos");
|
||||||
var params = {};
|
var params = {};
|
||||||
var f = new Date();
|
var f = new Date();
|
||||||
period = $("#period").val();
|
period = $("#period").val();
|
||||||
|
@ -686,7 +686,7 @@ class TreeViewWidget extends Widget
|
|||||||
];
|
];
|
||||||
|
|
||||||
// Show the modal window of an module.
|
// Show the modal window of an module.
|
||||||
$output .= '<div id="module_details_window" class="invisible">';
|
$output .= '<div id="module_details_window" class="">';
|
||||||
$output .= '</div>';
|
$output .= '</div>';
|
||||||
|
|
||||||
// Script.
|
// Script.
|
||||||
|
@ -931,3 +931,18 @@ div.integria_details_description textarea {
|
|||||||
.bg_222_important {
|
.bg_222_important {
|
||||||
background-color: #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()
|
.hide()
|
||||||
.prop("id", "module_details_window")
|
.prop("id", "module_details_window")
|
||||||
.appendTo('body');
|
.appendTo('body');
|
||||||
|
console.log("vamos a ver");
|
||||||
function show_module_detail_dialog(module_id, id_agent, server_name, offset, period, module_name) {
|
function show_module_detail_dialog(module_id, id_agent, server_name, offset, period, module_name) {
|
||||||
var params = {};
|
var params = {};
|
||||||
var f = new Date();
|
var f = new Date();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user