spree_frontend 4.3.0 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +192 -0
  3. data/.codeclimate.yml +36 -0
  4. data/.deepsource.toml +19 -0
  5. data/.editorconfig +22 -0
  6. data/.eslintignore +7 -0
  7. data/.eslintrc +36 -0
  8. data/.gem_release.yml +7 -0
  9. data/.github/CONTRIBUTING.md +1 -0
  10. data/.github/ISSUE_TEMPLATE/bug_report.md +47 -0
  11. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  12. data/.github/ISSUE_TEMPLATE.md +39 -0
  13. data/.github/dependabot.yml +32 -0
  14. data/.gitignore +58 -0
  15. data/.rubocop.yml +197 -0
  16. data/.solargraph.yml +20 -0
  17. data/.stylelintignore +4 -0
  18. data/.stylelintrc +6 -0
  19. data/CODE_OF_CONDUCT.md +22 -0
  20. data/Gemfile +58 -3
  21. data/LICENSE +1 -1
  22. data/README.md +88 -0
  23. data/SECURITY.md +1 -0
  24. data/app/assets/config/spree_frontend_manifest.js +1 -0
  25. data/app/assets/javascripts/spree/{api → frontend/api}/main.js +4 -4
  26. data/app/assets/javascripts/spree/{api → frontend/api}/storefront/cart.js +1 -1
  27. data/app/assets/javascripts/spree/frontend/checkout/address.js +3 -3
  28. data/app/assets/javascripts/spree/frontend/currency.js +6 -7
  29. data/app/assets/javascripts/spree/frontend/locale.es6 +1 -2
  30. data/app/assets/javascripts/{spree.js → spree/frontend/main.js} +5 -5
  31. data/app/assets/javascripts/spree/frontend/{turbolinks_scroll_fix.js → turbo_scroll_fix.js} +3 -3
  32. data/app/assets/javascripts/spree/frontend/views/spree/home/product_carousels.js +1 -1
  33. data/app/assets/javascripts/spree/frontend/views/spree/product/related.js +1 -1
  34. data/app/assets/javascripts/spree/frontend/views/spree/products/cart_form.js +8 -8
  35. data/app/assets/javascripts/spree/frontend/views/spree/products/description.js +1 -1
  36. data/app/assets/javascripts/spree/frontend/views/spree/products/index.js +1 -1
  37. data/app/assets/javascripts/spree/frontend/views/spree/shared/mobile_navigation.js +4 -4
  38. data/app/assets/javascripts/spree/frontend/views/spree/shared/variant_select.js +3 -3
  39. data/app/assets/javascripts/spree/frontend.js +10 -17
  40. data/app/controllers/spree/addresses_controller.rb +4 -4
  41. data/app/controllers/spree/checkout_controller.rb +2 -2
  42. data/app/controllers/spree/locale_controller.rb +3 -2
  43. data/app/controllers/spree/orders_controller.rb +1 -1
  44. data/app/controllers/spree/store_controller.rb +42 -1
  45. data/app/helpers/spree/frontend_helper.rb +32 -8
  46. data/app/helpers/spree/navigation_helper.rb +2 -2
  47. data/app/helpers/spree/products_filters_helper.rb +1 -1
  48. data/app/helpers/spree/store_helper.rb +1 -1
  49. data/app/services/spree/build_localized_redirect_url.rb +101 -0
  50. data/app/views/spree/checkout/_delivery.html.erb +1 -1
  51. data/app/views/spree/checkout/edit.html.erb +1 -1
  52. data/app/views/spree/checkout/registration.html.erb +1 -1
  53. data/app/views/spree/orders/_line_item.html.erb +1 -1
  54. data/app/views/spree/orders/_line_item_data.html.erb +1 -1
  55. data/app/views/spree/products/_color_option_type.html.erb +2 -2
  56. data/app/views/spree/products/_description.html.erb +1 -1
  57. data/app/views/spree/products/_filters_desktop.html.erb +3 -3
  58. data/app/views/spree/products/_filters_mobile.html.erb +2 -2
  59. data/app/views/spree/products/_thumbnails.html.erb +2 -2
  60. data/app/views/spree/shared/_head.html.erb +3 -2
  61. data/app/views/spree/shared/_line_item.html.erb +1 -1
  62. data/app/views/spree/shared/_link_to_account.html.erb +3 -1
  63. data/app/views/spree/shared/_login.html.erb +1 -1
  64. data/app/views/spree/shared/_main_nav_bar.html.erb +1 -1
  65. data/app/views/spree/shared/_nav_bar.html.erb +1 -1
  66. data/app/views/spree/shared/_order_details.html.erb +1 -1
  67. data/app/views/spree/shared/_paths.html.erb +1 -1
  68. data/app/views/spree/shared/_translations.html.erb +1 -1
  69. data/app/views/spree/shared/carousel/_single.html.erb +2 -2
  70. data/app/views/spree/shared/carousel/_thumbnails.html.erb +1 -1
  71. data/app/views/spree/shared/cms/sections/_hero_image.html.erb +9 -9
  72. data/app/views/spree/shared/cms/sections/_image_gallery.html.erb +21 -21
  73. data/app/views/spree/shared/cms/sections/_side_by_side_images.html.erb +14 -14
  74. data/app/views/spree/taxons/_header.html.erb +1 -1
  75. data/app/views/spree/users/_address_controls.html.erb +1 -1
  76. data/config/routes.rb +4 -4
  77. data/lib/generators/spree/frontend/install/install_generator.rb +1 -1
  78. data/lib/spree/frontend/configuration.rb +18 -0
  79. data/lib/spree/frontend/engine.rb +3 -7
  80. data/lib/spree/frontend/version.rb +9 -0
  81. data/lib/spree/frontend.rb +2 -1
  82. data/license.md +13 -0
  83. data/spree_frontend.gemspec +5 -4
  84. metadata +58 -22
  85. data/app/models/spree/frontend_configuration.rb +0 -10
  86. data/app/views/spree/shared/_taxonomies.html.erb +0 -16
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-09-14 00:00:00.000000000 Z
12
+ date: 2022-12-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree_api
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 4.3.0
20
+ version: 4.5.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 4.3.0
27
+ version: 4.5.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: spree_core
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 4.3.0
34
+ version: 4.5.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 4.3.0
41
+ version: 4.5.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: babel-transpiler
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -115,6 +115,20 @@ dependencies:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '1.5'
118
+ - !ruby/object:Gem::Dependency
119
+ name: jsbundling-rails
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ type: :runtime
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
118
132
  - !ruby/object:Gem::Dependency
