@jetshop/template-trend 6.1.0-alpha.60f2f3f7 → 6.1.0-alpha.ae06a609
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/cypress/integration/essentials.spec.js +7 -3
- package/package.json +7 -6
- package/src/components/Auth/LogInPage.js +13 -3
- package/src/components/StartPage/Content/StartPageHero.js +8 -6
- package/src/server.js +11 -1
- package/src/shop.config.js +0 -7
- package/translations/default.json +9 -0
- package/translations/index.js +34 -17
|
@@ -17,7 +17,10 @@ describe('Category page', () => {
|
|
|
17
17
|
it('links to products', () => {
|
|
18
18
|
cy.visit(CATEGORY_PAGE);
|
|
19
19
|
const url = cy.url();
|
|
20
|
-
cy.
|
|
20
|
+
cy.findByTestId('product').click({
|
|
21
|
+
force: true
|
|
22
|
+
});
|
|
23
|
+
|
|
21
24
|
cy.url().should('not.be', url);
|
|
22
25
|
});
|
|
23
26
|
});
|
|
@@ -44,7 +47,8 @@ describe('Cart', () => {
|
|
|
44
47
|
cy.visit(PRODUCT_PAGE);
|
|
45
48
|
cy.findByTestId('add-to-cart').click();
|
|
46
49
|
cy.findByTestId('cart-button').click();
|
|
47
|
-
cy.findByTestId('checkout-button')
|
|
48
|
-
|
|
50
|
+
cy.findByTestId('checkout-button')
|
|
51
|
+
.should('have.attr', 'href')
|
|
52
|
+
.and('include', 'checkout');
|
|
49
53
|
});
|
|
50
54
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetshop/template-trend",
|
|
3
|
-
"version": "6.1.0-alpha.
|
|
3
|
+
"version": "6.1.0-alpha.ae06a609",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "react-scripts build",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@jetshop/core": "^6.1.0-alpha.
|
|
48
|
+
"@jetshop/core": "^6.1.0-alpha.ae06a609",
|
|
49
49
|
"@jetshop/flight-shortcodes": "^2.0.10",
|
|
50
|
-
"@jetshop/intl": "^6.1.0-alpha.
|
|
51
|
-
"@jetshop/react-scripts": "^6.1.0-alpha.
|
|
52
|
-
"@jetshop/ui": "^6.1.0-alpha.
|
|
50
|
+
"@jetshop/intl": "^6.1.0-alpha.ae06a609",
|
|
51
|
+
"@jetshop/react-scripts": "^6.1.0-alpha.ae06a609",
|
|
52
|
+
"@jetshop/ui": "^6.1.0-alpha.ae06a609",
|
|
53
53
|
"@react-google-maps/api": "~2.18.1",
|
|
54
54
|
"prop-types": "^15.6.2",
|
|
55
55
|
"react": "^18",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"yargs": "16.0.3"
|
|
72
72
|
},
|
|
73
73
|
"resolutions": {
|
|
74
|
-
"format-message-estree-util": "npm:@jetshop/format-message-estree-util"
|
|
74
|
+
"format-message-estree-util": "npm:@jetshop/format-message-estree-util",
|
|
75
|
+
"**/@babel/helper-module-transforms": "7.22.5"
|
|
75
76
|
}
|
|
76
77
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import LogInFormProvider from '@jetshop/ui/Auth/LogInFormProvider';
|
|
2
|
-
import t from '
|
|
2
|
+
import t from '@jetshop/intl';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { styled } from 'linaria/react';
|
|
5
5
|
import { css, cx } from 'linaria';
|
|
@@ -76,8 +76,18 @@ function LogInPage() {
|
|
|
76
76
|
{t('Not yet a member? Sign Up')}
|
|
77
77
|
</TextLink>
|
|
78
78
|
</header>
|
|
79
|
-
<Input
|
|
80
|
-
|
|
79
|
+
<Input
|
|
80
|
+
data-testid="email"
|
|
81
|
+
type="email"
|
|
82
|
+
name="email"
|
|
83
|
+
label={t('E-mail address')}
|
|
84
|
+
/>
|
|
85
|
+
<Input
|
|
86
|
+
data-testid="password"
|
|
87
|
+
type="password"
|
|
88
|
+
name="password"
|
|
89
|
+
label={t('Password')}
|
|
90
|
+
/>
|
|
81
91
|
|
|
82
92
|
{globalError && (
|
|
83
93
|
<GlobalError style={{ marginBottom: '2em' }}>
|
|
@@ -77,17 +77,19 @@ const StartPageHero = ({
|
|
|
77
77
|
<StartPageHeroWrapper>
|
|
78
78
|
<Image
|
|
79
79
|
fillAvailableSpace={true}
|
|
80
|
-
src={imageSrc
|
|
80
|
+
src={imageSrc?.value}
|
|
81
81
|
className={heroStyles}
|
|
82
82
|
critical={isAboveFold?.value}
|
|
83
|
-
focalPointY={imageSrc
|
|
84
|
-
focalPointX={imageSrc
|
|
83
|
+
focalPointY={imageSrc?.value?.focalPointY}
|
|
84
|
+
focalPointX={imageSrc?.value?.focalPointX}
|
|
85
85
|
aspect={'2:1'}
|
|
86
86
|
>
|
|
87
87
|
<Container>
|
|
88
|
-
<Title>{header
|
|
89
|
-
<Description>{text
|
|
90
|
-
<StyledButton to={buttonLink
|
|
88
|
+
<Title>{header?.value}</Title>
|
|
89
|
+
<Description>{text?.value}</Description>
|
|
90
|
+
<StyledButton to={buttonLink?.value ?? '/'}>
|
|
91
|
+
{buttonText?.value}
|
|
92
|
+
</StyledButton>
|
|
91
93
|
</Container>
|
|
92
94
|
</Image>
|
|
93
95
|
</StartPageHeroWrapper>
|
package/src/server.js
CHANGED
|
@@ -3,4 +3,14 @@ import { createApp } from '@jetshop/core/boot/server';
|
|
|
3
3
|
import Shop from './components/Shop';
|
|
4
4
|
import config from './shop.config';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
import createFacebookTracker from '@jetshop/core/server/tracking/facebook';
|
|
7
|
+
|
|
8
|
+
export default createApp(<Shop />, {
|
|
9
|
+
...config,
|
|
10
|
+
serverTrackers: [
|
|
11
|
+
createFacebookTracker({
|
|
12
|
+
pixelId: process.env.FACEBOOK_PIXEL_ID,
|
|
13
|
+
token: process.env.FACEBOOK_CAPI_TOKEN
|
|
14
|
+
})
|
|
15
|
+
]
|
|
16
|
+
});
|
package/src/shop.config.js
CHANGED
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
LoadableWindowedCategoryPage
|
|
8
8
|
} from './components/CategoryPage/CategoryPage';
|
|
9
9
|
import { theme } from './components/Theme';
|
|
10
|
-
import createFacebookTracker from '@jetshop/core/server/tracking/facebook';
|
|
11
10
|
import ProductPage from './components/ProductPage/ProductPage.loadable';
|
|
12
11
|
import ContentPage from './components/ContentPage/ContentPage.loadable';
|
|
13
12
|
|
|
@@ -57,12 +56,6 @@ const config = {
|
|
|
57
56
|
disableDefaultProductData: false
|
|
58
57
|
},
|
|
59
58
|
trackers: [],
|
|
60
|
-
serverTrackers: [
|
|
61
|
-
createFacebookTracker({
|
|
62
|
-
pixelId: process.env.FACEBOOK_PIXEL_ID,
|
|
63
|
-
token: process.env.FACEBOOK_CAPI_TOKEN
|
|
64
|
-
})
|
|
65
|
-
],
|
|
66
59
|
googleMapsApiKey: process.env.REACT_APP_GOOGLE_MAPS_API_KEY || '',
|
|
67
60
|
loginPath: '/login',
|
|
68
61
|
pathsWithNoAuthRequired: ['/login', '/reset-password', '/forgot-password'],
|
|
@@ -191,6 +191,9 @@
|
|
|
191
191
|
"forgot_password_69eea15b": {
|
|
192
192
|
"message": "Forgot password"
|
|
193
193
|
},
|
|
194
|
+
"forgot_password_7232790f": {
|
|
195
|
+
"message": "Forgot password?"
|
|
196
|
+
},
|
|
194
197
|
"free_for_your_order_34aba239": {
|
|
195
198
|
"message": "Free for your order"
|
|
196
199
|
},
|
|
@@ -353,6 +356,9 @@
|
|
|
353
356
|
"not_available_487d3648": {
|
|
354
357
|
"message": "Not available"
|
|
355
358
|
},
|
|
359
|
+
"not_yet_a_member_sign_up_5454936d": {
|
|
360
|
+
"message": "Not yet a member? Sign Up"
|
|
361
|
+
},
|
|
356
362
|
"note_if_you_were_directed_here_via_a_link_we_are_g_47b83052": {
|
|
357
363
|
"message": "NOTE! If you were directed here via a link we are grateful if you inform us as to which link it was so that we can resolve the problem."
|
|
358
364
|
},
|
|
@@ -404,6 +410,9 @@
|
|
|
404
410
|
"package_discount_66e25640": {
|
|
405
411
|
"message": "Package Discount"
|
|
406
412
|
},
|
|
413
|
+
"password_8a271b1c": {
|
|
414
|
+
"message": "Password"
|
|
415
|
+
},
|
|
407
416
|
"payment_method_84a444f1": {
|
|
408
417
|
"message": "Payment method"
|
|
409
418
|
},
|
package/translations/index.js
CHANGED
|
@@ -1,17 +1,34 @@
|
|
|
1
|
-
export const cs = () =>
|
|
2
|
-
|
|
3
|
-
export const
|
|
4
|
-
|
|
5
|
-
export const
|
|
6
|
-
|
|
7
|
-
export const
|
|
8
|
-
|
|
9
|
-
export const
|
|
10
|
-
|
|
11
|
-
export const
|
|
12
|
-
|
|
13
|
-
export const
|
|
14
|
-
|
|
15
|
-
export const
|
|
16
|
-
|
|
17
|
-
export const
|
|
1
|
+
export const cs = () =>
|
|
2
|
+
import(/* webpackChunkName: "translations-cs" */ './cs.json');
|
|
3
|
+
export const da = () =>
|
|
4
|
+
import(/* webpackChunkName: "translations-da" */ './da.json');
|
|
5
|
+
export const de = () =>
|
|
6
|
+
import(/* webpackChunkName: "translations-de" */ './de.json');
|
|
7
|
+
export const en = () =>
|
|
8
|
+
import(/* webpackChunkName: "translations-en" */ './en.json');
|
|
9
|
+
export const es = () =>
|
|
10
|
+
import(/* webpackChunkName: "translations-es" */ './es.json');
|
|
11
|
+
export const et = () =>
|
|
12
|
+
import(/* webpackChunkName: "translations-et" */ './et.json');
|
|
13
|
+
export const fi = () =>
|
|
14
|
+
import(/* webpackChunkName: "translations-fi" */ './fi.json');
|
|
15
|
+
export const fr = () =>
|
|
16
|
+
import(/* webpackChunkName: "translations-fr" */ './fr.json');
|
|
17
|
+
export const it = () =>
|
|
18
|
+
import(/* webpackChunkName: "translations-it" */ './it.json');
|
|
19
|
+
export const lv = () =>
|
|
20
|
+
import(/* webpackChunkName: "translations-lv" */ './lv.json');
|
|
21
|
+
export const nb = () =>
|
|
22
|
+
import(/* webpackChunkName: "translations-nb" */ './nb.json');
|
|
23
|
+
export const nl = () =>
|
|
24
|
+
import(/* webpackChunkName: "translations-nl" */ './nl.json');
|
|
25
|
+
export const pl = () =>
|
|
26
|
+
import(/* webpackChunkName: "translations-pl" */ './pl.json');
|
|
27
|
+
export const ru = () =>
|
|
28
|
+
import(/* webpackChunkName: "translations-ru" */ './ru.json');
|
|
29
|
+
export const sk = () =>
|
|
30
|
+
import(/* webpackChunkName: "translations-sk" */ './sk.json');
|
|
31
|
+
export const sr = () =>
|
|
32
|
+
import(/* webpackChunkName: "translations-sr" */ './sr.json');
|
|
33
|
+
export const sv = () =>
|
|
34
|
+
import(/* webpackChunkName: "translations-sv" */ './sv.json');
|