@jetshop/template-trend 6.0.3 → 6.0.5
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 +3 -2
- package/package.json +5 -5
- package/src/server.js +11 -1
- package/src/shop.config.js +0 -7
- package/translations/index.js +34 -17
|
@@ -47,7 +47,8 @@ describe('Cart', () => {
|
|
|
47
47
|
cy.visit(PRODUCT_PAGE);
|
|
48
48
|
cy.findByTestId('add-to-cart').click();
|
|
49
49
|
cy.findByTestId('cart-button').click();
|
|
50
|
-
cy.findByTestId('checkout-button')
|
|
51
|
-
|
|
50
|
+
cy.findByTestId('checkout-button')
|
|
51
|
+
.should('have.attr', 'href')
|
|
52
|
+
.and('include', 'checkout');
|
|
52
53
|
});
|
|
53
54
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetshop/template-trend",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
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.0.
|
|
48
|
+
"@jetshop/core": "^6.0.5",
|
|
49
49
|
"@jetshop/flight-shortcodes": "^2.0.10",
|
|
50
|
-
"@jetshop/intl": "^6.0.
|
|
51
|
-
"@jetshop/react-scripts": "^6.0.
|
|
52
|
-
"@jetshop/ui": "^6.0.
|
|
50
|
+
"@jetshop/intl": "^6.0.5",
|
|
51
|
+
"@jetshop/react-scripts": "^6.0.5",
|
|
52
|
+
"@jetshop/ui": "^6.0.5",
|
|
53
53
|
"@react-google-maps/api": "~2.18.1",
|
|
54
54
|
"prop-types": "^15.6.2",
|
|
55
55
|
"react": "^18",
|
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'],
|
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');
|