-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsunrise.config.js
More file actions
163 lines (162 loc) · 3.39 KB
/
sunrise.config.js
File metadata and controls
163 lines (162 loc) · 3.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// eslint-disable-next-line no-console
console.log("using host:", process.env.VUE_APP_CT_API_HOST);
let localConfig = {};
if(process.env.VUE_APP_LOCAL_SUNRISE_CONFIG){
localConfig = require(process.env.VUE_APP_LOCAL_SUNRISE_CONFIG).default;
}
export default {
ct: {
auth: {
host:
process.env.VUE_APP_CT_AUTH_HOST ||
"https://auth.europe-west1.gcp.commercetools.com",
projectKey:
process.env.VUE_APP_CT_PROJECT_KEY || "sunrise-spa",
credentials: {
clientId:
process.env.VUE_APP_CT_CLIENT_ID ||
"jFVHj0-tO-THQt9evnGTJ2fD",
clientSecret:
process.env.VUE_APP_CT_CLIENT_SECRET ||
"eUQgmtanysDpYxlOePOhcFklrwa5X8Sj",
},
scopes: [
process.env.VUE_APP_CT_SCOPE ||
"manage_my_profile:sunrise-spa create_anonymous_token:sunrise-spa" +
" manage_my_payments:sunrise-spa view_products:sunrise-spa manage_my_orders:sunrise-spa" +
" manage_my_shopping_lists:sunrise-spa",
],
},
api:
process.env.VUE_APP_CT_API_HOST ||
"https://api.europe-west1.gcp.commercetools.com",
},
languages: {
en: "English",
de: "Deutsch",
},
countries: {
DE: "Deutschland",
US: "United States",
},
formats: {
number: {
DE: {
currency: {
style: "currency",
currency: "EUR",
currencyDisplay: "symbol",
},
},
US: {
currency: {
style: "currency",
currency: "USD",
},
},
},
datetime: {
US: {
short: {
year: "numeric",
month: "short",
day: "numeric",
},
},
DE: {
short: {
year: "numeric",
month: "short",
day: "numeric",
},
},
},
},
categories: {
salesExternalId: "6",
},
facetSearches: [
{
name: "size",
type: "text",
label: {
it: "Size",
de: "Größe",
en: "Size",
},
},
{
name: "masterUnitSize",
type: "text",
component: "masterUnitSize",
label: {
it: "master Unit Size",
de: "Designer",
en: "master Unit Size",
},
},
{
name: "shelfLife",
type: "text",
component: "shelfLife",
label: {
it: "shelfLife",
de: "Designer",
en: "shelfLife",
},
},
],
detailAttributes: [
{
name:"gtin",
label: {
it: "GTIN",
de: "GTIN",
en: "GTIN",
},
},
{
name:"size",
label: {
it: "Serving Size",
de: "Grösse",
en: "Serving Size",
},
},
{
name:"shelfLife",
label: {
it: "Shelf Life (Frozen)",
de: "Grösse",
en: "Shelf Life (Frozen)",
},
},
{
name:"masterUnitSize",
label: {
it: "Master Unit Size",
de: "Stil",
en: "Master Unit Size",
},
},
{
name:"netCaseWeight",
label: {
it: "Net Case Weight",
de: "Zielgruppe",
en: "Net Case Weight",
},
},
{
name:"grossCaseWeight",
label: {
it: "Gross Case Weight",
de: "Herstellernummer",
en: "Gross Case Weight",
},
},
],
variantSelector: ["color", "size"],
variantInProductName: ["size"],
...localConfig
};