solidus_starter_frontend 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (301) hide show
  1. checksums.yaml +4 -4
  2. metadata +30 -514
  3. data/.circleci/config.yml +0 -57
  4. data/.erb-lint.yml +0 -22
  5. data/.eslintrc +0 -5
  6. data/.gem_release.yml +0 -5
  7. data/.github/pull_request_template.md +0 -28
  8. data/.github/stale.yml +0 -17
  9. data/.gitignore +0 -17
  10. data/.hound.yml +0 -16
  11. data/.rspec +0 -2
  12. data/.rubocop.yml +0 -19
  13. data/.rubocop_todo.yml +0 -229
  14. data/.scss-lint.yml +0 -4
  15. data/Gemfile +0 -34
  16. data/LICENSE +0 -26
  17. data/README.md +0 -69
  18. data/Rakefile +0 -6
  19. data/app/assets/config/solidus_starter_frontend_manifest.js +0 -2
  20. data/app/assets/javascripts/spree/frontend/cart.js +0 -26
  21. data/app/assets/javascripts/spree/frontend/checkout/address.js +0 -124
  22. data/app/assets/javascripts/spree/frontend/checkout/payment.js +0 -44
  23. data/app/assets/javascripts/spree/frontend/checkout.js +0 -34
  24. data/app/assets/javascripts/spree/frontend/locale_selector.js +0 -9
  25. data/app/assets/javascripts/spree/frontend/product.js +0 -21
  26. data/app/assets/javascripts/spree/frontend/solidus_starter_frontend.js +0 -9
  27. data/app/assets/javascripts/spree/frontend/utils.js.erb +0 -18
  28. data/app/assets/javascripts/spree/frontend.js +0 -6
  29. data/app/assets/stylesheets/spree/frontend/base/_base.scss +0 -29
  30. data/app/assets/stylesheets/spree/frontend/base/_reset.scss +0 -179
  31. data/app/assets/stylesheets/spree/frontend/base/_responsive.scss +0 -21
  32. data/app/assets/stylesheets/spree/frontend/components/account/_account_order.scss +0 -23
  33. data/app/assets/stylesheets/spree/frontend/components/account/_account_summary.scss +0 -17
  34. data/app/assets/stylesheets/spree/frontend/components/auth/_auth_container.scss +0 -11
  35. data/app/assets/stylesheets/spree/frontend/components/auth/_auth_form.scss +0 -5
  36. data/app/assets/stylesheets/spree/frontend/components/brand/_logo.scss +0 -4
  37. data/app/assets/stylesheets/spree/frontend/components/buttons/_button_inline.scss +0 -8
  38. data/app/assets/stylesheets/spree/frontend/components/buttons/_button_primary.scss +0 -26
  39. data/app/assets/stylesheets/spree/frontend/components/cart/_cart_adjustments.scss +0 -6
  40. data/app/assets/stylesheets/spree/frontend/components/cart/_cart_amount_row.scss +0 -11
  41. data/app/assets/stylesheets/spree/frontend/components/cart/_cart_empty.scss +0 -10
  42. data/app/assets/stylesheets/spree/frontend/components/cart/_cart_footer.scss +0 -20
  43. data/app/assets/stylesheets/spree/frontend/components/cart/_cart_header.scss +0 -12
  44. data/app/assets/stylesheets/spree/frontend/components/cart/_cart_item.scss +0 -86
  45. data/app/assets/stylesheets/spree/frontend/components/cart/_cart_link.scss +0 -22
  46. data/app/assets/stylesheets/spree/frontend/components/cart/_cart_page.scss +0 -15
  47. data/app/assets/stylesheets/spree/frontend/components/cart/_cart_secondary_actions.scss +0 -19
  48. data/app/assets/stylesheets/spree/frontend/components/cart/_coupon_code.scss +0 -8
  49. data/app/assets/stylesheets/spree/frontend/components/cart/_item_info.scss +0 -19
  50. data/app/assets/stylesheets/spree/frontend/components/checkout/_checkout.scss +0 -27
  51. data/app/assets/stylesheets/spree/frontend/components/checkout/_checkout_header.scss +0 -19
  52. data/app/assets/stylesheets/spree/frontend/components/checkout/_checkout_summary.scss +0 -31
  53. data/app/assets/stylesheets/spree/frontend/components/checkout/_existing_cards.scss +0 -27
  54. data/app/assets/stylesheets/spree/frontend/components/checkout/_payment_method_controls.scss +0 -5
  55. data/app/assets/stylesheets/spree/frontend/components/checkout/_payment_method_selector.scss +0 -14
  56. data/app/assets/stylesheets/spree/frontend/components/checkout/_progress_steps.scss +0 -38
  57. data/app/assets/stylesheets/spree/frontend/components/checkout/_proposed_shipment.scss +0 -18
  58. data/app/assets/stylesheets/spree/frontend/components/checkout/_shipment_items.scss +0 -50
  59. data/app/assets/stylesheets/spree/frontend/components/checkout/_shipping_methods.scss +0 -9
  60. data/app/assets/stylesheets/spree/frontend/components/checkout/payments/_gateway_payment_method.scss +0 -11
  61. data/app/assets/stylesheets/spree/frontend/components/checkout/steps/_address_step.scss +0 -20
  62. data/app/assets/stylesheets/spree/frontend/components/checkout/steps/_confirm_step.scss +0 -13
  63. data/app/assets/stylesheets/spree/frontend/components/checkout/steps/_delivery_step.scss +0 -13
  64. data/app/assets/stylesheets/spree/frontend/components/checkout/steps/_payment_step.scss +0 -13
  65. data/app/assets/stylesheets/spree/frontend/components/forms/_address_inputs.scss +0 -13
  66. data/app/assets/stylesheets/spree/frontend/components/forms/inputs/_checkbox_input.scss +0 -3
  67. data/app/assets/stylesheets/spree/frontend/components/forms/inputs/_radio_input.scss +0 -3
  68. data/app/assets/stylesheets/spree/frontend/components/forms/inputs/_select_input.scss +0 -27
  69. data/app/assets/stylesheets/spree/frontend/components/forms/inputs/_text.scss +0 -32
  70. data/app/assets/stylesheets/spree/frontend/components/forms/inputs/_textarea_input.scss +0 -25
  71. data/app/assets/stylesheets/spree/frontend/components/general/_flash.scss +0 -20
  72. data/app/assets/stylesheets/spree/frontend/components/layout/_aside.scss +0 -4
  73. data/app/assets/stylesheets/spree/frontend/components/layout/_breadcrumbs.scss +0 -16
  74. data/app/assets/stylesheets/spree/frontend/components/layout/_category_navigation.scss +0 -3
  75. data/app/assets/stylesheets/spree/frontend/components/layout/_footer.scss +0 -8
  76. data/app/assets/stylesheets/spree/frontend/components/layout/_header.scss +0 -12
  77. data/app/assets/stylesheets/spree/frontend/components/layout/_horizontal_input_group.scss +0 -7
  78. data/app/assets/stylesheets/spree/frontend/components/layout/_top_bar.scss +0 -44
  79. data/app/assets/stylesheets/spree/frontend/components/navigation/_auth_link.scss +0 -11
  80. data/app/assets/stylesheets/spree/frontend/components/navigation/_categories.scss +0 -29
  81. data/app/assets/stylesheets/spree/frontend/components/navigation/_locale_selector.scss +0 -21
  82. data/app/assets/stylesheets/spree/frontend/components/navigation/_taxonomies.scss +0 -7
  83. data/app/assets/stylesheets/spree/frontend/components/navigation/_taxonomy.scss +0 -28
  84. data/app/assets/stylesheets/spree/frontend/components/orders/_address_overview.scss +0 -27
  85. data/app/assets/stylesheets/spree/frontend/components/orders/_coupon_codes.scss +0 -4
  86. data/app/assets/stylesheets/spree/frontend/components/orders/_line_items.scss +0 -20
  87. data/app/assets/stylesheets/spree/frontend/components/orders/_order_details.scss +0 -18
  88. data/app/assets/stylesheets/spree/frontend/components/orders/_order_item.scss +0 -85
  89. data/app/assets/stylesheets/spree/frontend/components/orders/_order_page.scss +0 -41
  90. data/app/assets/stylesheets/spree/frontend/components/orders/_order_shipments.scss +0 -27
  91. data/app/assets/stylesheets/spree/frontend/components/orders/_payment_info.scss +0 -29
  92. data/app/assets/stylesheets/spree/frontend/components/presentation/_hero.scss +0 -18
  93. data/app/assets/stylesheets/spree/frontend/components/products/_product_card.scss +0 -35
  94. data/app/assets/stylesheets/spree/frontend/components/products/_product_image.scss +0 -7
  95. data/app/assets/stylesheets/spree/frontend/components/products/_product_info.scss +0 -14
  96. data/app/assets/stylesheets/spree/frontend/components/products/_product_page.scss +0 -31
  97. data/app/assets/stylesheets/spree/frontend/components/products/_product_properties.scss +0 -23
  98. data/app/assets/stylesheets/spree/frontend/components/products/_product_submit.scss +0 -9
  99. data/app/assets/stylesheets/spree/frontend/components/products/_product_taxons.scss +0 -27
  100. data/app/assets/stylesheets/spree/frontend/components/products/_product_thumbnails.scss +0 -7
  101. data/app/assets/stylesheets/spree/frontend/components/products/_product_variants.scss +0 -20
  102. data/app/assets/stylesheets/spree/frontend/components/products/_products.scss +0 -13
  103. data/app/assets/stylesheets/spree/frontend/components/products/_products_by_taxon.scss +0 -6
  104. data/app/assets/stylesheets/spree/frontend/components/products/_products_grid.scss +0 -18
  105. data/app/assets/stylesheets/spree/frontend/components/search/_filter.scss +0 -32
  106. data/app/assets/stylesheets/spree/frontend/components/search/_search_bar.scss +0 -34
  107. data/app/assets/stylesheets/spree/frontend/components/typography/_hero_title.scss +0 -6
  108. data/app/assets/stylesheets/spree/frontend/components/typography/_subtitle.scss +0 -7
  109. data/app/assets/stylesheets/spree/frontend/placeholders/main.scss +0 -5
  110. data/app/assets/stylesheets/spree/frontend/screen.scss +0 -89
  111. data/app/assets/stylesheets/spree/frontend/solidus_starter_frontend.css +0 -7
  112. data/app/assets/stylesheets/spree/frontend/variables/_colors.scss +0 -20
  113. data/app/assets/stylesheets/spree/frontend.css +0 -8
  114. data/app/controllers/concerns/solidus_starter_frontend/auth_views.rb +0 -16
  115. data/app/controllers/concerns/solidus_starter_frontend/taxonomies.rb +0 -16
  116. data/app/controllers/spree/checkout_controller.rb +0 -249
  117. data/app/controllers/spree/coupon_codes_controller.rb +0 -35
  118. data/app/controllers/spree/home_controller.rb +0 -13
  119. data/app/controllers/spree/locale_controller.rb +0 -20
  120. data/app/controllers/spree/orders_controller.rb +0 -126
  121. data/app/controllers/spree/products_controller.rb +0 -51
  122. data/app/controllers/spree/store_controller.rb +0 -31
  123. data/app/controllers/spree/taxons_controller.rb +0 -30
  124. data/app/helpers/spree/orders_helper.rb +0 -18
  125. data/app/helpers/spree/taxon_filters_helper.rb +0 -13
  126. data/app/views/spree/address/_form_hidden.html.erb +0 -12
  127. data/app/views/spree/checkout/_terms_and_conditions.en.html.erb +0 -1
  128. data/app/views/spree/checkout/edit.html.erb +0 -16
  129. data/app/views/spree/checkout/existing_payment/_gateway.html.erb +0 -9
  130. data/app/views/spree/checkout/payment/_check.html.erb +0 -0
  131. data/app/views/spree/checkout/payment/_gateway.html.erb +0 -43
  132. data/app/views/spree/components/auth/_change_form.html.erb +0 -40
  133. data/app/views/spree/components/auth/_forgot_form.html.erb +0 -28
  134. data/app/views/spree/components/auth/_guest_form.html.erb +0 -31
  135. data/app/views/spree/components/auth/_login_form.html.erb +0 -42
  136. data/app/views/spree/components/auth/_signup_form.html.erb +0 -48
  137. data/app/views/spree/components/brand/_logo.html.erb +0 -3
  138. data/app/views/spree/components/buttons/_button_inline.html.erb +0 -23
  139. data/app/views/spree/components/buttons/_button_primary.html.erb +0 -29
  140. data/app/views/spree/components/cart/_cart_adjustment.html.erb +0 -15
  141. data/app/views/spree/components/cart/_cart_adjustments.html.erb +0 -47
  142. data/app/views/spree/components/cart/_cart_amount_row.html.erb +0 -12
  143. data/app/views/spree/components/cart/_cart_empty.html.erb +0 -9
  144. data/app/views/spree/components/cart/_cart_footer.html.erb +0 -15
  145. data/app/views/spree/components/cart/_cart_header.html.erb +0 -17
  146. data/app/views/spree/components/cart/_cart_item.html.erb +0 -52
  147. data/app/views/spree/components/cart/_cart_items.html.erb +0 -23
  148. data/app/views/spree/components/cart/_cart_link.html.erb +0 -9
  149. data/app/views/spree/components/cart/_cart_secondary_actions.html.erb +0 -17
  150. data/app/views/spree/components/cart/_item_info.html.erb +0 -26
  151. data/app/views/spree/components/checkout/_checkout_header.html.erb +0 -8
  152. data/app/views/spree/components/checkout/_checkout_step.html.erb +0 -21
  153. data/app/views/spree/components/checkout/_checkout_summary.html.erb +0 -70
  154. data/app/views/spree/components/checkout/_existing_cards.html.erb +0 -39
  155. data/app/views/spree/components/checkout/_payment_method_controls.html.erb +0 -10
  156. data/app/views/spree/components/checkout/_payment_method_selector.html.erb +0 -14
  157. data/app/views/spree/components/checkout/_proposed_shipment.erb +0 -18
  158. data/app/views/spree/components/checkout/_shipment_items.html.erb +0 -22
  159. data/app/views/spree/components/checkout/_shipping_methods.html.erb +0 -20
  160. data/app/views/spree/components/checkout/_unshippable_items.html.erb +0 -7
  161. data/app/views/spree/components/checkout/steps/_address_step.html.erb +0 -60
  162. data/app/views/spree/components/checkout/steps/_confirm_step.html.erb +0 -31
  163. data/app/views/spree/components/checkout/steps/_delivery_step.html.erb +0 -31
  164. data/app/views/spree/components/checkout/steps/_payment_step.html.erb +0 -25
  165. data/app/views/spree/components/forms/_address_inputs.html.erb +0 -152
  166. data/app/views/spree/components/forms/inputs/_checkbox_input.html.erb +0 -29
  167. data/app/views/spree/components/forms/inputs/_collection_select.html.erb +0 -42
  168. data/app/views/spree/components/forms/inputs/_radio_input.html.erb +0 -29
  169. data/app/views/spree/components/forms/inputs/_select_input.html.erb +0 -31
  170. data/app/views/spree/components/forms/inputs/_text.html.erb +0 -54
  171. data/app/views/spree/components/forms/inputs/_textarea_input.html.erb +0 -42
  172. data/app/views/spree/components/layout/_category_navigation.html.erb +0 -3
  173. data/app/views/spree/components/layout/_footer.html.erb +0 -7
  174. data/app/views/spree/components/layout/_header.html.erb +0 -8
  175. data/app/views/spree/components/layout/_top_bar.html.erb +0 -8
  176. data/app/views/spree/components/navigation/_auth_link.html.erb +0 -1
  177. data/app/views/spree/components/navigation/_breadcrumbs.html.erb +0 -47
  178. data/app/views/spree/components/navigation/_categories.html.erb +0 -12
  179. data/app/views/spree/components/navigation/_locale_selector.html.erb +0 -25
  180. data/app/views/spree/components/navigation/_taxonomies.html.erb +0 -17
  181. data/app/views/spree/components/navigation/_taxons.html.erb +0 -17
  182. data/app/views/spree/components/navigation/_taxons_tree.html.erb +0 -29
  183. data/app/views/spree/components/orders/_address_overview.html.erb +0 -40
  184. data/app/views/spree/components/orders/_coupon_code.html.erb +0 -22
  185. data/app/views/spree/components/orders/_line_items.html.erb +0 -55
  186. data/app/views/spree/components/orders/_order_details.html.erb +0 -35
  187. data/app/views/spree/components/orders/_order_item.html.erb +0 -33
  188. data/app/views/spree/components/orders/_order_items.html.erb +0 -5
  189. data/app/views/spree/components/orders/_order_shipments.html.erb +0 -25
  190. data/app/views/spree/components/orders/_payment_info.html.erb +0 -31
  191. data/app/views/spree/components/presentation/_hero.html.erb +0 -14
  192. data/app/views/spree/components/products/_product-card.html.erb +0 -36
  193. data/app/views/spree/components/products/_product_availability.html.erb +0 -19
  194. data/app/views/spree/components/products/_product_form.html.erb +0 -21
  195. data/app/views/spree/components/products/_product_image.html.erb +0 -6
  196. data/app/views/spree/components/products/_product_info.html.erb +0 -9
  197. data/app/views/spree/components/products/_product_promotions.html.erb +0 -25
  198. data/app/views/spree/components/products/_product_properties.html.erb +0 -19
  199. data/app/views/spree/components/products/_product_submit.html.erb +0 -39
  200. data/app/views/spree/components/products/_product_taxons.html.erb +0 -15
  201. data/app/views/spree/components/products/_product_thumbnails.html.erb +0 -19
  202. data/app/views/spree/components/products/_product_variants.html.erb +0 -36
  203. data/app/views/spree/components/products/_products-grid.html.erb +0 -13
  204. data/app/views/spree/components/products/_products.html.erb +0 -28
  205. data/app/views/spree/components/products/_products_by_taxon.html.erb +0 -7
  206. data/app/views/spree/components/products/_variants_list.html.erb +0 -12
  207. data/app/views/spree/components/search/_filter.html.erb +0 -42
  208. data/app/views/spree/components/search/_filters.html.erb +0 -20
  209. data/app/views/spree/components/search/_form.html.erb +0 -12
  210. data/app/views/spree/components/search/_products_search.html.erb +0 -36
  211. data/app/views/spree/components/search/_search_bar.html.erb +0 -36
  212. data/app/views/spree/components/typography/_hero_title.html.erb +0 -11
  213. data/app/views/spree/components/typography/_subtitle.html.erb +0 -11
  214. data/app/views/spree/home/index.html.erb +0 -7
  215. data/app/views/spree/layouts/spree_application.html.erb +0 -27
  216. data/app/views/spree/orders/edit.html.erb +0 -21
  217. data/app/views/spree/orders/show.html.erb +0 -29
  218. data/app/views/spree/products/index.html.erb +0 -22
  219. data/app/views/spree/products/show.html.erb +0 -18
  220. data/app/views/spree/shared/_image.html.erb +0 -12
  221. data/app/views/spree/shared/_link_to_cart.html.erb +0 -1
  222. data/app/views/spree/shared/_login_bar_items.html.erb +0 -1
  223. data/app/views/spree/shared/_shipment_tracking.html.erb +0 -11
  224. data/app/views/spree/shared/unauthorized.html.erb +0 -0
  225. data/app/views/spree/taxons/show.html.erb +0 -17
  226. data/bin/console +0 -17
  227. data/bin/r +0 -13
  228. data/bin/rails +0 -7
  229. data/bin/rake +0 -7
  230. data/bin/rspec +0 -29
  231. data/bin/sandbox +0 -84
  232. data/bin/sandbox_rails +0 -18
  233. data/bin/setup +0 -8
  234. data/bin/solidus_compare +0 -155
  235. data/config/initializers/assets.rb +0 -1
  236. data/config/initializers/canonical_rails.rb +0 -16
  237. data/config/locales/en.yml +0 -5
  238. data/config/routes.rb +0 -33
  239. data/config/solidus_compare.yml +0 -33
  240. data/docs/development.md +0 -28
  241. data/exe/solidus_starter_frontend +0 -9
  242. data/lib/generators/solidus_starter_frontend/install/install_generator.rb +0 -15
  243. data/lib/generators/solidus_starter_frontend/solidus_starter_frontend_generator.rb +0 -30
  244. data/lib/generators/solidus_starter_frontend/views/override_generator.rb +0 -50
  245. data/lib/solidus_starter_frontend/config.rb +0 -7
  246. data/lib/solidus_starter_frontend/engine.rb +0 -34
  247. data/lib/solidus_starter_frontend/factories.rb +0 -4
  248. data/lib/solidus_starter_frontend/solidus_support_extensions.rb +0 -9
  249. data/lib/solidus_starter_frontend/version.rb +0 -5
  250. data/lib/solidus_starter_frontend.rb +0 -12
  251. data/lib/solidus_starter_frontend_configuration.rb +0 -8
  252. data/lib/views/auth/spree/checkout/registration.html.erb +0 -7
  253. data/lib/views/auth/spree/components/navigation/_auth_link.html.erb +0 -5
  254. data/lib/views/auth/spree/user_passwords/edit.html.erb +0 -7
  255. data/lib/views/auth/spree/user_passwords/new.html.erb +0 -5
  256. data/lib/views/auth/spree/user_registrations/new.html.erb +0 -7
  257. data/lib/views/auth/spree/user_sessions/guest.html.erb +0 -5
  258. data/lib/views/auth/spree/user_sessions/new.html.erb +0 -7
  259. data/lib/views/auth/spree/users/edit.html.erb +0 -45
  260. data/lib/views/auth/spree/users/show.html.erb +0 -55
  261. data/solidus_starter_frontend.gemspec +0 -43
  262. data/spec/controllers/controller_helpers_spec.rb +0 -29
  263. data/spec/controllers/locale_controller_spec.rb +0 -57
  264. data/spec/controllers/spree/checkout_controller_spec.rb +0 -563
  265. data/spec/controllers/spree/checkout_controller_with_views_spec.rb +0 -37
  266. data/spec/controllers/spree/current_order_tracking_spec.rb +0 -33
  267. data/spec/controllers/spree/home_controller_spec.rb +0 -29
  268. data/spec/controllers/spree/orders_controller_ability_spec.rb +0 -90
  269. data/spec/controllers/spree/orders_controller_spec.rb +0 -241
  270. data/spec/controllers/spree/orders_controller_transitions_spec.rb +0 -33
  271. data/spec/controllers/spree/products_controller_spec.rb +0 -38
  272. data/spec/controllers/spree/taxons_controller_spec.rb +0 -14
  273. data/spec/fixtures/thinking-cat.jpg +0 -0
  274. data/spec/generators/solidus/views/override_generator_spec.rb +0 -50
  275. data/spec/helpers/base_helper_spec.rb +0 -13
  276. data/spec/helpers/order_helper_spec.rb +0 -14
  277. data/spec/helpers/taxon_filters_helper_spec.rb +0 -12
  278. data/spec/spec_helper.rb +0 -64
  279. data/spec/support/shared_contexts/checkout_setup.rb +0 -12
  280. data/spec/support/shared_contexts/custom_products.rb +0 -28
  281. data/spec/support/shared_contexts/locales.rb +0 -16
  282. data/spec/system/address_spec.rb +0 -87
  283. data/spec/system/automatic_promotion_adjustments_spec.rb +0 -49
  284. data/spec/system/caching/products_spec.rb +0 -48
  285. data/spec/system/caching/taxons_spec.rb +0 -35
  286. data/spec/system/cart_spec.rb +0 -81
  287. data/spec/system/checkout_confirm_insufficient_stock_spec.rb +0 -71
  288. data/spec/system/checkout_spec.rb +0 -699
  289. data/spec/system/checkout_unshippable_spec.rb +0 -37
  290. data/spec/system/coupon_code_spec.rb +0 -267
  291. data/spec/system/currency_spec.rb +0 -20
  292. data/spec/system/first_order_promotion_spec.rb +0 -59
  293. data/spec/system/free_shipping_promotions_spec.rb +0 -60
  294. data/spec/system/locale_spec.rb +0 -26
  295. data/spec/system/order_spec.rb +0 -57
  296. data/spec/system/products_spec.rb +0 -302
  297. data/spec/system/promotion_code_invalidation_spec.rb +0 -54
  298. data/spec/system/quantity_promotions_spec.rb +0 -130
  299. data/spec/system/taxons_spec.rb +0 -158
  300. data/spec/system/template_rendering_spec.rb +0 -20
  301. data/spec/views/spree/checkout/_summary_spec.rb +0 -11
