You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2019/12/15 19:21:53 UTC

[royale-asjs] branch develop updated: blog-examples: fix all blog examples and make asconfig.json work for all (except 13, that implies modules and will need more work. That one only is completed to build with maven). Ant and Moonshine should be tested and fixed by other contributors with time to do it.

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 9fe1592  blog-examples: fix all blog examples and make asconfig.json work for all (except 13, that implies modules and will need more work. That one only is completed to build with maven). Ant and Moonshine should be tested and fixed by other contributors with time to do it.
9fe1592 is described below

commit 9fe1592a2af4579c83c467a8abb23b73e5f992a7
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Dec 15 20:21:42 2019 +0100

    blog-examples: fix all blog examples and make asconfig.json work for all (except 13, that implies modules and will need more work. That one only is completed to build with maven). Ant and Moonshine should be tested and fixed by other contributors with time to do it.
---
 examples/blog/BE0002_Using_Jewel_Alert_Control/asconfig.json     | 2 +-
 examples/blog/BE0003_Using_Jewel_Slider_Control/asconfig.json    | 6 ++++--
 .../blog/BE0004_Adding_an_item_to_a_Jewel_List/asconfig.json     | 4 ++--
 .../BE0005_Creating_a_group_of_Jewel_RadioButtons/asconfig.json  | 2 +-
 .../asconfig.json                                                | 9 ++++++---
 .../asconfig.json                                                | 8 +++++---
 .../asconfig.json                                                | 2 +-
 .../BE0009_Using_an_Item_ Renderer_with_a_List/asconfig.json     | 9 ++++++---
 .../main/royale/BE0009_Using_an_Item_Renderer_with_a_List.mxml   | 7 +++----
 .../src/main/royale/itemRenderers/IconListItemRenderer.mxml      | 8 ++++----
 .../BE0010_Customization_through_the_Royale_API/asconfig.json    | 9 ++++++---
 .../main/royale/BE0010_Customization_through_the_Royale_API.mxml | 4 ++--
 .../MainJewelApp/src/main/royale/MainJewelApp.mxml               | 4 ++--
 13 files changed, 43 insertions(+), 31 deletions(-)

diff --git a/examples/blog/BE0002_Using_Jewel_Alert_Control/asconfig.json b/examples/blog/BE0002_Using_Jewel_Alert_Control/asconfig.json
index e328790..e0df84a 100644
--- a/examples/blog/BE0002_Using_Jewel_Alert_Control/asconfig.json
+++ b/examples/blog/BE0002_Using_Jewel_Alert_Control/asconfig.json
@@ -23,7 +23,7 @@
         "targets": ["JSRoyale"],
         "source-map": true,
         "html-template": "src/main/resources/jewel-example-index-template.html",
-        "theme": "${royalelib}/themes/Jewel-Light-NoFlat-Emphasized-Red-Theme/src/main/resources/defaults.css"
+        "theme": "${royalelib}/themes/Jewel-Light-NoFlat-Primary-Topaz-Theme/src/main/resources/defaults.css"
     },
     "additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions",
     "files":
diff --git a/examples/blog/BE0003_Using_Jewel_Slider_Control/asconfig.json b/examples/blog/BE0003_Using_Jewel_Slider_Control/asconfig.json
index 4b6259e..bc23fe7 100644
--- a/examples/blog/BE0003_Using_Jewel_Slider_Control/asconfig.json
+++ b/examples/blog/BE0003_Using_Jewel_Slider_Control/asconfig.json
@@ -21,11 +21,13 @@
     "compilerOptions": {
         "debug": false,
         "targets": ["JSRoyale","SWF"],
-        "source-map": true
+        "source-map": true,
+        "html-template": "src/main/resources/jewel-example-index-template.html",
+        "theme": "${royalelib}/themes/Jewel-Light-NoFlat-Primary-Topaz-Theme/src/main/resources/defaults.css"
     },
     "additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions",
     "files":
     [
-        "src/main/royale/App.mxml"
+        "src/main/royale/BE0003_Using_Jewel_Slider_Control.mxml"
     ]
 }
