Skip to content

Commit 2bd0d0e

Browse files
author
Marcin Kwiatkowski
committed
Merge branch 'main' into release/1.0.0-rc.9
2 parents 1369800 + 42af0d4 commit 2bd0d0e

File tree

12 files changed

+76
-21
lines changed

12 files changed

+76
-21
lines changed

docs/.vuepress/config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const GTM_TAG = 'GTM-WMDC3CP';
2+
13
module.exports = {
24
title: 'Vue Storefront 2 for Magento',
35
base: '/',
21.5 KB
Loading

docs/guide/api-client/reference.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Api methods
2+
3+
## cmsBlocks
4+
5+
The cmsBlocks API method allows loading information about CMS blocks.
6+
7+
[The cmsBlocks API method reference](/api-reference/magento-api.cmsblocks.html)
8+
9+
## cmsPage
10+
11+
The cmsPage API method allows loading information about CMS page.
12+
13+
[The cmsPage API method reference](/api-reference/magento-api.cmspage.html)

docs/guide/override-queries.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Override queries
1+
# Override default queries
22

33
To override one or multiple queries without creating a custom composable for each usage, you can override the defaults ones with the `customQueries` attribute in the `middleware.config.js`file.
44

@@ -72,8 +72,9 @@ module.exports = {
7272
},
7373
};
7474

75+
### Important notes
7576

76-
```
77+
**Only** attributes presented on `ProductInterface` are accessible via GraphQL without any additional modification on the Magento side.
7778

7879
**Important**
7980

packages/api-client/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,3 @@ Thanks go to these wonderful people 🙌:
146146
<!-- ALL-CONTRIBUTORS-LIST:END -->
147147
148148
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
149-

packages/composables/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,3 @@ Thanks go to these wonderful people 🙌:
146146
<!-- ALL-CONTRIBUTORS-LIST:END -->
147147
148148
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
149-
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const PerPageOptions = [10, 20, 50];
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
export enum SortingOptionsValuesEnum {
2+
DEFAULT = '',
3+
NAME_ASC = 'name_ASC',
4+
NAME_DESC = 'name_DESC',
5+
PRICE_ASC = 'price_ASC',
6+
PRICE_DESC = 'price_DESC',
7+
}
8+
9+
export interface SortingOptionsInterface {
10+
label: string,
11+
value: SortingOptionsValuesEnum
12+
}
13+
14+
export const SortingOptions: SortingOptionsInterface[] = [
15+
{
16+
label: 'Sort: Default',
17+
value: SortingOptionsValuesEnum.DEFAULT,
18+
},
19+
{
20+
label: 'Sort: Name A-Z',
21+
value: SortingOptionsValuesEnum.NAME_ASC,
22+
},
23+
{
24+
label: 'Sort: Name Z-A',
25+
value: SortingOptionsValuesEnum.NAME_DESC,
26+
},
27+
{
28+
label: 'Sort: Price from low to high',
29+
value: SortingOptionsValuesEnum.PRICE_ASC,
30+
},
31+
{
32+
label: 'Sort: Price from high to low',
33+
value: SortingOptionsValuesEnum.PRICE_DESC,
34+
},
35+
];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const perPageOptions = [10, 20, 50];
1+
export const PerPageOptions = [10, 20, 50];

packages/theme/modules/catalog/category/composables/useFacet/sortingOptions.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
export interface SortingModel {
2-
selected: string,
3-
options: SortingOption[]
4-
}
5-
6-
export interface SortingOption {
7-
label: string,
8-
value: SortingOptionsValuesEnum
9-
}
10-
111
export enum SortingOptionsValuesEnum {
122
DEFAULT = '',
133
NAME_ASC = 'name_ASC',
@@ -16,7 +6,12 @@ export enum SortingOptionsValuesEnum {
166
PRICE_DESC = 'price_DESC',
177
}
188

19-
export const sortingOptions: SortingOption[] = [
9+
export interface SortingOptionsInterface {
10+
label: string,
11+
value: SortingOptionsValuesEnum
12+
}
13+
14+
export const SortingOptions: SortingOptionsInterface[] = [
2015
{
2116
label: 'Sort: Default',
2217
value: SortingOptionsValuesEnum.DEFAULT,

0 commit comments

Comments
 (0)