workarea-one_theme 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.editorconfig +20 -0
- data/.eslintignore +1 -0
- data/.eslintrc +25 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
- data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/workflows/ci.yml +60 -0
- data/.gitignore +21 -0
- data/.rubocop.yml +3 -0
- data/.stylelintrc.json +8 -0
- data/CHANGELOG.md +267 -0
- data/CODE_OF_CONDUCT.md +3 -0
- data/CONTRIBUTING.md +3 -0
- data/Gemfile +20 -0
- data/LICENSE.md +3 -0
- data/README.md +173 -0
- data/Rakefile +63 -0
- data/app/assets/fonts/workarea/storefront/Hind/hind_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Hind/hind_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Hind/hind_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Hind/hind_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_bolditalic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_bolditalic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_italic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_italic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bolditalic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bolditalic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_italic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_italic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_bolditalic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_bolditalic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_italic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_italic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_italic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_italic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_regular_webfont.woff2 +0 -0
- data/app/assets/images/workarea/admin/content_block_types/hero_slider.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/taxonomy_with_category_summary.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/taxonomy_with_products.svg +1 -0
- data/app/assets/images/workarea/storefront/dialog_close.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/account.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/arrow_left.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/arrow_right.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/cart.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/chevron_down.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/chevron_right.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/search.svg +1 -0
- data/app/assets/images/workarea/storefront/logo.png +0 -0
- data/app/assets/javascripts/workarea/storefront/application.js.erb +147 -0
- data/app/assets/javascripts/workarea/storefront/clothing/modules/product_details_color_buttons.js +86 -0
- data/app/assets/javascripts/workarea/storefront/dependencies/jquery.payment.js +655 -0
- data/app/assets/javascripts/workarea/storefront/modules/address_region_fields.js +93 -0
- data/app/assets/javascripts/workarea/storefront/modules/cart_indicator.js +35 -0
- data/app/assets/javascripts/workarea/storefront/modules/checkout_primary_payments.js +136 -0
- data/app/assets/javascripts/workarea/storefront/modules/header_search_ui.js +64 -0
- data/app/assets/javascripts/workarea/storefront/modules/mobile_filters.js +79 -0
- data/app/assets/javascripts/workarea/storefront/modules/mobile_nav_button.js +137 -0
- data/app/assets/javascripts/workarea/storefront/modules/quantity_control.js +56 -0
- data/app/assets/javascripts/workarea/storefront/modules/utility_nav_dropdown.js +43 -0
- data/app/assets/javascripts/workarea/storefront/one_theme/config.js +20 -0
- data/app/assets/javascripts/workarea/storefront/product_quickview/templates/quickview_button.jst.ejs +3 -0
- data/app/assets/javascripts/workarea/storefront/reviews/modules/product_reviews_sort_menus.js +82 -0
- data/app/assets/javascripts/workarea/storefront/reviews/templates/sort_by_property.jst.ejs +19 -0
- data/app/assets/javascripts/workarea/storefront/templates/log_out_link.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/storefront/templates/saved_addresses_property.jst.ejs +23 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_autocomplete.scss +17 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_dialog.scss +150 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_menu.scss +42 -0
- data/app/assets/stylesheets/one_theme/.keep +0 -0
- data/app/assets/stylesheets/workarea/storefront/base/_forms.scss +197 -0
- data/app/assets/stylesheets/workarea/storefront/base/_tables.scss +32 -0
- data/app/assets/stylesheets/workarea/storefront/blog/components/_blog_entry.scss +139 -0
- data/app/assets/stylesheets/workarea/storefront/blog/components/_blog_entry_summary.scss +90 -0
- data/app/assets/stylesheets/workarea/storefront/clothing/components/_color_options.scss +57 -0
- data/app/assets/stylesheets/workarea/storefront/clothing/components/_size_options.scss +123 -0
- data/app/assets/stylesheets/workarea/storefront/components/_account_dashboard.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/components/_box.scss +45 -0
- data/app/assets/stylesheets/workarea/storefront/components/_breadcrumbs.scss +27 -0
- data/app/assets/stylesheets/workarea/storefront/components/_button.scss +72 -0
- data/app/assets/stylesheets/workarea/storefront/components/_button_property.scss +41 -0
- data/app/assets/stylesheets/workarea/storefront/components/_cart.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/components/_category_summary_content_block.scss +78 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_addresses.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_payment.scss +58 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_progress.scss +47 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_shipping.scss +15 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_step_summary.scss +47 -0
- data/app/assets/stylesheets/workarea/storefront/components/_color_box.scss +48 -0
- data/app/assets/stylesheets/workarea/storefront/components/_data_card.scss +70 -0
- data/app/assets/stylesheets/workarea/storefront/components/_hamburger.scss +107 -0
- data/app/assets/stylesheets/workarea/storefront/components/_header.scss +31 -0
- data/app/assets/stylesheets/workarea/storefront/components/_hero_slider_content_block.scss +75 -0
- data/app/assets/stylesheets/workarea/storefront/components/_loading.scss +92 -0
- data/app/assets/stylesheets/workarea/storefront/components/_mobile_filters.scss +42 -0
- data/app/assets/stylesheets/workarea/storefront/components/_mobile_nav.scss +146 -0
- data/app/assets/stylesheets/workarea/storefront/components/_option_button.scss +45 -0
- data/app/assets/stylesheets/workarea/storefront/components/_order_help_menu.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/components/_order_summary.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_container.scss +31 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_content.scss +30 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_footer.scss +96 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_header.scss +188 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_messages.scss +36 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_sub_footer.scss +39 -0
- data/app/assets/stylesheets/workarea/storefront/components/_pagination.scss +10 -0
- data/app/assets/stylesheets/workarea/storefront/components/_payment_icon.scss +29 -0
- data/app/assets/stylesheets/workarea/storefront/components/_primary_nav.scss +99 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_detail_container.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_details.scss +94 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_list.scss +182 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_list_content_block.scss +20 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_media.scss +109 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_prices.scss +45 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_summary.scss +92 -0
- data/app/assets/stylesheets/workarea/storefront/components/_promo_code_accordion.scss +13 -0
- data/app/assets/stylesheets/workarea/storefront/components/_property.scss +68 -0
- data/app/assets/stylesheets/workarea/storefront/components/_quantity_control.scss +77 -0
- data/app/assets/stylesheets/workarea/storefront/components/_result_filters.scss +57 -0
- data/app/assets/stylesheets/workarea/storefront/components/_select_menu.scss +68 -0
- data/app/assets/stylesheets/workarea/storefront/components/_svg_icon.scss +78 -0
- data/app/assets/stylesheets/workarea/storefront/components/_taxonomy_content_block.scss +173 -0
- data/app/assets/stylesheets/workarea/storefront/components/_text_box.scss +57 -0
- data/app/assets/stylesheets/workarea/storefront/components/_text_button.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/components/_utility_nav.scss +49 -0
- data/app/assets/stylesheets/workarea/storefront/components/_value.scss +51 -0
- data/app/assets/stylesheets/workarea/storefront/email/_settings.scss +23 -0
- data/app/assets/stylesheets/workarea/storefront/generic/_fonts.scss.erb +11 -0
- data/app/assets/stylesheets/workarea/storefront/objects/_content_wrapper.scss +23 -0
- data/app/assets/stylesheets/workarea/storefront/product_quickview/components/_quickview_button.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_reviews.scss +66 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_write_review.scss +71 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_colors.scss.erb +21 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_font_families.scss.erb +6 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_global.scss +39 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_typography.scss +8 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_z_indexes.scss +43 -0
- data/app/assets/stylesheets/workarea/storefront/share/components/_share_buttons.scss +22 -0
- data/app/assets/stylesheets/workarea/storefront/slick_slider/components/_slick_slider.scss +171 -0
- data/app/assets/stylesheets/workarea/storefront/swatches/components/_swatch_facet.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/swatches/components/_swatch_options.scss +55 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/_midnight_color_scheme.scss +110 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/_one_color_scheme.scss +104 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/_workarea_color_scheme.scss +105 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_hind.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_lora.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_muli.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_playfair_display.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_roboto.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_source_serif_pro.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/tools/_checkout_section.scss +12 -0
- data/app/assets/stylesheets/workarea/storefront/tools/_full_bleed_container.scss +15 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_headings.scss +81 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_links.scss +27 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_text.scss +30 -0
- data/app/helpers/workarea/storefront/one_theme_helper.rb +71 -0
- data/app/seeds/workarea/browse_navigation_seeds.rb +35 -0
- data/app/seeds/workarea/content_block_page_seeds.rb +22 -0
- data/app/seeds/workarea/theme_home_page_seeds.rb +58 -0
- data/app/seeds/workarea/theme_layout_content_seeds.rb +41 -0
- data/app/view_models/workarea/storefront/content_blocks/category_summary_view_model.decorator +21 -0
- data/app/view_models/workarea/storefront/content_blocks/hero_slider_block_view_model.rb +44 -0
- data/app/view_models/workarea/storefront/content_blocks/product_list_view_model.decorator +50 -0
- data/app/view_models/workarea/storefront/content_blocks/taxonomy_with_category_view_model.rb +49 -0
- data/app/view_models/workarea/storefront/content_blocks/taxonomy_with_products_view_model.rb +21 -0
- data/app/view_models/workarea/storefront/product_view_model.decorator +11 -0
- data/app/views/layouts/workarea/storefront/_wish_lists_link.html.haml +4 -0
- data/app/views/layouts/workarea/storefront/application.html.haml +211 -0
- data/app/views/layouts/workarea/storefront/checkout.html.haml +97 -0
- data/app/views/workarea/storefront/blog_comments/index.html.haml +31 -0
- data/app/views/workarea/storefront/blog_entries/_summary.html.haml +26 -0
- data/app/views/workarea/storefront/blog_entries/show.html.haml +85 -0
- data/app/views/workarea/storefront/blogs/_blog_navigation.html.haml +7 -0
- data/app/views/workarea/storefront/blogs/index.html.haml +47 -0
- data/app/views/workarea/storefront/cart_items/create.html.haml +66 -0
- data/app/views/workarea/storefront/carts/show.html.haml +175 -0
- data/app/views/workarea/storefront/categories/show.html.haml +105 -0
- data/app/views/workarea/storefront/checkouts/_gift_card_payment.html.haml +38 -0
- data/app/views/workarea/storefront/checkouts/_summary.html.haml +102 -0
- data/app/views/workarea/storefront/checkouts/addresses.html.haml +56 -0
- data/app/views/workarea/storefront/checkouts/confirmation.html.haml +58 -0
- data/app/views/workarea/storefront/checkouts/payment.html.haml +186 -0
- data/app/views/workarea/storefront/checkouts/shipping.html.haml +38 -0
- data/app/views/workarea/storefront/content_blocks/_blog_entry.html.haml +19 -0
- data/app/views/workarea/storefront/content_blocks/_category_summary.html.haml +20 -0
- data/app/views/workarea/storefront/content_blocks/_hero_slider.html.haml +15 -0
- data/app/views/workarea/storefront/content_blocks/_product_list.html.haml +11 -0
- data/app/views/workarea/storefront/content_blocks/_social_networks.html.haml +17 -0
- data/app/views/workarea/storefront/content_blocks/_taxonomy_with_category_summary.html.haml +26 -0
- data/app/views/workarea/storefront/content_blocks/_taxonomy_with_products.html.haml +26 -0
- data/app/views/workarea/storefront/menus/index.html.haml +17 -0
- data/app/views/workarea/storefront/orders/_summary.html.haml +286 -0
- data/app/views/workarea/storefront/products/_media.html.haml +22 -0
- data/app/views/workarea/storefront/products/_media_carousel.html.haml +25 -0
- data/app/views/workarea/storefront/products/_pricing.html.haml +40 -0
- data/app/views/workarea/storefront/products/_reviews.html.haml +27 -0
- data/app/views/workarea/storefront/products/_subscription_fields.html.haml +15 -0
- data/app/views/workarea/storefront/products/_summary.html.haml +16 -0
- data/app/views/workarea/storefront/products/_swatch_summary.html.haml +17 -0
- data/app/views/workarea/storefront/products/package_show.html.haml +46 -0
- data/app/views/workarea/storefront/products/show.html.haml +53 -0
- data/app/views/workarea/storefront/products/templates/_generic.html.haml +61 -0
- data/app/views/workarea/storefront/products/templates/_gift_card.html.haml +68 -0
- data/app/views/workarea/storefront/products/templates/_option_selects.html.haml +61 -0
- data/app/views/workarea/storefront/products/templates/_option_thumbnails.html.haml +67 -0
- data/app/views/workarea/storefront/products/templates/_swatches.html.haml +78 -0
- data/app/views/workarea/storefront/reviews/new.html.haml +72 -0
- data/app/views/workarea/storefront/searches/content.html.haml +78 -0
- data/app/views/workarea/storefront/searches/show.html.haml +97 -0
- data/app/views/workarea/storefront/shared/_address_fields.html.haml +109 -0
- data/app/views/workarea/storefront/shares/_share_buttons.html.haml +17 -0
- data/app/views/workarea/storefront/style_guides/base/_forms.html.haml +91 -0
- data/app/views/workarea/storefront/style_guides/components/_breadcrumbs.html.haml +13 -0
- data/app/views/workarea/storefront/style_guides/components/_button.html.haml +69 -0
- data/app/views/workarea/storefront/style_guides/components/_category_summary_content_block.html.haml +54 -0
- data/app/views/workarea/storefront/style_guides/components/_header.html.haml +18 -0
- data/app/views/workarea/storefront/style_guides/components/_hero_slider_content_block.html.haml +46 -0
- data/app/views/workarea/storefront/style_guides/components/_mobile_filters.html.haml +17 -0
- data/app/views/workarea/storefront/style_guides/components/_product_list_content_block.html.haml +46 -0
- data/app/views/workarea/storefront/style_guides/components/_product_summary.html.haml +47 -0
- data/app/views/workarea/storefront/style_guides/components/_svg_icon.html.haml +63 -0
- data/app/views/workarea/storefront/style_guides/components/_taxonomy_with_category_summary_content_block.html.haml +33 -0
- data/app/views/workarea/storefront/style_guides/components/_taxonomy_with_products_content_block.html.haml +33 -0
- data/app/views/workarea/storefront/style_guides/components/_text_box.html.haml +63 -0
- data/app/views/workarea/storefront/style_guides/settings/_color_variables.html.haml +79 -0
- data/app/views/workarea/storefront/style_guides/settings/color_schemes/_midnight_color_scheme.html.haml +7 -0
- data/app/views/workarea/storefront/style_guides/settings/color_schemes/_one_color_scheme.html.haml +7 -0
- data/app/views/workarea/storefront/style_guides/settings/color_schemes/_workarea_color_scheme.html.haml +8 -0
- data/app/views/workarea/storefront/style_guides/typography/_headings.html.haml +47 -0
- data/app/views/workarea/storefront/style_guides/typography/_links.html.haml +27 -0
- data/app/views/workarea/storefront/users/accounts/_wish_list_summary.html.haml +16 -0
- data/app/views/workarea/storefront/users/accounts/edit.html.haml +41 -0
- data/app/views/workarea/storefront/users/accounts/show.html.haml +118 -0
- data/app/views/workarea/storefront/users/credit_cards/edit.html.haml +74 -0
- data/app/views/workarea/storefront/users/credit_cards/new.html.haml +66 -0
- data/app/views/workarea/storefront/users/orders/index.html.haml +22 -0
- data/app/views/workarea/storefront/users/orders/show.html.haml +31 -0
- data/app/views/workarea/storefront/users/wish_lists/show.html.haml +136 -0
- data/app/views/workarea/storefront/wish_lists/show.html.haml +99 -0
- data/bin/rails +20 -0
- data/config/initializers/appends.rb +62 -0
- data/config/initializers/configuration.rb +9 -0
- data/config/initializers/content_block_types.rb +91 -0
- data/config/initializers/dragonfly.rb +50 -0
- data/config/initializers/seeds.rb +5 -0
- data/config/initializers/theme.rb +16 -0
- data/config/initializers/workarea.rb +3 -0
- data/config/locales/en.yml +26 -0
- data/config/routes.rb +2 -0
- data/lib/tasks/one_theme_tasks.rake +4 -0
- data/lib/workarea/one_theme.rb +24 -0
- data/lib/workarea/one_theme/engine.rb +13 -0
- data/lib/workarea/one_theme/version.rb +5 -0
- data/package.json +9 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/config/manifest.js +4 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +38 -0
- data/test/dummy/bin/update +29 -0
- data/test/dummy/bin/yarn +11 -0
- data/test/dummy/config.ru +5 -0
- data/test/dummy/config/application.rb +29 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/cable.yml +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +54 -0
- data/test/dummy/config/environments/production.rb +91 -0
- data/test/dummy/config/environments/test.rb +44 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/test/dummy/config/initializers/assets.rb +14 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/workarea.rb +5 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +33 -0
- data/test/dummy/config/puma.rb +56 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config/secrets.yml +32 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/db/seeds.rb +2 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/package.json +5 -0
- data/test/helpers/workarea/storefront/reviews_helper_test.decorator +11 -0
- data/test/integration/workarea/blog/wordpress_import_integration_test.decorator +27 -0
- data/test/integration/workarea/storefront/sharing_integration_test.decorator +40 -0
- data/test/integration/workarea/storefront/swatches_integration_test.decorator +28 -0
- data/test/system/workarea/admin/guest_browsing_system_test.decorator +40 -0
- data/test/system/workarea/storefront/analytics_system_test.decorator +51 -0
- data/test/system/workarea/storefront/browse_swatches_system_test.decorator +48 -0
- data/test/system/workarea/storefront/cart_items_system_test.decorator +98 -0
- data/test/system/workarea/storefront/categories_system_test.decorator +100 -0
- data/test/system/workarea/storefront/content_search_autocomplete_system_test.decorator +33 -0
- data/test/system/workarea/storefront/content_search_system_test.decorator +21 -0
- data/test/system/workarea/storefront/content_system_test.decorator +21 -0
- data/test/system/workarea/storefront/guest_checkout_system_test.decorator +37 -0
- data/test/system/workarea/storefront/logged_in_checkout_system_test.decorator +34 -0
- data/test/system/workarea/storefront/login_system_test.decorator +94 -0
- data/test/system/workarea/storefront/navigation_system_test.decorator +28 -0
- data/test/system/workarea/storefront/passwords_system_test.decorator +59 -0
- data/test/system/workarea/storefront/review_system_test.decorator +23 -0
- data/test/system/workarea/storefront/search_autocomplete_system_test.decorator +46 -0
- data/test/system/workarea/storefront/search_system_test.decorator +71 -0
- data/test/teaspoon_env.rb +6 -0
- data/test/test_helper.rb +10 -0
- data/test/view_models/workarea/storefront/taxonomy_with_category_view_model_test.rb +35 -0
- data/test/view_models/workarea/storefront/taxonomy_with_products_view_model_test.rb +28 -0
- data/workarea-one_theme.gemspec +33 -0
- data/yarn.lock +3290 -0
- metadata +582 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
module Workarea
|
|
2
|
+
Plugin.append_stylesheets(
|
|
3
|
+
"storefront.settings",
|
|
4
|
+
"workarea/storefront/settings/font_families",
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
Plugin.append_stylesheets(
|
|
8
|
+
"storefront.tools",
|
|
9
|
+
"workarea/storefront/tools/checkout_section",
|
|
10
|
+
"workarea/storefront/tools/full_bleed_container"
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
Plugin.append_stylesheets(
|
|
14
|
+
"storefront.components",
|
|
15
|
+
"workarea/storefront/components/hamburger",
|
|
16
|
+
"workarea/storefront/components/utility_nav",
|
|
17
|
+
"workarea/storefront/components/select_menu",
|
|
18
|
+
"workarea/storefront/components/page_sub_footer",
|
|
19
|
+
"workarea/storefront/components/header",
|
|
20
|
+
"workarea/storefront/components/quantity_control",
|
|
21
|
+
"workarea/storefront/components/product_media",
|
|
22
|
+
"workarea/storefront/components/account_dashboard",
|
|
23
|
+
"workarea/storefront/components/hero_slider_content_block",
|
|
24
|
+
"workarea/storefront/components/color_box",
|
|
25
|
+
"workarea/storefront/components/promo_code_accordion"
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
Plugin.append_javascripts(
|
|
29
|
+
"storefront.config",
|
|
30
|
+
"workarea/storefront/one_theme/config"
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
Plugin.append_javascripts(
|
|
34
|
+
"storefront.dependencies",
|
|
35
|
+
"workarea/storefront/dependencies/jquery.payment"
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
Plugin.append_javascripts(
|
|
39
|
+
"storefront.modules",
|
|
40
|
+
"workarea/storefront/modules/cart_indicator",
|
|
41
|
+
"workarea/storefront/modules/utility_nav_dropdown",
|
|
42
|
+
"workarea/storefront/modules/header_search_ui",
|
|
43
|
+
"workarea/storefront/modules/mobile_filters",
|
|
44
|
+
"workarea/storefront/modules/quantity_control"
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
Plugin.remove_partials(
|
|
48
|
+
"storefront.product_summary",
|
|
49
|
+
"workarea/storefront/products/reviews_summary",
|
|
50
|
+
"workarea/storefront/products/quickview_button_placeholder"
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
Plugin.remove_partials(
|
|
54
|
+
"storefront.product_details",
|
|
55
|
+
"workarea/storefront/products/share"
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
Plugin.remove_stylesheets(
|
|
59
|
+
"storefront.components",
|
|
60
|
+
"workarea/storefront/swatches/components/option_button"
|
|
61
|
+
)
|
|
62
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Workarea.configure do |config|
|
|
2
|
+
config.navigation_category_summary_product_count ||= 4
|
|
3
|
+
|
|
4
|
+
config.category_summary_product_count = 4
|
|
5
|
+
|
|
6
|
+
config.content_areas = config.content_areas.merge(
|
|
7
|
+
"layout" => %w(header_promo footer_column_1 footer_column_2 footer_column_3)
|
|
8
|
+
)
|
|
9
|
+
end
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
Workarea.define_content_block_types do
|
|
2
|
+
block_type "Taxonomy With Products" do
|
|
3
|
+
tags %w(taxonomy)
|
|
4
|
+
description "Insert a branch of the site Taxonomy with products"
|
|
5
|
+
view_model "Workarea::Storefront::ContentBlocks::TaxonomyWithProductsViewModel"
|
|
6
|
+
|
|
7
|
+
fieldset "Taxonomy" do
|
|
8
|
+
field "Header", :string
|
|
9
|
+
field "Show Starting Taxon", :boolean, default: true
|
|
10
|
+
field "Start", :taxonomy, required: true, default: -> { Workarea::Navigation::Taxon.first.try(:id).try(:to_s) }
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
field "Products", :products, default: (lambda do
|
|
14
|
+
result = Array.new(3) { Workarea::Catalog::Product.sample.try(:id) }
|
|
15
|
+
result.compact
|
|
16
|
+
end)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
block_type "Taxonomy With Category Summary" do
|
|
20
|
+
tags %w(taxonomy)
|
|
21
|
+
description "Insert a branch of the site Taxonomy with automated products"
|
|
22
|
+
view_model "Workarea::Storefront::ContentBlocks::TaxonomyWithCategoryViewModel"
|
|
23
|
+
|
|
24
|
+
fieldset "Taxonomy" do
|
|
25
|
+
field "Header", :string
|
|
26
|
+
field "Show Starting Taxon", :boolean, default: true
|
|
27
|
+
field "Start", :taxonomy, required: true, default: -> { Workarea::Navigation::Taxon.first.try(:id).try(:to_s) }
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
field "Category", :category, default: -> { Workarea::Catalog::Category.sample.try(:id).try(:to_s) }
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
block_type "Category Summary" do
|
|
34
|
+
description "A category name and its first few products."
|
|
35
|
+
view_model "Workarea::Storefront::ContentBlocks::CategorySummaryViewModel"
|
|
36
|
+
|
|
37
|
+
fieldset "Content" do
|
|
38
|
+
field "Heading", :string, default: "Category Name"
|
|
39
|
+
field "Image", :asset, file_types: "image", default: find_asset_id_by_file_name("100x100.png")
|
|
40
|
+
field "Image Alt", :string
|
|
41
|
+
field "Content Link", :url, default: "/"
|
|
42
|
+
field "Link Text", :string, default: "View all"
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
field "Category", :category, default: -> { Workarea::Catalog::Category.sample.try(:id).try(:to_s) }
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
block_type "Product List" do
|
|
49
|
+
description "A custom list of products."
|
|
50
|
+
|
|
51
|
+
field "Title", :string, default: "Featured"
|
|
52
|
+
field "Products", :products, default: (lambda do
|
|
53
|
+
result = Array.new(5) { Workarea::Catalog::Product.sample.try(:id) }
|
|
54
|
+
result.compact
|
|
55
|
+
end)
|
|
56
|
+
|
|
57
|
+
fieldset "Slider Options" do
|
|
58
|
+
field "Show Dots", :boolean, default: false
|
|
59
|
+
field "Show Arrows", :boolean, default: true
|
|
60
|
+
field "Partial Slide Preview", :boolean, default: false
|
|
61
|
+
field "Auto Rotate", :boolean, default: false
|
|
62
|
+
field "Auto Rotate Speed", :range, default: 4, min: 3, max: 6, step: 0.5, note: "In seconds"
|
|
63
|
+
field "Pause on Hover", :boolean, default: true
|
|
64
|
+
field "Stop On Interaction", :boolean, default: true
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
block_type "Hero Slider" do
|
|
69
|
+
description "Adds a slider with images or text to your pages"
|
|
70
|
+
view_model "Workarea::Storefront::ContentBlocks::HeroSliderBlockViewModel"
|
|
71
|
+
|
|
72
|
+
series 5 do
|
|
73
|
+
field "Image", :asset, file_types: "image", default: find_asset_id_by_file_name("960x470_light.png")
|
|
74
|
+
field "Alt Text", :string
|
|
75
|
+
field "Heading", :string, default: "Summer Essentials"
|
|
76
|
+
field "Sub Heading", :string, default: "Shop now!"
|
|
77
|
+
field "URL", :url, default: "/"
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
fieldset "Options" do
|
|
81
|
+
field "Full Bleed", :boolean, default: false
|
|
82
|
+
field "Show Dots", :boolean, default: false
|
|
83
|
+
field "Show Arrows", :boolean, default: true
|
|
84
|
+
field "Partial Slide Preview", :boolean, default: false
|
|
85
|
+
field "Auto Rotate", :boolean, default: true
|
|
86
|
+
field "Auto Rotate Speed", :range, default: 4, min: 3, max: 6, step: 0.5, note: "In seconds"
|
|
87
|
+
field "Pause on Hover", :boolean, default: true
|
|
88
|
+
field "Stop On Interaction", :boolean, default: true
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
Dragonfly.app(:workarea).configure do
|
|
2
|
+
# PDP Main Image Size
|
|
3
|
+
processor :detail do |content|
|
|
4
|
+
content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
|
|
5
|
+
content.process!(:thumb, "360x480")
|
|
6
|
+
content.process!(:optim)
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
# PDP Main Image Size - retina
|
|
10
|
+
processor :detail_retina do |content|
|
|
11
|
+
content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
|
|
12
|
+
content.process!(:thumb, "720x960")
|
|
13
|
+
content.process!(:optim)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# PDP Main Image Size - mobile
|
|
17
|
+
processor :detail_mobile do |content|
|
|
18
|
+
content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
|
|
19
|
+
content.process!(:thumb, "255x340")
|
|
20
|
+
content.process!(:optim)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# PDP Main Image Size - mobile retina
|
|
24
|
+
processor :detail_mobile_retina do |content|
|
|
25
|
+
content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
|
|
26
|
+
content.process!(:thumb, "510x680")
|
|
27
|
+
content.process!(:optim)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# PDP Thumbnail Image Size
|
|
31
|
+
processor :small_thumb do |content|
|
|
32
|
+
content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
|
|
33
|
+
content.process!(:thumb, "180x240")
|
|
34
|
+
content.process!(:optim)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# PDP Thumbnail Image Size - retina
|
|
38
|
+
processor :small_thumb_retina do |content|
|
|
39
|
+
content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
|
|
40
|
+
content.process!(:thumb, "360x480")
|
|
41
|
+
content.process!(:optim)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Swatch Image Size
|
|
45
|
+
processor :swatch_thumb do |content|
|
|
46
|
+
content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
|
|
47
|
+
content.process!(:thumb, "36x48")
|
|
48
|
+
content.process!(:optim)
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Workarea.configure do |config|
|
|
2
|
+
config.seeds.insert_after("Workarea::SystemContentSeeds", "Workarea::ThemeHomePageSeeds")
|
|
3
|
+
config.seeds.insert_after("Workarea::SystemContentSeeds", "Workarea::ThemeLayoutContentSeeds")
|
|
4
|
+
config.seeds.insert_after("Workarea::SystemContentSeeds", "Workarea::ContentBlockPageSeeds")
|
|
5
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Workarea.configure do |config|
|
|
2
|
+
config.theme = {
|
|
3
|
+
color_schemes: ["one", "workarea", "midnight"],
|
|
4
|
+
color_scheme: "one",
|
|
5
|
+
font_stacks: {
|
|
6
|
+
roboto: '"Roboto", "HelveticaNeue", "Helvetica Neue", sans-serif',
|
|
7
|
+
lora: '"Lora", "Times New Roman", "Georgia", serif',
|
|
8
|
+
hind: '"Hind", Helvetica, Arial, sans-serif',
|
|
9
|
+
source_serif_pro: '"Source Serif Pro", "Times New Roman", Georgia, serif',
|
|
10
|
+
muli: '"Muli", Helvetica, Arial, sans-serif',
|
|
11
|
+
playfair_display: '"Playfair Display", "Times New Roman", Georgia, serif'
|
|
12
|
+
},
|
|
13
|
+
primary_font_family: "roboto",
|
|
14
|
+
secondary_font_family: "lora"
|
|
15
|
+
}
|
|
16
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
en:
|
|
2
|
+
workarea:
|
|
3
|
+
storefront:
|
|
4
|
+
blogs:
|
|
5
|
+
related_products: Featured Products
|
|
6
|
+
checkouts:
|
|
7
|
+
promo_code_toggle: Use a promo code
|
|
8
|
+
content_blocks:
|
|
9
|
+
category_summary:
|
|
10
|
+
view_all: View all
|
|
11
|
+
email_signup:
|
|
12
|
+
heading: Be in the know
|
|
13
|
+
message: Sign up for the latest news, offers and styles
|
|
14
|
+
layouts:
|
|
15
|
+
account_menu: Account Menu
|
|
16
|
+
drop_down_menu: Link with drop down menu
|
|
17
|
+
products:
|
|
18
|
+
close_filter_results: Close Filters
|
|
19
|
+
filter_title: "%{name}"
|
|
20
|
+
shares:
|
|
21
|
+
share_heading: Share
|
|
22
|
+
users:
|
|
23
|
+
account_settings: Account Settings
|
|
24
|
+
your_orders: Your Orders
|
|
25
|
+
wish_lists:
|
|
26
|
+
share_your_wishlist: Share your wishlist
|
data/config/routes.rb
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
require "workarea"
|
|
2
|
+
require "workarea/storefront"
|
|
3
|
+
require "workarea/admin"
|
|
4
|
+
require "workarea/theme"
|
|
5
|
+
require "workarea/product_quickview"
|
|
6
|
+
require "workarea/slick_slider"
|
|
7
|
+
require "workarea/blog"
|
|
8
|
+
require "workarea/content_search"
|
|
9
|
+
require "workarea/filter_dropdowns"
|
|
10
|
+
require "workarea/gift_cards"
|
|
11
|
+
require "workarea/share"
|
|
12
|
+
require "workarea/reviews"
|
|
13
|
+
require "workarea/super_hero"
|
|
14
|
+
require "workarea/wish_lists"
|
|
15
|
+
require "workarea/swatches"
|
|
16
|
+
require "workarea/search_autocomplete"
|
|
17
|
+
|
|
18
|
+
require "workarea/one_theme/engine"
|
|
19
|
+
require "workarea/one_theme/version"
|
|
20
|
+
|
|
21
|
+
module Workarea
|
|
22
|
+
module OneTheme
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Workarea
|
|
2
|
+
module OneTheme
|
|
3
|
+
class Engine < ::Rails::Engine
|
|
4
|
+
include Workarea::Plugin
|
|
5
|
+
include Workarea::Theme
|
|
6
|
+
isolate_namespace Workarea::OneTheme
|
|
7
|
+
|
|
8
|
+
config.to_prepare do
|
|
9
|
+
Storefront::ApplicationController.helper(Storefront::OneThemeHelper)
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
data/package.json
ADDED
data/test/dummy/Rakefile
ADDED
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
+
// listed below.
|
|
3
|
+
//
|
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
|
6
|
+
//
|
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
|
9
|
+
//
|
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
|
11
|
+
// about supported directives.
|
|
12
|
+
//
|
|
13
|
+
//= require_tree .
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
+
* listed below.
|
|
4
|
+
*
|
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
|
7
|
+
*
|
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
|
11
|
+
* It is generally better to create a new file per style scope.
|
|
12
|
+
*
|
|
13
|
+
*= require_tree .
|
|
14
|
+
*= require_self
|
|
15
|
+
*/
|
|
File without changes
|
|
File without changes
|