diff --git a/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/asconfig.json b/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/asconfig.json
index e4c56ca..1d3a0de 100644
--- a/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/asconfig.json
+++ b/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/asconfig.json
@@ -20,10 +20,10 @@
     "config": "royale",
     "compilerOptions": {
         "debug": false,
-        "targets": ["SWF", "JSRoyale"],
+        "targets": ["JSRoyale", "SWF"],
         "source-map": true,
         "html-template": "src/main/resources/jewel-example-index-template.html",
-        "theme": "${royalelib}/themes/JewelTheme/src/main/resources/defaults.css"
+        "theme": "${royalelib}/themes/Jewel-Light-NoFlat-Primary-Amethyst-Theme/src/main/resources/defaults.css"
     },
     "copySourcePathAssets": true,
     "additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions",
diff --git a/examples/blog/BE0005_Creating_a_group_of_Jewel_RadioButtons/asconfig.json b/examples/blog/BE0005_Creating_a_group_of_Jewel_RadioButtons/asconfig.json
index ca667ff..1b8d3d8 100644
--- a/examples/blog/BE0005_Creating_a_group_of_Jewel_RadioButtons/asconfig.json
+++ b/examples/blog/BE0005_Creating_a_group_of_Jewel_RadioButtons/asconfig.json
@@ -24,7 +24,7 @@
         "targets": ["JSRoyale"],
         "source-map": true,
         "html-template": "src/main/resources/jewel-example-index-template.html",
-        "theme": "${royalelib}/themes/JewelTheme/src/main/resources/defaults.css"
+        "theme": "${royalelib}/themes/Jewel-Light-NoFlat-Primary-Blue-Theme/src/main/resources/defaults.css"
     },
     "copySourcePathAssets": true,
     "additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions",
diff --git a/examples/blog/BE0006_Binding_the_text_property_of_a_Jewel_Textinput_to_update_a_text_label/asconfig.json b/examples/blog/BE0006_Binding_the_text_property_of_a_Jewel_Textinput_to_update_a_text_label/asconfig.json
index 4b6259e..a0d4958 100644
--- a/examples/blog/BE0006_Binding_the_text_property_of_a_Jewel_Textinput_to_update_a_text_label/asconfig.json
+++ b/examples/blog/BE0006_Binding_the_text_property_of_a_Jewel_Textinput_to_update_a_text_label/asconfig.json
@@ -20,12 +20,15 @@
     "config": "royale",
     "compilerOptions": {
         "debug": false,
-        "targets": ["JSRoyale","SWF"],
-        "source-map": true
+        "targets": ["JSRoyale"],
+        "source-map": true,
+        "html-template": "src/main/resources/jewel-example-index-template.html",
+        "theme": "${royalelib}/themes/Jewel-Light-NoFlat-Primary-Blue-Theme/src/main/resources/defaults.css"
     },
+    "copySourcePathAssets": true,
     "additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions",
     "files":
     [
-        "src/main/royale/App.mxml"
+        "src/main/royale/BE0006_Binding_the_text_property_of_a_Jewel_Textinput_to_update_a_text_label.mxml"
     ]
 }
diff --git a/examples/blog/BE0007_Selecting_options_from_a_group_of_jewel_checkbox_controls/asconfig.json b/examples/blog/BE0007_Selecting_options_from_a_group_of_jewel_checkbox_controls/asconfig.json
index 4b6259e..46701af 100644
--- a/examples/blog/BE0007_Selecting_options_from_a_group_of_jewel_checkbox_controls/asconfig.json
+++ b/examples/blog/BE0007_Selecting_options_from_a_group_of_jewel_checkbox_controls/asconfig.json
@@ -20,12 +20,14 @@
     "config": "royale",
     "compilerOptions": {
         "debug": false,
-        "targets": ["JSRoyale","SWF"],
-        "source-map": true
+        "targets": ["JSRoyale"],
+        "source-map": true,
+        "html-template": "src/main/resources/jewel-example-index-template.html",
+        "theme": "${royalelib}/themes/Jewel-Light-NoFlat-Primary-Blue-Theme/src/main/resources/defaults.css"
     },
     "additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions",
     "files":
     [
-        "src/main/royale/App.mxml"
+        "src/main/royale/BE0007_Selecting_options_from_a_group_of_jewel_checkbox_controls.mxml"
     ]
 }