119
133
  name: jquery-rails
120
134
  requirement: !ruby/object:Gem::Requirement
@@ -144,19 +158,19 @@ dependencies:
144
158
  - !ruby/object:Gem::Version
145
159
  version: '5'
146
160
  - !ruby/object:Gem::Dependency
147
- name: turbolinks
161
+ name: turbo-rails
148
162
  requirement: !ruby/object:Gem::Requirement
149
163
  requirements:
150
- - - "~>"
164
+ - - ">="
151
165
  - !ruby/object:Gem::Version
152
- version: '5.2'
166
+ version: '0'
153
167
  type: :runtime
154
168
  prerelease: false
155
169
  version_requirements: !ruby/object:Gem::Requirement
156
170
  requirements:
157
- - - "~>"
171
+ - - ">="
158
172
  - !ruby/object:Gem::Version
159
- version: '5.2'
173
+ version: '0'
160
174
  - !ruby/object:Gem::Dependency
161
175
  name: responders
162
176
  requirement: !ruby/object:Gem::Requirement
@@ -199,16 +213,36 @@ dependencies:
199
213
  - - ">="
200
214
  - !ruby/object:Gem::Version
201
215
  version: '0'
202
- description: The default Storefront built with Rails and Turbolinks for Spree eCommerce
216
+ description: The default Storefront built with Rails and Turbo/Hotwire for Spree eCommerce
203
217
  platform
