@akinon/projectzero 1.36.0-rc.2 ā 1.36.0
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/CHANGELOG.md +1 -43
- package/app-template/CHANGELOG.md +16 -347
- package/app-template/package.json +10 -10
- package/app-template/public/locales/en/account.json +4 -4
- package/app-template/public/locales/tr/account.json +1 -1
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/coupons/page.tsx +4 -4
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/profile/page.tsx +0 -1
- package/app-template/src/app/[commerce]/[locale]/[currency]/orders/completed/[token]/page.tsx +8 -12
- package/app-template/src/components/checkbox.tsx +2 -2
- package/app-template/src/components/input.tsx +7 -19
- package/app-template/src/components/price.tsx +3 -3
- package/app-template/src/views/account/contact-form.tsx +6 -22
- package/app-template/src/views/account/favourite-products/favourite-products-list.tsx +1 -5
- package/app-template/src/views/category/filters/index.tsx +1 -1
- package/app-template/tsconfig.json +4 -14
- package/commands/create.ts +5 -29
- package/dist/commands/create.js +5 -25
- package/package.json +1 -1
- package/app-template/src/app/[commerce]/[locale]/[currency]/[...prettyurl]/page.tsx +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
# @akinon/projectzero
|
|
2
2
|
|
|
3
|
-
## 1.36.0
|
|
4
|
-
|
|
5
|
-
## 1.36.0-rc.1
|
|
6
|
-
|
|
7
|
-
### Minor Changes
|
|
8
|
-
|
|
9
|
-
- 00ffde2: ZERO-2637: enhance create command with improved messaging
|
|
10
|
-
|
|
11
|
-
## 1.36.0-rc.0
|
|
12
|
-
|
|
13
|
-
### Minor Changes
|
|
14
|
-
|
|
15
|
-
- 9b6bf91: ZERO-2660: Change campaings to campaigns
|
|
3
|
+
## 1.36.0
|
|
16
4
|
|
|
17
5
|
## 1.35.0
|
|
18
6
|
|
|
@@ -23,36 +11,6 @@
|
|
|
23
11
|
- cd78ddc: ZERO-2661: rename .npmignore to .gitignore during project creation
|
|
24
12
|
- 735f4f0: ZERO-2661: create .npmignore in app-template
|
|
25
13
|
|
|
26
|
-
## 1.34.0-rc.16
|
|
27
|
-
|
|
28
|
-
### Minor Changes
|
|
29
|
-
|
|
30
|
-
- cd78ddc: ZERO-2661: rename .npmignore to .gitignore during project creation
|
|
31
|
-
|
|
32
|
-
## 1.34.0-rc.15
|
|
33
|
-
|
|
34
|
-
### Minor Changes
|
|
35
|
-
|
|
36
|
-
- 735f4f0: ZERO-2661: create .npmignore in app-template
|
|
37
|
-
|
|
38
|
-
## 1.34.0-rc.14
|
|
39
|
-
|
|
40
|
-
## 1.34.0-rc.13
|
|
41
|
-
|
|
42
|
-
## 1.34.0-rc.12
|
|
43
|
-
|
|
44
|
-
## 1.34.0-rc.11
|
|
45
|
-
|
|
46
|
-
## 1.34.0-rc.10
|
|
47
|
-
|
|
48
|
-
## 1.34.0-rc.9
|
|
49
|
-
|
|
50
|
-
## 1.34.0-rc.8
|
|
51
|
-
|
|
52
|
-
## 1.34.0-rc.7
|
|
53
|
-
|
|
54
|
-
## 1.34.0-rc.6
|
|
55
|
-
|
|
56
14
|
## 1.33.2
|
|
57
15
|
|
|
58
16
|
### Patch Changes
|
|
@@ -1,78 +1,35 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
-
## 1.36.0
|
|
3
|
+
## 1.36.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- dff0d59: ZERO-2659: add formData support to proxy api requests
|
|
8
|
-
|
|
9
|
-
### Patch Changes
|
|
10
|
-
|
|
11
|
-
- Updated dependencies [dff0d59]
|
|
12
|
-
- @akinon/next@1.36.0-rc.2
|
|
13
|
-
- @akinon/pz-b2b@1.36.0-rc.2
|
|
14
|
-
- @akinon/pz-gpay@1.36.0-rc.2
|
|
15
|
-
- @akinon/pz-masterpass@1.36.0-rc.2
|
|
16
|
-
- @akinon/pz-one-click-checkout@1.36.0-rc.2
|
|
17
|
-
- @akinon/pz-otp@1.36.0-rc.2
|
|
18
|
-
- @akinon/pz-pay-on-delivery@1.36.0-rc.2
|
|
19
|
-
|
|
20
|
-
## 1.36.0-rc.1
|
|
21
|
-
|
|
22
|
-
### Patch Changes
|
|
23
|
-
|
|
24
|
-
- @akinon/next@1.36.0-rc.1
|
|
25
|
-
- @akinon/pz-b2b@1.36.0-rc.1
|
|
26
|
-
- @akinon/pz-gpay@1.36.0-rc.1
|
|
27
|
-
- @akinon/pz-masterpass@1.36.0-rc.1
|
|
28
|
-
- @akinon/pz-one-click-checkout@1.36.0-rc.1
|
|
29
|
-
- @akinon/pz-otp@1.36.0-rc.1
|
|
30
|
-
- @akinon/pz-pay-on-delivery@1.36.0-rc.1
|
|
31
|
-
|
|
32
|
-
## 1.36.0-rc.0
|
|
33
|
-
|
|
34
|
-
### Minor Changes
|
|
35
|
-
|
|
36
|
-
- 27a5296: ZERO-2631:Fix Checkbox Click
|
|
37
7
|
- ebb63ce: ZERO-2525: Fix category facet removal bug and add close icon to active filters
|
|
38
|
-
- 9b6bf91: ZERO-2660: Change campaings to campaigns
|
|
39
|
-
- 74a1269: ZERO-2658:Edit product name clickability on completed order page
|
|
40
8
|
- 0d0f36c: ZERO-2598: Fix eslint warnings and update dependencies
|
|
41
|
-
- 91265bb: ZERO-2551: Improve pretty url and caching performance
|
|
42
|
-
- 902d828: ZERO-2621:edit position of loaderSpinner in favorites page
|
|
43
9
|
- 3420416: ZERO-2533: extend eslint config from @akinon/next
|
|
44
|
-
- beb499e: ZERO-2551: Add new tsconfig paths
|
|
45
10
|
- 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
|
|
46
11
|
- 202f84e: ZERO-2569: Fix static keys
|
|
47
|
-
- 4614eee: ZERO-2602: The script that checks the build for standalone projects
|
|
48
|
-
- f046f8e: ZERO-2575: update version for react-number-format
|
|
49
12
|
- 12c10a4: ZERO-2570: Category filters routes to absolute url
|
|
50
13
|
|
|
51
14
|
### Patch Changes
|
|
52
15
|
|
|
53
|
-
- Updated dependencies [a4c8d6a]
|
|
54
16
|
- Updated dependencies [8e6e8cf]
|
|
55
|
-
- Updated dependencies [c53ef7b]
|
|
56
17
|
- Updated dependencies [ebb63ce]
|
|
57
18
|
- Updated dependencies [7cebe87]
|
|
58
19
|
- Updated dependencies [616690d]
|
|
59
|
-
- Updated dependencies [91265bb]
|
|
60
20
|
- Updated dependencies [59fb7c3]
|
|
61
|
-
- Updated dependencies [bbe18b9]
|
|
62
21
|
- Updated dependencies [3420416]
|
|
63
|
-
- Updated dependencies [beb499e]
|
|
64
22
|
- Updated dependencies [6c18543]
|
|
65
23
|
- Updated dependencies [40ad73e]
|
|
66
|
-
- Updated dependencies [
|
|
67
|
-
- Updated dependencies [f046f8e]
|
|
24
|
+
- Updated dependencies [d1eec6b]
|
|
68
25
|
- Updated dependencies [3e68768]
|
|
69
|
-
- @akinon/next@1.36.0
|
|
70
|
-
- @akinon/pz-one-click-checkout@1.36.0
|
|
71
|
-
- @akinon/pz-b2b@1.36.0
|
|
72
|
-
- @akinon/pz-gpay@1.36.0
|
|
73
|
-
- @akinon/pz-masterpass@1.36.0
|
|
74
|
-
- @akinon/pz-otp@1.36.0
|
|
75
|
-
- @akinon/pz-pay-on-delivery@1.36.0
|
|
26
|
+
- @akinon/next@1.36.0
|
|
27
|
+
- @akinon/pz-one-click-checkout@1.36.0
|
|
28
|
+
- @akinon/pz-b2b@1.36.0
|
|
29
|
+
- @akinon/pz-gpay@1.36.0
|
|
30
|
+
- @akinon/pz-masterpass@1.36.0
|
|
31
|
+
- @akinon/pz-otp@1.36.0
|
|
32
|
+
- @akinon/pz-pay-on-delivery@1.36.0
|
|
76
33
|
|
|
77
34
|
## 1.35.0
|
|
78
35
|
|
|
@@ -103,301 +60,13 @@
|
|
|
103
60
|
|
|
104
61
|
### Patch Changes
|
|
105
62
|
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
- Updated dependencies [616690d]
|
|
114
|
-
- Updated dependencies [f3b595e]
|
|
115
|
-
- Updated dependencies [91265bb]
|
|
116
|
-
- Updated dependencies [59fb7c3]
|
|
117
|
-
- Updated dependencies [bbe18b9]
|
|
118
|
-
- Updated dependencies [f0c23bc]
|
|
119
|
-
- Updated dependencies [3420416]
|
|
120
|
-
- Updated dependencies [495d155]
|
|
121
|
-
- Updated dependencies [beb499e]
|
|
122
|
-
- Updated dependencies [6c18543]
|
|
123
|
-
- Updated dependencies [40ad73e]
|
|
124
|
-
- Updated dependencies [495d155]
|
|
125
|
-
- Updated dependencies [f046f8e]
|
|
126
|
-
- Updated dependencies [6b2972b]
|
|
127
|
-
- Updated dependencies [3e68768]
|
|
128
|
-
- @akinon/next@1.34.0-rc.20
|
|
129
|
-
- @akinon/pz-masterpass@1.34.0-rc.20
|
|
130
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.20
|
|
131
|
-
- @akinon/pz-b2b@1.34.0-rc.20
|
|
132
|
-
- @akinon/pz-gpay@1.34.0-rc.20
|
|
133
|
-
- @akinon/pz-otp@1.34.0-rc.20
|
|
134
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.20
|
|
135
|
-
|
|
136
|
-
## 1.34.0-rc.19
|
|
137
|
-
|
|
138
|
-
### Patch Changes
|
|
139
|
-
|
|
140
|
-
- Updated dependencies [c53ef7b]
|
|
141
|
-
- @akinon/next@1.34.0-rc.19
|
|
142
|
-
- @akinon/pz-b2b@1.34.0-rc.19
|
|
143
|
-
- @akinon/pz-gpay@1.34.0-rc.19
|
|
144
|
-
- @akinon/pz-masterpass@1.34.0-rc.19
|
|
145
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.19
|
|
146
|
-
- @akinon/pz-otp@1.34.0-rc.19
|
|
147
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.19
|
|
148
|
-
|
|
149
|
-
## 1.34.0-rc.18
|
|
150
|
-
|
|
151
|
-
### Minor Changes
|
|
152
|
-
|
|
153
|
-
- 9b6bf91: ZERO-2660: Change campaings to campaigns
|
|
154
|
-
- 902d828: ZERO-2621:edit position of loaderSpinner in favorites page
|
|
155
|
-
|
|
156
|
-
### Patch Changes
|
|
157
|
-
|
|
158
|
-
- Updated dependencies [a4c8d6a]
|
|
159
|
-
- @akinon/next@1.34.0-rc.18
|
|
160
|
-
- @akinon/pz-b2b@1.34.0-rc.18
|
|
161
|
-
- @akinon/pz-gpay@1.34.0-rc.18
|
|
162
|
-
- @akinon/pz-masterpass@1.34.0-rc.18
|
|
163
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.18
|
|
164
|
-
- @akinon/pz-otp@1.34.0-rc.18
|
|
165
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.18
|
|
166
|
-
|
|
167
|
-
## 1.34.0-rc.17
|
|
168
|
-
|
|
169
|
-
### Minor Changes
|
|
170
|
-
|
|
171
|
-
- 567e4c1: ZERO-2580:Add checked attribute from props to checkbox
|
|
172
|
-
- d09b677: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
|
|
173
|
-
- 27a5296: ZERO-2631:Fix Checkbox Click
|
|
174
|
-
- ebb63ce: ZERO-2525: Fix category facet removal bug and add close icon to active filters
|
|
175
|
-
- 74a1269: ZERO-2658:Edit product name clickability on completed order page
|
|
176
|
-
- 0d0f36c: ZERO-2598: Fix eslint warnings and update dependencies
|
|
177
|
-
- 91265bb: ZERO-2551: Improve pretty url and caching performance
|
|
178
|
-
- f0c23bc: ZERO-2135: add custom not found page
|
|
179
|
-
- 3420416: ZERO-2533: extend eslint config from @akinon/next
|
|
180
|
-
- beb499e: ZERO-2551: Add new tsconfig paths
|
|
181
|
-
- 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
|
|
182
|
-
- 202f84e: ZERO-2569: Fix static keys
|
|
183
|
-
- 4614eee: ZERO-2602: The script that checks the build for standalone projects
|
|
184
|
-
- f046f8e: ZERO-2575: update version for react-number-format
|
|
185
|
-
- 12c10a4: ZERO-2570: Category filters routes to absolute url
|
|
186
|
-
|
|
187
|
-
### Patch Changes
|
|
188
|
-
|
|
189
|
-
- Updated dependencies [d09b677]
|
|
190
|
-
- Updated dependencies [6d4aadb]
|
|
191
|
-
- Updated dependencies [8e6e8cf]
|
|
192
|
-
- Updated dependencies [ebb63ce]
|
|
193
|
-
- Updated dependencies [7cebe87]
|
|
194
|
-
- Updated dependencies [616690d]
|
|
195
|
-
- Updated dependencies [f3b595e]
|
|
196
|
-
- Updated dependencies [91265bb]
|
|
197
|
-
- Updated dependencies [59fb7c3]
|
|
198
|
-
- Updated dependencies [bbe18b9]
|
|
199
|
-
- Updated dependencies [f0c23bc]
|
|
200
|
-
- Updated dependencies [3420416]
|
|
201
|
-
- Updated dependencies [495d155]
|
|
202
|
-
- Updated dependencies [beb499e]
|
|
203
|
-
- Updated dependencies [6c18543]
|
|
204
|
-
- Updated dependencies [40ad73e]
|
|
205
|
-
- Updated dependencies [495d155]
|
|
206
|
-
- Updated dependencies [f046f8e]
|
|
207
|
-
- Updated dependencies [6b2972b]
|
|
208
|
-
- Updated dependencies [3e68768]
|
|
209
|
-
- @akinon/next@1.34.0-rc.17
|
|
210
|
-
- @akinon/pz-masterpass@1.34.0-rc.17
|
|
211
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.17
|
|
212
|
-
- @akinon/pz-b2b@1.34.0-rc.17
|
|
213
|
-
- @akinon/pz-gpay@1.34.0-rc.17
|
|
214
|
-
- @akinon/pz-otp@1.34.0-rc.17
|
|
215
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.17
|
|
216
|
-
|
|
217
|
-
## 1.34.0-rc.16
|
|
218
|
-
|
|
219
|
-
### Patch Changes
|
|
220
|
-
|
|
221
|
-
- @akinon/next@1.34.0-rc.16
|
|
222
|
-
- @akinon/pz-b2b@1.34.0-rc.16
|
|
223
|
-
- @akinon/pz-gpay@1.34.0-rc.16
|
|
224
|
-
- @akinon/pz-masterpass@1.34.0-rc.16
|
|
225
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.16
|
|
226
|
-
- @akinon/pz-otp@1.34.0-rc.16
|
|
227
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.16
|
|
228
|
-
|
|
229
|
-
## 1.34.0-rc.15
|
|
230
|
-
|
|
231
|
-
### Patch Changes
|
|
232
|
-
|
|
233
|
-
- @akinon/next@1.34.0-rc.15
|
|
234
|
-
- @akinon/pz-b2b@1.34.0-rc.15
|
|
235
|
-
- @akinon/pz-gpay@1.34.0-rc.15
|
|
236
|
-
- @akinon/pz-masterpass@1.34.0-rc.15
|
|
237
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.15
|
|
238
|
-
- @akinon/pz-otp@1.34.0-rc.15
|
|
239
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.15
|
|
240
|
-
|
|
241
|
-
## 1.34.0-rc.14
|
|
242
|
-
|
|
243
|
-
### Minor Changes
|
|
244
|
-
|
|
245
|
-
- 4614eee: ZERO-2602: The script that checks the build for standalone projects
|
|
246
|
-
|
|
247
|
-
### Patch Changes
|
|
248
|
-
|
|
249
|
-
- @akinon/next@1.34.0-rc.14
|
|
250
|
-
- @akinon/pz-b2b@1.34.0-rc.14
|
|
251
|
-
- @akinon/pz-gpay@1.34.0-rc.14
|
|
252
|
-
- @akinon/pz-masterpass@1.34.0-rc.14
|
|
253
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.14
|
|
254
|
-
- @akinon/pz-otp@1.34.0-rc.14
|
|
255
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.14
|
|
256
|
-
|
|
257
|
-
## 1.34.0-rc.13
|
|
258
|
-
|
|
259
|
-
### Minor Changes
|
|
260
|
-
|
|
261
|
-
- 74a1269: ZERO-2658:Edit product name clickability on completed order page
|
|
262
|
-
|
|
263
|
-
### Patch Changes
|
|
264
|
-
|
|
265
|
-
- @akinon/next@1.34.0-rc.13
|
|
266
|
-
- @akinon/pz-b2b@1.34.0-rc.13
|
|
267
|
-
- @akinon/pz-gpay@1.34.0-rc.13
|
|
268
|
-
- @akinon/pz-masterpass@1.34.0-rc.13
|
|
269
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.13
|
|
270
|
-
- @akinon/pz-otp@1.34.0-rc.13
|
|
271
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.13
|
|
272
|
-
|
|
273
|
-
## 1.34.0-rc.12
|
|
274
|
-
|
|
275
|
-
### Patch Changes
|
|
276
|
-
|
|
277
|
-
- Updated dependencies [616690d]
|
|
278
|
-
- @akinon/next@1.34.0-rc.12
|
|
279
|
-
- @akinon/pz-b2b@1.34.0-rc.12
|
|
280
|
-
- @akinon/pz-gpay@1.34.0-rc.12
|
|
281
|
-
- @akinon/pz-masterpass@1.34.0-rc.12
|
|
282
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.12
|
|
283
|
-
- @akinon/pz-otp@1.34.0-rc.12
|
|
284
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.12
|
|
285
|
-
|
|
286
|
-
## 1.34.0-rc.11
|
|
287
|
-
|
|
288
|
-
### Patch Changes
|
|
289
|
-
|
|
290
|
-
- Updated dependencies [8e6e8cf]
|
|
291
|
-
- @akinon/next@1.34.0-rc.11
|
|
292
|
-
- @akinon/pz-b2b@1.34.0-rc.11
|
|
293
|
-
- @akinon/pz-gpay@1.34.0-rc.11
|
|
294
|
-
- @akinon/pz-masterpass@1.34.0-rc.11
|
|
295
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.11
|
|
296
|
-
- @akinon/pz-otp@1.34.0-rc.11
|
|
297
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.11
|
|
298
|
-
|
|
299
|
-
## 1.34.0-rc.10
|
|
300
|
-
|
|
301
|
-
### Patch Changes
|
|
302
|
-
|
|
303
|
-
- Updated dependencies [bbe18b9]
|
|
304
|
-
- @akinon/next@1.34.0-rc.10
|
|
305
|
-
- @akinon/pz-b2b@1.34.0-rc.10
|
|
306
|
-
- @akinon/pz-gpay@1.34.0-rc.10
|
|
307
|
-
- @akinon/pz-masterpass@1.34.0-rc.10
|
|
308
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.10
|
|
309
|
-
- @akinon/pz-otp@1.34.0-rc.10
|
|
310
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.10
|
|
311
|
-
|
|
312
|
-
## 1.34.0-rc.9
|
|
313
|
-
|
|
314
|
-
### Minor Changes
|
|
315
|
-
|
|
316
|
-
- beb499e: ZERO-2551: Add new tsconfig paths
|
|
317
|
-
|
|
318
|
-
### Patch Changes
|
|
319
|
-
|
|
320
|
-
- Updated dependencies [beb499e]
|
|
321
|
-
- @akinon/next@1.34.0-rc.9
|
|
322
|
-
- @akinon/pz-b2b@1.34.0-rc.9
|
|
323
|
-
- @akinon/pz-gpay@1.34.0-rc.9
|
|
324
|
-
- @akinon/pz-masterpass@1.34.0-rc.9
|
|
325
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.9
|
|
326
|
-
- @akinon/pz-otp@1.34.0-rc.9
|
|
327
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.9
|
|
328
|
-
|
|
329
|
-
## 1.34.0-rc.8
|
|
330
|
-
|
|
331
|
-
### Minor Changes
|
|
332
|
-
|
|
333
|
-
- 91265bb: ZERO-2551: Improve pretty url and caching performance
|
|
334
|
-
|
|
335
|
-
### Patch Changes
|
|
336
|
-
|
|
337
|
-
- Updated dependencies [91265bb]
|
|
338
|
-
- @akinon/next@1.34.0-rc.8
|
|
339
|
-
- @akinon/pz-b2b@1.34.0-rc.8
|
|
340
|
-
- @akinon/pz-gpay@1.34.0-rc.8
|
|
341
|
-
- @akinon/pz-masterpass@1.34.0-rc.8
|
|
342
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.8
|
|
343
|
-
- @akinon/pz-otp@1.34.0-rc.8
|
|
344
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.8
|
|
345
|
-
|
|
346
|
-
## 1.34.0-rc.7
|
|
347
|
-
|
|
348
|
-
### Minor Changes
|
|
349
|
-
|
|
350
|
-
- 0d0f36c: ZERO-2598: Fix eslint warnings and update dependencies
|
|
351
|
-
|
|
352
|
-
### Patch Changes
|
|
353
|
-
|
|
354
|
-
- @akinon/next@1.34.0-rc.7
|
|
355
|
-
- @akinon/pz-b2b@1.34.0-rc.7
|
|
356
|
-
- @akinon/pz-gpay@1.34.0-rc.7
|
|
357
|
-
- @akinon/pz-masterpass@1.34.0-rc.7
|
|
358
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.7
|
|
359
|
-
- @akinon/pz-otp@1.34.0-rc.7
|
|
360
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.7
|
|
361
|
-
|
|
362
|
-
## 1.34.0-rc.6
|
|
363
|
-
|
|
364
|
-
### Minor Changes
|
|
365
|
-
|
|
366
|
-
- 567e4c1: ZERO-2580:Add checked attribute from props to checkbox
|
|
367
|
-
- d09b677: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
|
|
368
|
-
- 27a5296: ZERO-2631:Fix Checkbox Click
|
|
369
|
-
- ebb63ce: ZERO-2525: Fix category facet removal bug and add close icon to active filters
|
|
370
|
-
- f0c23bc: ZERO-2135: add custom not found page
|
|
371
|
-
- 3420416: ZERO-2533: extend eslint config from @akinon/next
|
|
372
|
-
- 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
|
|
373
|
-
- 202f84e: ZERO-2569: Fix static keys
|
|
374
|
-
- f046f8e: ZERO-2575: update version for react-number-format
|
|
375
|
-
- 12c10a4: ZERO-2570: Category filters routes to absolute url
|
|
376
|
-
|
|
377
|
-
### Patch Changes
|
|
378
|
-
|
|
379
|
-
- Updated dependencies [d09b677]
|
|
380
|
-
- Updated dependencies [6d4aadb]
|
|
381
|
-
- Updated dependencies [ebb63ce]
|
|
382
|
-
- Updated dependencies [7cebe87]
|
|
383
|
-
- Updated dependencies [f3b595e]
|
|
384
|
-
- Updated dependencies [59fb7c3]
|
|
385
|
-
- Updated dependencies [f0c23bc]
|
|
386
|
-
- Updated dependencies [3420416]
|
|
387
|
-
- Updated dependencies [495d155]
|
|
388
|
-
- Updated dependencies [6c18543]
|
|
389
|
-
- Updated dependencies [40ad73e]
|
|
390
|
-
- Updated dependencies [495d155]
|
|
391
|
-
- Updated dependencies [f046f8e]
|
|
392
|
-
- Updated dependencies [6b2972b]
|
|
393
|
-
- Updated dependencies [3e68768]
|
|
394
|
-
- @akinon/next@1.34.0-rc.6
|
|
395
|
-
- @akinon/pz-masterpass@1.34.0-rc.6
|
|
396
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.6
|
|
397
|
-
- @akinon/pz-b2b@1.34.0-rc.6
|
|
398
|
-
- @akinon/pz-gpay@1.34.0-rc.6
|
|
399
|
-
- @akinon/pz-otp@1.34.0-rc.6
|
|
400
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.6
|
|
63
|
+
- @akinon/next@1.34.0
|
|
64
|
+
- @akinon/pz-b2b@1.34.0
|
|
65
|
+
- @akinon/pz-gpay@1.34.0
|
|
66
|
+
- @akinon/pz-masterpass@1.34.0
|
|
67
|
+
- @akinon/pz-one-click-checkout@1.34.0
|
|
68
|
+
- @akinon/pz-otp@1.34.0
|
|
69
|
+
- @akinon/pz-pay-on-delivery@1.34.0
|
|
401
70
|
|
|
402
71
|
## 1.33.2
|
|
403
72
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "1.36.0
|
|
3
|
+
"version": "1.36.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"prestart": "pz-prestart"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@akinon/next": "1.36.0
|
|
26
|
-
"@akinon/pz-b2b": "1.36.0
|
|
27
|
-
"@akinon/pz-gpay": "1.36.0
|
|
28
|
-
"@akinon/pz-masterpass": "1.36.0
|
|
29
|
-
"@akinon/pz-one-click-checkout": "1.36.0
|
|
30
|
-
"@akinon/pz-otp": "1.36.0
|
|
31
|
-
"@akinon/pz-pay-on-delivery": "1.36.0
|
|
25
|
+
"@akinon/next": "1.36.0",
|
|
26
|
+
"@akinon/pz-b2b": "1.36.0",
|
|
27
|
+
"@akinon/pz-gpay": "1.36.0",
|
|
28
|
+
"@akinon/pz-masterpass": "1.36.0",
|
|
29
|
+
"@akinon/pz-one-click-checkout": "1.36.0",
|
|
30
|
+
"@akinon/pz-otp": "1.36.0",
|
|
31
|
+
"@akinon/pz-pay-on-delivery": "1.36.0",
|
|
32
32
|
"@hookform/resolvers": "2.9.0",
|
|
33
33
|
"@next/third-parties": "14.1.0",
|
|
34
34
|
"@react-google-maps/api": "2.17.1",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"yup": "0.32.11"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@akinon/eslint-plugin-projectzero": "1.36.0
|
|
56
|
+
"@akinon/eslint-plugin-projectzero": "1.36.0",
|
|
57
57
|
"@semantic-release/changelog": "6.0.2",
|
|
58
58
|
"@semantic-release/exec": "6.0.3",
|
|
59
59
|
"@semantic-release/git": "10.0.1",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"jest-css-modules-transform": "4.3.0",
|
|
81
81
|
"lint-staged": "13.1.0",
|
|
82
82
|
"prettier": "2.6.2",
|
|
83
|
-
"react-number-format": "
|
|
83
|
+
"react-number-format": "4.9.3",
|
|
84
84
|
"sass": "1.49.9",
|
|
85
85
|
"semantic-release": "19.0.5",
|
|
86
86
|
"server-only": "0.0.1",
|
|
@@ -286,11 +286,11 @@
|
|
|
286
286
|
"empty_coupon": "You don't have any coupons"
|
|
287
287
|
},
|
|
288
288
|
"title": {
|
|
289
|
-
"
|
|
289
|
+
"campaings": {
|
|
290
290
|
"active": "Active Campaigns",
|
|
291
|
-
"to_be_active": "
|
|
292
|
-
"expired": "Expired
|
|
293
|
-
"used": "Used
|
|
291
|
+
"to_be_active": "Campaings to be Active",
|
|
292
|
+
"expired": "Expired Campaings",
|
|
293
|
+
"used": "Used Campaings"
|
|
294
294
|
},
|
|
295
295
|
"coupons": {
|
|
296
296
|
"active": "Active Coupons",
|
|
@@ -51,7 +51,7 @@ export default function Page() {
|
|
|
51
51
|
{basketOffersLoading && <LoaderSpinner className="mb-8" />}
|
|
52
52
|
{basketOffersSuccess && (
|
|
53
53
|
<CouponItem
|
|
54
|
-
mainTitle={t('account.my_vouchers.title.
|
|
54
|
+
mainTitle={t('account.my_vouchers.title.campaings.active')}
|
|
55
55
|
subTitles={[
|
|
56
56
|
t('account.my_vouchers.card.campaign_name'),
|
|
57
57
|
t('account.my_vouchers.card.starting_date'),
|
|
@@ -68,7 +68,7 @@ export default function Page() {
|
|
|
68
68
|
{futureBasketOffersLoading && <LoaderSpinner className="mb-8" />}
|
|
69
69
|
{futureBasketOffersSuccess && (
|
|
70
70
|
<CouponItem
|
|
71
|
-
mainTitle={t('account.my_vouchers.title.
|
|
71
|
+
mainTitle={t('account.my_vouchers.title.campaings.to_be_active')}
|
|
72
72
|
subTitles={[
|
|
73
73
|
t('account.my_vouchers.card.campaign_name'),
|
|
74
74
|
t('account.my_vouchers.card.starting_date'),
|
|
@@ -85,7 +85,7 @@ export default function Page() {
|
|
|
85
85
|
{expiredBasketOffersLoading && <LoaderSpinner className="mb-8" />}
|
|
86
86
|
{expiredBasketOffersSuccess && (
|
|
87
87
|
<CouponItem
|
|
88
|
-
mainTitle={t('account.my_vouchers.title.
|
|
88
|
+
mainTitle={t('account.my_vouchers.title.campaings.expired')}
|
|
89
89
|
subTitles={[
|
|
90
90
|
t('account.my_vouchers.card.campaign_name'),
|
|
91
91
|
t('account.my_vouchers.card.starting_date'),
|
|
@@ -102,7 +102,7 @@ export default function Page() {
|
|
|
102
102
|
{discountItemsLoading && <LoaderSpinner className="mb-8" />}
|
|
103
103
|
{discountItemsSuccess && (
|
|
104
104
|
<CouponItem
|
|
105
|
-
mainTitle={t('account.my_vouchers.title.
|
|
105
|
+
mainTitle={t('account.my_vouchers.title.campaings.used')}
|
|
106
106
|
subTitles={[
|
|
107
107
|
t('account.my_vouchers.card.campaign_name'),
|
|
108
108
|
t('account.my_vouchers.card.starting_date'),
|
package/app-template/src/app/[commerce]/[locale]/[currency]/orders/completed/[token]/page.tsx
CHANGED
|
@@ -182,25 +182,21 @@ const CheckoutCompleted = ({
|
|
|
182
182
|
}}
|
|
183
183
|
>
|
|
184
184
|
{data.order.orderitem_set.map((item) => (
|
|
185
|
-
<div
|
|
186
|
-
|
|
187
|
-
className="flex justify-between gap-x-4 w-full"
|
|
188
|
-
>
|
|
189
|
-
<Link
|
|
190
|
-
className="flex justify-between gap-x-4 flex-1 items-center transition-all text-xs text-black-800 hover:text-secondary"
|
|
191
|
-
href={item.product.absolute_url}
|
|
192
|
-
passHref
|
|
193
|
-
>
|
|
185
|
+
<div key={`order-item-${item.id}`} className="flex">
|
|
186
|
+
<Link href={item.product.absolute_url} passHref>
|
|
194
187
|
<Image
|
|
195
188
|
src={item.product.image}
|
|
196
189
|
alt={item.product.name}
|
|
197
190
|
width={64}
|
|
198
191
|
height={96}
|
|
199
192
|
/>
|
|
200
|
-
|
|
201
|
-
<span>{item.product.name}</span>
|
|
202
193
|
</Link>
|
|
203
|
-
<div className="flex justify-
|
|
194
|
+
<div className="flex justify-between flex-1 items-center ml-4">
|
|
195
|
+
<>
|
|
196
|
+
<div className="text-xs text-black-800 transition-all w-full hover:text-secondary">
|
|
197
|
+
{item.product.name}
|
|
198
|
+
</div>
|
|
199
|
+
</>
|
|
204
200
|
<div>
|
|
205
201
|
{item.retail_price !== item.price && (
|
|
206
202
|
<div className="text-black-800 line-through text-xs min-w-max sm:text-sm">
|
|
@@ -3,7 +3,7 @@ import { CheckboxProps } from '@theme/components/types';
|
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
|
|
5
5
|
const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>((props, ref) => {
|
|
6
|
-
const { children, checked
|
|
6
|
+
const { children, checked, error, ...rest } = props;
|
|
7
7
|
|
|
8
8
|
return (
|
|
9
9
|
<label className={twMerge('flex flex-col text-xs', props.className)}>
|
|
@@ -12,7 +12,7 @@ const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>((props, ref) => {
|
|
|
12
12
|
type="checkbox"
|
|
13
13
|
{...rest}
|
|
14
14
|
ref={ref}
|
|
15
|
-
|
|
15
|
+
checked={checked ?? false}
|
|
16
16
|
className="w-4 h-4 shrink-0"
|
|
17
17
|
/>
|
|
18
18
|
{children && <span className="ml-2">{children}</span>}
|
|
@@ -1,28 +1,17 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
|
-
import { forwardRef, FocusEvent, useState
|
|
2
|
+
import { forwardRef, FocusEvent, useState } from 'react';
|
|
3
3
|
import { Controller } from 'react-hook-form';
|
|
4
|
-
import {
|
|
4
|
+
import NumberFormat, { NumberFormatProps } from 'react-number-format';
|
|
5
5
|
import { InputProps } from '@theme/components/types';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
7
7
|
|
|
8
|
-
const PatternFormatWithRef = forwardRef(
|
|
9
|
-
(props: PatternFormatProps, ref: Ref<HTMLInputElement>) => {
|
|
10
|
-
return <PatternFormat {...props} getInputRef={ref} />;
|
|
11
|
-
}
|
|
12
|
-
);
|
|
13
|
-
PatternFormatWithRef.displayName = 'PatternFormatWithRef';
|
|
14
|
-
|
|
15
8
|
export const Input = forwardRef<
|
|
16
9
|
HTMLInputElement,
|
|
17
10
|
InputProps &
|
|
18
11
|
Pick<
|
|
19
|
-
|
|
20
|
-
'mask' | 'allowEmptyFormatting' | 'onValueChange'
|
|
21
|
-
>
|
|
22
|
-
format?: string;
|
|
23
|
-
defaultValue?: string;
|
|
24
|
-
type?: string;
|
|
25
|
-
}
|
|
12
|
+
NumberFormatProps,
|
|
13
|
+
'format' | 'mask' | 'allowEmptyFormatting' | 'onValueChange'
|
|
14
|
+
>
|
|
26
15
|
>((props, ref) => {
|
|
27
16
|
const [focused, setFocused] = useState(false);
|
|
28
17
|
const [hasValue, setHasValue] = useState(false);
|
|
@@ -48,7 +37,6 @@ export const Input = forwardRef<
|
|
|
48
37
|
),
|
|
49
38
|
props.className
|
|
50
39
|
);
|
|
51
|
-
|
|
52
40
|
const inputProps: any = {
|
|
53
41
|
id,
|
|
54
42
|
ref,
|
|
@@ -91,14 +79,14 @@ export const Input = forwardRef<
|
|
|
91
79
|
<Controller
|
|
92
80
|
name={props.name ?? ''}
|
|
93
81
|
control={props.control}
|
|
82
|
+
defaultValue={false}
|
|
94
83
|
render={({ field }) => (
|
|
95
|
-
<
|
|
84
|
+
<NumberFormat
|
|
96
85
|
format={format}
|
|
97
86
|
mask={mask ?? ''}
|
|
98
87
|
{...rest}
|
|
99
88
|
{...field}
|
|
100
89
|
{...inputProps}
|
|
101
|
-
type={props.type as 'text' | 'password' | 'tel'}
|
|
102
90
|
/>
|
|
103
91
|
)}
|
|
104
92
|
/>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import NumberFormat, { NumberFormatProps } from 'react-number-format';
|
|
3
3
|
import { getCurrency } from '@akinon/next/utils';
|
|
4
4
|
import { PriceProps } from '@theme/types';
|
|
5
5
|
import { useLocalization } from '@akinon/next/hooks';
|
|
6
6
|
|
|
7
|
-
export const Price = (props:
|
|
7
|
+
export const Price = (props: NumberFormatProps & PriceProps) => {
|
|
8
8
|
const {
|
|
9
9
|
value,
|
|
10
10
|
currencyCode,
|
|
@@ -38,7 +38,7 @@ export const Price = (props: NumericFormatProps & PriceProps) => {
|
|
|
38
38
|
);
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
|
-
<
|
|
41
|
+
<NumberFormat
|
|
42
42
|
value={useNegative ? `-${useNegativeSpace}${_value}` : _value}
|
|
43
43
|
{...{
|
|
44
44
|
[useCurrencyAfterPrice ? 'suffix' : 'prefix']: currency
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
Button,
|
|
4
4
|
FileInput,
|
|
5
5
|
Input,
|
|
6
|
-
Link,
|
|
7
6
|
LoaderSpinner,
|
|
8
|
-
Select
|
|
7
|
+
Select,
|
|
8
|
+
Link
|
|
9
9
|
} from '@theme/components';
|
|
10
10
|
import { useSession } from 'next-auth/react';
|
|
11
11
|
import { useEffect, useState } from 'react';
|
|
@@ -45,8 +45,7 @@ const contactFormSchema = (t) =>
|
|
|
45
45
|
.when('subject', {
|
|
46
46
|
is: (value) => value === '2',
|
|
47
47
|
then: yup.string().required(t('account.contact.form.error.required'))
|
|
48
|
-
})
|
|
49
|
-
file: yup.mixed()
|
|
48
|
+
})
|
|
50
49
|
});
|
|
51
50
|
|
|
52
51
|
const ContactForm = () => {
|
|
@@ -111,18 +110,8 @@ const ContactForm = () => {
|
|
|
111
110
|
resolver: yupResolver(contactFormSchema(t))
|
|
112
111
|
});
|
|
113
112
|
|
|
114
|
-
const onSubmit: SubmitHandler<ContactFormType> = (data
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
Object.keys(data ?? {}).forEach((key) => {
|
|
118
|
-
if (key === "file" && data[key]){
|
|
119
|
-
formData.append(key, data[key][0]);
|
|
120
|
-
} else if (data[key]) {
|
|
121
|
-
formData.append(key, data[key]);
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
sendContact(formData);
|
|
113
|
+
const onSubmit: SubmitHandler<ContactFormType> = (data) => {
|
|
114
|
+
sendContact(data);
|
|
126
115
|
};
|
|
127
116
|
|
|
128
117
|
const handleChange = (e) => {
|
|
@@ -253,12 +242,7 @@ const ContactForm = () => {
|
|
|
253
242
|
<label className="text-xs text-gray-800 mb-2 block">
|
|
254
243
|
{t('account.contact.form.file.title')}
|
|
255
244
|
</label>
|
|
256
|
-
<FileInput
|
|
257
|
-
name="file"
|
|
258
|
-
title="file"
|
|
259
|
-
className="w-full mb-5"
|
|
260
|
-
{...register('file')}
|
|
261
|
-
/>
|
|
245
|
+
<FileInput className="w-full mb-5" title="test" />
|
|
262
246
|
<Button type="submit" className="w-full font-medium">
|
|
263
247
|
{t('account.contact.form.submit_button')}
|
|
264
248
|
</Button>
|
|
@@ -30,11 +30,7 @@ const FavoriteProductsList = () => {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
if (isLoading || isFetching) {
|
|
33
|
-
return
|
|
34
|
-
<div className="flex items-center justify-center h-80">
|
|
35
|
-
<LoaderSpinner />
|
|
36
|
-
</div>
|
|
37
|
-
);
|
|
33
|
+
return <LoaderSpinner />; // TODO: Fix loader spinner position
|
|
38
34
|
}
|
|
39
35
|
|
|
40
36
|
return (
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
toggleFacet
|
|
15
15
|
} from '@theme/redux/reducers/category';
|
|
16
16
|
import CategoryActiveFilters from '@theme/views/category/category-active-filters';
|
|
17
|
-
import {
|
|
17
|
+
import { useMemo } from 'react';
|
|
18
18
|
import { commonProductAttributes } from '@theme/settings';
|
|
19
19
|
|
|
20
20
|
const COMPONENT_TYPES = {
|
|
@@ -3,19 +3,7 @@
|
|
|
3
3
|
"display": "Default",
|
|
4
4
|
"compilerOptions": {
|
|
5
5
|
"baseUrl": "./src",
|
|
6
|
-
"paths": {
|
|
7
|
-
"@theme/*": ["./*"],
|
|
8
|
-
"@root/*": ["./app/[commerce]/[locale]/[currency]/*"],
|
|
9
|
-
"@product/*": ["./app/[commerce]/[locale]/[currency]/product/*"],
|
|
10
|
-
"@group-product/*": [
|
|
11
|
-
"./app/[commerce]/[locale]/[currency]/group-product/*"
|
|
12
|
-
],
|
|
13
|
-
"@category/*": ["./app/[commerce]/[locale]/[currency]/category/*"],
|
|
14
|
-
"@special-page/*": [
|
|
15
|
-
"./app/[commerce]/[locale]/[currency]/special-page/*"
|
|
16
|
-
],
|
|
17
|
-
"@flat-page/*": ["./app/[commerce]/[locale]/[currency]/flat-page/*"]
|
|
18
|
-
},
|
|
6
|
+
"paths": { "@theme/*": ["./*"] },
|
|
19
7
|
"allowSyntheticDefaultImports": true,
|
|
20
8
|
"composite": false,
|
|
21
9
|
"declaration": true,
|
|
@@ -52,5 +40,7 @@
|
|
|
52
40
|
".next/types/**/*.ts",
|
|
53
41
|
"../../packages/**/*"
|
|
54
42
|
],
|
|
55
|
-
"exclude": ["node_modules",
|
|
43
|
+
"exclude": ["node_modules",
|
|
44
|
+
"../../packages/projectzero/app-template"
|
|
45
|
+
]
|
|
56
46
|
}
|
package/commands/create.ts
CHANGED
|
@@ -3,7 +3,6 @@ import * as fs from 'fs';
|
|
|
3
3
|
import * as readline from 'readline';
|
|
4
4
|
import { slugify } from '../utils';
|
|
5
5
|
|
|
6
|
-
const { execSync } = require('child_process');
|
|
7
6
|
const loadingSpinner = require('loading-spinner');
|
|
8
7
|
|
|
9
8
|
interface Question {
|
|
@@ -140,8 +139,7 @@ export default async (): Promise<void> => {
|
|
|
140
139
|
const answers = await getAnswers();
|
|
141
140
|
const brandName =
|
|
142
141
|
answers.brandName === '.' ? path.basename(workingDir) : answers.brandName;
|
|
143
|
-
const projectDir =
|
|
144
|
-
const relativeProjectDir = answers.brandName === '.' ? '.' : slugify(brandName);
|
|
142
|
+
const projectDir = path.resolve(workingDir, slugify(brandName));
|
|
145
143
|
|
|
146
144
|
if (!fs.existsSync(projectDir)) {
|
|
147
145
|
fs.mkdirSync(projectDir, { recursive: true });
|
|
@@ -174,34 +172,12 @@ export default async (): Promise<void> => {
|
|
|
174
172
|
name: slugify(brandName)
|
|
175
173
|
});
|
|
176
174
|
|
|
177
|
-
|
|
178
|
-
console.log('\x1b[34m%s\x1b[0m', '\nš Installing packages...\n');
|
|
179
|
-
|
|
180
|
-
execSync(`cd ${relativeProjectDir} && yarn install`, { stdio: 'ignore' });
|
|
181
|
-
|
|
182
175
|
loadingSpinner.stop();
|
|
183
176
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
\x1b[35m$ yarn dev\x1b[0m
|
|
190
|
-
\x1b[32mLaunches the development server.\x1b[0m
|
|
191
|
-
|
|
192
|
-
\x1b[35m$ yarn build\x1b[0m
|
|
193
|
-
\x1b[32mCompiles the app into static files for production.\x1b[0m
|
|
194
|
-
|
|
195
|
-
\x1b[35m$ yarn start\x1b[0m
|
|
196
|
-
\x1b[32mRuns the production server.\x1b[0m
|
|
197
|
-
`;
|
|
198
|
-
|
|
199
|
-
const getStartedMessage = answers.brandName === '.'
|
|
200
|
-
? 'To get started, you can type:\n\n \x1b[35m$ yarn dev\x1b[0m\n'
|
|
201
|
-
: `To get started, you can type:\n\n \x1b[35m$ cd ${relativeProjectDir}\x1b[0m\n \x1b[35m$ yarn dev\x1b[0m\n`;
|
|
177
|
+
console.log(
|
|
178
|
+
'\x1b[32m%s\x1b[0m',
|
|
179
|
+
`\n ā ${answers.brandName} project is ready.\n`
|
|
180
|
+
);
|
|
202
181
|
|
|
203
|
-
console.log('\x1b[32m%s\x1b[0m', successMessage);
|
|
204
|
-
console.log('\x1b[36m%s\x1b[0m', getStartedMessage);
|
|
205
|
-
console.log('\x1b[33m%s\x1b[0m', 'Project setup is complete\n');
|
|
206
182
|
console.log('\x1b[33m%s\x1b[0m', 'Project Zero - Akinon\n');
|
|
207
183
|
};
|
package/dist/commands/create.js
CHANGED
|
@@ -39,7 +39,6 @@ const path_1 = __importDefault(require("path"));
|
|
|
39
39
|
const fs = __importStar(require("fs"));
|
|
40
40
|
const readline = __importStar(require("readline"));
|
|
41
41
|
const utils_1 = require("../utils");
|
|
42
|
-
const { execSync } = require('child_process');
|
|
43
42
|
const loadingSpinner = require('loading-spinner');
|
|
44
43
|
const workingDir = path_1.default.resolve(process.cwd());
|
|
45
44
|
const rl = readline.createInterface({
|
|
@@ -119,6 +118,9 @@ function checkGitignore(projectDir) {
|
|
|
119
118
|
if (!fs.existsSync(gitignorePath)) {
|
|
120
119
|
fs.renameSync(npmignorePath, gitignorePath);
|
|
121
120
|
}
|
|
121
|
+
else if (fs.existsSync(npmignorePath)) {
|
|
122
|
+
fs.rmSync(npmignorePath);
|
|
123
|
+
}
|
|
122
124
|
}
|
|
123
125
|
exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
124
126
|
const minNodeVersion = 18;
|
|
@@ -129,8 +131,7 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
129
131
|
}
|
|
130
132
|
const answers = yield getAnswers();
|
|
131
133
|
const brandName = answers.brandName === '.' ? path_1.default.basename(workingDir) : answers.brandName;
|
|
132
|
-
const projectDir =
|
|
133
|
-
const relativeProjectDir = answers.brandName === '.' ? '.' : (0, utils_1.slugify)(brandName);
|
|
134
|
+
const projectDir = path_1.default.resolve(workingDir, (0, utils_1.slugify)(brandName));
|
|
134
135
|
if (!fs.existsSync(projectDir)) {
|
|
135
136
|
fs.mkdirSync(projectDir, { recursive: true });
|
|
136
137
|
}
|
|
@@ -152,28 +153,7 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
152
153
|
updateFileContents(path_1.default.join(projectDir, 'package.json'), {
|
|
153
154
|
name: (0, utils_1.slugify)(brandName)
|
|
154
155
|
});
|
|
155
|
-
console.log('\x1b[34m%s\x1b[0m', '\nš Installing packages...\n');
|
|
156
|
-
execSync(`cd ${relativeProjectDir} && yarn install`, { stdio: 'ignore' });
|
|
157
156
|
loadingSpinner.stop();
|
|
158
|
-
|
|
159
|
-
⨠${brandName} project is ready at \x1b[4m${projectDir}\x1b[0m
|
|
160
|
-
|
|
161
|
-
Within the directory, the following commands are available:
|
|
162
|
-
|
|
163
|
-
\x1b[35m$ yarn dev\x1b[0m
|
|
164
|
-
\x1b[32mLaunches the development server.\x1b[0m
|
|
165
|
-
|
|
166
|
-
\x1b[35m$ yarn build\x1b[0m
|
|
167
|
-
\x1b[32mCompiles the app into static files for production.\x1b[0m
|
|
168
|
-
|
|
169
|
-
\x1b[35m$ yarn start\x1b[0m
|
|
170
|
-
\x1b[32mRuns the production server.\x1b[0m
|
|
171
|
-
`;
|
|
172
|
-
const getStartedMessage = answers.brandName === '.'
|
|
173
|
-
? 'To get started, you can type:\n\n \x1b[35m$ yarn dev\x1b[0m\n'
|
|
174
|
-
: `To get started, you can type:\n\n \x1b[35m$ cd ${relativeProjectDir}\x1b[0m\n \x1b[35m$ yarn dev\x1b[0m\n`;
|
|
175
|
-
console.log('\x1b[32m%s\x1b[0m', successMessage);
|
|
176
|
-
console.log('\x1b[36m%s\x1b[0m', getStartedMessage);
|
|
177
|
-
console.log('\x1b[33m%s\x1b[0m', 'Project setup is complete\n');
|
|
157
|
+
console.log('\x1b[32m%s\x1b[0m', `\n ā ${answers.brandName} project is ready.\n`);
|
|
178
158
|
console.log('\x1b[33m%s\x1b[0m', 'Project Zero - Akinon\n');
|
|
179
159
|
});
|
package/package.json
CHANGED