@magento/venia-ui 11.4.0-beta.1 → 11.5.0-alpha.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/lib/RootComponents/Category/__tests__/__snapshots__/categoryContent.spec.js.snap +72 -54
- package/lib/RootComponents/Category/categoryContent.js +48 -40
- package/lib/components/AccountInformationPage/__tests__/__snapshots__/editForm.spec.js.snap +0 -3
- package/lib/components/CheckoutPage/OrderConfirmationPage/__tests__/__snapshots__/createAccount.spec.js.snap +0 -2
- package/lib/components/CreateAccount/__tests__/__snapshots__/createAccount.spec.js.snap +0 -2
- package/lib/components/MyAccount/ResetPassword/__tests__/__snapshots__/resetPassword.spec.js.snap +0 -2
- package/lib/components/Password/__tests__/__snapshots__/password.spec.js.snap +0 -2
- package/lib/components/Password/password.js +0 -1
- package/lib/targets/__tests__/venia-ui-targets.spec.js +1 -1
- package/lib/util/formatLocale.js +1 -1
- package/package.json +4 -4
- package/upward.yml +61 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`filter button/modal does not render if there are no filters 1`] = `
|
|
4
|
-
|
|
4
|
+
<div>
|
|
5
5
|
<Breadcrumbs
|
|
6
6
|
categoryId={42}
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/>
|
|
8
|
+
Title
|
|
9
9
|
<article
|
|
10
10
|
className="root"
|
|
11
11
|
>
|
|
@@ -19,7 +19,9 @@ Array [
|
|
|
19
19
|
<div
|
|
20
20
|
className="categoryTitle"
|
|
21
21
|
>
|
|
22
|
-
|
|
22
|
+
<div>
|
|
23
|
+
Name
|
|
24
|
+
</div>
|
|
23
25
|
</div>
|
|
24
26
|
</h1>
|
|
25
27
|
</div>
|
|
@@ -94,16 +96,16 @@ Array [
|
|
|
94
96
|
</div>
|
|
95
97
|
</div>
|
|
96
98
|
</div>
|
|
97
|
-
</article
|
|
98
|
-
|
|
99
|
+
</article>
|
|
100
|
+
</div>
|
|
99
101
|
`;
|
|
100
102
|
|
|
101
103
|
exports[`filter button/modal renders when there are filters 1`] = `
|
|
102
|
-
|
|
104
|
+
<div>
|
|
103
105
|
<Breadcrumbs
|
|
104
106
|
categoryId={42}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
+
/>
|
|
108
|
+
Title
|
|
107
109
|
<article
|
|
108
110
|
className="root"
|
|
109
111
|
>
|
|
@@ -117,7 +119,9 @@ Array [
|
|
|
117
119
|
<div
|
|
118
120
|
className="categoryTitle"
|
|
119
121
|
>
|
|
120
|
-
|
|
122
|
+
<div>
|
|
123
|
+
Name
|
|
124
|
+
</div>
|
|
121
125
|
</div>
|
|
122
126
|
</h1>
|
|
123
127
|
</div>
|
|
@@ -206,16 +210,16 @@ Array [
|
|
|
206
210
|
/>
|
|
207
211
|
</div>
|
|
208
212
|
</div>
|
|
209
|
-
</article
|
|
210
|
-
|
|
213
|
+
</article>
|
|
214
|
+
</div>
|
|
211
215
|
`;
|
|
212
216
|
|
|
213
217
|
exports[`filter sidebar does not render if not in viewport 1`] = `
|
|
214
|
-
|
|
218
|
+
<div>
|
|
215
219
|
<Breadcrumbs
|
|
216
220
|
categoryId={42}
|
|
217
|
-
|
|
218
|
-
|
|
221
|
+
/>
|
|
222
|
+
Title
|
|
219
223
|
<article
|
|
220
224
|
className="root"
|
|
221
225
|
>
|
|
@@ -229,7 +233,9 @@ Array [
|
|
|
229
233
|
<div
|
|
230
234
|
className="categoryTitle"
|
|
231
235
|
>
|
|
232
|
-
|
|
236
|
+
<div>
|
|
237
|
+
Name
|
|
238
|
+
</div>
|
|
233
239
|
</div>
|
|
234
240
|
</h1>
|
|
235
241
|
</div>
|
|
@@ -318,16 +324,16 @@ Array [
|
|
|
318
324
|
/>
|
|
319
325
|
</div>
|
|
320
326
|
</div>
|
|
321
|
-
</article
|
|
322
|
-
|
|
327
|
+
</article>
|
|
328
|
+
</div>
|
|
323
329
|
`;
|
|
324
330
|
|
|
325
331
|
exports[`filter sidebar renders when in viewport 1`] = `
|
|
326
|
-
|
|
332
|
+
<div>
|
|
327
333
|
<Breadcrumbs
|
|
328
334
|
categoryId={42}
|
|
329
|
-
|
|
330
|
-
|
|
335
|
+
/>
|
|
336
|
+
Title
|
|
331
337
|
<article
|
|
332
338
|
className="root"
|
|
333
339
|
>
|
|
@@ -341,7 +347,9 @@ Array [
|
|
|
341
347
|
<div
|
|
342
348
|
className="categoryTitle"
|
|
343
349
|
>
|
|
344
|
-
|
|
350
|
+
<div>
|
|
351
|
+
Name
|
|
352
|
+
</div>
|
|
345
353
|
</div>
|
|
346
354
|
</h1>
|
|
347
355
|
</div>
|
|
@@ -438,16 +446,16 @@ Array [
|
|
|
438
446
|
/>
|
|
439
447
|
</div>
|
|
440
448
|
</div>
|
|
441
|
-
</article
|
|
442
|
-
|
|
449
|
+
</article>
|
|
450
|
+
</div>
|
|
443
451
|
`;
|
|
444
452
|
|
|
445
453
|
exports[`renders empty page 1`] = `
|
|
446
|
-
|
|
454
|
+
<div>
|
|
447
455
|
<Breadcrumbs
|
|
448
456
|
categoryId={42}
|
|
449
|
-
|
|
450
|
-
|
|
457
|
+
/>
|
|
458
|
+
Title
|
|
451
459
|
<article
|
|
452
460
|
className="root"
|
|
453
461
|
>
|
|
@@ -461,7 +469,9 @@ Array [
|
|
|
461
469
|
<div
|
|
462
470
|
className="categoryTitle"
|
|
463
471
|
>
|
|
464
|
-
|
|
472
|
+
<div>
|
|
473
|
+
Empty Name
|
|
474
|
+
</div>
|
|
465
475
|
</div>
|
|
466
476
|
</h1>
|
|
467
477
|
</div>
|
|
@@ -489,16 +499,16 @@ Array [
|
|
|
489
499
|
/>
|
|
490
500
|
</div>
|
|
491
501
|
</div>
|
|
492
|
-
</article
|
|
493
|
-
|
|
502
|
+
</article>
|
|
503
|
+
</div>
|
|
494
504
|
`;
|
|
495
505
|
|
|
496
506
|
exports[`renders loading indicator if no data and loading 1`] = `
|
|
497
|
-
|
|
507
|
+
<div>
|
|
498
508
|
<Breadcrumbs
|
|
499
509
|
categoryId={42}
|
|
500
|
-
|
|
501
|
-
|
|
510
|
+
/>
|
|
511
|
+
Title
|
|
502
512
|
<article
|
|
503
513
|
className="root"
|
|
504
514
|
>
|
|
@@ -512,7 +522,9 @@ Array [
|
|
|
512
522
|
<div
|
|
513
523
|
className="categoryTitle"
|
|
514
524
|
>
|
|
515
|
-
|
|
525
|
+
<div>
|
|
526
|
+
Name
|
|
527
|
+
</div>
|
|
516
528
|
</div>
|
|
517
529
|
</h1>
|
|
518
530
|
</div>
|
|
@@ -558,16 +570,16 @@ Array [
|
|
|
558
570
|
/>
|
|
559
571
|
</div>
|
|
560
572
|
</div>
|
|
561
|
-
</article
|
|
562
|
-
|
|
573
|
+
</article>
|
|
574
|
+
</div>
|
|
563
575
|
`;
|
|
564
576
|
|
|
565
577
|
exports[`renders the correct tree 1`] = `
|
|
566
|
-
|
|
578
|
+
<div>
|
|
567
579
|
<Breadcrumbs
|
|
568
580
|
categoryId={42}
|
|
569
|
-
|
|
570
|
-
|
|
581
|
+
/>
|
|
582
|
+
Title
|
|
571
583
|
<article
|
|
572
584
|
className="root"
|
|
573
585
|
>
|
|
@@ -581,7 +593,9 @@ Array [
|
|
|
581
593
|
<div
|
|
582
594
|
className="categoryTitle"
|
|
583
595
|
>
|
|
584
|
-
|
|
596
|
+
<div>
|
|
597
|
+
Name
|
|
598
|
+
</div>
|
|
585
599
|
</div>
|
|
586
600
|
</h1>
|
|
587
601
|
</div>
|
|
@@ -656,16 +670,16 @@ Array [
|
|
|
656
670
|
</div>
|
|
657
671
|
</div>
|
|
658
672
|
</div>
|
|
659
|
-
</article
|
|
660
|
-
|
|
673
|
+
</article>
|
|
674
|
+
</div>
|
|
661
675
|
`;
|
|
662
676
|
|
|
663
677
|
exports[`sort button/container does not render if there are no products 1`] = `
|
|
664
|
-
|
|
678
|
+
<div>
|
|
665
679
|
<Breadcrumbs
|
|
666
680
|
categoryId={42}
|
|
667
|
-
|
|
668
|
-
|
|
681
|
+
/>
|
|
682
|
+
Title
|
|
669
683
|
<article
|
|
670
684
|
className="root"
|
|
671
685
|
>
|
|
@@ -679,7 +693,9 @@ Array [
|
|
|
679
693
|
<div
|
|
680
694
|
className="categoryTitle"
|
|
681
695
|
>
|
|
682
|
-
|
|
696
|
+
<div>
|
|
697
|
+
Name
|
|
698
|
+
</div>
|
|
683
699
|
</div>
|
|
684
700
|
</h1>
|
|
685
701
|
</div>
|
|
@@ -707,16 +723,16 @@ Array [
|
|
|
707
723
|
/>
|
|
708
724
|
</div>
|
|
709
725
|
</div>
|
|
710
|
-
</article
|
|
711
|
-
|
|
726
|
+
</article>
|
|
727
|
+
</div>
|
|
712
728
|
`;
|
|
713
729
|
|
|
714
730
|
exports[`sort button/container renders when there are products 1`] = `
|
|
715
|
-
|
|
731
|
+
<div>
|
|
716
732
|
<Breadcrumbs
|
|
717
733
|
categoryId={42}
|
|
718
|
-
|
|
719
|
-
|
|
734
|
+
/>
|
|
735
|
+
Title
|
|
720
736
|
<article
|
|
721
737
|
className="root"
|
|
722
738
|
>
|
|
@@ -730,7 +746,9 @@ Array [
|
|
|
730
746
|
<div
|
|
731
747
|
className="categoryTitle"
|
|
732
748
|
>
|
|
733
|
-
|
|
749
|
+
<div>
|
|
750
|
+
Name
|
|
751
|
+
</div>
|
|
734
752
|
</div>
|
|
735
753
|
</h1>
|
|
736
754
|
</div>
|
|
@@ -805,6 +823,6 @@ Array [
|
|
|
805
823
|
</div>
|
|
806
824
|
</div>
|
|
807
825
|
</div>
|
|
808
|
-
</article
|
|
809
|
-
|
|
826
|
+
</article>
|
|
827
|
+
</div>
|
|
810
828
|
`;
|
|
@@ -101,13 +101,16 @@ const CategoryContent = props => {
|
|
|
101
101
|
|
|
102
102
|
const categoryResultsHeading =
|
|
103
103
|
totalCount > 0 ? (
|
|
104
|
-
<
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
104
|
+
<div>
|
|
105
|
+
{' '}
|
|
106
|
+
<FormattedMessage
|
|
107
|
+
id={'categoryContent.resultCount'}
|
|
108
|
+
values={{
|
|
109
|
+
count: totalCount
|
|
110
|
+
}}
|
|
111
|
+
defaultMessage={'{count} Results'}
|
|
112
|
+
/>{' '}
|
|
113
|
+
</div>
|
|
111
114
|
) : isLoading ? (
|
|
112
115
|
<Shimmer width={5} />
|
|
113
116
|
) : null;
|
|
@@ -151,45 +154,50 @@ const CategoryContent = props => {
|
|
|
151
154
|
|
|
152
155
|
return (
|
|
153
156
|
<Fragment>
|
|
154
|
-
<
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
<
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
>
|
|
163
|
-
{categoryTitle}
|
|
164
|
-
</div>
|
|
165
|
-
</h1>
|
|
166
|
-
{categoryDescriptionElement}
|
|
167
|
-
</div>
|
|
168
|
-
<div className={classes.contentWrapper}>
|
|
169
|
-
<div ref={sidebarRef} className={classes.sidebar}>
|
|
170
|
-
<Suspense fallback={<FilterSidebarShimmer />}>
|
|
171
|
-
{shouldRenderSidebarContent ? sidebar : null}
|
|
172
|
-
</Suspense>
|
|
173
|
-
</div>
|
|
174
|
-
<div className={classes.categoryContent}>
|
|
175
|
-
<div className={classes.heading}>
|
|
157
|
+
<div>
|
|
158
|
+
<Breadcrumbs categoryId={categoryId} />
|
|
159
|
+
<StoreTitle>{categoryName}</StoreTitle>
|
|
160
|
+
<article
|
|
161
|
+
className={classes.root}
|
|
162
|
+
data-cy="CategoryContent-root"
|
|
163
|
+
>
|
|
164
|
+
<div className={classes.categoryHeader}>
|
|
165
|
+
<h1 aria-live="polite" className={classes.title}>
|
|
176
166
|
<div
|
|
177
|
-
|
|
178
|
-
|
|
167
|
+
className={classes.categoryTitle}
|
|
168
|
+
data-cy="CategoryContent-categoryTitle"
|
|
179
169
|
>
|
|
180
|
-
{
|
|
170
|
+
<div>{categoryTitle}</div>
|
|
181
171
|
</div>
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
172
|
+
</h1>
|
|
173
|
+
{categoryDescriptionElement}
|
|
174
|
+
</div>
|
|
175
|
+
<div className={classes.contentWrapper}>
|
|
176
|
+
<div ref={sidebarRef} className={classes.sidebar}>
|
|
177
|
+
<Suspense fallback={<FilterSidebarShimmer />}>
|
|
178
|
+
{shouldRenderSidebarContent ? sidebar : null}
|
|
179
|
+
</Suspense>
|
|
180
|
+
</div>
|
|
181
|
+
<div className={classes.categoryContent}>
|
|
182
|
+
<div className={classes.heading}>
|
|
183
|
+
<div
|
|
184
|
+
data-cy="CategoryContent-categoryInfo"
|
|
185
|
+
className={classes.categoryInfo}
|
|
186
|
+
>
|
|
187
|
+
{categoryResultsHeading}
|
|
188
|
+
</div>
|
|
189
|
+
<div className={classes.headerButtons}>
|
|
190
|
+
{maybeFilterButtons}
|
|
191
|
+
{maybeSortButton}
|
|
192
|
+
</div>
|
|
193
|
+
{maybeSortContainer}
|
|
185
194
|
</div>
|
|
186
|
-
{
|
|
195
|
+
{content}
|
|
196
|
+
<Suspense fallback={null}>{filtersModal}</Suspense>
|
|
187
197
|
</div>
|
|
188
|
-
{content}
|
|
189
|
-
<Suspense fallback={null}>{filtersModal}</Suspense>
|
|
190
198
|
</div>
|
|
191
|
-
</
|
|
192
|
-
</
|
|
199
|
+
</article>
|
|
200
|
+
</div>
|
|
193
201
|
</Fragment>
|
|
194
202
|
);
|
|
195
203
|
};
|
|
@@ -194,7 +194,6 @@ exports[`renders form when shouldShowNewPassword is false 1`] = `
|
|
|
194
194
|
disabled={false}
|
|
195
195
|
onClick={[Function]}
|
|
196
196
|
onDragStart={[Function]}
|
|
197
|
-
onKey={true}
|
|
198
197
|
onKeyDown={[Function]}
|
|
199
198
|
onMouseDown={[Function]}
|
|
200
199
|
onMouseEnter={[Function]}
|
|
@@ -467,7 +466,6 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
|
|
|
467
466
|
disabled={false}
|
|
468
467
|
onClick={[Function]}
|
|
469
468
|
onDragStart={[Function]}
|
|
470
|
-
onKey={true}
|
|
471
469
|
onKeyDown={[Function]}
|
|
472
470
|
onMouseDown={[Function]}
|
|
473
471
|
onMouseEnter={[Function]}
|
|
@@ -559,7 +557,6 @@ exports[`renders form when shouldShowNewPassword is true 1`] = `
|
|
|
559
557
|
disabled={false}
|
|
560
558
|
onClick={[Function]}
|
|
561
559
|
onDragStart={[Function]}
|
|
562
|
-
onKey={true}
|
|
563
560
|
onKeyDown={[Function]}
|
|
564
561
|
onMouseDown={[Function]}
|
|
565
562
|
onMouseEnter={[Function]}
|
|
@@ -199,7 +199,6 @@ exports[`CreateAccount renders CreateAccount component 1`] = `
|
|
|
199
199
|
disabled={false}
|
|
200
200
|
onClick={[Function]}
|
|
201
201
|
onDragStart={[Function]}
|
|
202
|
-
onKey={true}
|
|
203
202
|
onKeyDown={[Function]}
|
|
204
203
|
onMouseDown={[Function]}
|
|
205
204
|
onMouseEnter={[Function]}
|
|
@@ -530,7 +529,6 @@ exports[`CreateAccount renders errors 1`] = `
|
|
|
530
529
|
disabled={false}
|
|
531
530
|
onClick={[Function]}
|
|
532
531
|
onDragStart={[Function]}
|
|
533
|
-
onKey={true}
|
|
534
532
|
onKeyDown={[Function]}
|
|
535
533
|
onMouseDown={[Function]}
|
|
536
534
|
onMouseEnter={[Function]}
|
|
@@ -142,7 +142,6 @@ exports[`renders the correct tree 1`] = `
|
|
|
142
142
|
disabled={false}
|
|
143
143
|
onClick={[Function]}
|
|
144
144
|
onDragStart={[Function]}
|
|
145
|
-
onKey={true}
|
|
146
145
|
onKeyDown={[Function]}
|
|
147
146
|
onMouseDown={[Function]}
|
|
148
147
|
onMouseEnter={[Function]}
|
|
@@ -391,7 +390,6 @@ exports[`should not render cancel button if isCancelButtonHidden is true 1`] = `
|
|
|
391
390
|
disabled={false}
|
|
392
391
|
onClick={[Function]}
|
|
393
392
|
onDragStart={[Function]}
|
|
394
|
-
onKey={true}
|
|
395
393
|
onKeyDown={[Function]}
|
|
396
394
|
onMouseDown={[Function]}
|
|
397
395
|
onMouseEnter={[Function]}
|
package/lib/components/MyAccount/ResetPassword/__tests__/__snapshots__/resetPassword.spec.js.snap
CHANGED
|
@@ -109,7 +109,6 @@ exports[`should render formErrors 1`] = `
|
|
|
109
109
|
disabled={false}
|
|
110
110
|
onClick={[Function]}
|
|
111
111
|
onDragStart={[Function]}
|
|
112
|
-
onKey={true}
|
|
113
112
|
onKeyDown={[Function]}
|
|
114
113
|
onMouseDown={[Function]}
|
|
115
114
|
onMouseEnter={[Function]}
|
|
@@ -264,7 +263,6 @@ exports[`should render properly 1`] = `
|
|
|
264
263
|
disabled={false}
|
|
265
264
|
onClick={[Function]}
|
|
266
265
|
onDragStart={[Function]}
|
|
267
|
-
onKey={true}
|
|
268
266
|
onKeyDown={[Function]}
|
|
269
267
|
onMouseDown={[Function]}
|
|
270
268
|
onMouseEnter={[Function]}
|
|
@@ -80,7 +80,6 @@ exports[`should render show button if visible is false 1`] = `
|
|
|
80
80
|
disabled={false}
|
|
81
81
|
onClick={[MockFunction]}
|
|
82
82
|
onDragStart={[Function]}
|
|
83
|
-
onKey={true}
|
|
84
83
|
onKeyDown={[Function]}
|
|
85
84
|
onMouseDown={[Function]}
|
|
86
85
|
onMouseEnter={[Function]}
|
|
@@ -162,7 +161,6 @@ exports[`should render toggle button if isToggleButtonHidden is false 1`] = `
|
|
|
162
161
|
disabled={false}
|
|
163
162
|
onClick={[MockFunction]}
|
|
164
163
|
onDragStart={[Function]}
|
|
165
|
-
onKey={true}
|
|
166
164
|
onKeyDown={[Function]}
|
|
167
165
|
onMouseDown={[Function]}
|
|
168
166
|
onMouseEnter={[Function]}
|
package/lib/util/formatLocale.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magento/venia-ui",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.5.0-alpha.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@apollo/client": "~3.5.0",
|
|
82
|
-
"@magento/babel-preset-peregrine": "1.3.3
|
|
83
|
-
"@magento/peregrine": "14.
|
|
84
|
-
"@magento/pwa-buildpack": "11.5.3
|
|
82
|
+
"@magento/babel-preset-peregrine": "~1.3.3",
|
|
83
|
+
"@magento/peregrine": "14.4.1-alpha.1",
|
|
84
|
+
"@magento/pwa-buildpack": "~11.5.3",
|
|
85
85
|
"apollo-cache-persist": "~0.1.1",
|
|
86
86
|
"braintree-web-drop-in": "~1.33.3",
|
|
87
87
|
"graphql": "~15.5.0",
|
package/upward.yml
CHANGED
|
@@ -20,6 +20,9 @@ veniaResponse:
|
|
|
20
20
|
- matches: fileExtension
|
|
21
21
|
pattern: '(js|json|png|jpg|gif|svg|ico|css|txt)'
|
|
22
22
|
use: veniaStatic
|
|
23
|
+
- matches: urlResolver.redirect_code
|
|
24
|
+
pattern: '(301|302)'
|
|
25
|
+
use: dynamicRedirect
|
|
23
26
|
default: veniaAppShell
|
|
24
27
|
|
|
25
28
|
# A FileResolver for serving certain files directly from document root,
|
|
@@ -195,3 +198,61 @@ veniaStaticIncludes:
|
|
|
195
198
|
directory:
|
|
196
199
|
resolver: inline
|
|
197
200
|
inline: './venia-static'
|
|
201
|
+
|
|
202
|
+
urlResolver: urlResolverResult.data.route
|
|
203
|
+
|
|
204
|
+
urlResolverResult:
|
|
205
|
+
resolver: service
|
|
206
|
+
endpoint:
|
|
207
|
+
resolver: url
|
|
208
|
+
baseUrl: env.MAGENTO_BACKEND_URL
|
|
209
|
+
pathname:
|
|
210
|
+
inline: graphql
|
|
211
|
+
method:
|
|
212
|
+
resolver: inline
|
|
213
|
+
inline: POST
|
|
214
|
+
headers:
|
|
215
|
+
resolver: inline
|
|
216
|
+
inline:
|
|
217
|
+
'content-type': 'application/json'
|
|
218
|
+
accept: 'application/json'
|
|
219
|
+
query:
|
|
220
|
+
resolver: inline
|
|
221
|
+
inline: 'query ResolveURL($url: String!) {
|
|
222
|
+
route(url: $url) {
|
|
223
|
+
type
|
|
224
|
+
relative_url
|
|
225
|
+
redirect_code
|
|
226
|
+
}
|
|
227
|
+
}'
|
|
228
|
+
variables:
|
|
229
|
+
resolver: inline
|
|
230
|
+
inline:
|
|
231
|
+
# This is a barestring indicating a context lookup. It resolves to the
|
|
232
|
+
# `path` value in the URL query string of the request, using the builtin
|
|
233
|
+
# `request` context object.
|
|
234
|
+
url: request.url.pathname
|
|
235
|
+
|
|
236
|
+
dynamicRedirect:
|
|
237
|
+
resolver: inline
|
|
238
|
+
inline:
|
|
239
|
+
status: urlResolver.redirect_code
|
|
240
|
+
headers:
|
|
241
|
+
resolver: inline
|
|
242
|
+
inline:
|
|
243
|
+
content-type:
|
|
244
|
+
inline: text/html
|
|
245
|
+
cache-control:
|
|
246
|
+
inline: s-maxage=60
|
|
247
|
+
body:
|
|
248
|
+
resolver: template
|
|
249
|
+
engine: mustache
|
|
250
|
+
provide:
|
|
251
|
+
pageType: veniaPageType.data
|
|
252
|
+
pageTypeNonce: veniaPageTypeNonce.nonce
|
|
253
|
+
webpackChunks: veniaWebpackChunks.scripts
|
|
254
|
+
template:
|
|
255
|
+
resolver: file
|
|
256
|
+
file:
|
|
257
|
+
resolver: inline
|
|
258
|
+
inline: './index.html'
|