@rxap/plugin-angular 16.1.0-dev.2 → 16.1.0-dev.20

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +135 -0
  2. package/LICENSE.md +621 -0
  3. package/README.md +64 -1
  4. package/executors.json +5 -0
  5. package/generators.json +37 -0
  6. package/package.json +33 -17
  7. package/src/executors/check-ng-package/executor.d.ts +5 -0
  8. package/src/executors/check-ng-package/executor.js +30 -0
  9. package/src/executors/check-ng-package/executor.js.map +1 -0
  10. package/src/executors/check-ng-package/schema.d.ts +1 -0
  11. package/src/executors/check-ng-package/schema.json +9 -0
  12. package/src/generators/fix-schematic/index.d.ts +2 -0
  13. package/src/generators/fix-schematic/index.js +7 -0
  14. package/src/generators/fix-schematic/index.js.map +1 -0
  15. package/src/generators/init/index.d.ts +2 -0
  16. package/src/generators/init/index.js +7 -0
  17. package/src/generators/init/index.js.map +1 -0
  18. package/src/generators/init/schema.d.ts +1 -0
  19. package/src/generators/init/schema.json +5 -0
  20. package/src/generators/init-application/files/app/app.navigation.ts.template +11 -0
  21. package/src/generators/init-application/files/app/app.routes.ts.template +14 -0
  22. package/src/generators/init-application/files/app/layout.routes.ts.template +33 -0
  23. package/src/generators/init-application/files/monolithic/app/app.config.ts.template +40 -0
  24. package/src/generators/init-application/files/monolithic/app/app.navigation.ts.template +11 -0
  25. package/src/generators/init-application/files/monolithic/app/app.routes.ts.template +14 -0
  26. package/src/generators/init-application/files/monolithic/app/layout.routes.ts.template +32 -0
  27. package/src/generators/init-application/files/monolithic/styles.scss.template +3 -0
  28. package/src/generators/init-application/files/shared/angular.Dockerfile +3 -0
  29. package/src/generators/init-application/files/shared/configuration/.gitkeep +0 -0
  30. package/src/generators/init-application/files/styles/_fonts.scss +1 -0
  31. package/src/generators/init-application/files/styles/_index.scss +10 -0
  32. package/src/generators/init-application/files/styles/_loading-animation.scss +200 -0
  33. package/src/generators/init-application/files/styles/_palette.scss +98 -0
  34. package/src/generators/init-application/files/styles/_table.scss +45 -0
  35. package/src/generators/init-application/files/styles/_theme.scss +101 -0
  36. package/src/generators/init-application/files/styles/_variables.scss +63 -0
  37. package/src/generators/init-application/files/styles/fonts/_material-icons.scss +20 -0
  38. package/src/generators/init-application/files/styles/fonts/material-icons.ttf +0 -0
  39. package/src/generators/init-application/generator.js +214 -41
  40. package/src/generators/init-application/generator.js.map +1 -1
  41. package/src/generators/init-application/index.d.ts +2 -0
  42. package/src/generators/init-application/index.js +7 -0
  43. package/src/generators/init-application/index.js.map +1 -0
  44. package/src/generators/init-application/schema.d.ts +4 -0
  45. package/src/generators/init-application/schema.json +35 -8
  46. package/src/generators/init-feature/files/feature/__name__/routes.ts.template +10 -0
  47. package/src/generators/init-feature/generator.d.ts +11 -0
  48. package/src/generators/init-feature/generator.js +106 -0
  49. package/src/generators/init-feature/generator.js.map +1 -0
  50. package/src/generators/init-feature/index.d.ts +2 -0
  51. package/src/generators/init-feature/index.js +7 -0
  52. package/src/generators/init-feature/index.js.map +1 -0
  53. package/src/generators/init-feature/schema.d.ts +4 -0
  54. package/src/generators/init-feature/schema.json +20 -0
  55. package/src/generators/init-library/generator.js +77 -25
  56. package/src/generators/init-library/generator.js.map +1 -1
  57. package/src/generators/init-library/index.d.ts +2 -0
  58. package/src/generators/init-library/index.js +7 -0
  59. package/src/generators/init-library/index.js.map +1 -0
  60. package/src/generators/init-library/schema.d.ts +1 -0
  61. package/src/generators/init-library/schema.json +5 -0
  62. package/src/generators/schematic/index.d.ts +2 -0
  63. package/src/generators/schematic/index.js +7 -0
  64. package/src/generators/schematic/index.js.map +1 -0
  65. package/src/generators/init-application/files/shared/assets/Dockerfile +0 -5
  66. package/src/generators/init-application/files/shared/assets/nginx.conf +0 -74
