shoplazza-cli 0.0.1
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/.editorconfig +28 -0
- package/.prettierrc +9 -0
- package/LICENSE +21 -0
- package/README.md +208 -0
- package/bin/shoplazza +117 -0
- package/fixtures/assets/blog.scss +74 -0
- package/fixtures/assets/cart_modal.scss +450 -0
- package/fixtures/assets/collection_detail.js +234 -0
- package/fixtures/assets/collection_detail.scss +345 -0
- package/fixtures/assets/collection_list.scss +11 -0
- package/fixtures/assets/collection_slider.scss +169 -0
- package/fixtures/assets/feature_columns.scss +26 -0
- package/fixtures/assets/feature_product.scss +109 -0
- package/fixtures/assets/footer.js +58 -0
- package/fixtures/assets/footer.scss +337 -0
- package/fixtures/assets/four_images.scss +29 -0
- package/fixtures/assets/gallery.scss +55 -0
- package/fixtures/assets/header.js +178 -0
- package/fixtures/assets/header.scss +929 -0
- package/fixtures/assets/image_text.scss +72 -0
- package/fixtures/assets/logo_bar.scss +11 -0
- package/fixtures/assets/newsletter.scss +90 -0
- package/fixtures/assets/not_found.scss +39 -0
- package/fixtures/assets/page_detail.scss +16 -0
- package/fixtures/assets/pagination.scss +150 -0
- package/fixtures/assets/postcss.config.js +6 -0
- package/fixtures/assets/product_description.scss +88 -0
- package/fixtures/assets/product_detail.js +634 -0
- package/fixtures/assets/product_detail.scss +1106 -0
- package/fixtures/assets/relative_product.scss +45 -0
- package/fixtures/assets/reviews.scss +70 -0
- package/fixtures/assets/rich_text.scss +71 -0
- package/fixtures/assets/search.js +87 -0
- package/fixtures/assets/search.scss +67 -0
- package/fixtures/assets/slide.scss +51 -0
- package/fixtures/assets/slider.scss +141 -0
- package/fixtures/assets/theme.css +976 -0
- package/fixtures/assets/theme.scss +1100 -0
- package/fixtures/assets/three_images.scss +20 -0
- package/fixtures/assets/tools.scss +23 -0
- package/fixtures/assets/two_images.scss +24 -0
- package/fixtures/assets/video.scss +45 -0
- package/fixtures/assets/video_text.scss +63 -0
- package/fixtures/config/settings_data.json +107 -0
- package/fixtures/config/settings_schema.json +690 -0
- package/fixtures/layout/theme.liquid +76 -0
- package/fixtures/locales/ar-SA.json +212 -0
- package/fixtures/locales/de-DE.json +290 -0
- package/fixtures/locales/en-US.json +290 -0
- package/fixtures/locales/es-ES.json +290 -0
- package/fixtures/locales/fr-FR.json +290 -0
- package/fixtures/locales/id-ID.json +212 -0
- package/fixtures/locales/it-IT.json +212 -0
- package/fixtures/locales/ja-JP.json +289 -0
- package/fixtures/locales/ko-KR.json +290 -0
- package/fixtures/locales/nl-NL.json +290 -0
- package/fixtures/locales/pl-PL.json +290 -0
- package/fixtures/locales/pt-PT.json +212 -0
- package/fixtures/locales/ru-RU.json +212 -0
- package/fixtures/locales/th-TH.json +212 -0
- package/fixtures/locales/zh-CN.json +290 -0
- package/fixtures/locales/zh-TW.json +290 -0
- package/fixtures/sections/apps.liquid +47 -0
- package/fixtures/sections/blog.liquid +137 -0
- package/fixtures/sections/collection_desc.liquid +34 -0
- package/fixtures/sections/collection_detail.liquid +436 -0
- package/fixtures/sections/collection_image.liquid +104 -0
- package/fixtures/sections/collection_list.liquid +161 -0
- package/fixtures/sections/collection_name.liquid +34 -0
- package/fixtures/sections/collection_slider.liquid +330 -0
- package/fixtures/sections/feature_columns.liquid +275 -0
- package/fixtures/sections/feature_product.liquid +227 -0
- package/fixtures/sections/footer.liquid +488 -0
- package/fixtures/sections/four_images.liquid +160 -0
- package/fixtures/sections/gallery.liquid +258 -0
- package/fixtures/sections/header.liquid +1157 -0
- package/fixtures/sections/html.liquid +40 -0
- package/fixtures/sections/image_text.liquid +350 -0
- package/fixtures/sections/instagram_plus.liquid +393 -0
- package/fixtures/sections/logo_bar.liquid +183 -0
- package/fixtures/sections/newsletter.liquid +225 -0
- package/fixtures/sections/not_found.liquid +39 -0
- package/fixtures/sections/overlay_image.liquid +648 -0
- package/fixtures/sections/page_detail.liquid +39 -0
- package/fixtures/sections/photo_collection.liquid +433 -0
- package/fixtures/sections/product_description.liquid +208 -0
- package/fixtures/sections/product_detail.liquid +611 -0
- package/fixtures/sections/products.liquid +216 -0
- package/fixtures/sections/relative_product.liquid +121 -0
- package/fixtures/sections/reviews.liquid +115 -0
- package/fixtures/sections/rich_text.liquid +157 -0
- package/fixtures/sections/search.liquid +163 -0
- package/fixtures/sections/slide.liquid +719 -0
- package/fixtures/sections/three_images.liquid +157 -0
- package/fixtures/sections/two_images.liquid +125 -0
- package/fixtures/sections/video.liquid +95 -0
- package/fixtures/sections/video_text.liquid +128 -0
- package/fixtures/snippets/bgset.liquid +21 -0
- package/fixtures/snippets/card_title.liquid +8 -0
- package/fixtures/snippets/cart_modal.liquid +74 -0
- package/fixtures/snippets/collection.liquid +77 -0
- package/fixtures/snippets/collection_filter_modal.liquid +56 -0
- package/fixtures/snippets/default_image_4.liquid +14 -0
- package/fixtures/snippets/default_image_6.liquid +18 -0
- package/fixtures/snippets/default_image_8.liquid +23 -0
- package/fixtures/snippets/four_images_item.liquid +8 -0
- package/fixtures/snippets/header_ads.liquid +95 -0
- package/fixtures/snippets/hero_image.liquid +94 -0
- package/fixtures/snippets/icon_video_play_large.liquid +1 -0
- package/fixtures/snippets/icon_video_play_medium.liquid +4 -0
- package/fixtures/snippets/icon_video_play_small.liquid +4 -0
- package/fixtures/snippets/lazyimg.liquid +22 -0
- package/fixtures/snippets/lazyimg_art.liquid +36 -0
- package/fixtures/snippets/lazysizes.liquid +41 -0
- package/fixtures/snippets/link.liquid +2 -0
- package/fixtures/snippets/pagination.liquid +48 -0
- package/fixtures/snippets/product.liquid +126 -0
- package/fixtures/snippets/product_art_tpl.liquid +152 -0
- package/fixtures/snippets/product_info_body.liquid +337 -0
- package/fixtures/snippets/product_info_tpl.liquid +423 -0
- package/fixtures/snippets/product_label.liquid +46 -0
- package/fixtures/snippets/settings.liquid +295 -0
- package/fixtures/snippets/social-meta-tags.liquid +106 -0
- package/fixtures/snippets/video_html.liquid +11 -0
- package/fixtures/snippets/video_source.liquid +98 -0
- package/fixtures/snippets/video_thumb_icon.liquid +2 -0
- package/fixtures/templates/404.liquid +1 -0
- package/fixtures/templates/collection.liquid +92 -0
- package/fixtures/templates/index.liquid +206 -0
- package/fixtures/templates/page.liquid +1 -0
- package/fixtures/templates/product.liquid +99 -0
- package/fixtures/templates/search.liquid +1 -0
- package/jest.config.js +192 -0
- package/lib/__tests__/log.test.js +15 -0
- package/lib/__tests__/utils.test.js +69 -0
- package/lib/auth/__mocks__/getCode.js +7 -0
- package/lib/auth/__mocks__/index.js +0 -0
- package/lib/auth/child.js +23 -0
- package/lib/auth/getCode.js +35 -0
- package/lib/auth/index.js +91 -0
- package/lib/commands/__tests__/login.test.js +77 -0
- package/lib/commands/__tests__/logout.test.js +29 -0
- package/lib/commands/__tests__/store.test.js +44 -0
- package/lib/commands/__tests__/switch.test.js +45 -0
- package/lib/commands/login.js +99 -0
- package/lib/commands/logout.js +14 -0
- package/lib/commands/store.js +14 -0
- package/lib/commands/switch.js +52 -0
- package/lib/commands/theme/__tests__/delete.test.js +49 -0
- package/lib/commands/theme/__tests__/init.test.js +21 -0
- package/lib/commands/theme/__tests__/list.test.js +80 -0
- package/lib/commands/theme/__tests__/package.test.js +17 -0
- package/lib/commands/theme/__tests__/publish.test.js +61 -0
- package/lib/commands/theme/__tests__/pull.test.js +69 -0
- package/lib/commands/theme/__tests__/push.test.js +63 -0
- package/lib/commands/theme/__tests__/serve.test.js +107 -0
- package/lib/commands/theme/delete.js +64 -0
- package/lib/commands/theme/init.js +51 -0
- package/lib/commands/theme/list.js +28 -0
- package/lib/commands/theme/package.js +37 -0
- package/lib/commands/theme/publish.js +56 -0
- package/lib/commands/theme/pull.js +62 -0
- package/lib/commands/theme/push.js +106 -0
- package/lib/commands/theme/serve.js +153 -0
- package/lib/commands/theme/share.js +20 -0
- package/lib/commands/version.js +6 -0
- package/lib/config.js +5 -0
- package/lib/db/__mocks__/index.js +9 -0
- package/lib/db/__tests__/analytics.test.js +19 -0
- package/lib/db/__tests__/user.test.js +20 -0
- package/lib/db/analytics.js +48 -0
- package/lib/db/index.js +9 -0
- package/lib/db/user.js +68 -0
- package/lib/log.js +13 -0
- package/lib/openAPI/__mocks__/index.js +20 -0
- package/lib/openAPI/api.js +76 -0
- package/lib/openAPI/index.js +46 -0
- package/lib/report.js +37 -0
- package/lib/tracing.js +50 -0
- package/lib/utils.js +48 -0
- package/package.json +54 -0
|
@@ -0,0 +1,690 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "theme_info",
|
|
4
|
+
"theme_name": "TestLifeStyle",
|
|
5
|
+
"theme_author": "Underground",
|
|
6
|
+
"theme_version": "1.0"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": {
|
|
10
|
+
"zh-CN": "常规",
|
|
11
|
+
"en-US": "General"
|
|
12
|
+
},
|
|
13
|
+
"settings": [
|
|
14
|
+
{
|
|
15
|
+
"type": "header",
|
|
16
|
+
"content": {
|
|
17
|
+
"en-US": "Layout",
|
|
18
|
+
"zh-CN": "布局"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "text",
|
|
23
|
+
"id": "general_layout_width",
|
|
24
|
+
"label": {
|
|
25
|
+
"en-US": "Content width",
|
|
26
|
+
"zh-CN": "内容宽度"
|
|
27
|
+
},
|
|
28
|
+
"info": {
|
|
29
|
+
"en-US": "Content width in px",
|
|
30
|
+
"zh-CN": "内容宽度单位为px"
|
|
31
|
+
},
|
|
32
|
+
"default": "1080",
|
|
33
|
+
"props": {
|
|
34
|
+
"type": "number"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "text",
|
|
39
|
+
"id": "general_layout_spacing",
|
|
40
|
+
"label": {
|
|
41
|
+
"en-US": "Content space",
|
|
42
|
+
"zh-CN": "内容留白"
|
|
43
|
+
},
|
|
44
|
+
"default": "40",
|
|
45
|
+
"info": {
|
|
46
|
+
"en-US": "Content space in px",
|
|
47
|
+
"zh-CN": "内容留白单位为px"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": {
|
|
54
|
+
"en-US": "Color",
|
|
55
|
+
"zh-CN": "颜色"
|
|
56
|
+
},
|
|
57
|
+
"settings": [
|
|
58
|
+
{
|
|
59
|
+
"type": "header",
|
|
60
|
+
"content": {
|
|
61
|
+
"en-US": "General",
|
|
62
|
+
"zh-CN": "通用"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "color",
|
|
67
|
+
"id": "skin_bg",
|
|
68
|
+
"label": {
|
|
69
|
+
"en-US": "Background",
|
|
70
|
+
"zh-CN": "页面背景"
|
|
71
|
+
},
|
|
72
|
+
"default": "#FFFFFF"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "color",
|
|
76
|
+
"id": "skin_title_color",
|
|
77
|
+
"label": {
|
|
78
|
+
"en-US": "Heading",
|
|
79
|
+
"zh-CN": "标题"
|
|
80
|
+
},
|
|
81
|
+
"default": "#000000"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "color",
|
|
85
|
+
"id": "skin_text_color",
|
|
86
|
+
"label": {
|
|
87
|
+
"en-US": "Text",
|
|
88
|
+
"zh-CN": "正文"
|
|
89
|
+
},
|
|
90
|
+
"default": "#999999"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"type": "color",
|
|
94
|
+
"id": "skin_price_color",
|
|
95
|
+
"label": {
|
|
96
|
+
"en-US": "Price",
|
|
97
|
+
"zh-CN": "现价"
|
|
98
|
+
},
|
|
99
|
+
"default": "#9B3C44"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "color",
|
|
103
|
+
"id": "skin_compare_at_price_color",
|
|
104
|
+
"label": {
|
|
105
|
+
"zh-CN": "原价",
|
|
106
|
+
"en-US": "Compare at price"
|
|
107
|
+
},
|
|
108
|
+
"default": "#999999"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "header",
|
|
112
|
+
"content": {
|
|
113
|
+
"en-US": "Buttons",
|
|
114
|
+
"zh-CN": "按钮"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"type": "color",
|
|
119
|
+
"id": "skin_primary_btn_bg_color",
|
|
120
|
+
"label": {
|
|
121
|
+
"en-US": "Primary buttons",
|
|
122
|
+
"zh-CN": "主要按钮背景"
|
|
123
|
+
},
|
|
124
|
+
"default": "#212121"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"type": "color",
|
|
128
|
+
"id": "skin_primary_btn_text_color",
|
|
129
|
+
"label": {
|
|
130
|
+
"en-US": "Primary labels",
|
|
131
|
+
"zh-CN": "主要按钮字体"
|
|
132
|
+
},
|
|
133
|
+
"default": "#FFFFFF"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"type": "color",
|
|
137
|
+
"id": "skin_primary_btn_border_color",
|
|
138
|
+
"label": {
|
|
139
|
+
"en-US": "Primary border",
|
|
140
|
+
"zh-CN": "主要按钮边框"
|
|
141
|
+
},
|
|
142
|
+
"default": "#212121"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"type": "color",
|
|
146
|
+
"id": "skin_secondary_btn_bg_color",
|
|
147
|
+
"label": {
|
|
148
|
+
"en-US": "Secondary buttons",
|
|
149
|
+
"zh-CN": "次要按钮背景"
|
|
150
|
+
},
|
|
151
|
+
"default": "#FFFFFF"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"type": "color",
|
|
155
|
+
"id": "skin_secondary_btn_text_color",
|
|
156
|
+
"label": {
|
|
157
|
+
"zh-CN": "次要按钮字体&边框",
|
|
158
|
+
"en-US": "Secondary label and borders"
|
|
159
|
+
},
|
|
160
|
+
"default": "#212121"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": {
|
|
166
|
+
"en-US": "Font",
|
|
167
|
+
"zh-CN": "字体"
|
|
168
|
+
},
|
|
169
|
+
"settings": [
|
|
170
|
+
{
|
|
171
|
+
"type": "header",
|
|
172
|
+
"content": {
|
|
173
|
+
"en-US": "Font type",
|
|
174
|
+
"zh-CN": "字体类型"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "font_picker",
|
|
179
|
+
"id": "skin_title_font_family",
|
|
180
|
+
"label": {
|
|
181
|
+
"en-US": "Heading",
|
|
182
|
+
"zh-CN": "标题"
|
|
183
|
+
},
|
|
184
|
+
"default": "work_sans_n7"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "font_picker",
|
|
188
|
+
"id": "skin_text_font_family",
|
|
189
|
+
"label": {
|
|
190
|
+
"en-US": "Text",
|
|
191
|
+
"zh-CN": "正文"
|
|
192
|
+
},
|
|
193
|
+
"default": "work_sans_n4"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"type": "font_picker",
|
|
197
|
+
"id": "skin_btn_font_family",
|
|
198
|
+
"label": {
|
|
199
|
+
"en-US": "Buttons",
|
|
200
|
+
"zh-CN": "按钮"
|
|
201
|
+
},
|
|
202
|
+
"default": "work_sans_n4"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"type": "font_picker",
|
|
206
|
+
"id": "skin_product_header_font_family",
|
|
207
|
+
"label": {
|
|
208
|
+
"en-US": "Product title",
|
|
209
|
+
"zh-CN": "商品标题"
|
|
210
|
+
},
|
|
211
|
+
"default": "work_sans_n4"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"type": "header",
|
|
215
|
+
"content": {
|
|
216
|
+
"zh-CN": "字号",
|
|
217
|
+
"en-US": "Font size"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"type": "range",
|
|
222
|
+
"id": "skin_title_font_size",
|
|
223
|
+
"step": 1,
|
|
224
|
+
"max": 60,
|
|
225
|
+
"min": 16,
|
|
226
|
+
"unit": "px",
|
|
227
|
+
"label": {
|
|
228
|
+
"en-US": "Heading",
|
|
229
|
+
"zh-CN": "标题"
|
|
230
|
+
},
|
|
231
|
+
"default": 34
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"type": "range",
|
|
235
|
+
"id": "skin_product_header_font_size",
|
|
236
|
+
"step": 1,
|
|
237
|
+
"max": 34,
|
|
238
|
+
"min": 12,
|
|
239
|
+
"unit": "px",
|
|
240
|
+
"label": {
|
|
241
|
+
"en-US": "Product title",
|
|
242
|
+
"zh-CN": "商品标题"
|
|
243
|
+
},
|
|
244
|
+
"default": 13
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"type": "range",
|
|
248
|
+
"id": "skin_price_font_size",
|
|
249
|
+
"step": 1,
|
|
250
|
+
"max": 34,
|
|
251
|
+
"min": 12,
|
|
252
|
+
"unit": "px",
|
|
253
|
+
"label": {
|
|
254
|
+
"en-US": "Price",
|
|
255
|
+
"zh-CN": "现价"
|
|
256
|
+
},
|
|
257
|
+
"default": 15
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "range",
|
|
261
|
+
"id": "skin_compare_at_price_font_size",
|
|
262
|
+
"step": 1,
|
|
263
|
+
"max": 34,
|
|
264
|
+
"min": 12,
|
|
265
|
+
"unit": "px",
|
|
266
|
+
"label": {
|
|
267
|
+
"zh-CN": "原价",
|
|
268
|
+
"en-US": "Compare at price"
|
|
269
|
+
},
|
|
270
|
+
"default": 15
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": {
|
|
276
|
+
"en-US": "Product",
|
|
277
|
+
"zh-CN": "商品"
|
|
278
|
+
},
|
|
279
|
+
"settings": [
|
|
280
|
+
{
|
|
281
|
+
"type": "header",
|
|
282
|
+
"content": {
|
|
283
|
+
"en-US": "Product information",
|
|
284
|
+
"zh-CN": "商品通用信息"
|
|
285
|
+
},
|
|
286
|
+
"info": {
|
|
287
|
+
"zh-CN": "以下设置皆为全局设置不仅限于对当前页面生效,改动之后将会影响该主题全部页面的商品列表/商品详情/快速浏览弹窗的信息展示",
|
|
288
|
+
"en-US": "The following settings are global settings.The changes will affect the list of products/product details /quick view popup information display for all pages of the theme instead of the current page"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"type": "checkbox",
|
|
293
|
+
"label": {
|
|
294
|
+
"zh-CN": "原价",
|
|
295
|
+
"en-US": "Compare at price"
|
|
296
|
+
},
|
|
297
|
+
"id": "is_compare_at_price_show",
|
|
298
|
+
"default": true
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"type": "checkbox",
|
|
302
|
+
"label": {
|
|
303
|
+
"zh-CN": "折扣标签",
|
|
304
|
+
"en-US": "Sale label"
|
|
305
|
+
},
|
|
306
|
+
"id": "is_discount_show",
|
|
307
|
+
"default": true
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"type": "checkbox",
|
|
311
|
+
"id": "vendor_enable",
|
|
312
|
+
"label": {
|
|
313
|
+
"en-US": "Show vendor",
|
|
314
|
+
"zh-CN": "供应商"
|
|
315
|
+
},
|
|
316
|
+
"default": false
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"type": "checkbox",
|
|
320
|
+
"id": "product_save_amount",
|
|
321
|
+
"label": {
|
|
322
|
+
"zh-CN": "优惠金额",
|
|
323
|
+
"en-US": "Show discount amount"
|
|
324
|
+
},
|
|
325
|
+
"default": false
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"type": "custom_select",
|
|
329
|
+
"id": "label_style",
|
|
330
|
+
"label": {
|
|
331
|
+
"en-US": "Label style",
|
|
332
|
+
"zh-CN": "标签样式"
|
|
333
|
+
},
|
|
334
|
+
"options": [
|
|
335
|
+
{
|
|
336
|
+
"label": "/oss/operation/672cd638f48d0d99f610b15fc970b2f4.svg",
|
|
337
|
+
"value": "triangle"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"label": "/oss/operation/7471ce3cb36b9239d033f6ccb67f38fa.svg",
|
|
341
|
+
"value": "flag"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"label": "/oss/operation/51691a108428a9cec48a317b3c2cb751.svg",
|
|
345
|
+
"value": "badge"
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"default": "triangle"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"type": "color",
|
|
352
|
+
"id": "label_background_color",
|
|
353
|
+
"label": {
|
|
354
|
+
"en-US": "Label background color",
|
|
355
|
+
"zh-CN": "标签背景"
|
|
356
|
+
},
|
|
357
|
+
"default": "#9B3C44"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"type": "color",
|
|
361
|
+
"id": "label_color",
|
|
362
|
+
"label": {
|
|
363
|
+
"en-US": "Label text color",
|
|
364
|
+
"zh-CN": "标签文字"
|
|
365
|
+
},
|
|
366
|
+
"default": "#FFFFFF"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"type": "header",
|
|
370
|
+
"content": {
|
|
371
|
+
"zh-CN": "quickview信息",
|
|
372
|
+
"en-US": "quick view information"
|
|
373
|
+
},
|
|
374
|
+
"info": {
|
|
375
|
+
"zh-CN": "以下商品信息位于商品详情与快速浏览弹窗,改动后不仅限于对当前页面生效,将会对全局生效。",
|
|
376
|
+
"en-US": "The following settings are global and are not limited to the current page, but will affect the product list/product details/quick view popup display on all pages of the theme"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"type": "checkbox",
|
|
381
|
+
"label": {
|
|
382
|
+
"en-US": "SKU",
|
|
383
|
+
"zh-CN": "SKU"
|
|
384
|
+
},
|
|
385
|
+
"id": "is_sku_show",
|
|
386
|
+
"default": false
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"type": "checkbox",
|
|
390
|
+
"label": {
|
|
391
|
+
"en-US": "Inventory",
|
|
392
|
+
"zh-CN": "库存"
|
|
393
|
+
},
|
|
394
|
+
"id": "is_stock_show",
|
|
395
|
+
"default": true
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"type": "checkbox",
|
|
399
|
+
"label": {
|
|
400
|
+
"zh-CN": "销量",
|
|
401
|
+
"en-US": "Sales"
|
|
402
|
+
},
|
|
403
|
+
"id": "is_sales_show",
|
|
404
|
+
"default": false
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"type": "checkbox",
|
|
408
|
+
"label": {
|
|
409
|
+
"zh-CN": "副标题",
|
|
410
|
+
"en-US": "Subheading"
|
|
411
|
+
},
|
|
412
|
+
"id": "is_brief_show",
|
|
413
|
+
"default": true
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"type": "checkbox",
|
|
417
|
+
"label": {
|
|
418
|
+
"zh-CN": "数量选择框",
|
|
419
|
+
"en-US": "Quantity selector"
|
|
420
|
+
},
|
|
421
|
+
"id": "is_quantity_box_show",
|
|
422
|
+
"default": true
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"type": "checkbox",
|
|
426
|
+
"label": {
|
|
427
|
+
"en-US": "Select the variants by default",
|
|
428
|
+
"zh-CN": "默认选中款式"
|
|
429
|
+
},
|
|
430
|
+
"id": "is_select_default_variants",
|
|
431
|
+
"default": false
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"type": "select",
|
|
435
|
+
"id": "variant_type",
|
|
436
|
+
"label": {
|
|
437
|
+
"en-US": "Variant picker style",
|
|
438
|
+
"zh-CN": "款式选择形式"
|
|
439
|
+
},
|
|
440
|
+
"default": "button",
|
|
441
|
+
"options": [
|
|
442
|
+
{
|
|
443
|
+
"value": "button",
|
|
444
|
+
"label": {
|
|
445
|
+
"en-US": "Buttons",
|
|
446
|
+
"zh-CN": "按钮"
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"value": "dropdown",
|
|
451
|
+
"label": {
|
|
452
|
+
"en-US": "Dropdown",
|
|
453
|
+
"zh-CN": "下拉列表"
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
]
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"type": "checkbox",
|
|
460
|
+
"label": {
|
|
461
|
+
"zh-CN": "展示 Add To Cart 按钮",
|
|
462
|
+
"en-US": "Show 'Add To Cart' button"
|
|
463
|
+
},
|
|
464
|
+
"id": "is_add_to_cart_show",
|
|
465
|
+
"default": true
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"type": "checkbox",
|
|
469
|
+
"label": {
|
|
470
|
+
"zh-CN": "展示 Buy Now 按钮",
|
|
471
|
+
"en-US": "Show 'Buy Now' button"
|
|
472
|
+
},
|
|
473
|
+
"id": "is_payment_btn_show",
|
|
474
|
+
"default": true
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"type": "select",
|
|
478
|
+
"id": "add_to_cart_process",
|
|
479
|
+
"label": {
|
|
480
|
+
"zh-CN": "点击 Add to Cart",
|
|
481
|
+
"en-US": "Click on 'Add to Cart'"
|
|
482
|
+
},
|
|
483
|
+
"default": "to_toast",
|
|
484
|
+
"options": [
|
|
485
|
+
{
|
|
486
|
+
"value": "to_toast",
|
|
487
|
+
"label": {
|
|
488
|
+
"en-US": "Drawer",
|
|
489
|
+
"zh-CN": "侧边购物车"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"value": "toast",
|
|
494
|
+
"label": {
|
|
495
|
+
"en-US": "Pop up message",
|
|
496
|
+
"zh-CN": "弹提示框,页面不跳转"
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"value": "to_cart",
|
|
501
|
+
"label": {
|
|
502
|
+
"zh-CN": "跳到购物车",
|
|
503
|
+
"en-US": "Into the shopping cart"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"value": "to_checkout",
|
|
508
|
+
"label": {
|
|
509
|
+
"zh-CN": "跳到支付页",
|
|
510
|
+
"en-US": "Into the payment page"
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
]
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"type": "header",
|
|
517
|
+
"content": {
|
|
518
|
+
"en-US": "Product list",
|
|
519
|
+
"zh-CN": "商品列表"
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"type": "checkbox",
|
|
524
|
+
"label": {
|
|
525
|
+
"zh-CN": "是否展示 Quick View 按钮",
|
|
526
|
+
"en-US": "Show quick view button"
|
|
527
|
+
},
|
|
528
|
+
"id": "is_quick_view_btn_show",
|
|
529
|
+
"default": true
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"type": "text",
|
|
533
|
+
"id": "quick_view_btn_text",
|
|
534
|
+
"label": {
|
|
535
|
+
"zh-CN": "Quick View 按钮文案",
|
|
536
|
+
"en-US": "Quick view button text"
|
|
537
|
+
},
|
|
538
|
+
"default": "Quick View",
|
|
539
|
+
"placeholder": "Quick View"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"type": "select",
|
|
543
|
+
"id": "product_grid_image_size",
|
|
544
|
+
"label": {
|
|
545
|
+
"en-US": "Grid image size",
|
|
546
|
+
"zh-CN": "商品列表图片尺寸"
|
|
547
|
+
},
|
|
548
|
+
"default": "100%",
|
|
549
|
+
"options": [
|
|
550
|
+
{
|
|
551
|
+
"value": "100%",
|
|
552
|
+
"label": {
|
|
553
|
+
"zh-CN": "小",
|
|
554
|
+
"en-US": "Small"
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"value": "121%",
|
|
559
|
+
"label": {
|
|
560
|
+
"zh-CN": "中",
|
|
561
|
+
"en-US": "Medium"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"value": "150%",
|
|
566
|
+
"label": {
|
|
567
|
+
"zh-CN": "大",
|
|
568
|
+
"en-US": "Large"
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"value": "natural",
|
|
573
|
+
"label": {
|
|
574
|
+
"zh-CN": "原始比例",
|
|
575
|
+
"en-US": "Natural"
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
]
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"type": "checkbox",
|
|
582
|
+
"label": {
|
|
583
|
+
"zh-CN": "购物车推荐商品",
|
|
584
|
+
"en-US": "Cart recommendations"
|
|
585
|
+
},
|
|
586
|
+
"id": "is_cart_recommended_products_show",
|
|
587
|
+
"default": false
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"type": "range",
|
|
591
|
+
"id": "cart_recommended_products_number",
|
|
592
|
+
"step": 1,
|
|
593
|
+
"max": 5,
|
|
594
|
+
"min": 1,
|
|
595
|
+
"label": {
|
|
596
|
+
"en-US": "Cart recommended products number",
|
|
597
|
+
"zh-CN": "购物车推荐商品数量"
|
|
598
|
+
},
|
|
599
|
+
"default": 3,
|
|
600
|
+
"unit": ""
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"type": "header",
|
|
604
|
+
"content": {
|
|
605
|
+
"en-US": "Color swatches",
|
|
606
|
+
"zh-CN": "色卡"
|
|
607
|
+
},
|
|
608
|
+
"info": {
|
|
609
|
+
"zh-CN": "色卡功能仅在款式名称包含“color”或“colour”(不区分大小写)的情况下生效。",
|
|
610
|
+
"en-US": "The color card function only takes effect when the style name contains \"color\" or \"colour\" (not case sensitive)."
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"type": "checkbox",
|
|
615
|
+
"id": "product_color_swatches",
|
|
616
|
+
"label": {
|
|
617
|
+
"en-US": "Enable color swatches on product page",
|
|
618
|
+
"zh-CN": "允许商品详情页显示色卡"
|
|
619
|
+
},
|
|
620
|
+
"default": false
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"type": "checkbox",
|
|
624
|
+
"id": "collection_color_swatches",
|
|
625
|
+
"label": {
|
|
626
|
+
"en-US": "Enable color swatches on collection page",
|
|
627
|
+
"zh-CN": "允许专辑商品显示色卡"
|
|
628
|
+
},
|
|
629
|
+
"default": false
|
|
630
|
+
}
|
|
631
|
+
]
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"name": {
|
|
635
|
+
"en-US": "Social media",
|
|
636
|
+
"zh-CN": "社交媒体"
|
|
637
|
+
},
|
|
638
|
+
"settings": [
|
|
639
|
+
{
|
|
640
|
+
"type": "header",
|
|
641
|
+
"content": {
|
|
642
|
+
"en-US": "Social media link",
|
|
643
|
+
"zh-CN": "社媒链接"
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"type": "text",
|
|
648
|
+
"id": "instagram_url",
|
|
649
|
+
"label": "Instagram link",
|
|
650
|
+
"placeholder": "https://instagram.com"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"type": "text",
|
|
654
|
+
"id": "facebook_url",
|
|
655
|
+
"label": "Facebook link",
|
|
656
|
+
"placeholder": "https://www.facebook.com"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"type": "text",
|
|
660
|
+
"id": "twitter_url",
|
|
661
|
+
"label": "Twitter link",
|
|
662
|
+
"placeholder": "https://twitter.com"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"type": "text",
|
|
666
|
+
"id": "pinterest_url",
|
|
667
|
+
"label": "Pinterest link",
|
|
668
|
+
"placeholder": "https://pinterest.com"
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"type": "text",
|
|
672
|
+
"id": "youtube_url",
|
|
673
|
+
"label": "Youtube link",
|
|
674
|
+
"placeholder": "https://youtube.com"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"type": "image_picker",
|
|
678
|
+
"id": "homepage_social_image",
|
|
679
|
+
"label": {
|
|
680
|
+
"zh-CN": "首页分享图片",
|
|
681
|
+
"en-US": "Homepage image for sharing"
|
|
682
|
+
},
|
|
683
|
+
"info": {
|
|
684
|
+
"zh-CN": "分享首页到 Facebook 或者 Twitter 时展示。",
|
|
685
|
+
"en-US": "It will be displayed when your home page is shared on Facebook or Twitter"
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
]
|
|
689
|
+
}
|
|
690
|
+
]
|