Skip to content

Commit f3c301c

Browse files
committed
Review 1: Update
1 parent e6886ac commit f3c301c

File tree

17 files changed

+52
-58
lines changed

17 files changed

+52
-58
lines changed

packages/generator-widget/generators/app/lib/prompttexts.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ function promptWidgetProperties(mxProjectDir, widgetName) {
2020
message: "Enter a description for your widget",
2121
default: "My widget description"
2222
},
23-
{
24-
type: "input",
25-
name: "prompt",
26-
message: "Enter prompt for your widget (optional)",
27-
default: ""
28-
},
2923
{
3024
type: "input",
3125
name: "organization",

packages/generator-widget/generators/app/templates/pluggable/native/emptyTemplateJs/src/WidgetName.xml.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
66
<name><%- nameCamelCase %></name>
77
<description><%- description %></description>
8-
<% if (prompt) { %><prompt><%- prompt %></prompt><% } %>
8+
<prompt>A simple widget for displaying name</prompt>
99
<icon/>
1010
<properties>
1111
<propertyGroup caption="General">
1212
<property key="yourName" type="string" required="false">
1313
<caption>Name</caption>
1414
<description>Enter your name</description>
15-
<% if (prompt) { %><prompt>Sample prompt for Maia</prompt><% } %>
15+
<prompt>Enter the your name to display in the widget</prompt>
1616
</property>
1717
</propertyGroup>
1818
</properties>

packages/generator-widget/generators/app/templates/pluggable/native/emptyTemplateJsFn/src/WidgetName.xml.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
66
<name><%- nameCamelCase %></name>
77
<description><%- description %></description>
8-
<% if (prompt) { %><prompt><%- prompt %></prompt><% } %>
8+
<prompt>A simple widget for displaying name</prompt>
99
<icon/>
1010
<properties>
1111
<propertyGroup caption="General">
1212
<property key="yourName" type="string" required="false">
1313
<caption>Name</caption>
1414
<description>Enter your name</description>
15-
<% if (prompt) { %><prompt>Sample prompt for Maia</prompt><% } %>
15+
<prompt>Enter the your name to display in the widget</prompt>
1616
</property>
1717
</propertyGroup>
1818
</properties>

packages/generator-widget/generators/app/templates/pluggable/native/emptyTemplateTs/src/WidgetName.xml.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
66
<name><%- nameCamelCase %></name>
77
<description><%- description %></description>
8-
<% if (prompt) { %><prompt><%- prompt %></prompt><% } %>
8+
<prompt>A simple widget for displaying name</prompt>
99
<icon/>
1010
<properties>
1111
<propertyGroup caption="General">
1212
<property key="yourName" type="string" required="false">
1313
<caption>Name</caption>
1414
<description>Enter your name</description>
15-
<% if (prompt) { %><prompt>Sample prompt for Maia</prompt><% } %>
15+
<prompt>Enter the your name to display in the widget</prompt>
1616
</property>
1717
</propertyGroup>
1818
</properties>

packages/generator-widget/generators/app/templates/pluggable/native/emptyTemplateTsFn/src/WidgetName.xml.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
66
<name><%- nameCamelCase %></name>
77
<description><%- description %></description>
8-
<% if (prompt) { %><prompt><%- prompt %></prompt><% } %>
8+
<prompt>A simple widget for displaying name</prompt>
99
<icon/>
1010
<properties>
1111
<propertyGroup caption="General">
1212
<property key="yourName" type="string" required="false">
1313
<caption>Name</caption>
1414
<description>Enter your name</description>
15-
<% if (prompt) { %><prompt>Sample prompt for Maia</prompt><% } %>
15+
<prompt>Enter the your name to display in the widget</prompt>
1616
</property>
1717
</propertyGroup>
1818
</properties>

packages/generator-widget/generators/app/templates/pluggable/native/fullTemplateJs/src/WidgetName.xml.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
66
<name><%- nameCamelCase %></name>
77
<description><%- description %></description>
8-
<% if (prompt) { %><prompt><%- prompt %></prompt><% } %>
8+
<prompt>Displays a stylable badge showing a dynamic value with optional click action</prompt>
99
<icon>
1010
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABp1BMVEUAAABV//9mzP9LtP9Ms/9Jtv9NsvdJsfpLtPpJsfdJsfhJsvhJsvdKsvdJsPhKsPhJsfdJsPhJsfdIsfhJsfdIsPdJsfhJsfhJsPhJsPhIsfhIsPdJsPdKsPdKsfdNsvdOsvdPs/dQs/dRtPdStPdTtPdUtfdWtvdXtvdauPdcuPdeufdeufhguvhiu/hju/hkvPhmvfhnvfhpvvhrv/huwPhvwfhxwfhywvhzwvh4xfl5xfl6xfl8xvl9xvl9x/mByPmCyfmFyvmGyvmJzPmKzPmLzfmNzvqPzvqQz/qT0PqU0PqU0fqX0vqY0vqa0/qe1fqg1vqj1/uk1/un2fup2vut2/uv3Puw3Puw3fuz3vu13/u23/u34Pu44Pu64fu64fy84vy94vy+4/y/4/zD5fzE5fzG5vzH5vzI5/zK6PzL6PzR6/zT7P3U7P3V7f3W7f3Y7v3Z7v3c8P3e8f3f8f3g8f3i8v3l8/3l9P3n9P3r9v7t9/7u9/7v+P7w+P7x+f7y+f70+v71+v74/P75/P76/f77/f78/f78/v79/v7+/v7////6dMsRAAAAG3RSTlMAAwURGxwhMTNic3SEh4iVp7XBzejt7vH5/f6PsMNWAAABsklEQVR4AWIYfGAUjIJRMAqYuYREJKWJAqLCPGwY+jnFpEkBEryMqPr5pEkFgkwo9kuTDviR/S9GhgFSHAgDuKXJAQIIA4TIMkAcEY4i0mQBVrgBkuQZwA43QJo8wIFhQEhEOIBQOutHJozDOP5Crp4e1RhkJ0tKGJFd6oNEdtmJyEIzpaZl5nrRZgaHM/2Pf5/vwXXfyagXgG93bwSAlEolowLMm9w83gibhXH2gKKVdD67gTnWjwCk+VVjMQS4suSnnjMLRVFc9sAHvAX2A9fySaXNBMbEZVUWscaHIMRuqwBgD8hDEbnsRmfjUKJkAQZGCTlO/xWBwIADQLIZBlY441MvfoF1xlFS/4fy+bzXKh4dgNJE7L3eh3tmtuWa+AMcMIY3dgUvZQpGEYmMw2kD7HC+R29UqyoXLaBd0QZxzgXgikLLDSqJTKU5HOcS0MsbA9jPqtwCRvXm2eorBbNIJBw3KJ9O4Yl+AAXdnyaLt7PWN3jRWLvzmAVp94zO5+n41/onfo/UpExxZqI0O7NQr0DhIq9Io7hQpbRYp7hiobRqo6ByFcNWuY6CUTAKRgEAo8X0lBD3V30AAAAASUVORK5CYII=
1111
</icon>
@@ -14,7 +14,7 @@
1414
<property key="value" type="attribute" required="false">
1515
<caption>Value</caption>
1616
<description>The attribute that contains the value for the badge</description>
17-
<% if (prompt) { %><prompt>Specify the attribute holding the widgets value</prompt><% } %>
17+
<prompt>Select the attribute that provides the content for this component</prompt>
1818
<attributeTypes>
1919
<attributeType name="String"/>
2020
<attributeType name="Enum"/>
@@ -28,7 +28,7 @@
2828
<property key="onClick" type="action" required="false">
2929
<caption>On click</caption>
3030
<description>Action to trigger when the badge is clicked</description>
31-
<% if (prompt) { %><prompt>Specify the action triggered when the widget is clicked</prompt><% } %>
31+
<prompt>Define the action to run when the component is clicked</prompt>
3232
</property>
3333
</propertyGroup>
3434
</properties>

packages/generator-widget/generators/app/templates/pluggable/native/fullTemplateJsFn/src/WidgetName.xml.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
66
<name><%- nameCamelCase %></name>
77
<description><%- description %></description>
8-
<% if (prompt) { %><prompt><%- prompt %></prompt><% } %>
8+
<prompt>Displays a stylable badge showing a dynamic value with optional click action</prompt>
99
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dgUvZQpGEYmMw2kD7HC+R29UqyoXLaBd0QZxzgXgikLLDSqJTKU5HOcS0MsbA9jPqtwCRvXm2eorBbNIJBw3KJ9O4Yl+AAXdnyaLt7PWN3jRWLvzmAVp94zO5+n41/onfo/UpExxZqI0O7NQr0DhIq9Io7hQpbRYp7hiobRqo6ByFcNWuY6CUTAKRgEAo8X0lBD3V30AAAAASUVORK5CYII=
1111
</icon>
@@ -14,7 +14,7 @@
1414
<property key="value" type="attribute" required="false">
1515
<caption>Value</caption>
1616
<description>The attribute that contains the value for the badge</description>
17-
<% if (prompt) { %><prompt>Specify the attribute holding the widgets value</prompt><% } %>
17+
<prompt>Select the attribute that provides the content for this component</prompt>
1818
<attributeTypes>
1919
<attributeType name="String"/>
2020
<attributeType name="Enum"/>
@@ -28,7 +28,7 @@
2828
<property key="onClick" type="action" required="false">
2929
<caption>On click</caption>
3030
<description>Action to trigger when the badge is clicked</description>
31-
<% if (prompt) { %><prompt>Specify the action triggered when the widget is clicked</prompt><% } %>
31+
<prompt>Define the action to run when the component is clicked</prompt>
3232
</property>
3333
</propertyGroup>
3434
</properties>

packages/generator-widget/generators/app/templates/pluggable/native/fullTemplateTs/src/WidgetName.xml.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
66
<name><%- nameCamelCase %></name>
77
<description><%- description %></description>
8-
<% if (prompt) { %><prompt><%- prompt %></prompt><% } %>
8+
<prompt>Displays a stylable badge showing a dynamic value with optional click action</prompt>
99
<icon>
1010
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABp1BMVEUAAABV//9mzP9LtP9Ms/9Jtv9NsvdJsfpLtPpJsfdJsfhJsvhJsvdKsvdJsPhKsPhJsfdJsPhJsfdIsfhJsfdIsPdJsfhJsfhJsPhJsPhIsfhIsPdJsPdKsPdKsfdNsvdOsvdPs/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AAAAASUVORK5CYII=
1111
</icon>
@@ -14,7 +14,7 @@
1414
<property key="value" type="attribute" required="false">
1515
<caption>Value</caption>
1616
<description>The attribute that contains the value for the badge</description>
17-
<% if (prompt) { %><prompt>Specify the attribute holding the widgets value</prompt><% } %>
17+
<prompt>Select the attribute that provides the content for this component</prompt>
1818
<attributeTypes>
1919
<attributeType name="String"/>
2020
<attributeType name="Enum"/>
@@ -28,7 +28,7 @@
2828
<property key="onClick" type="action" required="false">
2929
<caption>On click</caption>
3030
<description>Action to trigger when the badge is clicked</description>
31-
<% if (prompt) { %><prompt>Specify the action triggered when the widget is clicked</prompt><% } %>
31+
<prompt>Define the action to run when the component is clicked</prompt>
3232
</property>
3333
</propertyGroup>
3434
</properties>

packages/generator-widget/generators/app/templates/pluggable/native/fullTemplateTsFn/src/WidgetName.xml.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
66
<name><%- nameCamelCase %></name>
77
<description><%- description %></description>
8-
<% if (prompt) { %><prompt><%- prompt %></prompt><% } %>
8+
<prompt>Displays a stylable badge showing a dynamic value with optional click action</prompt>
99
<icon>
1010
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABp1BMVEUAAABV//9mzP9LtP9Ms/9Jtv9NsvdJsfpLtPpJsfdJsfhJsvhJsvdKsvdJsPhKsPhJsfdJsPhJsfdIsfhJsfdIsPdJsfhJsfhJsPhJsPhIsfhIsPdJsPdKsPdKsfdNsvdOsvdPs/dQs/dRtPdStPdTtPdUtfdWtvdXtvdauPdcuPdeufdeufhguvhiu/hju/hkvPhmvfhnvfhpvvhrv/huwPhvwfhxwfhywvhzwvh4xfl5xfl6xfl8xvl9xvl9x/mByPmCyfmFyvmGyvmJzPmKzPmLzfmNzvqPzvqQz/qT0PqU0PqU0fqX0vqY0vqa0/qe1fqg1vqj1/uk1/un2fup2vut2/uv3Puw3Puw3fuz3vu13/u23/u34Pu44Pu64fu64fy84vy94vy+4/y/4/zD5fzE5fzG5vzH5vzI5/zK6PzL6PzR6/zT7P3U7P3V7f3W7f3Y7v3Z7v3c8P3e8f3f8f3g8f3i8v3l8/3l9P3n9P3r9v7t9/7u9/7v+P7w+P7x+f7y+f70+v71+v74/P75/P76/f77/f78/f78/v79/v7+/v7////6dMsRAAAAG3RSTlMAAwURGxwhMTNic3SEh4iVp7XBzejt7vH5/f6PsMNWAAABsklEQVR4AWIYfGAUjIJRMAqYuYREJKWJAqLCPGwY+jnFpEkBEryMqPr5pEkFgkwo9kuTDviR/S9GhgFSHAgDuKXJAQIIA4TIMkAcEY4i0mQBVrgBkuQZwA43QJo8wIFhQEhEOIBQOutHJozDOP5Crp4e1RhkJ0tKGJFd6oNEdtmJyEIzpaZl5nrRZgaHM/2Pf5/vwXXfyagXgG93bwSAlEolowLMm9w83gibhXH2gKKVdD67gTnWjwCk+VVjMQS4suSnnjMLRVFc9sAHvAX2A9fySaXNBMbEZVUWscaHIMRuqwBgD8hDEbnsRmfjUKJkAQZGCTlO/xWBwIADQLIZBlY441MvfoF1xlFS/4fy+bzXKh4dgNJE7L3eh3tmtuWa+AMcMIY3dgUvZQpGEYmMw2kD7HC+R29UqyoXLaBd0QZxzgXgikLLDSqJTKU5HOcS0MsbA9jPqtwCRvXm2eorBbNIJBw3KJ9O4Yl+AAXdnyaLt7PWN3jRWLvzmAVp94zO5+n41/onfo/UpExxZqI0O7NQr0DhIq9Io7hQpbRYp7hiobRqo6ByFcNWuY6CUTAKRgEAo8X0lBD3V30AAAAASUVORK5CYII=
1111
</icon>
@@ -14,7 +14,7 @@
1414
<property key="value" type="attribute" required="false">
1515
<caption>Value</caption>
1616
<description>The attribute that contains the value for the badge</description>
17-
<% if (prompt) { %><prompt>Specify the attribute holding the widgets value</prompt><% } %>
17+
<prompt>Select the attribute that provides the content for this component</prompt>
1818
<attributeTypes>
1919
<attributeType name="String"/>
2020
<attributeType name="Enum"/>
@@ -28,7 +28,7 @@
2828
<property key="onClick" type="action" required="false">
2929
<caption>On click</caption>
3030
<description>Action to trigger when the badge is clicked</description>
31-
<% if (prompt) { %><prompt>Specify the action triggered when the widget is clicked</prompt><% } %>
31+
<prompt>Define the action to run when the component is clicked</prompt>
3232
</property>
3333
</propertyGroup>
3434
</properties>

packages/generator-widget/generators/app/templates/pluggable/web/emptyTemplateJs/src/WidgetName.xml.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
66
<name><%- nameCamelCase %></name>
77
<description><%- description %></description>
8-
<% if (prompt) { %><prompt><%- prompt %></prompt><% } %>
8+
<prompt>A simple widget for displaying text</prompt>
99
<icon/>
1010
<properties>
1111
<propertyGroup caption="General">
1212
<property key="sampleText" type="string" required="false">
1313
<caption>Default value</caption>
1414
<description>Sample text input</description>
15-
<% if (prompt) { %><prompt>Sample prompt for Maia</prompt><% } %>
15+
<prompt>Enter the text to display in the widget</prompt>
1616
</property>
1717
</propertyGroup>
1818
</properties>

0 commit comments

Comments
 (0)