@vendure/ui-devkit 3.1.8 → 3.2.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/LICENSE.md +42 -42
- package/README.md +5 -5
- package/client/index.js +1 -1
- package/compiler/compile.js +18 -9
- package/compiler/compile.js.map +1 -1
- package/compiler/helpers.js +1 -2
- package/compiler/helpers.js.map +1 -1
- package/compiler/scaffold.js +36 -27
- package/compiler/scaffold.js.map +1 -1
- package/compiler/translations.js +19 -10
- package/compiler/translations.js.map +1 -1
- package/compiler/utils.js +28 -18
- package/compiler/utils.js.map +1 -1
- package/package.json +14 -14
- package/scaffold/README.md +7 -7
- package/scaffold/angular.json +131 -128
- package/scaffold/package.json +11 -11
- package/scaffold/src/app.module.ts +19 -19
- package/scaffold/src/app.routes.ts +52 -52
- package/scaffold/src/environment.prod.ts +3 -3
- package/scaffold/src/environment.ts +6 -6
- package/scaffold/src/extension.routes.ts +1 -1
- package/scaffold/src/main.ts +17 -17
- package/scaffold/src/shared-extensions.module.ts +7 -7
- package/scaffold/src/styles/global-styles.scss +1 -1
- package/scaffold/src/tsconfig.app.json +18 -18
- package/scaffold/tsconfig.json +28 -28
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/ui-devkit",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "A library for authoring Vendure Admin UI extensions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vendure",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"extensions"
|
|
9
9
|
],
|
|
10
10
|
"author": "Michael Bromley <michael@michaelbromley.co.uk>",
|
|
11
|
-
"homepage": "https://www.vendure.io
|
|
11
|
+
"homepage": "https://www.vendure.io",
|
|
12
12
|
"license": "GPL-3.0-or-later",
|
|
13
13
|
"files": [
|
|
14
14
|
"client",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"types": "client/index.d.ts",
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "
|
|
26
|
+
"url": "https://github.com/vendure-ecommerce/vendure"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build:client": "rimraf ./client && rollup -c rollup.config.mjs --configProduction",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"url": "https://github.com/vendure-ecommerce/vendure/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@angular-devkit/build-angular": "^
|
|
40
|
-
"@angular/cli": "^
|
|
41
|
-
"@angular/compiler": "^
|
|
42
|
-
"@angular/compiler-cli": "^
|
|
43
|
-
"@vendure/admin-ui": "^3.1
|
|
44
|
-
"@vendure/common": "^3.1
|
|
39
|
+
"@angular-devkit/build-angular": "^19.2.5",
|
|
40
|
+
"@angular/cli": "^19.2.5",
|
|
41
|
+
"@angular/compiler": "^19.2.4",
|
|
42
|
+
"@angular/compiler-cli": "^19.2.4",
|
|
43
|
+
"@vendure/admin-ui": "^3.2.1",
|
|
44
|
+
"@vendure/common": "^3.2.1",
|
|
45
45
|
"chalk": "^4.1.0",
|
|
46
46
|
"chokidar": "^3.6.0",
|
|
47
47
|
"fs-extra": "^11.2.0",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
53
53
|
"@rollup/plugin-terser": "^0.4.4",
|
|
54
54
|
"@types/fs-extra": "^11.0.4",
|
|
55
|
-
"@vendure/core": "^3.1
|
|
56
|
-
"react": "^
|
|
57
|
-
"react-dom": "^
|
|
55
|
+
"@vendure/core": "^3.2.1",
|
|
56
|
+
"react": "^19.0.0",
|
|
57
|
+
"react-dom": "^19.0.0",
|
|
58
58
|
"rimraf": "^5.0.5",
|
|
59
59
|
"rollup": "^4.13.0",
|
|
60
60
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
61
61
|
"tslib": "^2.6.2",
|
|
62
|
-
"typescript": "5.
|
|
62
|
+
"typescript": "5.8.2"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "33097510fce9c547b937984e5c07962ba320a23a"
|
|
65
65
|
}
|
package/scaffold/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# Generated Admin UI
|
|
2
|
-
|
|
3
|
-
This directory and its entire contents was generated the `compileUiExtensions()` function of the `@vendure/ui-devkit/compiler` package. It is not recommended to modify these files, since any changes will be overwritten upon re-compiling the ui extensions.
|
|
4
|
-
|
|
5
|
-
## Production app
|
|
6
|
-
|
|
7
|
-
When compiling in production mode (`devMode: false`), the compiled application will be output to the `./dist` directory. This is a production-ready Angular application which can then be served from any web server, with attention to the [Angular server configuration guide](https://angular.io/guide/deployment#server-configuration).
|
|
1
|
+
# Generated Admin UI
|
|
2
|
+
|
|
3
|
+
This directory and its entire contents was generated the `compileUiExtensions()` function of the `@vendure/ui-devkit/compiler` package. It is not recommended to modify these files, since any changes will be overwritten upon re-compiling the ui extensions.
|
|
4
|
+
|
|
5
|
+
## Production app
|
|
6
|
+
|
|
7
|
+
When compiling in production mode (`devMode: false`), the compiled application will be output to the `./dist` directory. This is a production-ready Angular application which can then be served from any web server, with attention to the [Angular server configuration guide](https://angular.io/guide/deployment#server-configuration).
|
package/scaffold/angular.json
CHANGED
|
@@ -1,128 +1,131 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "../node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
-
"version": 1,
|
|
4
|
-
"newProjectRoot": "projects",
|
|
5
|
-
"projects": {
|
|
6
|
-
"vendure-admin": {
|
|
7
|
-
"root": "",
|
|
8
|
-
"sourceRoot": "src",
|
|
9
|
-
"projectType": "application",
|
|
10
|
-
"prefix": "vdr",
|
|
11
|
-
"schematics": {
|
|
12
|
-
"@schematics/angular:component": {
|
|
13
|
-
"style": "scss"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"architect": {
|
|
17
|
-
"build": {
|
|
18
|
-
"builder": "@angular-devkit/build-angular:
|
|
19
|
-
"options": {
|
|
20
|
-
"baseHref": "/",
|
|
21
|
-
"outputPath":
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"src/
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
],
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@vendure/common/lib/
|
|
72
|
-
"@vendure/common/lib/
|
|
73
|
-
"@
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"vendure-admin": {
|
|
7
|
+
"root": "",
|
|
8
|
+
"sourceRoot": "src",
|
|
9
|
+
"projectType": "application",
|
|
10
|
+
"prefix": "vdr",
|
|
11
|
+
"schematics": {
|
|
12
|
+
"@schematics/angular:component": {
|
|
13
|
+
"style": "scss"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"architect": {
|
|
17
|
+
"build": {
|
|
18
|
+
"builder": "@angular-devkit/build-angular:application",
|
|
19
|
+
"options": {
|
|
20
|
+
"baseHref": "/admin/",
|
|
21
|
+
"outputPath": {
|
|
22
|
+
"base": "dist"
|
|
23
|
+
},
|
|
24
|
+
"index": "src/index.html",
|
|
25
|
+
"polyfills": [
|
|
26
|
+
"src/polyfills.ts"
|
|
27
|
+
],
|
|
28
|
+
"tsConfig": "src/tsconfig.app.json",
|
|
29
|
+
"assets": [
|
|
30
|
+
{
|
|
31
|
+
"glob": "**/*.*",
|
|
32
|
+
"input": "static-assets",
|
|
33
|
+
"output": "assets"
|
|
34
|
+
},
|
|
35
|
+
"src/favicon.ico",
|
|
36
|
+
{
|
|
37
|
+
"glob": "favicon.ico",
|
|
38
|
+
"input": "static-assets",
|
|
39
|
+
"output": "/"
|
|
40
|
+
},
|
|
41
|
+
"src/vendure-ui-config.json",
|
|
42
|
+
"src/theme.min.css",
|
|
43
|
+
"src/assets",
|
|
44
|
+
"src/i18n-messages",
|
|
45
|
+
{
|
|
46
|
+
"glob": "logo-*.*",
|
|
47
|
+
"input": "static-assets",
|
|
48
|
+
"output": "assets"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"styles": [
|
|
52
|
+
"src/global-styles.scss"
|
|
53
|
+
],
|
|
54
|
+
"stylePreprocessorOptions": {
|
|
55
|
+
"includePaths": [
|
|
56
|
+
"./src/styles",
|
|
57
|
+
"./src/fonts"
|
|
58
|
+
],
|
|
59
|
+
"sass": {
|
|
60
|
+
"silenceDeprecations": ["mixed-decls", "color-functions", "global-builtin", "import"]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"allowedCommonJsDependencies": [
|
|
64
|
+
"graphql-tag",
|
|
65
|
+
"zen-observable",
|
|
66
|
+
"lodash",
|
|
67
|
+
"dayjs",
|
|
68
|
+
"apollo-upload-client",
|
|
69
|
+
"@clr/icons",
|
|
70
|
+
"@clr/icons/shapes/all-shapes",
|
|
71
|
+
"@vendure/common/lib/generated-types",
|
|
72
|
+
"@vendure/common/lib/simple-deep-clone",
|
|
73
|
+
"@vendure/common/lib/shared-constants",
|
|
74
|
+
"@vendure/common/lib/shared-utils",
|
|
75
|
+
"@vendure/common/lib/normalize-string",
|
|
76
|
+
"@vendure/common/lib/unique",
|
|
77
|
+
"@vendure/common/lib/omit",
|
|
78
|
+
"@vendure/common/lib/pick",
|
|
79
|
+
"@messageformat/core"
|
|
80
|
+
],
|
|
81
|
+
"extractLicenses": false,
|
|
82
|
+
"sourceMap": true,
|
|
83
|
+
"optimization": false,
|
|
84
|
+
"namedChunks": true,
|
|
85
|
+
"browser": "src/main.ts"
|
|
86
|
+
},
|
|
87
|
+
"configurations": {
|
|
88
|
+
"production": {
|
|
89
|
+
"budgets": [
|
|
90
|
+
{
|
|
91
|
+
"type": "anyComponentStyle",
|
|
92
|
+
"maximumWarning": "6kb"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"fileReplacements": [
|
|
96
|
+
{
|
|
97
|
+
"replace": "src/environment.ts",
|
|
98
|
+
"with": "src/environment.prod.ts"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"optimization": {
|
|
102
|
+
"styles": {
|
|
103
|
+
"inlineCritical": false
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"outputHashing": "all",
|
|
107
|
+
"namedChunks": false,
|
|
108
|
+
"extractLicenses": true
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"defaultConfiguration": ""
|
|
112
|
+
},
|
|
113
|
+
"serve": {
|
|
114
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
115
|
+
"options": {
|
|
116
|
+
"buildTarget": "vendure-admin:build"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"schematics": {
|
|
123
|
+
"@schematics/angular:component": {
|
|
124
|
+
"skipTests": true,
|
|
125
|
+
"changeDetection": "OnPush"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"cli": {
|
|
129
|
+
"analytics": false
|
|
130
|
+
}
|
|
131
|
+
}
|
package/scaffold/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vendure-admin-ui",
|
|
3
|
-
"dependencies": {},
|
|
4
|
-
"license": "UNLICENSED",
|
|
5
|
-
"private": true,
|
|
6
|
-
"scripts": {
|
|
7
|
-
"ng": "ng",
|
|
8
|
-
"start": "ng serve",
|
|
9
|
-
"build": "ng build --configuration production"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vendure-admin-ui",
|
|
3
|
+
"dependencies": {},
|
|
4
|
+
"license": "UNLICENSED",
|
|
5
|
+
"private": true,
|
|
6
|
+
"scripts": {
|
|
7
|
+
"ng": "ng",
|
|
8
|
+
"start": "ng serve",
|
|
9
|
+
"build": "ng build --configuration production"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { Route, RouterModule } from '@angular/router';
|
|
3
|
-
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
|
|
4
|
-
import { AppComponent, AppComponentModule, CoreModule } from '@vendure/admin-ui/core';
|
|
5
|
-
|
|
6
|
-
import { routes } from './app.routes';
|
|
7
|
-
import { SharedExtensionsModule } from './shared-extensions.module';
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
declarations: [],
|
|
11
|
-
imports: [
|
|
12
|
-
AppComponentModule,
|
|
13
|
-
RouterModule.forRoot(routes, { useHash: false }),
|
|
14
|
-
CoreModule,
|
|
15
|
-
SharedExtensionsModule,
|
|
16
|
-
],
|
|
17
|
-
bootstrap: [AppComponent],
|
|
18
|
-
})
|
|
19
|
-
export class AppModule {}
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { Route, RouterModule } from '@angular/router';
|
|
3
|
+
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
|
|
4
|
+
import { AppComponent, AppComponentModule, CoreModule } from '@vendure/admin-ui/core';
|
|
5
|
+
|
|
6
|
+
import { routes } from './app.routes';
|
|
7
|
+
import { SharedExtensionsModule } from './shared-extensions.module';
|
|
8
|
+
|
|
9
|
+
@NgModule({
|
|
10
|
+
declarations: [],
|
|
11
|
+
imports: [
|
|
12
|
+
AppComponentModule,
|
|
13
|
+
RouterModule.forRoot(routes, { useHash: false }),
|
|
14
|
+
CoreModule,
|
|
15
|
+
SharedExtensionsModule,
|
|
16
|
+
],
|
|
17
|
+
bootstrap: [AppComponent],
|
|
18
|
+
})
|
|
19
|
+
export class AppModule {}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { Route } from '@angular/router';
|
|
2
|
-
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
|
|
3
|
-
import { AppShellComponent, AuthGuard } from '@vendure/admin-ui/core';
|
|
4
|
-
|
|
5
|
-
import { extensionRoutes } from './extension.routes';
|
|
6
|
-
|
|
7
|
-
export const routes: Route[] = [
|
|
8
|
-
{ path: 'login', loadChildren: () => import('@vendure/admin-ui/login').then(m => m.LoginModule) },
|
|
9
|
-
{
|
|
10
|
-
path: '',
|
|
11
|
-
canActivate: [AuthGuard],
|
|
12
|
-
component: AppShellComponent,
|
|
13
|
-
data: {
|
|
14
|
-
breadcrumb: _('breadcrumb.dashboard'),
|
|
15
|
-
},
|
|
16
|
-
children: [
|
|
17
|
-
// Defining the extension routes before the built-in routes allows
|
|
18
|
-
// the extension routes to take precedence over the built-in routes, enabling
|
|
19
|
-
// the extensions to override built-in functionality.
|
|
20
|
-
...extensionRoutes,
|
|
21
|
-
{
|
|
22
|
-
path: '',
|
|
23
|
-
pathMatch: 'full',
|
|
24
|
-
loadChildren: () => import('@vendure/admin-ui/dashboard').then(m => m.DashboardModule),
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
path: 'catalog',
|
|
28
|
-
loadChildren: () => import('@vendure/admin-ui/catalog').then(m => m.CatalogModule),
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
path: 'customer',
|
|
32
|
-
loadChildren: () => import('@vendure/admin-ui/customer').then(m => m.CustomerModule),
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
path: 'orders',
|
|
36
|
-
loadChildren: () => import('@vendure/admin-ui/order').then(m => m.OrderModule),
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
path: 'marketing',
|
|
40
|
-
loadChildren: () => import('@vendure/admin-ui/marketing').then(m => m.MarketingModule),
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
path: 'settings',
|
|
44
|
-
loadChildren: () => import('@vendure/admin-ui/settings').then(m => m.SettingsModule),
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
path: 'system',
|
|
48
|
-
loadChildren: () => import('@vendure/admin-ui/system').then(m => m.SystemModule),
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
];
|
|
1
|
+
import { Route } from '@angular/router';
|
|
2
|
+
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
|
|
3
|
+
import { AppShellComponent, AuthGuard } from '@vendure/admin-ui/core';
|
|
4
|
+
|
|
5
|
+
import { extensionRoutes } from './extension.routes';
|
|
6
|
+
|
|
7
|
+
export const routes: Route[] = [
|
|
8
|
+
{ path: 'login', loadChildren: () => import('@vendure/admin-ui/login').then(m => m.LoginModule) },
|
|
9
|
+
{
|
|
10
|
+
path: '',
|
|
11
|
+
canActivate: [AuthGuard],
|
|
12
|
+
component: AppShellComponent,
|
|
13
|
+
data: {
|
|
14
|
+
breadcrumb: _('breadcrumb.dashboard'),
|
|
15
|
+
},
|
|
16
|
+
children: [
|
|
17
|
+
// Defining the extension routes before the built-in routes allows
|
|
18
|
+
// the extension routes to take precedence over the built-in routes, enabling
|
|
19
|
+
// the extensions to override built-in functionality.
|
|
20
|
+
...extensionRoutes,
|
|
21
|
+
{
|
|
22
|
+
path: '',
|
|
23
|
+
pathMatch: 'full',
|
|
24
|
+
loadChildren: () => import('@vendure/admin-ui/dashboard').then(m => m.DashboardModule),
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
path: 'catalog',
|
|
28
|
+
loadChildren: () => import('@vendure/admin-ui/catalog').then(m => m.CatalogModule),
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
path: 'customer',
|
|
32
|
+
loadChildren: () => import('@vendure/admin-ui/customer').then(m => m.CustomerModule),
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
path: 'orders',
|
|
36
|
+
loadChildren: () => import('@vendure/admin-ui/order').then(m => m.OrderModule),
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
path: 'marketing',
|
|
40
|
+
loadChildren: () => import('@vendure/admin-ui/marketing').then(m => m.MarketingModule),
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
path: 'settings',
|
|
44
|
+
loadChildren: () => import('@vendure/admin-ui/settings').then(m => m.SettingsModule),
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
path: 'system',
|
|
48
|
+
loadChildren: () => import('@vendure/admin-ui/system').then(m => m.SystemModule),
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const environment = {
|
|
2
|
-
production: true,
|
|
3
|
-
};
|
|
1
|
+
export const environment = {
|
|
2
|
+
production: true,
|
|
3
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// This file can be replaced during build by using the `fileReplacements` array.
|
|
2
|
-
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
|
|
3
|
-
// The list of file replacements can be found in `angular.json`.
|
|
4
|
-
export const environment = {
|
|
5
|
-
production: false,
|
|
6
|
-
};
|
|
1
|
+
// This file can be replaced during build by using the `fileReplacements` array.
|
|
2
|
+
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
|
|
3
|
+
// The list of file replacements can be found in `angular.json`.
|
|
4
|
+
export const environment = {
|
|
5
|
+
production: false,
|
|
6
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const extensionRoutes = [];
|
|
1
|
+
export const extensionRoutes = [];
|
package/scaffold/src/main.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { enableProdMode } from '@angular/core';
|
|
2
|
-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
3
|
-
import { loadAppConfig } from '@vendure/admin-ui/core';
|
|
4
|
-
|
|
5
|
-
import { AppModule } from './app.module';
|
|
6
|
-
import { environment } from './environment';
|
|
7
|
-
|
|
8
|
-
if (environment.production) {
|
|
9
|
-
enableProdMode();
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
loadAppConfig()
|
|
13
|
-
.then(() => platformBrowserDynamic().bootstrapModule(AppModule))
|
|
14
|
-
.catch((err: any) => {
|
|
15
|
-
/* eslint-disable no-console */
|
|
16
|
-
console.log(err);
|
|
17
|
-
});
|
|
1
|
+
import { enableProdMode } from '@angular/core';
|
|
2
|
+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
3
|
+
import { loadAppConfig } from '@vendure/admin-ui/core';
|
|
4
|
+
|
|
5
|
+
import { AppModule } from './app.module';
|
|
6
|
+
import { environment } from './environment';
|
|
7
|
+
|
|
8
|
+
if (environment.production) {
|
|
9
|
+
enableProdMode();
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
loadAppConfig()
|
|
13
|
+
.then(() => platformBrowserDynamic().bootstrapModule(AppModule))
|
|
14
|
+
.catch((err: any) => {
|
|
15
|
+
/* eslint-disable no-console */
|
|
16
|
+
console.log(err);
|
|
17
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
@NgModule({
|
|
5
|
-
imports: [CommonModule],
|
|
6
|
-
})
|
|
7
|
-
export class SharedExtensionsModule {}
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@NgModule({
|
|
5
|
+
imports: [CommonModule],
|
|
6
|
+
})
|
|
7
|
+
export class SharedExtensionsModule {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "./styles";
|
|
1
|
+
@import "./styles";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "../out-tsc/app"
|
|
5
|
-
},
|
|
6
|
-
"files": [
|
|
7
|
-
"main.ts",
|
|
8
|
-
"polyfills.ts"
|
|
9
|
-
],
|
|
10
|
-
"include": [
|
|
11
|
-
"**/*.d.ts"
|
|
12
|
-
],
|
|
13
|
-
"angularCompilerOptions": {
|
|
14
|
-
"strictMetadataEmit": true,
|
|
15
|
-
"fullTemplateTypeCheck": false,
|
|
16
|
-
"strictInjectionParameters": true
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../out-tsc/app"
|
|
5
|
+
},
|
|
6
|
+
"files": [
|
|
7
|
+
"main.ts",
|
|
8
|
+
"polyfills.ts"
|
|
9
|
+
],
|
|
10
|
+
"include": [
|
|
11
|
+
"**/*.d.ts"
|
|
12
|
+
],
|
|
13
|
+
"angularCompilerOptions": {
|
|
14
|
+
"strictMetadataEmit": true,
|
|
15
|
+
"fullTemplateTypeCheck": false,
|
|
16
|
+
"strictInjectionParameters": true
|
|
17
|
+
}
|
|
18
|
+
}
|