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,44 +0,0 @@
1
- window.addEventListener('DOMContentLoaded', () => {
2
- const form = document.querySelector('#checkout_form_payment');
3
- const existingCards = document.querySelector('#existing_cards');
4
-
5
- if (form) {
6
- if (existingCards) {
7
- const paymentMethodControls = document.querySelector('.payment-method-controls');
8
- const useExistingCardYes = document.querySelector('#use_existing_card_yes');
9
- const useExistingCardNo = document.querySelector('#use_existing_card_no');
10
- const existingCcRadios = document.querySelectorAll('.existing-cc-radio');
11
-
12
- paymentMethodControls.style.display = 'none';
13
-
14
- useExistingCardYes.addEventListener('click', () => {
15
- paymentMethodControls.style.display = 'none';
16
- existingCcRadios.forEach(radio => radio.removeAttribute('disabled'));
17
- });
18
-
19
- useExistingCardNo.addEventListener('click', () => {
20
- paymentMethodControls.style.display = 'block';
21
- existingCcRadios.forEach(radio => radio.setAttribute('disabled', true));
22
- });
23
- }
24
-
25
- const selectors = document
26
- .querySelectorAll('input[type="radio"][name="order[payments_attributes][][payment_method_id]"]');
27
-
28
- selectors.forEach(selector => {
29
- selector.addEventListener('click', () => {
30
- const controls = document.querySelectorAll('.payment-method-controls li');
31
- controls.forEach(control => control.style.display = 'none');
32
-
33
- if (selector.checked) {
34
- const selectedControl = document.querySelector(`#payment_method_${selector.value}`);
35
- selectedControl.style.display = 'block';
36
- }
37
- });
38
- });
39
-
40
- // Activate already checked payment method if form is re-rendered
41
- // i.e. if user enters invalid data
42
- document.querySelector('input[type="radio"]:checked').click();
43
- }
44
- });
@@ -1,34 +0,0 @@
1
- //= require_self
2
- //= require spree/frontend/checkout/address
3
- //= require spree/frontend/checkout/payment
4
-
5
- Solidus.disableSaveOnClick = () => {
6
- const form = document.querySelector('form.edit_order');
7
- form.addEventListener('submit', () => {
8
- const elements = form.querySelectorAll('[type="submit"], [type="image"]');
9
- elements.forEach(element => {
10
- element.setAttribute('disabled', true);
11
- element.classList.remove('primary');
12
- element.classList.add('disabled');
13
- });
14
- });
15
- };
16
-
17
- window.addEventListener('DOMContentLoaded', () => {
18
- const termsCheckbox = document.getElementById('accept_terms_and_conditions');
19
-
20
- if (termsCheckbox) {
21
- termsCheckbox.addEventListener('change', () => {
22
- const submitButton = termsCheckbox.closest('form')
23
- .querySelector('[type="submit"]');
24
-
25
- if (termsCheckbox.checked) {
26
- submitButton.removeAttribute('disabled');
27
- submitButton.classList.remove('disabled');
28
- } else {
29
- submitButton.setAttribute('disabled', true);
30
- submitButton.classList.add('disabled');
31
- }
32
- });
33
- }
34
- });
@@ -1,9 +0,0 @@
1
- window.addEventListener('DOMContentLoaded', () => {
2
- const localeSelector = document.querySelector('.locale-selector select');
3
-
4
- if(localeSelector) {
5
- localeSelector.addEventListener('change', (event) => {
6
- event.target.form.submit();
7
- });
8
- }
9
- });
@@ -1,21 +0,0 @@
1
- window.addEventListener('DOMContentLoaded', () => {
2
- function updateVariantPrice(variant) {
3
- const variantPrice = variant.dataset.price;
4
- if (variantPrice) {
5
- document.querySelector('.price.selling').innerHTML = variantPrice;
6
- }
7
- };
8
-
9
- const radios = document.querySelectorAll('#product-variants input[type="radio"]');
10
-
11
- if (radios.length > 0) {
12
- const selectedRadio = document
13
- .querySelector('#product-variants input[type="radio"][checked="checked"]');
14
-
15
- updateVariantPrice(selectedRadio);
16
- }
17
-
18
- radios.forEach(radio => {
19
- radio.addEventListener('click', () => updateVariantPrice(radio));
20
- });
21
- });
@@ -1,9 +0,0 @@
1
- // Placeholder manifest file.
2
- // the installer will append this file to the app vendored assets here: vendor/assets/javascripts/spree/frontend/all.js'
3
-
4
- //= require spree
5
- //= require spree/frontend/utils
6
- //= require spree/frontend/checkout
7
- //= require spree/frontend/product
8
- //= require spree/frontend/cart
9
- //= require spree/frontend/locale_selector
@@ -1,18 +0,0 @@
1
- window.Solidus = {};
2
-
3
- Solidus.mountedAt = () => {
4
- return '<%= Rails.application.routes.url_helpers.spree_path(trailing_slash: true) %>';
5
- };
6
-
7
- Solidus.pathFor = (path) => {
8
- const hostname = window.location.hostname;
9
- const protocol = window.location.protocol;
10
- const port = window.location.port;
11
- const locationOrigin = protocol + '//' + hostname + (port ? ':' + port : '');
12
- return locationOrigin + Solidus.mountedAt() + path;
13
- };
14
-
15
- Solidus.routes = {
16
- states_search: Solidus.pathFor('api/states'),
17
- apply_coupon_code: (order_id) => Solidus.pathFor('api/orders/' + order_id + '/coupon_codes')
18
- };
@@ -1,6 +0,0 @@
1
- /* Solidus Dummy app generator creates a vendor manifest in vendor/assets/javascripts/frontend/all
2
- that requires this file: spree/frontend.
3
- Inside solidus_starter_frontend we don't need anything from spree/frontend,
4
- but the file must be there for the dummy application that expects it.
5
- This approach is in order to don't have to make changes in the solidus_core
6
- dummy app generator in the process of developing this extension. */
@@ -1,29 +0,0 @@
1
- html {
2
- box-sizing: border-box;
3
- font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial,
4
- sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
5
- font-size: 10px;
6
- }
7
-
8
- body {
9
- color: $color-copy;
10
- text-rendering: optimizeLegibility;
11
- }
12
-
13
- *,
14
- *:before,
15
- *:after {
16
- box-sizing: inherit;
17
- color: inherit;
18
- font-family: inherit;
19
- }
20
-
21
- button {
22
- cursor: pointer;
23
- }
24
-
25
- code,
26
- pre {
27
- font-family: "SFMono-Regular", "SF Mono", "Ubuntu Mono", "Consolas",
28
- "DejaVu Sans Mono", "Menlo", monospace;
29
- }
@@ -1,179 +0,0 @@
1
- html {
2
- line-height: 1.15;
3
- -webkit-text-size-adjust: 100%;
4
- }
5
-
6
- body {
7
- margin: 0;
8
- }
9
-
10
- main {
11
- display: block;
12
- }
13
-
14
- h1 {
15
- font-size: 2em;
16
- margin: 0.67em 0;
17
- }
18
-
19
- hr {
20
- box-sizing: content-box;
21
- height: 0;
22
- overflow: visible;
23
- }
24
-
25
- pre {
26
- font-family: monospace, monospace;
27
- font-size: 1em;
28
- }
29
-
30
- a {
31
- background-color: transparent;
32
- }
33
-
34
- abbr[title] {
35
- border-bottom: 0;
36
- text-decoration: underline;
37
- text-decoration: underline dotted;
38
- }
39
-
40
- b,
41
- strong {
42
- font-weight: bolder;
43
- }
44
-
45
- code,
46
- kbd,
47
- samp {
48
- font-family: monospace, monospace;
49
- font-size: 1em;
50
- }
51
-
52
- small {
53
- font-size: 80%;
54
- }
55
-
56
- sub,
57
- sup {
58
- font-size: 75%;
59
- line-height: 0;
60
- position: relative;
61
- vertical-align: baseline;
62
- }
63
-
64
- sub {
65
- bottom: -0.25em;
66
- }
67
-
68
- sup {
69
- top: -0.5em;
70
- }
71
-
72
- img {
73
- border-style: none;
74
- }
75
-
76
- button,
77
- input,
78
- optgroup,
79
- select,
80
- textarea {
81
- font-family: inherit;
82
- font-size: 100%;
83
- line-height: 1.15;
84
- margin: 0;
85
- }
86
-
87
- button,
88
- input {
89
- overflow: visible;
90
- }
91
-
92
- button,
93
- select {
94
- text-transform: none;
95
- }
96
-
97
- button,
98
- [type="button"],
99
- [type="reset"],
100
- [type="submit"] {
101
- -webkit-appearance: button;
102
- }
103
-
104
- button::-moz-focus-inner,
105
- [type="button"]::-moz-focus-inner,
106
- [type="reset"]::-moz-focus-inner,
107
- [type="submit"]::-moz-focus-inner {
108
- border-style: none;
109
- padding: 0;
110
- }
111
-
112
- button:-moz-focusring,
113
- [type="button"]:-moz-focusring,
114
- [type="reset"]:-moz-focusring,
115
- [type="submit"]:-moz-focusring {
116
- outline: 1px dotted ButtonText;
117
- }
118
-
119
- fieldset {
120
- padding: 0.35em 0.75em 0.625em;
121
- }
122
-
123
- legend {
124
- box-sizing: border-box;
125
- color: inherit;
126
- display: table;
127
- max-width: 100%;
128
- padding: 0;
129
- white-space: normal;
130
- }
131
-
132
- progress {
133
- vertical-align: baseline;
134
- }
135
-
136
- textarea {
137
- overflow: auto;
138
- }
139
-
140
- [type="checkbox"],
141
- [type="radio"] {
142
- box-sizing: border-box;
143
- padding: 0;
144
- }
145
-
146
- [type="number"]::-webkit-inner-spin-button,
147
- [type="number"]::-webkit-outer-spin-button {
148
- height: auto;
149
- }
150
-
151
- [type="search"] {
152
- -webkit-appearance: textfield;
153
- outline-offset: -2px;
154
- }
155
-
156
- [type="search"]::-webkit-search-decoration {
157
- -webkit-appearance: none;
158
- }
159
-
160
- ::-webkit-file-upload-button {
161
- -webkit-appearance: button;
162
- font: inherit;
163
- }
164
-
165
- details {
166
- display: block;
167
- }
168
-
169
- summary {
170
- display: list-item;
171
- }
172
-
173
- template {
174
- display: none;
175
- }
176
-
177
- [hidden] {
178
- display: none;
179
- }
@@ -1,21 +0,0 @@
1
- $tablet-screen: 600px;
2
- $small-screen: 900px;
3
- $wide-screen: 1150px;
4
-
5
- @mixin tablet {
6
- @media (min-width: $tablet-screen) {
7
- @content;
8
- }
9
- }
10
-
11
- @mixin desktop {
12
- @media (min-width: $small-screen) {
13
- @content;
14
- }
15
- }
16
-
17
- @mixin wide-desktop {
18
- @media (min-width: $wide-screen) {
19
- @content;
20
- }
21
- }
@@ -1,23 +0,0 @@
1
- .account-order {
2
- border-top: 1px solid $color-border-light;
3
- display: flex;
4
- justify-content: space-between;
5
- margin: 0;
6
- padding: 1rem 0;
7
-
8
- &:last-of-type {
9
- border-bottom: 1px solid $color-border-light;
10
- }
11
-
12
- &__detail {
13
- flex-grow: 1;
14
-
15
- dt {
16
- font-weight: bold;
17
- }
18
-
19
- dd {
20
- margin: .5rem 0 0;
21
- }
22
- }
23
- }
@@ -1,17 +0,0 @@
1
- .account-summary {
2
- @extend %section-spacings;
3
-
4
- > h1 {
5
- font-size: 2.2rem;
6
- font-weight: 800;
7
- margin: 0 0 2rem;
8
- }
9
-
10
- &__orders {
11
- margin-top: 4rem;
12
- }
13
-
14
- button {
15
- margin-top: 2rem;
16
- }
17
- }
@@ -1,11 +0,0 @@
1
- .auth-container {
2
- margin: 0 auto;
3
- max-width: 35rem;
4
- padding: 8rem 2rem;
5
-
6
- > h1 {
7
- font-size: 2.2rem;
8
- font-weight: 800;
9
- margin: 0 0 2rem;
10
- }
11
- }
@@ -1,5 +0,0 @@
1
- .auth-form {
2
- &__input-wrapper {
3
- margin: 2rem 0;
4
- }
5
- }
@@ -1,4 +0,0 @@
1
- .logo {
2
- flex-grow: 1;
3
- margin: 0;
4
- }
@@ -1,8 +0,0 @@
1
- .button-inline {
2
- background: none;
3
- border: 0;
4
- font-size: inherit;
5
- height: auto;
6
- padding: 0;
7
- text-decoration: underline;
8
- }
@@ -1,26 +0,0 @@
1
- .button-primary {
2
- background: $color-accent;
3
- border: 0;
4
- border-radius: 2px;
5
- color: $color-copy-bright;
6
- font-size: 1.4rem;
7
- font-weight: 500;
8
- height: 3.8rem;
9
- padding: 0 2rem;
10
-
11
- &--bordered {
12
- background: none;
13
- border: solid 1px $color-accent;
14
- color: $color-accent;
15
- }
16
-
17
- &--full-width {
18
- width: 100%;
19
- }
20
-
21
- &--small {
22
- font-size: 1.2rem;
23
- height: 3.2rem;
24
- padding: 0 1.2rem;
25
- }
26
- }
@@ -1,6 +0,0 @@
1
- .cart-adjustments {
2
- font-size: 1.3rem;
3
- margin-left: auto;
4
- margin-top: 2rem;
5
- width: 20em;
6
- }
@@ -1,11 +0,0 @@
1
- .cart-amount-row {
2
- display: flex;
3
- justify-content: space-between;
4
- margin-left: auto;
5
- padding: .5rem 0;
6
-
7
- &__type,
8
- &__amount {
9
- font-weight: bold;
10
- }
11
- }
@@ -1,10 +0,0 @@
1
- .cart-empty {
2
- &__title {
3
- font-size: 2.6rem;
4
- font-weight: 700;
5
- }
6
-
7
- &__action {
8
- font-size: 1.5rem;
9
- }
10
- }
@@ -1,20 +0,0 @@
1
- .cart-footer {
2
- align-items: center;
3
- display: flex;
4
- font-size: 1.3rem;
5
- margin: 4rem 0;
6
-
7
- &__total {
8
- flex-grow: 1;
9
- margin: 0;
10
- text-align: right;
11
-
12
- > strong {
13
- font-size: 1.8rem;
14
- }
15
- }
16
-
17
- &__primary-action {
18
- padding-left: 2rem;
19
- }
20
- }
@@ -1,12 +0,0 @@
1
- .cart-header {
2
- align-items: center;
3
- display: flex;
4
- margin-bottom: 4rem;
5
-
6
- &__title {
7
- flex-grow: 1;
8
- font-size: 2.6rem;
9
- font-weight: 700;
10
- margin: 0;
11
- }
12
- }
@@ -1,86 +0,0 @@
1
- .cart-item {
2
- border-bottom: solid 1px $color-border-light;
3
- font-size: 1.3rem;
4
- padding: 2rem 0;
5
-
6
- @include desktop {
7
- align-items: center;
8
- display: flex;
9
-
10
- > * {
11
- margin-bottom: 0;
12
- }
13
-
14
- &__image {
15
- flex-grow: 0;
16
- flex-shrink: 0;
17
- width: 20%;
18
-
19
- img {
20
- max-width: 100%;
21
- }
22
- }
23
-
24
- &__info {
25
- flex-grow: 1;
26
- padding-left: 4rem;
27
- padding-right: 2rem;
28
- }
29
-
30
- &__price-single,
31
- &__price {
32
- padding: 0 1rem;
33
- }
34
-
35
- &__quantity,
36
- &__price,
37
- &__remove {
38
- margin: 0;
39
- }
40
-
41
- &__price {
42
- font-size: 1.5rem;
43
- }
44
-
45
- &__quantity {
46
- flex-grow: 0;
47
- flex-shrink: 0;
48
- width: 10%;
49
- }
50
-
51
- &__remove {
52
- text-align: right;
53
- width: 12%;
54
- }
55
- }
56
-
57
- > * {
58
- margin-bottom: 1rem;
59
- }
60
-
61
- &:first-child {
62
- border-top: solid 1px $color-border-light;
63
- }
64
-
65
- &__image {
66
- text-align: center;
67
- }
68
-
69
- &__quantity,
70
- &__price,
71
- &__remove {
72
- margin: 10px 0 10px auto;
73
- text-align: right;
74
- width: 10rem;
75
- }
76
-
77
- &__remove {
78
- > input {
79
- background: transparent;
80
- border: 0;
81
- cursor: pointer;
82
- padding: 0;
83
- text-decoration: underline;
84
- }
85
- }
86
- }
@@ -1,22 +0,0 @@
1
- .cart-link {
2
- > a {
3
- font-size: 1.3rem;
4
- text-decoration: none;
5
- text-transform: uppercase;
6
- font-weight: 700;
7
-
8
- > span {
9
- color: #fff;
10
- background: $color_accent;
11
- border-radius: 2rem;
12
- font-size: 1.4rem;
13
- font-weight: 600;
14
- margin-left: .3rem;
15
- padding: .5rem 1.2rem;
16
-
17
- .money-decimal {
18
- font-size: 1.1rem;
19
- }
20
- }
21
- }
22
- }
@@ -1,15 +0,0 @@
1
- .cart-page {
2
- margin: 0 auto;
3
- max-width: 86rem;
4
- padding: 8rem 3rem;
5
-
6
- &__coupon-code {
7
- display: flex;
8
- justify-content: flex-end;
9
-
10
- @include desktop {
11
- display: block;
12
- margin-top: -7.5rem;
13
- }
14
- }
15
- }
@@ -1,19 +0,0 @@
1
- .cart-secondary-actions {
2
- display: flex;
3
- font-size: 1.3rem;
4
- margin-top: 10rem;
5
-
6
- &__continue {
7
- &::before {
8
- content: "←";
9
- font-size: 1.2rem;
10
- margin-right: 0.3rem;
11
- }
12
-
13
- &::after {
14
- content: "or";
15
- margin-left: 1rem;
16
- margin-right: 0.8rem;
17
- }
18
- }
19
- }