You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added Elastic Search Suggestions in the Search Response - @jpetar (#2853)
18
-
- npm packages with the prefix `vsf-` will be processed by webpack during build, this also works for scoped packages i.e. `@example/vsf-` - @zimme (#2271, #2395)
19
18
- Added back to top functionality - @vishal-7037 (#2866)
20
19
21
20
### Fixed
@@ -107,7 +106,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
107
106
- Offline orders with out of stock products don't stack anymore and get canceled after going back to online - @lukeromanowicz (#2740)
108
107
- Build ServiceWorker on Docker - @patzick (#2793)
109
108
- Product image load after comming back to online - @patzick (#2573)
110
-
- Insufficent validation for city field in checkout address - @lromanowicz (#2653)
109
+
- Insufficent validation for city field in checkout address - @lromanowicz (#2653)
111
110
- Incorrect hover activity on the 'filter by categories' in the search view on mobile - @idodidodi (#2783)
112
111
- Unit tests written in JavaScript now support async/await functions and dynamic import - @michaelKurowski, @lukeromanowicz (#2851)
Copy file name to clipboardExpand all lines: docs/guide/modules/introduction.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,10 @@
16
16
-[Adding new features as VS modules](#adding-new-features-as-vs-modules)
17
17
-[Extending and overriding Vue Storefront modules](#extending-and-overriding-vue-storefront-modules)
18
18
-[Creating third party modules](#Creating-3rd-party-modules)
19
-
19
+
20
20
# What are VS modules?
21
21
22
-
You can think about each module as a one, independent feature available in Vue Storefront with all it's logic and dependencys inside. This 'one feature' however is a common denominator that links all the features inside. For example common denominator for adding product to the cart, receiving list of items that are in a cart or applying a cart coupon is obviously a `cart` and `cart` is not a feature of anything bigger than itself (it's common denominator is a shop) so it should be a module. Wishlist, Reviews or Newsletter are also a good examples of modules as we intuitively think about them as a standalone features.
22
+
You can think about each module as a one, independent feature available in Vue Storefront with all it's logic and dependencys inside. This 'one feature' however is a common denominator that links all the features inside. For example common denominator for adding product to the cart, receiving list of items that are in a cart or applying a cart coupon is obviously a `cart` and `cart` is not a feature of anything bigger than itself (it's common denominator is a shop) so it should be a module. Wishlist, Reviews or Newsletter are also a good examples of modules as we intuitively think about them as a standalone features.
23
23
24
24
# Motivation
25
25
@@ -102,7 +102,7 @@ Entry point for vue-router. You can provide additional routes and [navigation gu
102
102
103
103
Function that'll be called before registering the module both on server and client side. You have access to VSF object here.
104
104
105
-
The `VSF` object is an instance of your Vue Storefront shop. It contains following properties
105
+
The `VSF` object is an instance of your Vue Storefront shop. It contains following properties
106
106
````js
107
107
Vue?: VueConstructor,
108
108
config?:Object,
@@ -113,7 +113,7 @@ The `VSF` object is an instance of your Vue Storefront shop. It contains followi
113
113
114
114
Function that'll be called after registering the module both on server and client side. You have access to VSF object here.
115
115
116
-
The `VSF` object is an instance of your Vue Storefront shop. It contains following properties
116
+
The `VSF` object is an instance of your Vue Storefront shop. It contains following properties
If you want to create third party module just copy the `src/modules/module-template` raw code to your repo. Don't use any transpilation and build tools since it prevents proper tree shaking and optimization. Building is handled by Vue Storefront build tools. Package name needs to start with `vsf-` prefix to be included into Vue Storefront build process. Scoped package names also work i.e. `@example/vsf-`
280
+
If you want to create third party module just copy the `src/modules/module-template` raw code to your repo. Don't use any transpilation and build tools since it prevents proper tree shaking and optimization. Building is handled by Vue Storefront build tools. Package name needs to start with `vsf-` prefix to be included into Vue Storefront build process.
0 commit comments