diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-config.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-config.js index ba00580f1..ab1a2eeb6 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-config.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-config.js @@ -47,19 +47,19 @@ RED.sidebar.config = (function() { var container = $('
').appendTo(parent); var header = $('
').appendTo(container); if (label) { - $('').text(label).appendTo(header); + $('').text(label).appendTo(header); } else { - $('').appendTo(header); + $('').appendTo(header); } - $('').appendTo(header); - category = $('
    ').appendTo(container); + $('').appendTo(header); + category = $('
      ').appendTo(container); container.i18n(); var icon = header.find("i"); var result = { label: label, list: category, size: function() { - return result.list.find("li:not(.config_node_none)").length + return result.list.find("li:not(.red-ui-palette-node-config-none)").length }, open: function(snap) { if (!icon.hasClass("expanded")) { @@ -96,7 +96,7 @@ RED.sidebar.config = (function() { categories[name] = result; } else { if (categories[name].label !== label) { - categories[name].list.parent().find('.config-node-label').text(label); + categories[name].list.parent().find('.red-ui-palette-node-config-label').text(label); categories[name].label = label; } } @@ -119,27 +119,27 @@ RED.sidebar.config = (function() { }) hiddenCount = hiddenCount - nodes.length; if (hiddenCount > 0) { - list.parent().find('.config-node-filter-info').text(RED._('sidebar.config.filtered',{count:hiddenCount})).show(); + list.parent().find('.red-ui-sidebar-node-config-filter-info').text(RED._('sidebar.config.filtered',{count:hiddenCount})).show(); } else { - list.parent().find('.config-node-filter-info').hide(); + list.parent().find('.red-ui-sidebar-node-config-filter-info').hide(); } } else { - list.parent().find('.config-node-filter-info').hide(); + list.parent().find('.red-ui-sidebar-node-config-filter-info').hide(); } list.empty(); if (nodes.length === 0) { - $('
    • NONE
    • ').i18n().appendTo(list); + $('
    • NONE
    • ').i18n().appendTo(list); category.close(true); } else { var currentType = ""; nodes.forEach(function(node) { var label = RED.utils.getNodeLabel(node,node.id); if (node.type != currentType) { - $('
    • '+node.type+'
    • ').appendTo(list); + $('
    • '+node.type+'
    • ').appendTo(list); currentType = node.type; } - var entry = $('
    • ').appendTo(list); + var entry = $('
    • ').appendTo(list); entry.data('node',node.id); $('
      ').text(label).appendTo(entry); if (node._def.hasUsers !== false) { @@ -155,7 +155,7 @@ RED.sidebar.config = (function() { } RED.popover.tooltip(iconContainer,RED._('editor.nodesUse',{count:node.users.length})); if (node.users.length === 0) { - entry.addClass("config_node_unused"); + entry.addClass("red-ui-palette-node-config-unused"); } } entry.on('click',function(e) { diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-context.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-context.js index 648085083..ead24d116 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-context.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-context.js @@ -32,13 +32,13 @@ RED.sidebar.context = (function() { function init() { content = $("
      ").css({"position":"relative","height":"100%"}); - content.className = "sidebar-context" + content.className = "red-ui-sidebar-context" var footerToolbar = $('
      '); - var stackContainer = $("
      ",{class:"sidebar-context-stack"}).appendTo(content); + var stackContainer = $("
      ",{class:"red-ui-sidebar-context-stack"}).appendTo(content); sections = RED.stack.create({ container: stackContainer }); @@ -52,7 +52,7 @@ RED.sidebar.context = (function() { }); nodeSection.expand(); nodeSection.content.css({height:"100%"}); - nodeSection.timestamp = $('').appendTo(nodeSection.content); + nodeSection.timestamp = $('
       
      ').appendTo(nodeSection.content); var table = $('
      ').appendTo(nodeSection.content); nodeSection.table = $('').appendTo(table); var bg = $('
      ').appendTo(nodeSection.header); @@ -86,7 +86,7 @@ RED.sidebar.context = (function() { }); flowSection.expand(); flowSection.content.css({height:"100%"}); - flowSection.timestamp = $('').appendTo(flowSection.content); + flowSection.timestamp = $('
       
      ').appendTo(flowSection.content); var table = $('
      ').appendTo(flowSection.content); flowSection.table = $('').appendTo(table); bg = $('
      ').appendTo(flowSection.header); @@ -104,7 +104,7 @@ RED.sidebar.context = (function() { }); globalSection.expand(); globalSection.content.css({height:"100%"}); - globalSection.timestamp = $('').appendTo(globalSection.content); + globalSection.timestamp = $('
       
      ').appendTo(globalSection.content); var table = $('
      ').appendTo(globalSection.content); globalSection.table = $('').appendTo(table); @@ -230,7 +230,7 @@ RED.sidebar.context = (function() { sortedData[keys[i]].forEach(function(v) { var k = keys[i]; var l2 = sortedData[k].length; - var propRow = $('').appendTo(container); + var propRow = $('').appendTo(container); var obj = $(propRow.children()[0]); obj.text(k); var tools = $(''); @@ -312,7 +312,7 @@ RED.sidebar.context = (function() { tools: tools }).appendTo(propRow.children()[1]); if (contextStores.length > 1) { - $("",{class:"sidebar-context-property-storename"}).text(v.store).appendTo($(propRow.children()[0])) + $("",{class:"red-ui-sidebar-context-property-storename"}).text(v.store).appendTo($(propRow.children()[0])) } }); } diff --git a/packages/node_modules/@node-red/editor-client/src/sass/tab-config.scss b/packages/node_modules/@node-red/editor-client/src/sass/tab-config.scss index 8920a567a..0fccd0308 100644 --- a/packages/node_modules/@node-red/editor-client/src/sass/tab-config.scss +++ b/packages/node_modules/@node-red/editor-client/src/sass/tab-config.scss @@ -22,7 +22,7 @@ @include disable-selection; } -.config-node-list { +.red-ui-sidebar-node-config-list { margin: 0; list-style-type: none; .red-ui-palette-node { @@ -32,7 +32,7 @@ background-color: #eee; } } - .palette_label { + .red-ui-palette-label { margin-left: 8px; line-height: 24px; text-align: left; @@ -60,14 +60,14 @@ } } } -.config_node { +.red-ui-palette-node-config { width: 160px; height: 30px; background: #f3f3f3; color: #666; cursor: pointer; } -.config_node_type { +.red-ui-palette-node-config-type { color: #999; text-align: right; padding-right: 3px; @@ -75,18 +75,18 @@ margin-top: 20px; } } -.config_node_none { +.red-ui-palette-node-config-none { color: #ddd; text-align:right; padding-right: 3px; } -.config_node_unused { +.red-ui-palette-node-config-unused { border-color: #aaa; background: #f9f9f9; border-style: dashed; color: #aaa; } -.config-node-filter-info { +.red-ui-sidebar-node-config-filter-info { position: absolute; top: 0; right:0; diff --git a/packages/node_modules/@node-red/editor-client/src/sass/tab-context.scss b/packages/node_modules/@node-red/editor-client/src/sass/tab-context.scss index 4ccfe5f3f..3293af7c5 100644 --- a/packages/node_modules/@node-red/editor-client/src/sass/tab-context.scss +++ b/packages/node_modules/@node-red/editor-client/src/sass/tab-context.scss @@ -14,7 +14,7 @@ * limitations under the License. **/ -.sidebar-context-stack { +.red-ui-sidebar-context-stack { position: absolute; top: 0; bottom: 0; @@ -29,7 +29,7 @@ } } -.sidebar-context-property { +.red-ui-sidebar-context-property { position: relative; .debug-message-tools { right: 0px; @@ -40,13 +40,13 @@ display: inline-block; } } -.sidebar-context-updated { +.red-ui-sidebar-context-updated { text-align: right; font-size: 11px; color: #bbb; padding: 1px 3px; } -.sidebar-context-property-storename { +.red-ui-sidebar-context-property-storename { display: block; font-size: 0.8em; font-style: italic;