emergent-core 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.bnsignore +16 -0
- data/History.txt +4 -0
- data/Manifest.txt +348 -0
- data/README.rdoc +47 -0
- data/Rakefile +39 -0
- data/app_generators/emergent_core/USAGE +5 -0
- data/app_generators/emergent_core/emergent_core_generator.rb +73 -0
- data/app_generators/emergent_core/templates/core/actionscript.properties +16 -0
- data/app_generators/emergent_core/templates/core/actionscriptair.properties +16 -0
- data/app_generators/emergent_core/templates/core/app.yaml.erb +12 -0
- data/app_generators/emergent_core/templates/core/default_tasks.rake +51 -0
- data/app_generators/emergent_core/templates/core/empty.txt +0 -0
- data/app_generators/emergent_core/templates/core/expressInstall.swf +0 -0
- data/app_generators/emergent_core/templates/core/flex.properties +2 -0
- data/app_generators/emergent_core/templates/core/generate.rb +17 -0
- data/app_generators/emergent_core/templates/core/html-template/AC_OETags.js +276 -0
- data/app_generators/emergent_core/templates/core/html-template/history/history.css +6 -0
- data/app_generators/emergent_core/templates/core/html-template/history/history.js +645 -0
- data/app_generators/emergent_core/templates/core/html-template/history/historyFrame.html +29 -0
- data/app_generators/emergent_core/templates/core/html-template/index.template.html +121 -0
- data/app_generators/emergent_core/templates/core/html-template/playerProductInstall.swf +0 -0
- data/app_generators/emergent_core/templates/core/index.html.erb +18 -0
- data/app_generators/emergent_core/templates/core/index.yaml +11 -0
- data/app_generators/emergent_core/templates/core/mainair-app.xml +134 -0
- data/app_generators/emergent_core/templates/core/mainapp-config.xml +21 -0
- data/app_generators/emergent_core/templates/core/mainapp.mxml +106 -0
- data/app_generators/emergent_core/templates/core/project-textmate.erb +52 -0
- data/app_generators/emergent_core/templates/core/project.properties +18 -0
- data/app_generators/emergent_core/templates/core/projectair.properties +24 -0
- data/app_generators/emergent_core/templates/core/swfobject.js +5 -0
- data/bin/emergent +17 -0
- data/lib/emergent_core.rb +49 -0
- data/lib/restfulx/active_foo.rb +194 -0
- data/lib/restfulx/active_record_tasks.rb +81 -0
- data/lib/restfulx/configuration.rb +76 -0
- data/lib/restfulx/datamapper_foo.rb +31 -0
- data/lib/restfulx/rails/recipes.rb +60 -0
- data/lib/restfulx/rails/swf_helper.rb +60 -0
- data/lib/restfulx/tasks.rb +85 -0
- data/lib/restfulx.rb +117 -0
- data/rails_generators/emergent_cms/USAGE +5 -0
- data/rails_generators/emergent_cms/emergent_cms_generator.rb +21 -0
- data/rails_generators/emergent_cms/templates/PagesEditModel.as +114 -0
- data/rails_generators/emergent_cms/templates/PagesEditView.mxml +102 -0
- data/rails_generators/emergent_config/USAGE +5 -0
- data/rails_generators/emergent_config/emergent_config_generator.rb +330 -0
- data/rails_generators/emergent_config/templates/app/controllers/accounts_controller.rb +104 -0
- data/rails_generators/emergent_config/templates/app/controllers/addresses_controller.rb +97 -0
- data/rails_generators/emergent_config/templates/app/controllers/application.rb +26 -0
- data/rails_generators/emergent_config/templates/app/controllers/assets_controller.rb +1 -0
- data/rails_generators/emergent_config/templates/app/controllers/content_assignments_controller.rb +97 -0
- data/rails_generators/emergent_config/templates/app/controllers/contents_controller.rb +114 -0
- data/rails_generators/emergent_config/templates/app/controllers/sessions_controller.rb +72 -0
- data/rails_generators/emergent_config/templates/app/controllers/sites_controller.rb +1 -0
- data/rails_generators/emergent_config/templates/app/controllers/users_controller.rb +97 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/command/ICommand.as +16 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/command/Undoable.as +46 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/command/UpdateDocumentCommand.as +73 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/event/DocumentEvent.as +46 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/event/NavigationEvent.as +31 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/event/ResourceEvent.as +27 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/event/UndoEvent.as +36 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/manager/AboutUsManager.as +15 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/manager/AccountManager.as +31 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/manager/AuthenticationManager.as +76 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/manager/ContentManager.as +92 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/manager/DocumentManager.as +131 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/manager/DocumentsManager.as +156 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/manager/HomeManager.as +18 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/manager/MainManager.as +23 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/manager/PagesManager.as +71 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/manager/ResourceManager.as +195 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/manager/SiteManager.as +25 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/manager/UndoManager.as +143 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/map/DocumentMap.mxml +123 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/map/DocumentsMap.mxml +134 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/map/ManagerPresentationModelMap.mxml +59 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/map/ObjectMap.mxml +75 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/map/PresentationModelViewMap.mxml +81 -0
- data/rails_generators/emergent_config/templates/app/flex/application/controllers/map/PresenterViewMap.mxml +67 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/constant/DocumentType.as +52 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/constant/Resource.as +25 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/constant/ResourceAction.as +28 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/constant/ResourceResult.as +8 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/domain/Account.as +32 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/domain/Address.as +26 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/domain/Asset.as +25 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/domain/AssetAssignment.as +25 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/domain/Content.as +46 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/domain/ContentAssignment.as +33 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/domain/Document.as +131 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/domain/PlainDocument.as +19 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/domain/RichDocument.as +19 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/domain/Session.as +13 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/domain/Snapshot.as +21 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/domain/User.as +28 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/factory/DocumentFactory.as +61 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/factory/DocumentViewFactory.as +59 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/factory/ResourceFactory.as +28 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/presentation/AboutUsModel.as +22 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/presentation/AccountModel.as +68 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/presentation/AuthenticationModel.as +44 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/presentation/ContactUsModel.as +45 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/presentation/ContentModel.as +70 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/presentation/DocumentModel.as +235 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/presentation/DocumentsModel.as +169 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/presentation/HomeModel.as +23 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/presentation/MainModel.as +35 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/presentation/PagesModel.as +44 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/presentation/ProfileModel.as +99 -0
- data/rails_generators/emergent_config/templates/app/flex/application/models/presentation/ResourceModel.as +100 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/about_us/about_us.mxml +105 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/account/account.mxml +97 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/contact_us/contact_us.mxml +65 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/document/document.mxml +71 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/document/documents.mxml +201 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/document/plain_document.mxml +9 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/document/rich_document.mxml +12 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/gallery/gallery.mxml +37 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/home/home.mxml +58 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/home/home_presenter.as +81 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/home/home_troparchy.mxml +71 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/login/login.mxml +50 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/main/main.mxml +131 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/main/main_presenter.as +166 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/main/main_troparchy.mxml +74 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bar_bottom_model.as +13 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bar_bottom_presenter.as +10 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bar_bottom_view.mxml +48 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bar_left_model.as +13 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bar_left_presenter.as +10 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bar_left_view.mxml +43 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bar_right_model.as +13 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bar_right_presenter.as +10 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bar_right_view.mxml +47 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bar_top_model.as +13 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bar_top_presenter.as +10 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bar_top_view.mxml +49 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bars_presenter.as +63 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bars_troparchy.mxml +63 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/navigation/navigation_bars_view.mxml +59 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/pages/pages.mxml +44 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/pages/pages_presenter.as +83 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/pages/pages_troparchy.mxml +62 -0
- data/rails_generators/emergent_config/templates/app/flex/application/views/profile/profile.mxml +73 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/fonts/MyriadPro-Bold.otf +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/fonts/MyriadPro-Regular.otf +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/html/lorem.html +3 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/alexgrey/Picture10.png +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/alexgrey/Picture11.png +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/alexgrey/Picture12.png +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/alexgrey/Picture13.png +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/alexgrey/Picture14.png +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/alexgrey/Picture3.png +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/alexgrey/Picture4.png +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/alexgrey/Picture5.png +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/alexgrey/Picture6.png +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/alexgrey/Picture7.png +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/alexgrey/Picture8.png +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/alexgrey/Picture9.png +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/hot_nebula_0.jpg +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/hot_nebula_180.jpg +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/hot_nebula_270.jpg +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/hot_nebula_90.jpg +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/hot_nebula_bottom.jpg +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/images/hot_nebula_top.jpg +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/styles/itunes7Bg.jpg +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/styles/jukebox.css +764 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/styles/jukeboxGfx.swf +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/styles/obsidian.css +734 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/styles/obsidianBg.jpg +0 -0
- data/rails_generators/emergent_config/templates/app/flex/assets/styles/obsidianGfx.swf +0 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/actions/LayoutAction.as +377 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/actions/SimpleLayoutAction.as +210 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/animators/FourDTweenCollection.mxml +50 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/animators/IAnimator.as +39 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/animators/TweenMaxAnimator.as +269 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/cameras/AstroCamera.as +177 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/components/FourDDataGrid.mxml +105 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/components/FourDItemRenderer.mxml +54 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/CenterPerspectiveProjection.as +72 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/ComplexCondition.as +44 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/ConditionsUtil.as +82 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/FourDComponent.as +309 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/InstanceMethodInvoker.as +50 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/InstancePropertyInjector.as +43 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/MethodCaller.as +51 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/Pathway.as +10 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/PathwayEvent.as +28 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/Pheron.as +34 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/Pheron2.as +41 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/PheronReceptor.as +125 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/Properties.as +57 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/Router.as +50 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/RouterUtil.as +70 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/SimpleCondition.as +42 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/SimpleZSortVO.as +1 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/SimpleZSorter.as +1 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/Tecton.as +70 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/Tecton2.as +234 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/TectonCache.as +111 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/TectonEvent.as +39 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/TectonMap.as +515 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/TectonMap2.as +289 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/TectonMapSample.mxml +73 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/TectonReceptor.as +43 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/TectonScope.as +38 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/TectonScopeProperties.as +18 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/core/TectonUtils.as +51 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/events/LayoutActionEvent.as +75 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/layouts/CarouselLayout.as +85 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/layouts/CircleLayout.as +102 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/layouts/CoverFlowLayout.as +136 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/layouts/FourDLayout.as +272 -0
- data/rails_generators/emergent_config/templates/app/flex/com/fourD/utils/TweenUtil.as +110 -0
- data/rails_generators/emergent_config/templates/app/helpers/accounts_helper.rb +93 -0
- data/rails_generators/emergent_config/templates/app/helpers/application_helper.rb +3 -0
- data/rails_generators/emergent_config/templates/app/models/account.rb +84 -0
- data/rails_generators/emergent_config/templates/app/models/account_mailer.rb +24 -0
- data/rails_generators/emergent_config/templates/app/models/account_observer.rb +17 -0
- data/rails_generators/emergent_config/templates/app/models/address.rb +2 -0
- data/rails_generators/emergent_config/templates/app/models/asset.rb +6 -0
- data/rails_generators/emergent_config/templates/app/models/asset_assignment.rb +4 -0
- data/rails_generators/emergent_config/templates/app/models/category.rb +35 -0
- data/rails_generators/emergent_config/templates/app/models/comment.rb +98 -0
- data/rails_generators/emergent_config/templates/app/models/content.rb +89 -0
- data/rails_generators/emergent_config/templates/app/models/content_assignment.rb +21 -0
- data/rails_generators/emergent_config/templates/app/models/image.rb +3 -0
- data/rails_generators/emergent_config/templates/app/models/post.rb +76 -0
- data/rails_generators/emergent_config/templates/app/models/section.rb +97 -0
- data/rails_generators/emergent_config/templates/app/models/site.rb +1 -0
- data/rails_generators/emergent_config/templates/app/models/tag.rb +1 -0
- data/rails_generators/emergent_config/templates/app/models/user.rb +4 -0
- data/rails_generators/emergent_config/templates/app/views/account_mailer/activation.erb +3 -0
- data/rails_generators/emergent_config/templates/app/views/account_mailer/signup_notification.erb +8 -0
- data/rails_generators/emergent_config/templates/config/Capfile +4 -0
- data/rails_generators/emergent_config/templates/config/README.txt +18 -0
- data/rails_generators/emergent_config/templates/config/deploy.rb +36 -0
- data/rails_generators/emergent_config/templates/config/routes.rb +72 -0
- data/rails_generators/emergent_config/templates/core/actionscript.properties +16 -0
- data/rails_generators/emergent_config/templates/core/actionscriptair.properties +16 -0
- data/rails_generators/emergent_config/templates/core/app.yaml.erb +12 -0
- data/rails_generators/emergent_config/templates/core/default_tasks.rake +51 -0
- data/rails_generators/emergent_config/templates/core/emergent_tasks.rake +42 -0
- data/rails_generators/emergent_config/templates/core/empty.txt +0 -0
- data/rails_generators/emergent_config/templates/core/expressInstall.swf +0 -0
- data/rails_generators/emergent_config/templates/core/flex.properties +2 -0
- data/rails_generators/emergent_config/templates/core/generate.rb +17 -0
- data/rails_generators/emergent_config/templates/core/html-template/AC_OETags.js +276 -0
- data/rails_generators/emergent_config/templates/core/html-template/history/history.css +6 -0
- data/rails_generators/emergent_config/templates/core/html-template/history/history.js +645 -0
- data/rails_generators/emergent_config/templates/core/html-template/history/historyFrame.html +29 -0
- data/rails_generators/emergent_config/templates/core/html-template/index.template.html +121 -0
- data/rails_generators/emergent_config/templates/core/html-template/playerProductInstall.swf +0 -0
- data/rails_generators/emergent_config/templates/core/index.html.erb +18 -0
- data/rails_generators/emergent_config/templates/core/index.yaml +11 -0
- data/rails_generators/emergent_config/templates/core/mainair-app.xml +134 -0
- data/rails_generators/emergent_config/templates/core/mainapp-config.xml +21 -0
- data/rails_generators/emergent_config/templates/core/mainapp.mxml +101 -0
- data/rails_generators/emergent_config/templates/core/project-textmate.erb +52 -0
- data/rails_generators/emergent_config/templates/core/project.properties +18 -0
- data/rails_generators/emergent_config/templates/core/projectair.properties +24 -0
- data/rails_generators/emergent_config/templates/core/restfulx.yml +14 -0
- data/rails_generators/emergent_config/templates/core/restfulx_tasks.rake +6 -0
- data/rails_generators/emergent_config/templates/core/swfobject.js +5 -0
- data/rails_generators/emergent_config/templates/db/migrate/create_accounts.rb +40 -0
- data/rails_generators/emergent_config/templates/db/migrate/create_addresses.rb +18 -0
- data/rails_generators/emergent_config/templates/db/migrate/create_asset_assignments.rb +19 -0
- data/rails_generators/emergent_config/templates/db/migrate/create_assets.rb +20 -0
- data/rails_generators/emergent_config/templates/db/migrate/create_content_assignments.rb +26 -0
- data/rails_generators/emergent_config/templates/db/migrate/create_contents.rb +21 -0
- data/rails_generators/emergent_config/templates/db/migrate/create_sessions.rb +16 -0
- data/rails_generators/emergent_config/templates/db/migrate/create_sites.rb +27 -0
- data/rails_generators/emergent_config/templates/db/migrate/create_users.rb +15 -0
- data/rails_generators/emergent_config/templates/lib/analytics.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/app_controller.rb.erb +26 -0
- data/rails_generators/emergent_config/templates/lib/as3corelib-0.92.1.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/as3crypto-1.3patched.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/as3crypto.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/as3ds-1.04.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/as3httpclientlib-1.0.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/authenticated_system.rb +189 -0
- data/rails_generators/emergent_config/templates/lib/authenticated_test_helper.rb +11 -0
- data/rails_generators/emergent_config/templates/lib/containerEx.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/flare.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/flash_session_hack.rb +27 -0
- data/rails_generators/emergent_config/templates/lib/flex2BrowserManager.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/flexlib.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/fluint.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/mate_0_8_6_enhanced.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/openflux.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/pv3d.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/restfulx.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/site_keys.rb +38 -0
- data/rails_generators/emergent_config/templates/lib/tweenMax.swc +0 -0
- data/rails_generators/emergent_config/templates/lib/urlkitFlex3.swc +0 -0
- data/rails_generators/emergent_config/templates/shell_script +31 -0
- data/rails_generators/emergent_controller/USAGE +5 -0
- data/rails_generators/emergent_controller/emergent_controller_generator.rb +25 -0
- data/rails_generators/emergent_controller/templates/controller.as.erb +37 -0
- data/rails_generators/emergent_core/USAGE +5 -0
- data/rails_generators/emergent_core/emergent_core_generator.rb +157 -0
- data/rails_generators/emergent_iphone/USAGE +5 -0
- data/rails_generators/emergent_iphone/emergent_iphone_generator.rb +27 -0
- data/rails_generators/emergent_scaffold/USAGE +5 -0
- data/rails_generators/emergent_scaffold/emergent_scaffold_generator.rb +157 -0
- data/rails_generators/emergent_scaffold/templates/component.mxml.erb +101 -0
- data/rails_generators/emergent_scaffold/templates/controller.rb.erb +101 -0
- data/rails_generators/emergent_scaffold/templates/edit_index_view.mxml.erb +114 -0
- data/rails_generators/emergent_scaffold/templates/edit_show_view.mxml.erb +84 -0
- data/rails_generators/emergent_scaffold/templates/filter_view.mxml.erb +1 -0
- data/rails_generators/emergent_scaffold/templates/fixtures.yml.erb +128 -0
- data/rails_generators/emergent_scaffold/templates/index_view.mxml.erb +58 -0
- data/rails_generators/emergent_scaffold/templates/item_renderer.mxml.erb +53 -0
- data/rails_generators/emergent_scaffold/templates/manager.as.erb +31 -0
- data/rails_generators/emergent_scaffold/templates/migration.rb.erb +22 -0
- data/rails_generators/emergent_scaffold/templates/model.as.erb +42 -0
- data/rails_generators/emergent_scaffold/templates/model.rb.erb +11 -0
- data/rails_generators/emergent_scaffold/templates/presentation_model.as.erb +33 -0
- data/rails_generators/emergent_scaffold/templates/presenter.as.erb +98 -0
- data/rails_generators/emergent_scaffold/templates/show_view.mxml.erb +50 -0
- data/rails_generators/emergent_scaffold/templates/view_map.mxml.erb +40 -0
- data/rails_generators/emergent_scaffold/templates/views_panel.mxml.erb +64 -0
- data/rails_generators/emergent_styler/USAGE +5 -0
- data/rails_generators/emergent_styler/emergent_styler_generator.rb +21 -0
- data/rails_generators/rx_yaml_scaffold/USAGE +51 -0
- data/rails_generators/rx_yaml_scaffold/rx_yaml_scaffold_generator.rb +49 -0
- data/script/console +10 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/spec/emergent_core_spec.rb +7 -0
- data/spec/spec_helper.rb +16 -0
- data/tasks/ann.rake +80 -0
- data/tasks/bones.rake +20 -0
- data/tasks/gem.rake +201 -0
- data/tasks/git.rake +40 -0
- data/tasks/manifest.rake +48 -0
- data/tasks/notes.rake +27 -0
- data/tasks/post_load.rake +39 -0
- data/tasks/rdoc.rake +50 -0
- data/tasks/rubyforge.rake +55 -0
- data/tasks/setup.rb +279 -0
- data/tasks/spec.rake +54 -0
- data/tasks/svn.rake +47 -0
- data/tasks/test.rake +40 -0
- data/test/test_emergent_core.rb +0 -0
- data/test/test_emergent_iphone_generator.rb +46 -0
- data/test/test_generator_helper.rb +29 -0
- metadata +437 -0
@@ -0,0 +1,131 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<mx:Canvas xmlns:mx="http://ns.adobe.com/mxml/2009"
|
3
|
+
xmlns:mate="http://mate.asfusion.com/"
|
4
|
+
xmlns:analytics="com.google.analytics.components.*"
|
5
|
+
xmlns:main="<%= base_package %>.views.main.*"
|
6
|
+
xmlns:map="<%= base_package %>.controllers.map.*"
|
7
|
+
xmlns:presentation="<%= base_package %>.models.presentation.*"
|
8
|
+
xmlns:doc="<%= base_package %>.views.document.*"
|
9
|
+
xmlns:pages="<%= base_package %>.views.pages.*"
|
10
|
+
xmlns:nav="<%= base_package %>.views.navigation.*"
|
11
|
+
xmlns:home="<%= base_package %>.views.home.*"
|
12
|
+
xmlns:login="<%= base_package %>.views.login.*"
|
13
|
+
xmlns:account="<%= base_package %>.views.account.*"
|
14
|
+
xmlns:aboutUs="<%= base_package %>.views.aboutUs.*"
|
15
|
+
xmlns:profile="<%= base_package %>.views.profile.*"
|
16
|
+
xmlns:contactUs="<%= base_package %>.views.contactUs.*"
|
17
|
+
xmlns:gallery="<%= base_package %>.views.gallery.*"
|
18
|
+
xmlns:core="com.fourD.emergent.core.*"
|
19
|
+
xmlns:layouts="com.fourD.emergent.layouts.*"
|
20
|
+
xmlns:components="com.fourD.emergent.components.*"
|
21
|
+
xmlns:animators="com.fourD.emergent.animators.*"
|
22
|
+
xmlns:url="http://www.allurent.com/2006/urlkit"
|
23
|
+
minWidth="1000"
|
24
|
+
minHeight="680"
|
25
|
+
paddingLeft="5"
|
26
|
+
paddingRight="5"
|
27
|
+
paddingTop="5"
|
28
|
+
paddingBottom="5"
|
29
|
+
width="100%"
|
30
|
+
height="100%">
|
31
|
+
|
32
|
+
<!-- Presenter and Model________________________________________________________ -->
|
33
|
+
|
34
|
+
<!-- Presenter Wraps the View and Handles Navigation Animations
|
35
|
+
Model allows you to easily call CRUD methods and handle sorting on data -->
|
36
|
+
<mx:Declarations>
|
37
|
+
<main:MainPresenter id="presenter" view="{this}"/>
|
38
|
+
<animators:FourDTweenCollection id="t"/>
|
39
|
+
</mx:Declarations>
|
40
|
+
|
41
|
+
<!-- URL Stuff _________________________________________________________________ -->
|
42
|
+
|
43
|
+
<mx:Declarations>
|
44
|
+
<!-- FlexBrowserManagerAdapter is Required for URLKit to Work -->
|
45
|
+
<url:FlexBrowserManagerAdapter applicationState="{urlRules}" />
|
46
|
+
<!--
|
47
|
+
This UrlNavigatorRule maps the selected index of the ViewStack to a Value in the URL.
|
48
|
+
The label property of the children is used to determine the URL for each child.
|
49
|
+
-->
|
50
|
+
<!-- Gotta love the Object hack to call the dynamic urlRules method the currentView.
|
51
|
+
You can only call the component by a String, so you can't dynamically use its ID -->
|
52
|
+
<!-- Used to set the current component in the states -->
|
53
|
+
<mx:Object id="urlComponent"/>
|
54
|
+
|
55
|
+
<url:UrlRuleSet id="urlRules">
|
56
|
+
<url:UrlValueRule urlFormat="/*" sourceValue="currentState" />
|
57
|
+
<url:UrlDelegateRule rule="{urlComponent.urlRules}"/>
|
58
|
+
</url:UrlRuleSet>
|
59
|
+
|
60
|
+
<!--<analytics:FlexTracker id="tracker" account="UA-111-222" mode="AS3" visualDebug="false"/>-->
|
61
|
+
</mx:Declarations>
|
62
|
+
|
63
|
+
<!-- States ___________________________________________________________________ -->
|
64
|
+
|
65
|
+
<!-- States are used for the URLs, to make them pretty.
|
66
|
+
As such, ALL component view changes should be mapped to states.
|
67
|
+
Makes life a lot easier -->
|
68
|
+
<mx:states>
|
69
|
+
<mx:State name="home"/>
|
70
|
+
<mx:State name="about"/>
|
71
|
+
<mx:State name="contact"/>
|
72
|
+
<mx:State name="gallery"/>
|
73
|
+
<mx:State name="login"/>
|
74
|
+
<mx:State name="account"/>
|
75
|
+
<mx:State name="profile"/>
|
76
|
+
<!-- Old way of changing component visibility...
|
77
|
+
<mx:SetProperty target="{presenter.visibleComponents}" value="{[model1View, model2View]}"/> -->
|
78
|
+
</mx:states>
|
79
|
+
|
80
|
+
<!-- Background Canvi _(for Papervision)_______________________________________ -->
|
81
|
+
|
82
|
+
<mx:Canvas id="skyBoxCanvas" width="100%" height="100%"
|
83
|
+
horizontalScrollPolicy="off" verticalScrollPolicy="off"/>
|
84
|
+
|
85
|
+
<mx:Canvas id="pv3dContainer"
|
86
|
+
clipContent="true" width="100%" height="100%"
|
87
|
+
horizontalScrollPolicy="off" verticalScrollPolicy="off"/>
|
88
|
+
|
89
|
+
<!-- GUI ______________________________________________________________________ -->
|
90
|
+
|
91
|
+
<mx:Panel width="150" height="30" id="fpsPanel" y="60"/>
|
92
|
+
|
93
|
+
<!-- Change visibility of core components so only one is visible at a time -->
|
94
|
+
<!-- Something is wrong with the FourDComponent's measure() method...
|
95
|
+
You must at times explicitly set the width and height, percents cause problems.
|
96
|
+
One way around this is to use top="0" bottom="0" left="0" right="0".
|
97
|
+
Also, if you nest fourDComponents, measuring is an issue -->
|
98
|
+
|
99
|
+
<profile:ProfileView id="profileView" name="profile"
|
100
|
+
pivotX="center" pivotY="center"
|
101
|
+
x="{this.width/2}" y="{this.height/2}"
|
102
|
+
tweens="{[t.centerPlaneFlipTweenTo]}"
|
103
|
+
tweenParams="{[{tween:t.centerPlaneFlipTweenTo, flipTo:t.centerPlaneFlipTweenFrom, when:'onStart'}]}"
|
104
|
+
click="{profileView.tween(event)}"/>
|
105
|
+
|
106
|
+
<contactUs:ContactUsView id="contactUsView" name="contact"
|
107
|
+
width="{this.width/3}" height="{this.height/2}"
|
108
|
+
pivotX="center" pivotY="center"
|
109
|
+
x="{this.width/2}" y="{this.height/2}"
|
110
|
+
tweens="{[t.centerPlaneFlipTweenTo]}"
|
111
|
+
tweenParams="{[{tween:t.centerPlaneFlipTweenTo, flipTo:t.centerPlaneFlipTweenFrom, when:'onStart'}]}"
|
112
|
+
click="{profileView.tween(event)}"/>
|
113
|
+
|
114
|
+
<nav:NavigationBarsView id="navigationBarsView" width="100%" height="100%"/>
|
115
|
+
|
116
|
+
<pages:PagesView id="pagesView" name="main"
|
117
|
+
width="{this.width}" height="{this.height}"
|
118
|
+
pivotX="center" pivotY="center"
|
119
|
+
x="{this.width/2}" y="{this.height/2}"/>
|
120
|
+
|
121
|
+
<account:AccountView id="accountView" name="account"
|
122
|
+
width="{this.width/3}" height="{this.height}" rotationY="-10"
|
123
|
+
x="{accountView.width/2 + 100}" y="{this.height/2}"/>
|
124
|
+
|
125
|
+
<login:LoginView id="loginView" name="login"
|
126
|
+
width="{this.width/4}" height="{this.height/4}" rotationY="30"
|
127
|
+
x="{this.width/2 + loginView.width/2}" y="{this.height/2}"/>
|
128
|
+
|
129
|
+
<doc:DocumentsView id="documentsView" name="documents"/>
|
130
|
+
|
131
|
+
</mx:Canvas>
|
data/rails_generators/emergent_config/templates/app/flex/application/views/main/main_presenter.as
ADDED
@@ -0,0 +1,166 @@
|
|
1
|
+
package <%= base_package %>.views.main {
|
2
|
+
|
3
|
+
import com.fourD.emergent.animators.FourDTweenCollection;
|
4
|
+
import com.fourD.emergent.core.EmergentPresenter;
|
5
|
+
|
6
|
+
import flash.utils.*;
|
7
|
+
import flash.display.MovieClip;
|
8
|
+
|
9
|
+
import mx.events.FlexEvent;
|
10
|
+
import mx.core.Container;
|
11
|
+
import mx.core.UIComponent;
|
12
|
+
import mx.binding.utils.BindingUtils;
|
13
|
+
|
14
|
+
import org.restfulx.models.RxModel;
|
15
|
+
|
16
|
+
import com.fourD.emergent.components.FlexBasicView;
|
17
|
+
import com.fourD.emergent.components.SkyBoxAndStars;
|
18
|
+
|
19
|
+
import <%= base_package %>.models.presentation.MainModel;
|
20
|
+
import <%= base_package %>.views.main.MainView;
|
21
|
+
|
22
|
+
import org.ascollada.utils.FPS;
|
23
|
+
|
24
|
+
/** The MainView has a reference to ALL Navigation oriented methods.
|
25
|
+
* It only performs work on it's direct children. This allows you to:
|
26
|
+
* 1) Change the MainView's state and animate it
|
27
|
+
* 2) Change/animate any other MainView direct children
|
28
|
+
* 3) Pass the change-of-state and animation logic down to the
|
29
|
+
* presenter for that specific view, where it should go.
|
30
|
+
*/
|
31
|
+
public class MainPresenter extends EmergentPresenter {
|
32
|
+
|
33
|
+
// all the tweens you could ever desire :)
|
34
|
+
public var t:FourDTweenCollection;
|
35
|
+
public var troparchy:MainTroparchy;
|
36
|
+
|
37
|
+
/** Papervision related variables */
|
38
|
+
public var skyBox:SkyBoxAndStars;
|
39
|
+
public var skyBoxContainer:UIComponent;
|
40
|
+
|
41
|
+
public var flex3D:FlexBasicView;
|
42
|
+
public var flex3DContainer:UIComponent;
|
43
|
+
public var frontMC:MovieClip;
|
44
|
+
public var backMC:MovieClip;
|
45
|
+
|
46
|
+
/** FPS Display */
|
47
|
+
private var fpsContainer:UIComponent;
|
48
|
+
private var fps:FPS;
|
49
|
+
|
50
|
+
/**
|
51
|
+
* A dictionary to keep track of which Resource is displayed in which view.
|
52
|
+
*/
|
53
|
+
private var resourceToView:Dictionary;
|
54
|
+
|
55
|
+
public function get mainView():MainView { return this.view as MainView }
|
56
|
+
public function get mainModel():MainModel { return this.model as MainModel }
|
57
|
+
|
58
|
+
public function MainPresenter() {
|
59
|
+
t = new FourDTweenCollection();
|
60
|
+
BindingUtils.bindSetter(toggleCms, this, ["mainModel", "cmsMode"]);
|
61
|
+
}
|
62
|
+
|
63
|
+
public function toggleCms(prop:*):void {
|
64
|
+
if (prop == true) {
|
65
|
+
mainView.loginView.visible = false;
|
66
|
+
mainView.documentsView.visible = true;
|
67
|
+
}
|
68
|
+
else {
|
69
|
+
mainView.loginView.visible = true;
|
70
|
+
mainView.documentsView.visible = false;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
/**
|
75
|
+
* Handle view creation complete initialization
|
76
|
+
*
|
77
|
+
* @param event creation complete event
|
78
|
+
*
|
79
|
+
*/
|
80
|
+
override protected function onCreationComplete(event:FlexEvent):void
|
81
|
+
{
|
82
|
+
troparchy = new MainTroparchy();
|
83
|
+
troparchy.presenter = this;
|
84
|
+
troparchy.model = model;
|
85
|
+
troparchy.view = mainView;
|
86
|
+
troparchy.dispatcher = this; //localDispatcher;
|
87
|
+
|
88
|
+
components = [mainView.pagesView, mainView.loginView, mainView.accountView,
|
89
|
+
mainView.contactUsView, mainView.navigationBarsView,
|
90
|
+
mainView.profileView];
|
91
|
+
visibleComponents = [mainView.documentsView];
|
92
|
+
|
93
|
+
fpsContainer = new UIComponent();
|
94
|
+
fps = new FPS();
|
95
|
+
fpsContainer.addChild(fps);
|
96
|
+
mainView.fpsPanel.addChild(fpsContainer);
|
97
|
+
fpsContainer.width = 150;
|
98
|
+
fpsContainer.height = 40;
|
99
|
+
|
100
|
+
// The following is all papervision, but it causes the application to run at 8 FPS
|
101
|
+
/* skyBox = new SkyBoxAndStars(mainView.width, mainView.height);
|
102
|
+
skyBoxContainer = new UIComponent();
|
103
|
+
skyBoxContainer.addChild(skyBox);
|
104
|
+
mainView.skyBoxCanvas.addChild(skyBoxContainer);
|
105
|
+
|
106
|
+
flex3D = new FlexBasicView(800, 600); //(mainView.yourView.width, mainView.yourView.height);
|
107
|
+
flex3DContainer = new UIComponent();
|
108
|
+
flex3DContainer.addChild(flex3D);
|
109
|
+
mainView.pv3dContainer.addChild(flex3DContainer);
|
110
|
+
|
111
|
+
frontMC = new MovieClip();
|
112
|
+
backMC = new MovieClip();
|
113
|
+
|
114
|
+
// Still need to figure out how to add the back movieclip
|
115
|
+
//backMC.addChild(mainView.entriesView);
|
116
|
+
|
117
|
+
flex3DContainer.addChild(backMC);
|
118
|
+
flex3DContainer.addChild(frontMC);
|
119
|
+
frontMC.addChild(mainView.mainViewStack);
|
120
|
+
flex3D.uiComponentMaterial(frontMC, backMC); */
|
121
|
+
}
|
122
|
+
|
123
|
+
/** This is where you define what can be found in that params object */
|
124
|
+
override protected function executeTweenParams(p:Object=null):void {
|
125
|
+
if (p.callBack) { p.callBack(p.callBackParams); }
|
126
|
+
if (p.view) {
|
127
|
+
if (p.visible) {
|
128
|
+
p.view.visible = p.visible;
|
129
|
+
}
|
130
|
+
if (p.state) {
|
131
|
+
p.view.currentState = p.state;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
public function showPages(args:*=null):void {
|
137
|
+
// mainView.pagesView.tweens;// = [someTweens]
|
138
|
+
// mainView.pagesView.tween;
|
139
|
+
}
|
140
|
+
|
141
|
+
public function ambientPages(args:*=null):void {
|
142
|
+
// mainView.pagesView.tweens;// = [someTweens]
|
143
|
+
// mainView.pagesView.tween;
|
144
|
+
}
|
145
|
+
|
146
|
+
public function showLogin():void {
|
147
|
+
|
148
|
+
}
|
149
|
+
|
150
|
+
public function showNavigationBarRight():void {
|
151
|
+
//mainView.navigationBarRightView.tweens
|
152
|
+
}
|
153
|
+
|
154
|
+
public function gotoNavigationBarLeft():void {
|
155
|
+
|
156
|
+
}
|
157
|
+
|
158
|
+
public function gotoNavigationBarTop():void {
|
159
|
+
|
160
|
+
}
|
161
|
+
|
162
|
+
public function gotoNavigationBarBottom():void {
|
163
|
+
|
164
|
+
}
|
165
|
+
}
|
166
|
+
}
|
data/rails_generators/emergent_config/templates/app/flex/application/views/main/main_troparchy.mxml
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!--
|
3
|
+
* Copyright 2008-2009 (c) Lance Pollard
|
4
|
+
* www.systemsofseven.com/blog
|
5
|
+
* www.4ddesignlab.com
|
6
|
+
* lancejpollard@gmail.com
|
7
|
+
*
|
8
|
+
* Permission is hereby granted, free of charge, to any person
|
9
|
+
* obtaining a copy of this software and associated documentation
|
10
|
+
* files (the "Software"), to deal in the Software without
|
11
|
+
* restriction, including without limitation the rights to use,
|
12
|
+
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
13
|
+
* copies of the Software, and to permit persons to whom the
|
14
|
+
* Software is furnished to do so, subject to the following
|
15
|
+
* conditions:
|
16
|
+
*
|
17
|
+
* The above copyright notice and this permission notice shall be
|
18
|
+
* included in all copies or substantial portions of the Software.
|
19
|
+
*
|
20
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
21
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
22
|
+
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
23
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
24
|
+
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
25
|
+
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
26
|
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
27
|
+
* OTHER DEALINGS IN THE SOFTWARE.
|
28
|
+
-->
|
29
|
+
<LocalEventMap xmlns="http://mate.asfusion.com/"
|
30
|
+
xmlns:core="com.fourD.emergent.core.*"
|
31
|
+
xmlns:event="com.fourD.emergent.events.*"
|
32
|
+
xmlns:mx="http://ns.adobe.com/mxml/2009">
|
33
|
+
|
34
|
+
<mx:Script>
|
35
|
+
<![CDATA[
|
36
|
+
|
37
|
+
import mx.events.FlexEvent;
|
38
|
+
|
39
|
+
import <%= base_package %>.models.presentation.MainModel;
|
40
|
+
import <%= base_package %>.views.main.*;
|
41
|
+
import <%= base_package %>.controllers.manager.MainManager;
|
42
|
+
|
43
|
+
[Bindable] public var presenter:MainPresenter;
|
44
|
+
[Bindable] public var view:MainView;
|
45
|
+
[Bindable] public var model:MainModel;
|
46
|
+
[Bindable] public var someOtherTroparchy:* = new Object;
|
47
|
+
|
48
|
+
]]>
|
49
|
+
</mx:Script>
|
50
|
+
<mx:Declarations>
|
51
|
+
|
52
|
+
<EventHandlers type="{FlexEvent.PREINITIALIZE}">
|
53
|
+
</EventHandlers>
|
54
|
+
|
55
|
+
<core:Tecton id="showLogin"
|
56
|
+
activateBefore="{[someOtherTroparchy.hideChat]}"
|
57
|
+
activateDuring="{[someOtherTroparchy.showMenu]}"
|
58
|
+
activateAfter="{[someOtherTroparchy.showOtherThing]}">
|
59
|
+
<InlineInvoker method="{presenter.showLogin}"
|
60
|
+
arguments="{['lance']}"/>
|
61
|
+
<!--<MethodInvoker method="showLogin" generator="{MainPresenter}"
|
62
|
+
arguments="{['lance']}"/>-->
|
63
|
+
</core:Tecton>
|
64
|
+
|
65
|
+
<core:Tecton id="ambientPages"
|
66
|
+
activateBefore="{[someOtherTroparchy.hideChat]}"
|
67
|
+
activateDuring="{[someOtherTroparchy.showMenu]}"
|
68
|
+
activateAfter="{[someOtherTroparchy.showOtherThing]}">
|
69
|
+
<InlineInvoker method="{presenter.ambientPages}"
|
70
|
+
arguments="{['lance']}"/>
|
71
|
+
</core:Tecton>
|
72
|
+
|
73
|
+
</mx:Declarations>
|
74
|
+
</LocalEventMap>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
package <%= base_package %>.models.presentation {
|
2
|
+
|
3
|
+
import flash.events.Event;
|
4
|
+
import flash.events.EventDispatcher;
|
5
|
+
|
6
|
+
public class NavigationBarBottomModel extends EventDispatcher {
|
7
|
+
|
8
|
+
/** Injector targets */
|
9
|
+
[Bindable] public var cmsMode:Boolean;
|
10
|
+
|
11
|
+
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<core:EmergentComponent
|
3
|
+
xmlns:mx="http://ns.adobe.com/mxml/2009"
|
4
|
+
xmlns:core="com.fourD.emergent.core.*"
|
5
|
+
xmlns:nav="<%= base_package %>.views.navigation.*"
|
6
|
+
xmlns:presentation="<%= base_package %>.models.presentation.*"
|
7
|
+
width="100%" height="100%">
|
8
|
+
|
9
|
+
<mx:Script>
|
10
|
+
<![CDATA[
|
11
|
+
import org.restfulx.Rx;
|
12
|
+
|
13
|
+
]]>
|
14
|
+
</mx:Script>
|
15
|
+
|
16
|
+
<!-- Presenter and Model________________________________________________________ -->
|
17
|
+
|
18
|
+
<!-- Presenter Wraps the View and Handles Navigation Animations
|
19
|
+
Model allows you to easily call CRUD methods and handle sorting on data -->
|
20
|
+
<mx:Declarations>
|
21
|
+
<presentation:NavigationBarBottomModel id="model"/>
|
22
|
+
<nav:NavigationBarBottomPresenter id="presenter" view="{this}"/>
|
23
|
+
</mx:Declarations>
|
24
|
+
|
25
|
+
<!-- GUI ______________________________________________________________________ -->
|
26
|
+
|
27
|
+
<mx:Canvas width="100%" height="40" x="0" bottom="10" horizontalScrollPolicy="off">
|
28
|
+
<mx:ApplicationControlBar width="100%" height="40" verticalAlign="middle">
|
29
|
+
<mx:HBox id="searchBox" width="50%" horizontalScrollPolicy="off">
|
30
|
+
<mx:Label text="Search"/>
|
31
|
+
<mx:TextInput id="searchTextInput"/>
|
32
|
+
</mx:HBox>
|
33
|
+
|
34
|
+
<mx:Spacer width="100%" height="30"/>
|
35
|
+
|
36
|
+
<mx:HBox id="pageButtons">
|
37
|
+
<mx:Button id="logoutButton" label="Logout"/>
|
38
|
+
</mx:HBox>
|
39
|
+
|
40
|
+
<mx:Spacer width="100%" height="30"/>
|
41
|
+
|
42
|
+
<mx:HBox id="lastBox" width="33%" horizontalScrollPolicy="off">
|
43
|
+
<mx:Label text="Where the Possibilities are Endless..." fontFamily="Georgia" fontSize="18" color="#ffffff"/>
|
44
|
+
</mx:HBox>
|
45
|
+
</mx:ApplicationControlBar>
|
46
|
+
</mx:Canvas>
|
47
|
+
|
48
|
+
</core:EmergentComponent>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
package <%= base_package %>.models.presentation {
|
2
|
+
|
3
|
+
import flash.events.Event;
|
4
|
+
import flash.events.EventDispatcher;
|
5
|
+
|
6
|
+
public class NavigationBarLeftModel extends EventDispatcher {
|
7
|
+
|
8
|
+
/** Injector targets */
|
9
|
+
[Bindable] public var cmsMode:Boolean;
|
10
|
+
|
11
|
+
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<core:EmergentComponent
|
3
|
+
xmlns:mx="http://ns.adobe.com/mxml/2009"
|
4
|
+
xmlns:core="com.fourD.emergent.core.*"
|
5
|
+
xmlns:nav="<%= base_package %>.views.navigation.*"
|
6
|
+
xmlns:presentation="<%= base_package %>.models.presentation.*"
|
7
|
+
width="100%" height="100%">
|
8
|
+
|
9
|
+
<mx:Script>
|
10
|
+
<![CDATA[
|
11
|
+
import org.restfulx.Rx;
|
12
|
+
import org.restfulx.collections.ModelsCollection;
|
13
|
+
|
14
|
+
|
15
|
+
import <%= base_package %>.models.domain.Content;
|
16
|
+
|
17
|
+
[Bindable] public var contentTree:ModelsCollection = new ModelsCollection();
|
18
|
+
|
19
|
+
]]>
|
20
|
+
</mx:Script>
|
21
|
+
|
22
|
+
<!-- Presenter and Model________________________________________________________ -->
|
23
|
+
|
24
|
+
<!-- Presenter Wraps the View and Handles Navigation Animations
|
25
|
+
Model allows you to easily call CRUD methods and handle sorting on data -->
|
26
|
+
<mx:Declarations>
|
27
|
+
<presentation:NavigationBarLeftModel id="model"/>
|
28
|
+
<nav:NavigationBarLeftPresenter id="presenter" view="{this}"/>
|
29
|
+
</mx:Declarations>
|
30
|
+
|
31
|
+
<!-- GUI ______________________________________________________________________ -->
|
32
|
+
|
33
|
+
<mx:Panel paddingTop="15" verticalCenter="0" width="100%" height="100%">
|
34
|
+
|
35
|
+
<mx:Tree id="tree"
|
36
|
+
dataProvider="{contentTree}"
|
37
|
+
labelField="title" showRoot="false"
|
38
|
+
width="90%" height="90%"
|
39
|
+
verticalCenter="0" horizontalCenter="-1"/>
|
40
|
+
|
41
|
+
</mx:Panel>
|
42
|
+
|
43
|
+
</core:EmergentComponent>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
package <%= base_package %>.models.presentation {
|
2
|
+
|
3
|
+
import flash.events.Event;
|
4
|
+
import flash.events.EventDispatcher;
|
5
|
+
|
6
|
+
public class NavigationBarRightModel extends EventDispatcher {
|
7
|
+
|
8
|
+
/** Injector targets */
|
9
|
+
[Bindable] public var cmsMode:Boolean;
|
10
|
+
|
11
|
+
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<core:EmergentComponent
|
3
|
+
xmlns="http://ns.adobe.com/mxml/2009"
|
4
|
+
xmlns:core="com.fourD.emergent.core.*"
|
5
|
+
xmlns:nav="<%= base_package %>.views.navigation.*"
|
6
|
+
xmlns:presentation="<%= base_package %>.models.presentation.*"
|
7
|
+
width="100%" height="100%">
|
8
|
+
|
9
|
+
<Script>
|
10
|
+
<![CDATA[
|
11
|
+
import org.restfulx.Rx;
|
12
|
+
|
13
|
+
]]>
|
14
|
+
</Script>
|
15
|
+
|
16
|
+
<!-- Presenter and Model________________________________________________________ -->
|
17
|
+
|
18
|
+
<!-- Presenter Wraps the View and Handles Navigation Animations
|
19
|
+
Model allows you to easily call CRUD methods and handle sorting on data -->
|
20
|
+
<Declarations>
|
21
|
+
<presentation:NavigationBarRightModel id="model"/>
|
22
|
+
<nav:NavigationBarRightPresenter id="presenter" view="{this}"/>
|
23
|
+
</Declarations>
|
24
|
+
|
25
|
+
<!-- GUI ______________________________________________________________________ -->
|
26
|
+
|
27
|
+
<Panel verticalCenter="0" width="15%" height="60%">
|
28
|
+
|
29
|
+
<VBox id="modelsBox" width="100%" height="100%" horizontalAlign="center" verticalAlign="middle">
|
30
|
+
<ComboBox id="loginComboBox"
|
31
|
+
change="presenter.gotoUrl(event.currentTarget.selectedItem.url)">
|
32
|
+
<dataProvider>
|
33
|
+
<ArrayCollection>
|
34
|
+
<Object label="User" url="me"/>
|
35
|
+
<Object label="All Users" url="us"/>
|
36
|
+
<Object label="Show Newest"/>
|
37
|
+
<Object label="Edit"/>
|
38
|
+
<Object label="Edit Newest"/>
|
39
|
+
</ArrayCollection>
|
40
|
+
</dataProvider>
|
41
|
+
</ComboBox>
|
42
|
+
|
43
|
+
</VBox>
|
44
|
+
|
45
|
+
</Panel>
|
46
|
+
|
47
|
+
</core:EmergentComponent>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
package <%= base_package %>.models.presentation {
|
2
|
+
|
3
|
+
import flash.events.Event;
|
4
|
+
import flash.events.EventDispatcher;
|
5
|
+
|
6
|
+
public class NavigationBarTopModel extends EventDispatcher {
|
7
|
+
|
8
|
+
/** Injector targets */
|
9
|
+
[Bindable] public var cmsMode:Boolean;
|
10
|
+
|
11
|
+
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<core:EmergentComponent
|
3
|
+
xmlns:mx="http://ns.adobe.com/mxml/2009"
|
4
|
+
xmlns:core="com.fourD.emergent.core.*"
|
5
|
+
xmlns:nav="<%= base_package %>.views.navigation.*"
|
6
|
+
xmlns:presentation="<%= base_package %>.models.presentation.*"
|
7
|
+
width="100%" height="100%">
|
8
|
+
|
9
|
+
<mx:Script>
|
10
|
+
<![CDATA[
|
11
|
+
import org.restfulx.Rx;
|
12
|
+
|
13
|
+
]]>
|
14
|
+
</mx:Script>
|
15
|
+
|
16
|
+
<!-- Presenter and Model________________________________________________________ -->
|
17
|
+
|
18
|
+
<!-- Presenter Wraps the View and Handles Navigation Animations
|
19
|
+
Model allows you to easily call CRUD methods and handle sorting on data -->
|
20
|
+
<mx:Declarations>
|
21
|
+
<presentation:NavigationBarTopModel id="model"/>
|
22
|
+
<nav:NavigationBarTopPresenter id="presenter" view="{this}"/>
|
23
|
+
</mx:Declarations>
|
24
|
+
|
25
|
+
<!-- GUI ______________________________________________________________________ -->
|
26
|
+
|
27
|
+
<mx:Canvas width="100%" height="40" x="0" top="10" horizontalScrollPolicy="off">
|
28
|
+
<mx:ApplicationControlBar x="0" y="0" width="100%" height="40" verticalAlign="middle">
|
29
|
+
<mx:Label text="Welcome to <%= project_name %>" width="50%" fontFamily="Georgia" fontSize="18" color="#ffffff"/>
|
30
|
+
|
31
|
+
<mx:Spacer width="100%" height="30"/>
|
32
|
+
|
33
|
+
<mx:HBox id="mainButtons">
|
34
|
+
<mx:Button id="homeButton" label="Home"/>
|
35
|
+
<mx:Button id="aboutButton" label="About"/>
|
36
|
+
<mx:Button id="contactUsButton" label="Contact Us"/>
|
37
|
+
</mx:HBox>
|
38
|
+
|
39
|
+
<mx:Spacer width="100%" height="30"/>
|
40
|
+
|
41
|
+
<mx:HBox id="themeButtons" width="33%" horizontalScrollPolicy="off">
|
42
|
+
<mx:Label text="Toggle CMS Mode:" color="#ffffff"/>
|
43
|
+
<mx:Button id="cmsButton" label="CMS"/>
|
44
|
+
<mx:Button id="regularButton" label="Actual"/>
|
45
|
+
</mx:HBox>
|
46
|
+
</mx:ApplicationControlBar>
|
47
|
+
</mx:Canvas>
|
48
|
+
|
49
|
+
</core:EmergentComponent>
|