Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
291 commits
Select commit Hold shift + click to select a range
ab106dc
Merge branch 'develop' of https://github.com/DivanteLtd/vue-storefron…
filrak Apr 5, 2018
95849d4
Update vue-offline package version
qiqqq Apr 6, 2018
ae3c1b0
Use payment store for paymentmethods
Apr 5, 2018
cf940ac
Remove unused getters, Add getter for shipping store
Apr 6, 2018
6959463
Merge pull request #988 from qiqqq/fix/update-vue-offline
filrak Apr 6, 2018
87d38f1
Updated references to old shippingMethods getter
Apr 6, 2018
c68d01e
Merge pull request #4 from DivanteLtd/develop
nuovecode Apr 6, 2018
30eea9f
Restore gallery branch
nuovecode Apr 6, 2018
6e54573
remove clicks++
nuovecode Apr 6, 2018
2b8d707
Merge pull request #964 from bitbull-team/feature/956-colors-fix
pkarw Apr 7, 2018
b608613
Merge remote-tracking branch 'theirs/develop' into master-fork
Apr 7, 2018
82af6e6
compare mutation names from split string rather than index to prevent…
Apr 7, 2018
42720b8
use the product image if there's no configurable child images
Apr 7, 2018
d0ef565
Merge pull request #991 from jimcreate78/fix/show_image_when_no_confi…
pkarw Apr 7, 2018
17fce8a
Switch color if media gallery is present
nuovecode Apr 7, 2018
dfcc2bd
Merge branch 'master' of https://github.com/DivanteLtd/vue-storefront
pkarw Apr 7, 2018
c31379c
Merge pull request #989 from thomasthune/bugfix/payment-shipping-store
pkarw Apr 7, 2018
2117d3e
Merge pull request #990 from jimcreate78/fix/improve_mutation_name_co…
pkarw Apr 7, 2018
aea3e77
Merge branch 'develop' of https://github.com/DivanteLtd/vue-storefront
pkarw Apr 7, 2018
a765d27
Minor fixed to payments module + thank you pag
pkarw Apr 7, 2018
ffd8d7e
Fix to vuex stores plugin
pkarw Apr 7, 2018
c1fdff5
OfflineBadge fix
pkarw Apr 7, 2018
5c658ee
Merge pull request #993 from pkarw/master
pkarw Apr 7, 2018
16665e8
EventBus + i18n dependency removed for Vuex.Store
pkarw Apr 7, 2018
39713fb
Russian translation
akbarkz Apr 8, 2018
eb8f07b
Merge pull request #995 from akbarik/feature/issue_992
pkarw Apr 8, 2018
29d4ab0
Restyle my-account dropdown
qiqqq Apr 8, 2018
697ba09
Restyle my orders dropdown
qiqqq Apr 8, 2018
7b3c877
Graphic fixes
nuovecode Apr 8, 2018
42e93e5
Add navigation links
qiqqq Apr 8, 2018
2facbfa
Reorganize AccountIcon.vue methods
qiqqq Apr 8, 2018
5a3f330
Move navigation links to theme components and add it to i18n
qiqqq Apr 8, 2018
c83d14d
Revert "EventBus + i18n dependency removed for Vuex.Store"
pkarw Apr 9, 2018
bd0ed0a
Global variables clean up
pkarw Apr 9, 2018
7d10a8f
Vuex refactoring #976
pkarw Apr 9, 2018
daf6104
Misspell
pkarw Apr 9, 2018
a2684a0
Merge pull request #996 from pkarw/master
pkarw Apr 9, 2018
9e0e866
component name fix
pkarw Apr 9, 2018
8610aaa
Merge pull request #997 from pkarw/master
pkarw Apr 9, 2018
9d935c8
assign fix
pkarw Apr 9, 2018
cb70f39
Merge pull request #998 from pkarw/master
pkarw Apr 9, 2018
68fe80e
phantomJS object.assign error solved
pkarw Apr 9, 2018
7b1e4bb
Merge pull request #999 from pkarw/master
pkarw Apr 9, 2018
1c82ed3
#99 manage both cases with media gallery and not
nuovecode Apr 9, 2018
df4d83b
CSS fixes
qiqqq Apr 10, 2018
ab7eb02
Resolve conflicts after merge develop
qiqqq Apr 10, 2018
8430cb6
Merge pull request #1000 from qiqqq/feature/my-account-dropdown
pkarw Apr 10, 2018
b621f12
Fix for #983 + cache timeout
pkarw Apr 10, 2018
8911093
Theme oriented extension points - #986
pkarw Apr 10, 2018
1a1ac39
PWA manifest is now theme oriented - #994
pkarw Apr 10, 2018
c012dcc
Theme related PWA title distinction
pkarw Apr 10, 2018
05bca46
Merge pull request #1004 from pkarw/master
pkarw Apr 10, 2018
b2cad2b
Vue-offline new version updates
filrak Apr 10, 2018
7db8761
More vuex refactor on #976
pkarw Apr 10, 2018
8368768
Merge pull request #1005 from pkarw/master
pkarw Apr 10, 2018
93dc1cc
Small fix
nuovecode Apr 10, 2018
55b4ef9
My account links in sidebar menu
qiqqq Apr 10, 2018
e625dec
Single image support
nuovecode Apr 10, 2018
5ffae6f
Merge pull request #1006 from qiqqq/feature/my-account-dropdown
pkarw Apr 10, 2018
6a768e3
Single image support
nuovecode Apr 10, 2018
c9083f4
Minor fixes
nuovecode Apr 10, 2018
78e4c2e
First page load
nuovecode Apr 10, 2018
678a6d1
Merge branch 'develop' into feature/99-gallery-full
nuovecode Apr 10, 2018
d112bae
Merge pull request #5 from DivanteLtd/master
nuovecode Apr 11, 2018
5c0bb08
Merge branch 'develop' of github.com:DivanteLtd/vue-storefront into d…
nuovecode Apr 11, 2018
2a097c8
Added italian translation
nuovecode Apr 11, 2018
1a4a73a
Merge pull request #1014 from bitbull-team/feature/italian-translatio…
pkarw Apr 11, 2018
d766a70
no message
pkarw Apr 12, 2018
e8d8350
Global config dependency removed from Vuex stores
pkarw Apr 12, 2018
5468f7b
Final Vuex store separation improvements
pkarw Apr 12, 2018
d397435
#955 Capital button letters & new styles for buttons
Apr 13, 2018
7d878ce
Revert "#955 Capital button letters & new styles for buttons"
Apr 13, 2018
b39d184
#955 Capital button letters & new styles for buttons
Apr 13, 2018
ad73036
#953 No breadcrumbs and different font size on mobile
Apr 13, 2018
2fa8d89
Revert "#953 No breadcrumbs and different font size on mobile"
Apr 13, 2018
12f215d
#955 Capital button letters & new styles for buttons v2
Apr 13, 2018
c9de3ff
#953 No_breadcrumbs_and_different_font_size_on_mobil
Apr 13, 2018
60d1ad2
#1017 - All "core/store" occurrences replaced with package name
Igloczek Apr 13, 2018
97276b3
Merge branch 'master' into develop
Igloczek Apr 13, 2018
cf12b66
Merge pull request #1020 from jmikolajczyk/develop
pkarw Apr 13, 2018
777e4d3
Merge pull request #1021 from jmikolajczyk/bugfix/No_breadcrumbs_and_…
pkarw Apr 13, 2018
2906d11
Merge pull request #1022 from DivanteLtd/feature/1017
pkarw Apr 13, 2018
f95e83c
Merge branch 'develop' of https://github.com/DivanteLtd/vue-storefront
pkarw Apr 13, 2018
5e0d749
Fix to the category layout algorithm
pkarw Apr 13, 2018
49e8cb5
Breadcrumb fix on mobile
pkarw Apr 13, 2018
7f4853d
Merge pull request #1023 from pkarw/master
pkarw Apr 13, 2018
be73bf8
Missed config.js module
pkarw Apr 13, 2018
4504f59
Merge pull request #1024 from pkarw/master
pkarw Apr 13, 2018
dc0ff1b
Temporary excluded “yarn unit” because of PhantomJS const error
pkarw Apr 13, 2018
e9e0f1e
Merge pull request #1025 from pkarw/master
pkarw Apr 13, 2018
eb73e74
fix for product attributes with similar names. This allows using attr…
Apr 16, 2018
af30eed
improve config variable name
Apr 16, 2018
a0efa3f
use main image when no configurable children image
Apr 16, 2018
2619fe6
Merge branch 'develop' into bugfix/No_breadcrumbs_and_different_font_…
Apr 16, 2018
b728f0b
Merge pull request #1030 from jimcreate78/fix/use_main_image_when_no_…
pkarw Apr 16, 2018
a503336
Merge pull request #1029 from jimcreate78/fix/config_setup_variant_by…
pkarw Apr 16, 2018
2e2c4a8
#953 No_breadcrumbs_and_different_font_size_on_mobil v2
Apr 16, 2018
f132a92
Header font-size - atomic
Apr 16, 2018
fc73a8c
#961 Adjustments in the product box
Apr 16, 2018
d4e0d2f
Minor fixes
pkarw Apr 16, 2018
fe98f4e
Totals calc optimisation #1031
pkarw Apr 16, 2018
a97a4d4
Totals fix
pkarw Apr 16, 2018
7bff478
Sidebar menu adjustments (WIP)
qiqqq Apr 16, 2018
e4ad029
SSR JSON size optimisations
pkarw Apr 16, 2018
2246c0f
Merge pull request #1037 from pkarw/master
pkarw Apr 16, 2018
0e00f36
Optimize images
qiqqq Apr 16, 2018
da991bb
Category page SSR fix
pkarw Apr 16, 2018
4b84b2b
Merge pull request #1038 from qiqqq/fix/performance-optimization
pkarw Apr 16, 2018
e491a6f
Merge pull request #1039 from pkarw/master
pkarw Apr 16, 2018
cbb37d7
Default frontend label
pkarw Apr 16, 2018
c1c8ca8
Merge pull request #1040 from pkarw/master
pkarw Apr 16, 2018
6f7eaf1
SSR optimisation fixes
pkarw Apr 16, 2018
cc4989d
getShipping + getPayment methods optimization
pkarw Apr 16, 2018
96c8987
Merge pull request #1041 from pkarw/master
pkarw Apr 16, 2018
3a94655
Travis fix
pkarw Apr 16, 2018
ad0e1c7
Merge pull request #1042 from pkarw/master
pkarw Apr 16, 2018
6026038
SSR optimizations
pkarw Apr 17, 2018
deec830
Merge pull request #1043 from pkarw/master
pkarw Apr 17, 2018
b047cfc
Category list optimization
pkarw Apr 17, 2018
4167f4b
Merge pull request #1044 from pkarw/master
pkarw Apr 17, 2018
9b3278b
Service worker tweaks
pkarw Apr 17, 2018
9b6f6ee
Merge pull request #1045 from pkarw/master
pkarw Apr 17, 2018
4febde6
More SW fixes
pkarw Apr 17, 2018
d134a01
Merge pull request #1046 from pkarw/master
pkarw Apr 17, 2018
aab9dc5
Api catalog cache in service worker
pkarw Apr 17, 2018
ad7df74
Service worker tweaks
pkarw Apr 17, 2018
1260936
Another tweak :)
pkarw Apr 17, 2018
66f6453
Merge pull request #1047 from pkarw/master
pkarw Apr 17, 2018
da83543
MyAccount fixes
pkarw Apr 17, 2018
40d509a
Update images lazy-loading + resolve blocking stylesheets
qiqqq Apr 17, 2018
de4da95
SSR cache fix
pkarw Apr 18, 2018
c6deff0
Experimental feature: two stage caching for network bandwidth optimiz…
pkarw Apr 18, 2018
1310aa3
Merge pull request #1048 from pkarw/master
pkarw Apr 18, 2018
e85a1c6
Missing configs
pkarw Apr 18, 2018
265a10d
Merge pull request #1049 from pkarw/master
pkarw Apr 18, 2018
fb0ea7d
Minor fix
pkarw Apr 18, 2018
6499a50
Merge pull request #1050 from pkarw/master
pkarw Apr 18, 2018
8d40216
Reorganize render-blocking css
qiqqq Apr 18, 2018
0d57391
Merge branch 'develop' into feature/lazy-load-images
qiqqq Apr 18, 2018
dd6ef10
Merge pull request #1051 from qiqqq/feature/lazy-load-images
pkarw Apr 18, 2018
5c88e7e
Hide slider on mobile + lazy loading fixes
qiqqq Apr 18, 2018
997b962
Merge pull request #1052 from qiqqq/feature/lazy-loading-and-hide-sli…
pkarw Apr 18, 2018
d3a5e15
Placeholder as file
qiqqq Apr 18, 2018
3fd3b47
Merge pull request #1053 from qiqqq/feature/lazy-loading-and-hide-sli…
pkarw Apr 18, 2018
dbbc4d6
Merge pull request #1 from DivanteLtd/develop
jmikolajczyk Apr 19, 2018
89a1c7b
#961Adjustments in the product box - lonely product box
Apr 19, 2018
fad9864
Merge conflicts
Apr 19, 2018
8271089
Update Database tool.md
pkarw Apr 19, 2018
25d3ef3
Update Database tool.md
pkarw Apr 19, 2018
732fc05
Update FAQ and Receipes.md
pkarw Apr 19, 2018
83fda2c
Fix for the color+size attributes on progressive caching
pkarw Apr 19, 2018
a8ab9c8
Merge Conflicts 2
Apr 19, 2018
ca2f745
Merge pull request #1057 from pkarw/master
pkarw Apr 19, 2018
2a50b34
Minor update
pkarw Apr 19, 2018
8119f1c
Merge pull request #1058 from pkarw/master
pkarw Apr 19, 2018
d5decad
SW fine tune
pkarw Apr 19, 2018
b9d1fe7
Merge pull request #1059 from pkarw/master
pkarw Apr 19, 2018
3d7b22d
Make Materia Icons localy loaded
qiqqq Apr 19, 2018
097dd6a
Merge branch 'develop' into feature/lazy-loading-and-hide-slider-on-m…
qiqqq Apr 19, 2018
dc3b3a4
Merge pull request #1061 from qiqqq/feature/lazy-loading-and-hide-sli…
pkarw Apr 19, 2018
3447906
Reorganize fonts
qiqqq Apr 19, 2018
17807d0
Merge pull request #1063 from qiqqq/feature/reorganize-fonts
pkarw Apr 19, 2018
b82c954
MyAccount compatibility fixes
pkarw Apr 19, 2018
e725bc6
Sticky product box
Apr 19, 2018
40e2f3c
Add min height to product tiles to remove lazy loading bounce
qiqqq Apr 19, 2018
48ecddf
Remove unnecessary class
qiqqq Apr 19, 2018
ebbc38d
Merge pull request #1065 from qiqqq/feature/reorganize-fonts
pkarw Apr 19, 2018
f3c35a0
Made host and port configurable in json configuration
Tjitse-E Apr 20, 2018
f024810
Added host and port to server subsection, allow user to set host via …
Tjitse-E Apr 20, 2018
86933ac
Merge pull request #1067 from Vendic/feature/configurable-host-2
pkarw Apr 20, 2018
42b4897
Fix for color and size selection
pkarw Apr 20, 2018
0bd7bc4
Merge pull request #1068 from pkarw/master
pkarw Apr 20, 2018
3327d7d
Variant switch optimisation
pkarw Apr 20, 2018
305591a
Merge pull request #1069 from pkarw/master
pkarw Apr 20, 2018
dcf6692
Apr 20, 2018
10ba2bb
Fix for configurable_chdilren sku with filters
pkarw Apr 21, 2018
4a68195
Merge pull request #1071 from pkarw/master
pkarw Apr 21, 2018
d6a4694
Potentially breaking change: refactor of user profile api endpoints c…
pkarw Apr 21, 2018
c2a3cdc
Vertical scroll
nuovecode Apr 21, 2018
f54dc3b
Fix wrong effect on slide
nuovecode Apr 22, 2018
c47f2f5
Merge branch 'develop' into bugfix/Adjustments_in_the_product_box
jmikolajczyk Apr 23, 2018
c5d4101
Refresh token works in progress - #1018
pkarw Apr 23, 2018
f03e186
Group child product by configurable attribute
nuovecode Apr 23, 2018
21edfc3
Navigate to
nuovecode Apr 23, 2018
29f5790
#1018 tests + fixes
pkarw Apr 24, 2018
5195395
Single image fix
nuovecode Apr 24, 2018
da36385
Offline support
nuovecode Apr 24, 2018
c3f942b
Fix wrong effect
nuovecode Apr 25, 2018
1b609d4
Manage products without configurable group attribute
nuovecode Apr 25, 2018
c78d9ff
Product visibility filter fix
pkarw Apr 25, 2018
6082c2b
Merge pull request #1070 from Januszpl/feature/proceedtocheckout
pkarw Apr 25, 2018
3155426
Merge branch 'develop' of https://github.com/DivanteLtd/vue-storefront
pkarw Apr 25, 2018
8898824
Event emitter in Notification.vue
pkarw Apr 25, 2018
f44acc9
Merge pull request #1064 from jmikolajczyk/bugfix/Adjustments_in_the_…
pkarw Apr 25, 2018
fc9bf4a
Merge branch 'develop' of https://github.com/DivanteLtd/vue-storefront
pkarw Apr 25, 2018
f4bc813
Product width fix
pkarw Apr 25, 2018
f104510
Merge pull request #1033 from jmikolajczyk/bugfix/No_breadcrumbs_and_…
pkarw Apr 25, 2018
c674c9e
Merge branch 'develop' of https://github.com/DivanteLtd/vue-storefront
pkarw Apr 25, 2018
d75023a
SSR fixes + attribute list filter
pkarw Apr 25, 2018
0b0808e
Infinite scroll #104
pkarw Apr 25, 2018
85cbf60
Merge pull request #1078 from pkarw/master
pkarw Apr 25, 2018
ab4db75
Category list wide class fix
pkarw Apr 25, 2018
9529093
Merge pull request #1079 from pkarw/master
pkarw Apr 25, 2018
16ce9a8
Breadcrumb visible - regarding #953
pkarw Apr 25, 2018
e9548a8
Merge pull request #1080 from pkarw/master
pkarw Apr 25, 2018
598960f
index.html template specific to the theme #1062
pkarw Apr 25, 2018
0d62f8b
Fix
pkarw Apr 25, 2018
95aa953
Merge pull request #1081 from pkarw/master
pkarw Apr 25, 2018
8721312
Merge branch 'develop' into feature/sidebar-menu-adjustments
qiqqq Apr 26, 2018
5361b85
Sidebar menu adjustments
qiqqq Apr 26, 2018
d773b0d
Merge pull request #1082 from qiqqq/feature/sidebar-menu-adjustments
pkarw Apr 26, 2018
279af5e
URL token replacement fix for task/execute
pkarw Apr 27, 2018
742fa1d
Merge pull request #1083 from pkarw/master
pkarw Apr 27, 2018
7902f87
Cache timeout set to 1s; i18n for notification actions, token refresh…
pkarw Apr 27, 2018
628d6a4
Merge pull request #1084 from pkarw/master
pkarw Apr 27, 2018
7d3e56d
Pagination issue fixed for infinite scroll
pkarw Apr 27, 2018
74de951
Fixed behavior of My Account page when validation schema does not com…
akbarkz Apr 27, 2018
36e7b72
Merge branch 'develop' of https://github.com/DivanteLtd/vue-storefron…
akbarkz Apr 27, 2018
1234efb
minor fixes
nuovecode Apr 27, 2018
4ba4ce3
minor fixes
nuovecode Apr 27, 2018
38ef27d
minor fixes
nuovecode Apr 27, 2018
dd81cfa
Fixed My Profile data update, minor style bugs, got rid of warnings i…
akbarkz Apr 27, 2018
9aa3a2d
Font changes
qiqqq Apr 27, 2018
4291dd9
Category page refactor
pkarw Apr 27, 2018
405923b
Product page refactor
pkarw Apr 27, 2018
f496d59
Merge pull request #1089 from qiqqq/feature/font-weight
pkarw Apr 27, 2018
5b86ead
Merge pull request #1088 from akbarik/develop
pkarw Apr 27, 2018
2949e61
Merge branch 'develop' of https://github.com/DivanteLtd/vue-storefront
pkarw Apr 27, 2018
945bedf
Merge pull request #1007 from bitbull-team/feature/99-gallery-full
pkarw Apr 27, 2018
b29ee4f
Mixed in asyncData() override option (you can override the core compo…
pkarw Apr 27, 2018
dc24b20
Merge branch 'develop' of https://github.com/DivanteLtd/vue-storefront
pkarw Apr 27, 2018
ffc0f06
Minor fixes
pkarw Apr 27, 2018
5e5eda6
Merge pull request #1090 from pkarw/master
pkarw Apr 27, 2018
9c3116b
Breadcrumb fixes
pkarw Apr 27, 2018
8e55b0f
Merge pull request #1091 from pkarw/master
pkarw Apr 27, 2018
e65d7f0
Pagination fix
pkarw Apr 27, 2018
ffc661b
Merge pull request #1092 from pkarw/master
pkarw Apr 27, 2018
6638a4a
#838: compare page - improve UX
talalus Apr 27, 2018
fe83667
Lazy loading and minor fixes
nuovecode Apr 28, 2018
e2d27c2
Merge pull request #1095 from bitbull-team/feature/gallery-fixes
pkarw Apr 28, 2018
77137dd
Merge pull request #1094 from DivanteLtd/feature/838
pkarw Apr 28, 2018
c961311
Installer fixes
pkarw Apr 28, 2018
eeb2709
Attribute listing fix
pkarw Apr 28, 2018
6372888
Merge pull request #1097 from pkarw/master
pkarw Apr 28, 2018
9a66a62
Travis CI fix
pkarw Apr 28, 2018
3afad73
Another installer fix
pkarw Apr 28, 2018
0b8fb03
Merge pull request #1098 from pkarw/master
pkarw Apr 28, 2018
131e8f4
Token invalidate limit
pkarw Apr 28, 2018
88eb0a4
Console log
pkarw Apr 28, 2018
36c8546
Merge pull request #1099 from pkarw/master
pkarw Apr 28, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ core/resource/.ig_feed.json.icloud
core/resource/.order.json.icloud
core/resource/.promoted_offers.json.icloud
core/resource/.slider.json.icloud
yarn-error.log
package-lock.json
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ cache:

script:
- yarn lint
- yarn unit
# - yarn unit
- yarn build
47 changes: 43 additions & 4 deletions config/default.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,38 @@
{
"server": {
"host": "localhost",
"port": 3000
},
"elasticsearch": {
"httpAuth": "",
"host": "localhost:8080/api/catalog",
"index": "vue_storefront_catalog"
},
"ssr": {
"executeMixedinAsyncData": true
},
"entities": {
"optimize": true,
"twoStageCaching": true,
"category": {
"includeFields": [ "children_data", "id", "children_count", "sku", "name", "is_active", "parent_id", "level" ]
},
"attribute": {
"includeFields": [ "attribute_code", "id", "entity_type_id", "options", "default_value", "is_user_defined", "frontend_label", "attribute_id", "default_frontend_label", "is_visible_on_front", "is_visible", "is_comparable" ]
},
"productList": {
"includeFields": [ "type_id", "sku", "name", "price", "priceInclTax", "originalPriceInclTax", "id", "image", "sale", "new" ],
"excludeFields": [ "configurable_children", "description", "configurable_options", "sgn", "tax_class_id" ]
},
"productListWithChildren": {
"includeFields": [ "type_id", "sku", "name", "price", "priceInclTax", "originalPriceInclTax", "id", "image", "sale", "new", "configurable_children.image", "configurable_children.sku", "configurable_children.price", "configurable_children.special_price", "configurable_children.priceInclTax", "configurable_children.specialPriceInclTax", "configurable_children.originalPrice", "configurable_children.originalPriceInclTax", "configurable_children.color", "configurable_children.size" ],
"excludeFields": [ "description", "sgn", "tax_class_id" ]
},
"product": {
"excludeFields": [ "updated_at", "created_at", "attribute_set_id", "status", "visibility", "tier_prices", "options_container", "url_key", "msrp_display_actual_price_type", "has_options", "stock.manage_stock", "stock.use_config_min_qty", "stock.use_config_notify_stock_qty", "stock.stock_id", "stock.use_config_backorders", "stock.use_config_enable_qty_inc", "stock.enable_qty_increments", "stock.use_config_manage_stock", "stock.use_config_min_sale_qty", "stock.notify_stock_qty", "stock.use_config_max_sale_qty", "stock.use_config_max_sale_qty", "stock.qty_increments", "small_image"],
"includeFields": null
}
},
"cart": {
"synchronize": false,
"synchronize_totals": false,
Expand All @@ -24,16 +53,26 @@
"alwaysSyncPlatformPricesOver": false,
"clearPricesBeforePlatformSync": false,
"waitForPlatformSync": false,
"setupVariantByAttributeCode": false,
"endpoint": "http://localhost:8080/api/product",
"defaultFilters": ["color", "size", "price", "erin_recommends"]
"defaultFilters": ["color", "size", "price", "erin_recommends"],
"galleryVariantsGroupAttribute": "color"
},
"orders": {
"endpoint": "http://localhost:8080/api/order",
"payment_methods_mapping": {
}
},
"users": {
"endpoint": "http://localhost:8080/api/user"
"autoRefreshTokens": true,
"endpoint": "http://localhost:8080/api/user",
"history_endpoint": "http://localhost:8080/api/user/order-history?token={{token}}",
"resetPassword_endpoint": "http://localhost:8080/api/user/resetPassword",
"changePassword_endpoint": "http://localhost:8080/api/user/changePassword?token={{token}}",
"login_endpoint": "http://localhost:8080/api/user/login",
"create_endpoint": "http://localhost:8080/api/user/create",
"me_endpoint": "http://localhost:8080/api/user/me?token={{token}}",
"refresh_endpoint": "http://localhost:8080/api/user/refresh"
},
"stock": {
"synchronize": true,
Expand All @@ -57,7 +96,7 @@
"i18n": {
"defaultCountry": "US",
"defaultLanguage": "EN",
"availableLocale": ["en-US","de-DE","fr-FR","es-ES","nl-NL"],
"availableLocale": ["en-US","de-DE","fr-FR","es-ES","nl-NL", "jp-JP", "ru-RU", "it-IT"],
"defaultLocale": "en-US",
"currencyCode": "USD",
"currencySign": "$",
Expand All @@ -72,5 +111,5 @@
},
"stripe": {
"api_key": "my_example_api_key"
}
}
}
40 changes: 30 additions & 10 deletions core/app.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,41 @@
if (!global.$VS) global.$VS = {}

import _ from 'lodash'
import Vue from 'vue'
import App from 'theme/App'
import store from 'core/store'
import store from '@vue-storefront/store'
import router from 'core/router'
import config from 'config'
import appExtend from 'theme/app-extend'
import { sync } from 'vuex-router-sync'
import themeModules from 'theme/store'
import EventBus from 'core/plugins/event-bus'

import { registerTheme, plugins, mixins, filters } from 'core/lib/themes'
import registerExtensions from 'core/lib/extensions'
import extensionEntryPoints from 'src/extensions'
import themeExtensionEntryPoints from 'theme/extensions'

import VueLazyload from 'vue-lazyload'
import Vuelidate from 'vuelidate'
import Meta from 'vue-meta'
import i18n from 'core/lib/i18n'
import VueOffline from 'vue-offline'
import shippingMethods from 'core/resource/shipping_methods.json'

if (themeModules) {
for (const moduleName of Object.keys(themeModules)) {
console.log('Registering custom, theme Vuex store as module', moduleName)
store.registerModule(moduleName, themeModules[moduleName])
}
}

store.init(config, i18n, EventBus)

Vue.use(Vuelidate)
Vue.use(VueLazyload, {attempt: 2})
Vue.use(Meta)
Vue.use(VueOffline)

const pluginsObject = plugins()
Object.keys(pluginsObject).forEach(function (key) {
Expand Down Expand Up @@ -46,7 +64,7 @@ export function createApp () {
})

registerExtensions(
extensionEntryPoints,
_.union(extensionEntryPoints, themeExtensionEntryPoints),
app,
router,
store,
Expand All @@ -58,17 +76,19 @@ export function createApp () {
app.$emit('application-after-init', app)

if (config.demomode === true) {
global.__DEMO_MODE__ = true
global.$VS.__DEMO_MODE__ = true
} else {
global.__DEMO_MODE__ = false
global.$VS.__DEMO_MODE__ = false
}

global.__VERSION__ = '0.2.0'
global.__CONFIG__ = config
global.__TAX_COUNTRY__ = config.tax.defaultCountry || 'PL'
global.__TAX_REGION__ = config.tax.defaultRegion || ''
global.__I18N_COUNTRY__ = config.i18n.defaultCountry || 'US'
global.__I18N_LANG__ = config.i18n.defaultLanguage || 'EN'
global.$VS.__VERSION__ = '1.0.0-rc2s.0'
global.$VS.__CONFIG__ = config
global.$VS.__TAX_COUNTRY__ = config.tax.defaultCountry || 'PL'
global.$VS.__TAX_REGION__ = config.tax.defaultRegion || ''
global.$VS.__I18N_COUNTRY__ = config.i18n.defaultCountry || 'US'
global.$VS.__I18N_LANG__ = config.i18n.defaultLanguage || 'EN'

store.state.shipping.methods = shippingMethods

return { app, router, store }
}
22 changes: 14 additions & 8 deletions core/build/webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const themesRoot = '../../src/themes'

const themeRoot = require('./theme-path')
const themeComponents = themeRoot + '/components'
const themeExtensions = themeRoot + '/extensions'
const themePages = themeRoot + '/pages'
const themePlugins = themeRoot + '/plugins'
const themeFilters = themeRoot + '/filters'
Expand Down Expand Up @@ -68,7 +69,6 @@ module.exports = {
'core/plugins': path.resolve(__dirname, '../plugins'),
'core/resource': path.resolve(__dirname, '../resource'),
'core/router': path.resolve(__dirname, '../router'),
'core/store': path.resolve(__dirname, '../store'),
// Theme aliases
'theme': themeRoot,
'theme/app': themeApp,
Expand All @@ -79,7 +79,8 @@ module.exports = {
'theme/pages': themePages,
'theme/plugins': themePlugins,
'theme/resource': themeResources,
'theme/store': themeStores
'theme/store': themeStores,
'theme/extensions': themeExtensions
}
},
output: {
Expand All @@ -88,12 +89,13 @@ module.exports = {
filename: '[name].[hash].js'
},
module: {
rules: [{
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /node_modules/
},
rules: [
{
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /node_modules/
},
{
test: /\.vue$/,
loader: 'vue-loader',
Expand Down Expand Up @@ -136,6 +138,10 @@ module.exports = {
}
}
]
},
{
test: /\.(woff|woff2|eot|ttf)(\?.*$|$)/,
loader: 'url-loader?importLoaders=1&limit=10000'
}
]
}
Expand Down
54 changes: 30 additions & 24 deletions core/build/webpack.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ const HTMLPlugin = require('html-webpack-plugin')
const SWPrecachePlugin = require('sw-precache-webpack-plugin')
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
const path = require('path')
const fs = require('fs')
const themeDirectory = require('./theme-path')
const themedIndex = path.join(themeDirectory, 'index.template.html')

const config = merge(base, {
resolve: {
Expand All @@ -25,7 +28,7 @@ const config = merge(base, {
}),
// generate output HTML
new HTMLPlugin({
template: 'src/index.template.html'
template: fs.existsSync(themedIndex) ? themedIndex : 'src/index.template.html'
})
]
})
Expand All @@ -43,24 +46,43 @@ if (process.env.NODE_ENV === 'production') {
'dist/**.*',
'assets/**.*',
'assets/ig/**.*',
'index.html'
'index.html',
'/'
],
runtimeCaching: [
{
{
urlPattern: "^https://fonts\.googleapis\.com/", /** cache the html stub */
handler: "cacheFirst"
},
{
urlPattern: "^https://fonts\.gstatic\.com/", /** cache the html stub */
handler: "cacheFirst"
},
{
urlPattern: "^https://unpkg\.com/", /** cache the html stub */
handler: "cacheFirst"
},
{
urlPattern: "/pwa.html", /** cache the html stub */
handler: "networkFirst"
handler: "fastest"
},{
urlPattern: "/", /** cache the html stub for homepage */
handler: "fastest"
},
{
urlPattern: "/p/*", /** cache the html stub */
handler: "networkFirst"
handler: "fastest"
},
{
urlPattern: "/c/*", /** cache the html stub */
handler: "networkFirst"
handler: "fastest"
},
{
urlPattern: "/img/(.*)",
handler: "fastest"
},{
urlPattern: "/api/catalog/*",
handler: "fastest"
},{
urlPattern: "/api/*",
handler: "networkFirst"
Expand All @@ -72,29 +94,13 @@ if (process.env.NODE_ENV === 'production') {
handler: "fastest"
},{
urlPattern: "/assets/*",
handler: "networkFirst"
handler: "fastest"
},{
urlPattern: "/assets/ig/(.*)",
handler: "networkFirst"
handler: "fastest"
},{
urlPattern: "/dist/(.*)",
handler: "fastest"
},{
urlPattern:'/api/catalog/*', /** cache products catalog */
method: "post",
options: {
origin: 'http://localhost:8080',
debug: true
},
handler: "networkFirst"
},{
urlPattern:'/api/*', /** cache products catalog */
method: "post",
options: {
origin: 'https://demo.vuestorefront.io/',
debug: true
},
handler: "networkFirst"
}],
"importScripts": ['/service-worker-ext.js'] /* custom logic */
})
Expand Down
10 changes: 5 additions & 5 deletions core/client-entry.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { createApp } from './app'
import config from 'config'
import { execute } from 'core/lib/task'
import { execute } from '@vue-storefront/store/lib/task'
import * as localForage from 'localforage'
import EventBus from 'core/plugins/event-bus'

require('./service-worker-registration') // register the service worker

const { app, router, store } = createApp()
global.isSSR = false
global.$VS.isSSR = false

if (window.__INITIAL_STATE__) {
store.replaceState(window.__INITIAL_STATE__)
Expand All @@ -25,7 +25,7 @@ router.onReady(() => {
return next()
}
Promise.all(activated.map(c => { // TODO: update me for mixins support
const components = c.mixins ? Array.from(c.mixins) : []
const components = c.mixins && config.ssr.executeMixedinAsyncData ? Array.from(c.mixins) : []
components.push(c)
Promise.all(components.map(SubComponent => {
if (SubComponent.asyncData) {
Expand Down Expand Up @@ -234,12 +234,12 @@ EventBus.$on('user-after-loggedin', (receivedData) => {
})

EventBus.$on('user-before-logout', () => {
store.dispatch('user/logout')
store.dispatch('user/logout', { silent: false })
store.commit('ui/setSubmenu', {
depth: 0
})

const usersCollection = global.db.usersCollection
const usersCollection = global.$VS.db.usersCollection
usersCollection.setItem('current-token', '')

if (store.state.route.path === '/my-account') {
Expand Down
Loading