diff --git a/examples/blog/BE0008_Using_View_States_to_show_or_hide_content/asconfig.json b/examples/blog/BE0008_Using_View_States_to_show_or_hide_content/asconfig.json
index 5424baf..cc74f3c 100644
--- a/examples/blog/BE0008_Using_View_States_to_show_or_hide_content/asconfig.json
+++ b/examples/blog/BE0008_Using_View_States_to_show_or_hide_content/asconfig.json
@@ -20,7 +20,7 @@
     "config": "royale",
     "compilerOptions": {
         "debug": false,
-        "targets": ["JSRoyale", "SWF"],
+        "targets": ["JSRoyale"],
         "source-map": true,
         "html-template": "src/main/resources/jewel-example-index-template.html",
         "theme": "${royalelib}/themes/JewelTheme/src/main/resources/defaults.css"
diff --git a/examples/blog/BE0009_Using_an_Item_ Renderer_with_a_List/asconfig.json b/examples/blog/BE0009_Using_an_Item_ Renderer_with_a_List/asconfig.json
index 4b6259e..34e7c91 100644
--- a/examples/blog/BE0009_Using_an_Item_ Renderer_with_a_List/asconfig.json	
+++ b/examples/blog/BE0009_Using_an_Item_ Renderer_with_a_List/asconfig.json	
@@ -20,12 +20,15 @@
     "config": "royale",
     "compilerOptions": {
         "debug": false,
-        "targets": ["JSRoyale","SWF"],
-        "source-map": true
+        "targets": ["JSRoyale"],
+        "source-map": true,
+        "html-template": "src/main/resources/jewel-example-index-template.html",
+        "theme": "${royalelib}/themes/Jewel-Light-NoFlat-Primary-Green-Theme/src/main/resources/defaults.css"
     },
+    "copySourcePathAssets": true,
     "additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions",
     "files":
     [
-        "src/main/royale/App.mxml"
+        "src/main/royale/BE0009_Using_an_Item_Renderer_with_a_List.mxml"
     ]
 }
diff --git a/examples/blog/BE0009_Using_an_Item_ Renderer_with_a_List/src/main/royale/BE0009_Using_an_Item_Renderer_with_a_List.mxml b/examples/blog/BE0009_Using_an_Item_ Renderer_with_a_List/src/main/royale/BE0009_Using_an_Item_Renderer_with_a_List.mxml
index e0f6ed2..6510acb 100644
--- a/examples/blog/BE0009_Using_an_Item_ Renderer_with_a_List/src/main/royale/BE0009_Using_an_Item_Renderer_with_a_List.mxml	
+++ b/examples/blog/BE0009_Using_an_Item_ Renderer_with_a_List/src/main/royale/BE0009_Using_an_Item_Renderer_with_a_List.mxml	
@@ -43,10 +43,9 @@
 
     <j:initialView>
         <j:View>
-            <js:beads>
+            <j:beads>
                 <j:HorizontalCenteredLayout/>
-                <js:ApplicationDataBinding/>
-            </js:beads>
+            </j:beads>
 
             <j:Card width="270">
                 <html:H3 text="Jewel List With ItemRenderer"/>
@@ -56,7 +55,7 @@
 						<js:ConstantBinding
 							sourceID="listModel"
 							sourcePropertyName="iconListData"
-							destinationPropertyName="dataProvider" />
+							destinationPropertyName="dataProvider"/>
 					</j:beads>
 				</j:List>
             </j:Card>