package/README.md CHANGED
@@ -19,7 +19,7 @@ yarn add @rxap/plugin-angular
19
19
  ```
20
20
  **Install peer dependencies:**
21
21
  ```bash
22
- yarn add @nx/devkit@^16.5.0 @rxap/generator-utilities@^1.0.1-dev.3 @rxap/plugin-utilities@* @rxap/schematics-ts-morph@^16.0.0-dev.5 @rxap/workspace-ts-morph@^0.0.2-dev.0 @rxap/workspace-utilities@^0.1.0-dev.0 nx@^16.5.0 ts-morph@^18.0.0
22
+ yarn add @nx/devkit@^16.5.0 @rxap/generator-utilities@^1.1.0-dev.10 @rxap/plugin-localazy@^16.1.0-dev.9 @rxap/plugin-utilities@^16.1.0-dev.12 @rxap/ts-morph@^0.1.0-dev.6 @rxap/workspace-ts-morph@^0.1.0-dev.6 @rxap/workspace-utilities@^0.1.0-dev.11 nx@^16.5.0 ts-morph@^18.0.0
23
23
  ```
24
24
  **Execute the init generator:**
25
25
  ```bash
@@ -61,6 +61,55 @@ yarn nx g @rxap/plugin-angular:fix-schematic
61
61
  ```bash
62
62
  yarn nx g @rxap/plugin-angular:schematic
63
63
  ```
64
+
65
+ ## init-feature
66
+ > init-feature generator
67
+
68
+ ```bash
69
+ yarn nx g @rxap/plugin-angular:init-feature
70
+ ```
71
+
72
+ ## init
73
+ > init generator
74
+
75
+ ```bash
76
+ yarn nx g @rxap/plugin-angular:init
77
+ ```
78
+
79
+ ## init-application
80
+ > init-application generator
81
+
82
+ ```bash
83
+ yarn nx g @rxap/plugin-angular:init-application
84
+ ```
85
+
86
+ ## init-library
87
+ > init-library generator
88
+
89
+ ```bash
90
+ yarn nx g @rxap/plugin-angular:init-library
91
+ ```
92
+
93
+ ## fix-schematic
94
+ > fix-schematic generator
95
+
96
+ ```bash
97
+ yarn nx g @rxap/plugin-angular:fix-schematic
98
+ ```
99
+
100
+ ## schematic
101
+ > Create a Schematic for a project.
102
+
103
+ ```bash
104
+ yarn nx g @rxap/plugin-angular:schematic
105
+ ```
106
+
107
+ ## init-feature
108
+ > init-feature generator
109
+
110
+ ```bash
111
+ yarn nx g @rxap/plugin-angular:init-feature
112
+ ```
64
113
  # Executors
65
114
 
66
115
  ## tailwind
@@ -77,3 +126,17 @@ yarn nx g @rxap/plugin-angular:schematic
77
126
  }