204
218
  email: hello@spreecommerce.org
205
219
  executables: []
206
220
  extensions: []
207
221
  extra_rdoc_files: []
208
222
  files:
223
+ - ".circleci/config.yml"
224
+ - ".codeclimate.yml"
225
+ - ".deepsource.toml"
226
+ - ".editorconfig"
227
+ - ".eslintignore"
228
+ - ".eslintrc"
229
+ - ".gem_release.yml"
230
+ - ".github/CONTRIBUTING.md"
231
+ - ".github/ISSUE_TEMPLATE.md"
232
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
233
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
234
+ - ".github/dependabot.yml"
235
+ - ".gitignore"
236
+ - ".rubocop.yml"
237
+ - ".solargraph.yml"
238
+ - ".stylelintignore"
239
+ - ".stylelintrc"
240
+ - CODE_OF_CONDUCT.md
209
241
  - Gemfile
210
242
  - LICENSE
243
+ - README.md
211
244
  - Rakefile
245
+ - SECURITY.md
212
246
  - app/assets/config/spree_frontend_manifest.js
213
247
  - app/assets/images/arrow-down.svg
214
248
  - app/assets/images/arrow-right-circle-fill.svg
@@ -551,11 +585,10 @@ files:
551
585
  - app/assets/images/search.svg
552
586
  - app/assets/images/twitter.svg
553
587
  - app/assets/images/vimeo.svg
554
- - app/assets/javascripts/spree.js
555
- - app/assets/javascripts/spree/api/main.js
556
- - app/assets/javascripts/spree/api/storefront/cart.js
557
588
  - app/assets/javascripts/spree/frontend.js
558
589
  - app/assets/javascripts/spree/frontend/account.js
590
+ - app/assets/javascripts/spree/frontend/api/main.js
591
+ - app/assets/javascripts/spree/frontend/api/storefront/cart.js
559
592
  - app/assets/javascripts/spree/frontend/api_tokens.js
560
593
  - app/assets/javascripts/spree/frontend/carousel-noconflict.js
561
594
  - app/assets/javascripts/spree/frontend/cart.js
@@ -570,8 +603,9 @@ files:
570
603
  - app/assets/javascripts/spree/frontend/currency.js
571
604
  - app/assets/javascripts/spree/frontend/locale.es6
572
605
  - app/assets/javascripts/spree/frontend/login.js
606
+ - app/assets/javascripts/spree/frontend/main.js
573
607
  - app/assets/javascripts/spree/frontend/main_nav_bar.js
574
- - app/assets/javascripts/spree/frontend/turbolinks_scroll_fix.js
608
+ - app/assets/javascripts/spree/frontend/turbo_scroll_fix.js
575
609
  - app/assets/javascripts/spree/frontend/viewport.js
576
610
  - app/assets/javascripts/spree/frontend/views/spree/home/product_carousels.js
577
611
  - app/assets/javascripts/spree/frontend/views/spree/layouts/spree_application.js
@@ -684,7 +718,7 @@ files:
684
718
  - app/helpers/spree/store_helper.rb
685
719
  - app/helpers/spree/structured_data_helper.rb
686
720
  - app/helpers/spree/taxons_helper.rb
687
- - app/models/spree/frontend_configuration.rb
721
+ - app/services/spree/build_localized_redirect_url.rb
688
722
  - app/views/kaminari/twitter-bootstrap-4/_first_page.html.erb
689
723
  - app/views/kaminari/twitter-bootstrap-4/_gap.html.erb
690
724
  - app/views/kaminari/twitter-bootstrap-4/_last_page.html.erb
