solidus_frontend 1.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of solidus_frontend might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/LICENSE +26 -0
- data/README.md +21 -0
- data/app/assets/images/credit_cards/amex_cid.gif +0 -0
- data/app/assets/images/credit_cards/credit_card.gif +0 -0
- data/app/assets/images/credit_cards/discover_cid.gif +0 -0
- data/app/assets/images/credit_cards/icons/american_express.png +0 -0
- data/app/assets/images/credit_cards/icons/cirrus.png +0 -0
- data/app/assets/images/credit_cards/icons/delta.png +0 -0
- data/app/assets/images/credit_cards/icons/diners_club.png +0 -0
- data/app/assets/images/credit_cards/icons/directdebit.png +0 -0
- data/app/assets/images/credit_cards/icons/discover.png +0 -0
- data/app/assets/images/credit_cards/icons/egold.png +0 -0
- data/app/assets/images/credit_cards/icons/maestro.png +0 -0
- data/app/assets/images/credit_cards/icons/master.png +0 -0
- data/app/assets/images/credit_cards/icons/paypal.png +0 -0
- data/app/assets/images/credit_cards/icons/solo.png +0 -0
- data/app/assets/images/credit_cards/icons/switch.png +0 -0
- data/app/assets/images/credit_cards/icons/visa.png +0 -0
- data/app/assets/images/credit_cards/icons/visaelectron.png +0 -0
- data/app/assets/images/credit_cards/icons/westernunion.png +0 -0
- data/app/assets/images/credit_cards/icons/wirecard.png +0 -0
- data/app/assets/images/credit_cards/icons/worldpay.png +0 -0
- data/app/assets/images/credit_cards/master_cid.jpg +0 -0
- data/app/assets/images/credit_cards/visa_cid.gif +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/icons/add-to-cart.png +0 -0
- data/app/assets/images/icons/checkout.png +0 -0
- data/app/assets/images/icons/delete.png +0 -0
- data/app/assets/images/icons/update.png +0 -0
- data/app/assets/images/spinner.gif +0 -0
- data/app/assets/images/spree/frontend/cart.png +0 -0
- data/app/assets/images/spree/frontend/select_arrow.gif +0 -0
- data/app/assets/javascripts/spree/frontend/cart.js.coffee +15 -0
- data/app/assets/javascripts/spree/frontend/checkout/address.js.coffee +86 -0
- data/app/assets/javascripts/spree/frontend/checkout/payment.js.coffee +79 -0
- data/app/assets/javascripts/spree/frontend/checkout.js.coffee +11 -0
- data/app/assets/javascripts/spree/frontend/product.js.coffee +47 -0
- data/app/assets/javascripts/spree/frontend.js +5 -0
- data/app/assets/stylesheets/spree/frontend/_variables.scss +61 -0
- data/app/assets/stylesheets/spree/frontend/screen.css.scss +1321 -0
- data/app/assets/stylesheets/spree/frontend.css +6 -0
- data/app/controllers/spree/checkout_controller.rb +167 -0
- data/app/controllers/spree/content_controller.rb +23 -0
- data/app/controllers/spree/home_controller.rb +12 -0
- data/app/controllers/spree/locale_controller.rb +16 -0
- data/app/controllers/spree/orders_controller.rb +115 -0
- data/app/controllers/spree/products_controller.rb +45 -0
- data/app/controllers/spree/store_controller.rb +47 -0
- data/app/controllers/spree/taxons_controller.rb +28 -0
- data/app/models/spree/frontend_configuration.rb +5 -0
- data/app/views/spree/address/_form.html.erb +75 -0
- data/app/views/spree/checkout/_address.html.erb +33 -0
- data/app/views/spree/checkout/_confirm.html.erb +12 -0
- data/app/views/spree/checkout/_delivery.html.erb +100 -0
- data/app/views/spree/checkout/_payment.html.erb +71 -0
- data/app/views/spree/checkout/_summary.html.erb +72 -0
- data/app/views/spree/checkout/edit.html.erb +37 -0
- data/app/views/spree/checkout/payment/_check.html.erb +0 -0
- data/app/views/spree/checkout/payment/_gateway.html.erb +32 -0
- data/app/views/spree/content/cvv.html.erb +13 -0
- data/app/views/spree/content/test.html.erb +1 -0
- data/app/views/spree/home/index.html.erb +12 -0
- data/app/views/spree/layouts/spree_application.html.erb +37 -0
- data/app/views/spree/orders/_adjustment_row.html.erb +8 -0
- data/app/views/spree/orders/_adjustments.html.erb +24 -0
- data/app/views/spree/orders/_form.html.erb +28 -0
- data/app/views/spree/orders/_line_item.html.erb +36 -0
- data/app/views/spree/orders/edit.html.erb +47 -0
- data/app/views/spree/orders/show.html.erb +22 -0
- data/app/views/spree/payments/_payment.html.erb +18 -0
- data/app/views/spree/products/_cart_form.html.erb +65 -0
- data/app/views/spree/products/_image.html.erb +5 -0
- data/app/views/spree/products/_promotions.html.erb +19 -0
- data/app/views/spree/products/_properties.html.erb +15 -0
- data/app/views/spree/products/_taxons.html.erb +14 -0
- data/app/views/spree/products/_thumbnails.html.erb +19 -0
- data/app/views/spree/products/index.html.erb +27 -0
- data/app/views/spree/products/show.html.erb +51 -0
- data/app/views/spree/shared/_address.html.erb +38 -0
- data/app/views/spree/shared/_filters.html.erb +27 -0
- data/app/views/spree/shared/_footer.html.erb +6 -0
- data/app/views/spree/shared/_google_analytics.html.erb +36 -0
- data/app/views/spree/shared/_head.html.erb +14 -0
- data/app/views/spree/shared/_header.html.erb +5 -0
- data/app/views/spree/shared/_link_to_cart.html.erb +1 -0
- data/app/views/spree/shared/_main_nav_bar.html.erb +12 -0
- data/app/views/spree/shared/_nav_bar.html.erb +7 -0
- data/app/views/spree/shared/_order_details.html.erb +147 -0
- data/app/views/spree/shared/_products.html.erb +46 -0
- data/app/views/spree/shared/_search.html.erb +11 -0
- data/app/views/spree/shared/_shipment_tracking.html.erb +9 -0
- data/app/views/spree/shared/_sidebar.html.erb +3 -0
- data/app/views/spree/shared/_taxonomies.html.erb +9 -0
- data/app/views/spree/shared/unauthorized.html.erb +0 -0
- data/app/views/spree/store/cart_link.html.erb +1 -0
- data/app/views/spree/taxons/_taxon.html.erb +4 -0
- data/app/views/spree/taxons/show.html.erb +20 -0
- data/config/initializers/assets.rb +1 -0
- data/config/initializers/canonical_rails.rb +15 -0
- data/config/initializers/check_for_orphaned_preferences.rb +9 -0
- data/config/initializers/deprecation_checker.rb +7 -0
- data/config/initializers/rails_5868.rb +8 -0
- data/config/initializers/spree.rb +4 -0
- data/config/routes.rb +37 -0
- data/lib/solidus_frontend.rb +1 -0
- data/lib/spree/frontend/engine.rb +19 -0
- data/lib/spree/frontend/middleware/seo_assist.rb +51 -0
- data/lib/spree/frontend/preference_rescue.rb +25 -0
- data/lib/spree/frontend.rb +10 -0
- data/lib/spree_frontend.rb +1 -0
- data/lib/tasks/rake_util.rb +19 -0
- data/lib/tasks/taxon.rake +14 -0
- data/vendor/assets/images/datepicker/cal.gif +0 -0
- data/vendor/assets/images/flags/ad.png +0 -0
- data/vendor/assets/images/flags/ae.png +0 -0
- data/vendor/assets/images/flags/af.png +0 -0
- data/vendor/assets/images/flags/ag.png +0 -0
- data/vendor/assets/images/flags/ai.png +0 -0
- data/vendor/assets/images/flags/al.png +0 -0
- data/vendor/assets/images/flags/am.png +0 -0
- data/vendor/assets/images/flags/an.png +0 -0
- data/vendor/assets/images/flags/ao.png +0 -0
- data/vendor/assets/images/flags/ar.png +0 -0
- data/vendor/assets/images/flags/as.png +0 -0
- data/vendor/assets/images/flags/at.png +0 -0
- data/vendor/assets/images/flags/au.png +0 -0
- data/vendor/assets/images/flags/aw.png +0 -0
- data/vendor/assets/images/flags/ax.png +0 -0
- data/vendor/assets/images/flags/az.png +0 -0
- data/vendor/assets/images/flags/ba.png +0 -0
- data/vendor/assets/images/flags/bb.png +0 -0
- data/vendor/assets/images/flags/bd.png +0 -0
- data/vendor/assets/images/flags/be.png +0 -0
- data/vendor/assets/images/flags/bf.png +0 -0
- data/vendor/assets/images/flags/bg.png +0 -0
- data/vendor/assets/images/flags/bh.png +0 -0
- data/vendor/assets/images/flags/bi.png +0 -0
- data/vendor/assets/images/flags/bj.png +0 -0
- data/vendor/assets/images/flags/bm.png +0 -0
- data/vendor/assets/images/flags/bn.png +0 -0
- data/vendor/assets/images/flags/bo.png +0 -0
- data/vendor/assets/images/flags/br.png +0 -0
- data/vendor/assets/images/flags/bs.png +0 -0
- data/vendor/assets/images/flags/bt.png +0 -0
- data/vendor/assets/images/flags/bv.png +0 -0
- data/vendor/assets/images/flags/bw.png +0 -0
- data/vendor/assets/images/flags/by.png +0 -0
- data/vendor/assets/images/flags/bz.png +0 -0
- data/vendor/assets/images/flags/ca.png +0 -0
- data/vendor/assets/images/flags/catalonia.png +0 -0
- data/vendor/assets/images/flags/cc.png +0 -0
- data/vendor/assets/images/flags/cd.png +0 -0
- data/vendor/assets/images/flags/cf.png +0 -0
- data/vendor/assets/images/flags/cg.png +0 -0
- data/vendor/assets/images/flags/ch.png +0 -0
- data/vendor/assets/images/flags/ci.png +0 -0
- data/vendor/assets/images/flags/ck.png +0 -0
- data/vendor/assets/images/flags/cl.png +0 -0
- data/vendor/assets/images/flags/cm.png +0 -0
- data/vendor/assets/images/flags/cn.png +0 -0
- data/vendor/assets/images/flags/co.png +0 -0
- data/vendor/assets/images/flags/cr.png +0 -0
- data/vendor/assets/images/flags/cs.png +0 -0
- data/vendor/assets/images/flags/cu.png +0 -0
- data/vendor/assets/images/flags/cv.png +0 -0
- data/vendor/assets/images/flags/cx.png +0 -0
- data/vendor/assets/images/flags/cy.png +0 -0
- data/vendor/assets/images/flags/cz.png +0 -0
- data/vendor/assets/images/flags/de.png +0 -0
- data/vendor/assets/images/flags/dj.png +0 -0
- data/vendor/assets/images/flags/dk.png +0 -0
- data/vendor/assets/images/flags/dm.png +0 -0
- data/vendor/assets/images/flags/do.png +0 -0
- data/vendor/assets/images/flags/dz.png +0 -0
- data/vendor/assets/images/flags/ec.png +0 -0
- data/vendor/assets/images/flags/ee.png +0 -0
- data/vendor/assets/images/flags/eg.png +0 -0
- data/vendor/assets/images/flags/eh.png +0 -0
- data/vendor/assets/images/flags/england.png +0 -0
- data/vendor/assets/images/flags/er.png +0 -0
- data/vendor/assets/images/flags/es.png +0 -0
- data/vendor/assets/images/flags/et.png +0 -0
- data/vendor/assets/images/flags/europeanunion.png +0 -0
- data/vendor/assets/images/flags/fam.png +0 -0
- data/vendor/assets/images/flags/fi.png +0 -0
- data/vendor/assets/images/flags/fj.png +0 -0
- data/vendor/assets/images/flags/fk.png +0 -0
- data/vendor/assets/images/flags/fm.png +0 -0
- data/vendor/assets/images/flags/fo.png +0 -0
- data/vendor/assets/images/flags/fr.png +0 -0
- data/vendor/assets/images/flags/ga.png +0 -0
- data/vendor/assets/images/flags/gb.png +0 -0
- data/vendor/assets/images/flags/gd.png +0 -0
- data/vendor/assets/images/flags/ge.png +0 -0
- data/vendor/assets/images/flags/gf.png +0 -0
- data/vendor/assets/images/flags/gh.png +0 -0
- data/vendor/assets/images/flags/gi.png +0 -0
- data/vendor/assets/images/flags/gl.png +0 -0
- data/vendor/assets/images/flags/gm.png +0 -0
- data/vendor/assets/images/flags/gn.png +0 -0
- data/vendor/assets/images/flags/gp.png +0 -0
- data/vendor/assets/images/flags/gq.png +0 -0
- data/vendor/assets/images/flags/gr.png +0 -0
- data/vendor/assets/images/flags/gs.png +0 -0
- data/vendor/assets/images/flags/gt.png +0 -0
- data/vendor/assets/images/flags/gu.png +0 -0
- data/vendor/assets/images/flags/gw.png +0 -0
- data/vendor/assets/images/flags/gy.png +0 -0
- data/vendor/assets/images/flags/hk.png +0 -0
- data/vendor/assets/images/flags/hm.png +0 -0
- data/vendor/assets/images/flags/hn.png +0 -0
- data/vendor/assets/images/flags/hr.png +0 -0
- data/vendor/assets/images/flags/ht.png +0 -0
- data/vendor/assets/images/flags/hu.png +0 -0
- data/vendor/assets/images/flags/id.png +0 -0
- data/vendor/assets/images/flags/ie.png +0 -0
- data/vendor/assets/images/flags/il.png +0 -0
- data/vendor/assets/images/flags/in.png +0 -0
- data/vendor/assets/images/flags/io.png +0 -0
- data/vendor/assets/images/flags/iq.png +0 -0
- data/vendor/assets/images/flags/ir.png +0 -0
- data/vendor/assets/images/flags/is.png +0 -0
- data/vendor/assets/images/flags/it.png +0 -0
- data/vendor/assets/images/flags/ja.png +0 -0
- data/vendor/assets/images/flags/jm.png +0 -0
- data/vendor/assets/images/flags/jo.png +0 -0
- data/vendor/assets/images/flags/ke.png +0 -0
- data/vendor/assets/images/flags/kg.png +0 -0
- data/vendor/assets/images/flags/kh.png +0 -0
- data/vendor/assets/images/flags/ki.png +0 -0
- data/vendor/assets/images/flags/km.png +0 -0
- data/vendor/assets/images/flags/kn.png +0 -0
- data/vendor/assets/images/flags/kp.png +0 -0
- data/vendor/assets/images/flags/kr.png +0 -0
- data/vendor/assets/images/flags/kw.png +0 -0
- data/vendor/assets/images/flags/ky.png +0 -0
- data/vendor/assets/images/flags/kz.png +0 -0
- data/vendor/assets/images/flags/la.png +0 -0
- data/vendor/assets/images/flags/lb.png +0 -0
- data/vendor/assets/images/flags/lc.png +0 -0
- data/vendor/assets/images/flags/li.png +0 -0
- data/vendor/assets/images/flags/lk.png +0 -0
- data/vendor/assets/images/flags/lr.png +0 -0
- data/vendor/assets/images/flags/ls.png +0 -0
- data/vendor/assets/images/flags/lt.png +0 -0
- data/vendor/assets/images/flags/lu.png +0 -0
- data/vendor/assets/images/flags/lv.png +0 -0
- data/vendor/assets/images/flags/ly.png +0 -0
- data/vendor/assets/images/flags/ma.png +0 -0
- data/vendor/assets/images/flags/mc.png +0 -0
- data/vendor/assets/images/flags/md.png +0 -0
- data/vendor/assets/images/flags/me.png +0 -0
- data/vendor/assets/images/flags/mg.png +0 -0
- data/vendor/assets/images/flags/mh.png +0 -0
- data/vendor/assets/images/flags/mk.png +0 -0
- data/vendor/assets/images/flags/ml.png +0 -0
- data/vendor/assets/images/flags/mm.png +0 -0
- data/vendor/assets/images/flags/mn.png +0 -0
- data/vendor/assets/images/flags/mo.png +0 -0
- data/vendor/assets/images/flags/mp.png +0 -0
- data/vendor/assets/images/flags/mq.png +0 -0
- data/vendor/assets/images/flags/mr.png +0 -0
- data/vendor/assets/images/flags/ms.png +0 -0
- data/vendor/assets/images/flags/mt.png +0 -0
- data/vendor/assets/images/flags/mu.png +0 -0
- data/vendor/assets/images/flags/mv.png +0 -0
- data/vendor/assets/images/flags/mw.png +0 -0
- data/vendor/assets/images/flags/mx.png +0 -0
- data/vendor/assets/images/flags/my.png +0 -0
- data/vendor/assets/images/flags/mz.png +0 -0
- data/vendor/assets/images/flags/na.png +0 -0
- data/vendor/assets/images/flags/nc.png +0 -0
- data/vendor/assets/images/flags/ne.png +0 -0
- data/vendor/assets/images/flags/nf.png +0 -0
- data/vendor/assets/images/flags/ng.png +0 -0
- data/vendor/assets/images/flags/ni.png +0 -0
- data/vendor/assets/images/flags/nl.png +0 -0
- data/vendor/assets/images/flags/no.png +0 -0
- data/vendor/assets/images/flags/np.png +0 -0
- data/vendor/assets/images/flags/nr.png +0 -0
- data/vendor/assets/images/flags/nu.png +0 -0
- data/vendor/assets/images/flags/nz.png +0 -0
- data/vendor/assets/images/flags/om.png +0 -0
- data/vendor/assets/images/flags/pa.png +0 -0
- data/vendor/assets/images/flags/pe.png +0 -0
- data/vendor/assets/images/flags/pf.png +0 -0
- data/vendor/assets/images/flags/pg.png +0 -0
- data/vendor/assets/images/flags/ph.png +0 -0
- data/vendor/assets/images/flags/pk.png +0 -0
- data/vendor/assets/images/flags/pl.png +0 -0
- data/vendor/assets/images/flags/pm.png +0 -0
- data/vendor/assets/images/flags/pn.png +0 -0
- data/vendor/assets/images/flags/pr.png +0 -0
- data/vendor/assets/images/flags/ps.png +0 -0
- data/vendor/assets/images/flags/pt.png +0 -0
- data/vendor/assets/images/flags/pw.png +0 -0
- data/vendor/assets/images/flags/py.png +0 -0
- data/vendor/assets/images/flags/qa.png +0 -0
- data/vendor/assets/images/flags/re.png +0 -0
- data/vendor/assets/images/flags/ro.png +0 -0
- data/vendor/assets/images/flags/rs.png +0 -0
- data/vendor/assets/images/flags/ru.png +0 -0
- data/vendor/assets/images/flags/rw.png +0 -0
- data/vendor/assets/images/flags/sa.png +0 -0
- data/vendor/assets/images/flags/sb.png +0 -0
- data/vendor/assets/images/flags/sc.png +0 -0
- data/vendor/assets/images/flags/scotland.png +0 -0
- data/vendor/assets/images/flags/sd.png +0 -0
- data/vendor/assets/images/flags/se.png +0 -0
- data/vendor/assets/images/flags/sg.png +0 -0
- data/vendor/assets/images/flags/sh.png +0 -0
- data/vendor/assets/images/flags/si.png +0 -0
- data/vendor/assets/images/flags/sj.png +0 -0
- data/vendor/assets/images/flags/sk.png +0 -0
- data/vendor/assets/images/flags/sl.png +0 -0
- data/vendor/assets/images/flags/sm.png +0 -0
- data/vendor/assets/images/flags/sn.png +0 -0
- data/vendor/assets/images/flags/so.png +0 -0
- data/vendor/assets/images/flags/sr.png +0 -0
- data/vendor/assets/images/flags/st.png +0 -0
- data/vendor/assets/images/flags/sv.png +0 -0
- data/vendor/assets/images/flags/sy.png +0 -0
- data/vendor/assets/images/flags/sz.png +0 -0
- data/vendor/assets/images/flags/tc.png +0 -0
- data/vendor/assets/images/flags/td.png +0 -0
- data/vendor/assets/images/flags/tf.png +0 -0
- data/vendor/assets/images/flags/tg.png +0 -0
- data/vendor/assets/images/flags/th.png +0 -0
- data/vendor/assets/images/flags/tj.png +0 -0
- data/vendor/assets/images/flags/tk.png +0 -0
- data/vendor/assets/images/flags/tl.png +0 -0
- data/vendor/assets/images/flags/tm.png +0 -0
- data/vendor/assets/images/flags/tn.png +0 -0
- data/vendor/assets/images/flags/to.png +0 -0
- data/vendor/assets/images/flags/tr.png +0 -0
- data/vendor/assets/images/flags/tt.png +0 -0
- data/vendor/assets/images/flags/tv.png +0 -0
- data/vendor/assets/images/flags/tw.png +0 -0
- data/vendor/assets/images/flags/tz.png +0 -0
- data/vendor/assets/images/flags/ua.png +0 -0
- data/vendor/assets/images/flags/ug.png +0 -0
- data/vendor/assets/images/flags/um.png +0 -0
- data/vendor/assets/images/flags/us.png +0 -0
- data/vendor/assets/images/flags/uy.png +0 -0
- data/vendor/assets/images/flags/uz.png +0 -0
- data/vendor/assets/images/flags/va.png +0 -0
- data/vendor/assets/images/flags/vc.png +0 -0
- data/vendor/assets/images/flags/ve.png +0 -0
- data/vendor/assets/images/flags/vg.png +0 -0
- data/vendor/assets/images/flags/vi.png +0 -0
- data/vendor/assets/images/flags/vn.png +0 -0
- data/vendor/assets/images/flags/vu.png +0 -0
- data/vendor/assets/images/flags/wales.png +0 -0
- data/vendor/assets/images/flags/wf.png +0 -0
- data/vendor/assets/images/flags/ws.png +0 -0
- data/vendor/assets/images/flags/ye.png +0 -0
- data/vendor/assets/images/flags/yt.png +0 -0
- data/vendor/assets/images/flags/za.png +0 -0
- data/vendor/assets/images/flags/zm.png +0 -0
- data/vendor/assets/images/flags/zw.png +0 -0
- data/vendor/assets/images/jquery.formalize/button.png +0 -0
- data/vendor/assets/images/jquery.formalize/select_arrow.gif +0 -0
- data/vendor/assets/javascripts/jquery.formalize.min.js +1 -0
- data/vendor/assets/javascripts/jquery.validate/additional-methods.min.js +12 -0
- data/vendor/assets/javascripts/jquery.validate/jquery.validate.min.js +12 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ar.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_bg.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ca.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_cs.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_da.js +22 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_de.js +22 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_el.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_es.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_et.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_eu.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fa.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fi.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fr.js +47 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ge.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_he.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_hr.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_hu.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_it.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ja.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ka.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_kk.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ko.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_lt.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_lv.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ms.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_nl.js +35 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_no.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_pl.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ptbr.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ptpt.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ro.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ru.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_se.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_si.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sk.js +22 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sl.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sr.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sv.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_th.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_tr.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_tw.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_uk.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_vi.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_zh.js +25 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_zhtw.js +26 -0
- data/vendor/assets/javascripts/jquery.validate/localization/methods_de.js +12 -0
- data/vendor/assets/javascripts/jquery.validate/localization/methods_nl.js +9 -0
- data/vendor/assets/javascripts/jquery.validate/localization/methods_pt.js +9 -0
- data/vendor/assets/stylesheets/jquery.formalize.css.erb +363 -0
- metadata +527 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a025e34e69311d78a1d09a4c3b2c619342440579
|
4
|
+
data.tar.gz: 98567793b08e294e4e71d0c23949c76d7a3d091c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 60953903652bd3b10f9c0bb9908e5edbd51dc31b69aae51ebe044231f61a0fa9d3a8fe79d7a3fa17fb3baeff98590930da3857c40be6b28ec5eef8904c44ccf2
|
7
|
+
data.tar.gz: fc9152d577173019be8c7b59f9eeaed18b40e63d25b14b36eb14bf0fb900d5f77ed832a93abbd1eb49c6cd7dfad088070c13b98cdf829cf3cd34218314dd308a
|
data/LICENSE
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
Copyright (c) 2007-2014, Spree Commerce, Inc. and other contributors
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without modification,
|
5
|
+
are permitted provided that the following conditions are met:
|
6
|
+
|
7
|
+
* Redistributions of source code must retain the above copyright notice,
|
8
|
+
this list of conditions and the following disclaimer.
|
9
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
10
|
+
this list of conditions and the following disclaimer in the documentation
|
11
|
+
and/or other materials provided with the distribution.
|
12
|
+
* Neither the name Spree nor the names of its contributors may be used to
|
13
|
+
endorse or promote products derived from this software without specific
|
14
|
+
prior written permission.
|
15
|
+
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
20
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
21
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
22
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
23
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
24
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
25
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
26
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Core
|
2
|
+
====
|
3
|
+
|
4
|
+
Core e-commerce functionality for the Spree project
|
5
|
+
|
6
|
+
|
7
|
+
Testing
|
8
|
+
-------
|
9
|
+
|
10
|
+
Create the test site
|
11
|
+
|
12
|
+
bundle exec rake test_app
|
13
|
+
|
14
|
+
Run the tests
|
15
|
+
|
16
|
+
bundle exec rake spec
|
17
|
+
|
18
|
+
Run the coverage. After the rake task open coverage/index.html
|
19
|
+
|
20
|
+
bundle exec rake rcov
|
21
|
+
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Spree.ready ($) ->
|
2
|
+
if ($ 'form#update-cart').is('*')
|
3
|
+
($ 'form#update-cart a.delete').show().one 'click', ->
|
4
|
+
($ this).parents('.line-item').first().find('input.line_item_quantity').val 0
|
5
|
+
($ this).parents('form').first().submit()
|
6
|
+
false
|
7
|
+
|
8
|
+
($ 'form#update-cart').submit ->
|
9
|
+
($ 'form#update-cart #update-button').attr('disabled', true)
|
10
|
+
|
11
|
+
Spree.fetch_cart = ->
|
12
|
+
Spree.ajax
|
13
|
+
url: Spree.pathFor("cart_link"),
|
14
|
+
success: (data) ->
|
15
|
+
$('#link-to-cart').html data
|
@@ -0,0 +1,86 @@
|
|
1
|
+
$ ->
|
2
|
+
if $('#checkout_form_address').is('*')
|
3
|
+
$('#checkout_form_address').validate()
|
4
|
+
|
5
|
+
getCountryId = (region) ->
|
6
|
+
$('#' + region + 'country select').val()
|
7
|
+
|
8
|
+
statesByCountry = {}
|
9
|
+
|
10
|
+
updateState = (region) ->
|
11
|
+
countryId = getCountryId(region)
|
12
|
+
if countryId?
|
13
|
+
unless statesByCountry[countryId]?
|
14
|
+
$.get Spree.routes.states_search, {country_id: countryId}, (data) ->
|
15
|
+
statesByCountry[countryId] =
|
16
|
+
states: data.states
|
17
|
+
states_required: data.states_required
|
18
|
+
fillStates(region)
|
19
|
+
else
|
20
|
+
fillStates(region)
|
21
|
+
|
22
|
+
fillStates = (region) ->
|
23
|
+
countryId = getCountryId(region)
|
24
|
+
data = statesByCountry[countryId]
|
25
|
+
return unless data?
|
26
|
+
|
27
|
+
statesRequired = data.states_required
|
28
|
+
states = data.states
|
29
|
+
|
30
|
+
statePara = $('#' + region + 'state')
|
31
|
+
stateSelect = statePara.find('select')
|
32
|
+
stateInput = statePara.find('input')
|
33
|
+
stateSpanRequired = statePara.find('[id$="state-required"]')
|
34
|
+
if states.length > 0
|
35
|
+
selected = parseInt stateSelect.val()
|
36
|
+
stateSelect.html ''
|
37
|
+
statesWithBlank = [{ name: '', id: ''}].concat(states)
|
38
|
+
$.each statesWithBlank, (idx, state) ->
|
39
|
+
opt = $(document.createElement('option')).attr('value', state.id).html(state.name)
|
40
|
+
opt.prop 'selected', true if selected is state.id
|
41
|
+
stateSelect.append opt
|
42
|
+
|
43
|
+
stateSelect.prop('disabled', false).show()
|
44
|
+
stateInput.hide().prop 'disabled', true
|
45
|
+
statePara.show()
|
46
|
+
stateSpanRequired.show()
|
47
|
+
stateSelect.addClass('required') if statesRequired
|
48
|
+
stateSelect.removeClass('hidden')
|
49
|
+
stateInput.removeClass('required')
|
50
|
+
else
|
51
|
+
stateSelect.hide().prop 'disabled', true
|
52
|
+
stateInput.show()
|
53
|
+
if statesRequired
|
54
|
+
stateSpanRequired.show()
|
55
|
+
stateInput.addClass('required')
|
56
|
+
else
|
57
|
+
stateInput.val ''
|
58
|
+
stateSpanRequired.hide()
|
59
|
+
stateInput.removeClass('required')
|
60
|
+
statePara.toggle(!!statesRequired)
|
61
|
+
stateInput.prop('disabled', !statesRequired)
|
62
|
+
stateInput.removeClass('hidden')
|
63
|
+
stateSelect.removeClass('required')
|
64
|
+
|
65
|
+
$('#bcountry select').change ->
|
66
|
+
updateState 'b'
|
67
|
+
|
68
|
+
$('#scountry select').change ->
|
69
|
+
updateState 's'
|
70
|
+
|
71
|
+
updateState 'b'
|
72
|
+
|
73
|
+
order_use_billing = $('input#order_use_billing')
|
74
|
+
order_use_billing.change ->
|
75
|
+
update_shipping_form_state order_use_billing
|
76
|
+
|
77
|
+
update_shipping_form_state = (order_use_billing) ->
|
78
|
+
if order_use_billing.is(':checked')
|
79
|
+
$('#shipping .inner').hide()
|
80
|
+
$('#shipping .inner input, #shipping .inner select').prop 'disabled', true
|
81
|
+
else
|
82
|
+
$('#shipping .inner').show()
|
83
|
+
$('#shipping .inner input, #shipping .inner select').prop 'disabled', false
|
84
|
+
updateState('s')
|
85
|
+
|
86
|
+
update_shipping_form_state order_use_billing
|
@@ -0,0 +1,79 @@
|
|
1
|
+
Spree.ready ($) ->
|
2
|
+
Spree.onPayment = () ->
|
3
|
+
if ($ '#checkout_form_payment').is('*')
|
4
|
+
|
5
|
+
if ($ '#existing_cards').is('*')
|
6
|
+
($ '#payment-method-fields').hide()
|
7
|
+
($ '#payment-methods').hide()
|
8
|
+
|
9
|
+
($ '#use_existing_card_yes').click ->
|
10
|
+
($ '#payment-method-fields').hide()
|
11
|
+
($ '#payment-methods').hide()
|
12
|
+
($ '.existing-cc-radio').prop("disabled", false)
|
13
|
+
|
14
|
+
($ '#use_existing_card_no').click ->
|
15
|
+
($ '#payment-method-fields').show()
|
16
|
+
($ '#payment-methods').show()
|
17
|
+
($ '.existing-cc-radio').prop("disabled", true)
|
18
|
+
|
19
|
+
|
20
|
+
$(".cardNumber").payment('formatCardNumber')
|
21
|
+
$(".cardExpiry").payment('formatCardExpiry')
|
22
|
+
$(".cardCode").payment('formatCardCVC')
|
23
|
+
|
24
|
+
$(".cardNumber").change ->
|
25
|
+
$(this).parent().siblings(".ccType").val($.payment.cardType(@value))
|
26
|
+
|
27
|
+
($ 'input[type="radio"][name="order[payments_attributes][][payment_method_id]"]').click(->
|
28
|
+
($ '#payment-methods li').hide()
|
29
|
+
($ '#payment_method_' + @value).show() if @checked
|
30
|
+
)
|
31
|
+
|
32
|
+
($ document).on('click', '#cvv_link', (event) ->
|
33
|
+
windowName = 'cvv_info'
|
34
|
+
windowOptions = 'left=20,top=20,width=500,height=500,toolbar=0,resizable=0,scrollbars=1'
|
35
|
+
window.open(($ this).attr('href'), windowName, windowOptions)
|
36
|
+
event.preventDefault()
|
37
|
+
)
|
38
|
+
|
39
|
+
# Activate already checked payment method if form is re-rendered
|
40
|
+
# i.e. if user enters invalid data
|
41
|
+
($ 'input[type="radio"]:checked').click()
|
42
|
+
|
43
|
+
$('#checkout_form_payment').submit ->
|
44
|
+
# Coupon code application may take a number of seconds.
|
45
|
+
# Informing the user that this is happening is a good way to indicate some progress to them.
|
46
|
+
# In addition to this, if the coupon code FAILS then they don't lose their just-entered payment data.
|
47
|
+
coupon_code_field = $('#order_coupon_code')
|
48
|
+
coupon_code = $.trim(coupon_code_field.val())
|
49
|
+
if (coupon_code != '')
|
50
|
+
if $('#coupon_status').length == 0
|
51
|
+
coupon_status = $("<div id='coupon_status'></div>")
|
52
|
+
coupon_code_field.parent().append(coupon_status)
|
53
|
+
else
|
54
|
+
coupon_status = $("#coupon_status")
|
55
|
+
|
56
|
+
url = Spree.url(Spree.routes.apply_coupon_code(Spree.current_order_id),
|
57
|
+
{
|
58
|
+
order_token: Spree.current_order_token,
|
59
|
+
coupon_code: coupon_code
|
60
|
+
}
|
61
|
+
)
|
62
|
+
|
63
|
+
coupon_status.removeClass();
|
64
|
+
Spree.ajax({
|
65
|
+
async: false,
|
66
|
+
method: "PUT",
|
67
|
+
url: url,
|
68
|
+
success: (data) ->
|
69
|
+
coupon_code_field.val('')
|
70
|
+
coupon_status.addClass("success").html("Coupon code applied successfully.")
|
71
|
+
return true
|
72
|
+
error: (xhr) ->
|
73
|
+
handler = JSON.parse(xhr.responseText)
|
74
|
+
coupon_status.addClass("error").html(handler["error"])
|
75
|
+
$('.continue').attr('disabled', false)
|
76
|
+
return false
|
77
|
+
})
|
78
|
+
|
79
|
+
Spree.onPayment()
|
@@ -0,0 +1,11 @@
|
|
1
|
+
//= require jquery.payment
|
2
|
+
//= require_self
|
3
|
+
//= require spree/frontend/checkout/address
|
4
|
+
//= require spree/frontend/checkout/payment
|
5
|
+
|
6
|
+
Spree.disableSaveOnClick = ->
|
7
|
+
($ 'form.edit_order').submit ->
|
8
|
+
($ this).find(':submit, :image').attr('disabled', true).removeClass('primary').addClass 'disabled'
|
9
|
+
|
10
|
+
Spree.ready ($) ->
|
11
|
+
Spree.Checkout = {}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
$ ->
|
2
|
+
Spree.addImageHandlers = ->
|
3
|
+
thumbnails = ($ '#product-images ul.thumbnails')
|
4
|
+
($ '#main-image').data 'selectedThumb', ($ '#main-image img').attr('src')
|
5
|
+
thumbnails.find('li').eq(0).addClass 'selected'
|
6
|
+
thumbnails.find('a').on 'click', (event) ->
|
7
|
+
($ '#main-image').data 'selectedThumb', ($ event.currentTarget).attr('href')
|
8
|
+
($ '#main-image').data 'selectedThumbId', ($ event.currentTarget).parent().attr('id')
|
9
|
+
thumbnails.find('li').removeClass 'selected'
|
10
|
+
($ event.currentTarget).parent('li').addClass 'selected'
|
11
|
+
false
|
12
|
+
|
13
|
+
thumbnails.find('li').on 'mouseenter', (event) ->
|
14
|
+
($ '#main-image img').attr 'src', ($ event.currentTarget).find('a').attr('href')
|
15
|
+
|
16
|
+
thumbnails.find('li').on 'mouseleave', (event) ->
|
17
|
+
($ '#main-image img').attr 'src', ($ '#main-image').data('selectedThumb')
|
18
|
+
|
19
|
+
Spree.showVariantImages = (variantId) ->
|
20
|
+
($ 'li.vtmb').hide()
|
21
|
+
($ 'li.tmb-' + variantId).show()
|
22
|
+
currentThumb = ($ '#' + ($ '#main-image').data('selectedThumbId'))
|
23
|
+
if not currentThumb.hasClass('vtmb-' + variantId)
|
24
|
+
thumb = ($ ($ '#product-images ul.thumbnails li:visible.vtmb').eq(0))
|
25
|
+
thumb = ($ ($ '#product-images ul.thumbnails li:visible').eq(0)) unless thumb.length > 0
|
26
|
+
newImg = thumb.find('a').attr('href')
|
27
|
+
($ '#product-images ul.thumbnails li').removeClass 'selected'
|
28
|
+
thumb.addClass 'selected'
|
29
|
+
($ '#main-image img').attr 'src', newImg
|
30
|
+
($ '#main-image').data 'selectedThumb', newImg
|
31
|
+
($ '#main-image').data 'selectedThumbId', thumb.attr('id')
|
32
|
+
|
33
|
+
Spree.updateVariantPrice = (variant) ->
|
34
|
+
variantPrice = variant.data('price')
|
35
|
+
($ '.price.selling').text(variantPrice) if variantPrice
|
36
|
+
radios = ($ '#product-variants input[type="radio"]')
|
37
|
+
|
38
|
+
if radios.length > 0
|
39
|
+
selectedRadio = ($ '#product-variants input[type="radio"][checked="checked"]')
|
40
|
+
Spree.showVariantImages selectedRadio.attr('value')
|
41
|
+
Spree.updateVariantPrice selectedRadio
|
42
|
+
|
43
|
+
Spree.addImageHandlers()
|
44
|
+
|
45
|
+
radios.click (event) ->
|
46
|
+
Spree.showVariantImages @value
|
47
|
+
Spree.updateVariantPrice ($ this)
|
@@ -0,0 +1,61 @@
|
|
1
|
+
/*--------------------------------------*/
|
2
|
+
/* Colors
|
3
|
+
/*--------------------------------------*/
|
4
|
+
$c_green: #8dba53 !default; /* Spree green */
|
5
|
+
$c_red: #e45353 !default; /* Error red */
|
6
|
+
|
7
|
+
$layout_background_color: #FFFFFF !default;
|
8
|
+
$title_text_color: #404042 !default;
|
9
|
+
$body_text_color: #404042 !default;
|
10
|
+
$link_text_color: #00ADEE !default;
|
11
|
+
|
12
|
+
$product_background_color: #FFFFFF !default;
|
13
|
+
$product_title_text_color: #404042 !default;
|
14
|
+
$product_body_text_color: #404042 !default;
|
15
|
+
$product_link_text_color: #BBBBBB !default;
|
16
|
+
|
17
|
+
/*--------------------------------------*/
|
18
|
+
/* Fonts import from remote
|
19
|
+
/*--------------------------------------*/
|
20
|
+
@import url(//fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic|&subset=latin,cyrillic,greek,greek-ext,latin-ext,cyrillic-ext);
|
21
|
+
|
22
|
+
/*--------------------------------------*/
|
23
|
+
/* Font families
|
24
|
+
/*--------------------------------------*/
|
25
|
+
$ff_base: 'Ubuntu', sans-serif !default;
|
26
|
+
|
27
|
+
/*--------------------------------------
|
28
|
+
| Font sizes
|
29
|
+
|--------------------------------------
|
30
|
+
|- Navigation
|
31
|
+
| */
|
32
|
+
$header_navigation_font_size: 14px !default;
|
33
|
+
$horizontal_navigation_font_size: 16px !default;
|
34
|
+
$main_navigation_header_font_size: 14px !default;
|
35
|
+
$main_navigation_font_size: 12px !default;
|
36
|
+
/*|------------------------------------
|
37
|
+
|- Product Listing
|
38
|
+
| */
|
39
|
+
$product_list_name_font_size: 12px !default;
|
40
|
+
$product_list_price_font_size: 16px !default;
|
41
|
+
$product_list_header_font_size: 20px !default;
|
42
|
+
$product_list_search_font_size: 14px !default;
|
43
|
+
/*|------------------------------------
|
44
|
+
|- Product Details
|
45
|
+
| */
|
46
|
+
$product_detail_name_font_size: 24px !default;
|
47
|
+
$product_detail_description_font_size: 12px !default;
|
48
|
+
$product_detail_price_font_size: 20px !default;
|
49
|
+
$product_detail_title_font_size: 14px !default;
|
50
|
+
/*|------------------------------------
|
51
|
+
|- Basic
|
52
|
+
| */
|
53
|
+
$heading_font_size: 24px !default;
|
54
|
+
$sub_heading_font_size: 14px !default;
|
55
|
+
$button_font_size: 12px !default;
|
56
|
+
$input_box_font_size: 13px !default;
|
57
|
+
$base_font_size: 12px !default;
|
58
|
+
$border_color: lighten($body_text_color, 60) !default;
|
59
|
+
$default_border: 1px solid $border_color !default;
|
60
|
+
$button_border_color: rgba(0, 138, 189, .75) !default;
|
61
|
+
$table_head_color: lighten($body_text_color, 60) !default;
|