@riosst100/pwa-marketplace 1.9.8 → 2.0.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/package.json +1 -1
- package/src/intercept.js +11 -0
- package/src/overwrites/venia-ui/lib/components/Header/header.js +1 -1
- package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenuItem.js +2 -2
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.js +1 -3
- package/src/overwrites/venia-ui/venia-static/favicon.ico +0 -0
- package/src/overwrites/venia-ui/venia-static/manifest.json +32 -0
- package/src/static-files/favicon.ico +0 -0
- package/src/static-files/icons/apple-touch-icon.png +0 -0
- package/src/static-files/icons/venia_circle_144.png +0 -0
- package/src/static-files/icons/venia_circle_192.png +0 -0
- package/src/static-files/icons/venia_circle_512.png +0 -0
- package/src/static-files/icons/venia_maskable_512.png +0 -0
- package/src/static-files/icons/venia_square_144.png +0 -0
- package/src/static-files/icons/venia_square_192.png +0 -0
- package/src/static-files/icons/venia_square_512.png +0 -0
- package/src/static-files/icons/venia_square_57.png +0 -0
- package/src/static-files/manifest.json +32 -0
- package/src/static-files/robots.txt +2 -0
- package/src/static-files/veniaClosed.png +0 -0
package/package.json
CHANGED
package/src/intercept.js
CHANGED
|
@@ -3,6 +3,7 @@ const moduleOverridePlugin = require('./moduleOverrideWebpackPlugin');
|
|
|
3
3
|
const { DefinePlugin } = require('webpack');
|
|
4
4
|
const { getAvailableWebsitesConfigData } = require('./Utilities/graphQL');
|
|
5
5
|
const LocalizationPlugin = require('@magento/pwa-buildpack/lib/WebpackTools/plugins/LocalizationPlugin');
|
|
6
|
+
const CopyPlugin = require("copy-webpack-plugin");
|
|
6
7
|
|
|
7
8
|
module.exports = targets => {
|
|
8
9
|
// Perform the asynchronous operation outside the tap
|
|
@@ -13,6 +14,10 @@ module.exports = targets => {
|
|
|
13
14
|
availableWebsites = await getAvailableWebsitesConfigData();
|
|
14
15
|
})();
|
|
15
16
|
|
|
17
|
+
targets.of('@magento/pwa-buildpack').transformUpward.tap(def => {
|
|
18
|
+
def.staticFromRoot.inline.body.file.template.inline = './static-files/{{ filename }}';
|
|
19
|
+
});
|
|
20
|
+
|
|
16
21
|
targets.of('@magento/pwa-buildpack').specialFeatures.tap(features => {
|
|
17
22
|
features[targets.name] = { i18n: true, esModules: true, cssModules: true, graphqlQueries: true };
|
|
18
23
|
});
|
|
@@ -155,6 +160,12 @@ module.exports = targets => {
|
|
|
155
160
|
}).apply(compiler);
|
|
156
161
|
});
|
|
157
162
|
|
|
163
|
+
targets.of('@magento/pwa-buildpack').webpackCompiler.tap(compiler => {
|
|
164
|
+
new CopyPlugin({
|
|
165
|
+
patterns: [{ from: 'node_modules/@riosst100/pwa-marketplace/src/static-files', to: 'static-files' }]
|
|
166
|
+
}).apply(compiler);
|
|
167
|
+
});
|
|
168
|
+
|
|
158
169
|
// Handle the routes directly within the routes tap
|
|
159
170
|
targets.of("@magento/venia-ui").routes.tap(routesArray => {
|
|
160
171
|
routesArray.push(...routes);
|
|
@@ -43,7 +43,7 @@ const Header = props => {
|
|
|
43
43
|
const baseUrl = data?.storeConfig?.base_media_url;
|
|
44
44
|
const imageSource = data?.storeConfig?.header_logo_src;
|
|
45
45
|
const LogoImageSource = `${baseUrl}/logo/${imageSource}`;
|
|
46
|
-
const IMAGE_HEIGHT = data?.storeConfig?.logo_width ||
|
|
46
|
+
const IMAGE_HEIGHT = data?.storeConfig?.logo_width || 25.23;
|
|
47
47
|
const IMAGE_WIDTH = data?.storeConfig?.logo_height || 170;
|
|
48
48
|
const IMAGE_ALT = data?.storeConfig?.logo_alt || 'TCG Collective';
|
|
49
49
|
|
|
Binary file
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Venia",
|
|
3
|
+
"short_name": "Venia",
|
|
4
|
+
"start_url": "/",
|
|
5
|
+
"theme_color": "#1F39FF",
|
|
6
|
+
"display": "standalone",
|
|
7
|
+
"background_color": "#fff",
|
|
8
|
+
"description": "Shop the look",
|
|
9
|
+
"icons": [
|
|
10
|
+
{
|
|
11
|
+
"src": "/venia-static/icons/venia_circle_144.png",
|
|
12
|
+
"sizes": "144x144",
|
|
13
|
+
"type": "image/png"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"src": "/venia-static/icons/venia_circle_192.png",
|
|
17
|
+
"sizes": "192x192",
|
|
18
|
+
"type": "image/png"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"src": "/venia-static/icons/venia_circle_512.png",
|
|
22
|
+
"sizes": "512x512",
|
|
23
|
+
"type": "image/png"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"src": "/venia-static/icons/venia_maskable_512.png",
|
|
27
|
+
"sizes": "512x512",
|
|
28
|
+
"type": "image/png",
|
|
29
|
+
"purpose": "maskable"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Venia",
|
|
3
|
+
"short_name": "Venia",
|
|
4
|
+
"start_url": "/",
|
|
5
|
+
"theme_color": "#1F39FF",
|
|
6
|
+
"display": "standalone",
|
|
7
|
+
"background_color": "#fff",
|
|
8
|
+
"description": "Shop the look",
|
|
9
|
+
"icons": [
|
|
10
|
+
{
|
|
11
|
+
"src": "/venia-static/icons/venia_circle_144.png",
|
|
12
|
+
"sizes": "144x144",
|
|
13
|
+
"type": "image/png"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"src": "/venia-static/icons/venia_circle_192.png",
|
|
17
|
+
"sizes": "192x192",
|
|
18
|
+
"type": "image/png"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"src": "/venia-static/icons/venia_circle_512.png",
|
|
22
|
+
"sizes": "512x512",
|
|
23
|
+
"type": "image/png"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"src": "/venia-static/icons/venia_maskable_512.png",
|
|
27
|
+
"sizes": "512x512",
|
|
28
|
+
"type": "image/png",
|
|
29
|
+
"purpose": "maskable"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
Binary file
|