78
127
  ```
79
128
 
129
+ ## check-ng-package
130
+ > check-ng-package executor
131
+
132
+ **project.json**
133
+ ```json
134
+ {
135
+ "targets": {
136
+ "check-ng-package": {
137
+ "executor": "@rxap/plugin-angular:check-ng-package"
138
+ }
139
+ }
140
+ }
141
+ ```
142
+
package/executors.json CHANGED
@@ -4,6 +4,11 @@
4
4
  "implementation": "./src/executors/tailwind/executor",
5
5
  "schema": "./src/executors/tailwind/schema.json",
6
6
  "description": "tailwind executor"
7
+ },
8
+ "check-ng-package": {
9
+ "implementation": "./src/executors/check-ng-package/executor",
10
+ "schema": "./src/executors/check-ng-package/schema.json",
11
+ "description": "check-ng-package executor"
7
12
  }
8
13
  }
9
14
  }
package/generators.json CHANGED
@@ -24,6 +24,43 @@
24
24
  "factory": "./src/generators/schematic/generator",
25
25
  "schema": "./src/generators/schematic/schema.json",
26
26
  "description": "Create a Schematic for a project."
27
+ },
28
+ "init-feature": {
29
+ "factory": "./src/generators/init-feature/generator",
30
+ "schema": "./src/generators/init-feature/schema.json",
31
+ "description": "init-feature generator"
32
+ }
33
+ },
34
+ "schematics": {
35
+ "init": {
36
+ "factory": "./src/generators/init/index",
37
+ "schema": "./src/generators/init/schema.json",
38
+ "description": "init generator"
39
+ },
40
+ "init-application": {
41
+ "factory": "./src/generators/init-application/index",
42
+ "schema": "./src/generators/init-application/schema.json",
43
+ "description": "init-application generator"
44
+ },
45
+ "init-library": {
46
+ "factory": "./src/generators/init-library/index",
47
+ "schema": "./src/generators/init-library/schema.json",
48
+ "description": "init-library generator"
49
+ },
50
+ "fix-schematic": {
51
+ "factory": "./src/generators/fix-schematic/index",
52
+ "schema": "./src/generators/fix-schematic/schema.json",
53
+ "description": "fix-schematic generator"
54
+ },
55
+ "schematic": {
56
+ "factory": "./src/generators/schematic/index",
57
+ "schema": "./src/generators/schematic/schema.json",
58
+ "description": "Create a Schematic for a project."
59
+ },
60
+ "init-feature": {
61
+ "factory": "./src/generators/init-feature/index",
62
+ "schema": "./src/generators/init-feature/schema.json",
63
+ "description": "init-feature generator"
27
64
  }
28
65
  }
29
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxap/plugin-angular",
3
- "version": "16.1.0-dev.2",
3
+ "version": "16.1.0-dev.20",
4
4
  "type": "commonjs",
5
5
  "generators": "./generators.json",
6
6
  "publishConfig": {
@@ -13,7 +13,8 @@
13
13
  "nx",
14
14
  "nx-plugin",
15
15
  "packages",
16
- "angular"
16
+ "angular",
17
+ "plugin-angular"
17
18
  ],
18
19
  "homepage": "https:/gitlab.com/rxap/packages/packages/plugin/angular",
19
20
  "bugs": {
@@ -32,44 +33,59 @@
32
33
  },
33
34
  "dependencies": {
34
35
  "ignore": "^5.2.4",
36
+ "process": "0.11.10",
35
37
  "semver": "^7.3.5",
36
- "tslib": "2.6.1"
38
+ "tslib": "2.6.2",
39
+ "yaml": "2.3.1"
37
40
  },
38
41
  "peerDependencies": {
39
42
  "@nx/devkit": "^16.5.0",
40
- "@rxap/generator-utilities": "^1.0.1-dev.3",
41
- "@rxap/plugin-utilities": "*",
42
- "@rxap/schematics-ts-morph": "^16.0.0-dev.5",
43
- "@rxap/workspace-ts-morph": "^0.0.2-dev.0",
44
- "@rxap/workspace-utilities": "^0.1.0-dev.0",
43
+ "@rxap/generator-utilities": "^1.1.0-dev.10",
44
+ "@rxap/plugin-localazy": "^16.1.0-dev.9",
45
+ "@rxap/plugin-utilities": "^16.1.0-dev.12",
46
+ "@rxap/ts-morph": "^0.1.0-dev.6",
47
+ "@rxap/workspace-ts-morph": "^0.1.0-dev.6",
48
+ "@rxap/workspace-utilities": "^0.1.0-dev.11",
45
49
  "nx": "^16.5.0",
46
50
  "ts-morph": "^18.0.0",
47
- "@rxap/node-utilities": "1.0.1-dev.2",
48
- "@rxap/schematics-utilities": "16.0.0-dev.6",
49
- "@rxap/utilities": "16.0.0-dev.4"
51
+ "@rxap/node-utilities": "1.1.0-dev.7",
52
+ "@rxap/utilities": "16.0.0-dev.16"
50
53
  },
51
54
  "nx-migrations": {
52
55
  "packageGroup": [
53
56
  {
54
57
  "package": "@rxap/generator-utilities",
55
- "version": "1.0.1-dev.3"
58
+ "version": "1.1.0-dev.10"
56
59
  },
57
60
  {
58
- "package": "@rxap/schematics-ts-morph",
59
- "version": "16.0.0-dev.5"
61
+ "package": "@rxap/plugin-localazy",
62
+ "version": "16.1.0-dev.9"
63
+ },
64
+ {
65
+ "package": "@rxap/plugin-utilities",
66
+ "version": "16.1.0-dev.12"
67
+ },
68
+ {
69
+ "package": "@rxap/ts-morph",
70
+ "version": "0.1.0-dev.6"
60
71
  },
61
72
  {
62
73
  "package": "@rxap/workspace-ts-morph",
63
- "version": "0.0.2-dev.0"
74
+ "version": "0.1.0-dev.6"
64
75
  },
65
76
  {
66
77
  "package": "@rxap/workspace-utilities",
67
- "version": "0.1.0-dev.0"
78
+ "version": "0.1.0-dev.11"
79
+ },
80
+ {
81
+ "package": "@rxap/schematics-ts-morph",
82
+ "version": "16.0.0-dev.12"
68
83
  }
69
84
  ]
70
85
  },
71
86
  "executors": "./executors.json",
72
- "gitHead": "0dd72d54e39fab0f72dbfc4a0377037c770c5655",
87
+ "schematics": "./generators.json",
88
+ "gitHead": "0a2b6a8ad25d8833591332ea55586724e17e5a5c",
73
89
  "main": "./src/index.js",
74
90
  "types": "./src/index.d.ts"
75
91
  }
@@ -0,0 +1,5 @@
1
+ import { ExecutorContext } from '@nx/devkit';
2
+ import { CheckNgPackageExecutorSchema } from './schema';
3
+ export default function runExecutor(options: CheckNgPackageExecutorSchema, context: ExecutorContext): Promise<{
4
+ success: boolean;
5
+ }>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const plugin_utilities_1 = require("@rxap/plugin-utilities");
5
+ function runExecutor(options, context) {
6
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
7
+ console.log('Executor ran for CheckNgPackage', options);
8
+ const ngPackage = JSON.parse((0, plugin_utilities_1.readFileFromProjectRoot)(context, 'ng-package.json', true));
9
+ const { dependencies } = JSON.parse((0, plugin_utilities_1.readFileFromProjectRoot)(context, 'package.json', true));
10
+ if (ngPackage.allowedNonPeerDependencies) {
11
+ const wrongPackages = [];
12
+ for (const packageName of ngPackage.allowedNonPeerDependencies) {
13
+ if (!dependencies[packageName]) {
14
+ wrongPackages.push(packageName);
15
+ }
16
+ }
17
+ if (wrongPackages.length) {
18
+ console.log(`\x1b[31mSome packages in the allowed non peer dependencies list are not in the package.json dependencies list:\x1b[0m\n - ${wrongPackages.join('\n - ')}`);
19
+ return {
20
+ success: false,
21
+ };
22
+ }
23
+ }
24
+ return {
25
+ success: true,
26
+ };
27
+ });
28
+ }
29
+ exports.default = runExecutor;
30
+ //# sourceMappingURL=executor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/executors/check-ng-package/executor.ts"],"names":[],"mappings":";;;AACA,6DAAiE;AAGjE,SAA8B,WAAW,CACvC,OAAqC,EACrC,OAAwB;;QAExB,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;QAExD,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,0CAAuB,EAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,CAAC,CAAC,CAAC;QACxF,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,0CAAuB,EAAC,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC,CAAC;QAE5F,IAAI,SAAS,CAAC,0BAA0B,EAAE;YACxC,MAAM,aAAa,GAAa,EAAE,CAAC;YACnC,KAAK,MAAM,WAAW,IAAI,SAAS,CAAC,0BAA0B,EAAE;gBAC9D,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE;oBAC9B,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;iBACjC;aACF;YACD,IAAI,aAAa,CAAC,MAAM,EAAE;gBACxB,OAAO,CAAC,GAAG,CAAC,6HAA8H,aAAa,CAAC,IAAI,CAC1J,OAAO,CAAE,EAAE,CAAC,CAAC;gBACf,OAAO;oBACL,OAAO,EAAE,KAAK;iBACf,CAAC;aACH;SACF;QAED,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CAAA;AA5BD,8BA4BC"}
@@ -0,0 +1 @@
1
+ export interface CheckNgPackageExecutorSchema {} // eslint-disable-line
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "version": 2,
4
+ "title": "CheckNgPackage executor",
5
+ "description": "",
6
+ "type": "object",
7
+ "properties": {},
8
+ "required": []
9
+ }
@@ -0,0 +1,2 @@
1
+ declare const schematic: (generatorOptions: import("./schema").FixSchematicGeneratorSchema) => (tree: any, context: any) => Promise<any>;
2
+ export default schematic;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const devkit_1 = require("@nx/devkit");
4
+ const generator_1 = require("./generator");
5
+ const schematic = (0, devkit_1.convertNxGenerator)(generator_1.default);
6
+ exports.default = schematic;
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/fix-schematic/index.ts"],"names":[],"mappings":";;AAAA,uCAAgD;AAChD,2CAAoC;AAEpC,MAAM,SAAS,GAAG,IAAA,2BAAkB,EAAC,mBAAS,CAAC,CAAC;AAChD,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const schematic: (generatorOptions: import("./schema").InitGeneratorSchema) => (tree: any, context: any) => Promise<any>;
2
+ export default schematic;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const devkit_1 = require("@nx/devkit");
4
+ const generator_1 = require("./generator");
5
+ const schematic = (0, devkit_1.convertNxGenerator)(generator_1.default);
6
+ exports.default = schematic;
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/init/index.ts"],"names":[],"mappings":";;AAAA,uCAAgD;AAChD,2CAAoC;AAEpC,MAAM,SAAS,GAAG,IAAA,2BAAkB,EAAC,mBAAS,CAAC,CAAC;AAChD,kBAAe,SAAS,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export interface InitGeneratorSchema {
2
2
  projects?: string[];
3
+ overwrite?: boolean;
3
4
  }
@@ -10,6 +10,11 @@
10
10
  "items": {
11
11
  "type": "string"
12
12
  }
13
+ },
14
+ "overwrite": {
15
+ "type": "boolean",
16
+ "default": false,
17
+ "description": "Whether to overwrite existing files"
13
18
  }
14
19
  },
15
20
  "required": []
@@ -0,0 +1,11 @@
1
+ import {
2
+ NavigationWithInserts,
3
+ RXAP_NAVIGATION_CONFIG,
4
+ } from '@rxap/layout';
5
+
6
+ export const APP_NAVIGATION: () => NavigationWithInserts = () => [];
7
+
8
+ export const APP_NAVIGATION_PROVIDER = {
9
+ provide: RXAP_NAVIGATION_CONFIG,
10
+ useValue: APP_NAVIGATION,
11
+ };
@@ -0,0 +1,14 @@
1
+ import { Route } from '@angular/router';
2
+ import { STATUS_CHECK_ROUTE } from '@rxap/ngx-status-check';
3
+
4
+ export const appRoutes: Route[] = [
5
+ STATUS_CHECK_ROUTE,
6
+ {
7
+ path: '',
8
+ loadChildren: () => import('./layout.routes')
9
+ },
10
+ {
11
+ path: '**',
12
+ redirectTo: '',
13
+ },
14
+ ];
@@ -0,0 +1,33 @@
1
+ import { provideAnimations } from '@angular/platform-browser/animations';
2
+ import { Route } from '@angular/router';
3
+ import {
4
+ LayoutComponent,
5
+ NavigationService,
6
+ } from '@rxap/layout';
7
+ import { StatusCheckGuard } from '@rxap/ngx-status-check';
8
+ import { APP_NAVIGATION_PROVIDER } from './app.navigation';
9
+
10
+ const ROUTES: Route[] = [
11
+ {
12
+ path: '',
13
+ component: LayoutComponent,
14
+ canActivateChild: [ StatusCheckGuard ],
15
+ children: [
16
+ {
17
+ path: '**',
18
+ redirectTo: '',
19
+ },
20
+ ],
21
+ providers: [
22
+ provideAnimations(),
23
+ APP_NAVIGATION_PROVIDER,
24
+ NavigationService,
25
+ ]
26
+ },
27
+ {
28
+ path: '**',
29
+ redirectTo: '',
30
+ },
31
+ ];
32
+
33
+ export default ROUTES;
@@ -0,0 +1,40 @@
1
+ import { HttpClientModule } from '@angular/common/http';
2
+ import {
3
+ ApplicationConfig,
4
+ importProvidersFrom,
5
+ } from '@angular/core';
6
+ import { provideAnimations } from '@angular/platform-browser/animations';
7
+ import {
8
+ provideRouter,
9
+ withEnabledBlockingInitialNavigation,
10
+ } from '@angular/router';
11
+ import { RXAP_ENVIRONMENT } from '@rxap/environment';
12
+ import {
13
+ HttpErrorInterceptor,
14
+ ProvideErrorHandler,
15
+ } from '@rxap/ngx-error';
16
+ import { SERVICE_STATUS_CHECK_METHOD } from '@rxap/ngx-status-check';
17
+ import { StatusControllerHealthCheckRemoteMethod } from 'open-api-service-status/remote-methods/status-controller-health-check.remote-method';
18
+ import { environment } from '../environments/environment';
19
+ import { appRoutes } from './app.routes';
20
+ import { provideHttpClient, withInterceptors } from '@angular/common/http';
21
+
22
+ export const appConfig: ApplicationConfig = {
23
+ providers: [
24
+ // required to be imported so that the http client is available in the application for the status check method
25
+ provideHttpClient(withInterceptors([HttpErrorInterceptor])),
26
+ provideRouter(appRoutes, withEnabledBlockingInitialNavigation()),
27
+ // it is required to provide the animations provider in the app config.
28
+ // If provided in a lazy loaded module the animations will not work
29
+ provideAnimations(),
30
+ ProvideErrorHandler(),
31
+ {
32
+ provide: RXAP_ENVIRONMENT,
33
+ useValue: environment,
34
+ },
35
+ {
36
+ provide: SERVICE_STATUS_CHECK_METHOD,
37
+ useClass: StatusControllerHealthCheckRemoteMethod,
38
+ },
39
+ ],
40
+ };
@@ -0,0 +1,11 @@
1
+ import {
2
+ NavigationWithInserts,
3
+ RXAP_NAVIGATION_CONFIG,
4
+ } from '@rxap/layout';
5
+
6
+ export const APP_NAVIGATION: () => NavigationWithInserts = () => [];
7
+
8
+ export const APP_NAVIGATION_PROVIDER = {
9
+ provide: RXAP_NAVIGATION_CONFIG,
10
+ useValue: APP_NAVIGATION,
11
+ };
@@ -0,0 +1,14 @@
1
+ import { Route } from '@angular/router';
2
+ import { STATUS_CHECK_ROUTE } from '@rxap/ngx-status-check';
3
+
4
+ export const appRoutes: Route[] = [
5
+ STATUS_CHECK_ROUTE,
6
+ {
7
+ path: '',
8
+ loadChildren: () => import('./layout.routes')
9
+ },
10
+ {
11
+ path: '**',
12
+ redirectTo: '',
13
+ },
14
+ ];
@@ -0,0 +1,32 @@
1
+ import { provideAnimations } from '@angular/platform-browser/animations';
2
+ import { Route } from '@angular/router';
3
+ import {
4
+ LayoutComponent,
5
+ NavigationService,
6
+ } from '@rxap/layout';
7
+ import { StatusCheckGuard } from '@rxap/ngx-status-check';
8
+ import { APP_NAVIGATION_PROVIDER } from './app.navigation';
9
+
10
+ const ROUTES: Route[] = [
11
+ {
12
+ path: '',
13
+ component: LayoutComponent,
14
+ canActivateChild: [ StatusCheckGuard ],
15
+ children: [
16
+ {
17
+ path: '**',
18
+ redirectTo: '',
19
+ },
20
+ ],
21
+ providers: [
22
+ APP_NAVIGATION_PROVIDER,
23
+ NavigationService,
24
+ ]
25
+ },
26
+ {
27
+ path: '**',
28
+ redirectTo: '',
29
+ },
30
+ ];
31
+
32
+ export default ROUTES;
@@ -0,0 +1,3 @@
1
+ @use "<%= relativePathToWorkspaceRoot %>/styles";
2
+
3
+ /* You can add global styles to this file, and also import other style files */
@@ -0,0 +1,3 @@
1
+ FROM registry.gitlab.com/rxap/docker/i18n-nginx:alpine
2
+
3
+ COPY . /usr/share/nginx/html
@@ -0,0 +1 @@
1
+ @use "fonts/material-icons";
@@ -0,0 +1,10 @@
1
+ @use "./theme";
2
+
3
+ html, body {
4
+ @apply h-full;
5
+ }
6
+
7
+ body {
8
+ @apply m-0;
9
+ @apply font-sans;
10
+ }