diff --git a/examples/blog/BE0009_Using_an_Item_ Renderer_with_a_List/src/main/royale/itemRenderers/IconListItemRenderer.mxml b/examples/blog/BE0009_Using_an_Item_ Renderer_with_a_List/src/main/royale/itemRenderers/IconListItemRenderer.mxml
index 9a3119b..2f2a14c 100644
--- a/examples/blog/BE0009_Using_an_Item_ Renderer_with_a_List/src/main/royale/itemRenderers/IconListItemRenderer.mxml	
+++ b/examples/blog/BE0009_Using_an_Item_ Renderer_with_a_List/src/main/royale/itemRenderers/IconListItemRenderer.mxml	
@@ -35,13 +35,13 @@ limitations under the License.
 		]]>
 	</fx:Script>
 
-    <mdl:beads>
+    <j:beads>
         <js:ItemRendererDataBinding />
-    </mdl:beads>
+    </j:beads>
     
-    <js:FontIcon text="{iconList.icon}" material="true" visible="{iconList.icon != null}"/>
+    <js:FontIcon text="{iconList ? iconList.icon : ''}" material="true" visible="{iconList ? iconList.icon != null : false}"/>
 
-    <html:Span text="{iconList.label}"/>
+    <html:Span text="{iconList ? iconList.label : ''}"/>
     
 </j:ListItemRenderer>
 
diff --git a/examples/blog/BE0010_Customization_through_the_Royale_API/asconfig.json b/examples/blog/BE0010_Customization_through_the_Royale_API/asconfig.json
index 4b6259e..1d7cfb5 100644
--- a/examples/blog/BE0010_Customization_through_the_Royale_API/asconfig.json
+++ b/examples/blog/BE0010_Customization_through_the_Royale_API/asconfig.json
@@ -20,12 +20,15 @@
     "config": "royale",
     "compilerOptions": {
         "debug": false,
-        "targets": ["JSRoyale","SWF"],
-        "source-map": true
+        "targets": ["JSRoyale"],
+        "source-map": true,
+        "html-template": "src/main/resources/jewel-example-index-template.html",
+        "theme": "${royalelib}/themes/Jewel-Light-NoFlat-Primary-Green-Theme/src/main/resources/defaults.css"
     },
+    "copySourcePathAssets": true,
     "additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions",
     "files":
     [
-        "src/main/royale/App.mxml"
+        "src/main/royale/BE0010_Customization_through_the_Royale_API.mxml"
     ]
 }
diff --git a/examples/blog/BE0010_Customization_through_the_Royale_API/src/main/royale/BE0010_Customization_through_the_Royale_API.mxml b/examples/blog/BE0010_Customization_through_the_Royale_API/src/main/royale/BE0010_Customization_through_the_Royale_API.mxml
index 510e819..439a89e 100644
--- a/examples/blog/BE0010_Customization_through_the_Royale_API/src/main/royale/BE0010_Customization_through_the_Royale_API.mxml
+++ b/examples/blog/BE0010_Customization_through_the_Royale_API/src/main/royale/BE0010_Customization_through_the_Royale_API.mxml
@@ -83,9 +83,9 @@
 
     <j:initialView>
         <j:View>
-            <js:beads>
+            <j:beads>
                 <j:HorizontalCenteredLayout/>
-            </js:beads>
+            </j:beads>
 
             <j:Card width="350">
                 <html:H3 text="Customization through Royale API"/>
diff --git a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/MainJewelApp/src/main/royale/MainJewelApp.mxml b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/MainJewelApp/src/main/royale/MainJewelApp.mxml
index 878aa62..819204d 100644
--- a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/MainJewelApp/src/main/royale/MainJewelApp.mxml
+++ b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/MainJewelApp/src/main/royale/MainJewelApp.mxml
@@ -37,9 +37,9 @@
 
     <j:initialView>
         <j:View>
-            <js:beads>
+            <j:beads>
                 <j:HorizontalCenteredLayout/>
-            </js:beads>
+            </j:beads>
 
             <j:Card percentWidth="90">
                 <html:H3 text="Dividing an Apache Royale application with modules"/>