From 749b0d7019c43db0a374f5d7d73d053f13a7b2c8 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 23 May 2017 14:18:09 +0100 Subject: [PATCH] Tidy up parser node edit dialogs and help text --- nodes/core/locales/en-US/messages.json | 20 ++++---- nodes/core/parsers/70-CSV.html | 65 ++++++++++++++++---------- nodes/core/parsers/70-HTML.html | 10 ++-- nodes/core/parsers/70-JSON.html | 28 +++++++---- nodes/core/parsers/70-XML.html | 53 ++++++++++++++------- nodes/core/parsers/70-YAML.html | 21 ++++++--- 6 files changed, 123 insertions(+), 74 deletions(-) diff --git a/nodes/core/locales/en-US/messages.json b/nodes/core/locales/en-US/messages.json index ea9cd07ba..f5b9867e7 100644 --- a/nodes/core/locales/en-US/messages.json +++ b/nodes/core/locales/en-US/messages.json @@ -588,8 +588,8 @@ "label": { "columns": "Columns", "separator": "Separator", - "c2o": "CSV-to-Object options", - "o2c": "Object-to-CSV options", + "c2o": "CSV to Object options", + "o2c": "Object to CSV options", "input": "Input", "firstrow": "first row contains column names", "output": "Output", @@ -624,7 +624,7 @@ }, "html": { "label": { - "select": "Select", + "select": "Selector", "output": "Output" }, "output": { @@ -635,8 +635,7 @@ "format": { "single": "as a single message containing an array", "multi": "as multiple messages, one for each element" - }, - "tip": "Tip: The Select value is a CSS Selector, similar to a jQuery selector." + } }, "json": { "errors": { @@ -645,8 +644,8 @@ "dropped-error": "Failed to convert payload" }, "label": { - "o2j": "Object-to-String options", - "pretty": "Pretty print JSON string" + "o2j": "Object to JSON options", + "pretty": "Format JSON string" } }, "yaml": { @@ -658,12 +657,11 @@ }, "xml": { "label": { - "represent": "Represent XML tag attributes as a property named", - "prefix": "Prefix to access character content", + "represent": "Property name for XML tag attributes", + "prefix": "Property name for tag text content", "advanced": "Advanced options", - "x2o": "XML-to-Object options" + "x2o": "XML to Object options" }, - "tip": "There is no simple way to convert XML attributes to JSON so the approach taken here is to add a property, named $ by default, to the JSON structure.", "errors": { "xml_js": "This node only handles xml strings or js objects." } diff --git a/nodes/core/parsers/70-CSV.html b/nodes/core/parsers/70-CSV.html index 373b9c81d..c831a90e1 100644 --- a/nodes/core/parsers/70-CSV.html +++ b/nodes/core/parsers/70-CSV.html @@ -24,26 +24,30 @@
- - -
-
- +
+ +
+
+
-
-
- - -