@mckit/schematics 0.0.19 → 0.0.21
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
CHANGED
|
@@ -16,12 +16,12 @@ import { MCTenantService } from '@mckit/tenant';
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
@Component({
|
|
19
|
-
selector: 'app-
|
|
19
|
+
selector: 'app-sign-up-page',
|
|
20
20
|
imports: [CommonModule, FormsModule, ReactiveFormsModule, ButtonModule, CardModule, IconFieldModule, InputIconModule, InputTextModule, PasswordModule, MessageModule, RouterModule],
|
|
21
|
-
templateUrl: './
|
|
22
|
-
styleUrl: './
|
|
21
|
+
templateUrl: './sign-up-page.component.html',
|
|
22
|
+
styleUrl: './sign-up-page.component.scss'
|
|
23
23
|
})
|
|
24
|
-
export class
|
|
24
|
+
export class SignUpPage {
|
|
25
25
|
group = new FormGroup({
|
|
26
26
|
firstname: new FormControl<string>(''),
|
|
27
27
|
project_name: new FormControl<string>('', Validators.required),
|
|
@@ -5,12 +5,12 @@ import { MCTenantService } from '@mckit/tenant';
|
|
|
5
5
|
import { catchError, switchMap, take, takeUntil, tap } from 'rxjs';
|
|
6
6
|
|
|
7
7
|
@Component({
|
|
8
|
-
selector: 'app-
|
|
8
|
+
selector: 'app-sign-in-page',
|
|
9
9
|
imports: [MCAuthBasicComponent],
|
|
10
|
-
templateUrl: './
|
|
11
|
-
styleUrl: './
|
|
10
|
+
templateUrl: './sign-in-page.component.html',
|
|
11
|
+
styleUrl: './sign-in-page.component.scss'
|
|
12
12
|
})
|
|
13
|
-
export class
|
|
13
|
+
export class SignInPage {
|
|
14
14
|
authComp = viewChild.required(MCAuthBasicComponent);
|
|
15
15
|
|
|
16
16
|
mcAuthService = inject(MCAuthenticationService);
|
|
@@ -43,9 +43,14 @@ function install(_options) {
|
|
|
43
43
|
return (tree, _context) => {
|
|
44
44
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
45
45
|
// Install the required dependencies
|
|
46
|
-
(0, run_command_1.runCommand)('npm install --save @mckit/auth @mckit/filter @mckit/form @mckit/odata @mckit/table @mckit/tenant', _context);
|
|
46
|
+
(0, run_command_1.runCommand)('npm install --save @mckit/layout-core @mckit/layout @mckit/layout-fuse @mckit/auth @mckit/filter @mckit/form @mckit/odata @mckit/table @mckit/tenant', _context);
|
|
47
|
+
// Generate environments
|
|
48
|
+
(0, run_command_1.runCommand)('ng g environments', _context);
|
|
47
49
|
// Config SCSS
|
|
48
50
|
(0, add_source_in_styles_1.addSourceInStyles)(tree, `
|
|
51
|
+
@source "../node_modules/@mckit/layout-core";
|
|
52
|
+
@source "../node_modules/@mckit/layout";
|
|
53
|
+
@source "../node_modules/@mckit/layout-fuse";
|
|
49
54
|
@source "../node_modules/@mckit/auth";
|
|
50
55
|
@source "../node_modules/@mckit/table";
|
|
51
56
|
@source "../node_modules/@mckit/odata";
|
|
@@ -55,22 +60,22 @@ function install(_options) {
|
|
|
55
60
|
// Replace App Component
|
|
56
61
|
tree.overwrite('src/app/app.ts', (_a = (0, get_content_by_file_1.getContentByFile)(__dirname, 'app.ts.template')) !== null && _a !== void 0 ? _a : '');
|
|
57
62
|
// Create Footer Layout
|
|
58
|
-
tree.
|
|
59
|
-
tree.
|
|
60
|
-
tree.
|
|
63
|
+
tree.create('src/app/shared/components/footer-layout/footer-layout.component.scss', '');
|
|
64
|
+
tree.create('src/app/shared/components/footer-layout/footer-layout.component.html', (_b = (0, get_content_by_file_1.getContentByFile)(__dirname, 'footer-layout.component.html.template')) !== null && _b !== void 0 ? _b : '');
|
|
65
|
+
tree.create('src/app/shared/components/footer-layout/footer-layout.component.ts', (_c = (0, get_content_by_file_1.getContentByFile)(__dirname, 'footer-layout.component.ts.template')) !== null && _c !== void 0 ? _c : '');
|
|
61
66
|
// Create Tenant form modal
|
|
62
|
-
tree.
|
|
67
|
+
tree.create('src/app/features/tenant/modals/tenant-create-form.service.ts', (_d = (0, get_content_by_file_1.getContentByFile)(__dirname, 'tenant-create-form.service.ts.template')) !== null && _d !== void 0 ? _d : '');
|
|
63
68
|
// Create No tenant page
|
|
64
|
-
tree.
|
|
65
|
-
tree.
|
|
69
|
+
tree.create('src/app/features/tenant/pages/no-tenant-page/no-tenant-page.component.html', (_e = (0, get_content_by_file_1.getContentByFile)(__dirname, 'no-tenant-page.component.html.template')) !== null && _e !== void 0 ? _e : '');
|
|
70
|
+
tree.create('src/app/features/tenant/pages/no-tenant-page/no-tenant-page.component.ts', (_f = (0, get_content_by_file_1.getContentByFile)(__dirname, 'no-tenant-page.component.ts.template')) !== null && _f !== void 0 ? _f : '');
|
|
66
71
|
// Create Login page
|
|
67
|
-
tree.
|
|
68
|
-
tree.
|
|
69
|
-
tree.
|
|
72
|
+
tree.create('src/app/features/auth/pages/sign-in-page/sign-in-page.component.scss', '');
|
|
73
|
+
tree.create('src/app/features/auth/pages/sign-in-page/sign-in-page.component.html', (_g = (0, get_content_by_file_1.getContentByFile)(__dirname, 'sign-in-page.component.html.template')) !== null && _g !== void 0 ? _g : '');
|
|
74
|
+
tree.create('src/app/features/auth/pages/sign-in-page/sign-in-page.component.ts', (_h = (0, get_content_by_file_1.getContentByFile)(__dirname, 'sign-in-page.component.ts.template')) !== null && _h !== void 0 ? _h : '');
|
|
70
75
|
// Create Register page
|
|
71
|
-
tree.
|
|
72
|
-
tree.
|
|
73
|
-
tree.
|
|
76
|
+
tree.create('src/app/features/auth/pages/sign-up-page/sign-up-page.component.scss', '');
|
|
77
|
+
tree.create('src/app/features/auth/pages/sign-up-page/sign-up-page.component.html', (_j = (0, get_content_by_file_1.getContentByFile)(__dirname, 'register-page.component.html.template')) !== null && _j !== void 0 ? _j : '');
|
|
78
|
+
tree.create('src/app/features/auth/pages/sign-up-page/sign-up-page.component.ts', (_k = (0, get_content_by_file_1.getContentByFile)(__dirname, 'register-page.component.ts.template')) !== null && _k !== void 0 ? _k : '');
|
|
74
79
|
// Add Route
|
|
75
80
|
(0, add_route_1.addRoute)(`{
|
|
76
81
|
path: 'login',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AA8CA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AA8CA,0BA0EC;AAvHD,qDAAiD;AACjD,iDAA6C;AAC7C,qEAA+D;AAC/D,uEAAiE;AACjE,+DAA0D;AAE1D,SAAS,gBAAgB,CAAC,IAAU,EAAE,QAA0B;IAC9D,MAAM,QAAQ,GAAG,uBAAuB,CAAC;IAEzC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3B,OAAO;IACT,CAAC;IAED,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvC,IAAI,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAEtD,qCAAqC;IACrC,MAAM,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IACrD,sDAAsD;IACtD,MAAM,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IAC/D,2CAA2C;IAC3C,OAAO,GAAG,IAAA,iCAAc,EAAC,OAAO,EAAE;;;;;;;2DAOuB,EAAE,iBAAiB,GAAG,CAAC,CAAC,CAAC;IAElF,0CAA0C;IAC1C,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,wDAAwD,EAAE;;;;;;;QAO9E,CAAC,CAAC;IAER,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACpC,CAAC;AAED,iGAAiG;AACjG,YAAY;AACZ,SAAgB,OAAO,CAAC,QAAa;IACnC,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;;QAEhD,oCAAoC;QACpC,IAAA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