@lightspeed/crane 1.1.0 → 1.1.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/dist/app.d.mts +198 -11
- package/dist/app.d.ts +198 -11
- package/dist/app.mjs +1 -1
- package/dist/cli.mjs +22 -11
- package/package.json +5 -2
- package/template/footers/example-footer/ExampleFooter.vue +40 -1
- package/template/footers/example-footer/component/LegalLinks.vue +20 -0
- package/template/footers/example-footer/component/ReportAbuse.vue +18 -0
- package/template/footers/example-footer/entity/color.ts +4 -0
- package/template/footers/{settings/translations.ts → example-footer/settings/content.ts} +0 -2
- package/template/footers/example-footer/settings/design.ts +11 -0
- package/template/footers/example-footer/settings/translations.ts +12 -0
- package/template/footers/example-footer/showcases/1.ts +2 -0
- package/template/footers/example-footer/showcases/translations.ts +9 -0
- package/template/footers/example-footer/type.ts +2 -2
- package/template/headers/example-header/ExampleHeader.vue +39 -7
- package/template/headers/example-header/assets/account_icon.svg +11 -0
- package/template/headers/example-header/assets/cart.svg +20 -0
- package/template/headers/example-header/assets/lightspeed_logo.png +0 -0
- package/template/headers/example-header/assets/search.svg +13 -0
- package/template/headers/example-header/component/Account.vue +20 -0
- package/template/headers/example-header/component/Cart.vue +64 -0
- package/template/headers/example-header/component/Logo.vue +95 -0
- package/template/headers/example-header/component/NavigationMenu.vue +53 -0
- package/template/headers/example-header/component/SearchForm.vue +89 -0
- package/template/headers/example-header/settings/content.ts +9 -0
- package/template/headers/example-header/settings/design.ts +23 -0
- package/template/headers/example-header/settings/translations.ts +9 -0
- package/template/headers/example-header/showcases/1.ts +40 -0
- package/template/headers/example-header/showcases/2.ts +42 -0
- package/template/headers/example-header/showcases/translations.ts +17 -0
- package/template/headers/example-header/type.ts +2 -2
- package/template/package.json +3 -2
- package/template/sections/example-section/component/image/ImagesGrid.vue +18 -37
- package/template/sections/example-section/settings/content.ts +53 -55
- package/template/sections/example-section/settings/translations.ts +27 -24
- package/template/sections/example-section/showcases/1.ts +143 -103
- package/template/sections/example-section/showcases/2.ts +127 -103
- package/template/sections/example-section/showcases/translations.ts +4 -0
- package/template/shared/LanguageSelector.vue +75 -0
- package/template/templates/template.ts +128 -104
- package/types.d.ts +262 -152
- package/template/footers/example-footer/component/SampleComponent.vue +0 -11
- package/template/footers/settings/content.ts +0 -1
- package/template/footers/settings/design.ts +0 -1
- package/template/headers/example-header/component/SampleComponent.vue +0 -11
- package/template/headers/settings/content.ts +0 -1
- package/template/headers/settings/design.ts +0 -1
- package/template/headers/settings/layout.ts +0 -1
- package/template/headers/settings/translations.ts +0 -5
- /package/template/{footers → headers/example-header}/settings/layout.ts +0 -0
|
@@ -9,60 +9,58 @@ export default {
|
|
|
9
9
|
label: '$label.section_description.label',
|
|
10
10
|
placeholder: '$label.section_description.placeholder',
|
|
11
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
|
-
label: '$label.image_link_4.label',
|
|
66
|
-
placeholder: '$label.image_link.placeholder',
|
|
12
|
+
|
|
13
|
+
images: {
|
|
14
|
+
type: 'DECK',
|
|
15
|
+
label: '$label.images.deck_title',
|
|
16
|
+
addButtonLabel: '$label.images.add_card_button',
|
|
17
|
+
maxCards: 5,
|
|
18
|
+
cards: {
|
|
19
|
+
defaultCardContent: {
|
|
20
|
+
label: '$label.images.card_title',
|
|
21
|
+
settings: {
|
|
22
|
+
image_content: {
|
|
23
|
+
type: 'IMAGE',
|
|
24
|
+
label: '$label.image_content_1.label',
|
|
25
|
+
defaults: {
|
|
26
|
+
set: {
|
|
27
|
+
LOW_RES: {
|
|
28
|
+
url: 'new_arrivals_mobile_low.jpeg',
|
|
29
|
+
},
|
|
30
|
+
MOBILE_WEBP_LOW_RES: {
|
|
31
|
+
url: 'new_arrivals_mobile_low.jpeg',
|
|
32
|
+
},
|
|
33
|
+
MOBILE_WEBP_HI_RES: {
|
|
34
|
+
url: 'new_arrivals_mobile_high.jpeg',
|
|
35
|
+
},
|
|
36
|
+
WEBP_LOW_RES: {
|
|
37
|
+
url: 'new_arrivals_pc_low.jpeg',
|
|
38
|
+
},
|
|
39
|
+
WEBP_HI_2X_RES: {
|
|
40
|
+
url: 'new_arrivals_pc_high.jpeg',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
borderInfo: {},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
image_text: {
|
|
47
|
+
type: 'TEXTAREA',
|
|
48
|
+
label: '$label.image_text_1.label',
|
|
49
|
+
placeholder: '$label.image_text.placeholder',
|
|
50
|
+
defaults: {
|
|
51
|
+
text: '$label.images.default.image_text',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
image_link: {
|
|
55
|
+
type: 'INPUTBOX',
|
|
56
|
+
label: '$label.image_link_1.label',
|
|
57
|
+
placeholder: '$label.image_link.placeholder',
|
|
58
|
+
defaults: {
|
|
59
|
+
text: '$label.images.default.image_link.text',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
67
65
|
},
|
|
68
66
|
} as const;
|
|
@@ -5,22 +5,29 @@ export default {
|
|
|
5
5
|
'$label.section_description.label': 'Long description',
|
|
6
6
|
'$label.section_description.placeholder': 'This description will be displayed below the title',
|
|
7
7
|
'$label.image_text.label': 'Image Caption',
|
|
8
|
-
|
|
9
|
-
'$label.image_text_2.label': 'Image 2 caption',
|
|
10
|
-
'$label.image_text_3.label': 'Image 3 caption',
|
|
11
|
-
'$label.image_text_4.label': 'Image 4 caption',
|
|
8
|
+
|
|
12
9
|
'$label.image_text.placeholder': 'This caption will be displayed on or below the image',
|
|
13
10
|
'$label.image_content.label': 'Image Content',
|
|
14
|
-
'$label.image_content_1.label': 'Image 1',
|
|
15
|
-
'$label.image_content_2.label': 'Image 2',
|
|
16
|
-
'$label.image_content_3.label': 'Image 3',
|
|
17
|
-
'$label.image_content_4.label': 'Image 4',
|
|
18
|
-
'$label.image_link_1.label': 'Image 1 link',
|
|
19
|
-
'$label.image_link_2.label': 'Image 2 link',
|
|
20
|
-
'$label.image_link_3.label': 'Image 3 link',
|
|
21
|
-
'$label.image_link_4.label': 'Image 4 link',
|
|
22
11
|
'$label.image_link.placeholder': 'Enter an optional URL for the image',
|
|
23
12
|
'$label.background.label': 'Background',
|
|
13
|
+
|
|
14
|
+
'$label.image_text_1.label': 'Content.ts: Image caption',
|
|
15
|
+
'$label.image_content_1.label': 'Content.ts: Image',
|
|
16
|
+
'$label.image_link_1.label': 'Content.ts: Image link',
|
|
17
|
+
|
|
18
|
+
'$label.images.deck_title': 'Content.ts: Image settings',
|
|
19
|
+
'$label.images.add_card_button': 'Content.ts: Add new image settings',
|
|
20
|
+
'$label.images.card_title': 'Content.ts: Image settings',
|
|
21
|
+
|
|
22
|
+
'$label.images.default.image_text': 'Default of Content.ts: Default image text',
|
|
23
|
+
'$label.images.default.image_link.text': 'Default of Content.ts: Default image link text',
|
|
24
|
+
'$label.images.default.button_title': 'Default of Content.ts: Default button title',
|
|
25
|
+
|
|
26
|
+
'$label.images.toggle.label': 'Content.ts: Image toggle',
|
|
27
|
+
'$label.images.selectbox.label': 'Content.ts: Image select',
|
|
28
|
+
'$label.images.selectbox_option_1.label': 'Content.ts: Image select option 1',
|
|
29
|
+
'$label.images.selectbox_option_2.label': 'Content.ts: Image select option 2',
|
|
30
|
+
'$label.images.button.label': 'Content.ts: Image button label',
|
|
24
31
|
},
|
|
25
32
|
|
|
26
33
|
nl: {
|
|
@@ -29,21 +36,17 @@ export default {
|
|
|
29
36
|
'$label.section_description.label': 'Lange beschrijving',
|
|
30
37
|
'$label.section_description.placeholder': 'Deze beschrijving wordt onder de titel weergegeven',
|
|
31
38
|
'$label.image_text.label': 'Bijschrift afbeelding',
|
|
32
|
-
'$label.image_text_1.label': 'Onderschrift afbeelding
|
|
33
|
-
'$label.image_text_2.label': 'Bijschrift afbeelding 2',
|
|
34
|
-
'$label.image_text_3.label': 'Bijschrift afbeelding 3',
|
|
35
|
-
'$label.image_text_4.label': 'Bijschrift afbeelding 4',
|
|
39
|
+
'$label.image_text_1.label': 'Onderschrift afbeelding',
|
|
36
40
|
'$label.image_text.placeholder': 'Dit bijschrift wordt op of onder de afbeelding weergegeven',
|
|
37
41
|
'$label.image_content.label': 'Afbeeldingsinhoud',
|
|
38
|
-
'$label.image_content_1.label': 'Afbeelding
|
|
39
|
-
'$label.
|
|
40
|
-
'$label.image_content_3.label': 'Afbeelding 3',
|
|
41
|
-
'$label.image_content_4.label': 'Afbeelding 4',
|
|
42
|
-
'$label.image_link_1.label': 'Afbeelding 1 link',
|
|
43
|
-
'$label.image_link_2.label': 'Afbeelding 2 link',
|
|
44
|
-
'$label.image_link_3.label': 'Afbeelding 3 link',
|
|
45
|
-
'$label.image_link_4.label': 'Afbeelding 4 link',
|
|
42
|
+
'$label.image_content_1.label': 'Afbeelding',
|
|
43
|
+
'$label.image_link_1.label': 'Afbeelding link',
|
|
46
44
|
'$label.image_link.placeholder': 'Voer een optionele URL in voor de afbeelding',
|
|
47
45
|
'$label.background.label': 'Achtergrond',
|
|
46
|
+
|
|
47
|
+
'$label.images.deck_title': 'Afbeeldingsinstellingen',
|
|
48
|
+
'$label.images.add_card_button': 'Afbeeldingsinstellingen toevoegen',
|
|
49
|
+
'$label.images.card_title': 'Afbeeldingsinstellingen',
|
|
50
|
+
'$label.images.image_text_default': 'Standaardtekst',
|
|
48
51
|
},
|
|
49
52
|
} as const;
|
|
@@ -18,117 +18,157 @@ export default {
|
|
|
18
18
|
type: 'TEXTAREA',
|
|
19
19
|
text: '$label.showcase_1.section_description.text',
|
|
20
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
|
-
|
|
21
|
+
|
|
22
|
+
images: {
|
|
23
|
+
type: 'DECK',
|
|
24
|
+
cards: [
|
|
25
|
+
{
|
|
26
|
+
settings: {
|
|
27
|
+
image_text: {
|
|
28
|
+
type: 'TEXTAREA',
|
|
29
|
+
text: '$label.showcase_1.image_text_1.text',
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
image_content: {
|
|
33
|
+
type: 'IMAGE',
|
|
34
|
+
imageData: {
|
|
35
|
+
set: {
|
|
36
|
+
LOW_RES: {
|
|
37
|
+
url: 'new_arrivals_mobile_low.jpeg',
|
|
38
|
+
},
|
|
39
|
+
MOBILE_WEBP_LOW_RES: {
|
|
40
|
+
url: 'new_arrivals_mobile_low.jpeg',
|
|
41
|
+
},
|
|
42
|
+
MOBILE_WEBP_HI_RES: {
|
|
43
|
+
url: 'new_arrivals_mobile_high.jpeg',
|
|
44
|
+
},
|
|
45
|
+
WEBP_LOW_RES: {
|
|
46
|
+
url: 'new_arrivals_pc_low.jpeg',
|
|
47
|
+
},
|
|
48
|
+
WEBP_HI_2X_RES: {
|
|
49
|
+
url: 'new_arrivals_pc_high.jpeg',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
borderInfo: {},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
image_link: {
|
|
57
|
+
type: 'INPUTBOX',
|
|
58
|
+
text: '$label.showcase_1.image_link_1.text',
|
|
59
|
+
},
|
|
55
60
|
},
|
|
56
61
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
|
|
63
|
+
{
|
|
64
|
+
settings: {
|
|
65
|
+
image_text: {
|
|
66
|
+
type: 'TEXTAREA',
|
|
67
|
+
text: '$label.showcase_1.image_text_2.text',
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
image_content: {
|
|
71
|
+
type: 'IMAGE',
|
|
72
|
+
imageData: {
|
|
73
|
+
set: {
|
|
74
|
+
LOW_RES: {
|
|
75
|
+
url: 'sport_look_mobile_low.jpeg',
|
|
76
|
+
},
|
|
77
|
+
MOBILE_WEBP_LOW_RES: {
|
|
78
|
+
url: 'sport_look_mobile_low.jpeg',
|
|
79
|
+
},
|
|
80
|
+
MOBILE_WEBP_HI_RES: {
|
|
81
|
+
url: 'sport_look_mobile_high.jpeg',
|
|
82
|
+
},
|
|
83
|
+
WEBP_LOW_RES: {
|
|
84
|
+
url: 'sport_look_pc_low.jpeg',
|
|
85
|
+
},
|
|
86
|
+
WEBP_HI_2X_RES: {
|
|
87
|
+
url: 'sport_look_pc_high.jpeg',
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
borderInfo: {},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
image_link: {
|
|
95
|
+
type: 'INPUTBOX',
|
|
96
|
+
text: '$label.showcase_1.image_link_1.text',
|
|
97
|
+
},
|
|
78
98
|
},
|
|
79
99
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
|
|
101
|
+
{
|
|
102
|
+
settings: {
|
|
103
|
+
image_text: {
|
|
104
|
+
type: 'TEXTAREA',
|
|
105
|
+
text: '$label.showcase_1.image_text_3.text',
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
image_content: {
|
|
109
|
+
type: 'IMAGE',
|
|
110
|
+
imageData: {
|
|
111
|
+
set: {
|
|
112
|
+
LOW_RES: {
|
|
113
|
+
url: 'summer_accessories_mobile_low.jpeg',
|
|
114
|
+
},
|
|
115
|
+
MOBILE_WEBP_LOW_RES: {
|
|
116
|
+
url: 'summer_accessories_mobile_low.jpeg',
|
|
117
|
+
},
|
|
118
|
+
MOBILE_WEBP_HI_RES: {
|
|
119
|
+
url: 'summer_accessories_mobile_high.jpeg',
|
|
120
|
+
},
|
|
121
|
+
WEBP_LOW_RES: {
|
|
122
|
+
url: 'summer_accessories_pc_low.jpeg',
|
|
123
|
+
},
|
|
124
|
+
WEBP_HI_2X_RES: {
|
|
125
|
+
url: 'summer_accessories_pc_high.jpeg',
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
borderInfo: {},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
image_link: {
|
|
133
|
+
type: 'INPUTBOX',
|
|
134
|
+
text: '$label.showcase_1.image_link_1.text',
|
|
135
|
+
},
|
|
101
136
|
},
|
|
102
137
|
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
138
|
+
|
|
139
|
+
{
|
|
140
|
+
settings: {
|
|
141
|
+
image_text: {
|
|
142
|
+
type: 'TEXTAREA',
|
|
143
|
+
text: '$label.showcase_1.image_text_4.text',
|
|
144
|
+
},
|
|
145
|
+
|
|
146
|
+
image_content: {
|
|
147
|
+
type: 'IMAGE',
|
|
148
|
+
imageData: {
|
|
149
|
+
set: {
|
|
150
|
+
LOW_RES: {
|
|
151
|
+
url: 'trending_footwear_mobile_low.jpeg',
|
|
152
|
+
},
|
|
153
|
+
MOBILE_WEBP_LOW_RES: {
|
|
154
|
+
url: 'trending_footwear_mobile_low.jpeg',
|
|
155
|
+
},
|
|
156
|
+
MOBILE_WEBP_HI_RES: {
|
|
157
|
+
url: 'trending_footwear_mobile_high.jpeg',
|
|
158
|
+
},
|
|
159
|
+
WEBP_LOW_RES: {
|
|
160
|
+
url: 'trending_footwear_pc_low.jpeg',
|
|
161
|
+
},
|
|
162
|
+
WEBP_HI_2X_RES: {
|
|
163
|
+
url: 'trending_footwear_pc_high.jpeg',
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
borderInfo: {},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
124
169
|
},
|
|
125
170
|
},
|
|
126
|
-
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
image_link_1: {
|
|
130
|
-
type: 'TEXTAREA',
|
|
131
|
-
text: '$label.showcase_1.image_link_1.text',
|
|
171
|
+
],
|
|
132
172
|
},
|
|
133
173
|
},
|
|
134
174
|
design: {
|