katello 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of katello might be problematic. Click here for more details.
- data/LICENSE.txt +339 -0
- data/README.md +182 -0
- data/app/assets/images/katello/3rd-level-bg.png +0 -0
- data/app/assets/images/katello/960.png +0 -0
- data/app/assets/images/katello/biglogo.png +0 -0
- data/app/assets/images/katello/black_arrow.png +0 -0
- data/app/assets/images/katello/boxshadow.png +0 -0
- data/app/assets/images/katello/center-background.png +0 -0
- data/app/assets/images/katello/chart_overlay.png +0 -0
- data/app/assets/images/katello/chosen-sprite.png +0 -0
- data/app/assets/images/katello/cross_link.png +0 -0
- data/app/assets/images/katello/embed/favicon.png +0 -0
- data/app/assets/images/katello/footer-shade.png +0 -0
- data/app/assets/images/katello/headpin-login-logo.png +0 -0
- data/app/assets/images/katello/headpin-logo.png +0 -0
- data/app/assets/images/katello/icons/action-icons.png +0 -0
- data/app/assets/images/katello/icons/arrow_icon.png +0 -0
- data/app/assets/images/katello/icons/breadcrumb-icons.png +0 -0
- data/app/assets/images/katello/icons/check_icon.png +0 -0
- data/app/assets/images/katello/icons/close.png +0 -0
- data/app/assets/images/katello/icons/dotdotdot.png +0 -0
- data/app/assets/images/katello/icons/edit-hover.png +0 -0
- data/app/assets/images/katello/icons/edit.png +0 -0
- data/app/assets/images/katello/icons/expander-collapsed-left.png +0 -0
- data/app/assets/images/katello/icons/expander-collapsed.png +0 -0
- data/app/assets/images/katello/icons/expander-expanded.png +0 -0
- data/app/assets/images/katello/icons/favorite.png +0 -0
- data/app/assets/images/katello/icons/grabber.png +0 -0
- data/app/assets/images/katello/icons/icon_menu_arrow.gif +0 -0
- data/app/assets/images/katello/icons/icon_search.png +0 -0
- data/app/assets/images/katello/icons/info-hover.png +0 -0
- data/app/assets/images/katello/icons/info.png +0 -0
- data/app/assets/images/katello/icons/locked.png +0 -0
- data/app/assets/images/katello/icons/objects.png +0 -0
- data/app/assets/images/katello/icons/order-asc.png +0 -0
- data/app/assets/images/katello/icons/order-desc.png +0 -0
- data/app/assets/images/katello/icons/recent.png +0 -0
- data/app/assets/images/katello/icons/right-arrow.png +0 -0
- data/app/assets/images/katello/icons/simplePassMeterSprite.png +0 -0
- data/app/assets/images/katello/icons/spinner.gif +0 -0
- data/app/assets/images/katello/icons/spinner_head.gif +0 -0
- data/app/assets/images/katello/icons/status.png +0 -0
- data/app/assets/images/katello/icons/status_icons_sprite.png +0 -0
- data/app/assets/images/katello/icons/statusicons.png +0 -0
- data/app/assets/images/katello/icons/svg-source/action-icons.svg +1613 -0
- data/app/assets/images/katello/icons/svg-source/breadcrumb-icons.svg +289 -0
- data/app/assets/images/katello/icons/svg-source/objects.svg +446 -0
- data/app/assets/images/katello/icons/ui.totop.png +0 -0
- data/app/assets/images/katello/input-bg.png +0 -0
- data/app/assets/images/katello/katello-login-logo.png +0 -0
- data/app/assets/images/katello/katello-logo.png +0 -0
- data/app/assets/images/katello/katello.png +0 -0
- data/app/assets/images/katello/katello_32x32_icon.png +0 -0
- data/app/assets/images/katello/large-white-spinner.gif +0 -0
- data/app/assets/images/katello/nav_pipe.png +0 -0
- data/app/assets/images/katello/navtab_off.png +0 -0
- data/app/assets/images/katello/navtab_on.png +0 -0
- data/app/assets/images/katello/outer-background.png +0 -0
- data/app/assets/images/katello/subnav-shadow.png +0 -0
- data/app/assets/javascripts/katello/activation_keys/activation_key.js +336 -0
- data/app/assets/javascripts/katello/activation_keys/activation_key_edit.js +19 -0
- data/app/assets/javascripts/katello/activation_keys/activation_key_subscriptions.js +18 -0
- data/app/assets/javascripts/katello/activation_keys/index.js +17 -0
- data/app/assets/javascripts/katello/changesets/changeset.js +47 -0
- data/app/assets/javascripts/katello/changesets/changeset_edit.js +79 -0
- data/app/assets/javascripts/katello/changesets/index.js +14 -0
- data/app/assets/javascripts/katello/common/bastion-routes.js +2878 -0
- data/app/assets/javascripts/katello/common/chosen.jquery.js +907 -0
- data/app/assets/javascripts/katello/common/env_select.js +143 -0
- data/app/assets/javascripts/katello/common/env_select_scroll.js +133 -0
- data/app/assets/javascripts/katello/common/experimental/katello-globals.module.js +21 -0
- data/app/assets/javascripts/katello/common/index.js +29 -0
- data/app/assets/javascripts/katello/common/jquery.jeditable.custominputs.js +224 -0
- data/app/assets/javascripts/katello/common/katello.common.js +203 -0
- data/app/assets/javascripts/katello/common/katello.global.js +31 -0
- data/app/assets/javascripts/katello/common/katello.js +353 -0
- data/app/assets/javascripts/katello/common/katello_object.js +103 -0
- data/app/assets/javascripts/katello/common/menu.js +125 -0
- data/app/assets/javascripts/katello/common/notices.js +176 -0
- data/app/assets/javascripts/katello/common/panel.js +1078 -0
- data/app/assets/javascripts/katello/common/routes.js +2886 -0
- data/app/assets/javascripts/katello/common/search.js +376 -0
- data/app/assets/javascripts/katello/common/spin.min.js +2 -0
- data/app/assets/javascripts/katello/common/vendor.js +32 -0
- data/app/assets/javascripts/katello/content_search/content_search.js +904 -0
- data/app/assets/javascripts/katello/content_search/index.js +18 -0
- data/app/assets/javascripts/katello/content_view_definitions/content_view_definition.js +844 -0
- data/app/assets/javascripts/katello/content_view_definitions/env_content_view_selector.js +188 -0
- data/app/assets/javascripts/katello/content_view_definitions/index.js +19 -0
- data/app/assets/javascripts/katello/content_view_definitions/product_repo_selector.js +569 -0
- data/app/assets/javascripts/katello/content_view_definitions/repo_selector.js +47 -0
- data/app/assets/javascripts/katello/dashboard/dashboard.js +215 -0
- data/app/assets/javascripts/katello/dashboard/index.js +17 -0
- data/app/assets/javascripts/katello/distributors/distributor_edit.js +16 -0
- data/app/assets/javascripts/katello/distributors/distributor_subscriptions.js +41 -0
- data/app/assets/javascripts/katello/distributors/distributors.js +332 -0
- data/app/assets/javascripts/katello/distributors/index.js +23 -0
- data/app/assets/javascripts/katello/environments/environment_edit.js +63 -0
- data/app/assets/javascripts/katello/html5/excanvas.js +1416 -0
- data/app/assets/javascripts/katello/html5/html5.js +3 -0
- data/app/assets/javascripts/katello/html5/index.js +14 -0
- data/app/assets/javascripts/katello/notices/index.js +14 -0
- data/app/assets/javascripts/katello/notices/notices_list.js +49 -0
- data/app/assets/javascripts/katello/organizations/default_info.js +216 -0
- data/app/assets/javascripts/katello/organizations/download_certificate.js +20 -0
- data/app/assets/javascripts/katello/organizations/index.js +15 -0
- data/app/assets/javascripts/katello/organizations/organization.js +68 -0
- data/app/assets/javascripts/katello/organizations/organization_edit.js +46 -0
- data/app/assets/javascripts/katello/products/product_edit.js +76 -0
- data/app/assets/javascripts/katello/promotions/index.js +16 -0
- data/app/assets/javascripts/katello/promotions/promotion.js +1244 -0
- data/app/assets/javascripts/katello/providers/index.js +18 -0
- data/app/assets/javascripts/katello/providers/products_repos.js +46 -0
- data/app/assets/javascripts/katello/providers/provider.js +68 -0
- data/app/assets/javascripts/katello/providers/provider_create.js +21 -0
- data/app/assets/javascripts/katello/providers/provider_redhat.js +219 -0
- data/app/assets/javascripts/katello/providers/redhat/index.js +17 -0
- data/app/assets/javascripts/katello/providers/repo.js +27 -0
- data/app/assets/javascripts/katello/providers/repo_discovery.js +376 -0
- data/app/assets/javascripts/katello/providers/repo_discovery_create.js +17 -0
- data/app/assets/javascripts/katello/roles/index.js +17 -0
- data/app/assets/javascripts/katello/roles/role.js +16 -0
- data/app/assets/javascripts/katello/roles/role_edit.js +46 -0
- data/app/assets/javascripts/katello/roles/role_sliding_tree.js +1398 -0
- data/app/assets/javascripts/katello/subscriptions/headpin.sparkline.js +6 -0
- data/app/assets/javascripts/katello/subscriptions/index.js +17 -0
- data/app/assets/javascripts/katello/subscriptions/subscription.js +126 -0
- data/app/assets/javascripts/katello/sync_management/index.js +15 -0
- data/app/assets/javascripts/katello/sync_management/sync_management.js +342 -0
- data/app/assets/javascripts/katello/sync_plans/index.js +15 -0
- data/app/assets/javascripts/katello/sync_plans/sync_plan.js +32 -0
- data/app/assets/javascripts/katello/sync_plans/sync_plan_edit.js +128 -0
- data/app/assets/javascripts/katello/sync_schedules/index.js +15 -0
- data/app/assets/javascripts/katello/sync_schedules/sync_schedule.js +28 -0
- data/app/assets/javascripts/katello/system_events/index.js +15 -0
- data/app/assets/javascripts/katello/system_events/system_events.js +181 -0
- data/app/assets/javascripts/katello/system_groups/index.js +19 -0
- data/app/assets/javascripts/katello/system_groups/package_actions.js +316 -0
- data/app/assets/javascripts/katello/system_groups/system_group_events.js +23 -0
- data/app/assets/javascripts/katello/system_groups/system_groups.js +445 -0
- data/app/assets/javascripts/katello/system_groups/system_groups_pane.js +141 -0
- data/app/assets/javascripts/katello/system_packages/index.js +16 -0
- data/app/assets/javascripts/katello/system_packages/packages_filtertable.js +63 -0
- data/app/assets/javascripts/katello/system_packages/system_packages.js +767 -0
- data/app/assets/javascripts/katello/systems/custom_info.js +134 -0
- data/app/assets/javascripts/katello/systems/index.js +28 -0
- data/app/assets/javascripts/katello/systems/packages.js +34 -0
- data/app/assets/javascripts/katello/systems/system_edit.js +67 -0
- data/app/assets/javascripts/katello/systems/system_errata.js +313 -0
- data/app/assets/javascripts/katello/systems/system_products.js +113 -0
- data/app/assets/javascripts/katello/systems/system_subscriptions.js +71 -0
- data/app/assets/javascripts/katello/systems/systems.js +793 -0
- data/app/assets/javascripts/katello/users/index.js +16 -0
- data/app/assets/javascripts/katello/users/user.js +102 -0
- data/app/assets/javascripts/katello/users/user_methods.js +111 -0
- data/app/assets/javascripts/katello/widgets/auto_complete.js +195 -0
- data/app/assets/javascripts/katello/widgets/comparison_grid.js +1031 -0
- data/app/assets/javascripts/katello/widgets/env_content_view_selector.js +206 -0
- data/app/assets/javascripts/katello/widgets/filtertable/filtertable.js +36 -0
- data/app/assets/javascripts/katello/widgets/filtertable/index.js +15 -0
- data/app/assets/javascripts/katello/widgets/jquery.jeditable.helpers.js +281 -0
- data/app/assets/javascripts/katello/widgets/one_panel.js +68 -0
- data/app/assets/javascripts/katello/widgets/path_selector.js +397 -0
- data/app/assets/javascripts/katello/widgets/scroll_pane.js +4 -0
- data/app/assets/javascripts/katello/widgets/slidingtree.js +645 -0
- data/app/assets/javascripts/katello/widgets/subpanel_new.js +19 -0
- data/app/assets/javascripts/katello/widgets/tabs.js +26 -0
- data/app/assets/javascripts/katello/widgets/tipsy.custom.js +197 -0
- data/app/assets/javascripts/katello/widgets/treetable/index.js +14 -0
- data/app/assets/stylesheets/katello/_grid.scss +11 -0
- data/app/assets/stylesheets/katello/_katello_base.scss +7 -0
- data/app/assets/stylesheets/katello/_katello_colors.scss +109 -0
- data/app/assets/stylesheets/katello/_katello_mixins.scss +88 -0
- data/app/assets/stylesheets/katello/_katello_vars.scss +92 -0
- data/app/assets/stylesheets/katello/_look.scss +1 -0
- data/app/assets/stylesheets/katello/_overrides.scss +23 -0
- data/app/assets/stylesheets/katello/activation_keys.scss +16 -0
- data/app/assets/stylesheets/katello/content_search.scss +647 -0
- data/app/assets/stylesheets/katello/contents.scss +591 -0
- data/app/assets/stylesheets/katello/custom_info.scss +32 -0
- data/app/assets/stylesheets/katello/dashboard.scss +631 -0
- data/app/assets/stylesheets/katello/distributors.scss +183 -0
- data/app/assets/stylesheets/katello/fancyqueries.scss +218 -0
- data/app/assets/stylesheets/katello/generic.scss +20 -0
- data/app/assets/stylesheets/katello/header.scss +53 -0
- data/app/assets/stylesheets/katello/ie.scss +16 -0
- data/app/assets/stylesheets/katello/katello.scss +1474 -0
- data/app/assets/stylesheets/katello/katello_experimental.scss +90 -0
- data/app/assets/stylesheets/katello/katello_sprites.css.scss +45 -0
- data/app/assets/stylesheets/katello/loginpage.css.scss +47 -0
- data/app/assets/stylesheets/katello/notifications.scss +19 -0
- data/app/assets/stylesheets/katello/operations.scss +166 -0
- data/app/assets/stylesheets/katello/orgs.scss +60 -0
- data/app/assets/stylesheets/katello/subscriptions.scss +30 -0
- data/app/assets/stylesheets/katello/systems.scss +349 -0
- data/app/assets/stylesheets/katello/widgets/_chosen.scss +422 -0
- data/app/assets/stylesheets/katello/widgets/_env_select.scss +123 -0
- data/app/assets/stylesheets/katello/widgets/_multiselect.scss +40 -0
- data/app/assets/stylesheets/katello/widgets/_scrollpane.scss +66 -0
- data/app/assets/stylesheets/katello/widgets/_search.scss +46 -0
- data/app/assets/stylesheets/katello/widgets/_slidingtree.scss +347 -0
- data/app/assets/stylesheets/katello/widgets/path_selector.scss +178 -0
- data/app/assets/stylesheets/katello/widgets/tabs.scss +83 -0
- data/app/assets/stylesheets/katello/widgets/tipsy_custom.scss +81 -0
- data/app/controllers/katello/activation_keys_controller.rb +371 -0
- data/app/controllers/katello/api/api_controller.rb +145 -0
- data/app/controllers/katello/api/v1/about_controller.rb +43 -0
- data/app/controllers/katello/api/v1/activation_keys_controller.rb +178 -0
- data/app/controllers/katello/api/v1/api_controller.rb +161 -0
- data/app/controllers/katello/api/v1/candlepin_proxies_controller.rb +43 -0
- data/app/controllers/katello/api/v1/changesets_content_controller.rb +65 -0
- data/app/controllers/katello/api/v1/changesets_controller.rb +118 -0
- data/app/controllers/katello/api/v1/content_uploads_controller.rb +98 -0
- data/app/controllers/katello/api/v1/content_view_definitions_controller.rb +251 -0
- data/app/controllers/katello/api/v1/content_views_controller.rb +119 -0
- data/app/controllers/katello/api/v1/crls_controller.rb +29 -0
- data/app/controllers/katello/api/v1/custom_info_controller.rb +98 -0
- data/app/controllers/katello/api/v1/distributions_controller.rb +54 -0
- data/app/controllers/katello/api/v1/distributors_controller.rb +285 -0
- data/app/controllers/katello/api/v1/environments_controller.rb +246 -0
- data/app/controllers/katello/api/v1/errata_controller.rb +91 -0
- data/app/controllers/katello/api/v1/errors_controller.rb +24 -0
- data/app/controllers/katello/api/v1/filter_rules_controller.rb +94 -0
- data/app/controllers/katello/api/v1/filters_controller.rb +152 -0
- data/app/controllers/katello/api/v1/gpg_keys_controller.rb +107 -0
- data/app/controllers/katello/api/v1/organization_default_info_controller.rb +123 -0
- data/app/controllers/katello/api/v1/organizations_controller.rb +17 -0
- data/app/controllers/katello/api/v1/packages_controller.rb +67 -0
- data/app/controllers/katello/api/v1/permissions_controller.rb +112 -0
- data/app/controllers/katello/api/v1/ping_controller.rb +47 -0
- data/app/controllers/katello/api/v1/products_controller.rb +170 -0
- data/app/controllers/katello/api/v1/providers_controller.rb +237 -0
- data/app/controllers/katello/api/v1/proxies_controller.rb +103 -0
- data/app/controllers/katello/api/v1/puppet_modules_controller.rb +72 -0
- data/app/controllers/katello/api/v1/repositories_controller.rb +214 -0
- data/app/controllers/katello/api/v1/repository_sets_controller.rb +77 -0
- data/app/controllers/katello/api/v1/role_ldap_groups_controller.rb +59 -0
- data/app/controllers/katello/api/v1/roles_controller.rb +112 -0
- data/app/controllers/katello/api/v1/root_controller.rb +57 -0
- data/app/controllers/katello/api/v1/status_controller.rb +32 -0
- data/app/controllers/katello/api/v1/subscriptions_controller.rb +141 -0
- data/app/controllers/katello/api/v1/sync_controller.rb +116 -0
- data/app/controllers/katello/api/v1/sync_plans_controller.rb +120 -0
- data/app/controllers/katello/api/v1/system_group_errata_controller.rb +93 -0
- data/app/controllers/katello/api/v1/system_group_packages_controller.rb +125 -0
- data/app/controllers/katello/api/v1/system_groups_controller.rb +290 -0
- data/app/controllers/katello/api/v1/system_packages_controller.rb +134 -0
- data/app/controllers/katello/api/v1/systems_controller.rb +606 -0
- data/app/controllers/katello/api/v1/tasks_controller.rb +86 -0
- data/app/controllers/katello/api/v1/uebercerts_controller.rb +31 -0
- data/app/controllers/katello/api/v1/users_controller.rb +179 -0
- data/app/controllers/katello/api/v2/about_controller.rb +19 -0
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +41 -0
- data/app/controllers/katello/api/v2/api_controller.rb +130 -0
- data/app/controllers/katello/api/v2/changesets_content_controller.rb +59 -0
- data/app/controllers/katello/api/v2/changesets_controller.rb +50 -0
- data/app/controllers/katello/api/v2/content_uploads_controller.rb +19 -0
- data/app/controllers/katello/api/v2/content_view_definitions_controller.rb +133 -0
- data/app/controllers/katello/api/v2/content_views_controller.rb +50 -0
- data/app/controllers/katello/api/v2/custom_info_controller.rb +57 -0
- data/app/controllers/katello/api/v2/distributions_controller.rb +19 -0
- data/app/controllers/katello/api/v2/distributors_controller.rb +19 -0
- data/app/controllers/katello/api/v2/environments_controller.rb +103 -0
- data/app/controllers/katello/api/v2/errata_controller.rb +88 -0
- data/app/controllers/katello/api/v2/filter_rules_controller.rb +55 -0
- data/app/controllers/katello/api/v2/filters_controller.rb +99 -0
- data/app/controllers/katello/api/v2/gpg_keys_controller.rb +132 -0
- data/app/controllers/katello/api/v2/organization_default_info_controller.rb +61 -0
- data/app/controllers/katello/api/v2/organizations_controller.rb +104 -0
- data/app/controllers/katello/api/v2/packages_controller.rb +19 -0
- data/app/controllers/katello/api/v2/permissions_controller.rb +62 -0
- data/app/controllers/katello/api/v2/ping_controller.rb +36 -0
- data/app/controllers/katello/api/v2/products_controller.rb +133 -0
- data/app/controllers/katello/api/v2/providers_controller.rb +276 -0
- data/app/controllers/katello/api/v2/puppet_modules_controller.rb +17 -0
- data/app/controllers/katello/api/v2/repositories_controller.rb +155 -0
- data/app/controllers/katello/api/v2/repository_sets_controller.rb +30 -0
- data/app/controllers/katello/api/v2/role_ldap_groups_controller.rb +32 -0
- data/app/controllers/katello/api/v2/roles_controller.rb +19 -0
- data/app/controllers/katello/api/v2/root_controller.rb +19 -0
- data/app/controllers/katello/api/v2/subscriptions_controller.rb +183 -0
- data/app/controllers/katello/api/v2/sync_controller.rb +44 -0
- data/app/controllers/katello/api/v2/sync_plans_controller.rb +51 -0
- data/app/controllers/katello/api/v2/system_errata_controller.rb +48 -0
- data/app/controllers/katello/api/v2/system_group_errata_controller.rb +19 -0
- data/app/controllers/katello/api/v2/system_group_packages_controller.rb +19 -0
- data/app/controllers/katello/api/v2/system_groups_controller.rb +201 -0
- data/app/controllers/katello/api/v2/system_packages_controller.rb +130 -0
- data/app/controllers/katello/api/v2/systems_bulk_actions_controller.rb +247 -0
- data/app/controllers/katello/api/v2/systems_controller.rb +613 -0
- data/app/controllers/katello/api/v2/tasks_controller.rb +67 -0
- data/app/controllers/katello/api/v2/uebercerts_controller.rb +19 -0
- data/app/controllers/katello/api/v2/users_controller.rb +74 -0
- data/app/controllers/katello/application_controller.rb +736 -0
- data/app/controllers/katello/application_info_controller.rb +41 -0
- data/app/controllers/katello/auto_complete_search.rb +48 -0
- data/app/controllers/katello/changesets_controller.rb +323 -0
- data/app/controllers/katello/consumers_controller_logic.rb +57 -0
- data/app/controllers/katello/content_search_controller.rb +756 -0
- data/app/controllers/katello/content_view_definitions_controller.rb +318 -0
- data/app/controllers/katello/content_view_versions_controller.rb +47 -0
- data/app/controllers/katello/content_views_controller.rb +98 -0
- data/app/controllers/katello/dashboard_controller.rb +113 -0
- data/app/controllers/katello/distributor_events_controller.rb +110 -0
- data/app/controllers/katello/distributors_controller.rb +503 -0
- data/app/controllers/katello/environments_controller.rb +196 -0
- data/app/controllers/katello/errata_controller.rb +75 -0
- data/app/controllers/katello/errors_controller.rb +36 -0
- data/app/controllers/katello/failed_authentication_controller.rb +66 -0
- data/app/controllers/katello/filter_rules_controller.rb +248 -0
- data/app/controllers/katello/filters_controller.rb +141 -0
- data/app/controllers/katello/gpg_keys_controller.rb +41 -0
- data/app/controllers/katello/http_errors.rb +67 -0
- data/app/controllers/katello/notices_controller.rb +99 -0
- data/app/controllers/katello/operations_controller.rb +30 -0
- data/app/controllers/katello/organizations_controller.rb +288 -0
- data/app/controllers/katello/packages_controller.rb +86 -0
- data/app/controllers/katello/products_controller.rb +158 -0
- data/app/controllers/katello/promotions_controller.rb +93 -0
- data/app/controllers/katello/providers_controller.rb +274 -0
- data/app/controllers/katello/puppet_modules_controller.rb +68 -0
- data/app/controllers/katello/repositories_controller.rb +150 -0
- data/app/controllers/katello/roles_controller.rb +287 -0
- data/app/controllers/katello/search_controller.rb +94 -0
- data/app/controllers/katello/sort_column_list.rb +33 -0
- data/app/controllers/katello/subscriptions_controller.rb +327 -0
- data/app/controllers/katello/sync_management_controller.rb +242 -0
- data/app/controllers/katello/sync_plans_controller.rb +159 -0
- data/app/controllers/katello/sync_schedules_controller.rb +94 -0
- data/app/controllers/katello/system_errata_controller.rb +109 -0
- data/app/controllers/katello/system_events_controller.rb +110 -0
- data/app/controllers/katello/system_group_errata_controller.rb +106 -0
- data/app/controllers/katello/system_group_events_controller.rb +123 -0
- data/app/controllers/katello/system_group_packages_controller.rb +215 -0
- data/app/controllers/katello/system_groups_controller.rb +293 -0
- data/app/controllers/katello/system_packages_controller.rb +201 -0
- data/app/controllers/katello/systems_controller.rb +846 -0
- data/app/controllers/katello/user_sessions_controller.rb +41 -0
- data/app/controllers/katello/users_controller.rb +360 -0
- data/app/helpers/katello/activation_keys_helper.rb +16 -0
- data/app/helpers/katello/application_helper.rb +410 -0
- data/app/helpers/katello/application_info_helper.rb +37 -0
- data/app/helpers/katello/branding_helper.rb +40 -0
- data/app/helpers/katello/breadcrumb_helper.rb +229 -0
- data/app/helpers/katello/content_search_helper.rb +62 -0
- data/app/helpers/katello/content_view_definitions_helper.rb +136 -0
- data/app/helpers/katello/dashboard_helper.rb +223 -0
- data/app/helpers/katello/distributors_helper.rb +71 -0
- data/app/helpers/katello/errata_helper.rb +33 -0
- data/app/helpers/katello/filter_rules_helper.rb +89 -0
- data/app/helpers/katello/filters_helper.rb +124 -0
- data/app/helpers/katello/katello_form_builder.rb +162 -0
- data/app/helpers/katello/katello_url_helper.rb +49 -0
- data/app/helpers/katello/layout_helper.rb +32 -0
- data/app/helpers/katello/menu.rb +112 -0
- data/app/helpers/katello/notices_helper.rb +23 -0
- data/app/helpers/katello/organizations_helper.rb +36 -0
- data/app/helpers/katello/packages_helper.rb +81 -0
- data/app/helpers/katello/products_helper.rb +72 -0
- data/app/helpers/katello/promotions_helper.rb +39 -0
- data/app/helpers/katello/providers_helper.rb +108 -0
- data/app/helpers/katello/repositories_helper.rb +31 -0
- data/app/helpers/katello/roles_helper.rb +49 -0
- data/app/helpers/katello/search_helper.rb +37 -0
- data/app/helpers/katello/subscriptions_helper.rb +45 -0
- data/app/helpers/katello/sync_management_helper.rb +124 -0
- data/app/helpers/katello/sync_schedules_helper.rb +28 -0
- data/app/helpers/katello/system_errata_helper.rb +28 -0
- data/app/helpers/katello/system_events_helper.rb +16 -0
- data/app/helpers/katello/system_group_events_helper.rb +19 -0
- data/app/helpers/katello/system_packages_helper.rb +55 -0
- data/app/helpers/katello/systems_helper.rb +174 -0
- data/app/helpers/katello/taxonomy_helper.rb +29 -0
- data/app/helpers/katello/translation_helper.rb +29 -0
- data/app/helpers/katello/users_helper.rb +45 -0
- data/app/lib/katello/README +2 -0
- data/app/lib/katello/api/constraints/activation_key_constraint.rb +19 -0
- data/app/lib/katello/api/mapper_extensions.rb +34 -0
- data/app/lib/katello/api/v1/error_handling.rb +152 -0
- data/app/lib/katello/api/v2/error_handling.rb +153 -0
- data/app/lib/katello/api/v2/rendering.rb +79 -0
- data/app/lib/katello/api/version1.rb +9 -0
- data/app/lib/katello/api/version2.rb +9 -0
- data/app/lib/katello/authorization_rules.rb +94 -0
- data/app/lib/katello/bulk_actions.rb +100 -0
- data/app/lib/katello/content_search/cell.rb +30 -0
- data/app/lib/katello/content_search/column.rb +18 -0
- data/app/lib/katello/content_search/container_search.rb +48 -0
- data/app/lib/katello/content_search/content_view_comparison.rb +206 -0
- data/app/lib/katello/content_search/content_view_search.rb +72 -0
- data/app/lib/katello/content_search/element.rb +61 -0
- data/app/lib/katello/content_search/metadata_row.rb +35 -0
- data/app/lib/katello/content_search/product_row.rb +36 -0
- data/app/lib/katello/content_search/product_search.rb +61 -0
- data/app/lib/katello/content_search/repo_row.rb +33 -0
- data/app/lib/katello/content_search/repo_search.rb +69 -0
- data/app/lib/katello/content_search/row.rb +25 -0
- data/app/lib/katello/content_search/search.rb +47 -0
- data/app/lib/katello/content_search/search_utils.rb +33 -0
- data/app/lib/katello/content_search/span.rb +21 -0
- data/app/lib/katello/content_search/unit_row.rb +56 -0
- data/app/lib/katello/dashboard/content_views_widget.rb +30 -0
- data/app/lib/katello/dashboard/errata_widget.rb +30 -0
- data/app/lib/katello/dashboard/layout.rb +76 -0
- data/app/lib/katello/dashboard/notices_widget.rb +24 -0
- data/app/lib/katello/dashboard/promotions_widget.rb +30 -0
- data/app/lib/katello/dashboard/subscriptions_totals_widget.rb +29 -0
- data/app/lib/katello/dashboard/subscriptions_widget.rb +25 -0
- data/app/lib/katello/dashboard/sync_widget.rb +29 -0
- data/app/lib/katello/dashboard/system_groups_widget.rb +30 -0
- data/app/lib/katello/dashboard/widget.rb +46 -0
- data/app/lib/katello/errors.rb +89 -0
- data/app/lib/katello/glue/event.rb +71 -0
- data/app/lib/katello/glue/queue.rb +88 -0
- data/app/lib/katello/glue/task.rb +56 -0
- data/app/lib/katello/http_resource.rb +219 -0
- data/app/lib/katello/kt_locale.rb +76 -0
- data/app/lib/katello/lazy_accessor.rb +157 -0
- data/app/lib/katello/ldap.rb +43 -0
- data/app/lib/katello/mapping.rb +46 -0
- data/app/lib/katello/navigation.rb +21 -0
- data/app/lib/katello/navigation/content_menu.rb +316 -0
- data/app/lib/katello/navigation/organization_menu.rb +72 -0
- data/app/lib/katello/navigation/system_menu.rb +208 -0
- data/app/lib/katello/notifications.rb +17 -0
- data/app/lib/katello/notifications/controller_helper.rb +43 -0
- data/app/lib/katello/notifications/notifier.rb +190 -0
- data/app/lib/katello/notify.rb +16 -0
- data/app/lib/katello/profiling.rb +61 -0
- data/app/lib/katello/repo_discovery.rb +89 -0
- data/app/lib/katello/resources/candlepin.rb +723 -0
- data/app/lib/katello/resources/cdn.rb +145 -0
- data/app/lib/katello/util/cdn_var_substitutor.rb +133 -0
- data/app/lib/katello/util/data.rb +54 -0
- data/app/lib/katello/util/errata.rb +63 -0
- data/app/lib/katello/util/filter_rule_clause_generator.rb +100 -0
- data/app/lib/katello/util/model.rb +46 -0
- data/app/lib/katello/util/package.rb +188 -0
- data/app/lib/katello/util/package_clause_generator.rb +81 -0
- data/app/lib/katello/util/package_filter.rb +96 -0
- data/app/lib/katello/util/puppet_clause_generator.rb +39 -0
- data/app/lib/katello/util/report_table.rb +102 -0
- data/app/lib/katello/util/search.rb +73 -0
- data/app/lib/katello/util/support.rb +101 -0
- data/app/lib/katello/util/task_status.rb +142 -0
- data/app/lib/katello/util/thread_session.rb +86 -0
- data/app/lib/katello/util/url_matcher.rb +111 -0
- data/app/lib/katello/validators/changeset_distribution_validator.rb +29 -0
- data/app/lib/katello/validators/changeset_erratum_validator.rb +31 -0
- data/app/lib/katello/validators/changeset_package_validator.rb +29 -0
- data/app/lib/katello/validators/content_validator.rb +23 -0
- data/app/lib/katello/validators/content_view_environment_validator.rb +30 -0
- data/app/lib/katello/validators/default_info_validator.rb +41 -0
- data/app/lib/katello/validators/erratum_rule_params_validator.rb +65 -0
- data/app/lib/katello/validators/gpg_key_content_validator.rb +54 -0
- data/app/lib/katello/validators/katello_description_format_validator.rb +24 -0
- data/app/lib/katello/validators/katello_label_format_validator.rb +34 -0
- data/app/lib/katello/validators/katello_name_format_validator.rb +34 -0
- data/app/lib/katello/validators/katello_url_format_validator.rb +33 -0
- data/app/lib/katello/validators/ldap_group_validator.rb +25 -0
- data/app/lib/katello/validators/ldap_username_validator.rb +31 -0
- data/app/lib/katello/validators/library_presence_validator.rb +21 -0
- data/app/lib/katello/validators/lock_validator.rb +25 -0
- data/app/lib/katello/validators/no_trailing_space_validator.rb +27 -0
- data/app/lib/katello/validators/non_library_environment_validator.rb +22 -0
- data/app/lib/katello/validators/not_in_library_validator.rb +21 -0
- data/app/lib/katello/validators/own_role_presence_validator.rb +25 -0
- data/app/lib/katello/validators/package_group_rule_params_validator.rb +34 -0
- data/app/lib/katello/validators/path_descendents_validator.rb +36 -0
- data/app/lib/katello/validators/permission_validator.rb +43 -0
- data/app/lib/katello/validators/prior_validator.rb +32 -0
- data/app/lib/katello/validators/repo_disablement_validator.rb +23 -0
- data/app/lib/katello/validators/rolename_validator.rb +27 -0
- data/app/lib/katello/validators/rule_params_validator.rb +34 -0
- data/app/lib/katello/validators/rule_version_validator.rb +30 -0
- data/app/lib/katello/validators/self_reference_environment_validator.rb +21 -0
- data/app/lib/katello/validators/serialized_params_validator.rb +27 -0
- data/app/lib/katello/validators/unique_field_in_org.rb +27 -0
- data/app/lib/katello/validators/username_validator.rb +23 -0
- data/app/mailers/katello/user_mailer.rb +31 -0
- data/app/models/katello/activation_key.rb +170 -0
- data/app/models/katello/async_operation.rb +98 -0
- data/app/models/katello/async_orchestration.rb +53 -0
- data/app/models/katello/authorization/activation_key.rb +52 -0
- data/app/models/katello/authorization/content_view.rb +107 -0
- data/app/models/katello/authorization/content_view_definition.rb +103 -0
- data/app/models/katello/authorization/content_view_version.rb +39 -0
- data/app/models/katello/authorization/distributor.rb +68 -0
- data/app/models/katello/authorization/enforcement.rb +204 -0
- data/app/models/katello/authorization/environment.rb +234 -0
- data/app/models/katello/authorization/gpg_key.rb +58 -0
- data/app/models/katello/authorization/organization.rb +162 -0
- data/app/models/katello/authorization/product.rb +70 -0
- data/app/models/katello/authorization/provider.rb +101 -0
- data/app/models/katello/authorization/repository.rb +97 -0
- data/app/models/katello/authorization/role.rb +63 -0
- data/app/models/katello/authorization/system.rb +116 -0
- data/app/models/katello/authorization/system_group.rb +124 -0
- data/app/models/katello/authorization/user.rb +80 -0
- data/app/models/katello/candlepin/content.rb +52 -0
- data/app/models/katello/candlepin/product_content.rb +150 -0
- data/app/models/katello/changeset.rb +228 -0
- data/app/models/katello/changeset_content_view.rb +8 -0
- data/app/models/katello/changeset_user.rb +21 -0
- data/app/models/katello/component_content_view.rb +21 -0
- data/app/models/katello/concerns/organization_extensions.rb +274 -0
- data/app/models/katello/concerns/user_extensions.rb +453 -0
- data/app/models/katello/content_view.rb +446 -0
- data/app/models/katello/content_view_definition.rb +328 -0
- data/app/models/katello/content_view_definition_archive.rb +21 -0
- data/app/models/katello/content_view_definition_base.rb +147 -0
- data/app/models/katello/content_view_definition_product.rb +21 -0
- data/app/models/katello/content_view_definition_repository.rb +20 -0
- data/app/models/katello/content_view_environment.rb +28 -0
- data/app/models/katello/content_view_version.rb +209 -0
- data/app/models/katello/content_view_version_environment.rb +29 -0
- data/app/models/katello/cp_consumer_user.rb +23 -0
- data/app/models/katello/custom_info.rb +91 -0
- data/app/models/katello/deletion_changeset.rb +81 -0
- data/app/models/katello/distribution.rb +17 -0
- data/app/models/katello/distributor.rb +141 -0
- data/app/models/katello/errata.rb +22 -0
- data/app/models/katello/erratum_rule.rb +107 -0
- data/app/models/katello/ext/indexed_model.rb +167 -0
- data/app/models/katello/ext/label_from_name.rb +29 -0
- data/app/models/katello/ext/permission_tag_cleanup.rb +47 -0
- data/app/models/katello/filter.rb +102 -0
- data/app/models/katello/filter_rule.rb +87 -0
- data/app/models/katello/glue.rb +193 -0
- data/app/models/katello/glue/candlepin/consumer.rb +629 -0
- data/app/models/katello/glue/candlepin/content.rb +144 -0
- data/app/models/katello/glue/candlepin/environment.rb +108 -0
- data/app/models/katello/glue/candlepin/owner.rb +151 -0
- data/app/models/katello/glue/candlepin/owner_info.rb +55 -0
- data/app/models/katello/glue/candlepin/pool.rb +181 -0
- data/app/models/katello/glue/candlepin/product.rb +365 -0
- data/app/models/katello/glue/elastic_search/activation_key.rb +37 -0
- data/app/models/katello/glue/elastic_search/changeset.rb +38 -0
- data/app/models/katello/glue/elastic_search/content_view.rb +63 -0
- data/app/models/katello/glue/elastic_search/content_view_definition.rb +33 -0
- data/app/models/katello/glue/elastic_search/distributor.rb +66 -0
- data/app/models/katello/glue/elastic_search/environment.rb +35 -0
- data/app/models/katello/glue/elastic_search/errata.rb +219 -0
- data/app/models/katello/glue/elastic_search/gpg_key.rb +34 -0
- data/app/models/katello/glue/elastic_search/items.rb +176 -0
- data/app/models/katello/glue/elastic_search/job.rb +35 -0
- data/app/models/katello/glue/elastic_search/marketing_product.rb +23 -0
- data/app/models/katello/glue/elastic_search/notice.rb +39 -0
- data/app/models/katello/glue/elastic_search/organization.rb +35 -0
- data/app/models/katello/glue/elastic_search/package.rb +192 -0
- data/app/models/katello/glue/elastic_search/package_group.rb +121 -0
- data/app/models/katello/glue/elastic_search/permission.rb +28 -0
- data/app/models/katello/glue/elastic_search/pool.rb +153 -0
- data/app/models/katello/glue/elastic_search/product.rb +66 -0
- data/app/models/katello/glue/elastic_search/provider.rb +45 -0
- data/app/models/katello/glue/elastic_search/puppet_module.rb +181 -0
- data/app/models/katello/glue/elastic_search/repository.rb +225 -0
- data/app/models/katello/glue/elastic_search/role.rb +38 -0
- data/app/models/katello/glue/elastic_search/sync_plan.rb +33 -0
- data/app/models/katello/glue/elastic_search/system.rb +164 -0
- data/app/models/katello/glue/elastic_search/system_group.rb +44 -0
- data/app/models/katello/glue/elastic_search/task_status.rb +66 -0
- data/app/models/katello/glue/elastic_search/user.rb +35 -0
- data/app/models/katello/glue/provider.rb +583 -0
- data/app/models/katello/glue/pulp/consumer.rb +284 -0
- data/app/models/katello/glue/pulp/consumer_group.rb +107 -0
- data/app/models/katello/glue/pulp/distribution.rb +51 -0
- data/app/models/katello/glue/pulp/errata.rb +156 -0
- data/app/models/katello/glue/pulp/package.rb +71 -0
- data/app/models/katello/glue/pulp/package_group.rb +61 -0
- data/app/models/katello/glue/pulp/pulp_errors.rb +21 -0
- data/app/models/katello/glue/pulp/puppet_module.rb +71 -0
- data/app/models/katello/glue/pulp/repo.rb +851 -0
- data/app/models/katello/glue/pulp/repos.rb +397 -0
- data/app/models/katello/glue/pulp/simple_package.rb +25 -0
- data/app/models/katello/glue/pulp/user.rb +95 -0
- data/app/models/katello/gpg_key.rb +45 -0
- data/app/models/katello/hash_util.rb +37 -0
- data/app/models/katello/help_tip.rb +20 -0
- data/app/models/katello/hypervisor.rb +27 -0
- data/app/models/katello/job.rb +216 -0
- data/app/models/katello/job_task.rb +20 -0
- data/app/models/katello/key_pool.rb +21 -0
- data/app/models/katello/key_system_group.rb +21 -0
- data/app/models/katello/kt_environment.rb +341 -0
- data/app/models/katello/ldap_group_role.rb +21 -0
- data/app/models/katello/marketing_engineering_product.rb +20 -0
- data/app/models/katello/marketing_product.rb +21 -0
- data/app/models/katello/notice.rb +76 -0
- data/app/models/katello/organization_destroyer.rb +63 -0
- data/app/models/katello/package.rb +19 -0
- data/app/models/katello/package_group.rb +19 -0
- data/app/models/katello/package_group_rule.rb +32 -0
- data/app/models/katello/package_rule.rb +53 -0
- data/app/models/katello/permission.rb +178 -0
- data/app/models/katello/permission_tag.rb +23 -0
- data/app/models/katello/ping.rb +143 -0
- data/app/models/katello/pool.rb +64 -0
- data/app/models/katello/product.rb +241 -0
- data/app/models/katello/promotion_changeset.rb +121 -0
- data/app/models/katello/provider.rb +231 -0
- data/app/models/katello/proxy_association_owner.rb +20 -0
- data/app/models/katello/pulp_sync_status.rb +188 -0
- data/app/models/katello/pulp_task_status.rb +119 -0
- data/app/models/katello/puppet_module.rb +42 -0
- data/app/models/katello/puppet_module_rule.rb +71 -0
- data/app/models/katello/repository.rb +342 -0
- data/app/models/katello/resource_type.rb +132 -0
- data/app/models/katello/role.rb +187 -0
- data/app/models/katello/roles_permissions/default_system_registration_permission.rb +48 -0
- data/app/models/katello/roles_permissions/user_own_role.rb +45 -0
- data/app/models/katello/roles_user.rb +20 -0
- data/app/models/katello/search_favorite.rb +38 -0
- data/app/models/katello/search_history.rb +21 -0
- data/app/models/katello/sync_plan.rb +91 -0
- data/app/models/katello/system.rb +276 -0
- data/app/models/katello/system_activation_key.rb +20 -0
- data/app/models/katello/system_group.rb +197 -0
- data/app/models/katello/system_system_group.rb +33 -0
- data/app/models/katello/tag.rb +42 -0
- data/app/models/katello/task_status.rb +401 -0
- data/app/models/katello/user_notice.rb +36 -0
- data/app/models/katello/user_own_role.rb +30 -0
- data/app/models/katello/verb.rb +51 -0
- data/app/models/katello/virtual_tag.rb +27 -0
- data/app/overrides/add_organization_attributes.rb +11 -0
- data/app/views/katello/activation_keys/_activation_key.html.haml +16 -0
- data/app/views/katello/activation_keys/_applied_subscriptions.html.haml +38 -0
- data/app/views/katello/activation_keys/_applied_subscriptions_update.js.haml +1 -0
- data/app/views/katello/activation_keys/_available_subscriptions.html.haml +29 -0
- data/app/views/katello/activation_keys/_available_subscriptions_update.js.haml +1 -0
- data/app/views/katello/activation_keys/_edit.html.haml +83 -0
- data/app/views/katello/activation_keys/_list_activation_keys.html.haml +5 -0
- data/app/views/katello/activation_keys/_new.html.haml +38 -0
- data/app/views/katello/activation_keys/_subscriptions.html.haml +52 -0
- data/app/views/katello/activation_keys/_system.html.haml +5 -0
- data/app/views/katello/activation_keys/_system_group_items.html.haml +7 -0
- data/app/views/katello/activation_keys/_system_groups.html.haml +34 -0
- data/app/views/katello/activation_keys/_systems.html.haml +27 -0
- data/app/views/katello/activation_keys/index.html.haml +16 -0
- data/app/views/katello/api/v2/activation_keys/show.json.rabl +9 -0
- data/app/views/katello/api/v2/changesets/dependencies.rabl +1 -0
- data/app/views/katello/api/v2/changesets/show.json.rabl +41 -0
- data/app/views/katello/api/v2/changesets_content/add_product.json.rabl +3 -0
- data/app/views/katello/api/v2/changesets_content/add_repo.json.rabl +3 -0
- data/app/views/katello/api/v2/changesets_content/remove_product.json.rabl +3 -0
- data/app/views/katello/api/v2/changesets_content/remove_repo.json.rabl +3 -0
- data/app/views/katello/api/v2/changesets_content/show.json.rabl +3 -0
- data/app/views/katello/api/v2/common/_identifier.json.rabl +3 -0
- data/app/views/katello/api/v2/common/_metadata.json.rabl +13 -0
- data/app/views/katello/api/v2/common/_org_reference.json.rabl +3 -0
- data/app/views/katello/api/v2/common/_readonly.json.rabl +3 -0
- data/app/views/katello/api/v2/common/_syncable.json.rabl +1 -0
- data/app/views/katello/api/v2/common/_timestamps.json.rabl +1 -0
- data/app/views/katello/api/v2/common/async.json.rabl +3 -0
- data/app/views/katello/api/v2/common/create.json.rabl +3 -0
- data/app/views/katello/api/v2/common/destroy.json.rabl +1 -0
- data/app/views/katello/api/v2/common/index.json.rabl +7 -0
- data/app/views/katello/api/v2/common/status.json.rabl +1 -0
- data/app/views/katello/api/v2/common/update.json.rabl +3 -0
- data/app/views/katello/api/v2/content_view_definitions/clone.json.rabl +3 -0
- data/app/views/katello/api/v2/content_view_definitions/content_views.json.rabl +3 -0
- data/app/views/katello/api/v2/content_view_definitions/list_all_products.json.rabl +3 -0
- data/app/views/katello/api/v2/content_view_definitions/list_products.json.rabl +3 -0
- data/app/views/katello/api/v2/content_view_definitions/list_repositories.json.rabl +3 -0
- data/app/views/katello/api/v2/content_view_definitions/show.json.rabl +18 -0
- data/app/views/katello/api/v2/content_view_definitions/update_content_views.json.rabl +3 -0
- data/app/views/katello/api/v2/content_view_definitions/update_products.json.rabl +3 -0
- data/app/views/katello/api/v2/content_view_definitions/update_repositories.json.rabl +3 -0
- data/app/views/katello/api/v2/content_views/index.json.rabl +10 -0
- data/app/views/katello/api/v2/content_views/show.json.rabl +20 -0
- data/app/views/katello/api/v2/custom_info/show.json.rabl +5 -0
- data/app/views/katello/api/v2/distributions/show.json.rabl +9 -0
- data/app/views/katello/api/v2/distributors/index.json.rabl +9 -0
- data/app/views/katello/api/v2/distributors/pools.json.rabl +3 -0
- data/app/views/katello/api/v2/distributors/show.json.rabl +3 -0
- data/app/views/katello/api/v2/distributors/task.json.rabl +3 -0
- data/app/views/katello/api/v2/distributors/tasks.json.rabl +3 -0
- data/app/views/katello/api/v2/environments/index.json.rabl +3 -0
- data/app/views/katello/api/v2/environments/paths.json.rabl +13 -0
- data/app/views/katello/api/v2/environments/releases.json.rabl +3 -0
- data/app/views/katello/api/v2/environments/repositories.json.rabl +3 -0
- data/app/views/katello/api/v2/environments/show.json.rabl +9 -0
- data/app/views/katello/api/v2/errata/_attributes.json.rabl +7 -0
- data/app/views/katello/api/v2/errata/index.json.rabl +3 -0
- data/app/views/katello/api/v2/errata/show.json.rabl +10 -0
- data/app/views/katello/api/v2/filter_rules/show.json.rabl +10 -0
- data/app/views/katello/api/v2/filters/list_products.json.rabl +3 -0
- data/app/views/katello/api/v2/filters/list_repositories.json.rabl +3 -0
- data/app/views/katello/api/v2/filters/show.json.rabl +24 -0
- data/app/views/katello/api/v2/filters/update_products.json.rabl +3 -0
- data/app/views/katello/api/v2/filters/update_repositories.json.rabl +3 -0
- data/app/views/katello/api/v2/gpg_keys/index.json.rabl +3 -0
- data/app/views/katello/api/v2/gpg_keys/show.json.rabl +39 -0
- data/app/views/katello/api/v2/layouts/collection.json.haml +3 -0
- data/app/views/katello/api/v2/layouts/resource.json.haml +5 -0
- data/app/views/katello/api/v2/organization_default_info/apply_to_all.json.rabl +3 -0
- data/app/views/katello/api/v2/organization_default_info/create.json.rabl +5 -0
- data/app/views/katello/api/v2/organizations/index.json.rabl +5 -0
- data/app/views/katello/api/v2/organizations/show.json.rabl +7 -0
- data/app/views/katello/api/v2/packages/show.json.rabl +15 -0
- data/app/views/katello/api/v2/permissions/show.json.rabl +13 -0
- data/app/views/katello/api/v2/ping/server_status.json.rabl +4 -0
- data/app/views/katello/api/v2/ping/show.json.rabl +6 -0
- data/app/views/katello/api/v2/ping/version.json.rabl +4 -0
- data/app/views/katello/api/v2/products/index.json.rabl +3 -0
- data/app/views/katello/api/v2/products/repositories.json.rabl +6 -0
- data/app/views/katello/api/v2/products/show.json.rabl +38 -0
- data/app/views/katello/api/v2/providers/_provider.json.rabl +14 -0
- data/app/views/katello/api/v2/providers/index.json.rabl +3 -0
- data/app/views/katello/api/v2/providers/products.json.rabl +3 -0
- data/app/views/katello/api/v2/providers/show.json.rabl +3 -0
- data/app/views/katello/api/v2/repositories/index.json.rabl +3 -0
- data/app/views/katello/api/v2/repositories/package_group_categories.json.rabl +5 -0
- data/app/views/katello/api/v2/repositories/package_groups.json.rabl +9 -0
- data/app/views/katello/api/v2/repositories/show.json.rabl +39 -0
- data/app/views/katello/api/v2/repositories/sync.json.rabl +3 -0
- data/app/views/katello/api/v2/repository_sets/index.json.rabl +3 -0
- data/app/views/katello/api/v2/repository_sets/show.json.rabl +8 -0
- data/app/views/katello/api/v2/role_ldap_groups/show.json.rabl +4 -0
- data/app/views/katello/api/v2/roles/available_verbs.json.rabl +3 -0
- data/app/views/katello/api/v2/roles/show.json.rabl +4 -0
- data/app/views/katello/api/v2/root/resource_list.json.rabl +3 -0
- data/app/views/katello/api/v2/subscriptions/create.json.rabl +3 -0
- data/app/views/katello/api/v2/subscriptions/destroy.json.rabl +1 -0
- data/app/views/katello/api/v2/subscriptions/destroy_all.json.rabl +1 -0
- data/app/views/katello/api/v2/subscriptions/destroy_by_serial.json.rabl +1 -0
- data/app/views/katello/api/v2/subscriptions/index.json.rabl +10 -0
- data/app/views/katello/api/v2/subscriptions/organization_index.json.rabl +10 -0
- data/app/views/katello/api/v2/subscriptions/show.json.rabl +35 -0
- data/app/views/katello/api/v2/sync/create.json.rabl +3 -0
- data/app/views/katello/api/v2/sync/index.json.rabl +3 -0
- data/app/views/katello/api/v2/sync_plans/show.json.rabl +8 -0
- data/app/views/katello/api/v2/system_errata/show.json.rabl +3 -0
- data/app/views/katello/api/v2/system_errata/system_task.json.rabl +3 -0
- data/app/views/katello/api/v2/system_group_errata/index.json.rabl +3 -0
- data/app/views/katello/api/v2/system_groups/_system_group.json.rabl +16 -0
- data/app/views/katello/api/v2/system_groups/copy.json.rabl +3 -0
- data/app/views/katello/api/v2/system_groups/create.json.rabl +3 -0
- data/app/views/katello/api/v2/system_groups/delta_systems.rabl +4 -0
- data/app/views/katello/api/v2/system_groups/history.json.rabl +3 -0
- data/app/views/katello/api/v2/system_groups/history_show.json.rabl +5 -0
- data/app/views/katello/api/v2/system_groups/index.json.rabl +3 -0
- data/app/views/katello/api/v2/system_groups/show.json.rabl +3 -0
- data/app/views/katello/api/v2/system_groups/systems.json.rabl +14 -0
- data/app/views/katello/api/v2/system_groups/update.json.rabl +3 -0
- data/app/views/katello/api/v2/system_packages/system_task.json.rabl +3 -0
- data/app/views/katello/api/v2/systems/_pool.json.rabl +6 -0
- data/app/views/katello/api/v2/systems/activate.json.rabl +3 -0
- data/app/views/katello/api/v2/systems/add_system_groups.json.rabl +3 -0
- data/app/views/katello/api/v2/systems/available_system_groups.json.rabl +5 -0
- data/app/views/katello/api/v2/systems/enabled_repos.json.rabl +3 -0
- data/app/views/katello/api/v2/systems/errata.json.rabl +7 -0
- data/app/views/katello/api/v2/systems/erratum.json.rabl +10 -0
- data/app/views/katello/api/v2/systems/index.json.rabl +3 -0
- data/app/views/katello/api/v2/systems/package.json.rabl +5 -0
- data/app/views/katello/api/v2/systems/package_profile.json.rabl +7 -0
- data/app/views/katello/api/v2/systems/pools.json.rabl +7 -0
- data/app/views/katello/api/v2/systems/regenerate_identity_certificates.json.rabl +3 -0
- data/app/views/katello/api/v2/systems/releases.json.rabl +9 -0
- data/app/views/katello/api/v2/systems/remove_system_groups.json.rabl +3 -0
- data/app/views/katello/api/v2/systems/show.json.rabl +56 -0
- data/app/views/katello/api/v2/systems/tasks.json.rabl +7 -0
- data/app/views/katello/api/v2/systems/upload_package_profile.json.rabl +3 -0
- data/app/views/katello/api/v2/systems_bulk_actions/applicable_errata.json.rabl +7 -0
- data/app/views/katello/api/v2/systems_bulk_actions/bulk_action.json.rabl +5 -0
- data/app/views/katello/api/v2/systems_bulk_actions/erratum.json.rabl +1 -0
- data/app/views/katello/api/v2/systems_bulk_actions/job.json.rabl +2 -0
- data/app/views/katello/api/v2/tasks/show.json.rabl +15 -0
- data/app/views/katello/api/v2/uebercerts/show.json.rabl +15 -0
- data/app/views/katello/api/v2/users/list_owners.json.rabl +4 -0
- data/app/views/katello/api/v2/users/list_roles.json.rabl +3 -0
- data/app/views/katello/api/v2/users/show.json.rabl +12 -0
- data/app/views/katello/application_info/about.html.haml +58 -0
- data/app/views/katello/changesets/_content_type.html.haml +13 -0
- data/app/views/katello/changesets/_dependency_list.html.haml +3 -0
- data/app/views/katello/changesets/_edit.html.haml +54 -0
- data/app/views/katello/changesets/_list.html.haml +3 -0
- data/app/views/katello/changesets/_name.html.haml +7 -0
- data/app/views/katello/changesets/_new.html.haml +35 -0
- data/app/views/katello/changesets/_warning.html.haml +23 -0
- data/app/views/katello/changesets/index.html.haml +9 -0
- data/app/views/katello/common/400.html.haml +5 -0
- data/app/views/katello/common/403.html.haml +8 -0
- data/app/views/katello/common/404.html.haml +7 -0
- data/app/views/katello/common/500.html.haml +15 -0
- data/app/views/katello/common/_ajax_notices.haml +5 -0
- data/app/views/katello/common/_common_i18n.html.haml +45 -0
- data/app/views/katello/common/_common_product_repo_selector.html.haml +65 -0
- data/app/views/katello/common/_common_products.html.haml +24 -0
- data/app/views/katello/common/_config.html.haml +8 -0
- data/app/views/katello/common/_edit_i18n.html.haml +12 -0
- data/app/views/katello/common/_env_select.html.haml +40 -0
- data/app/views/katello/common/_filter_table.html.haml +5 -0
- data/app/views/katello/common/_footer.haml +7 -0
- data/app/views/katello/common/_helptip.html.haml +4 -0
- data/app/views/katello/common/_helptip_button.html.haml +3 -0
- data/app/views/katello/common/_list_item.html.haml +6 -0
- data/app/views/katello/common/_list_items.html.haml +2 -0
- data/app/views/katello/common/_list_remove.js.haml +3 -0
- data/app/views/katello/common/_list_update.html.haml +4 -0
- data/app/views/katello/common/_notification.haml +29 -0
- data/app/views/katello/common/_one_panel.html.haml +15 -0
- data/app/views/katello/common/_one_panel_list_item.haml +5 -0
- data/app/views/katello/common/_package_actions_i18n.html.haml +7 -0
- data/app/views/katello/common/_panel.html.haml +75 -0
- data/app/views/katello/common/_post_action_close_subpanel.js.haml +2 -0
- data/app/views/katello/common/_post_delete_close_subpanel.js.haml +2 -0
- data/app/views/katello/common/_repo_selector.html.haml +27 -0
- data/app/views/katello/common/_search.html.haml +17 -0
- data/app/views/katello/common/_stats_line.html.haml +3 -0
- data/app/views/katello/common/_tupane.html.haml +10 -0
- data/app/views/katello/content_search/_browser_box.html.haml +159 -0
- data/app/views/katello/content_search/_container_hover.html.haml +32 -0
- data/app/views/katello/content_search/_grid.html.haml +60 -0
- data/app/views/katello/content_search/_repo_hover.html.haml +25 -0
- data/app/views/katello/content_search/index.html.haml +33 -0
- data/app/views/katello/content_view_definitions/_composite_definition_content.html.haml +23 -0
- data/app/views/katello/content_view_definitions/_edit.html.haml +24 -0
- data/app/views/katello/content_view_definitions/_new.html.haml +37 -0
- data/app/views/katello/content_view_definitions/_publish.html.haml +20 -0
- data/app/views/katello/content_view_definitions/_single_definition_content.html.haml +21 -0
- data/app/views/katello/content_view_definitions/_tupane_header.html.haml +22 -0
- data/app/views/katello/content_view_definitions/_view_definitions.html.haml +31 -0
- data/app/views/katello/content_view_definitions/filters/_edit.html.haml +46 -0
- data/app/views/katello/content_view_definitions/filters/_index.html.haml +38 -0
- data/app/views/katello/content_view_definitions/filters/_list_rules.html.haml +35 -0
- data/app/views/katello/content_view_definitions/filters/_new.html.haml +15 -0
- data/app/views/katello/content_view_definitions/filters/rules/_edit.html.haml +40 -0
- data/app/views/katello/content_view_definitions/filters/rules/_edit_errata.html.haml +27 -0
- data/app/views/katello/content_view_definitions/filters/rules/_edit_errata_parameters.html.haml +24 -0
- data/app/views/katello/content_view_definitions/filters/rules/_errata_item.html.haml +7 -0
- data/app/views/katello/content_view_definitions/filters/rules/_inclusion.html.haml +20 -0
- data/app/views/katello/content_view_definitions/filters/rules/_new.html.haml +26 -0
- data/app/views/katello/content_view_definitions/filters/rules/_package_group_item.html.haml +7 -0
- data/app/views/katello/content_view_definitions/filters/rules/_package_item.html.haml +11 -0
- data/app/views/katello/content_view_definitions/filters/rules/_parameter_list.html.haml +37 -0
- data/app/views/katello/content_view_definitions/filters/rules/_puppet_module_item.html.haml +20 -0
- data/app/views/katello/content_view_definitions/filters/rules/_version_selector.html.haml +32 -0
- data/app/views/katello/content_view_definitions/index.html.haml +12 -0
- data/app/views/katello/content_view_definitions/views/_index.html.haml +28 -0
- data/app/views/katello/content_view_definitions/views/_version.html.haml +21 -0
- data/app/views/katello/content_view_definitions/views/_view.html.haml +19 -0
- data/app/views/katello/content_view_versions/_content.html.haml +39 -0
- data/app/views/katello/content_view_versions/_show.html.haml +27 -0
- data/app/views/katello/custom_info/_edit.html.haml +35 -0
- data/app/views/katello/dashboard/_ajax_entry.html.haml +11 -0
- data/app/views/katello/dashboard/_content_views.haml +19 -0
- data/app/views/katello/dashboard/_entry.html.haml +9 -0
- data/app/views/katello/dashboard/_errata.haml +23 -0
- data/app/views/katello/dashboard/_notices.html.haml +11 -0
- data/app/views/katello/dashboard/_promotions.haml +22 -0
- data/app/views/katello/dashboard/_subscriptions.haml +45 -0
- data/app/views/katello/dashboard/_subscriptions_totals.haml +19 -0
- data/app/views/katello/dashboard/_sync.haml +37 -0
- data/app/views/katello/dashboard/_system_group_item.html.haml +18 -0
- data/app/views/katello/dashboard/_system_groups.html.haml +31 -0
- data/app/views/katello/dashboard/_systems.html.haml +22 -0
- data/app/views/katello/dashboard/index.html.haml +22 -0
- data/app/views/katello/distributor_events/_details.html.haml +32 -0
- data/app/views/katello/distributor_events/_event_items.html.haml +27 -0
- data/app/views/katello/distributor_events/_events.html.haml +36 -0
- data/app/views/katello/distributor_events/_more_events.html.haml +3 -0
- data/app/views/katello/distributors/_actions.html.haml +23 -0
- data/app/views/katello/distributors/_distributor_tupane_header_nav.html.haml +10 -0
- data/app/views/katello/distributors/_edit.html.haml +74 -0
- data/app/views/katello/distributors/_edit_custom_info.html.haml +10 -0
- data/app/views/katello/distributors/_list_distributor.html.haml +2 -0
- data/app/views/katello/distributors/_list_distributor_show.html.haml +19 -0
- data/app/views/katello/distributors/_list_distributors.html.haml +1 -0
- data/app/views/katello/distributors/_more_products.html.haml +5 -0
- data/app/views/katello/distributors/_new.html.haml +44 -0
- data/app/views/katello/distributors/_products.html.haml +23 -0
- data/app/views/katello/distributors/_subs.html.haml +149 -0
- data/app/views/katello/distributors/_subs_update.js.haml +1 -0
- data/app/views/katello/distributors/_subscription_details.html.haml +23 -0
- data/app/views/katello/distributors/_subscriptions.html.haml +22 -0
- data/app/views/katello/distributors/index.html.haml +11 -0
- data/app/views/katello/environments/_edit.html.haml +40 -0
- data/app/views/katello/environments/_new.html.haml +26 -0
- data/app/views/katello/environments/_products.html.haml +4 -0
- data/app/views/katello/errata/_packages.html.haml +30 -0
- data/app/views/katello/errata/_short_details.html.haml +44 -0
- data/app/views/katello/errata/_show.html.haml +85 -0
- data/app/views/katello/layouts/katello.haml +27 -0
- data/app/views/katello/layouts/tupane_layout.html.haml +39 -0
- data/app/views/katello/nodes/_list.html.haml +5 -0
- data/app/views/katello/nodes/index.html.haml +1 -0
- data/app/views/katello/nodes/show.html.haml +7 -0
- data/app/views/katello/notices/_delete_all.js.haml +1 -0
- data/app/views/katello/notices/show.html.haml +46 -0
- data/app/views/katello/operations/index.html.haml +2 -0
- data/app/views/katello/organizations/_default_info.html.haml +43 -0
- data/app/views/katello/organizations/_download_debug_certificate.html.haml +14 -0
- data/app/views/katello/organizations/_edit.html.haml +87 -0
- data/app/views/katello/organizations/_edit_override.html.erb +20 -0
- data/app/views/katello/organizations/_environments.html.haml +2 -0
- data/app/views/katello/organizations/_events.html.haml +29 -0
- data/app/views/katello/organizations/_footer.html.haml +15 -0
- data/app/views/katello/organizations/_new.html.haml +39 -0
- data/app/views/katello/organizations/_post_delete.js.haml +3 -0
- data/app/views/katello/organizations/_step_1_override.html.erb +6 -0
- data/app/views/katello/organizations/index.html.haml +16 -0
- data/app/views/katello/packages/_changelog.html.haml +15 -0
- data/app/views/katello/packages/_dependencies.html.haml +27 -0
- data/app/views/katello/packages/_details.html.haml +94 -0
- data/app/views/katello/packages/_filelist.html.haml +15 -0
- data/app/views/katello/packages/_show.html.haml +90 -0
- data/app/views/katello/products/_edit.html.haml +38 -0
- data/app/views/katello/products/_new.html.haml +27 -0
- data/app/views/katello/promotions/_content_views.html.haml +28 -0
- data/app/views/katello/promotions/_detail.html.haml +9 -0
- data/app/views/katello/promotions/show.html.haml +204 -0
- data/app/views/katello/providers/_edit.html.haml +32 -0
- data/app/views/katello/providers/_form.html.haml +8 -0
- data/app/views/katello/providers/_new.html.haml +11 -0
- data/app/views/katello/providers/_new_discovered_repos.html.haml +81 -0
- data/app/views/katello/providers/_products_repos.html.haml +50 -0
- data/app/views/katello/providers/_remove_item.html.haml +16 -0
- data/app/views/katello/providers/_repo_discovery.html.haml +57 -0
- data/app/views/katello/providers/index.html.haml +17 -0
- data/app/views/katello/providers/redhat/_children.html.haml +22 -0
- data/app/views/katello/providers/redhat/_repo_sets.haml +44 -0
- data/app/views/katello/providers/redhat/_repos.html.haml +16 -0
- data/app/views/katello/providers/redhat/_tab.html.haml +8 -0
- data/app/views/katello/providers/redhat/show.html.haml +31 -0
- data/app/views/katello/puppet_modules/_show.html.haml +88 -0
- data/app/views/katello/repositories/_edit.html.haml +64 -0
- data/app/views/katello/repositories/_new.html.haml +60 -0
- data/app/views/katello/roles/_closed_permission.html.haml +22 -0
- data/app/views/katello/roles/_edit.html.haml +117 -0
- data/app/views/katello/roles/_list_role.html.haml +6 -0
- data/app/views/katello/roles/_list_roles.html.haml +1 -0
- data/app/views/katello/roles/_new.html.haml +12 -0
- data/app/views/katello/roles/_permission.html.haml +47 -0
- data/app/views/katello/roles/_permissions.html.haml +6 -0
- data/app/views/katello/roles/_self_role_edit.html.haml +37 -0
- data/app/views/katello/roles/index.html.haml +55 -0
- data/app/views/katello/subscriptions/_consumers.html.haml +53 -0
- data/app/views/katello/subscriptions/_edit.html.haml +119 -0
- data/app/views/katello/subscriptions/_edit_manifest.html.haml +59 -0
- data/app/views/katello/subscriptions/_history.html.haml +32 -0
- data/app/views/katello/subscriptions/_history_items.html.haml +33 -0
- data/app/views/katello/subscriptions/_list_subscription.html.haml +3 -0
- data/app/views/katello/subscriptions/_list_subscription_show.html.haml +21 -0
- data/app/views/katello/subscriptions/_list_subscriptions.html.haml +1 -0
- data/app/views/katello/subscriptions/_new.html.haml +134 -0
- data/app/views/katello/subscriptions/_products.html.haml +52 -0
- data/app/views/katello/subscriptions/_subscriptions_tupane_header_nav.html.haml +5 -0
- data/app/views/katello/subscriptions/_subscriptions_tupane_header_new_nav.html.haml +2 -0
- data/app/views/katello/subscriptions/index.html.haml +4 -0
- data/app/views/katello/subscriptions/index_nutupane.html.haml +15 -0
- data/app/views/katello/sync_management/_children.html.haml +13 -0
- data/app/views/katello/sync_management/_controls.html.haml +14 -0
- data/app/views/katello/sync_management/_product.html.haml +21 -0
- data/app/views/katello/sync_management/_products.html.haml +21 -0
- data/app/views/katello/sync_management/_repo.html.haml +26 -0
- data/app/views/katello/sync_management/_sync_plans.html.haml +16 -0
- data/app/views/katello/sync_management/index.html.haml +22 -0
- data/app/views/katello/sync_management/manage.html.haml +25 -0
- data/app/views/katello/sync_plans/_edit.html.haml +32 -0
- data/app/views/katello/sync_plans/_form.html.haml +14 -0
- data/app/views/katello/sync_plans/_new.html.haml +9 -0
- data/app/views/katello/sync_plans/index.html.haml +5 -0
- data/app/views/katello/sync_schedules/index.html.haml +15 -0
- data/app/views/katello/system_events/_details.html.haml +34 -0
- data/app/views/katello/system_events/_event_items.html.haml +27 -0
- data/app/views/katello/system_events/_events.html.haml +36 -0
- data/app/views/katello/system_events/_more_events.html.haml +3 -0
- data/app/views/katello/system_groups/_edit.html.haml +52 -0
- data/app/views/katello/system_groups/_edit_systems.html.haml +32 -0
- data/app/views/katello/system_groups/_list_group.html.haml +4 -0
- data/app/views/katello/system_groups/_list_groups.html.haml +1 -0
- data/app/views/katello/system_groups/_new.html.haml +50 -0
- data/app/views/katello/system_groups/_system_item.html.haml +16 -0
- data/app/views/katello/system_groups/_systems.html.haml +67 -0
- data/app/views/katello/system_groups/_tupane_header.html.haml +15 -0
- data/app/views/katello/system_groups/errata/_index.html.haml +72 -0
- data/app/views/katello/system_groups/events/_index.html.haml +33 -0
- data/app/views/katello/system_groups/events/_items.html.haml +29 -0
- data/app/views/katello/system_groups/events/_more_items.html.haml +3 -0
- data/app/views/katello/system_groups/events/_show.html.haml +29 -0
- data/app/views/katello/system_groups/events/_system_items.html.haml +27 -0
- data/app/views/katello/system_groups/events/_systems.html.haml +15 -0
- data/app/views/katello/system_groups/index.html.haml +24 -0
- data/app/views/katello/system_groups/packages/_index.html.haml +70 -0
- data/app/views/katello/system_groups/packages/_items.html.haml +30 -0
- data/app/views/katello/system_groups/packages/_status.html.haml +5 -0
- data/app/views/katello/system_packages/_package_items.html.haml +43 -0
- data/app/views/katello/system_packages/_packages.html.haml +132 -0
- data/app/views/katello/systems/_actions.html.haml +96 -0
- data/app/views/katello/systems/_edit.html.haml +229 -0
- data/app/views/katello/systems/_edit_custom_info.html.haml +10 -0
- data/app/views/katello/systems/_facts.html.haml +33 -0
- data/app/views/katello/systems/_hypervisor.html.haml +7 -0
- data/app/views/katello/systems/_list_system.html.haml +2 -0
- data/app/views/katello/systems/_list_system_show.html.haml +25 -0
- data/app/views/katello/systems/_list_systems.html.haml +1 -0
- data/app/views/katello/systems/_more_products.html.haml +9 -0
- data/app/views/katello/systems/_new.html.haml +20 -0
- data/app/views/katello/systems/_products.html.haml +23 -0
- data/app/views/katello/systems/_subs.html.haml +144 -0
- data/app/views/katello/systems/_subs_update.js.haml +1 -0
- data/app/views/katello/systems/_subscription_details.html.haml +23 -0
- data/app/views/katello/systems/_subscriptions.html.haml +28 -0
- data/app/views/katello/systems/_system_group_items.html.haml +7 -0
- data/app/views/katello/systems/_system_groups.html.haml +26 -0
- data/app/views/katello/systems/_system_tupane_header_nav.html.haml +10 -0
- data/app/views/katello/systems/errata/_index.html.haml +62 -0
- data/app/views/katello/systems/errata/_items.html.haml +21 -0
- data/app/views/katello/systems/index.html.haml +47 -0
- data/app/views/katello/systems/new_nutupane.html.haml +52 -0
- data/app/views/katello/systems/show_nutupane.html.haml +199 -0
- data/app/views/katello/user_mailer/logins.text.haml +3 -0
- data/app/views/katello/users/_edit.html.haml +14 -0
- data/app/views/katello/users/_edit_environment.html.haml +46 -0
- data/app/views/katello/users/_edit_form.html.haml +70 -0
- data/app/views/katello/users/index.html.haml +8 -0
- data/app/views/katello/users/show.html.haml +3 -0
- data/app/views/katello/welcome/show.html.haml +15 -0
- data/config/boot.rb +18 -0
- data/config/candlepin-ca.crt +15 -0
- data/config/compass.rb +6 -0
- data/config/database.yml +1 -0
- data/config/initializers/active_record.rb +1 -0
- data/config/initializers/active_resource.rb +1 -0
- data/config/initializers/apipie.rb +144 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/db_setup_check.rb +4 -0
- data/config/initializers/delayed_job.rb +16 -0
- data/config/initializers/inflections.rb +13 -0
- data/config/initializers/mime_types.rb +7 -0
- data/config/initializers/monkeys.rb +2 -0
- data/config/initializers/multipart_json_fix.rb +15 -0
- data/config/initializers/openstruct.rb +12 -0
- data/config/initializers/quiet_paths.rb +19 -0
- data/config/initializers/rabl_init.rb +23 -0
- data/config/initializers/runcible.rb +14 -0
- data/config/initializers/session_store.rb +6 -0
- data/config/initializers/sig_ttin_trap.rb +17 -0
- data/config/initializers/simple_navigation.rb +1 -0
- data/config/initializers/tire.rb +4 -0
- data/config/katello.yml +0 -0
- data/config/katello_defaults.yml +369 -0
- data/config/locales/README +10 -0
- data/config/locales/bn.yml +182 -0
- data/config/locales/compare_upstream.sh +21 -0
- data/config/locales/cs.yml +211 -0
- data/config/locales/de.yml +203 -0
- data/config/locales/en.yml +205 -0
- data/config/locales/es.yml +199 -0
- data/config/locales/fr.yml +222 -0
- data/config/locales/gu.yml +181 -0
- data/config/locales/hi.yml +199 -0
- data/config/locales/it.yml +205 -0
- data/config/locales/ja.yml +197 -0
- data/config/locales/kn.yml +199 -0
- data/config/locales/ko.yml +197 -0
- data/config/locales/mr.yml +178 -0
- data/config/locales/or.yml +181 -0
- data/config/locales/pa.yml +181 -0
- data/config/locales/pt-BR.yml +207 -0
- data/config/locales/pt.yml +207 -0
- data/config/locales/ru.yml +257 -0
- data/config/locales/ta.yml +181 -0
- data/config/locales/te.yml +181 -0
- data/config/locales/update.sh +14 -0
- data/config/locales/zh-CN.yml +199 -0
- data/config/locales/zh-TW.yml +199 -0
- data/config/navigation.rb +0 -0
- data/config/routes.rb +503 -0
- data/config/routes/api/v1.rb +375 -0
- data/config/routes/api/v2.rb +392 -0
- data/config/routes/mount_engine.rb +3 -0
- data/db/migrate/20131014135042_katello_tables.rb +672 -0
- data/db/migrate/20131014225132_add_users_fields.rb +13 -0
- data/db/migrate/20131120225132_add_organization_fields.rb +15 -0
- data/db/products.json +118 -0
- data/db/seeds.rb +61 -0
- data/engines/bastion/Bastion.gemspec +21 -0
- data/engines/bastion/README.md +297 -0
- data/engines/bastion/app/assets/bastion/bastion.js +95 -0
- data/engines/bastion/app/assets/bastion/bastion.module.js +141 -0
- data/engines/bastion/app/assets/bastion/content-views/content-view.factory.js +38 -0
- data/engines/bastion/app/assets/bastion/content-views/content-views.module.js +25 -0
- data/engines/bastion/app/assets/bastion/environments/environment.factory.js +38 -0
- data/engines/bastion/app/assets/bastion/environments/environments.controller.js +58 -0
- data/engines/bastion/app/assets/bastion/environments/environments.module.js +44 -0
- data/engines/bastion/app/assets/bastion/environments/path.controller.js +149 -0
- data/engines/bastion/app/assets/bastion/environments/views/environments.html +165 -0
- data/engines/bastion/app/assets/bastion/errata/errata.module.js +23 -0
- data/engines/bastion/app/assets/bastion/errata/erratum.factory.js +31 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/details/gpg-key-details-info.controller.js +52 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/details/gpg-key-details.controller.js +62 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/details/views/gpg-key-details.html +48 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/details/views/gpg-key-info.html +39 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/details/views/gpg-key-products.html +29 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/details/views/gpg-key-repositories.html +33 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/gpg-key.factory.js +36 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/gpg-keys.controller.js +64 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/gpg-keys.module.js +98 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/new/new-gpg-key.controller.js +51 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/new/views/gpg-key-new.html +72 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/views/gpg-keys-table-collapsed.html +15 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/views/gpg-keys-table-full.html +21 -0
- data/engines/bastion/app/assets/bastion/gpg-keys/views/gpg-keys.html +14 -0
- data/engines/bastion/app/assets/bastion/i18n/i18n.module.js +24 -0
- data/engines/bastion/app/assets/bastion/i18n/katello.pot +968 -0
- data/engines/bastion/app/assets/bastion/i18n/translations.js +3 -0
- data/engines/bastion/app/assets/bastion/images/favicon.png +0 -0
- data/engines/bastion/app/assets/bastion/incubator/alch-alert.directive.js +67 -0
- data/engines/bastion/app/assets/bastion/incubator/alch-container-scroll.directive.js +43 -0
- data/engines/bastion/app/assets/bastion/incubator/alch-dropdown.directive.js +28 -0
- data/engines/bastion/app/assets/bastion/incubator/alch-edit.directive.js +348 -0
- data/engines/bastion/app/assets/bastion/incubator/alch-flyout.directive.js +19 -0
- data/engines/bastion/app/assets/bastion/incubator/alch-form-buttons.directive.js +56 -0
- data/engines/bastion/app/assets/bastion/incubator/alch-form-group.directive.js +82 -0
- data/engines/bastion/app/assets/bastion/incubator/alch-infinite-scroll.directive.js +84 -0
- data/engines/bastion/app/assets/bastion/incubator/alch-menu.directive.js +56 -0
- data/engines/bastion/app/assets/bastion/incubator/alch-modal.directive.js +80 -0
- data/engines/bastion/app/assets/bastion/incubator/alch-save-control.directive.js +42 -0
- data/engines/bastion/app/assets/bastion/incubator/alch-table.directive.js +219 -0
- data/engines/bastion/app/assets/bastion/incubator/format/alch-format.module.js +21 -0
- data/engines/bastion/app/assets/bastion/incubator/format/array-to-string.filter.js +30 -0
- data/engines/bastion/app/assets/bastion/incubator/format/boolean-to-yes-no.filter.js +34 -0
- data/engines/bastion/app/assets/bastion/incubator/format/default-number-string.filter.js +34 -0
- data/engines/bastion/app/assets/bastion/incubator/format/key-value-to-string.filter.js +40 -0
- data/engines/bastion/app/assets/bastion/incubator/format/unlimitedFilter.filter.js +33 -0
- data/engines/bastion/app/assets/bastion/incubator/stylesheets/alch-edit.scss +34 -0
- data/engines/bastion/app/assets/bastion/incubator/stylesheets/header.scss +207 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-alert.html +6 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-dropdown.html +19 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-edit-add-item.html +21 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-edit-add-remove-cancel.html +28 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-edit-checkbox.html +6 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-edit-custom.html +6 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-edit-multiselect.html +17 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-edit-save-cancel.html +20 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-edit-select.html +10 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-edit-text.html +6 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-edit-textarea.html +6 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-edit.html +18 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-flyout.html +10 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-form-buttons.html +10 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-form-group.html +9 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-menu.html +18 -0
- data/engines/bastion/app/assets/bastion/incubator/views/alch-modal-remove.html +13 -0
- data/engines/bastion/app/assets/bastion/layouts/details-nutupane.html +57 -0
- data/engines/bastion/app/assets/bastion/layouts/nutupane.html +63 -0
- data/engines/bastion/app/assets/bastion/layouts/select-all-results.html +9 -0
- data/engines/bastion/app/assets/bastion/menu/menu-expander.service.js +51 -0
- data/engines/bastion/app/assets/bastion/menu/menu.module.js +25 -0
- data/engines/bastion/app/assets/bastion/nodes/node.factory.js +31 -0
- data/engines/bastion/app/assets/bastion/nodes/nodes.module.js +23 -0
- data/engines/bastion/app/assets/bastion/organizations/organization.factory.js +37 -0
- data/engines/bastion/app/assets/bastion/organizations/organizations.module.js +23 -0
- data/engines/bastion/app/assets/bastion/products/details/product-details-info.controller.js +71 -0
- data/engines/bastion/app/assets/bastion/products/details/product-details.controller.js +51 -0
- data/engines/bastion/app/assets/bastion/products/details/product-repositories.controller.js +40 -0
- data/engines/bastion/app/assets/bastion/products/details/views/product-details.html +59 -0
- data/engines/bastion/app/assets/bastion/products/details/views/product-info.html +45 -0
- data/engines/bastion/app/assets/bastion/products/details/views/product-repositories.html +65 -0
- data/engines/bastion/app/assets/bastion/products/discovery/discovery-form.controller.js +185 -0
- data/engines/bastion/app/assets/bastion/products/discovery/discovery.controller.js +115 -0
- data/engines/bastion/app/assets/bastion/products/discovery/views/discovery-base.html +16 -0
- data/engines/bastion/app/assets/bastion/products/discovery/views/discovery-create.html +171 -0
- data/engines/bastion/app/assets/bastion/products/discovery/views/discovery.html +90 -0
- data/engines/bastion/app/assets/bastion/products/new/new-product.controller.js +32 -0
- data/engines/bastion/app/assets/bastion/products/new/product-form.controller.js +91 -0
- data/engines/bastion/app/assets/bastion/products/new/views/product-new-form.html +56 -0
- data/engines/bastion/app/assets/bastion/products/new/views/product-new.html +20 -0
- data/engines/bastion/app/assets/bastion/products/product.factory.js +32 -0
- data/engines/bastion/app/assets/bastion/products/products.controller.js +52 -0
- data/engines/bastion/app/assets/bastion/products/products.module.js +153 -0
- data/engines/bastion/app/assets/bastion/products/views/products-table-collapsed.html +18 -0
- data/engines/bastion/app/assets/bastion/products/views/products-table-full.html +24 -0
- data/engines/bastion/app/assets/bastion/products/views/products.html +19 -0
- data/engines/bastion/app/assets/bastion/providers/new/new-provider.controller.js +63 -0
- data/engines/bastion/app/assets/bastion/providers/new/views/provider-new.html +28 -0
- data/engines/bastion/app/assets/bastion/providers/provider.factory.js +38 -0
- data/engines/bastion/app/assets/bastion/providers/providers.module.js +23 -0
- data/engines/bastion/app/assets/bastion/repositories/details/repository-details-info.controller.js +113 -0
- data/engines/bastion/app/assets/bastion/repositories/details/views/repository-info.html +174 -0
- data/engines/bastion/app/assets/bastion/repositories/new/new-repository.controller.js +63 -0
- data/engines/bastion/app/assets/bastion/repositories/new/views/repository-new.html +73 -0
- data/engines/bastion/app/assets/bastion/repositories/repositories.module.js +35 -0
- data/engines/bastion/app/assets/bastion/repositories/repository.factory.js +38 -0
- data/engines/bastion/app/assets/bastion/stylesheets/less/bastion.less +27 -0
- data/engines/bastion/app/assets/bastion/stylesheets/less/forms.less +11 -0
- data/engines/bastion/app/assets/bastion/stylesheets/less/gpg-keys.less +36 -0
- data/engines/bastion/app/assets/bastion/stylesheets/less/helpers.less +6 -0
- data/engines/bastion/app/assets/bastion/stylesheets/less/nutupane.less +307 -0
- data/engines/bastion/app/assets/bastion/stylesheets/less/overrides.less +42 -0
- data/engines/bastion/app/assets/bastion/stylesheets/less/systems.less +35 -0
- data/engines/bastion/app/assets/bastion/stylesheets/less/variables.less +2 -0
- data/engines/bastion/app/assets/bastion/stylesheets/scss/bastion.scss +171 -0
- data/engines/bastion/app/assets/bastion/stylesheets/widgets/_org-switcher.scss +114 -0
- data/engines/bastion/app/assets/bastion/subscriptions/details/subscription-details.controller.js +58 -0
- data/engines/bastion/app/assets/bastion/subscriptions/details/subscription-products.controller.js +35 -0
- data/engines/bastion/app/assets/bastion/subscriptions/details/views/subscription-associations.html +41 -0
- data/engines/bastion/app/assets/bastion/subscriptions/details/views/subscription-details.html +41 -0
- data/engines/bastion/app/assets/bastion/subscriptions/details/views/subscription-info.html +92 -0
- data/engines/bastion/app/assets/bastion/subscriptions/details/views/subscription-products.html +35 -0
- data/engines/bastion/app/assets/bastion/subscriptions/manifest/manifest-details.controller.js +46 -0
- data/engines/bastion/app/assets/bastion/subscriptions/manifest/manifest-history.controller.js +31 -0
- data/engines/bastion/app/assets/bastion/subscriptions/manifest/manifest-import.controller.js +147 -0
- data/engines/bastion/app/assets/bastion/subscriptions/manifest/manifest.controller.js +48 -0
- data/engines/bastion/app/assets/bastion/subscriptions/manifest/views/manifest-details.html +46 -0
- data/engines/bastion/app/assets/bastion/subscriptions/manifest/views/manifest-import-history.html +17 -0
- data/engines/bastion/app/assets/bastion/subscriptions/manifest/views/manifest-import.html +80 -0
- data/engines/bastion/app/assets/bastion/subscriptions/manifest/views/manifest.html +47 -0
- data/engines/bastion/app/assets/bastion/subscriptions/subscriptions.controller.js +82 -0
- data/engines/bastion/app/assets/bastion/subscriptions/subscriptions.factory.js +31 -0
- data/engines/bastion/app/assets/bastion/subscriptions/subscriptions.module.js +118 -0
- data/engines/bastion/app/assets/bastion/subscriptions/views/subscriptions-delete-bulk.html +4 -0
- data/engines/bastion/app/assets/bastion/subscriptions/views/subscriptions-table-collapsed.html +17 -0
- data/engines/bastion/app/assets/bastion/subscriptions/views/subscriptions-table-full.html +31 -0
- data/engines/bastion/app/assets/bastion/subscriptions/views/subscriptions.html +13 -0
- data/engines/bastion/app/assets/bastion/system-groups/details/system-group-add-systems.controller.js +78 -0
- data/engines/bastion/app/assets/bastion/system-groups/details/system-group-details-info.controller.js +40 -0
- data/engines/bastion/app/assets/bastion/system-groups/details/system-group-details.controller.js +82 -0
- data/engines/bastion/app/assets/bastion/system-groups/details/system-group-systems.controller.js +61 -0
- data/engines/bastion/app/assets/bastion/system-groups/details/views/system-group-actions.html +34 -0
- data/engines/bastion/app/assets/bastion/system-groups/details/views/system-group-add-systems.html +83 -0
- data/engines/bastion/app/assets/bastion/system-groups/details/views/system-group-details.html +91 -0
- data/engines/bastion/app/assets/bastion/system-groups/details/views/system-group-info.html +62 -0
- data/engines/bastion/app/assets/bastion/system-groups/details/views/system-group-systems-list.html +77 -0
- data/engines/bastion/app/assets/bastion/system-groups/details/views/system-group-systems.html +21 -0
- data/engines/bastion/app/assets/bastion/system-groups/new/new-system-group.controller.js +32 -0
- data/engines/bastion/app/assets/bastion/system-groups/new/system-group-form.controller.js +75 -0
- data/engines/bastion/app/assets/bastion/system-groups/new/views/system-group-new-form.html +46 -0
- data/engines/bastion/app/assets/bastion/system-groups/new/views/system-group-new.html +20 -0
- data/engines/bastion/app/assets/bastion/system-groups/system-group.factory.js +36 -0
- data/engines/bastion/app/assets/bastion/system-groups/system-groups.controller.js +51 -0
- data/engines/bastion/app/assets/bastion/system-groups/system-groups.module.js +102 -0
- data/engines/bastion/app/assets/bastion/system-groups/views/system-groups-table-collapsed.html +18 -0
- data/engines/bastion/app/assets/bastion/system-groups/views/system-groups-table-full.html +26 -0
- data/engines/bastion/app/assets/bastion/system-groups/views/system-groups.html +14 -0
- data/engines/bastion/app/assets/bastion/systems/bulk/systems-bulk-action-errata.controller.js +113 -0
- data/engines/bastion/app/assets/bastion/systems/bulk/systems-bulk-action-groups.controller.js +92 -0
- data/engines/bastion/app/assets/bastion/systems/bulk/systems-bulk-action-packages.controller.js +101 -0
- data/engines/bastion/app/assets/bastion/systems/bulk/systems-bulk-action-subscriptions.controller.js +98 -0
- data/engines/bastion/app/assets/bastion/systems/bulk/systems-bulk-action.controller.js +84 -0
- data/engines/bastion/app/assets/bastion/systems/bulk/views/alter-content-bulk.html +3 -0
- data/engines/bastion/app/assets/bastion/systems/bulk/views/bulk-actions-errata.html +73 -0
- data/engines/bastion/app/assets/bastion/systems/bulk/views/bulk-actions-groups.html +66 -0
- data/engines/bastion/app/assets/bastion/systems/bulk/views/bulk-actions-packages.html +78 -0
- data/engines/bastion/app/assets/bastion/systems/bulk/views/bulk-actions-subscriptions.html +24 -0
- data/engines/bastion/app/assets/bastion/systems/bulk/views/bulk-actions.html +88 -0
- data/engines/bastion/app/assets/bastion/systems/bulk/views/errata-details.html +64 -0
- data/engines/bastion/app/assets/bastion/systems/bulk/views/errata-systems.html +28 -0
- data/engines/bastion/app/assets/bastion/systems/content/system-errata.controller.js +71 -0
- data/engines/bastion/app/assets/bastion/systems/content/system-packages.controller.js +97 -0
- data/engines/bastion/app/assets/bastion/systems/content/views/errata-details.html +64 -0
- data/engines/bastion/app/assets/bastion/systems/content/views/system-errata.html +57 -0
- data/engines/bastion/app/assets/bastion/systems/content/views/system-packages.html +94 -0
- data/engines/bastion/app/assets/bastion/systems/details/system-add-system-groups.controller.js +82 -0
- data/engines/bastion/app/assets/bastion/systems/details/system-details-info.controller.js +236 -0
- data/engines/bastion/app/assets/bastion/systems/details/system-details.controller.js +94 -0
- data/engines/bastion/app/assets/bastion/systems/details/system-event-details.controller.js +55 -0
- data/engines/bastion/app/assets/bastion/systems/details/system-events.controller.js +48 -0
- data/engines/bastion/app/assets/bastion/systems/details/system-subscriptions.controller.js +136 -0
- data/engines/bastion/app/assets/bastion/systems/details/system-system-groups.controller.js +82 -0
- data/engines/bastion/app/assets/bastion/systems/details/views/partials/system-detail-object.html +8 -0
- data/engines/bastion/app/assets/bastion/systems/details/views/partials/system-detail-value.html +4 -0
- data/engines/bastion/app/assets/bastion/systems/details/views/system-details.html +74 -0
- data/engines/bastion/app/assets/bastion/systems/details/views/system-event-details.html +47 -0
- data/engines/bastion/app/assets/bastion/systems/details/views/system-events.html +45 -0
- data/engines/bastion/app/assets/bastion/systems/details/views/system-groups-table.html +81 -0
- data/engines/bastion/app/assets/bastion/systems/details/views/system-groups.html +18 -0
- data/engines/bastion/app/assets/bastion/systems/details/views/system-info.html +332 -0
- data/engines/bastion/app/assets/bastion/systems/details/views/system-subscriptions.html +198 -0
- data/engines/bastion/app/assets/bastion/systems/system-erratum.factory.js +32 -0
- data/engines/bastion/app/assets/bastion/systems/system-package.factory.js +35 -0
- data/engines/bastion/app/assets/bastion/systems/system-register.controller.js +38 -0
- data/engines/bastion/app/assets/bastion/systems/system-subscription.factory.js +31 -0
- data/engines/bastion/app/assets/bastion/systems/system-task.factory.js +45 -0
- data/engines/bastion/app/assets/bastion/systems/system.factory.js +70 -0
- data/engines/bastion/app/assets/bastion/systems/systems-helper.service.js +35 -0
- data/engines/bastion/app/assets/bastion/systems/systems.controller.js +72 -0
- data/engines/bastion/app/assets/bastion/systems/systems.module.js +214 -0
- data/engines/bastion/app/assets/bastion/systems/views/register.html +35 -0
- data/engines/bastion/app/assets/bastion/systems/views/systems-delete-bulk.html +4 -0
- data/engines/bastion/app/assets/bastion/systems/views/systems-table-collapsed.html +20 -0
- data/engines/bastion/app/assets/bastion/systems/views/systems-table-full.html +33 -0
- data/engines/bastion/app/assets/bastion/systems/views/systems.html +19 -0
- data/engines/bastion/app/assets/bastion/tasks/task.factory.js +52 -0
- data/engines/bastion/app/assets/bastion/tasks/tasks.module.js +23 -0
- data/engines/bastion/app/assets/bastion/users/user.factory.js +45 -0
- data/engines/bastion/app/assets/bastion/users/users.module.js +21 -0
- data/engines/bastion/app/assets/bastion/utils/form-utils.service.js +54 -0
- data/engines/bastion/app/assets/bastion/utils/routes.factory.js +26 -0
- data/engines/bastion/app/assets/bastion/utils/utils.module.js +21 -0
- data/engines/bastion/app/assets/bastion/widgets/nutupane-table.directive.js +59 -0
- data/engines/bastion/app/assets/bastion/widgets/nutupane.factory.js +304 -0
- data/engines/bastion/app/assets/bastion/widgets/org-switcher.widget.js +104 -0
- data/engines/bastion/app/assets/bastion/widgets/path-selector.directive.js +74 -0
- data/engines/bastion/app/assets/bastion/widgets/views/org-switcher.html +41 -0
- data/engines/bastion/app/assets/bastion/widgets/views/save-control.html +22 -0
- data/engines/bastion/app/assets/bastion/widgets/widgets.module.js +21 -0
- data/engines/bastion/app/assets/images/bastion/favicon.png +0 -0
- data/engines/bastion/app/assets/images/bastion/headpin-logo.png +0 -0
- data/engines/bastion/app/assets/images/bastion/katello-logo.png +0 -0
- data/engines/bastion/app/views/bastion/layouts/application.html.haml +18 -0
- data/engines/bastion/lib/bastion.rb +5 -0
- data/engines/bastion/lib/bastion/engine.rb +37 -0
- data/engines/bastion/lib/bastion/version.rb +3 -0
- data/engines/bastion/vendor/assets/fonts/bastion/font-awesome/FontAwesome.otf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.eot +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.svg +399 -0
- data/engines/bastion/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.ttf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.woff +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.eot +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.svg +146 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.ttf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.woff +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.eot +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.svg +146 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.ttf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.woff +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.eot +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.svg +146 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.ttf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.woff +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.svg +146 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.eot +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.svg +146 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.ttf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.woff +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.eot +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.svg +146 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.ttf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.woff +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.eot +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.svg +146 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.ttf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.woff +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.eot +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.svg +146 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.ttf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.woff +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.eot +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.svg +146 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.ttf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.woff +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.eot +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.svg +146 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.woff +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.eot +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.svg +454 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.ttf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.woff +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.eot +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.svg +454 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.ttf +0 -0
- data/engines/bastion/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.woff +0 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/alchemy/alchemy.js +20 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-blocks/angular-blocks.js +79 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-gettext/angular-gettext.js +200 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-resource/angular-resource.js +578 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-route/angular-route.js +880 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-sanitize/angular-sanitize.js +577 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-ui-bootstrap/alert.js +15 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-ui-bootstrap/bindHtml.js +10 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-ui-bootstrap/modal.js +315 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-ui-bootstrap/position.js +79 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-ui-bootstrap/tabs.js +316 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-ui-bootstrap/tooltip.js +337 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-ui-router/angular-ui-router.js +1478 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js +20031 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/es5-shim/es5-shim.js +1216 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/jquery/jquery.js +9597 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/json3/json3.js +861 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/ngUpload/ng-upload.js +205 -0
- data/engines/bastion/vendor/assets/javascripts/bastion/underscore/underscore.js +1276 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/alchemy/_colors.scss +99 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/alchemy/_media_object.scss +22 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/alchemy/_mixins.scss +24 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/alchemy/_normalize.scss +396 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/alchemy/_vars.scss +31 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/alchemy/alchemy.scss +8 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/alerts.less +67 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/badges.less +51 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/bootstrap.less +49 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/breadcrumbs.less +23 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/button-groups.less +227 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/buttons.less +155 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/carousel.less +232 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/close.less +33 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/code.less +53 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/component-animations.less +29 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/dropdowns.less +187 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/forms.less +375 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/glyphicons.less +237 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/grid.less +79 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/input-groups.less +136 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/jumbotron.less +46 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/labels.less +64 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/list-group.less +88 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/media.less +56 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/mixins.less +845 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/modals.less +129 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/navbar.less +612 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/navs.less +242 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/normalize.less +406 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/pager.less +55 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/pagination.less +85 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/panels.less +182 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/popovers.less +133 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/print.less +105 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/progress-bars.less +80 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/responsive-utilities.less +209 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/scaffolding.less +119 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/tables.less +231 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/theme.less +247 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/thumbnails.less +36 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/tooltip.less +95 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/type.less +281 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/utilities.less +56 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/variables.less +642 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/bootstrap/wells.less +29 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/less/bootstrap.less +84 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/less/core.less +129 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/less/extras.less +93 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/less/font-awesome-ie7.less +1953 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/less/font-awesome.less +33 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/less/icons.less +381 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/less/mixins.less +48 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/less/path.less +14 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/less/variables.less +735 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/scss/_bootstrap.scss +84 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/scss/_core.scss +129 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/scss/_extras.scss +93 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/scss/_icons.scss +381 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/scss/_mixins.scss +48 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/scss/_path.scss +14 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/scss/_variables.scss +734 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/scss/font-awesome-ie7.scss +1953 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/font-awesome/scss/font-awesome.scss +33 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/rcue/buttons.less +44 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/rcue/fonts.less +52 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/rcue/forms.less +19 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/rcue/mixins.less +50 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/rcue/navbar.less +481 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/rcue/rcue.less +15 -0
- data/engines/bastion/vendor/assets/stylesheets/bastion/rcue/variables.less +47 -0
- data/engines/fort/app/controllers/api/v1/node_capabilities_controller.rb +84 -0
- data/engines/fort/app/controllers/api/v1/nodes_controller.rb +131 -0
- data/engines/fort/app/controllers/api/v2/node_capabilities_controller.rb +17 -0
- data/engines/fort/app/controllers/api/v2/nodes_controller.rb +41 -0
- data/engines/fort/app/models/authorization/node.rb +26 -0
- data/engines/fort/app/models/content_node_capability.rb +67 -0
- data/engines/fort/app/models/fort/concerns/system.rb +29 -0
- data/engines/fort/app/models/node.rb +61 -0
- data/engines/fort/app/models/node_capability.rb +42 -0
- data/engines/fort/app/views/api/v2/nodes/index.json.rabl +3 -0
- data/engines/fort/app/views/api/v2/nodes/show.json.rabl +15 -0
- data/engines/fort/config/routes.rb +37 -0
- data/engines/fort/db/migrate/20130725180846_node.rb +15 -0
- data/engines/fort/db/migrate/20130725185514_add_node_capability.rb +16 -0
- data/engines/fort/db/migrate/20130726210956_create_node_environments.rb +16 -0
- data/engines/fort/lib/fort.rb +16 -0
- data/engines/fort/lib/fort/actions/changeset_promote.rb +43 -0
- data/engines/fort/lib/fort/actions/content_view_publish.rb +35 -0
- data/engines/fort/lib/fort/actions/content_view_refresh.rb +34 -0
- data/engines/fort/lib/fort/actions/repository_create.rb +41 -0
- data/engines/fort/lib/fort/engine.rb +29 -0
- data/engines/fort/lib/fort/version.rb +3 -0
- data/engines/fort/lib/tasks/fort_tasks.rake +4 -0
- data/lib/README +1 -0
- data/lib/headpin/actions/org_create.rb +28 -0
- data/lib/headpin/actions/org_destroy.rb +28 -0
- data/lib/headpin/actions/user_create.rb +33 -0
- data/lib/headpin/actions/user_destroy.rb +28 -0
- data/lib/headpin/headpin.rb +8 -0
- data/lib/katello.rb +46 -0
- data/lib/katello/actions/actions.rb +19 -0
- data/lib/katello/actions/changeset_promote.rb +24 -0
- data/lib/katello/actions/content_view_create.rb +23 -0
- data/lib/katello/actions/content_view_demote.rb +21 -0
- data/lib/katello/actions/content_view_promote.rb +35 -0
- data/lib/katello/actions/content_view_publish.rb +32 -0
- data/lib/katello/actions/content_view_refresh.rb +32 -0
- data/lib/katello/actions/environment_create.rb +31 -0
- data/lib/katello/actions/environment_destroy.rb +31 -0
- data/lib/katello/actions/repository_create.rb +23 -0
- data/lib/katello/actions/repository_destroy.rb +23 -0
- data/lib/katello/actions/repository_sync.rb +25 -0
- data/lib/katello/app_config.rb +22 -0
- data/lib/katello/configuration.rb +71 -0
- data/lib/katello/configuration/loader.rb +129 -0
- data/lib/katello/configuration/node.rb +146 -0
- data/lib/katello/configuration/validator.rb +86 -0
- data/lib/katello/engine.rb +89 -0
- data/lib/katello/load_configuration.rb +142 -0
- data/lib/katello/logging.rb +245 -0
- data/lib/katello/middleware/log_request_uuid.rb +28 -0
- data/lib/katello/plugin.rb +158 -0
- data/lib/katello/tasks/cdn_refresh.rake +12 -0
- data/lib/katello/tasks/delete_orphaned_content.rake +7 -0
- data/lib/katello/tasks/gettext.rake +5 -0
- data/lib/katello/tasks/headpin_misc.rake +18 -0
- data/lib/katello/tasks/jenkins.rake +14 -0
- data/lib/katello/tasks/jshint.rake +51 -0
- data/lib/katello/tasks/jsroutes.rake +5 -0
- data/lib/katello/tasks/pretty_routes.rake +30 -0
- data/lib/katello/tasks/regenerate_repo_metadata.rake +20 -0
- data/lib/katello/tasks/reindex.rake +36 -0
- data/lib/katello/tasks/rubocop.rake +18 -0
- data/lib/katello/tasks/setup.rake +65 -0
- data/lib/katello/tasks/simplecov.rake +7 -0
- data/lib/katello/tasks/test.rake +72 -0
- data/lib/katello/tasks/yard.rake +9 -0
- data/lib/katello/url_constrained_cookie_store.rb +96 -0
- data/lib/katello/version.rb +3 -0
- data/lib/monkeys/foreign_keys_postgresql.rb +15 -0
- data/lib/monkeys/multi_json_empty_fix.rb +14 -0
- data/lib/monkeys/string_to_bool.rb +19 -0
- data/lib/monkeys/yard_svg_fix.rb +27 -0
- data/lib/util/password.rb +138 -0
- data/lib/util/puppet.rb +55 -0
- data/locale/Makefile +41 -0
- data/locale/README +14 -0
- data/locale/bn/katello.po +5440 -0
- data/locale/cs/katello.po +5082 -0
- data/locale/de/katello.po +5449 -0
- data/locale/en/katello.po +4845 -0
- data/locale/es/katello.po +5443 -0
- data/locale/fr/katello.po +5443 -0
- data/locale/gu/katello.po +5440 -0
- data/locale/hi/katello.po +5440 -0
- data/locale/it/katello.po +5443 -0
- data/locale/ja/katello.po +5475 -0
- data/locale/katello.pot +4846 -0
- data/locale/kn/katello.po +5468 -0
- data/locale/ko/katello.po +5443 -0
- data/locale/mr/katello.po +5468 -0
- data/locale/or/katello.po +5468 -0
- data/locale/pa/katello.po +5440 -0
- data/locale/pt/katello.po +4891 -0
- data/locale/pt_BR/katello.po +5472 -0
- data/locale/ru/katello.po +5449 -0
- data/locale/ta/katello.po +5440 -0
- data/locale/te/katello.po +5468 -0
- data/locale/zanata.xml +27 -0
- data/locale/zh_CN/katello.po +5443 -0
- data/locale/zh_TW/katello.po +5471 -0
- data/vendor/assets/images/katello/add2.png +0 -0
- data/vendor/assets/images/katello/addhost.png +0 -0
- data/vendor/assets/images/katello/addhost2.png +0 -0
- data/vendor/assets/images/katello/bg_header.jpg +0 -0
- data/vendor/assets/images/katello/bg_menu_big.jpg +0 -0
- data/vendor/assets/images/katello/bg_toolbarheader.jpg +0 -0
- data/vendor/assets/images/katello/close.png +0 -0
- data/vendor/assets/images/katello/delete.png +0 -0
- data/vendor/assets/images/katello/delete_white.gif +0 -0
- data/vendor/assets/images/katello/file.gif +0 -0
- data/vendor/assets/images/katello/folder-closed.gif +0 -0
- data/vendor/assets/images/katello/folder.gif +0 -0
- data/vendor/assets/images/katello/folderClosed.gif +0 -0
- data/vendor/assets/images/katello/icon_add_hardwarePool.png +0 -0
- data/vendor/assets/images/katello/icon_add_vmpool.png +0 -0
- data/vendor/assets/images/katello/icon_addhost.gif +0 -0
- data/vendor/assets/images/katello/icon_addstorage.gif +0 -0
- data/vendor/assets/images/katello/icon_addstorage.png +0 -0
- data/vendor/assets/images/katello/icon_dashboard.gif +0 -0
- data/vendor/assets/images/katello/icon_delete.gif +0 -0
- data/vendor/assets/images/katello/icon_hdwarepool.png +0 -0
- data/vendor/assets/images/katello/icon_help.png +0 -0
- data/vendor/assets/images/katello/icon_menu_arrow.gif +0 -0
- data/vendor/assets/images/katello/icon_newgroup.gif +0 -0
- data/vendor/assets/images/katello/icon_search.png +0 -0
- data/vendor/assets/images/katello/icon_toolbar_arrow.gif +0 -0
- data/vendor/assets/images/katello/icon_unassignedhost.gif +0 -0
- data/vendor/assets/images/katello/icon_vmpool.png +0 -0
- data/vendor/assets/images/katello/image_ovirt.png +0 -0
- data/vendor/assets/images/katello/minus.gif +0 -0
- data/vendor/assets/images/katello/move.png +0 -0
- data/vendor/assets/images/katello/plus.gif +0 -0
- data/vendor/assets/images/katello/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/images/katello/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/images/katello/ui-bg_highlight-hard_75_dadada_1x100.png +0 -0
- data/vendor/assets/images/katello/ui-bg_highlight-hard_75_e6e6e6_1x100.png +0 -0
- data/vendor/assets/images/katello/ui-bg_highlight-hard_95_ffffff_1x100.png +0 -0
- data/vendor/assets/images/katello/ui-bg_highlight-soft_80_e0e0e0_1x100.png +0 -0
- data/vendor/assets/images/katello/ui-bg_inset-hard_65_ffffff_1x100.png +0 -0
- data/vendor/assets/images/katello/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- data/vendor/assets/images/katello/ui-icons_8f8f8f_256x240.png +0 -0
- data/vendor/assets/images/katello/ui-icons_97baed_256x240.png +0 -0
- data/vendor/assets/images/katello/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/javascripts/katello/jquery-1.7.2.js +9404 -0
- data/vendor/assets/stylesheets/katello/facebox.css +101 -0
- data/vendor/assets/stylesheets/katello/jquery-ui-1.8.11.custom.css +573 -0
- data/vendor/assets/stylesheets/katello/jquery.jnotify.css +98 -0
- data/vendor/assets/stylesheets/katello/jquery.jscrollpane.css +120 -0
- data/vendor/assets/stylesheets/katello/jquery.loadmask.css +40 -0
- data/vendor/assets/stylesheets/katello/jquery.multiselect.css +23 -0
- data/vendor/assets/stylesheets/katello/jquery.multiselect.filter.css +3 -0
- data/vendor/assets/stylesheets/katello/jquery.timepickr.css +40 -0
- data/vendor/assets/stylesheets/katello/jquery.tipsy.css +25 -0
- data/vendor/assets/stylesheets/katello/jquery.treeTable.css +43 -0
- data/vendor/assets/stylesheets/katello/ui.spinner.css +3 -0
- metadata +2281 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
/* Copyright 2013 Red Hat, Inc.
|
2
|
+
|
3
|
+
This software is licensed to you under the GNU General Public
|
4
|
+
License as published by the Free Software Foundation; either version
|
5
|
+
2 of the License (GPLv2) or (at your option) any later version.
|
6
|
+
There is NO WARRANTY for this software, express or implied,
|
7
|
+
including the implied warranties of MERCHANTABILITY,
|
8
|
+
NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
9
|
+
have received a copy of GPLv2 along with this software; if not, see
|
10
|
+
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
11
|
+
*/
|
12
|
+
|
13
|
+
//= require "alchemy/jquery/plugins/ui.spinner"
|
14
|
+
//= require "alchemy/jquery/plugins/jquery.sortElements"
|
15
|
+
//= require "alchemy/jquery/plugins/jquery.multiselect"
|
16
|
+
//= require "alchemy/jquery/plugins/jquery.multiselect.filter"
|
17
|
+
//= require "alchemy/jquery/plugins/chosen.jquery"
|
18
|
+
//= require "alchemy/jquery/plugins/jquery.treeTable"
|
19
|
+
//= require "katello/widgets/auto_complete"
|
20
|
+
//= require "katello/widgets/env_content_view_selector"
|
21
|
+
//= require "katello/widgets/jquery.jeditable.helpers"
|
22
|
+
//= require "katello/distributors/distributors"
|
23
|
+
//= require "katello/systems/custom_info"
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/**
|
2
|
+
Copyright 2013 Red Hat, Inc.
|
3
|
+
|
4
|
+
This software is licensed to you under the GNU General Public
|
5
|
+
License as published by the Free Software Foundation; either version
|
6
|
+
2 of the License (GPLv2) or (at your option) any later version.
|
7
|
+
There is NO WARRANTY for this software, express or implied,
|
8
|
+
including the implied warranties of MERCHANTABILITY,
|
9
|
+
NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
10
|
+
have received a copy of GPLv2 along with this software; if not, see
|
11
|
+
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
12
|
+
*/
|
13
|
+
|
14
|
+
$(document).ready(function() {
|
15
|
+
$('.edit_env_name').each(function() {
|
16
|
+
var button = $(this);
|
17
|
+
|
18
|
+
$(this).editable(button.attr('data-url'), {
|
19
|
+
type : 'text',
|
20
|
+
width : 270,
|
21
|
+
method : 'PUT',
|
22
|
+
name : $(this).attr('name'),
|
23
|
+
cancel : i18n.cancel,
|
24
|
+
submit : i18n.save,
|
25
|
+
indicator : i18n.saving,
|
26
|
+
tooltip : i18n.clickToEdit,
|
27
|
+
placeholder : i18n.clickToEdit,
|
28
|
+
submitdata : {authenticity_token: AUTH_TOKEN},
|
29
|
+
onsuccess : function() {
|
30
|
+
KT.panel.panelAjax('', button.attr("data-forward") ,$('#panel'));
|
31
|
+
},
|
32
|
+
onerror : function(settings, original, xhr) {
|
33
|
+
original.reset();
|
34
|
+
$("#notification").replaceWith(xhr.responseText);
|
35
|
+
}
|
36
|
+
});
|
37
|
+
});
|
38
|
+
|
39
|
+
$('.edit_prior_envs').each(function() {
|
40
|
+
var button = $(this);
|
41
|
+
$(this).editable(button.attr('data-url'), {
|
42
|
+
type : 'select',
|
43
|
+
width : 440,
|
44
|
+
method : 'PUT',
|
45
|
+
name : $(this).attr('name'),
|
46
|
+
cancel : i18n.cancel,
|
47
|
+
submit : i18n.save,
|
48
|
+
indicator : i18n.saving,
|
49
|
+
tooltip : i18n.clickToEdit,
|
50
|
+
placeholder : i18n.clickToEdit,
|
51
|
+
style : "inherit",
|
52
|
+
data : document.environment_edit.elements['prior_envs'].value,
|
53
|
+
onsuccess : function() {
|
54
|
+
KT.panel.panelAjax('', button.attr("data-forward") ,$('#panel'));
|
55
|
+
},
|
56
|
+
onerror : function(settings, original, xhr) {
|
57
|
+
original.reset();
|
58
|
+
$("#notification").replaceWith(xhr.responseText);
|
59
|
+
}
|
60
|
+
});
|
61
|
+
});
|
62
|
+
|
63
|
+
});
|
@@ -0,0 +1,1416 @@
|
|
1
|
+
// Copyright 2006 Google Inc.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
|
16
|
+
// Known Issues:
|
17
|
+
//
|
18
|
+
// * Patterns only support repeat.
|
19
|
+
// * Radial gradient are not implemented. The VML version of these look very
|
20
|
+
// different from the canvas one.
|
21
|
+
// * Clipping paths are not implemented.
|
22
|
+
// * Coordsize. The width and height attribute have higher priority than the
|
23
|
+
// width and height style values which isn't correct.
|
24
|
+
// * Painting mode isn't implemented.
|
25
|
+
// * Canvas width/height should is using content-box by default. IE in
|
26
|
+
// Quirks mode will draw the canvas using border-box. Either change your
|
27
|
+
// doctype to HTML5
|
28
|
+
// (http://www.whatwg.org/specs/web-apps/current-work/#the-doctype)
|
29
|
+
// or use Box Sizing Behavior from WebFX
|
30
|
+
// (http://webfx.eae.net/dhtml/boxsizing/boxsizing.html)
|
31
|
+
// * Non uniform scaling does not correctly scale strokes.
|
32
|
+
// * Optimize. There is always room for speed improvements.
|
33
|
+
|
34
|
+
// Only add this code if we do not already have a canvas implementation
|
35
|
+
if (!document.createElement('canvas').getContext) {
|
36
|
+
|
37
|
+
(function() {
|
38
|
+
|
39
|
+
// alias some functions to make (compiled) code shorter
|
40
|
+
var m = Math;
|
41
|
+
var mr = m.round;
|
42
|
+
var ms = m.sin;
|
43
|
+
var mc = m.cos;
|
44
|
+
var abs = m.abs;
|
45
|
+
var sqrt = m.sqrt;
|
46
|
+
|
47
|
+
// this is used for sub pixel precision
|
48
|
+
var Z = 10;
|
49
|
+
var Z2 = Z / 2;
|
50
|
+
|
51
|
+
var IE_VERSION = +navigator.userAgent.match(/MSIE ([\d.]+)?/)[1];
|
52
|
+
|
53
|
+
/**
|
54
|
+
* This funtion is assigned to the <canvas> elements as element.getContext().
|
55
|
+
* @this {HTMLElement}
|
56
|
+
* @return {CanvasRenderingContext2D_}
|
57
|
+
*/
|
58
|
+
function getContext() {
|
59
|
+
return this.context_ ||
|
60
|
+
(this.context_ = new CanvasRenderingContext2D_(this));
|
61
|
+
}
|
62
|
+
|
63
|
+
var slice = Array.prototype.slice;
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Binds a function to an object. The returned function will always use the
|
67
|
+
* passed in {@code obj} as {@code this}.
|
68
|
+
*
|
69
|
+
* Example:
|
70
|
+
*
|
71
|
+
* g = bind(f, obj, a, b)
|
72
|
+
* g(c, d) // will do f.call(obj, a, b, c, d)
|
73
|
+
*
|
74
|
+
* @param {Function} f The function to bind the object to
|
75
|
+
* @param {Object} obj The object that should act as this when the function
|
76
|
+
* is called
|
77
|
+
* @param {*} var_args Rest arguments that will be used as the initial
|
78
|
+
* arguments when the function is called
|
79
|
+
* @return {Function} A new function that has bound this
|
80
|
+
*/
|
81
|
+
function bind(f, obj, var_args) {
|
82
|
+
var a = slice.call(arguments, 2);
|
83
|
+
return function() {
|
84
|
+
return f.apply(obj, a.concat(slice.call(arguments)));
|
85
|
+
};
|
86
|
+
}
|
87
|
+
|
88
|
+
function encodeHtmlAttribute(s) {
|
89
|
+
return String(s).replace(/&/g, '&').replace(/"/g, '"');
|
90
|
+
}
|
91
|
+
|
92
|
+
function addNamespace(doc, prefix, urn) {
|
93
|
+
if (!doc.namespaces[prefix]) {
|
94
|
+
doc.namespaces.add(prefix, urn, '#default#VML');
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
function addNamespacesAndStylesheet(doc) {
|
99
|
+
addNamespace(doc, 'g_vml_', 'urn:schemas-microsoft-com:vml');
|
100
|
+
addNamespace(doc, 'g_o_', 'urn:schemas-microsoft-com:office:office');
|
101
|
+
|
102
|
+
// Setup default CSS. Only add one style sheet per document
|
103
|
+
if (!doc.styleSheets['ex_canvas_']) {
|
104
|
+
var ss = doc.createStyleSheet();
|
105
|
+
ss.owningElement.id = 'ex_canvas_';
|
106
|
+
ss.cssText = 'canvas{display:inline-block;overflow:hidden;' +
|
107
|
+
// default size is 300x150 in Gecko and Opera
|
108
|
+
'text-align:left;width:300px;height:150px}';
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
// Add namespaces and stylesheet at startup.
|
113
|
+
addNamespacesAndStylesheet(document);
|
114
|
+
|
115
|
+
var G_vmlCanvasManager_ = {
|
116
|
+
init: function(opt_doc) {
|
117
|
+
var doc = opt_doc || document;
|
118
|
+
// Create a dummy element so that IE will allow canvas elements to be
|
119
|
+
// recognized.
|
120
|
+
doc.createElement('canvas');
|
121
|
+
doc.attachEvent('onreadystatechange', bind(this.init_, this, doc));
|
122
|
+
},
|
123
|
+
|
124
|
+
init_: function(doc) {
|
125
|
+
// find all canvas elements
|
126
|
+
var els = doc.getElementsByTagName('canvas');
|
127
|
+
for (var i = 0; i < els.length; i++) {
|
128
|
+
this.initElement(els[i]);
|
129
|
+
}
|
130
|
+
},
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Public initializes a canvas element so that it can be used as canvas
|
134
|
+
* element from now on. This is called automatically before the page is
|
135
|
+
* loaded but if you are creating elements using createElement you need to
|
136
|
+
* make sure this is called on the element.
|
137
|
+
* @param {HTMLElement} el The canvas element to initialize.
|
138
|
+
* @return {HTMLElement} the element that was created.
|
139
|
+
*/
|
140
|
+
initElement: function(el) {
|
141
|
+
if (!el.getContext) {
|
142
|
+
el.getContext = getContext;
|
143
|
+
|
144
|
+
// Add namespaces and stylesheet to document of the element.
|
145
|
+
addNamespacesAndStylesheet(el.ownerDocument);
|
146
|
+
|
147
|
+
// Remove fallback content. There is no way to hide text nodes so we
|
148
|
+
// just remove all childNodes. We could hide all elements and remove
|
149
|
+
// text nodes but who really cares about the fallback content.
|
150
|
+
el.innerHTML = '';
|
151
|
+
|
152
|
+
// do not use inline function because that will leak memory
|
153
|
+
el.attachEvent('onpropertychange', onPropertyChange);
|
154
|
+
el.attachEvent('onresize', onResize);
|
155
|
+
|
156
|
+
var attrs = el.attributes;
|
157
|
+
if (attrs.width && attrs.width.specified) {
|
158
|
+
// TODO: use runtimeStyle and coordsize
|
159
|
+
// el.getContext().setWidth_(attrs.width.nodeValue);
|
160
|
+
el.style.width = attrs.width.nodeValue + 'px';
|
161
|
+
} else {
|
162
|
+
el.width = el.clientWidth;
|
163
|
+
}
|
164
|
+
if (attrs.height && attrs.height.specified) {
|
165
|
+
// TODO: use runtimeStyle and coordsize
|
166
|
+
// el.getContext().setHeight_(attrs.height.nodeValue);
|
167
|
+
el.style.height = attrs.height.nodeValue + 'px';
|
168
|
+
} else {
|
169
|
+
el.height = el.clientHeight;
|
170
|
+
}
|
171
|
+
//el.getContext().setCoordsize_()
|
172
|
+
}
|
173
|
+
return el;
|
174
|
+
}
|
175
|
+
};
|
176
|
+
|
177
|
+
function onPropertyChange(e) {
|
178
|
+
var el = e.srcElement;
|
179
|
+
|
180
|
+
switch (e.propertyName) {
|
181
|
+
case 'width':
|
182
|
+
el.getContext().clearRect();
|
183
|
+
el.style.width = el.attributes.width.nodeValue + 'px';
|
184
|
+
// In IE8 this does not trigger onresize.
|
185
|
+
el.firstChild.style.width = el.clientWidth + 'px';
|
186
|
+
break;
|
187
|
+
case 'height':
|
188
|
+
el.getContext().clearRect();
|
189
|
+
el.style.height = el.attributes.height.nodeValue + 'px';
|
190
|
+
el.firstChild.style.height = el.clientHeight + 'px';
|
191
|
+
break;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
function onResize(e) {
|
196
|
+
var el = e.srcElement;
|
197
|
+
if (el.firstChild) {
|
198
|
+
el.firstChild.style.width = el.clientWidth + 'px';
|
199
|
+
el.firstChild.style.height = el.clientHeight + 'px';
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
G_vmlCanvasManager_.init();
|
204
|
+
|
205
|
+
// precompute "00" to "FF"
|
206
|
+
var decToHex = [];
|
207
|
+
for (var i = 0; i < 16; i++) {
|
208
|
+
for (var j = 0; j < 16; j++) {
|
209
|
+
decToHex[i * 16 + j] = i.toString(16) + j.toString(16);
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
function createMatrixIdentity() {
|
214
|
+
return [
|
215
|
+
[1, 0, 0],
|
216
|
+
[0, 1, 0],
|
217
|
+
[0, 0, 1]
|
218
|
+
];
|
219
|
+
}
|
220
|
+
|
221
|
+
function matrixMultiply(m1, m2) {
|
222
|
+
var result = createMatrixIdentity();
|
223
|
+
|
224
|
+
for (var x = 0; x < 3; x++) {
|
225
|
+
for (var y = 0; y < 3; y++) {
|
226
|
+
var sum = 0;
|
227
|
+
|
228
|
+
for (var z = 0; z < 3; z++) {
|
229
|
+
sum += m1[x][z] * m2[z][y];
|
230
|
+
}
|
231
|
+
|
232
|
+
result[x][y] = sum;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
return result;
|
236
|
+
}
|
237
|
+
|
238
|
+
function copyState(o1, o2) {
|
239
|
+
o2.fillStyle = o1.fillStyle;
|
240
|
+
o2.lineCap = o1.lineCap;
|
241
|
+
o2.lineJoin = o1.lineJoin;
|
242
|
+
o2.lineWidth = o1.lineWidth;
|
243
|
+
o2.miterLimit = o1.miterLimit;
|
244
|
+
o2.shadowBlur = o1.shadowBlur;
|
245
|
+
o2.shadowColor = o1.shadowColor;
|
246
|
+
o2.shadowOffsetX = o1.shadowOffsetX;
|
247
|
+
o2.shadowOffsetY = o1.shadowOffsetY;
|
248
|
+
o2.strokeStyle = o1.strokeStyle;
|
249
|
+
o2.globalAlpha = o1.globalAlpha;
|
250
|
+
o2.font = o1.font;
|
251
|
+
o2.textAlign = o1.textAlign;
|
252
|
+
o2.textBaseline = o1.textBaseline;
|
253
|
+
o2.arcScaleX_ = o1.arcScaleX_;
|
254
|
+
o2.arcScaleY_ = o1.arcScaleY_;
|
255
|
+
o2.lineScale_ = o1.lineScale_;
|
256
|
+
}
|
257
|
+
|
258
|
+
var colorData = {
|
259
|
+
aliceblue: '#F0F8FF',
|
260
|
+
antiquewhite: '#FAEBD7',
|
261
|
+
aquamarine: '#7FFFD4',
|
262
|
+
azure: '#F0FFFF',
|
263
|
+
beige: '#F5F5DC',
|
264
|
+
bisque: '#FFE4C4',
|
265
|
+
black: '#000000',
|
266
|
+
blanchedalmond: '#FFEBCD',
|
267
|
+
blueviolet: '#8A2BE2',
|
268
|
+
brown: '#A52A2A',
|
269
|
+
burlywood: '#DEB887',
|
270
|
+
cadetblue: '#5F9EA0',
|
271
|
+
chartreuse: '#7FFF00',
|
272
|
+
chocolate: '#D2691E',
|
273
|
+
coral: '#FF7F50',
|
274
|
+
cornflowerblue: '#6495ED',
|
275
|
+
cornsilk: '#FFF8DC',
|
276
|
+
crimson: '#DC143C',
|
277
|
+
cyan: '#00FFFF',
|
278
|
+
darkblue: '#00008B',
|
279
|
+
darkcyan: '#008B8B',
|
280
|
+
darkgoldenrod: '#B8860B',
|
281
|
+
darkgray: '#A9A9A9',
|
282
|
+
darkgreen: '#006400',
|
283
|
+
darkgrey: '#A9A9A9',
|
284
|
+
darkkhaki: '#BDB76B',
|
285
|
+
darkmagenta: '#8B008B',
|
286
|
+
darkolivegreen: '#556B2F',
|
287
|
+
darkorange: '#FF8C00',
|
288
|
+
darkorchid: '#9932CC',
|
289
|
+
darkred: '#8B0000',
|
290
|
+
darksalmon: '#E9967A',
|
291
|
+
darkseagreen: '#8FBC8F',
|
292
|
+
darkslateblue: '#483D8B',
|
293
|
+
darkslategray: '#2F4F4F',
|
294
|
+
darkslategrey: '#2F4F4F',
|
295
|
+
darkturquoise: '#00CED1',
|
296
|
+
darkviolet: '#9400D3',
|
297
|
+
deeppink: '#FF1493',
|
298
|
+
deepskyblue: '#00BFFF',
|
299
|
+
dimgray: '#696969',
|
300
|
+
dimgrey: '#696969',
|
301
|
+
dodgerblue: '#1E90FF',
|
302
|
+
firebrick: '#B22222',
|
303
|
+
floralwhite: '#FFFAF0',
|
304
|
+
forestgreen: '#228B22',
|
305
|
+
gainsboro: '#DCDCDC',
|
306
|
+
ghostwhite: '#F8F8FF',
|
307
|
+
gold: '#FFD700',
|
308
|
+
goldenrod: '#DAA520',
|
309
|
+
grey: '#808080',
|
310
|
+
greenyellow: '#ADFF2F',
|
311
|
+
honeydew: '#F0FFF0',
|
312
|
+
hotpink: '#FF69B4',
|
313
|
+
indianred: '#CD5C5C',
|
314
|
+
indigo: '#4B0082',
|
315
|
+
ivory: '#FFFFF0',
|
316
|
+
khaki: '#F0E68C',
|
317
|
+
lavender: '#E6E6FA',
|
318
|
+
lavenderblush: '#FFF0F5',
|
319
|
+
lawngreen: '#7CFC00',
|
320
|
+
lemonchiffon: '#FFFACD',
|
321
|
+
lightblue: '#ADD8E6',
|
322
|
+
lightcoral: '#F08080',
|
323
|
+
lightcyan: '#E0FFFF',
|
324
|
+
lightgoldenrodyellow: '#FAFAD2',
|
325
|
+
lightgreen: '#90EE90',
|
326
|
+
lightgrey: '#D3D3D3',
|
327
|
+
lightpink: '#FFB6C1',
|
328
|
+
lightsalmon: '#FFA07A',
|
329
|
+
lightseagreen: '#20B2AA',
|
330
|
+
lightskyblue: '#87CEFA',
|
331
|
+
lightslategray: '#778899',
|
332
|
+
lightslategrey: '#778899',
|
333
|
+
lightsteelblue: '#B0C4DE',
|
334
|
+
lightyellow: '#FFFFE0',
|
335
|
+
limegreen: '#32CD32',
|
336
|
+
linen: '#FAF0E6',
|
337
|
+
magenta: '#FF00FF',
|
338
|
+
mediumaquamarine: '#66CDAA',
|
339
|
+
mediumblue: '#0000CD',
|
340
|
+
mediumorchid: '#BA55D3',
|
341
|
+
mediumpurple: '#9370DB',
|
342
|
+
mediumseagreen: '#3CB371',
|
343
|
+
mediumslateblue: '#7B68EE',
|
344
|
+
mediumspringgreen: '#00FA9A',
|
345
|
+
mediumturquoise: '#48D1CC',
|
346
|
+
mediumvioletred: '#C71585',
|
347
|
+
midnightblue: '#191970',
|
348
|
+
mintcream: '#F5FFFA',
|
349
|
+
mistyrose: '#FFE4E1',
|
350
|
+
moccasin: '#FFE4B5',
|
351
|
+
navajowhite: '#FFDEAD',
|
352
|
+
oldlace: '#FDF5E6',
|
353
|
+
olivedrab: '#6B8E23',
|
354
|
+
orange: '#FFA500',
|
355
|
+
orangered: '#FF4500',
|
356
|
+
orchid: '#DA70D6',
|
357
|
+
palegoldenrod: '#EEE8AA',
|
358
|
+
palegreen: '#98FB98',
|
359
|
+
paleturquoise: '#AFEEEE',
|
360
|
+
palevioletred: '#DB7093',
|
361
|
+
papayawhip: '#FFEFD5',
|
362
|
+
peachpuff: '#FFDAB9',
|
363
|
+
peru: '#CD853F',
|
364
|
+
pink: '#FFC0CB',
|
365
|
+
plum: '#DDA0DD',
|
366
|
+
powderblue: '#B0E0E6',
|
367
|
+
rosybrown: '#BC8F8F',
|
368
|
+
royalblue: '#4169E1',
|
369
|
+
saddlebrown: '#8B4513',
|
370
|
+
salmon: '#FA8072',
|
371
|
+
sandybrown: '#F4A460',
|
372
|
+
seagreen: '#2E8B57',
|
373
|
+
seashell: '#FFF5EE',
|
374
|
+
sienna: '#A0522D',
|
375
|
+
skyblue: '#87CEEB',
|
376
|
+
slateblue: '#6A5ACD',
|
377
|
+
slategray: '#708090',
|
378
|
+
slategrey: '#708090',
|
379
|
+
snow: '#FFFAFA',
|
380
|
+
springgreen: '#00FF7F',
|
381
|
+
steelblue: '#4682B4',
|
382
|
+
tan: '#D2B48C',
|
383
|
+
thistle: '#D8BFD8',
|
384
|
+
tomato: '#FF6347',
|
385
|
+
turquoise: '#40E0D0',
|
386
|
+
violet: '#EE82EE',
|
387
|
+
wheat: '#F5DEB3',
|
388
|
+
whitesmoke: '#F5F5F5',
|
389
|
+
yellowgreen: '#9ACD32'
|
390
|
+
};
|
391
|
+
|
392
|
+
|
393
|
+
function getRgbHslContent(styleString) {
|
394
|
+
var start = styleString.indexOf('(', 3);
|
395
|
+
var end = styleString.indexOf(')', start + 1);
|
396
|
+
var parts = styleString.substring(start + 1, end).split(',');
|
397
|
+
// add alpha if needed
|
398
|
+
if (parts.length != 4 || styleString.charAt(3) != 'a') {
|
399
|
+
parts[3] = 1;
|
400
|
+
}
|
401
|
+
return parts;
|
402
|
+
}
|
403
|
+
|
404
|
+
function percent(s) {
|
405
|
+
return parseFloat(s) / 100;
|
406
|
+
}
|
407
|
+
|
408
|
+
function clamp(v, min, max) {
|
409
|
+
return Math.min(max, Math.max(min, v));
|
410
|
+
}
|
411
|
+
|
412
|
+
function hslToRgb(parts){
|
413
|
+
var r, g, b, h, s, l;
|
414
|
+
h = parseFloat(parts[0]) / 360 % 360;
|
415
|
+
if (h < 0)
|
416
|
+
h++;
|
417
|
+
s = clamp(percent(parts[1]), 0, 1);
|
418
|
+
l = clamp(percent(parts[2]), 0, 1);
|
419
|
+
if (s == 0) {
|
420
|
+
r = g = b = l; // achromatic
|
421
|
+
} else {
|
422
|
+
var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
423
|
+
var p = 2 * l - q;
|
424
|
+
r = hueToRgb(p, q, h + 1 / 3);
|
425
|
+
g = hueToRgb(p, q, h);
|
426
|
+
b = hueToRgb(p, q, h - 1 / 3);
|
427
|
+
}
|
428
|
+
|
429
|
+
return '#' + decToHex[Math.floor(r * 255)] +
|
430
|
+
decToHex[Math.floor(g * 255)] +
|
431
|
+
decToHex[Math.floor(b * 255)];
|
432
|
+
}
|
433
|
+
|
434
|
+
function hueToRgb(m1, m2, h) {
|
435
|
+
if (h < 0)
|
436
|
+
h++;
|
437
|
+
if (h > 1)
|
438
|
+
h--;
|
439
|
+
|
440
|
+
if (6 * h < 1)
|
441
|
+
return m1 + (m2 - m1) * 6 * h;
|
442
|
+
else if (2 * h < 1)
|
443
|
+
return m2;
|
444
|
+
else if (3 * h < 2)
|
445
|
+
return m1 + (m2 - m1) * (2 / 3 - h) * 6;
|
446
|
+
else
|
447
|
+
return m1;
|
448
|
+
}
|
449
|
+
|
450
|
+
var processStyleCache = {};
|
451
|
+
|
452
|
+
function processStyle(styleString) {
|
453
|
+
if (styleString in processStyleCache) {
|
454
|
+
return processStyleCache[styleString];
|
455
|
+
}
|
456
|
+
|
457
|
+
var str, alpha = 1;
|
458
|
+
|
459
|
+
styleString = String(styleString);
|
460
|
+
if (styleString.charAt(0) == '#') {
|
461
|
+
str = styleString;
|
462
|
+
} else if (/^rgb/.test(styleString)) {
|
463
|
+
var parts = getRgbHslContent(styleString);
|
464
|
+
var str = '#', n;
|
465
|
+
for (var i = 0; i < 3; i++) {
|
466
|
+
if (parts[i].indexOf('%') != -1) {
|
467
|
+
n = Math.floor(percent(parts[i]) * 255);
|
468
|
+
} else {
|
469
|
+
n = +parts[i];
|
470
|
+
}
|
471
|
+
str += decToHex[clamp(n, 0, 255)];
|
472
|
+
}
|
473
|
+
alpha = +parts[3];
|
474
|
+
} else if (/^hsl/.test(styleString)) {
|
475
|
+
var parts = getRgbHslContent(styleString);
|
476
|
+
str = hslToRgb(parts);
|
477
|
+
alpha = parts[3];
|
478
|
+
} else {
|
479
|
+
str = colorData[styleString] || styleString;
|
480
|
+
}
|
481
|
+
return processStyleCache[styleString] = {color: str, alpha: alpha};
|
482
|
+
}
|
483
|
+
|
484
|
+
var DEFAULT_STYLE = {
|
485
|
+
style: 'normal',
|
486
|
+
variant: 'normal',
|
487
|
+
weight: 'normal',
|
488
|
+
size: 10,
|
489
|
+
family: 'sans-serif'
|
490
|
+
};
|
491
|
+
|
492
|
+
// Internal text style cache
|
493
|
+
var fontStyleCache = {};
|
494
|
+
|
495
|
+
function processFontStyle(styleString) {
|
496
|
+
if (fontStyleCache[styleString]) {
|
497
|
+
return fontStyleCache[styleString];
|
498
|
+
}
|
499
|
+
|
500
|
+
var el = document.createElement('div');
|
501
|
+
var style = el.style;
|
502
|
+
try {
|
503
|
+
style.font = styleString;
|
504
|
+
} catch (ex) {
|
505
|
+
// Ignore failures to set to invalid font.
|
506
|
+
}
|
507
|
+
|
508
|
+
return fontStyleCache[styleString] = {
|
509
|
+
style: style.fontStyle || DEFAULT_STYLE.style,
|
510
|
+
variant: style.fontVariant || DEFAULT_STYLE.variant,
|
511
|
+
weight: style.fontWeight || DEFAULT_STYLE.weight,
|
512
|
+
size: style.fontSize || DEFAULT_STYLE.size,
|
513
|
+
family: style.fontFamily || DEFAULT_STYLE.family
|
514
|
+
};
|
515
|
+
}
|
516
|
+
|
517
|
+
function getComputedStyle(style, element) {
|
518
|
+
var computedStyle = {};
|
519
|
+
|
520
|
+
for (var p in style) {
|
521
|
+
computedStyle[p] = style[p];
|
522
|
+
}
|
523
|
+
|
524
|
+
// Compute the size
|
525
|
+
var canvasFontSize = parseFloat(element.currentStyle.fontSize),
|
526
|
+
fontSize = parseFloat(style.size);
|
527
|
+
|
528
|
+
if (typeof style.size == 'number') {
|
529
|
+
computedStyle.size = style.size;
|
530
|
+
} else if (style.size.indexOf('px') != -1) {
|
531
|
+
computedStyle.size = fontSize;
|
532
|
+
} else if (style.size.indexOf('em') != -1) {
|
533
|
+
computedStyle.size = canvasFontSize * fontSize;
|
534
|
+
} else if(style.size.indexOf('%') != -1) {
|
535
|
+
computedStyle.size = (canvasFontSize / 100) * fontSize;
|
536
|
+
} else if (style.size.indexOf('pt') != -1) {
|
537
|
+
computedStyle.size = fontSize / .75;
|
538
|
+
} else {
|
539
|
+
computedStyle.size = canvasFontSize;
|
540
|
+
}
|
541
|
+
|
542
|
+
// Different scaling between normal text and VML text. This was found using
|
543
|
+
// trial and error to get the same size as non VML text.
|
544
|
+
computedStyle.size *= 0.981;
|
545
|
+
|
546
|
+
return computedStyle;
|
547
|
+
}
|
548
|
+
|
549
|
+
function buildStyle(style) {
|
550
|
+
return style.style + ' ' + style.variant + ' ' + style.weight + ' ' +
|
551
|
+
style.size + 'px ' + style.family;
|
552
|
+
}
|
553
|
+
|
554
|
+
var lineCapMap = {
|
555
|
+
'butt': 'flat',
|
556
|
+
'round': 'round'
|
557
|
+
};
|
558
|
+
|
559
|
+
function processLineCap(lineCap) {
|
560
|
+
return lineCapMap[lineCap] || 'square';
|
561
|
+
}
|
562
|
+
|
563
|
+
/**
|
564
|
+
* This class implements CanvasRenderingContext2D interface as described by
|
565
|
+
* the WHATWG.
|
566
|
+
* @param {HTMLElement} canvasElement The element that the 2D context should
|
567
|
+
* be associated with
|
568
|
+
*/
|
569
|
+
function CanvasRenderingContext2D_(canvasElement) {
|
570
|
+
this.m_ = createMatrixIdentity();
|
571
|
+
|
572
|
+
this.mStack_ = [];
|
573
|
+
this.aStack_ = [];
|
574
|
+
this.currentPath_ = [];
|
575
|
+
|
576
|
+
// Canvas context properties
|
577
|
+
this.strokeStyle = '#000';
|
578
|
+
this.fillStyle = '#000';
|
579
|
+
|
580
|
+
this.lineWidth = 1;
|
581
|
+
this.lineJoin = 'miter';
|
582
|
+
this.lineCap = 'butt';
|
583
|
+
this.miterLimit = Z * 1;
|
584
|
+
this.globalAlpha = 1;
|
585
|
+
this.font = '10px sans-serif';
|
586
|
+
this.textAlign = 'left';
|
587
|
+
this.textBaseline = 'alphabetic';
|
588
|
+
this.canvas = canvasElement;
|
589
|
+
|
590
|
+
var cssText = 'width:' + canvasElement.clientWidth + 'px;height:' +
|
591
|
+
canvasElement.clientHeight + 'px;overflow:hidden;position:absolute';
|
592
|
+
var el = canvasElement.ownerDocument.createElement('div');
|
593
|
+
el.style.cssText = cssText;
|
594
|
+
canvasElement.appendChild(el);
|
595
|
+
|
596
|
+
var overlayEl = el.cloneNode(false);
|
597
|
+
// Use a non transparent background.
|
598
|
+
overlayEl.style.backgroundColor = 'red';
|
599
|
+
overlayEl.style.filter = 'alpha(opacity=0)';
|
600
|
+
canvasElement.appendChild(overlayEl);
|
601
|
+
|
602
|
+
this.element_ = el;
|
603
|
+
this.arcScaleX_ = 1;
|
604
|
+
this.arcScaleY_ = 1;
|
605
|
+
this.lineScale_ = 1;
|
606
|
+
}
|
607
|
+
|
608
|
+
var contextPrototype = CanvasRenderingContext2D_.prototype;
|
609
|
+
contextPrototype.clearRect = function() {
|
610
|
+
if (this.textMeasureEl_) {
|
611
|
+
this.textMeasureEl_.removeNode(true);
|
612
|
+
this.textMeasureEl_ = null;
|
613
|
+
}
|
614
|
+
this.element_.innerHTML = '';
|
615
|
+
};
|
616
|
+
|
617
|
+
contextPrototype.beginPath = function() {
|
618
|
+
// TODO: Branch current matrix so that save/restore has no effect
|
619
|
+
// as per safari docs.
|
620
|
+
this.currentPath_ = [];
|
621
|
+
};
|
622
|
+
|
623
|
+
contextPrototype.moveTo = function(aX, aY) {
|
624
|
+
var p = getCoords(this, aX, aY);
|
625
|
+
this.currentPath_.push({type: 'moveTo', x: p.x, y: p.y});
|
626
|
+
this.currentX_ = p.x;
|
627
|
+
this.currentY_ = p.y;
|
628
|
+
};
|
629
|
+
|
630
|
+
contextPrototype.lineTo = function(aX, aY) {
|
631
|
+
var p = getCoords(this, aX, aY);
|
632
|
+
this.currentPath_.push({type: 'lineTo', x: p.x, y: p.y});
|
633
|
+
|
634
|
+
this.currentX_ = p.x;
|
635
|
+
this.currentY_ = p.y;
|
636
|
+
};
|
637
|
+
|
638
|
+
contextPrototype.bezierCurveTo = function(aCP1x, aCP1y,
|
639
|
+
aCP2x, aCP2y,
|
640
|
+
aX, aY) {
|
641
|
+
var p = getCoords(this, aX, aY);
|
642
|
+
var cp1 = getCoords(this, aCP1x, aCP1y);
|
643
|
+
var cp2 = getCoords(this, aCP2x, aCP2y);
|
644
|
+
bezierCurveTo(this, cp1, cp2, p);
|
645
|
+
};
|
646
|
+
|
647
|
+
// Helper function that takes the already fixed cordinates.
|
648
|
+
function bezierCurveTo(self, cp1, cp2, p) {
|
649
|
+
self.currentPath_.push({
|
650
|
+
type: 'bezierCurveTo',
|
651
|
+
cp1x: cp1.x,
|
652
|
+
cp1y: cp1.y,
|
653
|
+
cp2x: cp2.x,
|
654
|
+
cp2y: cp2.y,
|
655
|
+
x: p.x,
|
656
|
+
y: p.y
|
657
|
+
});
|
658
|
+
self.currentX_ = p.x;
|
659
|
+
self.currentY_ = p.y;
|
660
|
+
}
|
661
|
+
|
662
|
+
contextPrototype.quadraticCurveTo = function(aCPx, aCPy, aX, aY) {
|
663
|
+
// the following is lifted almost directly from
|
664
|
+
// http://developer.mozilla.org/en/docs/Canvas_tutorial:Drawing_shapes
|
665
|
+
|
666
|
+
var cp = getCoords(this, aCPx, aCPy);
|
667
|
+
var p = getCoords(this, aX, aY);
|
668
|
+
|
669
|
+
var cp1 = {
|
670
|
+
x: this.currentX_ + 2.0 / 3.0 * (cp.x - this.currentX_),
|
671
|
+
y: this.currentY_ + 2.0 / 3.0 * (cp.y - this.currentY_)
|
672
|
+
};
|
673
|
+
var cp2 = {
|
674
|
+
x: cp1.x + (p.x - this.currentX_) / 3.0,
|
675
|
+
y: cp1.y + (p.y - this.currentY_) / 3.0
|
676
|
+
};
|
677
|
+
|
678
|
+
bezierCurveTo(this, cp1, cp2, p);
|
679
|
+
};
|
680
|
+
|
681
|
+
contextPrototype.arc = function(aX, aY, aRadius,
|
682
|
+
aStartAngle, aEndAngle, aClockwise) {
|
683
|
+
aRadius *= Z;
|
684
|
+
var arcType = aClockwise ? 'at' : 'wa';
|
685
|
+
|
686
|
+
var xStart = aX + mc(aStartAngle) * aRadius - Z2;
|
687
|
+
var yStart = aY + ms(aStartAngle) * aRadius - Z2;
|
688
|
+
|
689
|
+
var xEnd = aX + mc(aEndAngle) * aRadius - Z2;
|
690
|
+
var yEnd = aY + ms(aEndAngle) * aRadius - Z2;
|
691
|
+
|
692
|
+
// IE won't render arches drawn counter clockwise if xStart == xEnd.
|
693
|
+
if (xStart == xEnd && !aClockwise) {
|
694
|
+
xStart += 0.125; // Offset xStart by 1/80 of a pixel. Use something
|
695
|
+
// that can be represented in binary
|
696
|
+
}
|
697
|
+
|
698
|
+
var p = getCoords(this, aX, aY);
|
699
|
+
var pStart = getCoords(this, xStart, yStart);
|
700
|
+
var pEnd = getCoords(this, xEnd, yEnd);
|
701
|
+
|
702
|
+
this.currentPath_.push({type: arcType,
|
703
|
+
x: p.x,
|
704
|
+
y: p.y,
|
705
|
+
radius: aRadius,
|
706
|
+
xStart: pStart.x,
|
707
|
+
yStart: pStart.y,
|
708
|
+
xEnd: pEnd.x,
|
709
|
+
yEnd: pEnd.y});
|
710
|
+
|
711
|
+
};
|
712
|
+
|
713
|
+
contextPrototype.rect = function(aX, aY, aWidth, aHeight) {
|
714
|
+
this.moveTo(aX, aY);
|
715
|
+
this.lineTo(aX + aWidth, aY);
|
716
|
+
this.lineTo(aX + aWidth, aY + aHeight);
|
717
|
+
this.lineTo(aX, aY + aHeight);
|
718
|
+
this.closePath();
|
719
|
+
};
|
720
|
+
|
721
|
+
contextPrototype.strokeRect = function(aX, aY, aWidth, aHeight) {
|
722
|
+
var oldPath = this.currentPath_;
|
723
|
+
this.beginPath();
|
724
|
+
|
725
|
+
this.moveTo(aX, aY);
|
726
|
+
this.lineTo(aX + aWidth, aY);
|
727
|
+
this.lineTo(aX + aWidth, aY + aHeight);
|
728
|
+
this.lineTo(aX, aY + aHeight);
|
729
|
+
this.closePath();
|
730
|
+
this.stroke();
|
731
|
+
|
732
|
+
this.currentPath_ = oldPath;
|
733
|
+
};
|
734
|
+
|
735
|
+
contextPrototype.fillRect = function(aX, aY, aWidth, aHeight) {
|
736
|
+
var oldPath = this.currentPath_;
|
737
|
+
this.beginPath();
|
738
|
+
|
739
|
+
this.moveTo(aX, aY);
|
740
|
+
this.lineTo(aX + aWidth, aY);
|
741
|
+
this.lineTo(aX + aWidth, aY + aHeight);
|
742
|
+
this.lineTo(aX, aY + aHeight);
|
743
|
+
this.closePath();
|
744
|
+
this.fill();
|
745
|
+
|
746
|
+
this.currentPath_ = oldPath;
|
747
|
+
};
|
748
|
+
|
749
|
+
contextPrototype.createLinearGradient = function(aX0, aY0, aX1, aY1) {
|
750
|
+
var gradient = new CanvasGradient_('gradient');
|
751
|
+
gradient.x0_ = aX0;
|
752
|
+
gradient.y0_ = aY0;
|
753
|
+
gradient.x1_ = aX1;
|
754
|
+
gradient.y1_ = aY1;
|
755
|
+
return gradient;
|
756
|
+
};
|
757
|
+
|
758
|
+
contextPrototype.createRadialGradient = function(aX0, aY0, aR0,
|
759
|
+
aX1, aY1, aR1) {
|
760
|
+
var gradient = new CanvasGradient_('gradientradial');
|
761
|
+
gradient.x0_ = aX0;
|
762
|
+
gradient.y0_ = aY0;
|
763
|
+
gradient.r0_ = aR0;
|
764
|
+
gradient.x1_ = aX1;
|
765
|
+
gradient.y1_ = aY1;
|
766
|
+
gradient.r1_ = aR1;
|
767
|
+
return gradient;
|
768
|
+
};
|
769
|
+
|
770
|
+
contextPrototype.drawImage = function(image, var_args) {
|
771
|
+
var dx, dy, dw, dh, sx, sy, sw, sh;
|
772
|
+
|
773
|
+
// to find the original width we overide the width and height
|
774
|
+
var oldRuntimeWidth = image.runtimeStyle.width;
|
775
|
+
var oldRuntimeHeight = image.runtimeStyle.height;
|
776
|
+
image.runtimeStyle.width = 'auto';
|
777
|
+
image.runtimeStyle.height = 'auto';
|
778
|
+
|
779
|
+
// get the original size
|
780
|
+
var w = image.width;
|
781
|
+
var h = image.height;
|
782
|
+
|
783
|
+
// and remove overides
|
784
|
+
image.runtimeStyle.width = oldRuntimeWidth;
|
785
|
+
image.runtimeStyle.height = oldRuntimeHeight;
|
786
|
+
|
787
|
+
if (arguments.length == 3) {
|
788
|
+
dx = arguments[1];
|
789
|
+
dy = arguments[2];
|
790
|
+
sx = sy = 0;
|
791
|
+
sw = dw = w;
|
792
|
+
sh = dh = h;
|
793
|
+
} else if (arguments.length == 5) {
|
794
|
+
dx = arguments[1];
|
795
|
+
dy = arguments[2];
|
796
|
+
dw = arguments[3];
|
797
|
+
dh = arguments[4];
|
798
|
+
sx = sy = 0;
|
799
|
+
sw = w;
|
800
|
+
sh = h;
|
801
|
+
} else if (arguments.length == 9) {
|
802
|
+
sx = arguments[1];
|
803
|
+
sy = arguments[2];
|
804
|
+
sw = arguments[3];
|
805
|
+
sh = arguments[4];
|
806
|
+
dx = arguments[5];
|
807
|
+
dy = arguments[6];
|
808
|
+
dw = arguments[7];
|
809
|
+
dh = arguments[8];
|
810
|
+
} else {
|
811
|
+
throw Error('Invalid number of arguments');
|
812
|
+
}
|
813
|
+
|
814
|
+
var d = getCoords(this, dx, dy);
|
815
|
+
|
816
|
+
var w2 = sw / 2;
|
817
|
+
var h2 = sh / 2;
|
818
|
+
|
819
|
+
var vmlStr = [];
|
820
|
+
|
821
|
+
var W = 10;
|
822
|
+
var H = 10;
|
823
|
+
|
824
|
+
// For some reason that I've now forgotten, using divs didn't work
|
825
|
+
vmlStr.push(' <g_vml_:group',
|
826
|
+
' coordsize="', Z * W, ',', Z * H, '"',
|
827
|
+
' coordorigin="0,0"' ,
|
828
|
+
' style="width:', W, 'px;height:', H, 'px;position:absolute;');
|
829
|
+
|
830
|
+
// If filters are necessary (rotation exists), create them
|
831
|
+
// filters are bog-slow, so only create them if abbsolutely necessary
|
832
|
+
// The following check doesn't account for skews (which don't exist
|
833
|
+
// in the canvas spec (yet) anyway.
|
834
|
+
|
835
|
+
if (this.m_[0][0] != 1 || this.m_[0][1] ||
|
836
|
+
this.m_[1][1] != 1 || this.m_[1][0]) {
|
837
|
+
var filter = [];
|
838
|
+
|
839
|
+
// Note the 12/21 reversal
|
840
|
+
filter.push('M11=', this.m_[0][0], ',',
|
841
|
+
'M12=', this.m_[1][0], ',',
|
842
|
+
'M21=', this.m_[0][1], ',',
|
843
|
+
'M22=', this.m_[1][1], ',',
|
844
|
+
'Dx=', mr(d.x / Z), ',',
|
845
|
+
'Dy=', mr(d.y / Z), '');
|
846
|
+
|
847
|
+
// Bounding box calculation (need to minimize displayed area so that
|
848
|
+
// filters don't waste time on unused pixels.
|
849
|
+
var max = d;
|
850
|
+
var c2 = getCoords(this, dx + dw, dy);
|
851
|
+
var c3 = getCoords(this, dx, dy + dh);
|
852
|
+
var c4 = getCoords(this, dx + dw, dy + dh);
|
853
|
+
|
854
|
+
max.x = m.max(max.x, c2.x, c3.x, c4.x);
|
855
|
+
max.y = m.max(max.y, c2.y, c3.y, c4.y);
|
856
|
+
|
857
|
+
vmlStr.push('padding:0 ', mr(max.x / Z), 'px ', mr(max.y / Z),
|
858
|
+
'px 0;filter:progid:DXImageTransform.Microsoft.Matrix(',
|
859
|
+
filter.join(''), ", sizingmethod='clip');");
|
860
|
+
|
861
|
+
} else {
|
862
|
+
vmlStr.push('top:', mr(d.y / Z), 'px;left:', mr(d.x / Z), 'px;');
|
863
|
+
}
|
864
|
+
|
865
|
+
vmlStr.push(' ">' ,
|
866
|
+
'<g_vml_:image src="', image.src, '"',
|
867
|
+
' style="width:', Z * dw, 'px;',
|
868
|
+
' height:', Z * dh, 'px"',
|
869
|
+
' cropleft="', sx / w, '"',
|
870
|
+
' croptop="', sy / h, '"',
|
871
|
+
' cropright="', (w - sx - sw) / w, '"',
|
872
|
+
' cropbottom="', (h - sy - sh) / h, '"',
|
873
|
+
' />',
|
874
|
+
'</g_vml_:group>');
|
875
|
+
|
876
|
+
this.element_.insertAdjacentHTML('BeforeEnd', vmlStr.join(''));
|
877
|
+
};
|
878
|
+
|
879
|
+
contextPrototype.stroke = function(aFill) {
|
880
|
+
var lineStr = [];
|
881
|
+
var lineOpen = false;
|
882
|
+
|
883
|
+
var W = 10;
|
884
|
+
var H = 10;
|
885
|
+
|
886
|
+
lineStr.push('<g_vml_:shape',
|
887
|
+
' filled="', !!aFill, '"',
|
888
|
+
' style="position:absolute;width:', W, 'px;height:', H, 'px;"',
|
889
|
+
' coordorigin="0,0"',
|
890
|
+
' coordsize="', Z * W, ',', Z * H, '"',
|
891
|
+
' stroked="', !aFill, '"',
|
892
|
+
' path="');
|
893
|
+
|
894
|
+
var newSeq = false;
|
895
|
+
var min = {x: null, y: null};
|
896
|
+
var max = {x: null, y: null};
|
897
|
+
|
898
|
+
for (var i = 0; i < this.currentPath_.length; i++) {
|
899
|
+
var p = this.currentPath_[i];
|
900
|
+
var c;
|
901
|
+
|
902
|
+
switch (p.type) {
|
903
|
+
case 'moveTo':
|
904
|
+
c = p;
|
905
|
+
lineStr.push(' m ', mr(p.x), ',', mr(p.y));
|
906
|
+
break;
|
907
|
+
case 'lineTo':
|
908
|
+
lineStr.push(' l ', mr(p.x), ',', mr(p.y));
|
909
|
+
break;
|
910
|
+
case 'close':
|
911
|
+
lineStr.push(' x ');
|
912
|
+
p = null;
|
913
|
+
break;
|
914
|
+
case 'bezierCurveTo':
|
915
|
+
lineStr.push(' c ',
|
916
|
+
mr(p.cp1x), ',', mr(p.cp1y), ',',
|
917
|
+
mr(p.cp2x), ',', mr(p.cp2y), ',',
|
918
|
+
mr(p.x), ',', mr(p.y));
|
919
|
+
break;
|
920
|
+
case 'at':
|
921
|
+
case 'wa':
|
922
|
+
lineStr.push(' ', p.type, ' ',
|
923
|
+
mr(p.x - this.arcScaleX_ * p.radius), ',',
|
924
|
+
mr(p.y - this.arcScaleY_ * p.radius), ' ',
|
925
|
+
mr(p.x + this.arcScaleX_ * p.radius), ',',
|
926
|
+
mr(p.y + this.arcScaleY_ * p.radius), ' ',
|
927
|
+
mr(p.xStart), ',', mr(p.yStart), ' ',
|
928
|
+
mr(p.xEnd), ',', mr(p.yEnd));
|
929
|
+
break;
|
930
|
+
}
|
931
|
+
|
932
|
+
|
933
|
+
// TODO: Following is broken for curves due to
|
934
|
+
// move to proper paths.
|
935
|
+
|
936
|
+
// Figure out dimensions so we can do gradient fills
|
937
|
+
// properly
|
938
|
+
if (p) {
|
939
|
+
if (min.x == null || p.x < min.x) {
|
940
|
+
min.x = p.x;
|
941
|
+
}
|
942
|
+
if (max.x == null || p.x > max.x) {
|
943
|
+
max.x = p.x;
|
944
|
+
}
|
945
|
+
if (min.y == null || p.y < min.y) {
|
946
|
+
min.y = p.y;
|
947
|
+
}
|
948
|
+
if (max.y == null || p.y > max.y) {
|
949
|
+
max.y = p.y;
|
950
|
+
}
|
951
|
+
}
|
952
|
+
}
|
953
|
+
lineStr.push(' ">');
|
954
|
+
|
955
|
+
if (!aFill) {
|
956
|
+
appendStroke(this, lineStr);
|
957
|
+
} else {
|
958
|
+
appendFill(this, lineStr, min, max);
|
959
|
+
}
|
960
|
+
|
961
|
+
lineStr.push('</g_vml_:shape>');
|
962
|
+
|
963
|
+
this.element_.insertAdjacentHTML('beforeEnd', lineStr.join(''));
|
964
|
+
};
|
965
|
+
|
966
|
+
function appendStroke(ctx, lineStr) {
|
967
|
+
var a = processStyle(ctx.strokeStyle);
|
968
|
+
var color = a.color;
|
969
|
+
var opacity = a.alpha * ctx.globalAlpha;
|
970
|
+
var lineWidth = ctx.lineScale_ * ctx.lineWidth;
|
971
|
+
|
972
|
+
// VML cannot correctly render a line if the width is less than 1px.
|
973
|
+
// In that case, we dilute the color to make the line look thinner.
|
974
|
+
if (lineWidth < 1) {
|
975
|
+
opacity *= lineWidth;
|
976
|
+
}
|
977
|
+
|
978
|
+
lineStr.push(
|
979
|
+
'<g_vml_:stroke',
|
980
|
+
' opacity="', opacity, '"',
|
981
|
+
' joinstyle="', ctx.lineJoin, '"',
|
982
|
+
' miterlimit="', ctx.miterLimit, '"',
|
983
|
+
' endcap="', processLineCap(ctx.lineCap), '"',
|
984
|
+
' weight="', lineWidth, 'px"',
|
985
|
+
' color="', color, '" />'
|
986
|
+
);
|
987
|
+
}
|
988
|
+
|
989
|
+
function appendFill(ctx, lineStr, min, max) {
|
990
|
+
var fillStyle = ctx.fillStyle;
|
991
|
+
var arcScaleX = ctx.arcScaleX_;
|
992
|
+
var arcScaleY = ctx.arcScaleY_;
|
993
|
+
var width = max.x - min.x;
|
994
|
+
var height = max.y - min.y;
|
995
|
+
if (fillStyle instanceof CanvasGradient_) {
|
996
|
+
// TODO: Gradients transformed with the transformation matrix.
|
997
|
+
var angle = 0;
|
998
|
+
var focus = {x: 0, y: 0};
|
999
|
+
|
1000
|
+
// additional offset
|
1001
|
+
var shift = 0;
|
1002
|
+
// scale factor for offset
|
1003
|
+
var expansion = 1;
|
1004
|
+
|
1005
|
+
if (fillStyle.type_ == 'gradient') {
|
1006
|
+
var x0 = fillStyle.x0_ / arcScaleX;
|
1007
|
+
var y0 = fillStyle.y0_ / arcScaleY;
|
1008
|
+
var x1 = fillStyle.x1_ / arcScaleX;
|
1009
|
+
var y1 = fillStyle.y1_ / arcScaleY;
|
1010
|
+
var p0 = getCoords(ctx, x0, y0);
|
1011
|
+
var p1 = getCoords(ctx, x1, y1);
|
1012
|
+
var dx = p1.x - p0.x;
|
1013
|
+
var dy = p1.y - p0.y;
|
1014
|
+
angle = Math.atan2(dx, dy) * 180 / Math.PI;
|
1015
|
+
|
1016
|
+
// The angle should be a non-negative number.
|
1017
|
+
if (angle < 0) {
|
1018
|
+
angle += 360;
|
1019
|
+
}
|
1020
|
+
|
1021
|
+
// Very small angles produce an unexpected result because they are
|
1022
|
+
// converted to a scientific notation string.
|
1023
|
+
if (angle < 1e-6) {
|
1024
|
+
angle = 0;
|
1025
|
+
}
|
1026
|
+
} else {
|
1027
|
+
var p0 = getCoords(ctx, fillStyle.x0_, fillStyle.y0_);
|
1028
|
+
focus = {
|
1029
|
+
x: (p0.x - min.x) / width,
|
1030
|
+
y: (p0.y - min.y) / height
|
1031
|
+
};
|
1032
|
+
|
1033
|
+
width /= arcScaleX * Z;
|
1034
|
+
height /= arcScaleY * Z;
|
1035
|
+
var dimension = m.max(width, height);
|
1036
|
+
shift = 2 * fillStyle.r0_ / dimension;
|
1037
|
+
expansion = 2 * fillStyle.r1_ / dimension - shift;
|
1038
|
+
}
|
1039
|
+
|
1040
|
+
// We need to sort the color stops in ascending order by offset,
|
1041
|
+
// otherwise IE won't interpret it correctly.
|
1042
|
+
var stops = fillStyle.colors_;
|
1043
|
+
stops.sort(function(cs1, cs2) {
|
1044
|
+
return cs1.offset - cs2.offset;
|
1045
|
+
});
|
1046
|
+
|
1047
|
+
var length = stops.length;
|
1048
|
+
var color1 = stops[0].color;
|
1049
|
+
var color2 = stops[length - 1].color;
|
1050
|
+
var opacity1 = stops[0].alpha * ctx.globalAlpha;
|
1051
|
+
var opacity2 = stops[length - 1].alpha * ctx.globalAlpha;
|
1052
|
+
|
1053
|
+
var colors = [];
|
1054
|
+
for (var i = 0; i < length; i++) {
|
1055
|
+
var stop = stops[i];
|
1056
|
+
colors.push(stop.offset * expansion + shift + ' ' + stop.color);
|
1057
|
+
}
|
1058
|
+
|
1059
|
+
// When colors attribute is used, the meanings of opacity and o:opacity2
|
1060
|
+
// are reversed.
|
1061
|
+
lineStr.push('<g_vml_:fill type="', fillStyle.type_, '"',
|
1062
|
+
' method="none" focus="100%"',
|
1063
|
+
' color="', color1, '"',
|
1064
|
+
' color2="', color2, '"',
|
1065
|
+
' colors="', colors.join(','), '"',
|
1066
|
+
' opacity="', opacity2, '"',
|
1067
|
+
' g_o_:opacity2="', opacity1, '"',
|
1068
|
+
' angle="', angle, '"',
|
1069
|
+
' focusposition="', focus.x, ',', focus.y, '" />');
|
1070
|
+
} else if (fillStyle instanceof CanvasPattern_) {
|
1071
|
+
if (width && height) {
|
1072
|
+
var deltaLeft = -min.x;
|
1073
|
+
var deltaTop = -min.y;
|
1074
|
+
lineStr.push('<g_vml_:fill',
|
1075
|
+
' position="',
|
1076
|
+
deltaLeft / width * arcScaleX * arcScaleX, ',',
|
1077
|
+
deltaTop / height * arcScaleY * arcScaleY, '"',
|
1078
|
+
' type="tile"',
|
1079
|
+
// TODO: Figure out the correct size to fit the scale.
|
1080
|
+
//' size="', w, 'px ', h, 'px"',
|
1081
|
+
' src="', fillStyle.src_, '" />');
|
1082
|
+
}
|
1083
|
+
} else {
|
1084
|
+
var a = processStyle(ctx.fillStyle);
|
1085
|
+
var color = a.color;
|
1086
|
+
var opacity = a.alpha * ctx.globalAlpha;
|
1087
|
+
lineStr.push('<g_vml_:fill color="', color, '" opacity="', opacity,
|
1088
|
+
'" />');
|
1089
|
+
}
|
1090
|
+
}
|
1091
|
+
|
1092
|
+
contextPrototype.fill = function() {
|
1093
|
+
this.stroke(true);
|
1094
|
+
};
|
1095
|
+
|
1096
|
+
contextPrototype.closePath = function() {
|
1097
|
+
this.currentPath_.push({type: 'close'});
|
1098
|
+
};
|
1099
|
+
|
1100
|
+
function getCoords(ctx, aX, aY) {
|
1101
|
+
var m = ctx.m_;
|
1102
|
+
return {
|
1103
|
+
x: Z * (aX * m[0][0] + aY * m[1][0] + m[2][0]) - Z2,
|
1104
|
+
y: Z * (aX * m[0][1] + aY * m[1][1] + m[2][1]) - Z2
|
1105
|
+
};
|
1106
|
+
};
|
1107
|
+
|
1108
|
+
contextPrototype.save = function() {
|
1109
|
+
var o = {};
|
1110
|
+
copyState(this, o);
|
1111
|
+
this.aStack_.push(o);
|
1112
|
+
this.mStack_.push(this.m_);
|
1113
|
+
this.m_ = matrixMultiply(createMatrixIdentity(), this.m_);
|
1114
|
+
};
|
1115
|
+
|
1116
|
+
contextPrototype.restore = function() {
|
1117
|
+
if (this.aStack_.length) {
|
1118
|
+
copyState(this.aStack_.pop(), this);
|
1119
|
+
this.m_ = this.mStack_.pop();
|
1120
|
+
}
|
1121
|
+
};
|
1122
|
+
|
1123
|
+
function matrixIsFinite(m) {
|
1124
|
+
return isFinite(m[0][0]) && isFinite(m[0][1]) &&
|
1125
|
+
isFinite(m[1][0]) && isFinite(m[1][1]) &&
|
1126
|
+
isFinite(m[2][0]) && isFinite(m[2][1]);
|
1127
|
+
}
|
1128
|
+
|
1129
|
+
function setM(ctx, m, updateLineScale) {
|
1130
|
+
if (!matrixIsFinite(m)) {
|
1131
|
+
return;
|
1132
|
+
}
|
1133
|
+
ctx.m_ = m;
|
1134
|
+
|
1135
|
+
if (updateLineScale) {
|
1136
|
+
// Get the line scale.
|
1137
|
+
// Determinant of this.m_ means how much the area is enlarged by the
|
1138
|
+
// transformation. So its square root can be used as a scale factor
|
1139
|
+
// for width.
|
1140
|
+
var det = m[0][0] * m[1][1] - m[0][1] * m[1][0];
|
1141
|
+
ctx.lineScale_ = sqrt(abs(det));
|
1142
|
+
}
|
1143
|
+
}
|
1144
|
+
|
1145
|
+
contextPrototype.translate = function(aX, aY) {
|
1146
|
+
var m1 = [
|
1147
|
+
[1, 0, 0],
|
1148
|
+
[0, 1, 0],
|
1149
|
+
[aX, aY, 1]
|
1150
|
+
];
|
1151
|
+
|
1152
|
+
setM(this, matrixMultiply(m1, this.m_), false);
|
1153
|
+
};
|
1154
|
+
|
1155
|
+
contextPrototype.rotate = function(aRot) {
|
1156
|
+
var c = mc(aRot);
|
1157
|
+
var s = ms(aRot);
|
1158
|
+
|
1159
|
+
var m1 = [
|
1160
|
+
[c, s, 0],
|
1161
|
+
[-s, c, 0],
|
1162
|
+
[0, 0, 1]
|
1163
|
+
];
|
1164
|
+
|
1165
|
+
setM(this, matrixMultiply(m1, this.m_), false);
|
1166
|
+
};
|
1167
|
+
|
1168
|
+
contextPrototype.scale = function(aX, aY) {
|
1169
|
+
this.arcScaleX_ *= aX;
|
1170
|
+
this.arcScaleY_ *= aY;
|
1171
|
+
var m1 = [
|
1172
|
+
[aX, 0, 0],
|
1173
|
+
[0, aY, 0],
|
1174
|
+
[0, 0, 1]
|
1175
|
+
];
|
1176
|
+
|
1177
|
+
setM(this, matrixMultiply(m1, this.m_), true);
|
1178
|
+
};
|
1179
|
+
|
1180
|
+
contextPrototype.transform = function(m11, m12, m21, m22, dx, dy) {
|
1181
|
+
var m1 = [
|
1182
|
+
[m11, m12, 0],
|
1183
|
+
[m21, m22, 0],
|
1184
|
+
[dx, dy, 1]
|
1185
|
+
];
|
1186
|
+
|
1187
|
+
setM(this, matrixMultiply(m1, this.m_), true);
|
1188
|
+
};
|
1189
|
+
|
1190
|
+
contextPrototype.setTransform = function(m11, m12, m21, m22, dx, dy) {
|
1191
|
+
var m = [
|
1192
|
+
[m11, m12, 0],
|
1193
|
+
[m21, m22, 0],
|
1194
|
+
[dx, dy, 1]
|
1195
|
+
];
|
1196
|
+
|
1197
|
+
setM(this, m, true);
|
1198
|
+
};
|
1199
|
+
|
1200
|
+
/**
|
1201
|
+
* The text drawing function.
|
1202
|
+
* The maxWidth argument isn't taken in account, since no browser supports
|
1203
|
+
* it yet.
|
1204
|
+
*/
|
1205
|
+
contextPrototype.drawText_ = function(text, x, y, maxWidth, stroke) {
|
1206
|
+
var m = this.m_,
|
1207
|
+
delta = 1000,
|
1208
|
+
left = 0,
|
1209
|
+
right = delta,
|
1210
|
+
offset = {x: 0, y: 0},
|
1211
|
+
lineStr = [];
|
1212
|
+
|
1213
|
+
var fontStyle = getComputedStyle(processFontStyle(this.font),
|
1214
|
+
this.element_);
|
1215
|
+
|
1216
|
+
var fontStyleString = buildStyle(fontStyle);
|
1217
|
+
|
1218
|
+
var elementStyle = this.element_.currentStyle;
|
1219
|
+
var textAlign = this.textAlign.toLowerCase();
|
1220
|
+
switch (textAlign) {
|
1221
|
+
case 'left':
|
1222
|
+
case 'center':
|
1223
|
+
case 'right':
|
1224
|
+
break;
|
1225
|
+
case 'end':
|
1226
|
+
textAlign = elementStyle.direction == 'ltr' ? 'right' : 'left';
|
1227
|
+
break;
|
1228
|
+
case 'start':
|
1229
|
+
textAlign = elementStyle.direction == 'rtl' ? 'right' : 'left';
|
1230
|
+
break;
|
1231
|
+
default:
|
1232
|
+
textAlign = 'left';
|
1233
|
+
}
|
1234
|
+
|
1235
|
+
// 1.75 is an arbitrary number, as there is no info about the text baseline
|
1236
|
+
switch (this.textBaseline) {
|
1237
|
+
case 'hanging':
|
1238
|
+
case 'top':
|
1239
|
+
offset.y = fontStyle.size / 1.75;
|
1240
|
+
break;
|
1241
|
+
case 'middle':
|
1242
|
+
break;
|
1243
|
+
default:
|
1244
|
+
case null:
|
1245
|
+
case 'alphabetic':
|
1246
|
+
case 'ideographic':
|
1247
|
+
case 'bottom':
|
1248
|
+
offset.y = -fontStyle.size / 2.25;
|
1249
|
+
break;
|
1250
|
+
}
|
1251
|
+
|
1252
|
+
switch(textAlign) {
|
1253
|
+
case 'right':
|
1254
|
+
left = delta;
|
1255
|
+
right = 0.05;
|
1256
|
+
break;
|
1257
|
+
case 'center':
|
1258
|
+
left = right = delta / 2;
|
1259
|
+
break;
|
1260
|
+
}
|
1261
|
+
|
1262
|
+
var d = getCoords(this, x + offset.x, y + offset.y);
|
1263
|
+
|
1264
|
+
lineStr.push('<g_vml_:line from="', -left ,' 0" to="', right ,' 0.05" ',
|
1265
|
+
' coordsize="100 100" coordorigin="0 0"',
|
1266
|
+
' filled="', !stroke, '" stroked="', !!stroke,
|
1267
|
+
'" style="position:absolute;width:1px;height:1px;">');
|
1268
|
+
|
1269
|
+
if (stroke) {
|
1270
|
+
appendStroke(this, lineStr);
|
1271
|
+
} else {
|
1272
|
+
// TODO: Fix the min and max params.
|
1273
|
+
appendFill(this, lineStr, {x: -left, y: 0},
|
1274
|
+
{x: right, y: fontStyle.size});
|
1275
|
+
}
|
1276
|
+
|
1277
|
+
var skewM = m[0][0].toFixed(3) + ',' + m[1][0].toFixed(3) + ',' +
|
1278
|
+
m[0][1].toFixed(3) + ',' + m[1][1].toFixed(3) + ',0,0';
|
1279
|
+
|
1280
|
+
var skewOffset = mr(d.x / Z) + ',' + mr(d.y / Z);
|
1281
|
+
|
1282
|
+
lineStr.push('<g_vml_:skew on="t" matrix="', skewM ,'" ',
|
1283
|
+
' offset="', skewOffset, '" origin="', left ,' 0" />',
|
1284
|
+
'<g_vml_:path textpathok="true" />',
|
1285
|
+
'<g_vml_:textpath on="true" string="',
|
1286
|
+
encodeHtmlAttribute(text),
|
1287
|
+
'" style="v-text-align:', textAlign,
|
1288
|
+
';font:', encodeHtmlAttribute(fontStyleString),
|
1289
|
+
'" /></g_vml_:line>');
|
1290
|
+
|
1291
|
+
this.element_.insertAdjacentHTML('beforeEnd', lineStr.join(''));
|
1292
|
+
};
|
1293
|
+
|
1294
|
+
contextPrototype.fillText = function(text, x, y, maxWidth) {
|
1295
|
+
this.drawText_(text, x, y, maxWidth, false);
|
1296
|
+
};
|
1297
|
+
|
1298
|
+
contextPrototype.strokeText = function(text, x, y, maxWidth) {
|
1299
|
+
this.drawText_(text, x, y, maxWidth, true);
|
1300
|
+
};
|
1301
|
+
|
1302
|
+
contextPrototype.measureText = function(text) {
|
1303
|
+
if (!this.textMeasureEl_) {
|
1304
|
+
var s = '<span style="position:absolute;' +
|
1305
|
+
'top:-20000px;left:0;padding:0;margin:0;border:none;' +
|
1306
|
+
'white-space:pre;"></span>';
|
1307
|
+
this.element_.insertAdjacentHTML('beforeEnd', s);
|
1308
|
+
this.textMeasureEl_ = this.element_.lastChild;
|
1309
|
+
}
|
1310
|
+
var doc = this.element_.ownerDocument;
|
1311
|
+
this.textMeasureEl_.innerHTML = '';
|
1312
|
+
this.textMeasureEl_.style.font = this.font;
|
1313
|
+
// Don't use innerHTML or innerText because they allow markup/whitespace.
|
1314
|
+
this.textMeasureEl_.appendChild(doc.createTextNode(text));
|
1315
|
+
return {width: this.textMeasureEl_.offsetWidth};
|
1316
|
+
};
|
1317
|
+
|
1318
|
+
/******** STUBS ********/
|
1319
|
+
contextPrototype.clip = function() {
|
1320
|
+
// TODO: Implement
|
1321
|
+
};
|
1322
|
+
|
1323
|
+
contextPrototype.arcTo = function() {
|
1324
|
+
// TODO: Implement
|
1325
|
+
};
|
1326
|
+
|
1327
|
+
contextPrototype.createPattern = function(image, repetition) {
|
1328
|
+
return new CanvasPattern_(image, repetition);
|
1329
|
+
};
|
1330
|
+
|
1331
|
+
// Gradient / Pattern Stubs
|
1332
|
+
function CanvasGradient_(aType) {
|
1333
|
+
this.type_ = aType;
|
1334
|
+
this.x0_ = 0;
|
1335
|
+
this.y0_ = 0;
|
1336
|
+
this.r0_ = 0;
|
1337
|
+
this.x1_ = 0;
|
1338
|
+
this.y1_ = 0;
|
1339
|
+
this.r1_ = 0;
|
1340
|
+
this.colors_ = [];
|
1341
|
+
}
|
1342
|
+
|
1343
|
+
CanvasGradient_.prototype.addColorStop = function(aOffset, aColor) {
|
1344
|
+
aColor = processStyle(aColor);
|
1345
|
+
this.colors_.push({offset: aOffset,
|
1346
|
+
color: aColor.color,
|
1347
|
+
alpha: aColor.alpha});
|
1348
|
+
};
|
1349
|
+
|
1350
|
+
function CanvasPattern_(image, repetition) {
|
1351
|
+
assertImageIsValid(image);
|
1352
|
+
switch (repetition) {
|
1353
|
+
case 'repeat':
|
1354
|
+
case null:
|
1355
|
+
case '':
|
1356
|
+
this.repetition_ = 'repeat';
|
1357
|
+
break
|
1358
|
+
case 'repeat-x':
|
1359
|
+
case 'repeat-y':
|
1360
|
+
case 'no-repeat':
|
1361
|
+
this.repetition_ = repetition;
|
1362
|
+
break;
|
1363
|
+
default:
|
1364
|
+
throwException('SYNTAX_ERR');
|
1365
|
+
}
|
1366
|
+
|
1367
|
+
this.src_ = image.src;
|
1368
|
+
this.width_ = image.width;
|
1369
|
+
this.height_ = image.height;
|
1370
|
+
}
|
1371
|
+
|
1372
|
+
function throwException(s) {
|
1373
|
+
throw new DOMException_(s);
|
1374
|
+
}
|
1375
|
+
|
1376
|
+
function assertImageIsValid(img) {
|
1377
|
+
if (!img || img.nodeType != 1 || img.tagName != 'IMG') {
|
1378
|
+
throwException('TYPE_MISMATCH_ERR');
|
1379
|
+
}
|
1380
|
+
if (img.readyState != 'complete') {
|
1381
|
+
throwException('INVALID_STATE_ERR');
|
1382
|
+
}
|
1383
|
+
}
|
1384
|
+
|
1385
|
+
function DOMException_(s) {
|
1386
|
+
this.code = this[s];
|
1387
|
+
this.message = s +': DOM Exception ' + this.code;
|
1388
|
+
}
|
1389
|
+
var p = DOMException_.prototype = new Error;
|
1390
|
+
p.INDEX_SIZE_ERR = 1;
|
1391
|
+
p.DOMSTRING_SIZE_ERR = 2;
|
1392
|
+
p.HIERARCHY_REQUEST_ERR = 3;
|
1393
|
+
p.WRONG_DOCUMENT_ERR = 4;
|
1394
|
+
p.INVALID_CHARACTER_ERR = 5;
|
1395
|
+
p.NO_DATA_ALLOWED_ERR = 6;
|
1396
|
+
p.NO_MODIFICATION_ALLOWED_ERR = 7;
|
1397
|
+
p.NOT_FOUND_ERR = 8;
|
1398
|
+
p.NOT_SUPPORTED_ERR = 9;
|
1399
|
+
p.INUSE_ATTRIBUTE_ERR = 10;
|
1400
|
+
p.INVALID_STATE_ERR = 11;
|
1401
|
+
p.SYNTAX_ERR = 12;
|
1402
|
+
p.INVALID_MODIFICATION_ERR = 13;
|
1403
|
+
p.NAMESPACE_ERR = 14;
|
1404
|
+
p.INVALID_ACCESS_ERR = 15;
|
1405
|
+
p.VALIDATION_ERR = 16;
|
1406
|
+
p.TYPE_MISMATCH_ERR = 17;
|
1407
|
+
|
1408
|
+
// set up externs
|
1409
|
+
G_vmlCanvasManager = G_vmlCanvasManager_;
|
1410
|
+
CanvasRenderingContext2D = CanvasRenderingContext2D_;
|
1411
|
+
CanvasGradient = CanvasGradient_;
|
1412
|
+
CanvasPattern = CanvasPattern_;
|
1413
|
+
DOMException = DOMException_;
|
1414
|
+
})();
|
1415
|
+
|
1416
|
+
} // if
|