@@ -791,7 +825,6 @@ files:
791
825
  - app/views/spree/shared/_search.html.erb
792
826
  - app/views/spree/shared/_shipment_tracking.html.erb
793
827
  - app/views/spree/shared/_sidebar.html.erb
794
- - app/views/spree/shared/_taxonomies.html.erb
795
828
  - app/views/spree/shared/_translations.html.erb
796
829
  - app/views/spree/shared/_user_form.html.erb
797
830
  - app/views/spree/shared/carousel/_single.html.erb
@@ -820,9 +853,12 @@ files:
820
853
  - lib/generators/spree/frontend/install/templates/vendor/assets/javascripts/spree/frontend/all.js
821
854
  - lib/generators/spree/frontend/install/templates/vendor/assets/stylesheets/spree/frontend/all.css
822
855
  - lib/spree/frontend.rb
856
+ - lib/spree/frontend/configuration.rb
823
857
  - lib/spree/frontend/engine.rb
824
858
  - lib/spree/frontend/middleware/seo_assist.rb
859
+ - lib/spree/frontend/version.rb
825
860
  - lib/spree_frontend.rb
861
+ - license.md
826
862
  - script/rails
827
863
  - spec/fixtures/files/store_favicon.ico
828
864
  - spec/fixtures/thinking-cat.jpg
@@ -839,9 +875,9 @@ licenses:
839
875
  - BSD-3-Clause
840
876
  metadata:
841
877
  bug_tracker_uri: https://github.com/spree/spree/issues
842
- changelog_uri: https://github.com/spree/spree/releases/tag/v4.3.0
878
+ changelog_uri: https://github.com/spree/spree/releases/tag/v4.5.0
843
879
  documentation_uri: https://dev-docs.spreecommerce.org/
844
- source_code_uri: https://github.com/spree/spree/tree/v4.3.0
880
+ source_code_uri: https://github.com/spree/spree/tree/v4.5.0
845
881
  post_install_message:
846
882
  rdoc_options: []
847
883
  require_paths:
@@ -858,9 +894,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
858
894
  version: '0'
859
895
  requirements:
860
896
  - none
861
- rubygems_version: 3.1.4
897
+ rubygems_version: 3.0.9
862
898
  signing_key:
863
899
  specification_version: 4
864
- summary: The default Storefront built with Rails and Turbolinks for Spree eCommerce
900
+ summary: The default Storefront built with Rails and Turbo/Hotwire for Spree eCommerce
865
901
  platform
866
902
  test_files: []
@@ -1,10 +0,0 @@
1
- module Spree
2
- class FrontendConfiguration < Preferences::Configuration
3
- preference :coupon_codes_enabled, :boolean, default: true # Determines if we show coupon code form at cart and checkout
4
- preference :http_cache_enabled, :boolean, default: true
5
- preference :locale, :string, default: nil
6
- preference :products_filters, :array, default: %w(keywords price sort_by)
7
- preference :additional_filters_partials, :array, default: %w()
8
- preference :remember_me_enabled, :boolean, default: true
9
- end
10
- end
@@ -1,16 +0,0 @@
1
- <% max_level = Spree::Config[:max_level_in_taxons_menu] || 1 %>
2
-
3
- <nav id="taxonomies" class="sidebar-item" data-hook aria-label="taxonomies">
4
- <% @taxonomies.each do |taxonomy| %>
5
- <% cache [I18n.locale, taxonomy, max_level, @taxon] do %>
6
- <% if taxonomy.root.children.any? %>
7
- <div class="mt-4">
8
- <h4 class='taxonomy-root h5'>
9
- <%= Spree.t(:shop_by_taxonomy, taxonomy: taxonomy.name) %>
10
- </h4>
11
- <%= taxons_tree(taxonomy.root, @taxon, max_level) %>
12
- </div>
13
- <% end %>
14
- <% end %>
15
- <% end %>
16
- </nav>