spree_frontend 4.5.0 → 4.6.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 +33 -21
- data/README.md +1 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/logo/spree_50.png +0 -0
- data/app/assets/images/logo-spree.png +0 -0
- data/app/assets/images/logo.png +0 -0
- data/app/assets/images/logo.svg +10 -1
- data/app/assets/images/logo@2x.png +0 -0
- data/app/assets/images/logo@3x.png +0 -0
- data/app/assets/images/noimage/large.png +0 -0
- data/app/assets/images/noimage/mini.png +0 -0
- data/app/assets/images/noimage/plp.png +0 -0
- data/app/assets/images/noimage/plp.svg +13 -20
- data/app/assets/images/noimage/product.png +0 -0
- data/app/assets/images/noimage/small.png +0 -0
- data/app/controllers/spree/locale_controller.rb +5 -0
- data/app/controllers/spree/products_controller.rb +1 -1
- data/app/controllers/spree/taxons_controller.rb +1 -1
- data/app/services/spree/build_localized_redirect_url.rb +48 -8
- data/app/views/spree/addresses/new.html.erb +1 -1
- data/lib/spree/frontend/version.rb +1 -1
- data/spree_frontend.gemspec +1 -0
- metadata +23 -266
- data/app/assets/images/flags/4x3/ad.svg +0 -150
- data/app/assets/images/flags/4x3/ae.svg +0 -6
- data/app/assets/images/flags/4x3/af.svg +0 -81
- data/app/assets/images/flags/4x3/ag.svg +0 -14
- data/app/assets/images/flags/4x3/ai.svg +0 -763
- data/app/assets/images/flags/4x3/al.svg +0 -5
- data/app/assets/images/flags/4x3/am.svg +0 -5
- data/app/assets/images/flags/4x3/ao.svg +0 -13
- data/app/assets/images/flags/4x3/aq.svg +0 -5
- data/app/assets/images/flags/4x3/ar.svg +0 -31
- data/app/assets/images/flags/4x3/as.svg +0 -33
- data/app/assets/images/flags/4x3/at.svg +0 -6
- data/app/assets/images/flags/4x3/au.svg +0 -9
- data/app/assets/images/flags/4x3/aw.svg +0 -186
- data/app/assets/images/flags/4x3/ax.svg +0 -18
- data/app/assets/images/flags/4x3/az.svg +0 -8
- data/app/assets/images/flags/4x3/ba.svg +0 -12
- data/app/assets/images/flags/4x3/bb.svg +0 -6
- data/app/assets/images/flags/4x3/bd.svg +0 -4
- data/app/assets/images/flags/4x3/be.svg +0 -7
- data/app/assets/images/flags/4x3/bf.svg +0 -7
- data/app/assets/images/flags/4x3/bg.svg +0 -7
- data/app/assets/images/flags/4x3/bh.svg +0 -9
- data/app/assets/images/flags/4x3/bi.svg +0 -15
- data/app/assets/images/flags/4x3/bj.svg +0 -14
- data/app/assets/images/flags/4x3/bl.svg +0 -7
- data/app/assets/images/flags/4x3/bm.svg +0 -98
- data/app/assets/images/flags/4x3/bn.svg +0 -36
- data/app/assets/images/flags/4x3/bo.svg +0 -676
- data/app/assets/images/flags/4x3/bq.svg +0 -5
- data/app/assets/images/flags/4x3/br.svg +0 -45
- data/app/assets/images/flags/4x3/bs.svg +0 -13
- data/app/assets/images/flags/4x3/bt.svg +0 -89
- data/app/assets/images/flags/4x3/bv.svg +0 -13
- data/app/assets/images/flags/4x3/bw.svg +0 -7
- data/app/assets/images/flags/4x3/by.svg +0 -20
- data/app/assets/images/flags/4x3/bz.svg +0 -145
- data/app/assets/images/flags/4x3/ca.svg +0 -4
- data/app/assets/images/flags/4x3/cc.svg +0 -19
- data/app/assets/images/flags/4x3/cd.svg +0 -5
- data/app/assets/images/flags/4x3/cf.svg +0 -15
- data/app/assets/images/flags/4x3/cg.svg +0 -12
- data/app/assets/images/flags/4x3/ch.svg +0 -9
- data/app/assets/images/flags/4x3/ci.svg +0 -7
- data/app/assets/images/flags/4x3/ck.svg +0 -9
- data/app/assets/images/flags/4x3/cl.svg +0 -13
- data/app/assets/images/flags/4x3/cm.svg +0 -15
- data/app/assets/images/flags/4x3/cn.svg +0 -11
- data/app/assets/images/flags/4x3/co.svg +0 -7
- data/app/assets/images/flags/4x3/cr.svg +0 -7
- data/app/assets/images/flags/4x3/cu.svg +0 -13
- data/app/assets/images/flags/4x3/cv.svg +0 -13
- data/app/assets/images/flags/4x3/cw.svg +0 -14
- data/app/assets/images/flags/4x3/cx.svg +0 -15
- data/app/assets/images/flags/4x3/cy.svg +0 -6
- data/app/assets/images/flags/4x3/cz.svg +0 -5
- data/app/assets/images/flags/4x3/de.svg +0 -5
- data/app/assets/images/flags/4x3/dj.svg +0 -13
- data/app/assets/images/flags/4x3/dk.svg +0 -5
- data/app/assets/images/flags/4x3/dm.svg +0 -152
- data/app/assets/images/flags/4x3/do.svg +0 -6745
- data/app/assets/images/flags/4x3/dz.svg +0 -5
- data/app/assets/images/flags/4x3/ec.svg +0 -138
- data/app/assets/images/flags/4x3/ee.svg +0 -7
- data/app/assets/images/flags/4x3/eg.svg +0 -38
- data/app/assets/images/flags/4x3/eh.svg +0 -15
- data/app/assets/images/flags/4x3/er.svg +0 -8
- data/app/assets/images/flags/4x3/es-ca.svg +0 -4
- data/app/assets/images/flags/4x3/es.svg +0 -544
- data/app/assets/images/flags/4x3/et.svg +0 -14
- data/app/assets/images/flags/4x3/eu.svg +0 -28
- data/app/assets/images/flags/4x3/fi.svg +0 -5
- data/app/assets/images/flags/4x3/fj.svg +0 -122
- data/app/assets/images/flags/4x3/fk.svg +0 -90
- data/app/assets/images/flags/4x3/fm.svg +0 -11
- data/app/assets/images/flags/4x3/fo.svg +0 -12
- data/app/assets/images/flags/4x3/fr.svg +0 -7
- data/app/assets/images/flags/4x3/ga.svg +0 -7
- data/app/assets/images/flags/4x3/gb-eng.svg +0 -5
- data/app/assets/images/flags/4x3/gb-nir.svg +0 -132
- data/app/assets/images/flags/4x3/gb-sct.svg +0 -4
- data/app/assets/images/flags/4x3/gb-wls.svg +0 -9
- data/app/assets/images/flags/4x3/gb.svg +0 -7
- data/app/assets/images/flags/4x3/gd.svg +0 -27
- data/app/assets/images/flags/4x3/ge.svg +0 -6
- data/app/assets/images/flags/4x3/gf.svg +0 -7
- data/app/assets/images/flags/4x3/gg.svg +0 -9
- data/app/assets/images/flags/4x3/gh.svg +0 -6
- data/app/assets/images/flags/4x3/gi.svg +0 -32
- data/app/assets/images/flags/4x3/gl.svg +0 -4
- data/app/assets/images/flags/4x3/gm.svg +0 -14
- data/app/assets/images/flags/4x3/gn.svg +0 -7
- data/app/assets/images/flags/4x3/gp.svg +0 -7
- data/app/assets/images/flags/4x3/gq.svg +0 -23
- data/app/assets/images/flags/4x3/gr.svg +0 -16
- data/app/assets/images/flags/4x3/gs.svg +0 -201
- data/app/assets/images/flags/4x3/gt.svg +0 -204
- data/app/assets/images/flags/4x3/gu.svg +0 -39
- data/app/assets/images/flags/4x3/gw.svg +0 -13
- data/app/assets/images/flags/4x3/gy.svg +0 -9
- data/app/assets/images/flags/4x3/hk.svg +0 -30
- data/app/assets/images/flags/4x3/hm.svg +0 -9
- data/app/assets/images/flags/4x3/hn.svg +0 -18
- data/app/assets/images/flags/4x3/hr.svg +0 -58
- data/app/assets/images/flags/4x3/ht.svg +0 -116
- data/app/assets/images/flags/4x3/hu.svg +0 -7
- data/app/assets/images/flags/4x3/id.svg +0 -6
- data/app/assets/images/flags/4x3/ie.svg +0 -7
- data/app/assets/images/flags/4x3/il.svg +0 -14
- data/app/assets/images/flags/4x3/im.svg +0 -36
- data/app/assets/images/flags/4x3/in.svg +0 -25
- data/app/assets/images/flags/4x3/io.svg +0 -138
- data/app/assets/images/flags/4x3/iq.svg +0 -10
- data/app/assets/images/flags/4x3/ir.svg +0 -219
- data/app/assets/images/flags/4x3/is.svg +0 -12
- data/app/assets/images/flags/4x3/it.svg +0 -7
- data/app/assets/images/flags/4x3/je.svg +0 -29
- data/app/assets/images/flags/4x3/jm.svg +0 -8
- data/app/assets/images/flags/4x3/jo.svg +0 -16
- data/app/assets/images/flags/4x3/jp.svg +0 -11
- data/app/assets/images/flags/4x3/ke.svg +0 -23
- data/app/assets/images/flags/4x3/kg.svg +0 -15
- data/app/assets/images/flags/4x3/kh.svg +0 -61
- data/app/assets/images/flags/4x3/ki.svg +0 -36
- data/app/assets/images/flags/4x3/km.svg +0 -16
- data/app/assets/images/flags/4x3/kn.svg +0 -14
- data/app/assets/images/flags/4x3/kp.svg +0 -15
- data/app/assets/images/flags/4x3/kr.svg +0 -24
- data/app/assets/images/flags/4x3/kw.svg +0 -13
- data/app/assets/images/flags/4x3/ky.svg +0 -63
- data/app/assets/images/flags/4x3/kz.svg +0 -23
- data/app/assets/images/flags/4x3/la.svg +0 -12
- data/app/assets/images/flags/4x3/lb.svg +0 -15
- data/app/assets/images/flags/4x3/lc.svg +0 -8
- data/app/assets/images/flags/4x3/li.svg +0 -43
- data/app/assets/images/flags/4x3/lk.svg +0 -22
- data/app/assets/images/flags/4x3/lr.svg +0 -14
- data/app/assets/images/flags/4x3/ls.svg +0 -8
- data/app/assets/images/flags/4x3/lt.svg +0 -7
- data/app/assets/images/flags/4x3/lu.svg +0 -5
- data/app/assets/images/flags/4x3/lv.svg +0 -6
- data/app/assets/images/flags/4x3/ly.svg +0 -13
- data/app/assets/images/flags/4x3/ma.svg +0 -4
- data/app/assets/images/flags/4x3/mc.svg +0 -6
- data/app/assets/images/flags/4x3/md.svg +0 -70
- data/app/assets/images/flags/4x3/me.svg +0 -116
- data/app/assets/images/flags/4x3/mf.svg +0 -7
- data/app/assets/images/flags/4x3/mg.svg +0 -7
- data/app/assets/images/flags/4x3/mh.svg +0 -7
- data/app/assets/images/flags/4x3/mk.svg +0 -5
- data/app/assets/images/flags/4x3/ml.svg +0 -7
- data/app/assets/images/flags/4x3/mm.svg +0 -16
- data/app/assets/images/flags/4x3/mn.svg +0 -13
- data/app/assets/images/flags/4x3/mo.svg +0 -9
- data/app/assets/images/flags/4x3/mp.svg +0 -86
- data/app/assets/images/flags/4x3/mq.svg +0 -7
- data/app/assets/images/flags/4x3/mr.svg +0 -6
- data/app/assets/images/flags/4x3/ms.svg +0 -78
- data/app/assets/images/flags/4x3/mt.svg +0 -49
- data/app/assets/images/flags/4x3/mu.svg +0 -8
- data/app/assets/images/flags/4x3/mv.svg +0 -6
- data/app/assets/images/flags/4x3/mw.svg +0 -10
- data/app/assets/images/flags/4x3/mx.svg +0 -382
- data/app/assets/images/flags/4x3/my.svg +0 -15
- data/app/assets/images/flags/4x3/mz.svg +0 -21
- data/app/assets/images/flags/4x3/na.svg +0 -16
- data/app/assets/images/flags/4x3/nc.svg +0 -14
- data/app/assets/images/flags/4x3/ne.svg +0 -6
- data/app/assets/images/flags/4x3/nf.svg +0 -9
- data/app/assets/images/flags/4x3/ng.svg +0 -6
- data/app/assets/images/flags/4x3/ni.svg +0 -129
- data/app/assets/images/flags/4x3/nl.svg +0 -5
- data/app/assets/images/flags/4x3/no.svg +0 -7
- data/app/assets/images/flags/4x3/np.svg +0 -14
- data/app/assets/images/flags/4x3/nr.svg +0 -12
- data/app/assets/images/flags/4x3/nu.svg +0 -26
- data/app/assets/images/flags/4x3/nz.svg +0 -41
- data/app/assets/images/flags/4x3/om.svg +0 -115
- data/app/assets/images/flags/4x3/pa.svg +0 -14
- data/app/assets/images/flags/4x3/pe.svg +0 -244
- data/app/assets/images/flags/4x3/pf.svg +0 -19
- data/app/assets/images/flags/4x3/pg.svg +0 -9
- data/app/assets/images/flags/4x3/ph.svg +0 -9
- data/app/assets/images/flags/4x3/pk.svg +0 -15
- data/app/assets/images/flags/4x3/pl.svg +0 -6
- data/app/assets/images/flags/4x3/pm.svg +0 -7
- data/app/assets/images/flags/4x3/pn.svg +0 -62
- data/app/assets/images/flags/4x3/pr.svg +0 -13
- data/app/assets/images/flags/4x3/ps.svg +0 -15
- data/app/assets/images/flags/4x3/pt.svg +0 -57
- data/app/assets/images/flags/4x3/pw.svg +0 -11
- data/app/assets/images/flags/4x3/py.svg +0 -157
- data/app/assets/images/flags/4x3/qa.svg +0 -4
- data/app/assets/images/flags/4x3/re.svg +0 -7
- data/app/assets/images/flags/4x3/ro.svg +0 -7
- data/app/assets/images/flags/4x3/rs.svg +0 -292
- data/app/assets/images/flags/4x3/ru.svg +0 -7
- data/app/assets/images/flags/4x3/rw.svg +0 -13
- data/app/assets/images/flags/4x3/sa.svg +0 -26
- data/app/assets/images/flags/4x3/sb.svg +0 -13
- data/app/assets/images/flags/4x3/sc.svg +0 -14
- data/app/assets/images/flags/4x3/sd.svg +0 -13
- data/app/assets/images/flags/4x3/se.svg +0 -5
- data/app/assets/images/flags/4x3/sg.svg +0 -13
- data/app/assets/images/flags/4x3/sh.svg +0 -74
- data/app/assets/images/flags/4x3/si.svg +0 -18
- data/app/assets/images/flags/4x3/sj.svg +0 -7
- data/app/assets/images/flags/4x3/sk.svg +0 -9
- data/app/assets/images/flags/4x3/sl.svg +0 -7
- data/app/assets/images/flags/4x3/sm.svg +0 -91
- data/app/assets/images/flags/4x3/sn.svg +0 -8
- data/app/assets/images/flags/4x3/so.svg +0 -11
- data/app/assets/images/flags/4x3/sr.svg +0 -6
- data/app/assets/images/flags/4x3/ss.svg +0 -8
- data/app/assets/images/flags/4x3/st.svg +0 -16
- data/app/assets/images/flags/4x3/sv.svg +0 -594
- data/app/assets/images/flags/4x3/sx.svg +0 -56
- data/app/assets/images/flags/4x3/sy.svg +0 -6
- data/app/assets/images/flags/4x3/sz.svg +0 -45
- data/app/assets/images/flags/4x3/tc.svg +0 -67
- data/app/assets/images/flags/4x3/td.svg +0 -7
- data/app/assets/images/flags/4x3/tf.svg +0 -15
- data/app/assets/images/flags/4x3/tg.svg +0 -14
- data/app/assets/images/flags/4x3/th.svg +0 -7
- data/app/assets/images/flags/4x3/tj.svg +0 -22
- data/app/assets/images/flags/4x3/tk.svg +0 -5
- data/app/assets/images/flags/4x3/tl.svg +0 -13
- data/app/assets/images/flags/4x3/tm.svg +0 -206
- data/app/assets/images/flags/4x3/tn.svg +0 -13
- data/app/assets/images/flags/4x3/to.svg +0 -10
- data/app/assets/images/flags/4x3/tr.svg +0 -8
- data/app/assets/images/flags/4x3/tt.svg +0 -5
- data/app/assets/images/flags/4x3/tv.svg +0 -16
- data/app/assets/images/flags/4x3/tw.svg +0 -14
- data/app/assets/images/flags/4x3/tz.svg +0 -13
- data/app/assets/images/flags/4x3/ua.svg +0 -6
- data/app/assets/images/flags/4x3/ug.svg +0 -30
- data/app/assets/images/flags/4x3/um.svg +0 -15
- data/app/assets/images/flags/4x3/un.svg +0 -16
- data/app/assets/images/flags/4x3/us.svg +0 -10
- data/app/assets/images/flags/4x3/uy.svg +0 -28
- data/app/assets/images/flags/4x3/uz.svg +0 -30
- data/app/assets/images/flags/4x3/va.svg +0 -479
- data/app/assets/images/flags/4x3/vc.svg +0 -8
- data/app/assets/images/flags/4x3/ve.svg +0 -26
- data/app/assets/images/flags/4x3/vg.svg +0 -127
- data/app/assets/images/flags/4x3/vi.svg +0 -28
- data/app/assets/images/flags/4x3/vn.svg +0 -11
- data/app/assets/images/flags/4x3/vu.svg +0 -18
- data/app/assets/images/flags/4x3/wf.svg +0 -7
- data/app/assets/images/flags/4x3/ws.svg +0 -7
- data/app/assets/images/flags/4x3/xk.svg +0 -16
- data/app/assets/images/flags/4x3/ye.svg +0 -7
- data/app/assets/images/flags/4x3/yt.svg +0 -7
- data/app/assets/images/flags/4x3/za.svg +0 -17
- data/app/assets/images/flags/4x3/zm.svg +0 -27
- data/app/assets/images/flags/4x3/zw.svg +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e47fb4519b72315d61a790677b3592cf1d03cebaa77a8b4f483a5cad9bfb8573
|
4
|
+
data.tar.gz: 1ccd7a7756fcd9a45df1de4881128621a1dc4dba0f95db9ad287a0e3cc88b16d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d300612e8c06e3e6444ef44922bf71912ca3bf9a2d296abca6f1e4a951c984c4af5222f5f92312c4a8471a0e5ad57d12aff42edc61d41b9667bc4f0b7782feef
|
7
|
+
data.tar.gz: ce09a386bb4c4488b3cd7369b265dfbe3cbe5578926d152e094c4437c53a30f180ad48d58aec9b38e8979fbee5a68292de4bd09265c043a07ac8bfdf5a432711
|
data/.circleci/config.yml
CHANGED
@@ -13,10 +13,10 @@ defaults: &defaults
|
|
13
13
|
- image: &ruby_2_7_image circleci/ruby:2.7-node-browsers
|
14
14
|
- image: &redis_image circleci/redis:6.2-alpine
|
15
15
|
|
16
|
-
|
16
|
+
defaults_3_2: &defaults_3_2
|
17
17
|
<<: *defaults
|
18
18
|
docker:
|
19
|
-
- image: &
|
19
|
+
- image: &ruby_3_2_image circleci/ruby:3.0-node-browsers
|
20
20
|
- image: *redis_image
|
21
21
|
|
22
22
|
run_tests_2_7: &run_tests_2_7
|
@@ -28,9 +28,12 @@ run_tests_2_7: &run_tests_2_7
|
|
28
28
|
keys:
|
29
29
|
- spree-storefront-old-bundle-v10-ruby-2-7-{{ .Branch }}
|
30
30
|
- spree-storefront-old-bundle-v10-ruby-2-7
|
31
|
+
- run:
|
32
|
+
name: Add keyserver
|
33
|
+
command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
|
31
34
|
- run:
|
32
35
|
name: Install libvips
|
33
|
-
command: sudo apt-get install libvips
|
36
|
+
command: sudo apt-get update && sudo apt-get install libvips
|
34
37
|
- run:
|
35
38
|
name: Set bundle path
|
36
39
|
command: bundle config --local path vendor/bundle
|
@@ -55,18 +58,21 @@ run_tests_2_7: &run_tests_2_7
|
|
55
58
|
- store_artifacts:
|
56
59
|
path: tmp/capybara
|
57
60
|
|
58
|
-
|
59
|
-
<<: *
|
61
|
+
run_tests_3_2: &run_tests_3_2
|
62
|
+
<<: *defaults_3_2
|
60
63
|
parallelism: 8
|
61
64
|
steps:
|
62
65
|
- checkout
|
63
66
|
- restore_cache:
|
64
67
|
keys:
|
65
|
-
- spree-storefront-old-bundle-v10-ruby-3-
|
66
|
-
- spree-storefront-old-bundle-v10-ruby-3-
|
68
|
+
- spree-storefront-old-bundle-v10-ruby-3-2-{{ .Branch }}
|
69
|
+
- spree-storefront-old-bundle-v10-ruby-3-2
|
70
|
+
- run:
|
71
|
+
name: Add keyserver
|
72
|
+
command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
|
67
73
|
- run:
|
68
74
|
name: Install libvips
|
69
|
-
command: sudo apt-get install libvips
|
75
|
+
command: sudo apt-get update && sudo apt-get install libvips
|
70
76
|
- run:
|
71
77
|
name: Set bundle path
|
72
78
|
command: bundle config --local path vendor/bundle
|
@@ -100,9 +106,12 @@ jobs:
|
|
100
106
|
keys:
|
101
107
|
- spree-storefront-old-bundle-v10-ruby-2-7-{{ .Branch }}
|
102
108
|
- spree-storefront-old-bundle-v10-ruby-2-7
|
109
|
+
- run:
|
110
|
+
name: Add keyserver
|
111
|
+
command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
|
103
112
|
- run:
|
104
113
|
name: Install libvips
|
105
|
-
command: sudo apt-get install libvips
|
114
|
+
command: sudo apt-get update && sudo apt-get install libvips
|
106
115
|
- run:
|
107
116
|
name: Set bundle path
|
108
117
|
command: bundle config --local path vendor/bundle
|
@@ -115,17 +124,20 @@ jobs:
|
|
115
124
|
- vendor/bundle
|
116
125
|
key: spree-storefront-old-bundle-v10-ruby-2-7-{{ checksum "Gemfile.lock" }}
|
117
126
|
|
118
|
-
|
119
|
-
<<: *
|
127
|
+
bundle_ruby_3_2:
|
128
|
+
<<: *defaults_3_2
|
120
129
|
steps:
|
121
130
|
- checkout
|
122
131
|
- restore_cache:
|
123
132
|
keys:
|
124
|
-
- spree-storefront-old-bundle-v10-ruby-3-
|
125
|
-
- spree-storefront-old-bundle-v10-ruby-3-
|
133
|
+
- spree-storefront-old-bundle-v10-ruby-3-2-{{ .Branch }}
|
134
|
+
- spree-storefront-old-bundle-v10-ruby-3-2
|
135
|
+
- run:
|
136
|
+
name: Add keyserver
|
137
|
+
command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
|
126
138
|
- run:
|
127
139
|
name: Install libvips
|
128
|
-
command: sudo apt-get install libvips
|
140
|
+
command: sudo apt-get update && sudo apt-get install libvips
|
129
141
|
- run:
|
130
142
|
name: Set bundle path
|
131
143
|
command: bundle config --local path vendor/bundle
|
@@ -136,7 +148,7 @@ jobs:
|
|
136
148
|
- save_cache:
|
137
149
|
paths:
|
138
150
|
- vendor/bundle
|
139
|
-
key: spree-storefront-old-bundle-v10-ruby-3-
|
151
|
+
key: spree-storefront-old-bundle-v10-ruby-3-2-{{ checksum "Gemfile.lock" }}
|
140
152
|
|
141
153
|
tests_ruby_2_7_rails_7_0_postgres:
|
142
154
|
<<: *run_tests_2_7
|
@@ -152,12 +164,12 @@ jobs:
|
|
152
164
|
environment:
|
153
165
|
POSTGRES_USER: postgres
|
154
166
|
|
155
|
-
|
156
|
-
<<: *
|
167
|
+
tests_ruby_3_2_rails_7_0_postgres:
|
168
|
+
<<: *run_tests_3_2
|
157
169
|
environment:
|
158
170
|
<<: *postgres_environment
|
159
171
|
docker:
|
160
|
-
- image: *
|
172
|
+
- image: *ruby_3_2_image
|
161
173
|
- image: *postgres_image
|
162
174
|
- image: *redis_image
|
163
175
|
|
@@ -180,10 +192,10 @@ workflows:
|
|
180
192
|
main:
|
181
193
|
jobs:
|
182
194
|
- bundle_ruby_2_7
|
183
|
-
-
|
184
|
-
-
|
195
|
+
- bundle_ruby_3_2
|
196
|
+
- tests_ruby_3_2_rails_7_0_postgres:
|
185
197
|
requires:
|
186
|
-
-
|
198
|
+
- bundle_ruby_3_2
|
187
199
|
- tests_ruby_2_7_rails_7_0_postgres:
|
188
200
|
requires:
|
189
201
|
- bundle_ruby_2_7
|
data/README.md
CHANGED
@@ -42,6 +42,7 @@ If you notice that the 'Add to Cart' button is disabled on product pages, try th
|
|
42
42
|
bin/rails turbo:install
|
43
43
|
bin/rails g spree:frontend:install
|
44
44
|
yarn build
|
45
|
+
rake assets:clean assets:precompile
|
45
46
|
```
|
46
47
|
|
47
48
|
This issue may come up if you switch the source of your `spree_frontend` in your Gemfile, e.g. from github to a local path, etc.
|
Binary file
|
Binary file
|
Binary file
|
data/app/assets/images/logo.png
CHANGED
Binary file
|
data/app/assets/images/logo.svg
CHANGED
@@ -1 +1,10 @@
|
|
1
|
-
<svg
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1199.129" height="300.825" viewBox="0 0 1199.129 300.825">
|
2
|
+
<g transform="translate(-224.344 -239.125)" fill="currentColor">
|
3
|
+
<g transform="translate(224.344 239.125)">
|
4
|
+
<g>
|
5
|
+
<path d="M125.668,240.112h0a72.581,72.581,0,0,1-23.006-3.89,94.124,94.124,0,0,1-18.873-8.857,107.267,107.267,0,0,1-20.2-15.773h0a.038.038,0,0,1-.01-.008L67.7,205.44a.257.257,0,0,0,.031.015,129.888,129.888,0,0,0,18,6.538,159.717,159.717,0,0,0,18.66,4.242,140.957,140.957,0,0,0,22.752,1.911c18.939,0,36.223-4.183,51.365-12.433l4.6,6.144C165.469,230.606,146.145,240.112,125.668,240.112Zm49.205-52.481a15.174,15.174,0,0,1-10.359-3.971,12.848,12.848,0,0,1,0-19.168,15.5,15.5,0,0,1,20.719,0,12.848,12.848,0,0,1,0,19.168A15.167,15.167,0,0,1,174.873,187.631Zm-102.539,0c-8.377,0-15.2-6.081-15.2-13.555s6.818-13.555,15.2-13.555a16.057,16.057,0,0,1,10.74,3.971,12.551,12.551,0,0,1,0,19.168A16.06,16.06,0,0,1,72.334,187.631Zm5.723-45.9a32.085,32.085,0,0,1-10.328-1.7,31.065,31.065,0,0,1-8.91-4.729,29.019,29.019,0,0,1-6.748-7.224,27.241,27.241,0,0,1-3.848-9.182L30.924,18.424H0L.008,0h37.41A12.563,12.563,0,0,1,44.98,2.5a10.945,10.945,0,0,1,4.137,6.373l4.895,24.229H203.217a12.291,12.291,0,0,1,9.2,4,10.438,10.438,0,0,1,2.531,9.111l-14.965,72.605a27.356,27.356,0,0,1-3.859,9.228,28.967,28.967,0,0,1-6.777,7.248,31.211,31.211,0,0,1-8.98,4.738,32.738,32.738,0,0,1-10.459,1.7c-.2,0-.387,0-.588-.005H78.641C78.449,141.736,78.25,141.736,78.057,141.736ZM193.385,52.909h0l-135.6.019,10.869,61.653a6.213,6.213,0,0,0,2.342,3.641,7.124,7.124,0,0,0,4.291,1.419h.131l97.768-.019h.152a6.726,6.726,0,0,0,6.846-5.041L193.389,52.91Z" transform="translate(0 0)" />
|
6
|
+
</g>
|
7
|
+
</g>
|
8
|
+
<path d="M220.518,267.868H188.227V3.852h28.885l3.414,34.871.051.538h3.205l.17-.313a71.884,71.884,0,0,1,12.227-16.555A70.851,70.851,0,0,1,252.49,10.179a80,80,0,0,1,19.9-7.58A99.514,99.514,0,0,1,295.41,0c12.859,0,24.6,2.308,34.889,6.858a69.852,69.852,0,0,1,26.039,19.913c7.152,8.765,12.648,19.555,16.334,32.071,3.758,12.743,5.662,27.323,5.662,43.333,0,16.193-1.9,30.9-5.662,43.722-3.693,12.6-9.189,23.417-16.334,32.165A69.522,69.522,0,0,1,330.3,197.925c-10.266,4.522-22,6.815-34.895,6.815a101.836,101.836,0,0,1-23.617-2.656,79.464,79.464,0,0,1-20.025-7.667,67.849,67.849,0,0,1-27.812-28.62l-.168-.319h-3.27Zm65.65-241.347a76.039,76.039,0,0,0-26.777,4.591A59.7,59.7,0,0,0,238.65,44.06a57.23,57.23,0,0,0-13.391,20.02,68.977,68.977,0,0,0-4.742,25.782v25.018A68.52,68.52,0,0,0,225.26,140.6a56.735,56.735,0,0,0,13.391,19.894A59.585,59.585,0,0,0,259.4,173.3a76.919,76.919,0,0,0,26.77,4.535c17.721,0,32.619-5.164,43.084-14.933,10.484-9.782,16.025-23.727,16.025-40.327V82.163c0-16.625-5.539-30.635-16.018-40.514C318.768,31.752,303.867,26.521,286.168,26.521ZM813.123,207.434c-14.346,0-27.553-2.449-39.25-7.278a81.139,81.139,0,0,1-29.59-20.815,92.683,92.683,0,0,1-18.717-32.885c-4.332-12.969-6.531-27.608-6.531-43.509,0-15.868,2.2-30.426,6.525-43.271a90,90,0,0,1,18.674-32.347A80.172,80.172,0,0,1,773.711,7.041C785.316,2.369,798.449,0,812.74,0a104.883,104.883,0,0,1,36.965,6.245,76.843,76.843,0,0,1,27.906,17.877A78.153,78.153,0,0,1,895.27,52.385a108.659,108.659,0,0,1,6.178,37.477,171.369,171.369,0,0,1-1.086,20.188H752.1l0,12.146a65.8,65.8,0,0,0,4.406,24.36,53.083,53.083,0,0,0,12.516,18.792,55.624,55.624,0,0,0,19.518,12.077,73.161,73.161,0,0,0,25.357,4.259c13.848,0,26.477-3.546,36.518-10.254a49.172,49.172,0,0,0,20.127-27.085h31.914c-4.311,19.228-14.252,34.234-30.393,45.877a92.6,92.6,0,0,1-12.91,7.529,93.781,93.781,0,0,1-14.1,5.375,104.528,104.528,0,0,1-15.326,3.232A124.678,124.678,0,0,1,813.123,207.434ZM812.74,25.75a73.857,73.857,0,0,0-24.521,3.965,56.338,56.338,0,0,0-19.18,11.2A49.878,49.878,0,0,0,756.547,58.26,55.846,55.846,0,0,0,752.1,80.622V86.61H869.535l0-8.3a55.422,55.422,0,0,0-4.117-21.5A47.378,47.378,0,0,0,853.8,40.195a51.919,51.919,0,0,0-17.953-10.673A68.611,68.611,0,0,0,812.74,25.75ZM602.188,207.434c-14.346,0-27.553-2.449-39.25-7.278a81.053,81.053,0,0,1-29.59-20.815,92.683,92.683,0,0,1-18.717-32.885c-4.332-12.969-6.531-27.608-6.531-43.509,0-15.882,2.2-30.44,6.525-43.271A90,90,0,0,1,533.3,27.329,80.2,80.2,0,0,1,562.77,7.041C574.381,2.369,587.514,0,601.8,0A104.883,104.883,0,0,1,638.77,6.245a76.845,76.845,0,0,1,27.9,17.877,78.078,78.078,0,0,1,17.664,28.263,108.613,108.613,0,0,1,6.178,37.477,171.4,171.4,0,0,1-1.084,20.188H541.16l0,12.146a65.8,65.8,0,0,0,4.406,24.36,53,53,0,0,0,12.516,18.792,55.615,55.615,0,0,0,19.52,12.077,73.094,73.094,0,0,0,25.355,4.259c13.848,0,26.477-3.546,36.518-10.254A49.146,49.146,0,0,0,659.6,144.344h31.914c-4.311,19.228-14.252,34.234-30.393,45.877a91.839,91.839,0,0,1-27.012,12.9,104.621,104.621,0,0,1-15.326,3.232A124.678,124.678,0,0,1,602.188,207.434ZM601.8,25.75a73.849,73.849,0,0,0-24.521,3.965,56.338,56.338,0,0,0-19.18,11.2A49.755,49.755,0,0,0,545.611,58.26a55.846,55.846,0,0,0-4.449,22.362V86.61H658.6l0-8.3a55.377,55.377,0,0,0-4.117-21.5,47.378,47.378,0,0,0-11.619-16.612,51.906,51.906,0,0,0-17.953-10.673A68.619,68.619,0,0,0,601.8,25.75ZM81.393,207.434c-24.617,0-45.252-6.1-59.678-17.626A56.742,56.742,0,0,1,5.605,169.613,60.958,60.958,0,0,1,0,143.962H31.914c.158,11.487,4.887,21.176,13.678,28.021s21.18,10.47,35.8,10.47a73.968,73.968,0,0,0,19.047-2.274,42.731,42.731,0,0,0,14.363-6.646,29.5,29.5,0,0,0,9.076-10.736,32.54,32.54,0,0,0,3.146-14.432,30.161,30.161,0,0,0-1.7-10.379,23.257,23.257,0,0,0-5.111-8.218,28.879,28.879,0,0,0-8.469-5.976,49.488,49.488,0,0,0-11.77-3.727l-43.113-8.086a100.8,100.8,0,0,1-23.322-6.953A56.1,56.1,0,0,1,17,93.958,42.633,42.633,0,0,1,7.139,78.8,54.181,54.181,0,0,1,3.854,59.45,57.6,57.6,0,0,1,9.145,34.57,51.835,51.835,0,0,1,24.215,15.9C37.465,5.5,56.438,0,79.08,0A110.546,110.546,0,0,1,111.02,4.34a70.231,70.231,0,0,1,23.936,12.271c13.072,10.551,20.162,25.557,20.5,43.4H123.535c-1-23.5-15.959-35.416-44.455-35.416a70.987,70.987,0,0,0-18.3,2.18A39.769,39.769,0,0,0,47.3,33.035a27.234,27.234,0,0,0-8.334,9.922,29.573,29.573,0,0,0-2.83,13.029,28.154,28.154,0,0,0,3.4,14.106,23.2,23.2,0,0,0,9.619,9.133l.045.019c7.922,3.4,11.479,4.623,19.758,6.2l39.648,7.31A93.816,93.816,0,0,1,131.49,99.57a54.132,54.132,0,0,1,16.3,11.206,43.876,43.876,0,0,1,9.783,15.591,58.259,58.259,0,0,1,3.273,20.075,58.013,58.013,0,0,1-5.57,25.6A53.43,53.43,0,0,1,139.395,191.2C125.43,201.82,105.373,207.434,81.393,207.434Zm357.762-3.852H406.861V32.891a39.827,39.827,0,0,1,1.848-12.722,22.8,22.8,0,0,1,5.525-9.032A23.415,23.415,0,0,1,423.5,5.693a42.561,42.561,0,0,1,13.174-1.841h69.07V30.367H439.158Z" transform="translate(521.02 272.083)" />
|
9
|
+
</g>
|
10
|
+
</svg>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,23 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
<path d="M70.287,208.737C60.149,208.737 49.575,204.919 38.207,197.286C33.568,194.171 32.332,187.884 35.447,183.245C38.563,178.607 44.849,177.371 49.49,180.485C67.208,192.383 77.219,189.517 87.633,181.039C91.967,177.511 98.341,178.163 101.869,182.497C105.396,186.832 104.744,193.206 100.409,196.733C90.579,204.736 80.662,208.737 70.287,208.737" style="fill:rgb(153,204,0);fill-rule:nonzero;"/>
|
1
|
+
<svg width="180" height="240" xmlns="http://www.w3.org/2000/svg" version="1.1" xml:space="preserve" clip-rule="evenodd">
|
2
|
+
<g>
|
3
|
+
<g fill="rgb(0,0,0)" opacity="0.5">
|
4
|
+
<path stroke="null"
|
5
|
+
d="m37.38608,79.18345l0,0a8.05821,8.05821 0 0 1 -2.55421,-0.43188a10.45,10.45 0 0 1 -2.09535,-0.98334a11.90918,11.90918 0 0 1 -2.24268,-1.75118l0,0a0.00422,0.00422 0 0 1 -0.00111,-0.00089l0.45753,-0.68213a0.02854,0.02854 0 0 0 0.00344,0.00167a14.42065,14.42065 0 0 0 1.99843,0.72587a17.73238,17.73238 0 0 0 2.0717,0.47096a15.64957,15.64957 0 0 0 2.52601,0.21216c2.10268,0 4.02162,-0.46441 5.70274,-1.38036l0.51071,0.68213c-1.95835,2.08158 -4.10377,3.13697 -6.3772,3.13697l-0.00002,0.00002zm5.46292,-5.82663a1.68467,1.68467 0 0 1 -1.15009,-0.44087a1.42643,1.42643 0 0 1 0,-2.1281a1.72087,1.72087 0 0 1 2.3003,0a1.42643,1.42643 0 0 1 0,2.1281a1.6839,1.6839 0 0 1 -1.15021,0.44087zm-11.38426,0c-0.93005,0 -1.68756,-0.67513 -1.68756,-1.50492s0.75696,-1.50492 1.68756,-1.50492a1.78271,1.78271 0 0 1 1.19239,0.44087a1.39346,1.39346 0 0 1 0,2.1281a1.78304,1.78304 0 0 1 -1.19239,0.44087zm0.63539,-5.09599a3.5622,3.5622 0 0 1 -1.14665,-0.18874a3.44895,3.44895 0 0 1 -0.98922,-0.52503a3.2218,3.2218 0 0 1 -0.74919,-0.80204a3.0244,3.0244 0 0 1 -0.42722,-1.01942l-1.9206,-11.15478l-3.43329,0l0.00089,-2.0455l4.1534,0a1.39479,1.39479 0 0 1 0.83956,0.27756a1.21515,1.21515 0 0 1 0.4593,0.70756l0.54346,2.68999l16.56529,0a1.36459,1.36459 0 0 1 1.02142,0.44409a1.15887,1.15887 0 0 1 0.281,1.01154l-1.66147,8.06088a3.03716,3.03716 0 0 1 -0.42844,1.02453a3.21602,3.21602 0 0 1 -0.75241,0.8047a3.46516,3.46516 0 0 1 -0.99699,0.52603a3.6347,3.6347 0 0 1 -1.1612,0.18874c-0.02221,0 -0.04296,0 -0.06528,-0.00056l-10.06752,0c-0.02132,0.001 -0.04341,0.001 -0.06484,0.001l0,-0.00056l0.00001,0.00001zm12.80414,-9.86134l0,0l-15.05482,0.00211l1.20671,6.84495a0.68979,0.68979 0 0 0 0.26002,0.40424a0.79094,0.79094 0 0 0 0.4764,0.15754l0.01455,0l10.85456,-0.00211l0.01688,0a0.74674,0.74674 0 0 0 0.76007,-0.55967l1.46607,-6.84695l-0.00044,-0.00011z"
|
6
|
+
id="svg_4"/>
|
7
|
+
<path stroke="null"
|
8
|
+
d="m80.85475,85.92415l-3.58506,0l0,-29.31204l3.20692,0l0.37903,3.87151l0.00566,0.05973l0.35583,0l0.01888,-0.03475a7.98083,7.98083 0 0 1 1.35748,-1.838a7.86614,7.86614 0 0 1 1.8109,-1.35604a8.88189,8.88189 0 0 1 2.20937,-0.84156a11.04841,11.04841 0 0 1 2.55577,-0.28855c1.42765,0 2.73118,0.25625 3.87351,0.7614a7.75523,7.75523 0 0 1 2.89094,2.21081c0.79405,0.97312 1.40423,2.17107 1.81346,3.56065c0.41723,1.41478 0.62862,3.0335 0.62862,4.81099c0,1.79781 -0.21094,3.43063 -0.62862,4.85418c-0.41001,1.3989 -1.0202,2.59984 -1.81346,3.57107a7.71859,7.71859 0 0 1 -2.89083,2.20526c-1.13977,0.50205 -2.44252,0.75663 -3.87417,0.75663a11.30621,11.30621 0 0 1 -2.62205,-0.29488a8.82239,8.82239 0 0 1 -2.22325,-0.85122a7.53285,7.53285 0 0 1 -3.08779,-3.1775l-0.01865,-0.03542l-0.36304,0l0.00056,11.36772l-0.00001,0zm7.28871,-26.79524a8.44213,8.44213 0 0 0 -2.97288,0.50971a6.62812,6.62812 0 0 0 -2.30274,1.43753a6.35389,6.35389 0 0 0 -1.48672,2.22269a7.65808,7.65808 0 0 0 -0.52647,2.86242l0,2.77759a7.60735,7.60735 0 0 0 0.52658,2.85553a6.29893,6.29893 0 0 0 1.48672,2.2087a6.61535,6.61535 0 0 0 2.30363,1.42177a8.53984,8.53984 0 0 0 2.9721,0.50349c1.96745,0 3.62148,-0.57333 4.78335,-1.65791c1.16397,-1.08604 1.77916,-2.63426 1.77916,-4.47726l0,-4.48669c0,-1.84577 -0.61496,-3.40121 -1.77838,-4.49801c-1.16497,-1.0988 -2.81933,-1.67957 -4.78435,-1.67957l0,0.00002zm58.5045,20.08563c-1.59274,0 -3.05904,-0.27189 -4.35768,-0.80803a9.00836,9.00836 0 0 1 -3.28519,-2.31096a10.29001,10.29001 0 0 1 -2.07803,-3.65101c-0.48096,-1.43986 -0.7251,-3.06514 -0.7251,-4.83053c0,-1.76172 0.24425,-3.37801 0.72443,-4.8041a9.99214,9.99214 0 0 1 2.07326,-3.59128a8.90099,8.90099 0 0 1 3.27264,-2.25245c1.28843,-0.5187 2.7465,-0.78172 4.33314,-0.78172a11.6445,11.6445 0 0 1 4.10399,0.69334a8.5314,8.5314 0 0 1 3.09823,1.98477a8.67684,8.67684 0 0 1 1.96056,3.13786a12.06373,12.06373 0 0 1 0.6859,4.16084a19.02602,19.02602 0 0 1 -0.12057,2.24135l-16.46059,0l0,1.34849a7.30536,7.30536 0 0 0 0.48917,2.70454a5.89347,5.89347 0 0 0 1.38957,2.08636a6.17558,6.17558 0 0 0 2.16696,1.34083a8.1226,8.1226 0 0 0 2.81523,0.47285c1.53746,0 2.93958,-0.39369 4.05436,-1.13844a5.45926,5.45926 0 0 0 2.23458,-3.00708l3.54321,0c-0.47863,2.13476 -1.58231,3.80078 -3.37434,5.09344a10.2808,10.2808 0 0 1 -1.43331,0.8359a10.41191,10.41191 0 0 1 -1.56544,0.59675a11.60509,11.60509 0 0 1 -1.70155,0.35883a13.84222,13.84222 0 0 1 -1.84344,0.11946l0.00001,-0.00001zm-0.04252,-20.17123a8.19988,8.19988 0 0 0 -2.72241,0.44021a6.25485,6.25485 0 0 0 -2.12943,1.24347a5.53764,5.53764 0 0 0 -1.38691,1.92571a6.20023,6.20023 0 0 0 -0.49373,2.48272l0,0.66481l13.03807,0l0,-0.9215a6.15316,6.15316 0 0 0 -0.45708,-2.38701a5.26008,5.26008 0 0 0 -1.28987,-1.84466a5.76424,5.76424 0 0 0 -1.99321,-1.18496a7.61745,7.61745 0 0 0 -2.56543,-0.41878l0,-0.00001zm-23.37626,20.17123c-1.59274,0 -3.05904,-0.27189 -4.35768,-0.80803a8.99881,8.99881 0 0 1 -3.28519,-2.31096a10.29001,10.29001 0 0 1 -2.07803,-3.65101c-0.48096,-1.43986 -0.7251,-3.06514 -0.7251,-4.83053c0,-1.76328 0.24425,-3.37956 0.72443,-4.8041a9.99214,9.99214 0 0 1 2.07337,-3.59128a8.9041,8.9041 0 0 1 3.27187,-2.25245c1.28909,-0.5187 2.74717,-0.78172 4.33326,-0.78172a11.6445,11.6445 0 0 1 4.10455,0.69334a8.53162,8.53162 0 0 1 3.09757,1.98477a8.66851,8.66851 0 0 1 1.96112,3.13786a12.05862,12.05862 0 0 1 0.6859,4.16084a19.02946,19.02946 0 0 1 -0.12035,2.24135l-16.46126,0l0,1.34849a7.30536,7.30536 0 0 0 0.48917,2.70454a5.88425,5.88425 0 0 0 1.38957,2.08636a6.17458,6.17458 0 0 0 2.16719,1.34083a8.11517,8.11517 0 0 0 2.815,0.47285c1.53746,0 2.93958,-0.39369 4.05436,-1.13844a5.45637,5.45637 0 0 0 2.23435,-3.00719l3.54321,0c-0.47863,2.13476 -1.58231,3.80078 -3.37434,5.09344a10.19631,10.19631 0 0 1 -2.99897,1.4322a11.61541,11.61541 0 0 1 -1.70155,0.35883a13.84222,13.84222 0 0 1 -1.84244,0.12001l0.00001,0zm-0.04307,-20.17123a8.19899,8.19899 0 0 0 -2.72241,0.44021a6.25485,6.25485 0 0 0 -2.12943,1.24347a5.52398,5.52398 0 0 0 -1.38646,1.92571a6.20023,6.20023 0 0 0 -0.49395,2.48272l0,0.66481l13.0384,0l0,-0.9215a6.14816,6.14816 0 0 0 -0.45708,-2.38701a5.26008,5.26008 0 0 0 -1.28998,-1.84433a5.7628,5.7628 0 0 0 -1.99321,-1.18496a7.61834,7.61834 0 0 0 -2.56587,-0.41912l-0.00001,-0.00001zm-57.77752,20.17123c-2.73307,0 -5.02404,-0.67724 -6.62568,-1.9569a6.29971,6.29971 0 0 1 -1.7886,-2.24213a6.76779,6.76779 0 0 1 -0.62229,-2.84787l3.54321,0c0.01754,1.27533 0.54257,2.35103 1.51858,3.11099s2.35148,1.16242 3.97465,1.16242a8.2122,8.2122 0 0 0 2.11466,-0.25247a4.74415,4.74415 0 0 0 1.59463,-0.73786a3.2752,3.2752 0 0 0 1.00765,-1.19195a3.61271,3.61271 0 0 0 0.34928,-1.60229a3.34858,3.34858 0 0 0 -0.18874,-1.15232a2.58208,2.58208 0 0 0 -0.56745,-0.91239a3.20625,3.20625 0 0 0 -0.94026,-0.66347a5.49434,5.49434 0 0 0 -1.30675,-0.41379l-4.78657,-0.89773a11.19119,11.19119 0 0 1 -2.58929,-0.77195a6.22843,6.22843 0 0 1 -1.83622,-1.22881a4.73327,4.73327 0 0 1 -1.09481,-1.6829a6.01538,6.01538 0 0 1 -0.36471,-2.14831a6.39497,6.39497 0 0 1 0.58742,-2.76227a5.75491,5.75491 0 0 1 1.67313,-2.07281c1.47107,-1.15465 3.57751,-1.76528 6.09132,-1.76528a12.27323,12.27323 0 0 1 3.5461,0.48185a7.7973,7.7973 0 0 1 2.65746,1.36237c1.4513,1.17141 2.23846,2.83743 2.27598,4.81843l-3.54399,0c-0.11103,-2.60906 -1.77183,-3.93202 -4.93556,-3.93202a7.88124,7.88124 0 0 0 -2.03173,0.24203a4.4153,4.4153 0 0 0 -1.4966,0.69501a3.02362,3.02362 0 0 0 -0.92527,1.10158a3.2833,3.2833 0 0 0 -0.3142,1.44653a3.12576,3.12576 0 0 0 0.37748,1.5661a2.57575,2.57575 0 0 0 1.06794,1.01398l0.005,0.00211c0.87953,0.37748 1.27444,0.51326 2.1936,0.68835l4.40187,0.81158a10.4158,10.4158 0 0 1 2.54067,0.75674a6.00994,6.00994 0 0 1 1.80968,1.24413a4.87128,4.87128 0 0 1 1.08615,1.73097a6.46813,6.46813 0 0 1 0.36338,2.2288a6.44082,6.44082 0 0 1 -0.6184,2.84221a5.932,5.932 0 0 1 -1.76317,2.12699c-1.55045,1.17908 -3.77725,1.80236 -6.4396,1.80236zm39.72006,-0.42766l-3.5854,0l0,-18.95075a4.42174,4.42174 0 0 1 0.20517,-1.41245a2.53134,2.53134 0 0 1 0.61341,-1.00277a2.59962,2.59962 0 0 1 1.02875,-0.60441a4.72528,4.72528 0 0 1 1.46263,-0.20439l7.66841,0l0,2.9438l-7.39263,0l-0.00033,19.23097l-0.00001,0z"
|
9
|
+
id="svg_5"/>
|
11
10
|
</g>
|
12
|
-
<g transform="matrix(
|
13
|
-
|
14
|
-
|
15
|
-
</g>
|
16
|
-
<g transform="matrix(9.26626,0,0,9.26626,16.011,72.835)">
|
17
|
-
<path d="M1.5,2C0.677,2 -0,2.677 0,3.5L0,12.5C0,13.323 0.677,14 1.5,14L14.5,14C15.323,14 16,13.323 16,12.5L16,3.5C16,2.677 15.323,2 14.5,2L1.5,2ZM14.5,3C14.774,3 15,3.226 15,3.5L15,9.5L11.225,7.553C11.033,7.457 10.8,7.495 10.648,7.646L6.938,11.356L4.278,9.584C4.081,9.453 3.816,9.479 3.648,9.646L1.002,12L1.002,12.54C1.001,12.527 1,12.513 1,12.5L1,3.5C1,3.226 1.226,3 1.5,3L14.5,3Z" style="fill:rgb(125,125,125);fill-rule:nonzero;"/>
|
18
|
-
</g>
|
19
|
-
</g>
|
20
|
-
<g transform="matrix(1.89682,0,0,1.89682,-1.5642,-167.039)">
|
21
|
-
<text x="18.181px" y="200.157px" style="font-family:'Arial-BoldMT', 'Arial', sans-serif;font-weight:700;font-size:12px;fill:rgb(0,102,204);">NO IMAGE</text>
|
11
|
+
<g transform="matrix(1.89682 0 0 1.89682 -1.5642 -167.039)" opacity="0.5">
|
12
|
+
<text x="23.43384" y="165.81385" font-family="'Arial', sans-serif" font-weight="400" font-size="10" fill="rgb(0,0,0)">NO IMAGE</text>
|
13
|
+
<text x="21.55265" y="180.81385" font-family="'Arial', sans-serif" font-weight="400" font-size="10" fill="rgb(0,0,0)">AVAILABLE</text>
|
22
14
|
</g>
|
15
|
+
</g>
|
23
16
|
</svg>
|
Binary file
|
Binary file
|
@@ -10,6 +10,11 @@ module Spree
|
|
10
10
|
new_locale = (params[:switch_to_locale] || params[:locale]).to_s
|
11
11
|
|
12
12
|
if new_locale.present? && supported_locale?(new_locale)
|
13
|
+
|
14
|
+
if try_spree_current_user && try_spree_current_user.selected_locale != new_locale
|
15
|
+
try_spree_current_user.update!(selected_locale: new_locale)
|
16
|
+
end
|
17
|
+
|
13
18
|
if should_build_new_url?
|
14
19
|
redirect_to BuildLocalizedRedirectUrl.call(
|
15
20
|
url: request.env['HTTP_REFERER'],
|
@@ -52,7 +52,7 @@ module Spree
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def load_product
|
55
|
-
@product = current_store.products.for_user(try_spree_current_user).friendly.find(params[:id])
|
55
|
+
@product = find_with_fallback_default_locale { current_store.products.for_user(try_spree_current_user).friendly.find(params[:id]) }
|
56
56
|
end
|
57
57
|
|
58
58
|
def load_taxon
|
@@ -4,9 +4,12 @@ module Spree
|
|
4
4
|
class BuildLocalizedRedirectUrl
|
5
5
|
prepend Spree::ServiceModule::Base
|
6
6
|
|
7
|
-
LOCALE_REGEX = /^\/[A-Za-z]{2}\/|^\/[A-Za-z]{2}-[A-Za-z]{2}\/|^\/[A-Za-z]{2}$|^\/[A-Za-z]{2}-[A-Za-z]{2}$/.freeze
|
7
|
+
LOCALE_REGEX = /^\/([A-Za-z]{2})\/|^\/([A-Za-z]{2}-[A-Za-z]{2})\/|^\/([A-Za-z]{2})$|^\/([A-Za-z]{2}-[A-Za-z]{2})$/.freeze
|
8
8
|
|
9
|
-
SUPPORTED_PATHS_REGEX = /\/(products|t\/|cart|checkout|addresses|content|pages)/.freeze
|
9
|
+
SUPPORTED_PATHS_REGEX = /\/(products|t\/|cart|checkout|addresses|content|pages|login|account|logout|signup|users)/.freeze
|
10
|
+
|
11
|
+
PRODUCT_PATH_REGEX = /\/products\/(\S+)/.freeze
|
12
|
+
TAXON_PATH_REGEX = /\/t\/(\S+)/.freeze
|
10
13
|
|
11
14
|
# rubocop:disable Lint/UnusedMethodArgument
|
12
15
|
def call(url:, locale:, default_locale: nil)
|
@@ -23,11 +26,12 @@ module Spree
|
|
23
26
|
success(
|
24
27
|
url: URI(url),
|
25
28
|
locale: locale,
|
29
|
+
default_locale: default_locale,
|
26
30
|
default_locale_supplied: default_locale_supplied?(locale, default_locale)
|
27
31
|
)
|
28
32
|
end
|
29
33
|
|
30
|
-
def generate_new_path(url:, locale:, default_locale_supplied:)
|
34
|
+
def generate_new_path(url:, locale:, default_locale:, default_locale_supplied:)
|
31
35
|
unless supported_path?(url.path)
|
32
36
|
return success(
|
33
37
|
url: url,
|
@@ -38,11 +42,20 @@ module Spree
|
|
38
42
|
)
|
39
43
|
end
|
40
44
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
45
|
+
|
46
|
+
locale_url_match = url.path.match(LOCALE_REGEX)
|
47
|
+
previous_locale = locale_url_match ? locale_url_match[1] || default_locale : default_locale
|
48
|
+
|
49
|
+
product_path_match = url.path.match(PRODUCT_PATH_REGEX)
|
50
|
+
taxon_path_match = url.path.match(TAXON_PATH_REGEX)
|
51
|
+
|
52
|
+
if product_path_match
|
53
|
+
new_path = generate_product_path(product_path_match, previous_locale, locale, default_locale, default_locale_supplied)
|
54
|
+
elsif url.path.match(TAXON_PATH_REGEX)
|
55
|
+
new_path = generate_taxon_path(taxon_path_match, previous_locale, locale, default_locale, default_locale_supplied)
|
56
|
+
else
|
57
|
+
new_path = generate_regular_page_path(default_locale_supplied, url, locale)
|
58
|
+
end
|
46
59
|
|
47
60
|
success(
|
48
61
|
url: url,
|
@@ -97,5 +110,32 @@ module Spree
|
|
97
110
|
def builder_class(url)
|
98
111
|
url.scheme == 'http' ? URI::HTTP : URI::HTTPS
|
99
112
|
end
|
113
|
+
|
114
|
+
def generate_product_path(product_path_match, previous_locale, locale, default_locale, default_locale_supplied)
|
115
|
+
product = begin
|
116
|
+
Mobility.with_locale(previous_locale) { Spree::Product.friendly.find(product_path_match[1]) }
|
117
|
+
rescue ActiveRecord::RecordNotFound
|
118
|
+
Mobility.with_locale(default_locale) { Spree::Product.friendly.find(product_path_match[1]) }
|
119
|
+
end
|
120
|
+
|
121
|
+
new_slug = Mobility.with_locale(locale) { product.slug(fallbacks: default_locale) }
|
122
|
+
new_path_slug = "/products/#{new_slug}"
|
123
|
+
default_locale_supplied ? new_path_slug : "/#{locale}/#{new_path_slug}"
|
124
|
+
end
|
125
|
+
|
126
|
+
def generate_taxon_path(taxon_path_match, previous_locale, locale, default_locale, default_locale_supplied)
|
127
|
+
taxon = Mobility.with_locale(previous_locale) { Spree::Taxon.friendly.find(taxon_path_match[1]) }
|
128
|
+
new_slug = Mobility.with_locale(locale) { taxon.permalink(fallbacks: default_locale) }
|
129
|
+
new_path_slug = "/t/#{new_slug}"
|
130
|
+
default_locale_supplied ? new_path_slug : "/#{locale}/#{new_path_slug}"
|
131
|
+
end
|
132
|
+
|
133
|
+
def generate_regular_page_path(default_locale_supplied, url, locale)
|
134
|
+
if default_locale_supplied
|
135
|
+
maches_locale_regex?(url.path) ? url.path.gsub(LOCALE_REGEX, '/') : url.path
|
136
|
+
else
|
137
|
+
maches_locale_regex?(url.path) ? url.path.gsub(LOCALE_REGEX, "/#{locale}/") : "/#{locale}#{url.path}"
|
138
|
+
end
|
139
|
+
end
|
100
140
|
end
|
101
141
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= render 'spree/shared/error_messages', target: @address %>
|
2
2
|
<div class="col-lg-6 offset-lg-3">
|
3
3
|
<h3 class="spree-header spree-mb-large spree-mt-large"><%= Spree.t(:new_address, scope: :address_book) %></h3>
|
4
|
-
<%= form_for @address, html: { id: 'checkout_form_address' } do |f| %>
|
4
|
+
<%= form_for @address, url: spree.addresses_path, html: { id: 'checkout_form_address' } do |f| %>
|
5
5
|
<div class="form-group checkout-content-inner-field mb-5 has-float-label">
|
6
6
|
<%= f.text_field :label, class: 'spree-flat-input', placeholder: Spree.t(:address_name_placeholder, scope: :address_book) %>
|
7
7
|
<%= f.label :address_name, Spree.t(:label, scope: :address_book) %>
|
data/spree_frontend.gemspec
CHANGED