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 ebf44a0  todomvc-crux: refactor name
ebf44a0 is described below

commit ebf44a0b7878224d8dbb0bc9b7165b77e72a61bf
Author: Carlos Rovira <[email protected]>
AuthorDate: Thu Feb 13 19:59:19 2020 +0100

    todomvc-crux: refactor name
---
 examples/crux/{todomvc => todomvc-jewel-crux}/asconfig.json         | 0
 examples/crux/{todomvc => todomvc-jewel-crux}/build.xml             | 0
 examples/crux/{todomvc => todomvc-jewel-crux}/pom.xml               | 0
 examples/crux/{todomvc => todomvc-jewel-crux}/readme.md             | 0
 .../src/main/config/compile-app-config.xml                          | 0
 .../src/main/resources/todomvc-index-template.html                  | 0
 .../src/main/resources/todomvc-styles.css                           | 0
 .../crux/{todomvc => todomvc-jewel-crux}/src/main/royale/App.mxml   | 6 ++++++
 .../src/main/royale/jewel/todomvc/config/Beans.mxml                 | 0
 .../src/main/royale/jewel/todomvc/controllers/TodoController.as     | 2 ++
 .../src/main/royale/jewel/todomvc/events/TodoEvent.as               | 0
 .../src/main/royale/jewel/todomvc/models/TodoModel.as               | 0
 .../src/main/royale/jewel/todomvc/renderers/TodoItemRenderer.mxml   | 0
 .../src/main/royale/jewel/todomvc/views/TodoFooter.mxml             | 0
 .../src/main/royale/jewel/todomvc/views/TodoHeader.mxml             | 0
 .../src/main/royale/jewel/todomvc/views/TodoListSection.mxml        | 0
 .../src/main/royale/jewel/todomvc/vos/TodoVO.as                     | 0
 examples/crux/{todomvc => todomvc-jewel-crux}/todomvc.as3proj       | 0
 18 files changed, 8 insertions(+)

