typus 0.9.39 → 1.0.0.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +104 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +96 -0
- data/MIT-LICENSE +1 -1
- data/README.rdoc +45 -0
- data/Rakefile +19 -48
- data/app/controllers/admin/account_controller.rb +54 -0
- data/app/controllers/admin/dashboard_controller.rb +7 -0
- data/app/controllers/admin/resource_controller.rb +8 -0
- data/app/controllers/admin/resources_controller.rb +307 -0
- data/app/controllers/admin/session_controller.rb +38 -0
- data/app/controllers/admin_controller.rb +26 -0
- data/app/helpers/admin/dashboard_helper.rb +38 -0
- data/app/helpers/admin/filters_helper.rb +81 -0
- data/app/helpers/admin/form_helper.rb +68 -261
- data/app/helpers/admin/preview_helper.rb +48 -0
- data/app/helpers/admin/relationships_helper.rb +192 -0
- data/app/helpers/admin/resources_helper.rb +80 -0
- data/app/helpers/admin/search_helper.rb +19 -0
- data/app/helpers/admin/sidebar_helper.rb +32 -210
- data/app/helpers/admin/table_helper.rb +207 -200
- data/app/helpers/admin_helper.rb +56 -0
- data/app/mailers/admin/mailer.rb +13 -0
- data/app/models/admin/fake_user.rb +38 -0
- data/app/views/admin/account/forgot_password.html.erb +21 -0
- data/app/views/admin/account/new.html.erb +21 -0
- data/app/views/admin/dashboard/_sidebar.html.erb +3 -3
- data/app/views/admin/dashboard/show.html.erb +16 -0
- data/app/views/admin/dashboard/styles.html.erb +154 -0
- data/app/views/admin/helpers/_apps.html.erb +6 -0
- data/app/views/admin/helpers/_flash_message.html.erb +3 -0
- data/app/views/admin/helpers/_header.html.erb +7 -0
- data/app/views/admin/helpers/_login_info.html.erb +4 -0
- data/app/views/admin/helpers/_preview.html.erb +13 -0
- data/app/views/admin/helpers/dashboard/_applications.html.erb +32 -0
- data/app/views/admin/helpers/dashboard/_resources.html.erb +16 -0
- data/app/views/admin/helpers/filters/_filters.html.erb +31 -0
- data/app/views/admin/helpers/resources/_display_link_to_previous.html.erb +3 -0
- data/app/views/admin/helpers/resources/_pagination.html.erb +28 -0
- data/app/views/admin/helpers/search/_search.html.erb +12 -0
- data/app/views/admin/helpers/sidebar/_sidebar.html.erb +17 -0
- data/app/views/admin/helpers/table/_table.html.erb +22 -0
- data/app/views/{typus_mailer/reset_password_link.erb → admin/mailer/reset_password_link.text.erb} +2 -2
- data/{test/config/broken/empty.yml → app/views/admin/resources/_edit.html.erb} +0 -0
- data/app/views/admin/resources/_form.html.erb +26 -0
- data/{test/config/broken/empty_roles.yml → app/views/admin/resources/_index.html.erb} +0 -0
- data/{test/config/empty/empty_01.yml → app/views/admin/resources/_new.html.erb} +0 -0
- data/{test/config/empty/empty_01_roles.yml → app/views/admin/resources/_show.html.erb} +0 -0
- data/app/views/admin/resources/edit.html.erb +23 -21
- data/app/views/admin/resources/index.html.erb +31 -18
- data/app/views/admin/resources/new.html.erb +20 -18
- data/app/views/admin/resources/show.html.erb +29 -20
- data/app/views/admin/session/new.html.erb +26 -0
- data/app/views/admin/templates/_belongs_to.html.erb +4 -0
- data/app/views/admin/templates/_boolean.html.erb +4 -8
- data/app/views/admin/templates/_date.html.erb +9 -2
- data/app/views/admin/templates/_datetime.html.erb +9 -2
- data/app/views/admin/templates/_file.html.erb +20 -5
- data/app/views/admin/templates/_has_many.html.erb +24 -0
- data/app/views/admin/templates/_has_n.html.erb +17 -0
- data/{test/config/empty/empty_02.yml → app/views/admin/templates/_has_one.html.erb} +0 -0
- data/app/views/admin/templates/_password.html.erb +4 -2
- data/app/views/admin/templates/_relate_form.html.erb +4 -0
- data/app/views/admin/templates/_selector.html.erb +6 -18
- data/app/views/admin/templates/_string.html.erb +11 -10
- data/app/views/admin/templates/_text.html.erb +9 -2
- data/app/views/admin/templates/_time.html.erb +9 -2
- data/app/views/admin/templates/_tree.html.erb +4 -0
- data/app/views/layouts/admin/session.html.erb +44 -0
- data/app/views/layouts/admin.html.erb +45 -39
- data/config/available_locales/ca.yml +124 -0
- data/config/available_locales/ca_models.yml +16 -0
- data/config/{locales → available_locales}/de.yml +108 -89
- data/config/available_locales/de_models.yml +13 -0
- data/config/available_locales/es.yml +124 -0
- data/config/available_locales/es_models.yml +13 -0
- data/config/available_locales/fr.yml +124 -0
- data/config/available_locales/fr_models.yml +13 -0
- data/config/available_locales/hu.yml +124 -0
- data/config/available_locales/hu_models.yml +13 -0
- data/config/available_locales/it.yml +136 -0
- data/config/available_locales/it_models.yml +15 -0
- data/config/available_locales/language.yml.template +122 -0
- data/config/available_locales/language_models.yml.template +13 -0
- data/config/{locales → available_locales}/pt-BR.yml +97 -74
- data/config/available_locales/pt-BR_models.yml +13 -0
- data/config/{locales → available_locales}/ru.yml +107 -85
- data/config/available_locales/ru_models.yml +13 -0
- data/config/routes.rb +18 -11
- data/lib/generators/templates/config/initializers/typus.rb +26 -0
- data/lib/generators/templates/config/initializers/typus_authentication.rb +18 -0
- data/lib/generators/templates/config/initializers/typus_resources.rb +30 -0
- data/{generators/typus → lib/generators}/templates/config/typus/README +34 -16
- data/lib/generators/templates/config/typus/application.yml +5 -0
- data/lib/generators/templates/config/typus/application_roles.yml +6 -0
- data/lib/generators/templates/config/typus/typus.yml +17 -0
- data/lib/generators/templates/config/typus/typus_roles.yml +6 -0
- data/lib/generators/templates/controller.rb +4 -0
- data/lib/generators/templates/functional_test.rb +21 -0
- data/{generators/typus/templates/db/create_typus_users.rb → lib/generators/templates/migration.rb} +4 -4
- data/lib/generators/templates/model.rb +8 -0
- data/lib/generators/templates/model.yml +10 -0
- data/{generators/typus/templates/public/images/admin → lib/generators/templates/public/admin/images}/ui-icons.png +0 -0
- data/lib/generators/templates/public/admin/javascripts/application.js +6 -0
- data/lib/generators/templates/public/admin/javascripts/jquery-1.4.2.min.js +154 -0
- data/lib/generators/templates/public/admin/javascripts/jquery.rails.js +126 -0
- data/lib/generators/templates/public/admin/javascripts/jquery.searchField.js +91 -0
- data/lib/generators/templates/public/admin/stylesheets/application.css +11 -0
- data/lib/generators/templates/public/admin/stylesheets/screen.css +356 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/blank.gif +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_close.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_loading.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_nav_left.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_nav_right.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_e.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_n.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_ne.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_nw.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_s.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_se.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_sw.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_shadow_w.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_title_left.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_title_main.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancy_title_over.png +0 -0
- data/{generators/typus/templates/public/images/admin → lib/generators/templates/public/admin/vendor}/fancybox/fancy_title_right.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancybox-x.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancybox-y.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/fancybox.png +0 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.easing-1.3.pack.js +72 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.css +363 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.js +1077 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
- data/lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js +13 -0
- data/lib/generators/templates/view.html.erb +9 -0
- data/lib/generators/typus/migration_generator.rb +85 -0
- data/lib/generators/typus/typus_generator.rb +190 -0
- data/lib/generators/typus/views_generator.rb +27 -0
- data/lib/support/active_record.rb +60 -0
- data/lib/support/array.rb +13 -0
- data/lib/{typus → support}/hash.rb +2 -2
- data/lib/{typus → support}/object.rb +2 -2
- data/lib/support/string.rb +47 -0
- data/lib/tasks/typus.rake +19 -0
- data/lib/typus/authentication.rb +146 -40
- data/lib/typus/configuration.rb +14 -49
- data/lib/typus/engine.rb +6 -0
- data/lib/typus/format.rb +41 -18
- data/lib/typus/orm/active_record.rb +378 -0
- data/lib/typus/resources.rb +57 -0
- data/lib/typus/user.rb +54 -37
- data/lib/typus/version.rb +3 -0
- data/lib/typus.rb +118 -80
- data/lib/vendor/paginator.rb +2 -2
- data/test/factories/assets.rb +5 -0
- data/test/factories/categories.rb +3 -0
- data/test/factories/comments.rb +6 -0
- data/test/factories/pages.rb +5 -0
- data/test/factories/pictures.rb +7 -0
- data/test/factories/posts.rb +6 -0
- data/test/factories/typus_users.rb +8 -0
- data/test/{config → fixtures/config}/broken/application.yml +0 -0
- data/test/{config → fixtures/config}/broken/application_roles.yml +0 -0
- data/test/{config/empty/empty_02_roles.yml → fixtures/config/broken/empty.yml} +0 -0
- data/test/fixtures/config/broken/empty_roles.yml +0 -0
- data/test/{config → fixtures/config}/broken/undefined.yml +0 -0
- data/test/{config → fixtures/config}/broken/undefined_roles.yml +0 -0
- data/test/{config → fixtures/config}/default/typus.yml +2 -1
- data/{generators/typus/templates/config/typus → test/fixtures/config/default}/typus_roles.yml +0 -0
- data/test/fixtures/config/empty/empty_01.yml +0 -0
- data/test/fixtures/config/empty/empty_01_roles.yml +0 -0
- data/test/fixtures/config/empty/empty_02.yml +0 -0
- data/test/fixtures/config/empty/empty_02_roles.yml +0 -0
- data/test/{config → fixtures/config}/locales/es.yml +0 -0
- data/test/fixtures/config/namespaced/application.yml +5 -0
- data/test/fixtures/config/namespaced/application_roles.yml +2 -0
- data/test/{config → fixtures/config}/ordered/001_roles.yml +0 -0
- data/test/{config → fixtures/config}/ordered/002_roles.yml +0 -0
- data/test/{config → fixtures/config}/unordered/app_one_roles.yml +0 -0
- data/test/{config → fixtures/config}/unordered/app_two_roles.yml +0 -0
- data/test/fixtures/config/working/application.yml +73 -0
- data/test/fixtures/config/working/application_roles.yml +24 -0
- data/{generators/typus/templates/config/typus → test/fixtures/config/working}/typus.yml +2 -1
- data/test/{config/default → fixtures/config/working}/typus_roles.yml +0 -0
- data/test/fixtures/rails_app/README +244 -0
- data/test/fixtures/rails_app/Rakefile +7 -0
- data/test/fixtures/rails_app/app/controllers/admin/assets_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/categories_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/comments_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/pages_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/pictures_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/posts_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/status_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/typus_users_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/admin/watch_dog_controller.rb +2 -0
- data/test/fixtures/rails_app/app/controllers/application_controller.rb +4 -0
- data/test/fixtures/rails_app/app/helpers/application_helper.rb +2 -0
- data/test/fixtures/{app → rails_app/app}/models/asset.rb +1 -1
- data/test/fixtures/{app → rails_app/app}/models/category.rb +2 -2
- data/test/fixtures/{app → rails_app/app}/models/comment.rb +1 -1
- data/test/fixtures/{app → rails_app/app}/models/custom_user.rb +1 -1
- data/test/fixtures/{app → rails_app/app}/models/delayed/task.rb +2 -2
- data/test/fixtures/rails_app/app/models/page.rb +9 -0
- data/test/fixtures/rails_app/app/models/picture.rb +6 -0
- data/test/fixtures/{app → rails_app/app}/models/post.rb +6 -6
- data/test/fixtures/rails_app/app/models/typus_user.rb +8 -0
- data/test/fixtures/{app → rails_app/app}/models/view.rb +1 -1
- data/test/fixtures/rails_app/app/views/admin/categories/_form.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/dashboard/_sidebar.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/mailer/reset_password_link.text.erb +6 -0
- data/test/fixtures/rails_app/app/views/admin/posts/_edit.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/posts/_index.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/posts/_new.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/posts/_show.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/posts/_sidebar.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/resources/_sidebar.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/status/index.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/admin/templates/_datepicker.html.erb +1 -0
- data/test/fixtures/rails_app/app/views/layouts/application.html.erb +14 -0
- data/test/fixtures/rails_app/config/application.rb +50 -0
- data/test/fixtures/rails_app/config/boot.rb +13 -0
- data/test/fixtures/rails_app/config/database.yml +22 -0
- data/test/fixtures/rails_app/config/environment.rb +5 -0
- data/test/fixtures/rails_app/config/environments/development.rb +19 -0
- data/test/fixtures/rails_app/config/environments/production.rb +42 -0
- data/test/fixtures/rails_app/config/environments/test.rb +34 -0
- data/test/fixtures/rails_app/config/initializers/acts_as_list.rb +258 -0
- data/test/fixtures/rails_app/config/initializers/acts_as_tree.rb +98 -0
- data/test/fixtures/rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/test/fixtures/rails_app/config/initializers/inflections.rb +10 -0
- data/test/fixtures/rails_app/config/initializers/mime_types.rb +5 -0
- data/test/fixtures/rails_app/config/initializers/secret_token.rb +7 -0
- data/test/fixtures/rails_app/config/initializers/session_store.rb +8 -0
- data/test/fixtures/rails_app/config/initializers/typus.rb +6 -0
- data/test/fixtures/rails_app/config/locales/en.yml +5 -0
- data/test/fixtures/rails_app/config/routes.rb +8 -0
- data/test/{config/working → fixtures/rails_app/config/typus}/application.yml +11 -9
- data/test/{config/working → fixtures/rails_app/config/typus}/application_roles.yml +0 -0
- data/{generators/typus_update_schema_to_01/templates/config → test/fixtures/rails_app/config/typus}/typus.yml +0 -0
- data/test/{config/working → fixtures/rails_app/config/typus}/typus_roles.yml +0 -0
- data/test/fixtures/rails_app/config.ru +4 -0
- data/test/fixtures/rails_app/db/seeds.rb +7 -0
- data/test/fixtures/rails_app/db/test.sqlite3 +0 -0
- data/test/fixtures/rails_app/log/test.log +4268 -0
- data/test/fixtures/rails_app/public/404.html +26 -0
- data/test/fixtures/rails_app/public/422.html +26 -0
- data/test/fixtures/rails_app/public/500.html +26 -0
- data/test/fixtures/rails_app/public/favicon.ico +0 -0
- data/test/fixtures/rails_app/public/images/rails.png +0 -0
- data/test/fixtures/rails_app/public/index.html +279 -0
- data/test/fixtures/rails_app/public/javascripts/application.js +2 -0
- data/test/fixtures/rails_app/public/javascripts/controls.js +965 -0
- data/test/fixtures/rails_app/public/javascripts/dragdrop.js +974 -0
- data/test/fixtures/rails_app/public/javascripts/effects.js +1123 -0
- data/test/fixtures/rails_app/public/javascripts/prototype.js +4874 -0
- data/test/fixtures/rails_app/public/javascripts/rails.js +118 -0
- data/test/fixtures/rails_app/public/robots.txt +5 -0
- data/test/fixtures/rails_app/script/rails +9 -0
- data/test/fixtures/rails_app/tmp/export-posts-20100902120447.csv +2 -0
- data/test/fixtures/rails_app/tmp/export-posts-20100902120700.csv +2 -0
- data/test/functional/admin/account_controller_test.rb +90 -0
- data/test/functional/admin/dashboard_controller_http_basic_test.rb +24 -0
- data/test/functional/admin/dashboard_controller_none_test.rb +18 -0
- data/test/functional/admin/dashboard_controller_test.rb +106 -0
- data/test/functional/admin/resources_controller_assets_relationships.rb +59 -0
- data/test/functional/admin/resources_controller_categories_before_test.rb +10 -0
- data/test/functional/admin/resources_controller_categories_lists_test.rb +44 -0
- data/test/functional/admin/resources_controller_categories_views_test.rb +10 -0
- data/test/functional/admin/resources_controller_comments_toggle_test.rb +21 -0
- data/test/functional/admin/{master_controller_posts_before_test.rb → resources_controller_posts_before_test.rb} +3 -3
- data/test/functional/admin/resources_controller_posts_crud_custom_test.rb +27 -0
- data/test/functional/admin/resources_controller_posts_crud_test.rb +44 -0
- data/test/functional/admin/resources_controller_posts_formats_test.rb +39 -0
- data/test/functional/admin/resources_controller_posts_forms_test.rb +58 -0
- data/test/functional/admin/resources_controller_posts_permissions_test.rb +100 -0
- data/test/functional/admin/{master_controller_posts_relationships_test.rb → resources_controller_posts_relationships_test.rb} +25 -20
- data/test/functional/admin/resources_controller_posts_roles.rb +52 -0
- data/test/functional/admin/resources_controller_posts_views_test.rb +143 -0
- data/test/functional/admin/resources_controller_tableless_resource_test.rb +51 -0
- data/test/functional/admin/resources_controller_typus_users_test.rb +159 -0
- data/test/functional/admin/session_controller_test.rb +85 -0
- data/test/helpers/admin/dashboard_helper_test.rb +42 -0
- data/test/helpers/admin/form_helper_test.rb +52 -276
- data/test/helpers/admin/resources_helper_test.rb +52 -0
- data/test/helpers/admin/sidebar_helper_test.rb +133 -224
- data/test/helpers/admin/table_helper_test.rb +136 -144
- data/test/helpers/admin_helper_test.rb +69 -0
- data/test/lib/support/active_record_test.rb +35 -0
- data/test/lib/support/array_test.rb +15 -0
- data/test/lib/support/hash_test.rb +11 -0
- data/test/lib/support/string_test.rb +48 -0
- data/test/lib/typus/active_record_test.rb +385 -0
- data/test/lib/typus/configuration_test.rb +52 -0
- data/test/lib/typus/resource_test.rb +17 -0
- data/test/lib/typus/routes_test.rb +29 -0
- data/test/lib/typus_test.rb +72 -40
- data/test/{vendor → lib/vendor}/paginator_test.rb +7 -4
- data/test/schema.rb +28 -3
- data/test/test_helper.rb +29 -0
- data/test/unit/admin/mailer_test.rb +32 -0
- data/test/unit/typus_user_roles_test.rb +69 -61
- data/test/unit/typus_user_test.rb +56 -143
- data/typus.gemspec +18 -276
- metadata +305 -231
- data/.gitignore +0 -1
- data/AUTHORS.md +0 -34
- data/CHANGES +0 -3
- data/README.md +0 -75
- data/VERSION +0 -1
- data/app/controllers/admin/master_controller.rb +0 -394
- data/app/controllers/typus_controller.rb +0 -152
- data/app/helpers/admin/master_helper.rb +0 -104
- data/app/helpers/admin/public_helper.rb +0 -27
- data/app/helpers/typus_helper.rb +0 -181
- data/app/models/typus_mailer.rb +0 -14
- data/app/models/typus_user.rb +0 -5
- data/app/views/admin/shared/_feedback.html.erb +0 -6
- data/app/views/admin/shared/_footer.html.erb +0 -2
- data/app/views/admin/shared/_pagination.html.erb +0 -28
- data/app/views/admin/templates/_tiny_mce.html.erb +0 -2
- data/app/views/layouts/typus.html.erb +0 -29
- data/app/views/typus/dashboard.html.erb +0 -9
- data/app/views/typus/recover_password.html.erb +0 -7
- data/app/views/typus/reset_password.html.erb +0 -15
- data/app/views/typus/sign_in.html.erb +0 -9
- data/app/views/typus/sign_up.html.erb +0 -7
- data/config/locales/es.yml +0 -105
- data/config/locales/fr.yml +0 -98
- data/config/locales/language.yml.template +0 -106
- data/generators/typus/templates/auto/index.html.erb +0 -11
- data/generators/typus/templates/auto/resource_controller.rb.erb +0 -15
- data/generators/typus/templates/auto/resource_controller_test.rb.erb +0 -11
- data/generators/typus/templates/auto/resources_controller.rb.erb +0 -37
- data/generators/typus/templates/config/initializers/typus.rb +0 -34
- data/generators/typus/templates/config/typus/application.yml +0 -6
- data/generators/typus/templates/config/typus/application_roles.yml +0 -23
- data/generators/typus/templates/lib/tasks/typus_tasks.rake +0 -32
- data/generators/typus/templates/public/images/admin/fancybox/fancy_closebox.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_left.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_progress.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_right.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_e.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_n.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_ne.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_nw.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_s.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_se.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_sw.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_w.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_title_left.png +0 -0
- data/generators/typus/templates/public/images/admin/fancybox/fancy_title_main.png +0 -0
- data/generators/typus/templates/public/javascripts/admin/application.js +0 -14
- data/generators/typus/templates/public/javascripts/admin/jquery-1.3.2.min.js +0 -19
- data/generators/typus/templates/public/javascripts/admin/jquery.fancybox-1.2.1.min.js +0 -9
- data/generators/typus/templates/public/stylesheets/admin/jquery.fancybox.css +0 -315
- data/generators/typus/templates/public/stylesheets/admin/reset.css +0 -68
- data/generators/typus/templates/public/stylesheets/admin/screen.css +0 -361
- data/generators/typus/typus_generator.rb +0 -191
- data/generators/typus_update_schema_to_01/templates/migration.rb +0 -11
- data/generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb +0 -19
- data/generators/typus_update_schema_to_02/templates/migration.rb +0 -11
- data/generators/typus_update_schema_to_02/typus_update_schema_to_02_generator.rb +0 -11
- data/lib/typus/active_record.rb +0 -323
- data/lib/typus/extensions/routes.rb +0 -15
- data/lib/typus/extensions/routes_hack.rb +0 -15
- data/lib/typus/preferences.rb +0 -11
- data/lib/typus/preview.rb +0 -76
- data/lib/typus/quick_edit.rb +0 -40
- data/lib/typus/reloader.rb +0 -14
- data/lib/typus/string.rb +0 -27
- data/lib/vendor/active_record.rb +0 -15
- data/lib/vendor/rss_parser.rb +0 -20
- data/rails/init.rb +0 -3
- data/tasks/typus_tasks.rake +0 -32
- data/test/config/working/typus.yml +0 -12
- data/test/fixtures/app/controllers/admin/assets_controller.rb +0 -2
- data/test/fixtures/app/controllers/admin/categories_controller.rb +0 -2
- data/test/fixtures/app/controllers/admin/comments_controller.rb +0 -2
- data/test/fixtures/app/controllers/admin/pages_controller.rb +0 -2
- data/test/fixtures/app/controllers/admin/posts_controller.rb +0 -2
- data/test/fixtures/app/controllers/admin/status_controller.rb +0 -6
- data/test/fixtures/app/controllers/admin/typus_users_controller.rb +0 -2
- data/test/fixtures/app/controllers/admin/watch_dog_controller.rb +0 -6
- data/test/fixtures/app/models/page.rb +0 -5
- data/test/fixtures/app/views/admin/dashboard/_content.html.erb +0 -1
- data/test/fixtures/app/views/admin/dashboard/_sidebar.html.erb +0 -1
- data/test/fixtures/app/views/admin/posts/_edit.html.erb +0 -1
- data/test/fixtures/app/views/admin/posts/_index.html.erb +0 -1
- data/test/fixtures/app/views/admin/posts/_new.html.erb +0 -1
- data/test/fixtures/app/views/admin/posts/_show.html.erb +0 -1
- data/test/fixtures/app/views/admin/posts/_sidebar.html.erb +0 -1
- data/test/fixtures/app/views/admin/resources/_sidebar.html.erb +0 -1
- data/test/fixtures/app/views/admin/shared/_footer.html.erb +0 -1
- data/test/fixtures/app/views/admin/status/index.html.erb +0 -1
- data/test/fixtures/app/views/admin/templates/_datepicker.html.erb +0 -1
- data/test/fixtures/assets.yml +0 -11
- data/test/fixtures/categories.yml +0 -14
- data/test/fixtures/comments.yml +0 -27
- data/test/fixtures/pages.yml +0 -41
- data/test/fixtures/posts.yml +0 -37
- data/test/fixtures/typus_users.yml +0 -59
- data/test/functional/admin/master_controller_assets_relationships.rb +0 -66
- data/test/functional/admin/master_controller_categories_lists_test.rb +0 -64
- data/test/functional/admin/master_controller_posts_crud_test.rb +0 -97
- data/test/functional/admin/master_controller_posts_formats_test.rb +0 -53
- data/test/functional/admin/master_controller_posts_permissions_test.rb +0 -127
- data/test/functional/admin/master_controller_posts_roles.rb +0 -50
- data/test/functional/admin/master_controller_posts_toggle_test.rb +0 -35
- data/test/functional/admin/master_controller_posts_views_test.rb +0 -209
- data/test/functional/admin/master_controller_tableless_resource_test.rb +0 -36
- data/test/functional/admin/master_controller_typus_users_test.rb +0 -211
- data/test/functional/typus_controller_test.rb +0 -342
- data/test/helper.rb +0 -51
- data/test/helpers/admin/master_helper_test.rb +0 -70
- data/test/helpers/admin/public_helper_test.rb +0 -26
- data/test/helpers/typus_helper_test.rb +0 -96
- data/test/lib/active_record_test.rb +0 -377
- data/test/lib/configuration_test.rb +0 -95
- data/test/lib/hash_test.rb +0 -11
- data/test/lib/routes_test.rb +0 -71
- data/test/lib/string_test.rb +0 -55
- data/test/unit/typus_mailer_test.rb +0 -29
- data/test/unit/typus_test.rb +0 -17
- data/test/vendor/active_record_test.rb +0 -18
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2010, Francesc Esplugas Marti
|
|
3
|
+
Code licensed under the MIT License
|
|
4
|
+
Updated: 20100618
|
|
5
|
+
|
|
6
|
+
Reset
|
|
7
|
+
Global Styles – (body, paragraphs, lists, etc)
|
|
8
|
+
Header
|
|
9
|
+
Page Structure
|
|
10
|
+
Headings
|
|
11
|
+
Text Styles
|
|
12
|
+
Navigation
|
|
13
|
+
Forms
|
|
14
|
+
Comments
|
|
15
|
+
Extras
|
|
16
|
+
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/* @group Reset (960.gs) */
|
|
20
|
+
|
|
21
|
+
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
|
|
22
|
+
|
|
23
|
+
/* @end */
|
|
24
|
+
|
|
25
|
+
/* @group Defaults */
|
|
26
|
+
|
|
27
|
+
html,
|
|
28
|
+
body {
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: 0;
|
|
31
|
+
height: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
body {
|
|
35
|
+
font-family: "Lucida Grande", Sans-serif;
|
|
36
|
+
font-size: 75%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
label { display: block; font-weight: bold; margin: 0 0 5px 0; }
|
|
41
|
+
strong { font-weight: bold; }
|
|
42
|
+
em { font-style: italic; }
|
|
43
|
+
|
|
44
|
+
dl { margin: 14px 0 20px 0; }
|
|
45
|
+
dt { font-weight: bold; }
|
|
46
|
+
dd { font-size: 18px; margin: 0.25em 0 1em 0; }
|
|
47
|
+
dd p { color: #000; }
|
|
48
|
+
|
|
49
|
+
p { color: #777; line-height: 1.25em; margin: 1em 0; }
|
|
50
|
+
|
|
51
|
+
h1 { font-size: 2em; font-weight: normal; }
|
|
52
|
+
h2 { font-weight: bold; }
|
|
53
|
+
h3 { font-size: 1.25em; font-weight: bold; margin: 1em 0; }
|
|
54
|
+
|
|
55
|
+
li { color: #777; }
|
|
56
|
+
|
|
57
|
+
/* @end */
|
|
58
|
+
|
|
59
|
+
/* @group Links */
|
|
60
|
+
|
|
61
|
+
a,
|
|
62
|
+
a:visited,
|
|
63
|
+
a:link { color: #000; font-weight: normal; }
|
|
64
|
+
a:hover { color: #333; text-decoration: underline; }
|
|
65
|
+
|
|
66
|
+
/* @end */
|
|
67
|
+
|
|
68
|
+
/* @group Header */
|
|
69
|
+
|
|
70
|
+
#header_wrapper { background: #4A525A; }
|
|
71
|
+
|
|
72
|
+
#header_wrapper #header { color: #FFF; padding: 1.25em 2em 0.25em 2em; }
|
|
73
|
+
#header_wrapper #header h1 a { color: #FFF; text-decoration: none; }
|
|
74
|
+
#header_wrapper #header h1 a:hover { text-decoration: underline; }
|
|
75
|
+
|
|
76
|
+
#header_wrapper #links { color: #FFF; padding: 1.25em 2em; }
|
|
77
|
+
#header_wrapper #links ul li { display: inline; padding-left: 0.5em; color: #FFF; }
|
|
78
|
+
#header_wrapper #links a { color: #FFF; }
|
|
79
|
+
|
|
80
|
+
#header_wrapper #links .left { float: left; }
|
|
81
|
+
#header_wrapper #links .left ul { display: block; }
|
|
82
|
+
#header_wrapper #links .left ul li { display: inline; padding: 0 0.5em 0 0; }
|
|
83
|
+
#header_wrapper #links .left ul li a {
|
|
84
|
+
-webkit-border-radius: 5px;
|
|
85
|
+
background: #242527;
|
|
86
|
+
padding: 3px 5px;
|
|
87
|
+
text-decoration: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#header_wrapper #links .left ul li a:hover { background: #FFF; color: #000; }
|
|
91
|
+
|
|
92
|
+
#header_wrapper #links .right { float: right; }
|
|
93
|
+
|
|
94
|
+
/* @end */
|
|
95
|
+
|
|
96
|
+
/* @group Wrapper */
|
|
97
|
+
|
|
98
|
+
#wrapper { min-height: 100%; position: relative; }
|
|
99
|
+
|
|
100
|
+
/* @end */
|
|
101
|
+
|
|
102
|
+
/* @group Content Wrapper */
|
|
103
|
+
|
|
104
|
+
#content_wrapper { margin: 0em 0 2em 0; padding: 2em; }
|
|
105
|
+
|
|
106
|
+
/* @end */
|
|
107
|
+
|
|
108
|
+
/* @group Content */
|
|
109
|
+
|
|
110
|
+
#content { margin: 0 0 0 20em; }
|
|
111
|
+
|
|
112
|
+
#content h2 { font-size: 1.5em; margin: 0.5em 0; }
|
|
113
|
+
#content h2 small { font-size: 0.75em; }
|
|
114
|
+
#content h2 small a { color: #666; }
|
|
115
|
+
|
|
116
|
+
#content ol { margin: 1em 2em; }
|
|
117
|
+
#content ul { margin: 0 1.5em; }
|
|
118
|
+
#content li { list-style: square; line-height: 20px; }
|
|
119
|
+
|
|
120
|
+
#content pre {
|
|
121
|
+
background: #000;
|
|
122
|
+
color: #FFF;
|
|
123
|
+
font-size: 1.5em;
|
|
124
|
+
margin: 1em 0;
|
|
125
|
+
overflow: auto;
|
|
126
|
+
padding: 1em;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
#content blockquote {
|
|
130
|
+
-moz-border-radius: 3px;
|
|
131
|
+
-webkit-border-radius: 3px;
|
|
132
|
+
font-size: 1.25em;
|
|
133
|
+
font-family: georgia;
|
|
134
|
+
line-height: 1.5em;
|
|
135
|
+
margin: 1em 0;
|
|
136
|
+
padding: 0 1em;
|
|
137
|
+
border: 1px solid #AAA;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* @end */
|
|
141
|
+
|
|
142
|
+
/* @group Sidebar */
|
|
143
|
+
|
|
144
|
+
#sidebar { float: left; margin: -1em 2em 0 0; width: 18em; }
|
|
145
|
+
|
|
146
|
+
#sidebar h2 { font-size: 1.5em; margin: 1.1em 0 0 0; }
|
|
147
|
+
|
|
148
|
+
#sidebar h3 {
|
|
149
|
+
-moz-border-radius: 0.5em;
|
|
150
|
+
-webkit-border-radius: 0.5em;
|
|
151
|
+
background: #242527;
|
|
152
|
+
color: #FFF;
|
|
153
|
+
padding: 0.5em;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
#sidebar h3 a { color: #FFF; }
|
|
157
|
+
#sidebar ul { font-weight: bold; }
|
|
158
|
+
#sidebar ul li { padding: 0.25em 1em; }
|
|
159
|
+
|
|
160
|
+
#sidebar a { text-decoration: none; }
|
|
161
|
+
#sidebar a:hover { text-decoration: underline; }
|
|
162
|
+
|
|
163
|
+
/* @end */
|
|
164
|
+
|
|
165
|
+
/* @group Footer */
|
|
166
|
+
|
|
167
|
+
#footer_wrapper {
|
|
168
|
+
bottom: 0;
|
|
169
|
+
height: 50px;
|
|
170
|
+
position: absolute;
|
|
171
|
+
width: 100%;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
#footer { font-size: 0.9em; padding: 20px; }
|
|
175
|
+
|
|
176
|
+
/* @end */
|
|
177
|
+
|
|
178
|
+
/* @group Fieldsets */
|
|
179
|
+
|
|
180
|
+
fieldset { margin: 0; padding: 0; }
|
|
181
|
+
fieldset ol { margin: 0!important; }
|
|
182
|
+
fieldset ol li { list-style: none!important; margin: 1em 0!important; }
|
|
183
|
+
fieldset small { font-size: 0.9em; font-weight: normal; }
|
|
184
|
+
|
|
185
|
+
fieldset.inputs { }
|
|
186
|
+
|
|
187
|
+
fieldset.inputs input[type='text'],
|
|
188
|
+
fieldset.inputs input[type='password'] {
|
|
189
|
+
font-size: 20px;
|
|
190
|
+
padding: 5px;
|
|
191
|
+
width: 685px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
fieldset.inputs input[type='text']:focus,
|
|
195
|
+
fieldset.inputs input[type='password']:focus, {
|
|
196
|
+
background: #FFFCE1;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
fieldset.inputs textarea {
|
|
200
|
+
font-size: 1.2em;
|
|
201
|
+
padding: 3px;
|
|
202
|
+
width: 691px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
fieldset.inputs select { border: 1px solid #999; font-size: 1.20em; }
|
|
206
|
+
|
|
207
|
+
fieldset.inputs textarea:focus { background: #FFFCE1; }
|
|
208
|
+
fieldset.inputs label.inline_label { display: inline; }
|
|
209
|
+
|
|
210
|
+
fieldset.buttons { }
|
|
211
|
+
|
|
212
|
+
/* @end */
|
|
213
|
+
|
|
214
|
+
/* @group Content Tables */
|
|
215
|
+
|
|
216
|
+
#content table { margin-bottom: 2em!important; width: 100%; text-align: left; }
|
|
217
|
+
#content table a { text-decoration: none; }
|
|
218
|
+
#content table th { background: #242527; color: #FFF; padding: 6px; }
|
|
219
|
+
#content table th a { color: #FFF!important; text-decoration: none; }
|
|
220
|
+
#content table th a:hover { text-decoration: underline; }
|
|
221
|
+
#content table td.right { text-align: right; }
|
|
222
|
+
#content table tr.even { background: #FFF!important; }
|
|
223
|
+
#content table tr.even:hover,
|
|
224
|
+
#content table tr.odd:hover { background: #E4E4E4!important; }
|
|
225
|
+
#content table tr.odd { background: #F3F3F3; }
|
|
226
|
+
#content table td { border: none; padding: 5px; vertical-align: top; }
|
|
227
|
+
|
|
228
|
+
/* @end */
|
|
229
|
+
|
|
230
|
+
/* @group Login Page Dialog */
|
|
231
|
+
|
|
232
|
+
#account { background: #F3F3F3; }
|
|
233
|
+
|
|
234
|
+
#account #wrapper { margin: 10em auto; width: 40em; }
|
|
235
|
+
|
|
236
|
+
#account #box {
|
|
237
|
+
-moz-border-radius: 3px;
|
|
238
|
+
-webkit-border-radius: 3px;
|
|
239
|
+
background: #FFF;
|
|
240
|
+
border: 0.1em solid #D3D3D3;
|
|
241
|
+
padding: 1em 2em;
|
|
242
|
+
margin: 0 0 1em 0;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
#account #box h1 { margin: 0.5em 0 0.5em 0; }
|
|
246
|
+
#account #box ul { margin: 1.5em 0 0.5em 0; }
|
|
247
|
+
#account #box li { margin: 1em 0; }
|
|
248
|
+
|
|
249
|
+
#account #box input.text { font-size: 2em; padding: 0.25em; width: 17.25em; }
|
|
250
|
+
#account #box input.button { margin: 0.5em 0 0 0; }
|
|
251
|
+
|
|
252
|
+
#account #footer { font-size: 0.9em; line-height: 1.8em; text-align: center; }
|
|
253
|
+
#account #footer a { font-weight: bold; }
|
|
254
|
+
|
|
255
|
+
/* @end */
|
|
256
|
+
|
|
257
|
+
/* @group Pagination */
|
|
258
|
+
|
|
259
|
+
#pagination { margin: 1.5em auto; text-align: center; }
|
|
260
|
+
|
|
261
|
+
#pagination a { padding: 3px 5px; text-decoration: none; }
|
|
262
|
+
#pagination a:hover { background: #000; color: #FFF; }
|
|
263
|
+
|
|
264
|
+
#pagination span.disabled { color: #D3D3D3; margin: 2px; padding: 2px 3px; }
|
|
265
|
+
|
|
266
|
+
#pagination .left { float: left; }
|
|
267
|
+
#pagination .right { float: right; }
|
|
268
|
+
|
|
269
|
+
/* @end */
|
|
270
|
+
|
|
271
|
+
/* @group Rails errors and flashes */
|
|
272
|
+
|
|
273
|
+
#errorExplanation,
|
|
274
|
+
.alert,
|
|
275
|
+
.notice {
|
|
276
|
+
padding: 0.8em;
|
|
277
|
+
margin-bottom: 1em;
|
|
278
|
+
border: 1px solid #ddd;
|
|
279
|
+
-moz-border-radius: 8px;
|
|
280
|
+
-webkit-border-radius: 8px;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
#errorExplanation p,
|
|
284
|
+
#errorExplanation li,
|
|
285
|
+
#errorExplanation h3 {
|
|
286
|
+
color: #D12F19;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
#errorExplanation h3 { margin: 5px 0 0 0; }
|
|
290
|
+
|
|
291
|
+
#errorExplanation ul { margin: 10px 0 0 20px!important; }
|
|
292
|
+
|
|
293
|
+
#errorExplanation,
|
|
294
|
+
.alert { background: #FBE3E4; border-color: #FBC2C4; color: #D12F19; }
|
|
295
|
+
.alert a { color: #D12F19; text-decoration: underline; }
|
|
296
|
+
|
|
297
|
+
.notice { background: #FFF6BF; border-color: #FFD324; color: #817134; }
|
|
298
|
+
.notice a { color: #817134; text-decoration: underline; }
|
|
299
|
+
|
|
300
|
+
.fieldWithErrors label { color: #CD0A0A;}
|
|
301
|
+
.fieldWithErrors input { background: #FEF8F6; }
|
|
302
|
+
|
|
303
|
+
#errorExplanation ul { margin: 1em 1.5em; }
|
|
304
|
+
#errorExplanation ul li { list-style: square!important; margin: 0!important; }
|
|
305
|
+
|
|
306
|
+
/* @end */
|
|
307
|
+
|
|
308
|
+
/* Boxes */
|
|
309
|
+
|
|
310
|
+
.box {
|
|
311
|
+
-moz-border-radius: 3px;
|
|
312
|
+
-webkit-border-radius: 3px;
|
|
313
|
+
background: #FFF;
|
|
314
|
+
border: 1px solid #AAA;
|
|
315
|
+
margin: 1em 0;
|
|
316
|
+
padding: 0.5em 1em ;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.box h3 { margin: 0.5em 0!important; }
|
|
320
|
+
|
|
321
|
+
/* @group Hacks */
|
|
322
|
+
|
|
323
|
+
.clear { clear: both; }
|
|
324
|
+
.box_relationships { margin-top: 2.5em; }
|
|
325
|
+
|
|
326
|
+
/* @end */
|
|
327
|
+
|
|
328
|
+
/* @group Sprite */
|
|
329
|
+
|
|
330
|
+
.sprite { background: url(../images/ui-icons.png) no-repeat; text-indent: -10000px; }
|
|
331
|
+
.trash { background-position: -177px -97px; height: 15px; width: 15px; }
|
|
332
|
+
.unrelate { background-position: -145px -129px; height: 15px; width: 15px; }
|
|
333
|
+
|
|
334
|
+
/* @end */
|
|
335
|
+
|
|
336
|
+
/* @group Filters */
|
|
337
|
+
|
|
338
|
+
#content .filters {
|
|
339
|
+
border-top: 1px solid #D3D3D3;
|
|
340
|
+
border-bottom: 1px solid #D3D3D3;
|
|
341
|
+
height: 2em;
|
|
342
|
+
margin: 0 0 1em 0;
|
|
343
|
+
padding: 1em 0;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
#content .filters ul { margin: 0; }
|
|
347
|
+
#content .filters ul li { float: left; list-style: none; margin: 0 1em 0 0; }
|
|
348
|
+
|
|
349
|
+
/* @end */
|
|
350
|
+
|
|
351
|
+
/* @group Search */
|
|
352
|
+
|
|
353
|
+
#search { float: right; }
|
|
354
|
+
#search input { font-size: 1em; padding: 3px; }
|
|
355
|
+
|
|
356
|
+
/* @end */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
|
3
|
+
*
|
|
4
|
+
* Uses the built in easing capabilities added In jQuery 1.1
|
|
5
|
+
* to offer multiple easing options
|
|
6
|
+
*
|
|
7
|
+
* TERMS OF USE - jQuery Easing
|
|
8
|
+
*
|
|
9
|
+
* Open source under the BSD License.
|
|
10
|
+
*
|
|
11
|
+
* Copyright © 2008 George McGinley Smith
|
|
12
|
+
* All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
|
15
|
+
* are permitted provided that the following conditions are met:
|
|
16
|
+
*
|
|
17
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
|
18
|
+
* conditions and the following disclaimer.
|
|
19
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
|
20
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
21
|
+
* provided with the distribution.
|
|
22
|
+
*
|
|
23
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
|
24
|
+
* or promote products derived from this software without specific prior written permission.
|
|
25
|
+
*
|
|
26
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
27
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
28
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
29
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
30
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
31
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
32
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
33
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
34
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
// t: current time, b: begInnIng value, c: change In value, d: duration
|
|
39
|
+
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))
|
|
40
|
+
|
|
41
|
+
/*
|
|
42
|
+
*
|
|
43
|
+
* TERMS OF USE - EASING EQUATIONS
|
|
44
|
+
*
|
|
45
|
+
* Open source under the BSD License.
|
|
46
|
+
*
|
|
47
|
+
* Copyright © 2001 Robert Penner
|
|
48
|
+
* All rights reserved.
|
|
49
|
+
*
|
|
50
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
|
51
|
+
* are permitted provided that the following conditions are met:
|
|
52
|
+
*
|
|
53
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
|
54
|
+
* conditions and the following disclaimer.
|
|
55
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
|
56
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
57
|
+
* provided with the distribution.
|
|
58
|
+
*
|
|
59
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
|
60
|
+
* or promote products derived from this software without specific prior written permission.
|
|
61
|
+
*
|
|
62
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
63
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
64
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
65
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
66
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
67
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
68
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
69
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
70
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
71
|
+
*
|
|
72
|
+
*/
|