@riosst100/pwa-marketplace 1.8.1 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/i18n/id_ID.json +508 -508
- package/package.json +1 -2
- package/src/components/CustomSubCategory/subCategory.js +0 -14
- package/src/components/FilterTop/FilterBlockList/filterTopItemGroup.module.css +1 -1
- package/src/components/FilterTop/filterTop.js +2 -2
- package/src/components/FilterTop/filterTop.module.css +1 -1
- package/src/components/FilterTopBackup/CustomFilters/customFilter.js +83 -83
- package/src/components/FilterTopBackup/CustomFilters/customFilter.module.css +21 -21
- package/src/components/FilterTopBackup/CustomFilters/customFilters.js +131 -131
- package/src/components/FilterTopBackup/CustomFilters/customFilters.module.css +22 -22
- package/src/components/FilterTopBackup/CustomFilters/index.js +1 -1
- package/src/components/FilterTopBackup/filterTop.js +14 -14
- package/src/components/FilterTopBackup/filterTop.module.css +22 -22
- package/src/components/FilterTopBackup/filterTop.shimmer.js +24 -24
- package/src/components/FilterTopBackup/index.js +2 -2
- package/src/components/Header/websiteSwitcher.shimmer.js +6 -6
- package/src/components/Header/websiteSwitcherItem.js +47 -47
- package/src/components/Header/websiteSwitcherItem.module.css +20 -20
- package/src/components/PhoneTextInput/index.js +1 -1
- package/src/components/PhoneTextInput/phoneTextInput.js +62 -62
- package/src/components/ProductListTab/index.js +4 -4
- package/src/components/ProductListTab/productListTab.module.css +64 -64
- package/src/components/ProductListTab/productListTab.shimmer.js +24 -24
- package/src/components/SellerCountry/index.js +1 -1
- package/src/components/SellerCountry/sellerCountry.js +71 -71
- package/src/components/SellerCountry/sellerCountry.module.css +3 -3
- package/src/components/ShopByCategory/index.js +2 -2
- package/src/components/ShopByCategory/shopByCategory.js +69 -69
- package/src/components/ShopByCategory/shopByCategory.module.css +58 -58
- package/src/components/ShopByCategory/shopByCategory.shimmer.js +24 -24
- package/src/components/SubCategory/subCategory.js +1 -1
- package/src/components/WebsiteSwitcher/websiteSwitcher.shimmer.js +6 -6
- package/src/components/WebsiteSwitcher/websiteSwitcherItem.js +47 -47
- package/src/components/WebsiteSwitcher/websiteSwitcherItem.module.css +20 -20
- package/src/overwrites/peregrine/lib/talons/MegaMenu/megaMenu.gql.js +96 -96
- package/src/overwrites/peregrine/lib/talons/MegaMenu/useMegaMenu.js +199 -199
- package/src/overwrites/peregrine/lib/talons/MegaMenu/useMegaMenuItem.js +66 -66
- package/src/overwrites/peregrine/lib/talons/MegaMenu/useSubMenu.js +20 -20
- package/src/overwrites/peregrine/lib/talons/ProductFullDetail/useProductFullDetail.js +642 -642
- package/src/overwrites/peregrine/lib/talons/RootComponents/Category/category.gql.js +49 -49
- package/src/overwrites/peregrine/lib/talons/RootComponents/Category/useCategory.js +227 -227
- package/src/overwrites/peregrine/lib/talons/RootComponents/Product/product.gql.js +31 -31
- package/src/overwrites/peregrine/lib/talons/RootComponents/Product/productDetailFragment.gql.js +235 -235
- package/src/overwrites/venia-ui/lib/components/Header/cartTrigger.module.css +47 -47
- package/src/overwrites/venia-ui/lib/components/RadioGroup/radio.js +60 -60
- package/src/overwrites/venia-ui/lib/components/RadioGroup/radio.module.css +70 -70
- package/src/talons/AttributesBlock/attributesBlock.gql.js +15 -15
- package/src/talons/CustomFilters/customFilters.gql.js +45 -45
- package/src/talons/CustomFilters/useCustomFilters.js +5 -2
- package/src/talons/FilterTop/filterTop.gql.js +45 -45
- package/src/talons/FilterTop/index.js +1 -1
- package/src/talons/FilterTop/useFilterTop.js +5 -4
- package/src/talons/Header/websiteSwitcher.gql.js +45 -45
- package/src/talons/SellerReview/sellerReview.gql.js +53 -53
- package/src/talons/ShopByCategory/index.js +1 -1
- package/src/talons/ShopByCategory/shopByCategory.gql.js +38 -38
- package/src/talons/ShopByCategory/useShopByCategory.js +69 -69
- package/src/talons/SubCategory/subCategory.gql.js +15 -15
- package/src/talons/SubCategory/useSubCategory.js +3 -3
- package/src/talons/WebsiteSwitcher/websiteSwitcher.gql.js +45 -45
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
.root {
|
|
2
|
-
composes: gap-1 from global;
|
|
3
|
-
composes: grid from global;
|
|
4
|
-
composes: grid-flow-col from global;
|
|
5
|
-
composes: items-center from global;
|
|
6
|
-
composes: justify-items-center from global;
|
|
7
|
-
composes: leading-normal from global;
|
|
8
|
-
composes: m-0 from global;
|
|
9
|
-
composes: text-colorDefault from global;
|
|
10
|
-
grid-template-areas: 'input label';
|
|
11
|
-
grid-template-columns: min-content 1fr;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.input {
|
|
15
|
-
composes: appearance-none from global;
|
|
16
|
-
composes: bg-clip-content from global;
|
|
17
|
-
composes: bg-transparent from global;
|
|
18
|
-
composes: border-8 from global;
|
|
19
|
-
composes: border-solid from global;
|
|
20
|
-
composes: border-transparent from global;
|
|
21
|
-
composes: h-[1.5rem] from global;
|
|
22
|
-
composes: m-0 from global;
|
|
23
|
-
composes: rounded-full from global;
|
|
24
|
-
composes: w-[1.5rem] from global;
|
|
25
|
-
composes: z-foreground from global;
|
|
26
|
-
grid-area: input;
|
|
27
|
-
|
|
28
|
-
composes: active_outline-none from global;
|
|
29
|
-
/* composes: active_shadow-radioActive from global; */
|
|
30
|
-
|
|
31
|
-
composes: checked_bg-brand-dark from global;
|
|
32
|
-
|
|
33
|
-
composes: focus_outline-none from global;
|
|
34
|
-
/* composes: focus_shadow-radioFocus from global; */
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.icon {
|
|
38
|
-
composes: h-[14px] from global;
|
|
39
|
-
composes: w-[14px] from global;
|
|
40
|
-
composes: z-surface from global;
|
|
41
|
-
grid-area: input;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* TODO @TW: cannot compose */
|
|
45
|
-
.icon svg {
|
|
46
|
-
/* composes: stroke-gray-600 from global; */
|
|
47
|
-
stroke: rgb(var(--venia-global-color-gray-600));
|
|
48
|
-
width: 14px;
|
|
49
|
-
height: 14px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.label {
|
|
53
|
-
composes: justify-self-start from global;
|
|
54
|
-
composes: text-base from global;
|
|
55
|
-
grid-area: label;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* TODO @TW: cannot compose */
|
|
59
|
-
.input:checked + .icon svg {
|
|
60
|
-
/* composes: stroke-brand-base from global; */
|
|
61
|
-
stroke: rgb(var(--venia-brand-color-1-700));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.input_shimmer {
|
|
65
|
-
composes: h-[14px] from global;
|
|
66
|
-
composes: m-0 from global;
|
|
67
|
-
composes: rounded-full from global;
|
|
68
|
-
composes: w-[14px] from global;
|
|
69
|
-
composes: z-foreground from global;
|
|
70
|
-
}
|
|
1
|
+
.root {
|
|
2
|
+
composes: gap-1 from global;
|
|
3
|
+
composes: grid from global;
|
|
4
|
+
composes: grid-flow-col from global;
|
|
5
|
+
composes: items-center from global;
|
|
6
|
+
composes: justify-items-center from global;
|
|
7
|
+
composes: leading-normal from global;
|
|
8
|
+
composes: m-0 from global;
|
|
9
|
+
composes: text-colorDefault from global;
|
|
10
|
+
grid-template-areas: 'input label';
|
|
11
|
+
grid-template-columns: min-content 1fr;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.input {
|
|
15
|
+
composes: appearance-none from global;
|
|
16
|
+
composes: bg-clip-content from global;
|
|
17
|
+
composes: bg-transparent from global;
|
|
18
|
+
composes: border-8 from global;
|
|
19
|
+
composes: border-solid from global;
|
|
20
|
+
composes: border-transparent from global;
|
|
21
|
+
composes: h-[1.5rem] from global;
|
|
22
|
+
composes: m-0 from global;
|
|
23
|
+
composes: rounded-full from global;
|
|
24
|
+
composes: w-[1.5rem] from global;
|
|
25
|
+
composes: z-foreground from global;
|
|
26
|
+
grid-area: input;
|
|
27
|
+
|
|
28
|
+
composes: active_outline-none from global;
|
|
29
|
+
/* composes: active_shadow-radioActive from global; */
|
|
30
|
+
|
|
31
|
+
composes: checked_bg-brand-dark from global;
|
|
32
|
+
|
|
33
|
+
composes: focus_outline-none from global;
|
|
34
|
+
/* composes: focus_shadow-radioFocus from global; */
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.icon {
|
|
38
|
+
composes: h-[14px] from global;
|
|
39
|
+
composes: w-[14px] from global;
|
|
40
|
+
composes: z-surface from global;
|
|
41
|
+
grid-area: input;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* TODO @TW: cannot compose */
|
|
45
|
+
.icon svg {
|
|
46
|
+
/* composes: stroke-gray-600 from global; */
|
|
47
|
+
stroke: rgb(var(--venia-global-color-gray-600));
|
|
48
|
+
width: 14px;
|
|
49
|
+
height: 14px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.label {
|
|
53
|
+
composes: justify-self-start from global;
|
|
54
|
+
composes: text-base from global;
|
|
55
|
+
grid-area: label;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* TODO @TW: cannot compose */
|
|
59
|
+
.input:checked + .icon svg {
|
|
60
|
+
/* composes: stroke-brand-base from global; */
|
|
61
|
+
stroke: rgb(var(--venia-brand-color-1-700));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.input_shimmer {
|
|
65
|
+
composes: h-[14px] from global;
|
|
66
|
+
composes: m-0 from global;
|
|
67
|
+
composes: rounded-full from global;
|
|
68
|
+
composes: w-[14px] from global;
|
|
69
|
+
composes: z-foreground from global;
|
|
70
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { gql } from '@apollo/client';
|
|
2
|
-
|
|
3
|
-
export const GET_STORE_CONFIG_DATA = gql`
|
|
4
|
-
query GetStoreConfigForBreadcrumbs {
|
|
5
|
-
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
6
|
-
storeConfig {
|
|
7
|
-
store_code
|
|
8
|
-
category_url_suffix
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
getStoreConfigQuery: GET_STORE_CONFIG_DATA
|
|
15
|
-
};
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
|
|
3
|
+
export const GET_STORE_CONFIG_DATA = gql`
|
|
4
|
+
query GetStoreConfigForBreadcrumbs {
|
|
5
|
+
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
6
|
+
storeConfig {
|
|
7
|
+
store_code
|
|
8
|
+
category_url_suffix
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
getStoreConfigQuery: GET_STORE_CONFIG_DATA
|
|
15
|
+
};
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { gql } from '@apollo/client';
|
|
2
|
-
|
|
3
|
-
export const GET_CUSTOM_FILTERS = gql`
|
|
4
|
-
query GetCustomFilters($filters: ProductAttributeFilterInput!) {
|
|
5
|
-
customSubFilters(filters: $filters) {
|
|
6
|
-
label
|
|
7
|
-
count
|
|
8
|
-
attribute_code
|
|
9
|
-
options {
|
|
10
|
-
label
|
|
11
|
-
value
|
|
12
|
-
}
|
|
13
|
-
position
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
export const GET_FILTER_INPUTS = gql`
|
|
19
|
-
query GetFilterInputsForCategory {
|
|
20
|
-
__type(name: "ProductAttributeFilterInput") {
|
|
21
|
-
inputFields {
|
|
22
|
-
name
|
|
23
|
-
type {
|
|
24
|
-
name
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
`;
|
|
30
|
-
|
|
31
|
-
export const GET_STORE_CONFIG_DATA = gql`
|
|
32
|
-
query GetStoreConfigForBreadcrumbs {
|
|
33
|
-
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
34
|
-
storeConfig {
|
|
35
|
-
store_code
|
|
36
|
-
category_url_suffix
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
export default {
|
|
42
|
-
getFilterInputsQuery: GET_FILTER_INPUTS,
|
|
43
|
-
getCustomFilters: GET_CUSTOM_FILTERS,
|
|
44
|
-
getStoreConfigQuery: GET_STORE_CONFIG_DATA
|
|
45
|
-
};
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
|
|
3
|
+
export const GET_CUSTOM_FILTERS = gql`
|
|
4
|
+
query GetCustomFilters($filters: ProductAttributeFilterInput!) {
|
|
5
|
+
customSubFilters(filters: $filters) {
|
|
6
|
+
label
|
|
7
|
+
count
|
|
8
|
+
attribute_code
|
|
9
|
+
options {
|
|
10
|
+
label
|
|
11
|
+
value
|
|
12
|
+
}
|
|
13
|
+
position
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
export const GET_FILTER_INPUTS = gql`
|
|
19
|
+
query GetFilterInputsForCategory {
|
|
20
|
+
__type(name: "ProductAttributeFilterInput") {
|
|
21
|
+
inputFields {
|
|
22
|
+
name
|
|
23
|
+
type {
|
|
24
|
+
name
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
export const GET_STORE_CONFIG_DATA = gql`
|
|
32
|
+
query GetStoreConfigForBreadcrumbs {
|
|
33
|
+
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
34
|
+
storeConfig {
|
|
35
|
+
store_code
|
|
36
|
+
category_url_suffix
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
export default {
|
|
42
|
+
getFilterInputsQuery: GET_FILTER_INPUTS,
|
|
43
|
+
getCustomFilters: GET_CUSTOM_FILTERS,
|
|
44
|
+
getStoreConfigQuery: GET_STORE_CONFIG_DATA
|
|
45
|
+
};
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from '@magento/peregrine/lib/talons/FilterModal/helpers';
|
|
20
20
|
|
|
21
21
|
export const useCustomFilters = props => {
|
|
22
|
-
const { filters } = props;
|
|
22
|
+
const { filters, category } = props;
|
|
23
23
|
|
|
24
24
|
const [isApplying, setIsApplying] = useState(false);
|
|
25
25
|
const [filterState, filterApi] = useFilterState();
|
|
@@ -68,6 +68,8 @@ export const useCustomFilters = props => {
|
|
|
68
68
|
return typeMap;
|
|
69
69
|
}, [introspectionData]);
|
|
70
70
|
|
|
71
|
+
console.log(category)
|
|
72
|
+
|
|
71
73
|
useEffect(() => {
|
|
72
74
|
|
|
73
75
|
if (!filterTypeMap.size) {
|
|
@@ -94,7 +96,8 @@ export const useCustomFilters = props => {
|
|
|
94
96
|
}, [
|
|
95
97
|
runQuery,
|
|
96
98
|
filterTypeMap,
|
|
97
|
-
search
|
|
99
|
+
search,
|
|
100
|
+
category
|
|
98
101
|
]);
|
|
99
102
|
|
|
100
103
|
const customFiltersData = customFiltersLoading && !data ? null : (data ? data.customSubFilters : null);
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { gql } from '@apollo/client';
|
|
2
|
-
|
|
3
|
-
export const GET_CUSTOM_FILTERS = gql`
|
|
4
|
-
query GetCustomFilters($
|
|
5
|
-
customSubFilters(
|
|
6
|
-
label
|
|
7
|
-
count
|
|
8
|
-
attribute_code
|
|
9
|
-
options {
|
|
10
|
-
label
|
|
11
|
-
value
|
|
12
|
-
}
|
|
13
|
-
position
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
17
|
-
|
|
18
|
-
export const GET_FILTER_INPUTS = gql`
|
|
19
|
-
query GetFilterInputsForCategory {
|
|
20
|
-
__type(name: "ProductAttributeFilterInput") {
|
|
21
|
-
inputFields {
|
|
22
|
-
name
|
|
23
|
-
type {
|
|
24
|
-
name
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
`;
|
|
30
|
-
|
|
31
|
-
export const GET_STORE_CONFIG_DATA = gql`
|
|
32
|
-
query GetStoreConfigForBreadcrumbs {
|
|
33
|
-
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
34
|
-
storeConfig {
|
|
35
|
-
store_code
|
|
36
|
-
category_url_suffix
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
export default {
|
|
42
|
-
getFilterInputsQuery: GET_FILTER_INPUTS,
|
|
43
|
-
getCustomFilters: GET_CUSTOM_FILTERS,
|
|
44
|
-
getStoreConfigQuery: GET_STORE_CONFIG_DATA
|
|
45
|
-
};
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
|
|
3
|
+
export const GET_CUSTOM_FILTERS = gql`
|
|
4
|
+
query GetCustomFilters($category: String!, $filters: ProductAttributeFilterInput!) {
|
|
5
|
+
customSubFilters(category: $category, filters: $filters) {
|
|
6
|
+
label
|
|
7
|
+
count
|
|
8
|
+
attribute_code
|
|
9
|
+
options {
|
|
10
|
+
label
|
|
11
|
+
value
|
|
12
|
+
}
|
|
13
|
+
position
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
export const GET_FILTER_INPUTS = gql`
|
|
19
|
+
query GetFilterInputsForCategory {
|
|
20
|
+
__type(name: "ProductAttributeFilterInput") {
|
|
21
|
+
inputFields {
|
|
22
|
+
name
|
|
23
|
+
type {
|
|
24
|
+
name
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
export const GET_STORE_CONFIG_DATA = gql`
|
|
32
|
+
query GetStoreConfigForBreadcrumbs {
|
|
33
|
+
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
34
|
+
storeConfig {
|
|
35
|
+
store_code
|
|
36
|
+
category_url_suffix
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
export default {
|
|
42
|
+
getFilterInputsQuery: GET_FILTER_INPUTS,
|
|
43
|
+
getCustomFilters: GET_CUSTOM_FILTERS,
|
|
44
|
+
getStoreConfigQuery: GET_STORE_CONFIG_DATA
|
|
45
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { useFilterTop } from './useFilterTop';
|
|
1
|
+
export { useFilterTop } from './useFilterTop';
|
|
@@ -21,7 +21,7 @@ import DEFAULT_OPERATIONS from './filterTop.gql';
|
|
|
21
21
|
const DRAWER_NAME = 'filter';
|
|
22
22
|
|
|
23
23
|
export const useFilterTop = props => {
|
|
24
|
-
const { filters } = props;
|
|
24
|
+
const { filters, category } = props;
|
|
25
25
|
|
|
26
26
|
const operations = mergeOperations(DEFAULT_OPERATIONS, props.operations);
|
|
27
27
|
const { getFilterInputsQuery, getCustomFilters } = operations;
|
|
@@ -42,7 +42,7 @@ export const useFilterTop = props => {
|
|
|
42
42
|
|
|
43
43
|
const pathnameArr = pathname.split('/');
|
|
44
44
|
|
|
45
|
-
const categoryUrlKey = pathnameArr[pathnameArr.length - 1].replace('.html','');
|
|
45
|
+
// const categoryUrlKey = pathnameArr[pathnameArr.length - 1].replace('.html','');
|
|
46
46
|
|
|
47
47
|
const { data: introspectionData } = useQuery(getFilterInputsQuery);
|
|
48
48
|
|
|
@@ -77,13 +77,14 @@ export const useFilterTop = props => {
|
|
|
77
77
|
runQuery({
|
|
78
78
|
variables: {
|
|
79
79
|
filters: newFilters,
|
|
80
|
-
|
|
80
|
+
category: category?.url_path
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
}, [
|
|
84
84
|
runQuery,
|
|
85
85
|
filterTypeMap,
|
|
86
|
-
search
|
|
86
|
+
search,
|
|
87
|
+
category
|
|
87
88
|
]);
|
|
88
89
|
|
|
89
90
|
const attributeCodes = useMemo(
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { gql } from '@apollo/client';
|
|
2
|
-
|
|
3
|
-
export const GET_STORE_CONFIG_DATA = gql`
|
|
4
|
-
query getStoreConfigData {
|
|
5
|
-
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
6
|
-
storeConfig {
|
|
7
|
-
store_code
|
|
8
|
-
store_name
|
|
9
|
-
store_group_name
|
|
10
|
-
website_name
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
|
|
15
|
-
export const GET_ROUTE_DATA = gql`
|
|
16
|
-
query getRouteData($url: String!) {
|
|
17
|
-
route(url: $url) {
|
|
18
|
-
relative_url
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
|
|
23
|
-
export const GET_AVAILABLE_WEBSITES_DATA = gql`
|
|
24
|
-
query availableStoresByUserIp {
|
|
25
|
-
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
26
|
-
availableStoresByUserIp {
|
|
27
|
-
default_display_currency_code
|
|
28
|
-
locale
|
|
29
|
-
secure_base_media_url
|
|
30
|
-
store_code
|
|
31
|
-
store_group_code
|
|
32
|
-
store_group_name
|
|
33
|
-
store_name
|
|
34
|
-
store_sort_order
|
|
35
|
-
website_name
|
|
36
|
-
website_code
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
export default {
|
|
42
|
-
getStoreConfigData: GET_STORE_CONFIG_DATA,
|
|
43
|
-
getRouteData: GET_ROUTE_DATA,
|
|
44
|
-
getAvailableWebsitesData: GET_AVAILABLE_WEBSITES_DATA
|
|
45
|
-
};
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
|
|
3
|
+
export const GET_STORE_CONFIG_DATA = gql`
|
|
4
|
+
query getStoreConfigData {
|
|
5
|
+
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
6
|
+
storeConfig {
|
|
7
|
+
store_code
|
|
8
|
+
store_name
|
|
9
|
+
store_group_name
|
|
10
|
+
website_name
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
export const GET_ROUTE_DATA = gql`
|
|
16
|
+
query getRouteData($url: String!) {
|
|
17
|
+
route(url: $url) {
|
|
18
|
+
relative_url
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
export const GET_AVAILABLE_WEBSITES_DATA = gql`
|
|
24
|
+
query availableStoresByUserIp {
|
|
25
|
+
# eslint-disable-next-line @graphql-eslint/require-id-when-available
|
|
26
|
+
availableStoresByUserIp {
|
|
27
|
+
default_display_currency_code
|
|
28
|
+
locale
|
|
29
|
+
secure_base_media_url
|
|
30
|
+
store_code
|
|
31
|
+
store_group_code
|
|
32
|
+
store_group_name
|
|
33
|
+
store_name
|
|
34
|
+
store_sort_order
|
|
35
|
+
website_name
|
|
36
|
+
website_code
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
export default {
|
|
42
|
+
getStoreConfigData: GET_STORE_CONFIG_DATA,
|
|
43
|
+
getRouteData: GET_ROUTE_DATA,
|
|
44
|
+
getAvailableWebsitesData: GET_AVAILABLE_WEBSITES_DATA
|
|
45
|
+
};
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { gql } from '@apollo/client';
|
|
2
|
-
|
|
3
|
-
export const GET_SELLER_REVIEW_DATA = gql`
|
|
4
|
-
query getSellerReviewData($sellerUrl: String!, $filter: SellerRatingFilterInput, $pageSize: Int, $currentPage: Int, $sort: SellerRatingSortInput) {
|
|
5
|
-
sellerRatings(
|
|
6
|
-
seller_url: $sellerUrl
|
|
7
|
-
filter: $filter
|
|
8
|
-
pageSize: $pageSize
|
|
9
|
-
currentPage: $currentPage
|
|
10
|
-
sort: $sort
|
|
11
|
-
) {
|
|
12
|
-
total_count
|
|
13
|
-
page_info {
|
|
14
|
-
total_pages
|
|
15
|
-
page_size
|
|
16
|
-
current_page
|
|
17
|
-
}
|
|
18
|
-
items {
|
|
19
|
-
rating_id
|
|
20
|
-
seller_id
|
|
21
|
-
customer_id
|
|
22
|
-
rate1
|
|
23
|
-
rate2
|
|
24
|
-
rate3
|
|
25
|
-
rate4
|
|
26
|
-
rate5
|
|
27
|
-
rating
|
|
28
|
-
email
|
|
29
|
-
title
|
|
30
|
-
status
|
|
31
|
-
detail
|
|
32
|
-
nickname
|
|
33
|
-
created_at
|
|
34
|
-
verified_buyer
|
|
35
|
-
is_recommended
|
|
36
|
-
is_hidden
|
|
37
|
-
answer
|
|
38
|
-
admin_note
|
|
39
|
-
like_about
|
|
40
|
-
not_like_about
|
|
41
|
-
guest_email
|
|
42
|
-
plus_review
|
|
43
|
-
minus_review
|
|
44
|
-
report_abuse
|
|
45
|
-
country
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
`;
|
|
50
|
-
|
|
51
|
-
export default {
|
|
52
|
-
getSellerReviewQuery: GET_SELLER_REVIEW_DATA
|
|
53
|
-
};
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
|
|
3
|
+
export const GET_SELLER_REVIEW_DATA = gql`
|
|
4
|
+
query getSellerReviewData($sellerUrl: String!, $filter: SellerRatingFilterInput, $pageSize: Int, $currentPage: Int, $sort: SellerRatingSortInput) {
|
|
5
|
+
sellerRatings(
|
|
6
|
+
seller_url: $sellerUrl
|
|
7
|
+
filter: $filter
|
|
8
|
+
pageSize: $pageSize
|
|
9
|
+
currentPage: $currentPage
|
|
10
|
+
sort: $sort
|
|
11
|
+
) {
|
|
12
|
+
total_count
|
|
13
|
+
page_info {
|
|
14
|
+
total_pages
|
|
15
|
+
page_size
|
|
16
|
+
current_page
|
|
17
|
+
}
|
|
18
|
+
items {
|
|
19
|
+
rating_id
|
|
20
|
+
seller_id
|
|
21
|
+
customer_id
|
|
22
|
+
rate1
|
|
23
|
+
rate2
|
|
24
|
+
rate3
|
|
25
|
+
rate4
|
|
26
|
+
rate5
|
|
27
|
+
rating
|
|
28
|
+
email
|
|
29
|
+
title
|
|
30
|
+
status
|
|
31
|
+
detail
|
|
32
|
+
nickname
|
|
33
|
+
created_at
|
|
34
|
+
verified_buyer
|
|
35
|
+
is_recommended
|
|
36
|
+
is_hidden
|
|
37
|
+
answer
|
|
38
|
+
admin_note
|
|
39
|
+
like_about
|
|
40
|
+
not_like_about
|
|
41
|
+
guest_email
|
|
42
|
+
plus_review
|
|
43
|
+
minus_review
|
|
44
|
+
report_abuse
|
|
45
|
+
country
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
export default {
|
|
52
|
+
getSellerReviewQuery: GET_SELLER_REVIEW_DATA
|
|
53
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { useShopByCategory } from './useShopByCategory';
|
|
1
|
+
export { useShopByCategory } from './useShopByCategory';
|