From f3e49fefa083667fd9638dc38fa23ffa7d4d8ba0 Mon Sep 17 00:00:00 2001 From: Scott Aslan Date: Mon, 25 Jul 2016 10:35:50 -0400 Subject: [PATCH] [NIFI-2367] Overlapping links repositioned on error/login pages [NIFI-2025] update birdseye after dragging/dropping element on the canvas [NIFI-2367] update width of content viewer combo [NIFI-2355] update table sorting based on auth efforts [NIFI-2027] update EL editors [NIFI-2387] update bulletin alert backgroud color to actually change the color of the icon not the div background [NIFI-2141] Hide bulletin icon/background on processors unless a bulletin exists [NIFI-2400] close any open combos contained within a shell when closing the shell [NIFI-2404] remove extra scrollbar from #node-events [NIFI-2027] account for min widths of EL editors [NIFI-2025] update birdseye after changing color [NIFI-2027] Update EL editor checkbox text [NIFI-2027] update checkbox text [NIFI-2355] update table sorting [NIFI-2141] Hide bulletin icon/background on processors unless a bulletin exists [NIFI-2027] update EL editors [NIFI-2367] Overlapping links repositioned on error/login pages This closes #715 --- .../src/main/webapp/css/main.css | 1 + .../webapp/WEB-INF/partials/message-pane.jsp | 20 ++--- .../src/main/webapp/css/cluster.css | 1 - .../nifi-web-ui/src/main/webapp/css/graph.css | 4 - .../nifi-web-ui/src/main/webapp/css/main.css | 7 +- .../src/main/webapp/css/message-pane.css | 2 + .../webapp/js/jquery/combo/jquery.combo.js | 9 +- .../webapp/js/jquery/modal/jquery.modal.js | 13 +-- .../js/jquery/nfeditor/jquery.nfeditor.css | 1 + .../propertytable/jquery.propertytable.css | 21 ++--- .../propertytable/jquery.propertytable.js | 84 ++++++++++++------- .../nf-ng-canvas-operate-controller.js | 2 + .../webapp/js/nf/canvas/nf-canvas-utils.js | 6 +- .../webapp/js/nf/canvas/nf-component-state.js | 17 +++- .../js/nf/canvas/nf-controller-services.js | 63 ++++++++------ .../main/webapp/js/nf/canvas/nf-draggable.js | 2 + .../js/nf/canvas/nf-policy-management.js | 17 +++- .../main/webapp/js/nf/canvas/nf-settings.js | 65 ++++++++------ .../src/main/webapp/js/nf/nf-shell.js | 8 ++ .../js/nf/templates/nf-templates-table.js | 25 ++++-- .../main/webapp/js/nf/users/nf-users-table.js | 17 +++- 21 files changed, 241 insertions(+), 144 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-content-viewer/src/main/webapp/css/main.css b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-content-viewer/src/main/webapp/css/main.css index 698e0ff347..20efd89f78 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-content-viewer/src/main/webapp/css/main.css +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-content-viewer/src/main/webapp/css/main.css @@ -42,6 +42,7 @@ position: relative; top: 72px; left: 150px; + width: 148px; } #content-filename { diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/message-pane.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/message-pane.jsp index 0b12baa228..cdba1b5d34 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/message-pane.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/message-pane.jsp @@ -16,18 +16,18 @@ --%> <%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %> \ No newline at end of file diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/cluster.css b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/cluster.css index dad9bc4ea2..f515ecfc65 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/cluster.css +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/cluster.css @@ -82,5 +82,4 @@ span.sorted { #node-events { max-height: 200px; - overflow-y: auto; } \ No newline at end of file diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/graph.css b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/graph.css index 5aa780afa8..641b02d987 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/graph.css +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/graph.css @@ -110,10 +110,6 @@ text.bulletin-icon { } rect.bulletin-background { - fill: #728e9b; -} - -rect.bulletin-background.has-bulletins { fill: #ba554a; } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/main.css b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/main.css index b0ed15065c..3332072181 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/main.css +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/main.css @@ -95,10 +95,9 @@ div.context-menu-provenance { } #user-links-container { - position: absolute; - right: 20px; - top: 69px; + float: left; z-index: 1300; + margin-left: 20px; } .ellipsis { @@ -166,7 +165,7 @@ div.valid { } div.has-bulletins { - background: #ba554a; + color: #ba554a !important; } /* diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/message-pane.css b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/message-pane.css index 6269a3fdb1..3adc09891a 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/message-pane.css +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/message-pane.css @@ -28,6 +28,7 @@ font-size: 12px; color: #262626; line-height: normal; + clear: both; } .message-pane-message-box { @@ -42,4 +43,5 @@ font-family: 'Roboto Slab'; font-style: normal; font-weight: bold; + float: left; } \ No newline at end of file diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/combo/jquery.combo.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/combo/jquery.combo.js index 6372a16829..b79ea16306 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/combo/jquery.combo.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/combo/jquery.combo.js @@ -368,7 +368,7 @@ }, /** - * Destroy's the combo. + * Destroys the combo. */ destroy: function () { return this.each(function () { @@ -377,6 +377,13 @@ // remove the options if open $('div.combo-glass-pane').click(); }); + }, + + /** + * Closes the combo. + */ + close: function () { + $('div.combo-glass-pane').click(); } }; diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/modal/jquery.modal.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/modal/jquery.modal.js index 49500bd666..0993c88254 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/modal/jquery.modal.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/modal/jquery.modal.js @@ -513,18 +513,19 @@ hide: function () { return this.each(function () { var dialog = $(this); + + // invoke the handler + var handler = dialog.data('nf-dialog').close; + if (isDefinedAndNotNull(handler) && typeof handler === 'function') { + handler.call(dialog); + } + if (dialog.is(':visible')) { // remove the modal glass pane overlay $('body').find("[data-nf-dialog-parent='" + dialog.attr('id') + "']").remove(); // hide the dialog dialog.hide(); - - // invoke the handler - var handler = dialog.data('nf-dialog').close; - if (isDefinedAndNotNull(handler) && typeof handler === 'function') { - handler.call(dialog); - } } }); } diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/nfeditor/jquery.nfeditor.css b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/nfeditor/jquery.nfeditor.css index b2c9b3a892..3c0a6d931f 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/nfeditor/jquery.nfeditor.css +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/nfeditor/jquery.nfeditor.css @@ -25,6 +25,7 @@ background-color: #fff; cursor: default; line-height: normal; + min-width: 210px; } .nfel-editor .CodeMirror-scroll { diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.css b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.css index 023b45be5b..4797192648 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.css +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.css @@ -74,7 +74,8 @@ div.new-property-button-container { */ div.slickgrid-nfel-editor .nfel-editor, div.property-detail .nfel-editor { - margin-bottom: 30px; + margin-bottom: 5px; + margin-top: 10px; } div.edit-property-value { @@ -89,26 +90,23 @@ textarea.value-field { font-size: 11px !important; resize: vertical; overflow-y: auto; + } div.string-check-container { - float: left; - margin-top: 1px; - height: 20px; line-height: 20px; } div.string-check { width: 12px; height: 12px; - float: left; margin-top: 4px; - margin-left: 4px; } span.string-check-label { - font-size: 9px; + font-size: 13px; font-weight: normal; + color: #262626; } div.value pre { @@ -116,15 +114,6 @@ div.value pre { overflow: hidden; } -/* - Styles for the property value combo -*/ - -div.value-combo { - float: left; - border: 1px solid #eaeef0; -} - /* Table styles */ diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js index 042deacc6f..90d62c4678 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js @@ -76,6 +76,7 @@ 'box-shadow': 'rgba(0, 0, 0, 0.247059) 0px 2px 5px', 'background-color': 'rgb(255, 255, 255)', 'overflow': 'hidden', + 'padding': '10px 20px', 'cursor': 'move' }).appendTo(container); @@ -83,7 +84,9 @@ input = $('