spree_frontend 4.4.0 → 4.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +18 -17
- data/.eslintrc +1 -1
- data/Gemfile +4 -8
- data/README.md +55 -2
- data/app/assets/config/spree_frontend_manifest.js +1 -0
- data/app/assets/javascripts/spree/{api → frontend/api}/main.js +4 -4
- data/app/assets/javascripts/spree/{api → frontend/api}/storefront/cart.js +1 -1
- data/app/assets/javascripts/spree/frontend/checkout/address.js +3 -3
- data/app/assets/javascripts/spree/frontend/currency.js +6 -7
- data/app/assets/javascripts/spree/frontend/locale.es6 +1 -2
- data/app/assets/javascripts/{spree.js → spree/frontend/main.js} +5 -5
- data/app/assets/javascripts/spree/frontend/{turbolinks_scroll_fix.js → turbo_scroll_fix.js} +3 -3
- data/app/assets/javascripts/spree/frontend/views/spree/home/product_carousels.js +1 -1
- data/app/assets/javascripts/spree/frontend/views/spree/product/related.js +1 -1
- data/app/assets/javascripts/spree/frontend/views/spree/products/cart_form.js +8 -8
- data/app/assets/javascripts/spree/frontend/views/spree/products/description.js +1 -1
- data/app/assets/javascripts/spree/frontend/views/spree/products/index.js +1 -1
- data/app/assets/javascripts/spree/frontend/views/spree/shared/mobile_navigation.js +4 -4
- data/app/assets/javascripts/spree/frontend/views/spree/shared/variant_select.js +3 -3
- data/app/assets/javascripts/spree/frontend.js +10 -17
- data/app/controllers/spree/addresses_controller.rb +2 -2
- data/app/controllers/spree/checkout_controller.rb +2 -2
- data/app/controllers/spree/locale_controller.rb +2 -1
- data/app/controllers/spree/orders_controller.rb +1 -1
- data/app/helpers/spree/frontend_helper.rb +14 -8
- data/app/helpers/spree/navigation_helper.rb +1 -1
- data/app/helpers/spree/products_filters_helper.rb +1 -1
- data/app/views/spree/checkout/edit.html.erb +1 -1
- data/app/views/spree/checkout/registration.html.erb +1 -1
- data/app/views/spree/orders/_line_item.html.erb +1 -1
- data/app/views/spree/orders/_line_item_data.html.erb +1 -1
- data/app/views/spree/products/_color_option_type.html.erb +2 -2
- data/app/views/spree/products/_filters_desktop.html.erb +3 -3
- data/app/views/spree/products/_filters_mobile.html.erb +2 -2
- data/app/views/spree/products/_thumbnails.html.erb +2 -2
- data/app/views/spree/shared/_head.html.erb +3 -2
- data/app/views/spree/shared/_line_item.html.erb +1 -1
- data/app/views/spree/shared/_link_to_account.html.erb +1 -1
- data/app/views/spree/shared/_login.html.erb +1 -1
- data/app/views/spree/shared/_main_nav_bar.html.erb +1 -1
- data/app/views/spree/shared/_nav_bar.html.erb +1 -1
- data/app/views/spree/shared/_order_details.html.erb +1 -1
- data/app/views/spree/shared/_translations.html.erb +1 -1
- data/app/views/spree/shared/carousel/_single.html.erb +2 -2
- data/app/views/spree/shared/carousel/_thumbnails.html.erb +1 -1
- data/app/views/spree/shared/cms/sections/_hero_image.html.erb +9 -9
- data/app/views/spree/shared/cms/sections/_image_gallery.html.erb +21 -21
- data/app/views/spree/shared/cms/sections/_side_by_side_images.html.erb +14 -14
- data/app/views/spree/taxons/_header.html.erb +1 -1
- data/app/views/spree/users/_address_controls.html.erb +1 -1
- data/lib/generators/spree/frontend/install/install_generator.rb +1 -1
- data/lib/spree/frontend/configuration.rb +18 -0
- data/lib/spree/frontend/engine.rb +3 -8
- data/lib/spree/frontend/version.rb +1 -1
- data/lib/spree/frontend.rb +2 -1
- data/spree_frontend.gemspec +3 -2
- metadata +35 -21
- data/app/models/spree/frontend_configuration.rb +0 -16
data/lib/spree/frontend.rb
CHANGED
data/spree_frontend.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = Spree::Frontend.version
|
8
8
|
s.authors = ['Sean Schofield', 'Spark Solutions']
|
9
9
|
s.email = 'hello@spreecommerce.org'
|
10
|
-
s.summary = 'The default Storefront built with Rails and
|
10
|
+
s.summary = 'The default Storefront built with Rails and Turbo/Hotwire for Spree eCommerce platform'
|
11
11
|
s.description = s.summary
|
12
12
|
s.homepage = 'https://spreecommerce.org'
|
13
13
|
s.license = 'BSD-3-Clause'
|
@@ -33,9 +33,10 @@ Gem::Specification.new do |s|
|
|
33
33
|
s.add_dependency 'glyphicons', '~> 1.0'
|
34
34
|
s.add_dependency 'canonical-rails', '~> 0.2', '>= 0.2.10'
|
35
35
|
s.add_dependency 'inline_svg', '~> 1.5'
|
36
|
+
s.add_dependency 'jsbundling-rails'
|
36
37
|
s.add_dependency 'jquery-rails', '~> 4.3'
|
37
38
|
s.add_dependency 'sass-rails', '>= 5'
|
38
|
-
s.add_dependency '
|
39
|
+
s.add_dependency 'turbo-rails'
|
39
40
|
s.add_dependency 'responders'
|
40
41
|
s.add_dependency 'sprockets', '~> 4.0'
|
41
42
|
|
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.
|
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: 2022-
|
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.
|
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.
|
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.
|
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.
|
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:
|
161
|
+
name: turbo-rails
|
148
162
|
requirement: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
|
-
- - "
|
164
|
+
- - ">="
|
151
165
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
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: '
|
173
|
+
version: '0'
|
160
174
|
- !ruby/object:Gem::Dependency
|
161
175
|
name: responders
|
162
176
|
requirement: !ruby/object:Gem::Requirement
|
@@ -199,7 +213,7 @@ dependencies:
|
|
199
213
|
- - ">="
|
200
214
|
- !ruby/object:Gem::Version
|
201
215
|
version: '0'
|
202
|
-
description: The default Storefront built with Rails and
|
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: []
|
@@ -571,11 +585,10 @@ files:
|
|
571
585
|
- app/assets/images/search.svg
|
572
586
|
- app/assets/images/twitter.svg
|
573
587
|
- app/assets/images/vimeo.svg
|
574
|
-
- app/assets/javascripts/spree.js
|
575
|
-
- app/assets/javascripts/spree/api/main.js
|
576
|
-
- app/assets/javascripts/spree/api/storefront/cart.js
|
577
588
|
- app/assets/javascripts/spree/frontend.js
|
578
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
|
579
592
|
- app/assets/javascripts/spree/frontend/api_tokens.js
|
580
593
|
- app/assets/javascripts/spree/frontend/carousel-noconflict.js
|
581
594
|
- app/assets/javascripts/spree/frontend/cart.js
|
@@ -590,8 +603,9 @@ files:
|
|
590
603
|
- app/assets/javascripts/spree/frontend/currency.js
|
591
604
|
- app/assets/javascripts/spree/frontend/locale.es6
|
592
605
|
- app/assets/javascripts/spree/frontend/login.js
|
606
|
+
- app/assets/javascripts/spree/frontend/main.js
|
593
607
|
- app/assets/javascripts/spree/frontend/main_nav_bar.js
|
594
|
-
- app/assets/javascripts/spree/frontend/
|
608
|
+
- app/assets/javascripts/spree/frontend/turbo_scroll_fix.js
|
595
609
|
- app/assets/javascripts/spree/frontend/viewport.js
|
596
610
|
- app/assets/javascripts/spree/frontend/views/spree/home/product_carousels.js
|
597
611
|
- app/assets/javascripts/spree/frontend/views/spree/layouts/spree_application.js
|
@@ -704,7 +718,6 @@ files:
|
|
704
718
|
- app/helpers/spree/store_helper.rb
|
705
719
|
- app/helpers/spree/structured_data_helper.rb
|
706
720
|
- app/helpers/spree/taxons_helper.rb
|
707
|
-
- app/models/spree/frontend_configuration.rb
|
708
721
|
- app/services/spree/build_localized_redirect_url.rb
|
709
722
|
- app/views/kaminari/twitter-bootstrap-4/_first_page.html.erb
|
710
723
|
- app/views/kaminari/twitter-bootstrap-4/_gap.html.erb
|
@@ -840,6 +853,7 @@ files:
|
|
840
853
|
- lib/generators/spree/frontend/install/templates/vendor/assets/javascripts/spree/frontend/all.js
|
841
854
|
- lib/generators/spree/frontend/install/templates/vendor/assets/stylesheets/spree/frontend/all.css
|
842
855
|
- lib/spree/frontend.rb
|
856
|
+
- lib/spree/frontend/configuration.rb
|
843
857
|
- lib/spree/frontend/engine.rb
|
844
858
|
- lib/spree/frontend/middleware/seo_assist.rb
|
845
859
|
- lib/spree/frontend/version.rb
|
@@ -861,9 +875,9 @@ licenses:
|
|
861
875
|
- BSD-3-Clause
|
862
876
|
metadata:
|
863
877
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
864
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.
|
878
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.5.0
|
865
879
|
documentation_uri: https://dev-docs.spreecommerce.org/
|
866
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.
|
880
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.5.0
|
867
881
|
post_install_message:
|
868
882
|
rdoc_options: []
|
869
883
|
require_paths:
|
@@ -880,9 +894,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
880
894
|
version: '0'
|
881
895
|
requirements:
|
882
896
|
- none
|
883
|
-
rubygems_version: 3.
|
897
|
+
rubygems_version: 3.0.9
|
884
898
|
signing_key:
|
885
899
|
specification_version: 4
|
886
|
-
summary: The default Storefront built with Rails and
|
900
|
+
summary: The default Storefront built with Rails and Turbo/Hotwire for Spree eCommerce
|
887
901
|
platform
|
888
902
|
test_files: []
|
@@ -1,16 +0,0 @@
|
|
1
|
-
module Spree
|
2
|
-
class FrontendConfiguration < Preferences::Configuration
|
3
|
-
preference :additional_filters_partials, :array, default: %w()
|
4
|
-
preference :always_put_site_name_in_title, :boolean, default: true
|
5
|
-
preference :coupon_codes_enabled, :boolean, default: true # Determines if we show coupon code form at cart and checkout
|
6
|
-
preference :http_cache_enabled, :boolean, default: true
|
7
|
-
preference :layout, :string, default: 'spree/layouts/spree_application'
|
8
|
-
preference :locale, :string, default: nil
|
9
|
-
preference :products_filters, :array, default: %w(keywords price sort_by)
|
10
|
-
preference :remember_me_enabled, :boolean, default: true
|
11
|
-
preference :shipping_instructions, :boolean, default: false # Request instructions/info for shipping
|
12
|
-
preference :show_raw_product_description, :boolean, default: false
|
13
|
-
preference :show_store_selector, :boolean, default: false
|
14
|
-
preference :title_site_name_separator, :string, default: '-' # When always_put_site_name_in_title is true, insert a separator character before the site name in the title
|
15
|
-
end
|
16
|
-
end
|