spree_backend 2.4.10 → 3.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/spree/backend/adjustments.js.coffee +1 -2
- data/app/assets/javascripts/spree/backend/admin.js.erb +136 -53
- data/app/assets/javascripts/spree/backend/checkouts/edit.js +1 -4
- data/app/assets/javascripts/spree/backend/index.html +15 -0
- data/app/assets/javascripts/spree/backend/line_items.js.coffee +1 -4
- data/app/assets/javascripts/spree/backend/line_items_on_order_edit.js.erb +3 -16
- data/app/assets/javascripts/spree/backend/option_type_autocomplete.js.erb +2 -4
- data/app/assets/javascripts/spree/backend/option_value_picker.js +44 -0
- data/app/assets/javascripts/spree/backend/orders/edit_form.js +2 -3
- data/app/assets/javascripts/spree/backend/payments/edit.js.coffee +8 -12
- data/app/assets/javascripts/spree/backend/product_picker.js +10 -8
- data/app/assets/javascripts/spree/backend/progress.coffee +0 -21
- data/app/assets/javascripts/spree/backend/promotions.js +50 -1
- data/app/assets/javascripts/spree/backend/select_payments.js.coffee +7 -0
- data/app/assets/javascripts/spree/backend/shipments.js.erb +10 -41
- data/app/assets/javascripts/spree/backend/spree-select2.js.erb +0 -15
- data/app/assets/javascripts/spree/backend/states.js +3 -3
- data/app/assets/javascripts/spree/backend/stock_movement.js.coffee +1 -2
- data/app/assets/javascripts/spree/backend/stock_transfer.js.coffee +3 -2
- data/app/assets/javascripts/spree/backend/taxon_autocomplete.js.erb +2 -4
- data/app/assets/javascripts/spree/backend/taxon_tree_menu.js.coffee +4 -4
- data/app/assets/javascripts/spree/backend/taxonomy.js.coffee +15 -34
- data/app/assets/javascripts/spree/backend/taxons.js.coffee +27 -8
- data/app/assets/javascripts/spree/backend/user_picker.js +2 -3
- data/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee.erb +1 -2
- data/app/assets/javascripts/spree/backend/variant_management.js.coffee +1 -2
- data/app/assets/javascripts/spree/backend.js +13 -15
- data/app/assets/stylesheets/spree/backend/components/_buttons.scss +37 -0
- data/app/assets/stylesheets/spree/backend/components/_filters.scss +25 -0
- data/app/assets/stylesheets/spree/backend/components/_icons.scss +257 -0
- data/app/assets/stylesheets/spree/backend/components/_labels.scss +49 -0
- data/app/assets/stylesheets/spree/backend/components/_main.scss +5 -0
- data/app/assets/stylesheets/spree/backend/components/_navigation.scss +10 -165
- data/app/assets/stylesheets/spree/backend/components/_page_header.scss +17 -0
- data/app/assets/stylesheets/spree/backend/components/_panels.scss +3 -0
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +116 -20
- data/app/assets/stylesheets/spree/backend/components/_tables.scss +51 -0
- data/app/assets/stylesheets/spree/backend/components/_taxon_products_view.scss +70 -0
- data/app/assets/stylesheets/spree/backend/components/_variables.scss +12 -0
- data/app/assets/stylesheets/spree/backend/components/_wells.scss +3 -0
- data/app/assets/stylesheets/spree/backend/global/_variables.scss +37 -0
- data/app/assets/stylesheets/spree/backend/plugins/_jquery_ui.scss +109 -0
- data/app/{views/spree/admin/payments/source_forms/_check.html.erb → assets/stylesheets/spree/backend/plugins/_js_tree.scss} +0 -0
- data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +84 -155
- data/app/assets/stylesheets/spree/backend/sections/_account.scss +16 -0
- data/app/assets/stylesheets/spree/backend/shared/_base.scss +15 -0
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +25 -287
- data/app/assets/stylesheets/spree/backend/shared/_typography.scss +5 -138
- data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +26 -0
- data/app/assets/stylesheets/spree/backend.css +1 -7
- data/app/controllers/spree/admin/base_controller.rb +0 -2
- data/app/controllers/spree/admin/customer_returns_controller.rb +1 -1
- data/app/controllers/spree/admin/general_settings_controller.rb +5 -12
- data/app/controllers/spree/admin/images_controller.rb +33 -17
- data/app/controllers/spree/admin/log_entries_controller.rb +2 -2
- data/app/controllers/spree/admin/option_types_controller.rb +5 -3
- data/app/controllers/spree/admin/orders/customer_details_controller.rb +8 -8
- data/app/controllers/spree/admin/orders_controller.rb +4 -5
- data/app/controllers/spree/admin/payments_controller.rb +3 -3
- data/app/controllers/spree/admin/products_controller.rb +3 -6
- data/app/controllers/spree/admin/resource_controller.rb +1 -1
- data/app/controllers/spree/admin/root_controller.rb +1 -0
- data/app/controllers/spree/admin/search_controller.rb +12 -0
- data/app/controllers/spree/admin/state_changes_controller.rb +18 -0
- data/app/controllers/spree/admin/stock_locations_controller.rb +4 -13
- data/app/controllers/spree/admin/stock_transfers_controller.rb +6 -6
- data/app/controllers/spree/admin/tax_categories_controller.rb +0 -13
- data/app/controllers/spree/admin/taxonomies_controller.rb +1 -1
- data/app/controllers/spree/admin/taxons_controller.rb +53 -36
- data/app/controllers/spree/admin/users_controller.rb +44 -41
- data/app/controllers/spree/admin/variants_controller.rb +1 -1
- data/app/helpers/spree/admin/adjustments_helper.rb +0 -5
- data/app/helpers/spree/admin/base_helper.rb +41 -71
- data/app/helpers/spree/admin/navigation_helper.rb +96 -28
- data/app/helpers/spree/admin/orders_helper.rb +2 -2
- data/app/views/kaminari/_first_page.html.erb +11 -0
- data/app/views/kaminari/_gap.html.erb +8 -0
- data/app/views/kaminari/_last_page.html.erb +11 -0
- data/app/views/kaminari/_next_page.html.erb +15 -0
- data/app/views/kaminari/_page.html.erb +12 -0
- data/app/views/kaminari/_paginator.html.erb +21 -0
- data/app/views/kaminari/_prev_page.html.erb +15 -0
- data/app/views/spree/admin/adjustments/_adjustment.html.erb +10 -9
- data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +19 -15
- data/app/views/spree/admin/adjustments/_form.html.erb +11 -15
- data/app/views/spree/admin/adjustments/edit.html.erb +9 -12
- data/app/views/spree/admin/adjustments/index.html.erb +19 -7
- data/app/views/spree/admin/adjustments/new.html.erb +7 -11
- data/app/views/spree/admin/countries/_form.html.erb +15 -19
- data/app/views/spree/admin/countries/edit.html.erb +4 -12
- data/app/views/spree/admin/countries/index.html.erb +6 -18
- data/app/views/spree/admin/countries/new.html.erb +3 -5
- data/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb +4 -4
- data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +9 -10
- data/app/views/spree/admin/customer_returns/_return_item_selection.html.erb +5 -3
- data/app/views/spree/admin/customer_returns/edit.html.erb +17 -21
- data/app/views/spree/admin/customer_returns/index.html.erb +12 -16
- data/app/views/spree/admin/customer_returns/new.html.erb +29 -20
- data/app/views/spree/admin/general_settings/edit.html.erb +101 -90
- data/app/views/spree/admin/images/_form.html.erb +12 -12
- data/app/views/spree/admin/images/edit.html.erb +23 -21
- data/app/views/spree/admin/images/index.html.erb +25 -30
- data/app/views/spree/admin/images/new.html.erb +13 -11
- data/app/views/spree/admin/inventory_units/adjust.html.erb +29 -0
- data/app/views/spree/admin/log_entries/index.html.erb +9 -7
- data/app/views/spree/admin/option_types/_form.html.erb +10 -10
- data/app/views/spree/admin/option_types/_option_value_fields.html.erb +8 -10
- data/app/views/spree/admin/option_types/edit.html.erb +28 -23
- data/app/views/spree/admin/option_types/index.html.erb +16 -22
- data/app/views/spree/admin/option_types/new.html.erb +4 -3
- data/app/views/spree/admin/orders/_add_line_item.html.erb +9 -10
- data/app/views/spree/admin/orders/_add_product.html.erb +11 -9
- data/app/views/spree/admin/orders/_adjustments.html.erb +21 -7
- data/app/views/spree/admin/orders/_form.html.erb +23 -10
- data/app/views/spree/admin/orders/_line_item.html.erb +18 -6
- data/app/views/spree/admin/orders/_line_items.html.erb +45 -45
- data/app/views/spree/admin/orders/_line_items_edit_form.html.erb +10 -11
- data/app/views/spree/admin/orders/_risk_analysis.html.erb +13 -13
- data/app/views/spree/admin/orders/_shipment.html.erb +31 -39
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +23 -17
- data/app/views/spree/admin/orders/cart.html.erb +14 -15
- data/app/views/spree/admin/orders/customer_details/_form.html.erb +73 -52
- data/app/views/spree/admin/orders/customer_details/edit.html.erb +19 -15
- data/app/views/spree/admin/orders/edit.html.erb +12 -9
- data/app/views/spree/admin/orders/index.html.erb +145 -84
- data/app/views/spree/admin/payment_methods/_form.html.erb +26 -30
- data/app/views/spree/admin/payment_methods/edit.html.erb +5 -14
- data/app/views/spree/admin/payment_methods/index.html.erb +14 -29
- data/app/views/spree/admin/payment_methods/new.html.erb +4 -12
- data/app/views/spree/admin/payments/_capture_events.html.erb +2 -2
- data/app/views/spree/admin/payments/_form.html.erb +27 -30
- data/app/views/spree/admin/payments/_list.html.erb +20 -16
- data/app/views/spree/admin/payments/credit.html.erb +2 -2
- data/app/views/spree/admin/payments/index.html.erb +15 -13
- data/app/views/spree/admin/payments/new.html.erb +10 -11
- data/app/views/spree/admin/payments/show.html.erb +12 -9
- data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +43 -47
- data/app/views/spree/admin/payments/source_views/_gateway.html.erb +19 -19
- data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +5 -5
- data/app/views/spree/admin/product_properties/index.html.erb +5 -17
- data/app/views/spree/admin/products/_add_stock_form.html.erb +34 -25
- data/app/views/spree/admin/products/_autocomplete.js.erb +18 -7
- data/app/views/spree/admin/products/_form.html.erb +145 -150
- data/app/views/spree/admin/products/_properties_form.erb +2 -2
- data/app/views/spree/admin/products/edit.html.erb +3 -8
- data/app/views/spree/admin/products/index.html.erb +42 -63
- data/app/views/spree/admin/products/new.html.erb +29 -33
- data/app/views/spree/admin/products/stock.html.erb +67 -82
- data/app/views/spree/admin/promotion_actions/create.js.erb +1 -2
- data/app/views/spree/admin/promotion_actions/destroy.js.erb +1 -1
- data/app/views/spree/admin/promotion_categories/_form.html.erb +9 -9
- data/app/views/spree/admin/promotion_categories/edit.html.erb +2 -4
- data/app/views/spree/admin/promotion_categories/index.html.erb +27 -26
- data/app/views/spree/admin/promotion_categories/new.html.erb +1 -3
- data/app/views/spree/admin/promotion_rules/create.js.erb +1 -1
- data/app/views/spree/admin/promotion_rules/destroy.js.erb +1 -1
- data/app/views/spree/admin/promotions/_actions.html.erb +20 -17
- data/app/views/spree/admin/promotions/_form.html.erb +40 -39
- data/app/views/spree/admin/promotions/_promotion_action.html.erb +6 -6
- data/app/views/spree/admin/promotions/_promotion_rule.html.erb +7 -6
- data/app/views/spree/admin/promotions/_rules.html.erb +36 -35
- data/app/views/spree/admin/promotions/actions/_create_adjustment.html.erb +25 -23
- data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +23 -21
- data/app/views/spree/admin/promotions/actions/_create_line_items.html.erb +16 -16
- data/app/views/spree/admin/promotions/calculators/_default_fields.html.erb +8 -6
- data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +29 -24
- data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +29 -23
- data/app/views/spree/admin/promotions/edit.html.erb +16 -11
- data/app/views/spree/admin/promotions/index.html.erb +34 -58
- data/app/views/spree/admin/promotions/new.html.erb +4 -6
- data/app/views/spree/admin/promotions/rules/_item_total.html.erb +11 -7
- data/app/views/spree/admin/promotions/rules/_landing_page.html.erb +9 -5
- data/app/views/spree/admin/promotions/rules/_option_value.html.erb +42 -0
- data/app/views/spree/admin/promotions/rules/_product.html.erb +9 -8
- data/app/views/spree/admin/promotions/rules/_taxon.html.erb +9 -8
- data/app/views/spree/admin/promotions/rules/_user.html.erb +5 -3
- data/app/views/spree/admin/properties/_form.html.erb +9 -9
- data/app/views/spree/admin/properties/edit.html.erb +3 -9
- data/app/views/spree/admin/properties/index.html.erb +42 -52
- data/app/views/spree/admin/properties/new.html.erb +10 -9
- data/app/views/spree/admin/prototypes/_form.html.erb +25 -28
- data/app/views/spree/admin/prototypes/_prototypes.html.erb +4 -8
- data/app/views/spree/admin/prototypes/available.js.erb +1 -1
- data/app/views/spree/admin/prototypes/edit.html.erb +3 -11
- data/app/views/spree/admin/prototypes/index.html.erb +23 -36
- data/app/views/spree/admin/prototypes/new.html.erb +8 -7
- data/app/views/spree/admin/prototypes/show.html.erb +15 -18
- data/app/views/spree/admin/refund_reasons/edit.html.erb +2 -2
- data/app/views/spree/admin/refund_reasons/index.html.erb +2 -2
- data/app/views/spree/admin/refund_reasons/new.html.erb +1 -1
- data/app/views/spree/admin/refunds/edit.html.erb +14 -18
- data/app/views/spree/admin/refunds/new.html.erb +19 -27
- data/app/views/spree/admin/reimbursement_types/index.html.erb +6 -7
- data/app/views/spree/admin/reimbursements/edit.html.erb +25 -31
- data/app/views/spree/admin/reimbursements/index.html.erb +4 -10
- data/app/views/spree/admin/reimbursements/show.html.erb +32 -36
- data/app/views/spree/admin/reports/index.html.erb +4 -4
- data/app/views/spree/admin/reports/sales_total.html.erb +6 -11
- data/app/views/spree/admin/return_authorization_reasons/edit.html.erb +0 -0
- data/app/views/spree/admin/return_authorization_reasons/index.html.erb +2 -2
- data/app/views/spree/admin/return_authorization_reasons/new.html.erb +0 -0
- data/app/views/spree/admin/return_authorizations/_form.html.erb +20 -20
- data/app/views/spree/admin/return_authorizations/edit.html.erb +6 -6
- data/app/views/spree/admin/return_authorizations/index.html.erb +12 -12
- data/app/views/spree/admin/return_authorizations/new.html.erb +6 -10
- data/app/views/spree/admin/search/products.rabl +9 -0
- data/app/views/spree/admin/search/users.rabl +21 -21
- data/app/views/spree/admin/shared/_address_form.html.erb +22 -22
- data/app/views/spree/admin/shared/_alert.html.erb +8 -5
- data/app/views/spree/admin/shared/_calculator_fields.html.erb +13 -8
- data/app/views/spree/admin/shared/_content_header.html.erb +19 -16
- data/app/views/spree/admin/shared/_edit_resource_links.html.erb +3 -3
- data/app/views/spree/admin/shared/_error_messages.html.erb +12 -0
- data/app/views/spree/admin/shared/_head.html.erb +4 -8
- data/app/views/spree/admin/shared/_header.html.erb +27 -8
- data/app/views/spree/admin/shared/_index_table_options.html.erb +23 -0
- data/app/views/spree/admin/shared/_main_menu.html.erb +35 -0
- data/app/views/spree/admin/shared/_new_resource_links.html.erb +3 -3
- data/app/views/spree/admin/shared/_order_summary.html.erb +121 -48
- data/app/views/spree/admin/shared/_order_tabs.html.erb +55 -7
- data/app/views/spree/admin/shared/_product_tabs.html.erb +19 -25
- data/app/views/spree/admin/shared/_refunds.html.erb +9 -9
- data/app/views/spree/admin/shared/_report_criteria.html.erb +4 -4
- data/app/views/spree/admin/shared/_report_order_criteria.html.erb +12 -12
- data/app/views/spree/admin/shared/_sidebar.html.erb +1 -6
- data/app/views/spree/admin/shared/_table_filter.html.erb +21 -5
- data/app/views/spree/admin/shared/named_types/_edit.html.erb +6 -7
- data/app/views/spree/admin/shared/named_types/_form.html.erb +10 -14
- data/app/views/spree/admin/shared/named_types/_index.html.erb +6 -17
- data/app/views/spree/admin/shared/named_types/_new.html.erb +5 -5
- data/app/views/spree/admin/shared/sub_menu/_configuration.html.erb +21 -0
- data/app/views/spree/admin/shared/sub_menu/_product.html.erb +8 -0
- data/app/views/spree/admin/shared/sub_menu/_promotion.html.erb +4 -0
- data/app/views/spree/admin/shipping_categories/_form.html.erb +2 -2
- data/app/views/spree/admin/shipping_categories/edit.html.erb +4 -14
- data/app/views/spree/admin/shipping_categories/index.html.erb +24 -32
- data/app/views/spree/admin/shipping_categories/new.html.erb +2 -10
- data/app/views/spree/admin/shipping_methods/_form.html.erb +88 -67
- data/app/views/spree/admin/shipping_methods/edit.html.erb +6 -19
- data/app/views/spree/admin/shipping_methods/index.html.erb +13 -25
- data/app/views/spree/admin/shipping_methods/new.html.erb +2 -12
- data/app/views/spree/admin/state_changes/index.html.erb +42 -0
- data/app/views/spree/admin/states/_form.html.erb +6 -6
- data/app/views/spree/admin/states/_state_list.html.erb +6 -11
- data/app/views/spree/admin/states/edit.html.erb +3 -11
- data/app/views/spree/admin/states/index.html.erb +5 -9
- data/app/views/spree/admin/states/new.html.erb +1 -4
- data/app/views/spree/admin/states/new.js.erb +2 -2
- data/app/views/spree/admin/stock_locations/_form.html.erb +51 -45
- data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +15 -15
- data/app/views/spree/admin/stock_locations/edit.html.erb +4 -6
- data/app/views/spree/admin/stock_locations/index.html.erb +12 -26
- data/app/views/spree/admin/stock_locations/new.html.erb +3 -5
- data/app/views/spree/admin/stock_movements/_form.html.erb +10 -12
- data/app/views/spree/admin/stock_movements/edit.html.erb +4 -4
- data/app/views/spree/admin/stock_movements/index.html.erb +9 -15
- data/app/views/spree/admin/stock_movements/new.html.erb +3 -3
- data/app/views/spree/admin/stock_transfers/_stock_movements.html.erb +17 -22
- data/app/views/spree/admin/stock_transfers/index.html.erb +36 -49
- data/app/views/spree/admin/stock_transfers/new.html.erb +73 -77
- data/app/views/spree/admin/stock_transfers/show.html.erb +21 -29
- data/app/views/spree/admin/tax_categories/_form.html.erb +19 -27
- data/app/views/spree/admin/tax_categories/edit.html.erb +4 -6
- data/app/views/spree/admin/tax_categories/index.html.erb +13 -26
- data/app/views/spree/admin/tax_categories/new.html.erb +3 -6
- data/app/views/spree/admin/tax_categories/show.html.erb +1 -1
- data/app/views/spree/admin/tax_rates/_form.html.erb +34 -25
- data/app/views/spree/admin/tax_rates/edit.html.erb +4 -15
- data/app/views/spree/admin/tax_rates/index.html.erb +18 -32
- data/app/views/spree/admin/tax_rates/new.html.erb +2 -14
- data/app/views/spree/admin/taxonomies/_form.html.erb +5 -5
- data/app/views/spree/admin/taxonomies/_js_head.html.erb +0 -0
- data/app/views/spree/admin/taxonomies/_list.html.erb +9 -12
- data/app/views/spree/admin/taxonomies/edit.erb +11 -22
- data/app/views/spree/admin/taxonomies/index.html.erb +9 -15
- data/app/views/spree/admin/taxonomies/new.html.erb +4 -16
- data/app/views/spree/admin/taxons/_form.html.erb +38 -38
- data/app/views/spree/admin/taxons/_taxon_table.html.erb +2 -2
- data/app/views/spree/admin/taxons/edit.html.erb +5 -13
- data/app/views/spree/admin/taxons/index.html.erb +6 -13
- data/app/views/spree/admin/trackers/_form.html.erb +17 -23
- data/app/views/spree/admin/trackers/edit.html.erb +4 -14
- data/app/views/spree/admin/trackers/index.html.erb +9 -15
- data/app/views/spree/admin/trackers/new.html.erb +2 -10
- data/app/views/spree/admin/users/_addresses_form.html.erb +33 -17
- data/app/views/spree/admin/users/_form.html.erb +17 -17
- data/app/views/spree/admin/users/_lifetime_stats.html.erb +26 -0
- data/app/views/spree/admin/users/_sidebar.html.erb +14 -34
- data/app/views/spree/admin/users/_user_page_actions.html.erb +2 -6
- data/app/views/spree/admin/users/addresses.html.erb +8 -7
- data/app/views/spree/admin/users/edit.html.erb +55 -38
- data/app/views/spree/admin/users/index.html.erb +44 -30
- data/app/views/spree/admin/users/items.html.erb +13 -24
- data/app/views/spree/admin/users/new.html.erb +1 -7
- data/app/views/spree/admin/users/orders.html.erb +11 -17
- data/app/views/spree/admin/variants/_autocomplete.js.erb +13 -15
- data/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb +41 -44
- data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +46 -51
- data/app/views/spree/admin/variants/_form.html.erb +34 -34
- data/app/views/spree/admin/variants/_split.js.erb +8 -4
- data/app/views/spree/admin/variants/edit.html.erb +2 -4
- data/app/views/spree/admin/variants/index.html.erb +14 -33
- data/app/views/spree/admin/variants/new.html.erb +8 -6
- data/app/views/spree/admin/variants/new.js.erb +1 -1
- data/app/views/spree/admin/zones/_country_members.html.erb +14 -8
- data/app/views/spree/admin/zones/_form.html.erb +42 -31
- data/app/views/spree/admin/zones/_state_members.html.erb +14 -8
- data/app/views/spree/admin/zones/edit.html.erb +3 -11
- data/app/views/spree/admin/zones/index.html.erb +9 -19
- data/app/views/spree/admin/zones/new.html.erb +2 -13
- data/app/views/spree/layouts/admin.html.erb +63 -36
- data/config/initializers/assets.rb +1 -1
- data/config/routes.rb +4 -1
- data/lib/spree/backend/engine.rb +3 -0
- data/lib/spree_backend.rb +2 -0
- data/vendor/assets/javascripts/jquery.cookie.js +115 -39
- data/vendor/assets/javascripts/modernizr.js +3 -3
- data/vendor/assets/javascripts/underscore-min.js +6 -0
- data/vendor/assets/javascripts/underscore-min.map +1 -0
- data/vendor/assets/javascripts/velocity.js +3831 -0
- data/vendor/assets/stylesheets/animate.css +3158 -0
- metadata +85 -96
- data/app/assets/javascripts/spree/backend/images/index.js.coffee +0 -16
- data/app/assets/javascripts/spree/backend/images/new.js.coffee +0 -7
- data/app/assets/javascripts/spree/backend/underscore-min.js +0 -1227
- data/app/assets/stylesheets/spree/backend/components/_actions.scss +0 -31
- data/app/assets/stylesheets/spree/backend/components/_date-picker.scss +0 -159
- data/app/assets/stylesheets/spree/backend/components/_messages.scss +0 -54
- data/app/assets/stylesheets/spree/backend/components/_pagination.scss +0 -17
- data/app/assets/stylesheets/spree/backend/components/_product_autocomplete.scss +0 -29
- data/app/assets/stylesheets/spree/backend/components/_progress.scss +0 -35
- data/app/assets/stylesheets/spree/backend/components/_states.scss +0 -34
- data/app/assets/stylesheets/spree/backend/components/_table-filter.scss +0 -14
- data/app/assets/stylesheets/spree/backend/globals/_functions.scss +0 -25
- data/app/assets/stylesheets/spree/backend/globals/_mixins.scss +0 -25
- data/app/assets/stylesheets/spree/backend/globals/_variables.scss +0 -171
- data/app/assets/stylesheets/spree/backend/globals/_variables_override.scss +0 -7
- data/app/assets/stylesheets/spree/backend/hacks/_ie.scss +0 -72
- data/app/assets/stylesheets/spree/backend/hacks/_mozilla.scss +0 -33
- data/app/assets/stylesheets/spree/backend/hacks/_opera.scss +0 -17
- data/app/assets/stylesheets/spree/backend/plugins/_jstree.scss +0 -135
- data/app/assets/stylesheets/spree/backend/plugins/_powertip.scss +0 -86
- data/app/assets/stylesheets/spree/backend/plugins/_token-input.scss +0 -110
- data/app/assets/stylesheets/spree/backend/sections/_adjustments_table.scss +0 -8
- data/app/assets/stylesheets/spree/backend/sections/_alerts.scss +0 -27
- data/app/assets/stylesheets/spree/backend/sections/_bulk_transfer.scss +0 -8
- data/app/assets/stylesheets/spree/backend/sections/_edit_checkouts.scss +0 -72
- data/app/assets/stylesheets/spree/backend/sections/_image_settings.scss +0 -3
- data/app/assets/stylesheets/spree/backend/sections/_log_entries.scss +0 -17
- data/app/assets/stylesheets/spree/backend/sections/_orders.scss +0 -64
- data/app/assets/stylesheets/spree/backend/sections/_overview.scss +0 -86
- data/app/assets/stylesheets/spree/backend/sections/_products.scss +0 -123
- data/app/assets/stylesheets/spree/backend/sections/_promotions.scss +0 -119
- data/app/assets/stylesheets/spree/backend/sections/_return_authorizations.scss +0 -24
- data/app/assets/stylesheets/spree/backend/sections/_tax_zones.scss +0 -15
- data/app/assets/stylesheets/spree/backend/sections/_taxons.scss +0 -21
- data/app/assets/stylesheets/spree/backend/sections/_users.scss +0 -5
- data/app/assets/stylesheets/spree/backend/shared/_icons.scss +0 -53
- data/app/assets/stylesheets/spree/backend/shared/_layout.scss +0 -99
- data/app/assets/stylesheets/spree/backend/shared/_tables.scss +0 -214
- data/app/assets/stylesheets/spree/backend/spree_admin.scss +0 -45
- data/app/views/spree/admin/line_items/create.js.erb +0 -1
- data/app/views/spree/admin/line_items/destroy.js.erb +0 -1
- data/app/views/spree/admin/option_types/new.js.erb +0 -2
- data/app/views/spree/admin/payments/_bill_address_form.html.erb +0 -9
- data/app/views/spree/admin/payments/source_views/_check.html.erb +0 -0
- data/app/views/spree/admin/products/new.js.erb +0 -7
- data/app/views/spree/admin/promotions/_tab.html.erb +0 -1
- data/app/views/spree/admin/promotions/rules/_first_order.html.erb +0 -0
- data/app/views/spree/admin/promotions/rules/_one_use_per_user.html.erb +0 -0
- data/app/views/spree/admin/promotions/rules/_user_logged_in.html.erb +0 -0
- data/app/views/spree/admin/properties/filtered.html.erb +0 -1
- data/app/views/spree/admin/properties/new.js.erb +0 -2
- data/app/views/spree/admin/prototypes/new.js.erb +0 -5
- data/app/views/spree/admin/shared/_address.html.erb +0 -6
- data/app/views/spree/admin/shared/_configuration_menu.html.erb +0 -28
- data/app/views/spree/admin/shared/_menu.html.erb +0 -9
- data/app/views/spree/admin/shared/_order_submenu.html.erb +0 -49
- data/app/views/spree/admin/shared/_product_sub_menu.html.erb +0 -10
- data/app/views/spree/admin/shared/_promotion_sub_menu.html.erb +0 -6
- data/app/views/spree/admin/shared/_show_resource_links.html.erb +0 -5
- data/app/views/spree/admin/shared/_sub_menu.html.erb +0 -9
- data/app/views/spree/admin/shared/_tabs.html.erb +0 -21
- data/app/views/spree/admin/taxonomies/_taxon.html.erb +0 -12
- data/app/views/spree/admin/taxons/search.rabl +0 -5
- data/app/views/spree/admin/variants/update.js.erb +0 -1
- data/vendor/assets/images/jquery.alerts/images/help.gif +0 -0
- data/vendor/assets/images/jquery.alerts/images/important.gif +0 -0
- data/vendor/assets/images/jquery.alerts/images/info.gif +0 -0
- data/vendor/assets/images/jquery.alerts/images/title.gif +0 -0
- data/vendor/assets/javascripts/css_browser_selector_dev.js +0 -129
- data/vendor/assets/javascripts/equalize.js +0 -41
- data/vendor/assets/javascripts/jquery.adaptivemenu.js +0 -60
- data/vendor/assets/javascripts/jquery.alerts/jquery.alerts.js +0 -235
- data/vendor/assets/javascripts/jquery.delayedobserver.js +0 -35
- data/vendor/assets/javascripts/jquery.powertip.js +0 -796
- data/vendor/assets/javascripts/jquery.vAlign.js +0 -11
- data/vendor/assets/javascripts/responsive-tables.js +0 -42
- data/vendor/assets/javascripts/spin.js +0 -379
- data/vendor/assets/javascripts/trunk8.js +0 -369
- data/vendor/assets/stylesheets/jquery.alerts/jquery.alerts.css.erb +0 -57
- data/vendor/assets/stylesheets/jquery.alerts/jquery.alerts.spree.css +0 -29
- data/vendor/assets/stylesheets/jquery.powertip.css +0 -85
- data/vendor/assets/stylesheets/responsive-tables.css +0 -21
@@ -1,55 +1,82 @@
|
|
1
|
-
<!
|
2
|
-
|
3
|
-
<!--[if IE 7 ]> <html class="ie ie7" lang="<%= I18n.locale %>"> <![endif]-->
|
4
|
-
<!--[if IE 8 ]> <html class="ie ie8" lang="<%= I18n.locale %>"> <![endif]-->
|
5
|
-
<!--[if IE 9 ]> <html class="ie ie9" lang="<%= I18n.locale %>"> <![endif]-->
|
6
|
-
<!--[if gt IE 9]><!--><html lang="<%= I18n.locale %>"><!--<![endif]-->
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="<%= I18n.locale %>">
|
7
3
|
<head data-hook="admin_inside_head">
|
8
|
-
<%= render :
|
4
|
+
<%= render partial: 'spree/admin/shared/head' %>
|
9
5
|
</head>
|
10
6
|
|
11
|
-
<body class=
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
<div class="
|
19
|
-
|
20
|
-
<% if flash[:success] %>
|
21
|
-
<div class="flash success"><%= flash[:success] %></div>
|
22
|
-
<% end %>
|
23
|
-
|
24
|
-
<div id="progress">
|
25
|
-
<div class="wrapper">
|
26
|
-
<div id="spinner"></div>
|
27
|
-
<div class="progress-message"><%= Spree.t(:loading) %>...</div>
|
28
|
-
</div>
|
7
|
+
<body class="admin skin-blue">
|
8
|
+
|
9
|
+
<%#-------------------------------------------------%>
|
10
|
+
<%# Loading progress bars %>
|
11
|
+
<%#-------------------------------------------------%>
|
12
|
+
<div id="progress" class="hidden">
|
13
|
+
<div class="alert alert-info alert-progress">
|
14
|
+
<div class="spinner"><%= Spree.t(:loading) %>...</div>
|
15
|
+
<div class="progress-message"><%= Spree.t(:loading) %>...</div>
|
29
16
|
</div>
|
17
|
+
</div>
|
30
18
|
|
31
|
-
|
19
|
+
<%#-------------------------------------------------%>
|
20
|
+
<%# Header navbar %>
|
21
|
+
<%#-------------------------------------------------%>
|
22
|
+
<%= render partial: 'spree/admin/shared/header' %>
|
23
|
+
|
24
|
+
<%#-------------------------------------------------%>
|
25
|
+
<%# Main content %>
|
26
|
+
<%#-------------------------------------------------%>
|
27
|
+
<div id="wrapper" class="container-fluid <%= wrapper_classes %>">
|
28
|
+
<div class="row">
|
29
|
+
|
30
|
+
<%#-------------------------------------------------%>
|
31
|
+
<%# Sidebar %>
|
32
|
+
<%#-------------------------------------------------%>
|
33
|
+
<div class="col-sm-3 col-md-2 hidden-xs sidebar" id="main-sidebar">
|
34
|
+
<%= render partial: 'spree/admin/shared/main_menu' %>
|
35
|
+
</div>
|
32
36
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
+
<%#-------------------------------------------------%>
|
38
|
+
<%# Content %>
|
39
|
+
<%#-------------------------------------------------%>
|
40
|
+
<div class="<%= main_part_classes %> main" id="main-part">
|
37
41
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
+
<%#-------------------------------------------------%>
|
43
|
+
<%# Content header (page title/actions) %>
|
44
|
+
<%#-------------------------------------------------%>
|
45
|
+
<%= render partial: 'spree/admin/shared/content_header' %>
|
46
|
+
|
47
|
+
<div class="row">
|
48
|
+
<%#-------------------------------------------------%>
|
49
|
+
<%# Alerts %>
|
50
|
+
<%#-------------------------------------------------%>
|
51
|
+
<%= flash_alert(flash) %>
|
52
|
+
<%= render partial: 'spree/admin/shared/alert', collection: session[:alerts] %>
|
42
53
|
|
43
|
-
|
54
|
+
<%#-------------------------------------------------%>
|
55
|
+
<%# Main content %>
|
56
|
+
<%#-------------------------------------------------%>
|
57
|
+
<div class="<%= content_for?(:sidebar) ? 'with-sidebar col-md-9 col-sm-8' : 'col-sm-12' %>" id="content" data-hook>
|
58
|
+
<%= render partial: 'spree/admin/shared/table_filter' if content_for?(:table_filter)%>
|
44
59
|
<%= yield %>
|
45
60
|
</div>
|
46
61
|
|
47
|
-
|
62
|
+
<%#-------------------------------------------------%>
|
63
|
+
<%# Inner aside %>
|
64
|
+
<%#-------------------------------------------------%>
|
65
|
+
<% if content_for?(:sidebar) %>
|
66
|
+
<div class="col-md-3 col-sm-4">
|
67
|
+
<%= render partial: 'spree/admin/shared/sidebar' %>
|
68
|
+
</div>
|
69
|
+
<% end %>
|
48
70
|
</div>
|
71
|
+
|
72
|
+
|
49
73
|
</div>
|
50
74
|
</div>
|
51
75
|
</div>
|
52
76
|
|
77
|
+
<%#-------------------------------------------------%>
|
78
|
+
<%# Insert footer scripts here %>
|
79
|
+
<%#-------------------------------------------------%>
|
53
80
|
<div data-hook="admin_footer_scripts"></div>
|
54
81
|
</body>
|
55
82
|
</html>
|
@@ -1 +1 @@
|
|
1
|
-
Rails.application.config.assets.precompile += %w( jquery-ui/*
|
1
|
+
Rails.application.config.assets.precompile += %w( jquery-ui/* )
|
data/config/routes.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
Spree::Core::Engine.add_routes do
|
2
2
|
namespace :admin do
|
3
3
|
get '/search/users', to: "search#users", as: :search_users
|
4
|
+
get '/search/products', to: "search#products", as: :search_products
|
4
5
|
|
5
6
|
resources :promotions do
|
6
7
|
resources :promotion_rules
|
@@ -37,7 +38,7 @@ Spree::Core::Engine.add_routes do
|
|
37
38
|
post :update_positions
|
38
39
|
end
|
39
40
|
end
|
40
|
-
resources :variants_including_master,
|
41
|
+
resources :variants_including_master, only: [:update]
|
41
42
|
end
|
42
43
|
|
43
44
|
get '/variants/search', to: "variants#search", as: :search_variants
|
@@ -80,6 +81,8 @@ Spree::Core::Engine.add_routes do
|
|
80
81
|
put :resume
|
81
82
|
end
|
82
83
|
|
84
|
+
resources :state_changes, only: [:index]
|
85
|
+
|
83
86
|
resource :customer, controller: "orders/customer_details"
|
84
87
|
resources :customer_returns, only: [:index, :new, :edit, :create, :update] do
|
85
88
|
member do
|
data/lib/spree/backend/engine.rb
CHANGED
@@ -14,6 +14,9 @@ module Spree
|
|
14
14
|
|
15
15
|
# sets the manifests / assets to be precompiled, even when initialize_on_precompile is false
|
16
16
|
initializer "spree.assets.precompile", :group => :all do |app|
|
17
|
+
app.config.assets.paths << "#{Rails.root}/app/assets/fonts"
|
18
|
+
app.config.assets.precompile << /\.(?:svg|eot|woff|ttf)$/
|
19
|
+
|
17
20
|
app.config.assets.precompile += %w[
|
18
21
|
spree/backend/all*
|
19
22
|
spree/backend/orders/edit_form.js
|
data/lib/spree_backend.rb
CHANGED
@@ -1,41 +1,117 @@
|
|
1
|
-
|
2
|
-
* jQuery Cookie
|
3
|
-
*
|
4
|
-
* Copyright (c) 2010 Klaus Hartl (stilbuero.de)
|
5
|
-
* Dual licensed under the MIT and GPL licenses:
|
6
|
-
* http://www.opensource.org/licenses/mit-license.php
|
7
|
-
* http://www.gnu.org/licenses/gpl.html
|
1
|
+
/*!
|
2
|
+
* jQuery Cookie Plugin v1.4.1
|
3
|
+
* https://github.com/carhartl/jquery-cookie
|
8
4
|
*
|
5
|
+
* Copyright 2006, 2014 Klaus Hartl
|
6
|
+
* Released under the MIT license
|
9
7
|
*/
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
}
|
8
|
+
(function (factory) {
|
9
|
+
if (typeof define === 'function' && define.amd) {
|
10
|
+
// AMD
|
11
|
+
define(['jquery'], factory);
|
12
|
+
} else if (typeof exports === 'object') {
|
13
|
+
// CommonJS
|
14
|
+
factory(require('jquery'));
|
15
|
+
} else {
|
16
|
+
// Browser globals
|
17
|
+
factory(jQuery);
|
18
|
+
}
|
19
|
+
}(function ($) {
|
20
|
+
|
21
|
+
var pluses = /\+/g;
|
22
|
+
|
23
|
+
function encode(s) {
|
24
|
+
return config.raw ? s : encodeURIComponent(s);
|
25
|
+
}
|
26
|
+
|
27
|
+
function decode(s) {
|
28
|
+
return config.raw ? s : decodeURIComponent(s);
|
29
|
+
}
|
30
|
+
|
31
|
+
function stringifyCookieValue(value) {
|
32
|
+
return encode(config.json ? JSON.stringify(value) : String(value));
|
33
|
+
}
|
34
|
+
|
35
|
+
function parseCookieValue(s) {
|
36
|
+
if (s.indexOf('"') === 0) {
|
37
|
+
// This is a quoted cookie as according to RFC2068, unescape...
|
38
|
+
s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
|
39
|
+
}
|
40
|
+
|
41
|
+
try {
|
42
|
+
// Replace server-side written pluses with spaces.
|
43
|
+
// If we can't decode the cookie, ignore it, it's unusable.
|
44
|
+
// If we can't parse the cookie, ignore it, it's unusable.
|
45
|
+
s = decodeURIComponent(s.replace(pluses, ' '));
|
46
|
+
return config.json ? JSON.parse(s) : s;
|
47
|
+
} catch(e) {}
|
48
|
+
}
|
49
|
+
|
50
|
+
function read(s, converter) {
|
51
|
+
var value = config.raw ? s : parseCookieValue(s);
|
52
|
+
return $.isFunction(converter) ? converter(value) : value;
|
53
|
+
}
|
54
|
+
|
55
|
+
var config = $.cookie = function (key, value, options) {
|
56
|
+
|
57
|
+
// Write
|
58
|
+
|
59
|
+
if (arguments.length > 1 && !$.isFunction(value)) {
|
60
|
+
options = $.extend({}, config.defaults, options);
|
61
|
+
|
62
|
+
if (typeof options.expires === 'number') {
|
63
|
+
var days = options.expires, t = options.expires = new Date();
|
64
|
+
t.setTime(+t + days * 864e+5);
|
65
|
+
}
|
66
|
+
|
67
|
+
return (document.cookie = [
|
68
|
+
encode(key), '=', stringifyCookieValue(value),
|
69
|
+
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
|
70
|
+
options.path ? '; path=' + options.path : '',
|
71
|
+
options.domain ? '; domain=' + options.domain : '',
|
72
|
+
options.secure ? '; secure' : ''
|
73
|
+
].join(''));
|
74
|
+
}
|
75
|
+
|
76
|
+
// Read
|
77
|
+
|
78
|
+
var result = key ? undefined : {};
|
79
|
+
|
80
|
+
// To prevent the for loop in the first place assign an empty array
|
81
|
+
// in case there are no cookies at all. Also prevents odd result when
|
82
|
+
// calling $.cookie().
|
83
|
+
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
84
|
+
|
85
|
+
for (var i = 0, l = cookies.length; i < l; i++) {
|
86
|
+
var parts = cookies[i].split('=');
|
87
|
+
var name = decode(parts.shift());
|
88
|
+
var cookie = parts.join('=');
|
89
|
+
|
90
|
+
if (key && key === name) {
|
91
|
+
// If second argument (value) is a function it's a converter...
|
92
|
+
result = read(cookie, value);
|
93
|
+
break;
|
94
|
+
}
|
95
|
+
|
96
|
+
// Prevent storing a cookie that we couldn't decode.
|
97
|
+
if (!key && (cookie = read(cookie)) !== undefined) {
|
98
|
+
result[name] = cookie;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
return result;
|
103
|
+
};
|
104
|
+
|
105
|
+
config.defaults = {};
|
106
|
+
|
107
|
+
$.removeCookie = function (key, options) {
|
108
|
+
if ($.cookie(key) === undefined) {
|
109
|
+
return false;
|
110
|
+
}
|
111
|
+
|
112
|
+
// Must not alter options, thus extending a fresh object...
|
113
|
+
$.cookie(key, '', $.extend({}, options, { expires: -1 }));
|
114
|
+
return !$.cookie(key);
|
115
|
+
};
|
116
|
+
|
117
|
+
}));
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/* Modernizr 2.
|
2
|
-
* Build: http://modernizr.com/download/#-
|
1
|
+
/* Modernizr 2.8.3 (Custom Build) | MIT & BSD
|
2
|
+
* Build: http://modernizr.com/download/#-cssanimations-csstransforms-csstransforms3d-csstransitions-inlinesvg-svg-shiv-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-load
|
3
3
|
*/
|
4
|
-
;window.Modernizr=function(a,b,c){function
|
4
|
+
;window.Modernizr=function(a,b,c){function A(a){j.cssText=a}function B(a,b){return A(m.join(a+";")+(b||""))}function C(a,b){return typeof a===b}function D(a,b){return!!~(""+a).indexOf(b)}function E(a,b){for(var d in a){var e=a[d];if(!D(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function F(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:C(f,"function")?f.bind(d||b):f}return!1}function G(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+o.join(d+" ")+d).split(" ");return C(b,"string")||C(b,"undefined")?E(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),F(e,b,c))}var d="2.8.3",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n="Webkit Moz O ms",o=n.split(" "),p=n.toLowerCase().split(" "),q={svg:"http://www.w3.org/2000/svg"},r={},s={},t={},u=[],v=u.slice,w,x=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},y={}.hasOwnProperty,z;!C(y,"undefined")&&!C(y.call,"undefined")?z=function(a,b){return y.call(a,b)}:z=function(a,b){return b in a&&C(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=v.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(v.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(v.call(arguments)))};return e}),r.cssanimations=function(){return G("animationName")},r.csstransforms=function(){return!!G("transform")},r.csstransforms3d=function(){var a=!!G("perspective");return a&&"webkitPerspective"in g.style&&x("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},r.csstransitions=function(){return G("transition")},r.svg=function(){return!!b.createElementNS&&!!b.createElementNS(q.svg,"svg").createSVGRect},r.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==q.svg};for(var H in r)z(r,H)&&(w=H.toLowerCase(),e[w]=r[H](),u.push((e[w]?"":"no-")+w));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)z(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},A(""),i=k=null,function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function q(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?o(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(s,b.frag)}function r(a){a||(a=b);var c=n(a);return s.shivCSS&&!g&&!c.hasCSS&&(c.hasCSS=!!l(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),k||q(a,c),a}var c="3.7.0",d=a.html5||{},e=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g,h="_html5shiv",i=0,j={},k;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",g="hidden"in a,k=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b)}(this,b),e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.testProp=function(a){return E([a])},e.testAllProps=G,e.testStyles=x,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+u.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
// Underscore.js 1.7.0
|
2
|
+
// http://underscorejs.org
|
3
|
+
// (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
4
|
+
// Underscore may be freely distributed under the MIT license.
|
5
|
+
(function(){var n=this,t=n._,r=Array.prototype,e=Object.prototype,u=Function.prototype,i=r.push,a=r.slice,o=r.concat,l=e.toString,c=e.hasOwnProperty,f=Array.isArray,s=Object.keys,p=u.bind,h=function(n){return n instanceof h?n:this instanceof h?void(this._wrapped=n):new h(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=h),exports._=h):n._=h,h.VERSION="1.7.0";var g=function(n,t,r){if(t===void 0)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,i){return n.call(t,r,e,u,i)}}return function(){return n.apply(t,arguments)}};h.iteratee=function(n,t,r){return null==n?h.identity:h.isFunction(n)?g(n,t,r):h.isObject(n)?h.matches(n):h.property(n)},h.each=h.forEach=function(n,t,r){if(null==n)return n;t=g(t,r);var e,u=n.length;if(u===+u)for(e=0;u>e;e++)t(n[e],e,n);else{var i=h.keys(n);for(e=0,u=i.length;u>e;e++)t(n[i[e]],i[e],n)}return n},h.map=h.collect=function(n,t,r){if(null==n)return[];t=h.iteratee(t,r);for(var e,u=n.length!==+n.length&&h.keys(n),i=(u||n).length,a=Array(i),o=0;i>o;o++)e=u?u[o]:o,a[o]=t(n[e],e,n);return a};var v="Reduce of empty array with no initial value";h.reduce=h.foldl=h.inject=function(n,t,r,e){null==n&&(n=[]),t=g(t,e,4);var u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length,o=0;if(arguments.length<3){if(!a)throw new TypeError(v);r=n[i?i[o++]:o++]}for(;a>o;o++)u=i?i[o]:o,r=t(r,n[u],u,n);return r},h.reduceRight=h.foldr=function(n,t,r,e){null==n&&(n=[]),t=g(t,e,4);var u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;if(arguments.length<3){if(!a)throw new TypeError(v);r=n[i?i[--a]:--a]}for(;a--;)u=i?i[a]:a,r=t(r,n[u],u,n);return r},h.find=h.detect=function(n,t,r){var e;return t=h.iteratee(t,r),h.some(n,function(n,r,u){return t(n,r,u)?(e=n,!0):void 0}),e},h.filter=h.select=function(n,t,r){var e=[];return null==n?e:(t=h.iteratee(t,r),h.each(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e)},h.reject=function(n,t,r){return h.filter(n,h.negate(h.iteratee(t)),r)},h.every=h.all=function(n,t,r){if(null==n)return!0;t=h.iteratee(t,r);var e,u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;for(e=0;a>e;e++)if(u=i?i[e]:e,!t(n[u],u,n))return!1;return!0},h.some=h.any=function(n,t,r){if(null==n)return!1;t=h.iteratee(t,r);var e,u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;for(e=0;a>e;e++)if(u=i?i[e]:e,t(n[u],u,n))return!0;return!1},h.contains=h.include=function(n,t){return null==n?!1:(n.length!==+n.length&&(n=h.values(n)),h.indexOf(n,t)>=0)},h.invoke=function(n,t){var r=a.call(arguments,2),e=h.isFunction(t);return h.map(n,function(n){return(e?t:n[t]).apply(n,r)})},h.pluck=function(n,t){return h.map(n,h.property(t))},h.where=function(n,t){return h.filter(n,h.matches(t))},h.findWhere=function(n,t){return h.find(n,h.matches(t))},h.max=function(n,t,r){var e,u,i=-1/0,a=-1/0;if(null==t&&null!=n){n=n.length===+n.length?n:h.values(n);for(var o=0,l=n.length;l>o;o++)e=n[o],e>i&&(i=e)}else t=h.iteratee(t,r),h.each(n,function(n,r,e){u=t(n,r,e),(u>a||u===-1/0&&i===-1/0)&&(i=n,a=u)});return i},h.min=function(n,t,r){var e,u,i=1/0,a=1/0;if(null==t&&null!=n){n=n.length===+n.length?n:h.values(n);for(var o=0,l=n.length;l>o;o++)e=n[o],i>e&&(i=e)}else t=h.iteratee(t,r),h.each(n,function(n,r,e){u=t(n,r,e),(a>u||1/0===u&&1/0===i)&&(i=n,a=u)});return i},h.shuffle=function(n){for(var t,r=n&&n.length===+n.length?n:h.values(n),e=r.length,u=Array(e),i=0;e>i;i++)t=h.random(0,i),t!==i&&(u[i]=u[t]),u[t]=r[i];return u},h.sample=function(n,t,r){return null==t||r?(n.length!==+n.length&&(n=h.values(n)),n[h.random(n.length-1)]):h.shuffle(n).slice(0,Math.max(0,t))},h.sortBy=function(n,t,r){return t=h.iteratee(t,r),h.pluck(h.map(n,function(n,r,e){return{value:n,index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var m=function(n){return function(t,r,e){var u={};return r=h.iteratee(r,e),h.each(t,function(e,i){var a=r(e,i,t);n(u,e,a)}),u}};h.groupBy=m(function(n,t,r){h.has(n,r)?n[r].push(t):n[r]=[t]}),h.indexBy=m(function(n,t,r){n[r]=t}),h.countBy=m(function(n,t,r){h.has(n,r)?n[r]++:n[r]=1}),h.sortedIndex=function(n,t,r,e){r=h.iteratee(r,e,1);for(var u=r(t),i=0,a=n.length;a>i;){var o=i+a>>>1;r(n[o])<u?i=o+1:a=o}return i},h.toArray=function(n){return n?h.isArray(n)?a.call(n):n.length===+n.length?h.map(n,h.identity):h.values(n):[]},h.size=function(n){return null==n?0:n.length===+n.length?n.length:h.keys(n).length},h.partition=function(n,t,r){t=h.iteratee(t,r);var e=[],u=[];return h.each(n,function(n,r,i){(t(n,r,i)?e:u).push(n)}),[e,u]},h.first=h.head=h.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:0>t?[]:a.call(n,0,t)},h.initial=function(n,t,r){return a.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},h.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:a.call(n,Math.max(n.length-t,0))},h.rest=h.tail=h.drop=function(n,t,r){return a.call(n,null==t||r?1:t)},h.compact=function(n){return h.filter(n,h.identity)};var y=function(n,t,r,e){if(t&&h.every(n,h.isArray))return o.apply(e,n);for(var u=0,a=n.length;a>u;u++){var l=n[u];h.isArray(l)||h.isArguments(l)?t?i.apply(e,l):y(l,t,r,e):r||e.push(l)}return e};h.flatten=function(n,t){return y(n,t,!1,[])},h.without=function(n){return h.difference(n,a.call(arguments,1))},h.uniq=h.unique=function(n,t,r,e){if(null==n)return[];h.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=h.iteratee(r,e));for(var u=[],i=[],a=0,o=n.length;o>a;a++){var l=n[a];if(t)a&&i===l||u.push(l),i=l;else if(r){var c=r(l,a,n);h.indexOf(i,c)<0&&(i.push(c),u.push(l))}else h.indexOf(u,l)<0&&u.push(l)}return u},h.union=function(){return h.uniq(y(arguments,!0,!0,[]))},h.intersection=function(n){if(null==n)return[];for(var t=[],r=arguments.length,e=0,u=n.length;u>e;e++){var i=n[e];if(!h.contains(t,i)){for(var a=1;r>a&&h.contains(arguments[a],i);a++);a===r&&t.push(i)}}return t},h.difference=function(n){var t=y(a.call(arguments,1),!0,!0,[]);return h.filter(n,function(n){return!h.contains(t,n)})},h.zip=function(n){if(null==n)return[];for(var t=h.max(arguments,"length").length,r=Array(t),e=0;t>e;e++)r[e]=h.pluck(arguments,e);return r},h.object=function(n,t){if(null==n)return{};for(var r={},e=0,u=n.length;u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},h.indexOf=function(n,t,r){if(null==n)return-1;var e=0,u=n.length;if(r){if("number"!=typeof r)return e=h.sortedIndex(n,t),n[e]===t?e:-1;e=0>r?Math.max(0,u+r):r}for(;u>e;e++)if(n[e]===t)return e;return-1},h.lastIndexOf=function(n,t,r){if(null==n)return-1;var e=n.length;for("number"==typeof r&&(e=0>r?e+r+1:Math.min(e,r+1));--e>=0;)if(n[e]===t)return e;return-1},h.range=function(n,t,r){arguments.length<=1&&(t=n||0,n=0),r=r||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;e>i;i++,n+=r)u[i]=n;return u};var d=function(){};h.bind=function(n,t){var r,e;if(p&&n.bind===p)return p.apply(n,a.call(arguments,1));if(!h.isFunction(n))throw new TypeError("Bind must be called on a function");return r=a.call(arguments,2),e=function(){if(!(this instanceof e))return n.apply(t,r.concat(a.call(arguments)));d.prototype=n.prototype;var u=new d;d.prototype=null;var i=n.apply(u,r.concat(a.call(arguments)));return h.isObject(i)?i:u}},h.partial=function(n){var t=a.call(arguments,1);return function(){for(var r=0,e=t.slice(),u=0,i=e.length;i>u;u++)e[u]===h&&(e[u]=arguments[r++]);for(;r<arguments.length;)e.push(arguments[r++]);return n.apply(this,e)}},h.bindAll=function(n){var t,r,e=arguments.length;if(1>=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=h.bind(n[r],n);return n},h.memoize=function(n,t){var r=function(e){var u=r.cache,i=t?t.apply(this,arguments):e;return h.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},h.delay=function(n,t){var r=a.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},h.defer=function(n){return h.delay.apply(h,[n,1].concat(a.call(arguments,1)))},h.throttle=function(n,t,r){var e,u,i,a=null,o=0;r||(r={});var l=function(){o=r.leading===!1?0:h.now(),a=null,i=n.apply(e,u),a||(e=u=null)};return function(){var c=h.now();o||r.leading!==!1||(o=c);var f=t-(c-o);return e=this,u=arguments,0>=f||f>t?(clearTimeout(a),a=null,o=c,i=n.apply(e,u),a||(e=u=null)):a||r.trailing===!1||(a=setTimeout(l,f)),i}},h.debounce=function(n,t,r){var e,u,i,a,o,l=function(){var c=h.now()-a;t>c&&c>0?e=setTimeout(l,t-c):(e=null,r||(o=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,a=h.now();var c=r&&!e;return e||(e=setTimeout(l,t)),c&&(o=n.apply(i,u),i=u=null),o}},h.wrap=function(n,t){return h.partial(t,n)},h.negate=function(n){return function(){return!n.apply(this,arguments)}},h.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},h.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},h.before=function(n,t){var r;return function(){return--n>0?r=t.apply(this,arguments):t=null,r}},h.once=h.partial(h.before,2),h.keys=function(n){if(!h.isObject(n))return[];if(s)return s(n);var t=[];for(var r in n)h.has(n,r)&&t.push(r);return t},h.values=function(n){for(var t=h.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},h.pairs=function(n){for(var t=h.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},h.invert=function(n){for(var t={},r=h.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},h.functions=h.methods=function(n){var t=[];for(var r in n)h.isFunction(n[r])&&t.push(r);return t.sort()},h.extend=function(n){if(!h.isObject(n))return n;for(var t,r,e=1,u=arguments.length;u>e;e++){t=arguments[e];for(r in t)c.call(t,r)&&(n[r]=t[r])}return n},h.pick=function(n,t,r){var e,u={};if(null==n)return u;if(h.isFunction(t)){t=g(t,r);for(e in n){var i=n[e];t(i,e,n)&&(u[e]=i)}}else{var l=o.apply([],a.call(arguments,1));n=new Object(n);for(var c=0,f=l.length;f>c;c++)e=l[c],e in n&&(u[e]=n[e])}return u},h.omit=function(n,t,r){if(h.isFunction(t))t=h.negate(t);else{var e=h.map(o.apply([],a.call(arguments,1)),String);t=function(n,t){return!h.contains(e,t)}}return h.pick(n,t,r)},h.defaults=function(n){if(!h.isObject(n))return n;for(var t=1,r=arguments.length;r>t;t++){var e=arguments[t];for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n},h.clone=function(n){return h.isObject(n)?h.isArray(n)?n.slice():h.extend({},n):n},h.tap=function(n,t){return t(n),n};var b=function(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof h&&(n=n._wrapped),t instanceof h&&(t=t._wrapped);var u=l.call(n);if(u!==l.call(t))return!1;switch(u){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case"[object Date]":case"[object Boolean]":return+n===+t}if("object"!=typeof n||"object"!=typeof t)return!1;for(var i=r.length;i--;)if(r[i]===n)return e[i]===t;var a=n.constructor,o=t.constructor;if(a!==o&&"constructor"in n&&"constructor"in t&&!(h.isFunction(a)&&a instanceof a&&h.isFunction(o)&&o instanceof o))return!1;r.push(n),e.push(t);var c,f;if("[object Array]"===u){if(c=n.length,f=c===t.length)for(;c--&&(f=b(n[c],t[c],r,e)););}else{var s,p=h.keys(n);if(c=p.length,f=h.keys(t).length===c)for(;c--&&(s=p[c],f=h.has(t,s)&&b(n[s],t[s],r,e)););}return r.pop(),e.pop(),f};h.isEqual=function(n,t){return b(n,t,[],[])},h.isEmpty=function(n){if(null==n)return!0;if(h.isArray(n)||h.isString(n)||h.isArguments(n))return 0===n.length;for(var t in n)if(h.has(n,t))return!1;return!0},h.isElement=function(n){return!(!n||1!==n.nodeType)},h.isArray=f||function(n){return"[object Array]"===l.call(n)},h.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},h.each(["Arguments","Function","String","Number","Date","RegExp"],function(n){h["is"+n]=function(t){return l.call(t)==="[object "+n+"]"}}),h.isArguments(arguments)||(h.isArguments=function(n){return h.has(n,"callee")}),"function"!=typeof/./&&(h.isFunction=function(n){return"function"==typeof n||!1}),h.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},h.isNaN=function(n){return h.isNumber(n)&&n!==+n},h.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===l.call(n)},h.isNull=function(n){return null===n},h.isUndefined=function(n){return n===void 0},h.has=function(n,t){return null!=n&&c.call(n,t)},h.noConflict=function(){return n._=t,this},h.identity=function(n){return n},h.constant=function(n){return function(){return n}},h.noop=function(){},h.property=function(n){return function(t){return t[n]}},h.matches=function(n){var t=h.pairs(n),r=t.length;return function(n){if(null==n)return!r;n=new Object(n);for(var e=0;r>e;e++){var u=t[e],i=u[0];if(u[1]!==n[i]||!(i in n))return!1}return!0}},h.times=function(n,t,r){var e=Array(Math.max(0,n));t=g(t,r,1);for(var u=0;n>u;u++)e[u]=t(u);return e},h.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},h.now=Date.now||function(){return(new Date).getTime()};var _={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},w=h.invert(_),j=function(n){var t=function(t){return n[t]},r="(?:"+h.keys(n).join("|")+")",e=RegExp(r),u=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,t):n}};h.escape=j(_),h.unescape=j(w),h.result=function(n,t){if(null==n)return void 0;var r=n[t];return h.isFunction(r)?n[t]():r};var x=0;h.uniqueId=function(n){var t=++x+"";return n?n+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var A=/(.)^/,k={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},O=/\\|'|\r|\n|\u2028|\u2029/g,F=function(n){return"\\"+k[n]};h.template=function(n,t,r){!t&&r&&(t=r),t=h.defaults({},t,h.templateSettings);var e=RegExp([(t.escape||A).source,(t.interpolate||A).source,(t.evaluate||A).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,function(t,r,e,a,o){return i+=n.slice(u,o).replace(O,F),u=o+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var a=new Function(t.variable||"obj","_",i)}catch(o){throw o.source=i,o}var l=function(n){return a.call(this,n,h)},c=t.variable||"obj";return l.source="function("+c+"){\n"+i+"}",l},h.chain=function(n){var t=h(n);return t._chain=!0,t};var E=function(n){return this._chain?h(n).chain():n};h.mixin=function(n){h.each(h.functions(n),function(t){var r=h[t]=n[t];h.prototype[t]=function(){var n=[this._wrapped];return i.apply(n,arguments),E.call(this,r.apply(h,n))}})},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=r[n];h.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],E.call(this,r)}}),h.each(["concat","join","slice"],function(n){var t=r[n];h.prototype[n]=function(){return E.call(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return h})}).call(this);
|
6
|
+
//# sourceMappingURL=underscore-min.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"underscore-min.js","sources":["underscore.js"],"names":["root","this","previousUnderscore","_","ArrayProto","Array","prototype","ObjProto","Object","FuncProto","Function","push","slice","concat","toString","hasOwnProperty","nativeIsArray","isArray","nativeKeys","keys","nativeBind","bind","obj","_wrapped","exports","module","VERSION","createCallback","func","context","argCount","value","call","other","index","collection","accumulator","apply","arguments","iteratee","identity","isFunction","isObject","matches","property","each","forEach","i","length","map","collect","currentKey","results","reduceError","reduce","foldl","inject","memo","TypeError","reduceRight","foldr","find","detect","predicate","result","some","list","filter","select","reject","negate","every","all","any","contains","include","target","values","indexOf","invoke","method","args","isFunc","pluck","key","where","attrs","findWhere","max","computed","Infinity","lastComputed","min","shuffle","rand","set","shuffled","random","sample","n","guard","Math","sortBy","criteria","sort","left","right","a","b","group","behavior","groupBy","has","indexBy","countBy","sortedIndex","array","low","high","mid","toArray","size","partition","pass","fail","first","head","take","initial","last","rest","tail","drop","compact","flatten","input","shallow","strict","output","isArguments","without","difference","uniq","unique","isSorted","isBoolean","seen","union","intersection","argsLength","item","j","zip","object","lastIndexOf","from","idx","range","start","stop","step","ceil","Ctor","bound","self","partial","boundArgs","position","bindAll","Error","memoize","hasher","cache","address","delay","wait","setTimeout","defer","throttle","options","timeout","previous","later","leading","now","remaining","clearTimeout","trailing","debounce","immediate","timestamp","callNow","wrap","wrapper","compose","after","times","before","once","pairs","invert","functions","methods","names","extend","source","prop","pick","omit","String","defaults","clone","tap","interceptor","eq","aStack","bStack","className","aCtor","constructor","bCtor","pop","isEqual","isEmpty","isString","isElement","nodeType","type","name","isFinite","isNaN","parseFloat","isNumber","isNull","isUndefined","noConflict","constant","noop","pair","accum","floor","Date","getTime","escapeMap","&","<",">","\"","'","`","unescapeMap","createEscaper","escaper","match","join","testRegexp","RegExp","replaceRegexp","string","test","replace","escape","unescape","idCounter","uniqueId","prefix","id","templateSettings","evaluate","interpolate","noMatch","escapes","\\","\r","\n","
","
","escapeChar","template","text","settings","oldSettings","matcher","offset","variable","render","e","data","argument","chain","instance","_chain","mixin","define","amd"],"mappings":";;;;CAKC,WAMC,GAAIA,GAAOC,KAGPC,EAAqBF,EAAKG,EAG1BC,EAAaC,MAAMC,UAAWC,EAAWC,OAAOF,UAAWG,EAAYC,SAASJ,UAIlFK,EAAmBP,EAAWO,KAC9BC,EAAmBR,EAAWQ,MAC9BC,EAAmBT,EAAWS,OAC9BC,EAAmBP,EAASO,SAC5BC,EAAmBR,EAASQ,eAK5BC,EAAqBX,MAAMY,QAC3BC,EAAqBV,OAAOW,KAC5BC,EAAqBX,EAAUY,KAG7BlB,EAAI,SAASmB,GACf,MAAIA,aAAenB,GAAUmB,EACvBrB,eAAgBE,QACtBF,KAAKsB,SAAWD,GADiB,GAAInB,GAAEmB,GAOlB,oBAAZE,UACa,mBAAXC,SAA0BA,OAAOD,UAC1CA,QAAUC,OAAOD,QAAUrB,GAE7BqB,QAAQrB,EAAIA,GAEZH,EAAKG,EAAIA,EAIXA,EAAEuB,QAAU,OAKZ,IAAIC,GAAiB,SAASC,EAAMC,EAASC,GAC3C,GAAID,QAAiB,GAAG,MAAOD,EAC/B,QAAoB,MAAZE,EAAmB,EAAIA,GAC7B,IAAK,GAAG,MAAO,UAASC,GACtB,MAAOH,GAAKI,KAAKH,EAASE,GAE5B,KAAK,GAAG,MAAO,UAASA,EAAOE,GAC7B,MAAOL,GAAKI,KAAKH,EAASE,EAAOE,GAEnC,KAAK,GAAG,MAAO,UAASF,EAAOG,EAAOC,GACpC,MAAOP,GAAKI,KAAKH,EAASE,EAAOG,EAAOC,GAE1C,KAAK,GAAG,MAAO,UAASC,EAAaL,EAAOG,EAAOC,GACjD,MAAOP,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