@@ -1,31 +0,0 @@
1
- <%
2
- base_class = "select-input".freeze
3
-
4
- # Optional props
5
- disabled = local_assigns.fetch(:disabled, false)
6
- id = local_assigns.fetch(:id, nil)
7
- label = local_assigns.fetch(:label, false)
8
- selected = local_assigns.fetch(:selected, nil)
9
- classes = local_assigns.fetch(:classes, [])
10
-
11
- # Classes
12
- class_names = classes.push(base_class).join(" ")
13
- %>
14
-
15
- <div class="<%= class_names %>">
16
- <% if label %>
17
- <label
18
- <% if id %>
19
- for="<%= id %>"
20
- <% end %>
21
- >
22
- <%= label %>:
23
- </label>
24
- <% end %>
25
-
26
- <%= select_tag(
27
- name,
28
- options_for_select(options, selected),
29
- disabled: disabled
30
- ) %>
31
- </div>
@@ -1,54 +0,0 @@
1
- <%
2
- base_class = "text-input".freeze
3
-
4
- # Optional props
5
- autocomplete = local_assigns.fetch(:autocomplete, false)
6
- autofocus = local_assigns.fetch(:autofocus, false)
7
- id = local_assigns.fetch(:id, false)
8
- disabled = local_assigns.fetch(:disabled, false)
9
- label = local_assigns.fetch(:label, false)
10
- min = local_assigns.fetch(:min, false)
11
- placeholder = local_assigns.fetch(:placeholder, false)
12
- required = local_assigns.fetch(:required, false)
13
- small = local_assigns.fetch(:small, false)
14
- type = local_assigns.fetch(:type, :text)
15
- value = local_assigns.fetch(:value, '')
16
-
17
- # Classes
18
- class_names = [base_class]
19
- class_names.push("#{base_class}--small") if small
20
- class_names = class_names.join(" ")
21
- %>
22
-
23
- <div class="<%= class_names %>">
24
- <% if label %>
25
- <label
26
- <% if id %>
27
- for="<%= id %>"
28
- <% end %>
29
- >
30
- <%= label %>:
31
- </label>
32
- <% end %>
33
-
34
- <input
35
- name="<%= name %>"
36
- type="<%= type %>"
37
- value="<%= value %>"
38
- <% if autocomplete%>
39
- autocomplete="<%= autocomplete %>"
40
- <% end %>
41
- <% if id %>
42
- id="<%= id %>"
43
- <% end %>
44
- <% if min %>
45
- min="<%= min %>"
46
- <% end %>
47
- <% if placeholder %>
48
- placeholder="<%= placeholder %>"
49
- <% end %>
50
- <%= autofocus ? "autofocus" : "" %>
51
- <%= disabled ? "disabled" : "" %>
52
- <%= required ? "required" : "" %>
53
- >
54
- </div>
@@ -1,42 +0,0 @@
1
- <%
2
- base_class = "textarea-input".freeze
3
-
4
- # Optional props
5
- autofocus = local_assigns.fetch(:autofocus, false)
6
- id = local_assigns.fetch(:id, false)
7
- disabled = local_assigns.fetch(:disabled, false)
8
- label = local_assigns.fetch(:label, false)
9
- placeholder = local_assigns.fetch(:placeholder, false)
10
- required = local_assigns.fetch(:required, false)
11
- value = local_assigns.fetch(:value, '')
12
-
13
- # Classes
14
- class_names = [base_class]
15
- class_names = class_names.join(" ")
16
- %>
17
-
18
- <div class="<%= class_names %>">
19
- <% if label %>
20
- <label
21
- <% if id %>
22
- for="<%= id %>"
23
- <% end %>
24
- >
25
- <%= label %>:
26
- </label>
27
- <% end %>
28
-
29
- <textarea
30
- name="<%= name %>"
31
- value="<%= value %>"
32
- <% if id %>
33
- id="<%= id %>"
34
- <% end %>
35
- <% if placeholder %>
36
- placeholder="<%= placeholder %>"
37
- <% end %>
38
- <%= autofocus ? "autofocus" : "" %>
39
- <%= disabled ? "disabled" : "" %>
40
- <%= required ? "required" : "" %>
41
- ></textarea>
42
- </div>
@@ -1,3 +0,0 @@
1
- <div class="category-navigation">
2
- <%= render partial: 'spree/components/navigation/categories' %>
3
- </div>
@@ -1,7 +0,0 @@
1
- <footer class="footer">
2
- <p>
3
- <%= t 'spree.powered_by' %> <%= link_to 'Solidus', 'http://solidus.io/' %>
4
- </p>
5
-
6
- <%= render 'spree/components/navigation/locale_selector' %>
7
- </footer>
@@ -1,8 +0,0 @@
1
- <header class="header">
2
- <div class="header__secondary-navigation">
3
- <%= render partial: 'spree/components/layout/top_bar' %>
4
- </div>
5
- <div class="header__primary-navigation">
6
- <%= render partial: 'spree/components/layout/category_navigation' %>
7
- </div>
8
- </header>
@@ -1,8 +0,0 @@
1
- <div class="top-bar">
2
- <%= render partial: 'spree/components/brand/logo' %>
3
- <div class="top-bar__search">
4
- <%= render partial: 'spree/components/search/search_bar' %>
5
- </div>
6
- <%= render partial: 'spree/components/navigation/auth_link' %>
7
- <%= render partial: 'spree/components/cart/cart_link' %>
8
- </div>
@@ -1 +0,0 @@
1
- <%# This is loaded from lib/views/auth folder if an authentication method is defined %>
@@ -1,47 +0,0 @@
1
- <%
2
- # Props
3
- taxon = local_assigns.fetch(:taxon, nil)
4
- separator = local_assigns.fetch(:separator, '&nbsp;&raquo;&nbsp;')
5
- base_class = local_assigns.fetch(:base_class, nil)
6
-
7
- # Methods
8
- def breadcrumbs(taxon, separator, breadcrumb_class = 'inline')
9
- return '' if current_page?('/') || taxon.nil?
10
-
11
- crumbs = [[t('spree.home'), spree.root_path]]
12
-
13
- crumbs << [t('spree.products'), products_path]
14
- if taxon
15
- crumbs += taxon.ancestors.collect { |ancestor| [ancestor.name, spree.nested_taxons_path(ancestor.permalink)] } unless taxon.ancestors.empty?
16
- crumbs << [taxon.name, spree.nested_taxons_path(taxon.permalink)]
17
- end
18
-
19
- separator = raw(separator)
20
-
21
- items = crumbs.each_with_index.collect do |crumb, index|
22
- content_tag(:li, itemprop: 'itemListElement', itemscope: '', itemtype: 'https://schema.org/ListItem') do
23
- link_to(crumb.last, itemprop: 'item') do
24
- content_tag(:span, crumb.first, itemprop: 'name') + tag('meta', { itemprop: 'position', content: (index + 1).to_s }, false, false)
25
- end + (crumb == crumbs.last ? '' : separator)
26
- end
27
- end
28
-
29
- content_tag(
30
- :nav,
31
- content_tag(
32
- :ol,
33
- raw(items.map(&:mb_chars).join),
34
- itemscope: '',
35
- itemtype: 'https://schema.org/BreadcrumbList'),
36
- class: breadcrumb_class
37
- )
38
- end
39
- %>
40
-
41
- <% breadcrumbs = breadcrumbs(taxon, separator, "#{base_class}__content") %>
42
-
43
- <% if breadcrumbs.present? %>
44
- <div class="<%= base_class %>">
45
- <%= breadcrumbs %>
46
- </div>
47
- <% end %>
@@ -1,12 +0,0 @@
1
- <% categories = Spree::Taxonomy.includes(root: :children).first %>
2
-
3
- <nav class="categories">
4
- <% cache [I18n.locale, categories, @taxon] do %>
5
- <%= render(
6
- 'spree/components/navigation/taxons_tree',
7
- root: categories.root,
8
- current: @taxon,
9
- depth: 1,
10
- base_class: 'categories') if categories %>
11
- <% end %>
12
- </nav>
@@ -1,25 +0,0 @@
1
- <%
2
- available_locales = current_store.available_locales.map do |locale|
3
- [
4
- I18n.t('spree.i18n.this_file_language',
5
- locale: locale,
6
- default: locale.to_s,
7
- fallback: false), locale
8
- ]
9
- end.sort
10
- %>
11
-
12
- <% if available_locales.many? %>
13
- <div class="locale-selector">
14
- <%= form_tag spree.select_locale_path do %>
15
- <%= render(
16
- "spree/components/forms/inputs/select_input",
17
- name: :switch_to_locale,
18
- options: available_locales,
19
- selected: I18n.locale,
20
- label: I18n.t('spree.i18n.language'),
21
- classes: ['locale-selector__select-input']
22
- ) %>
23
- <% end %>
24
- </div>
25
- <% end %>
@@ -1,17 +0,0 @@
1
- <% max_level = Spree::Config[:max_level_in_taxons_menu] || 1 %>
2
-
3
- <nav class="taxonomies">
4
- <% cache [I18n.locale, taxonomies, max_level] do %>
5
- <% taxonomies.each do |taxonomy| %>
6
- <% cache [I18n.locale, taxonomy, @taxon, max_level] do %>
7
- <%= render(
8
- 'spree/components/navigation/taxons_tree',
9
- title: t('spree.shop_by_taxonomy', taxonomy: taxonomy.name),
10
- root: taxonomy.root,
11
- current: @taxon,
12
- depth: max_level,
13
- base_class: 'taxonomy') %>
14
- <% end %>
15
- <% end %>
16
- <% end %>
17
- </nav>
@@ -1,17 +0,0 @@
1
- <% max_level = Spree::Config[:max_level_in_taxons_menu] || 1 %>
2
-
3
- <nav class="taxonomies">
4
- <%= link_to 'All', products_path %>
5
- <% cache [I18n.locale, taxonomies, max_level] do %>
6
- <% taxonomies.each do |taxonomy| %>
7
- <% cache [I18n.locale, taxonomy, @taxon, max_level] do %>
8
- <%= render(
9
- 'spree/components/navigation/taxons_tree',
10
- root: taxonomy.root,
11
- current: @taxon,
12
- depth: max_level,
13
- base_class: 'taxonomy') if taxonomy %>
14
- <% end %>
15
- <% end %>
16
- <% end %>
17
- </nav>
@@ -1,29 +0,0 @@
1
- <%
2
- # Props
3
- title = local_assigns.fetch(:title, nil)
4
- root = local_assigns.fetch(:root, nil)
5
- current = local_assigns.fetch(:current, nil)
6
- depth = local_assigns.fetch(:depth, 1)
7
- base_class = local_assigns.fetch(:base_class, nil)
8
-
9
- # Methods
10
- def tree(root_taxon, current_taxon, base_class, max_level = 1)
11
- return '' if max_level < 1 || root_taxon.children.empty?
12
- content_tag :ul, class: base_class do
13
- taxons = root_taxon.children.map do |taxon|
14
- css_class = (current_taxon && current_taxon.self_and_ancestors.include?(taxon)) ? 'current' : nil
15
- content_tag :li, class: css_class do
16
- link_to(taxon.name, seo_url(taxon)) +
17
- tree(taxon, current_taxon, nil, max_level - 1)
18
- end
19
- end
20
- safe_join(taxons, "\n")
21
- end
22
- end
23
- %>
24
-
25
- <% taxons_list = tree(root, current, "#{base_class}__list", depth) %>
26
- <% if taxons_list.present? %>
27
- <%= content_tag :h6, title, class: "#{base_class}__title" if title %>
28
- <%= taxons_list %>
29
- <% end %>
@@ -1,40 +0,0 @@
1
- <div class="address-overview">
2
- <h3 class="address-overview__title">
3
- <%= title %>
4
- </h3>
5
-
6
- <%= link_to(
7
- "[#{t('spree.actions.edit')}]",
8
- checkout_state_path(:address),
9
- { class: 'address-overview__edit' }
10
- ) unless @order.completed? %>
11
-
12
- <ul class="address-overview__info">
13
- <li><%= address.full_name %></li>
14
- <% unless address.company.blank? %>
15
- <li><%= address.company %></li>
16
- <% end %>
17
- <li><%= address.address1 %></li>
18
- <% unless address.address2.blank? %>
19
- <li><%= address.address2 %></li>
20
- <% end %>
21
- <li>
22
- <%= address.city %>
23
- <%= address.state_text %>
24
- <%= address.zipcode %>
25
- </li>
26
- <li><%= address.country.try(:name) %></li>
27
- <% unless address.phone.blank? %>
28
- <li>
29
- <%= t('spree.phone') %>
30
- <%= address.phone %>
31
- </li>
32
- <% end %>
33
- <% unless address.alternative_phone.blank? %>
34
- <li>
35
- <%= t('spree.alternative_phone') %>
36
- <%= address.alternative_phone %>
37
- </li>
38
- <% end %>
39
- </ul>
40
- </div>
@@ -1,22 +0,0 @@
1
- <%= form_tag order_coupon_codes_path(@order), method: :post, class: "coupon-code" do %>
2
- <div class="coupon-code__input">
3
- <%= render(
4
- 'spree/components/forms/inputs/text',
5
- id: 'order_coupon_code',
6
- name: 'coupon_code',
7
- placeholder: t("spree.coupon_code"),
8
- required: true,
9
- small: true
10
- ) %>
11
- </div>
12
-
13
- <div class="coupon-code__action">
14
- <%= render(
15
- 'spree/components/buttons/button_primary',
16
- content: t('spree.apply_code'),
17
- name: :commit,
18
- small: true,
19
- type: :submit
20
- ) %>
21
- </div>
22
- <% end %>
@@ -1,55 +0,0 @@
1
- <dl class="line-items" id="line-items">
2
- <div>
3
- <dt><%= t('spree.subtotal') %>:</dt>
4
- <dd><%= order.display_item_total.to_html %></dd>
5
- </div>
6
-
7
- <% if order.line_item_adjustments.exists? %>
8
- <% if order.line_item_adjustments.promotion.eligible.exists? %>
9
- <div id="price-adjustments">
10
- <% order.line_item_adjustments.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
11
- <dt><%= t('spree.promotion') %>:</dt>
12
- <dd><%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency) %></dd>
13
- <% end %>
14
- </div>
15
- <% end %>
16
- <% end %>
17
-
18
- <div id="shipment-total">
19
- <% order.shipments.group_by { |s| s.selected_shipping_rate.name }.each do |name, shipments| %>
20
- <dt><%= t('spree.shipping') %> &mdash; <%= name %>:</dt>
21
- <dd><%= Spree::Money.new(shipments.sum(&:total_before_tax), currency: order.currency).to_html %></dd>
22
- <% end %>
23
- </div>
24
-
25
- <% if order.all_adjustments.tax.exists? %>
26
- <div id="tax-adjustments">
27
- <% order.all_adjustments.tax.group_by(&:label).each do |label, adjustments| %>
28
- <dt><%= t('spree.tax') %> &mdash; <%= label %>:</dt>
29
- <dd><%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency) %></dd>
30
- <% end %>
31
- </div>
32
- <% end %>
33
-
34
- <% if order.total_applicable_store_credit > 0.0 %>
35
- <div id="store-credit">
36
- <dt><%= t('spree.store_credit.store_credit') %>:</dt>
37
- <dd><%= order.display_total_applicable_store_credit.to_html %></dd>
38
- </div>
39
- <% end %>
40
-
41
- <% order.adjustments.eligible.each do |adjustment| %>
42
- <% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %>
43
- <div id="order-charges">
44
- <dt><%= adjustment.label %></dt>
45
- <dd><%= adjustment.display_amount.to_html %></dd>
46
- </div>
47
- <% end %>
48
-
49
- <div>
50
- <dt><%= t('spree.order_total') %>:</dt>
51
- <dd>
52
- <strong><%= order.display_order_total_after_store_credit.to_html %></strong>
53
- </dd>
54
- </div>
55
- </dl>
@@ -1,35 +0,0 @@
1
- <div class="order-details">
2
- <div class="order-details__info">
3
- <% if order.has_checkout_step?("address") %>
4
- <%= render(
5
- 'spree/components/orders/address_overview',
6
- address: order.bill_address,
7
- title: t('spree.billing_address')
8
- ) %>
9
- <% end %>
10
-
11
- <% if order.has_checkout_step?("delivery") %>
12
- <%= render(
13
- 'spree/components/orders/address_overview',
14
- address: order.ship_address,
15
- title: t('spree.shipping_address')
16
- ) %>
17
-
18
- <%= render(
19
- 'spree/components/orders/order_shipments',
20
- order: order,
21
- title: t('spree.shipments')
22
- ) %>
23
- <% end %>
24
-
25
- <% if order.has_checkout_step?("payment") %>
26
- <%= render(
27
- 'spree/components/orders/payment_info',
28
- order: order
29
- ) %>
30
- <% end %>
31
- </div>
32
-
33
- <%= render 'spree/components/orders/order_items', order: order %>
34
- <%= render 'spree/components/orders/line_items', order: order %>
35
- </div>
@@ -1,33 +0,0 @@
1
- <article class="order-item">
2
- <div class="order-item__image">
3
- <%= link_to(
4
- render(
5
- 'spree/shared/image',
6
- image: item.variant.gallery.images.first || item.variant.product.gallery.images.first,
7
- size: :small
8
- ),
9
- item.variant.product
10
- ) %>
11
- </div>
12
-
13
- <section class="order-item__info">
14
- <%= render(
15
- 'spree/components/cart/item_info',
16
- line_item: item.variant.product,
17
- stock_info: false,
18
- variant: item.variant
19
- ) %>
20
- </section>
21
-
22
- <div class="order-item__price-single">
23
- <%= item.single_money.to_html %>
24
- </div>
25
-
26
- <div class="order-item__quantity">
27
- &#10005;<%= item.quantity %>
28
- </div>
29
-
30
- <div class="order-item__price">
31
- <strong><%= item.display_amount.to_html %></strong>
32
- </div>
33
- </article>
@@ -1,5 +0,0 @@
1
- <section class="order-items">
2
- <% order.line_items.each do |item| %>
3
- <%= render 'spree/components/orders/order_item', item: item %>
4
- <% end %>
5
- </section>
@@ -1,25 +0,0 @@
1
- <div class="order-shipments">
2
- <h3 class="order-shipments__title">
3
- <%= title %>
4
- </h3>
5
-
6
- <%= link_to(
7
- "[#{t('spree.actions.edit')}]",
8
- checkout_state_path(:delivery),
9
- { class: 'order-shipments__edit' }
10
- ) unless @order.completed? %>
11
-
12
- <ul class="order-shipments__info">
13
- <% order.shipments.each do |shipment| %>
14
- <li>
15
- <%= t(
16
- 'spree.shipment_details',
17
- stock_location: shipment.stock_location.name,
18
- shipping_method: shipment.selected_shipping_rate.name
19
- ) %>
20
- </li>
21
- <% end %>
22
- </ul>
23
-
24
- <%= render 'spree/shared/shipment_tracking', order: order if order.shipped? %>
25
- </div>
@@ -1,31 +0,0 @@
1
- <div class="payment-info">
2
- <h3 class="payment-info__title">
3
- <%= t('spree.payment_information') %>
4
- </h3>
5
-
6
- <%= link_to(
7
- "[#{t('spree.actions.edit')}]",
8
- checkout_state_path(:payment),
9
- { class: 'payment-info__edit' }
10
- ) unless @order.completed? %>
11
-
12
- <% order.payments.valid.each do |payment| %>
13
- <% source = payment.source %>
14
-
15
- <% if source.is_a?(Spree::CreditCard) %>
16
- <ul class="payment-info__info">
17
- <li>
18
- <% if source.last_digits %>
19
- <%= t('spree.ending_in') %> <%= source.last_digits %>
20
- <% end %>
21
- </li>
22
- <li><%= source.name %></li>
23
- </ul>
24
- <% elsif source.is_a?(Spree::StoreCredit) %>
25
- <%= content_tag(:p, payment.payment_method.name) %>:
26
- <%= content_tag(:p, payment.display_amount) %>
27
- <% else %>
28
- <%= content_tag(:p, payment.payment_method.name) %>
29
- <% end %>
30
- <% end %>
31
- </div>
@@ -1,14 +0,0 @@
1
- <section class="hero">
2
- <div class="hero__container">
3
- <div class="hero__message">
4
- <%= render(
5
- "spree/components/typography/hero_title",
6
- content: "A free, open-source ecommerce platform that gives you complete control over your store."
7
- ) %>
8
- <%= render(
9
- "spree/components/typography/subtitle",
10
- content: "Running a high-volume online business isn’t easy – but it doesn’t have to be a headache, either."
11
- ) %>
12
- </div>
13
- </div>
14
- </section>
@@ -1,36 +0,0 @@
1
- <%
2
- base_class = "product-card".freeze
3
-
4
- # Classes
5
- class_names = [base_class]
6
- class_names = class_names.join(" ")
7
-
8
- url = spree.product_path(product, taxon_id: @taxon.try(:id))
9
- cached = @taxon.present? ?
10
- [I18n.locale, current_pricing_options, @taxon, product] :
11
- [I18n.locale, current_pricing_options, product]
12
- product_id = "product_#{product.id}"
13
- %>
14
-
15
- <% cache cached do %>
16
- <li class=<%= class_names %> itemscope itemtype="http://schema.org/Product" id=<%= product_id %>>
17
- <article>
18
- <section class="product-card_image">
19
- <%= link_to render('spree/shared/image', image: product.gallery.images.first, size: :small, itemprop: "image"), url, itemprop: 'url' %>
20
- </section>
21
- <header class="product-card_header">
22
- <h2>
23
- <%= link_to truncate(product.name, length: 50), url, class: 'info', itemprop: "name", title: product.name %>
24
- </h2>
25
- </header>
26
- <section class="product-card_price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
27
- <% if price = product.price_for(current_pricing_options) %>
28
- <span class="price selling" itemprop="price" content="<%= price.to_d %>">
29
- <%= price.to_html %>
30
- </span>
31
- <% end %>
32
- <span itemprop="priceCurrency" content="<%= current_pricing_options.currency %>"></span>
33
- </section>
34
- </article>
35
- </li>
36
- <% end %>
@@ -1,19 +0,0 @@
1
- <%
2
- base_class = "product-availability".freeze
3
-
4
- # Classes
5
- class_names = [base_class]
6
- class_names = class_names.join(" ")
7
- %>
8
-
9
- <% if product.master.can_supply? %>
10
- <link itemprop="availability" href="http://schema.org/InStock" />
11
- <% elsif product.variants.empty? %>
12
- <span
13
- class="<%= class_names %>"
14
- itemprop="availability"
15
- href="http://schema.org/OutOfStock"
16
- >
17
- <%= t('spree.out_of_stock') %>
18
- </span>
19
- <% end %>