diff --git a/examples/crux/todomvc/asconfig.json 
b/examples/crux/todomvc-jewel-crux/asconfig.json
similarity index 100%
rename from examples/crux/todomvc/asconfig.json
rename to examples/crux/todomvc-jewel-crux/asconfig.json
diff --git a/examples/crux/todomvc/build.xml 
b/examples/crux/todomvc-jewel-crux/build.xml
similarity index 100%
rename from examples/crux/todomvc/build.xml
rename to examples/crux/todomvc-jewel-crux/build.xml
diff --git a/examples/crux/todomvc/pom.xml 
b/examples/crux/todomvc-jewel-crux/pom.xml
similarity index 100%
rename from examples/crux/todomvc/pom.xml
rename to examples/crux/todomvc-jewel-crux/pom.xml
diff --git a/examples/crux/todomvc/readme.md 
b/examples/crux/todomvc-jewel-crux/readme.md
similarity index 100%
rename from examples/crux/todomvc/readme.md
rename to examples/crux/todomvc-jewel-crux/readme.md
diff --git a/examples/crux/todomvc/src/main/config/compile-app-config.xml 
b/examples/crux/todomvc-jewel-crux/src/main/config/compile-app-config.xml
similarity index 100%
rename from examples/crux/todomvc/src/main/config/compile-app-config.xml
rename to 
examples/crux/todomvc-jewel-crux/src/main/config/compile-app-config.xml
diff --git 
a/examples/crux/todomvc/src/main/resources/todomvc-index-template.html 
b/examples/crux/todomvc-jewel-crux/src/main/resources/todomvc-index-template.html
similarity index 100%
rename from examples/crux/todomvc/src/main/resources/todomvc-index-template.html
rename to 
examples/crux/todomvc-jewel-crux/src/main/resources/todomvc-index-template.html
diff --git a/examples/crux/todomvc/src/main/resources/todomvc-styles.css 
b/examples/crux/todomvc-jewel-crux/src/main/resources/todomvc-styles.css
similarity index 100%
rename from examples/crux/todomvc/src/main/resources/todomvc-styles.css
rename to examples/crux/todomvc-jewel-crux/src/main/resources/todomvc-styles.css
diff --git a/examples/crux/todomvc/src/main/royale/App.mxml 
b/examples/crux/todomvc-jewel-crux/src/main/royale/App.mxml
similarity index 93%
rename from examples/crux/todomvc/src/main/royale/App.mxml
rename to examples/crux/todomvc-jewel-crux/src/main/royale/App.mxml
index 3d5aec4..419c72c 100644
--- a/examples/crux/todomvc/src/main/royale/App.mxml
+++ b/examples/crux/todomvc-jewel-crux/src/main/royale/App.mxml
@@ -34,6 +34,7 @@
         <![CDATA[
             import org.apache.royale.collections.ArrayList;
             import org.apache.royale.reflection.registerClassAlias;
+            import org.apache.royale.storage.AMFStorage;
 
             /**
              *  Register ArrayCollection alias to map to ArrayList
@@ -41,7 +42,12 @@
             public function setUp():void
                        {
                                
registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
+
+                var itemArr:Array = storage.data["items"] || [];
+                trace(itemArr);
                        }
+
+            public var storage:AMFStorage = AMFStorage.getLocal("todomvc");
         ]]>
     </fx:Script>
 
diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/config/Beans.mxml 
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/config/Beans.mxml
similarity index 100%
rename from 
examples/crux/todomvc/src/main/royale/jewel/todomvc/config/Beans.mxml
rename to 
examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/config/Beans.mxml
diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
 
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/controllers/TodoController.as
similarity index 99%
rename from 
examples/crux/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
rename to 
examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/controllers/TodoController.as
index 33efde6..caa309c 100644
--- 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/controllers/TodoController.as
+++ 
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/controllers/TodoController.as
@@ -46,6 +46,8 @@ package jewel.todomvc.controllers
                public function setUp():void {
                        // retrieve local items and use it if exists
                        model.allItems = new ArrayList(model.getItemStore());
+                       model.allItems = new ArrayList([]);
+                       saveDataToLocal();
                        
                        model.setUpFilteredCollections();
                        model.listItems = model.allItems;
diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/events/TodoEvent.as 
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/events/TodoEvent.as
similarity index 100%
rename from 
examples/crux/todomvc/src/main/royale/jewel/todomvc/events/TodoEvent.as
rename to 
examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/events/TodoEvent.as
diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/models/TodoModel.as 
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/models/TodoModel.as
similarity index 100%
rename from 
examples/crux/todomvc/src/main/royale/jewel/todomvc/models/TodoModel.as
rename to 
examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/models/TodoModel.as
diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/renderers/TodoItemRenderer.mxml
 
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/renderers/TodoItemRenderer.mxml
similarity index 100%
rename from 
examples/crux/todomvc/src/main/royale/jewel/todomvc/renderers/TodoItemRenderer.mxml
rename to 
examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/renderers/TodoItemRenderer.mxml
diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoFooter.mxml 
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/views/TodoFooter.mxml
similarity index 100%
rename from 
examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoFooter.mxml
rename to 
examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/views/TodoFooter.mxml
diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoHeader.mxml 
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/views/TodoHeader.mxml
similarity index 100%
rename from 
examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoHeader.mxml
rename to 
examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/views/TodoHeader.mxml
diff --git 
a/examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoListSection.mxml
 
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/views/TodoListSection.mxml
similarity index 100%
rename from 
examples/crux/todomvc/src/main/royale/jewel/todomvc/views/TodoListSection.mxml
rename to 
examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/views/TodoListSection.mxml
diff --git a/examples/crux/todomvc/src/main/royale/jewel/todomvc/vos/TodoVO.as 
b/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/vos/TodoVO.as
similarity index 100%
rename from examples/crux/todomvc/src/main/royale/jewel/todomvc/vos/TodoVO.as
rename to 
examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc/vos/TodoVO.as
diff --git a/examples/crux/todomvc/todomvc.as3proj 
b/examples/crux/todomvc-jewel-crux/todomvc.as3proj
similarity index 100%
rename from examples/crux/todomvc/todomvc.as3proj
rename to examples/crux/todomvc-jewel-crux/todomvc.as3proj

Reply via email to