@vendure/ui-devkit 2.0.3 → 2.0.4
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/compiler/helpers.d.ts +2 -0
- package/compiler/helpers.js +4 -2
- package/compiler/helpers.js.map +1 -1
- package/package.json +5 -5
- package/scaffold/angular.json +1 -1
package/compiler/helpers.d.ts
CHANGED
|
@@ -9,7 +9,9 @@ import { BrandingOptions, StaticAssetExtension } from './types';
|
|
|
9
9
|
* outputPath: path.join(__dirname, '../admin-ui'),
|
|
10
10
|
* extensions: [
|
|
11
11
|
* setBranding({
|
|
12
|
+
* // This is used as the branding in the top-left above the navigation
|
|
12
13
|
* smallLogoPath: path.join(__dirname, 'images/my-logo-sm.png'),
|
|
14
|
+
* // This is used on the login page
|
|
13
15
|
* largeLogoPath: path.join(__dirname, 'images/my-logo-lg.png'),
|
|
14
16
|
* faviconPath: path.join(__dirname, 'images/my-favicon.ico'),
|
|
15
17
|
* }),
|
package/compiler/helpers.js
CHANGED
|
@@ -11,7 +11,9 @@ exports.setBranding = void 0;
|
|
|
11
11
|
* outputPath: path.join(__dirname, '../admin-ui'),
|
|
12
12
|
* extensions: [
|
|
13
13
|
* setBranding({
|
|
14
|
+
* // This is used as the branding in the top-left above the navigation
|
|
14
15
|
* smallLogoPath: path.join(__dirname, 'images/my-logo-sm.png'),
|
|
16
|
+
* // This is used on the login page
|
|
15
17
|
* largeLogoPath: path.join(__dirname, 'images/my-logo-lg.png'),
|
|
16
18
|
* faviconPath: path.join(__dirname, 'images/my-favicon.ico'),
|
|
17
19
|
* }),
|
|
@@ -27,13 +29,13 @@ function setBranding(options) {
|
|
|
27
29
|
if (options.smallLogoPath) {
|
|
28
30
|
staticAssets.push({
|
|
29
31
|
path: options.smallLogoPath,
|
|
30
|
-
rename: 'logo-
|
|
32
|
+
rename: 'logo-top.webp',
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
35
|
if (options.largeLogoPath) {
|
|
34
36
|
staticAssets.push({
|
|
35
37
|
path: options.largeLogoPath,
|
|
36
|
-
rename: 'logo-
|
|
38
|
+
rename: 'logo-login.webp',
|
|
37
39
|
});
|
|
38
40
|
}
|
|
39
41
|
if (options.faviconPath) {
|
package/compiler/helpers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/compiler/helpers.ts"],"names":[],"mappings":";;;AAEA
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/compiler/helpers.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,WAAW,CAAC,OAAwB;IAChD,MAAM,YAAY,GAA4B,EAAE,CAAC;IACjD,IAAI,OAAO,CAAC,aAAa,EAAE;QACvB,YAAY,CAAC,IAAI,CAAC;YACd,IAAI,EAAE,OAAO,CAAC,aAAa;YAC3B,MAAM,EAAE,eAAe;SAC1B,CAAC,CAAC;KACN;IACD,IAAI,OAAO,CAAC,aAAa,EAAE;QACvB,YAAY,CAAC,IAAI,CAAC;YACd,IAAI,EAAE,OAAO,CAAC,aAAa;YAC3B,MAAM,EAAE,iBAAiB;SAC5B,CAAC,CAAC;KACN;IACD,IAAI,OAAO,CAAC,WAAW,EAAE;QACrB,YAAY,CAAC,IAAI,CAAC;YACd,IAAI,EAAE,OAAO,CAAC,WAAW;YACzB,MAAM,EAAE,aAAa;SACxB,CAAC,CAAC;KACN;IACD,OAAO,EAAE,YAAY,EAAE,CAAC;AAC5B,CAAC;AArBD,kCAqBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/ui-devkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "A library for authoring Vendure Admin UI extensions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vendure",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@angular/cli": "^16.0.3",
|
|
41
41
|
"@angular/compiler": "^16.0.3",
|
|
42
42
|
"@angular/compiler-cli": "^16.0.3",
|
|
43
|
-
"@vendure/admin-ui": "^2.0.
|
|
44
|
-
"@vendure/common": "^2.0.
|
|
43
|
+
"@vendure/admin-ui": "^2.0.4",
|
|
44
|
+
"@vendure/common": "^2.0.4",
|
|
45
45
|
"chalk": "^4.1.0",
|
|
46
46
|
"chokidar": "^3.5.1",
|
|
47
47
|
"fs-extra": "^10.0.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
53
53
|
"@types/fs-extra": "^11.0.1",
|
|
54
|
-
"@vendure/core": "^2.0.
|
|
54
|
+
"@vendure/core": "^2.0.4",
|
|
55
55
|
"rimraf": "^3.0.2",
|
|
56
56
|
"rollup": "^3.18.0",
|
|
57
57
|
"rollup-plugin-terser": "^7.0.2",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"tslib": "^2.5.0",
|
|
60
60
|
"typescript": "4.9.5"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "e1713e8c0fd9e32708f7cbe7ac00a5964c3348af"
|
|
63
63
|
}
|