@tech4good/angular-schematics 17.0.0 → 17.0.2
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/init/files/.gitignore.template +18 -19
- package/src/init/files/angular.json.template +18 -19
- package/src/init/files/package.json.template +35 -35
- package/src/init/files/src/app/app-routing.module.ts.template +0 -1
- package/src/init/files/src/app/core/store/app.effects.ts.template +1 -1
- package/src/init/files/src/app/core/store/user/user.effects.ts.template +1 -1
- package/src/init/files/src/app/onboarding/consent/consent.component.html.template +1 -1
- package/src/init/files/src/app/onboarding/waiting/waiting.component.ts.template +6 -4
- package/src/init/files/src/main.ts.template +12 -0
- package/src/init/files/tsconfig.json.template +13 -11
- package/src/init/index.js +0 -1
- package/src/init/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# Compiled output
|
|
4
4
|
/dist
|
|
5
5
|
/tmp
|
|
6
|
-
/out-tsc
|
|
7
|
-
|
|
8
|
-
/bazel-out
|
|
6
|
+
/out-tsc
|
|
7
|
+
/bazel-out
|
|
9
8
|
|
|
10
|
-
#
|
|
9
|
+
# Node
|
|
11
10
|
/node_modules
|
|
11
|
+
npm-debug.log
|
|
12
|
+
yarn-error.log
|
|
12
13
|
|
|
13
|
-
#
|
|
14
|
-
|
|
15
|
-
speed-measure-plugin*.json
|
|
16
|
-
|
|
17
|
-
# IDEs and editors
|
|
18
|
-
/.idea
|
|
14
|
+
# IDEs and editors
|
|
15
|
+
.idea/
|
|
19
16
|
.project
|
|
20
17
|
.classpath
|
|
21
18
|
.c9/
|
|
@@ -23,7 +20,11 @@ speed-measure-plugin*.json
|
|
|
23
20
|
.settings/
|
|
24
21
|
*.sublime-workspace
|
|
25
22
|
|
|
26
|
-
#
|
|
23
|
+
# Profiling files
|
|
24
|
+
chrome-profiler-events*.json
|
|
25
|
+
speed-measure-plugin*.json
|
|
26
|
+
|
|
27
|
+
# Visual Studio Code
|
|
27
28
|
.vscode/*
|
|
28
29
|
!.vscode/settings.json
|
|
29
30
|
!.vscode/tasks.json
|
|
@@ -31,21 +32,19 @@ speed-measure-plugin*.json
|
|
|
31
32
|
!.vscode/extensions.json
|
|
32
33
|
.history/*
|
|
33
34
|
|
|
34
|
-
#
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
# Miscellaneous
|
|
36
|
+
/.angular/cache
|
|
37
|
+
.sass-cache/
|
|
37
38
|
/connect.lock
|
|
38
39
|
/coverage
|
|
39
40
|
/libpeerconnection.log
|
|
40
|
-
npm-debug.log
|
|
41
|
-
yarn-error.log
|
|
42
41
|
testem.log
|
|
43
42
|
/typings
|
|
44
43
|
*.swp
|
|
45
44
|
.angular
|
|
46
45
|
.cache
|
|
47
46
|
|
|
48
|
-
# System
|
|
47
|
+
# System files
|
|
49
48
|
.DS_Store
|
|
50
49
|
Thumbs.db
|
|
51
50
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
3
|
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
4
5
|
"cli": {
|
|
6
|
+
"schematicCollections": [
|
|
7
|
+
"@tech4good/angular-schematics"
|
|
8
|
+
],
|
|
5
9
|
"cache": {
|
|
6
10
|
"enabled": true,
|
|
7
11
|
"path": ".cache",
|
|
8
12
|
"environment": "all"
|
|
9
|
-
}
|
|
10
|
-
"schematicsCollection": [
|
|
11
|
-
"@tech4good/angular-schematics"
|
|
12
|
-
]
|
|
13
|
+
}
|
|
13
14
|
},
|
|
14
|
-
"newProjectRoot": "projects",
|
|
15
15
|
"projects": {
|
|
16
16
|
"<%= dasherize(project) %>": {
|
|
17
17
|
"projectType": "application",
|
|
@@ -25,12 +25,14 @@
|
|
|
25
25
|
"prefix": "app",
|
|
26
26
|
"architect": {
|
|
27
27
|
"build": {
|
|
28
|
-
"builder": "@angular-devkit/build-angular:
|
|
28
|
+
"builder": "@angular-devkit/build-angular:application",
|
|
29
29
|
"options": {
|
|
30
30
|
"outputPath": "dist/<%= dasherize(project) %>",
|
|
31
31
|
"index": "src/index.html",
|
|
32
|
-
"
|
|
33
|
-
"polyfills":
|
|
32
|
+
"browser": "src/main.ts",
|
|
33
|
+
"polyfills": [
|
|
34
|
+
"zone.js"
|
|
35
|
+
],
|
|
34
36
|
"tsConfig": "tsconfig.app.json",
|
|
35
37
|
"inlineStyleLanguage": "scss",
|
|
36
38
|
"assets": [
|
|
@@ -41,12 +43,12 @@
|
|
|
41
43
|
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
|
|
42
44
|
"src/styles.scss"
|
|
43
45
|
],
|
|
46
|
+
"scripts": [],
|
|
44
47
|
"stylePreprocessorOptions": {
|
|
45
48
|
"includePaths": [
|
|
46
49
|
"src/styles"
|
|
47
50
|
]
|
|
48
|
-
}
|
|
49
|
-
"scripts": []
|
|
51
|
+
}
|
|
50
52
|
},
|
|
51
53
|
"configurations": {
|
|
52
54
|
"production": {
|
|
@@ -71,12 +73,9 @@
|
|
|
71
73
|
"outputHashing": "all"
|
|
72
74
|
},
|
|
73
75
|
"development": {
|
|
74
|
-
"buildOptimizer": false,
|
|
75
76
|
"optimization": false,
|
|
76
|
-
"vendorChunk": true,
|
|
77
77
|
"extractLicenses": false,
|
|
78
|
-
"sourceMap": true
|
|
79
|
-
"namedChunks": true
|
|
78
|
+
"sourceMap": true
|
|
80
79
|
}
|
|
81
80
|
},
|
|
82
81
|
"defaultConfiguration": "production"
|
|
@@ -102,10 +101,11 @@
|
|
|
102
101
|
"test": {
|
|
103
102
|
"builder": "@angular-devkit/build-angular:karma",
|
|
104
103
|
"options": {
|
|
105
|
-
"
|
|
106
|
-
|
|
104
|
+
"polyfills": [
|
|
105
|
+
"zone.js",
|
|
106
|
+
"zone.js/testing"
|
|
107
|
+
],
|
|
107
108
|
"tsConfig": "tsconfig.spec.json",
|
|
108
|
-
"karmaConfig": "karma.conf.js",
|
|
109
109
|
"inlineStyleLanguage": "scss",
|
|
110
110
|
"assets": [
|
|
111
111
|
"src/favicon.ico",
|
|
@@ -129,6 +129,5 @@
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
}
|
|
133
|
-
"defaultProject": "<%= dasherize(project) %>"
|
|
132
|
+
}
|
|
134
133
|
}
|
|
@@ -12,50 +12,50 @@
|
|
|
12
12
|
},
|
|
13
13
|
"private": true,
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@angular/animations": "17.
|
|
16
|
-
"@angular/cdk": "17.
|
|
17
|
-
"@angular/common": "17.
|
|
18
|
-
"@angular/compiler": "17.
|
|
19
|
-
"@angular/core": "17.
|
|
20
|
-
"@angular/fire": "17.0.0",
|
|
21
|
-
"@angular/forms": "17.
|
|
15
|
+
"@angular/animations": "^17.3.0",
|
|
16
|
+
"@angular/cdk": "^17.3.0",
|
|
17
|
+
"@angular/common": "^17.3.0",
|
|
18
|
+
"@angular/compiler": "^17.3.0",
|
|
19
|
+
"@angular/core": "^17.3.0",
|
|
20
|
+
"@angular/fire": "^17.0.0",
|
|
21
|
+
"@angular/forms": "^17.3.0",
|
|
22
22
|
"@angular/material": "^17.2.1",
|
|
23
|
-
"@angular/platform-browser": "17.
|
|
24
|
-
"@angular/platform-browser-dynamic": "17.
|
|
25
|
-
"@angular/router": "17.
|
|
26
|
-
"@ngrx/effects": "17.1.1",
|
|
27
|
-
"@ngrx/entity": "17.1.1",
|
|
28
|
-
"@ngrx/router-store": "17.1.1",
|
|
29
|
-
"@ngrx/store": "17.1.1",
|
|
30
|
-
"@ngrx/store-devtools": "17.1.1",
|
|
23
|
+
"@angular/platform-browser": "^17.3.0",
|
|
24
|
+
"@angular/platform-browser-dynamic": "^17.3.0",
|
|
25
|
+
"@angular/router": "^17.3.0",
|
|
26
|
+
"@ngrx/effects": "^17.1.1",
|
|
27
|
+
"@ngrx/entity": "^17.1.1",
|
|
28
|
+
"@ngrx/router-store": "^17.1.1",
|
|
29
|
+
"@ngrx/store": "^17.1.1",
|
|
30
|
+
"@ngrx/store-devtools": "^17.1.1",
|
|
31
31
|
"crypto-es": "^1.2.7",
|
|
32
|
-
"rxjs": "7.8.
|
|
32
|
+
"rxjs": "~7.8.0",
|
|
33
33
|
"tslib": "^2.3.0",
|
|
34
|
-
"zone.js": "0.14.
|
|
34
|
+
"zone.js": "~0.14.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@angular-devkit/build-angular": "17.
|
|
38
|
-
"@angular-eslint/builder": "17.2.1",
|
|
39
|
-
"@angular-eslint/eslint-plugin": "17.2.1",
|
|
40
|
-
"@angular-eslint/eslint-plugin-template": "17.2.1",
|
|
41
|
-
"@angular-eslint/schematics": "17.2.1",
|
|
42
|
-
"@angular-eslint/template-parser": "17.2.1",
|
|
43
|
-
"@angular/cli": "17.
|
|
44
|
-
"@angular/compiler-cli": "17.
|
|
45
|
-
"@tech4good/angular-schematics": "17.0.
|
|
46
|
-
"@types/jasmine": "~
|
|
47
|
-
"@types/node": "^
|
|
37
|
+
"@angular-devkit/build-angular": "^17.3.2",
|
|
38
|
+
"@angular-eslint/builder": "^17.2.1",
|
|
39
|
+
"@angular-eslint/eslint-plugin": "^17.2.1",
|
|
40
|
+
"@angular-eslint/eslint-plugin-template": "^17.2.1",
|
|
41
|
+
"@angular-eslint/schematics": "^17.2.1",
|
|
42
|
+
"@angular-eslint/template-parser": "^17.2.1",
|
|
43
|
+
"@angular/cli": "^17.3.2",
|
|
44
|
+
"@angular/compiler-cli": "^17.3.0",
|
|
45
|
+
"@tech4good/angular-schematics": "^17.0.1",
|
|
46
|
+
"@types/jasmine": "~5.1.0",
|
|
47
|
+
"@types/node": "^18.18.0",
|
|
48
48
|
"@types/estree": "^1.0.0",
|
|
49
49
|
"@typescript-eslint/eslint-plugin": "6.10.0",
|
|
50
50
|
"@typescript-eslint/parser": "6.10.0",
|
|
51
51
|
"eslint": "^8.53.0",
|
|
52
52
|
"eslint-config-google": "^0.14.0",
|
|
53
|
-
"jasmine-core": "~
|
|
54
|
-
"karma": "~6.4.
|
|
55
|
-
"karma-chrome-launcher": "~3.
|
|
56
|
-
"karma-coverage": "~2.
|
|
57
|
-
"karma-jasmine": "~
|
|
58
|
-
"karma-jasmine-html-reporter": "~1.
|
|
59
|
-
"typescript": "~5.
|
|
53
|
+
"jasmine-core": "~5.1.0",
|
|
54
|
+
"karma": "~6.4.0",
|
|
55
|
+
"karma-chrome-launcher": "~3.2.0",
|
|
56
|
+
"karma-coverage": "~2.2.0",
|
|
57
|
+
"karma-jasmine": "~5.1.0",
|
|
58
|
+
"karma-jasmine-html-reporter": "~2.1.0",
|
|
59
|
+
"typescript": "~5.4.2"
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { Action } from '@ngrx/store';
|
|
4
|
-
import { Actions,
|
|
4
|
+
import { Actions, createEffect, ofType } from '@ngrx/effects';
|
|
5
5
|
import { of, Observable, merge } from 'rxjs';
|
|
6
6
|
import { tap, filter, mergeMap, map, first } from 'rxjs/operators';
|
|
7
7
|
import { pipe, forkJoin } from 'rxjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core';
|
|
2
2
|
import { Action } from '@ngrx/store';
|
|
3
|
-
import { Actions, createEffect,
|
|
3
|
+
import { Actions, createEffect, ofType } from '@ngrx/effects';
|
|
4
4
|
import { EMPTY, of, Observable, throwError, forkJoin, from, pipe, merge } from 'rxjs';
|
|
5
5
|
import { switchMap, flatMap, mergeMap, map, catchError, tap, take } from 'rxjs/operators';
|
|
6
6
|
import { FirebaseService } from '../../firebase/firebase.service';
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
<p class="substep"><b>Voluntary participation</b>: All participation is voluntary and you may choose to discontinue use of the platform at any time.</p>
|
|
20
20
|
|
|
21
|
-
<p class="substep"><b>Rights and concerns</b>: If you have questions about this research study, please contact {{ investigatorInfo }} or the faculty member supervising this research {{ facultyInfo }}. If you have any questions regarding your rights as a research participant, please contact the University of California Santa Cruz, Office of Research Compliance Administration at 831-459-1473 or orca
|
|
21
|
+
<p class="substep"><b>Rights and concerns</b>: If you have questions about this research study, please contact {{ investigatorInfo }} or the faculty member supervising this research {{ facultyInfo }}. If you have any questions regarding your rights as a research participant, please contact the University of California Santa Cruz, Office of Research Compliance Administration at 831-459-1473 or orca@ucsc.edu.</p>
|
|
22
22
|
|
|
23
23
|
<h2>Information Collection and Use</h2>
|
|
24
24
|
|
|
@@ -62,10 +62,12 @@ export class WaitingComponent implements OnInit, OnDestroy {
|
|
|
62
62
|
// Form variables
|
|
63
63
|
desiredValue = '';
|
|
64
64
|
backgroundOther = '';
|
|
65
|
-
backgroundSelections = this.form.group(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
backgroundSelections = this.form.group({
|
|
66
|
+
option1: false,
|
|
67
|
+
option2: false,
|
|
68
|
+
option3: false,
|
|
69
|
+
other: false,
|
|
70
|
+
});
|
|
69
71
|
|
|
70
72
|
// --------------- DB ENTITY DATA ----------------------
|
|
71
73
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { enableProdMode } from '@angular/core';
|
|
2
|
+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
3
|
+
|
|
4
|
+
import { AppModule } from './app/app.module';
|
|
5
|
+
import { environment } from './environments/environment';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
if (environment.production) {
|
|
9
|
+
enableProdMode();
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
platformBrowserDynamic().bootstrapModule(AppModule);
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
-
{
|
|
3
|
-
"compileOnSave": false,
|
|
2
|
+
{
|
|
3
|
+
"compileOnSave": false,
|
|
4
4
|
"compilerOptions": {
|
|
5
|
-
"baseUrl": "./",
|
|
5
|
+
"baseUrl": "./",
|
|
6
6
|
"outDir": "./dist/out-tsc",
|
|
7
7
|
"forceConsistentCasingInFileNames": true,
|
|
8
8
|
"noImplicitOverride": true,
|
|
9
9
|
"noPropertyAccessFromIndexSignature": true,
|
|
10
|
-
"noImplicitReturns": true,
|
|
10
|
+
"noImplicitReturns": true,
|
|
11
11
|
"noFallthroughCasesInSwitch": true,
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"sourceMap": true,
|
|
15
|
+
"declaration": false,
|
|
14
16
|
"downlevelIteration": true,
|
|
15
|
-
"experimentalDecorators": true,
|
|
17
|
+
"experimentalDecorators": true,
|
|
16
18
|
"moduleResolution": "node",
|
|
17
19
|
"importHelpers": true,
|
|
18
20
|
"target": "ES2022",
|
|
19
|
-
"module": "
|
|
21
|
+
"module": "ES2022",
|
|
22
|
+
"useDefineForClassFields": false,
|
|
20
23
|
"lib": [
|
|
21
|
-
"
|
|
24
|
+
"ES2022",
|
|
22
25
|
"dom"
|
|
23
|
-
]
|
|
24
|
-
"useDefineForClassFields": false
|
|
26
|
+
]
|
|
25
27
|
},
|
|
26
28
|
"angularCompilerOptions": {
|
|
27
29
|
"enableI18nLegacyMessageIdFormat": false,
|
package/src/init/index.js
CHANGED
|
@@ -31,7 +31,6 @@ function init(options) {
|
|
|
31
31
|
if (!project) {
|
|
32
32
|
throw new schematics_1.SchematicsException(`Project "${options.project}" does not exist.`);
|
|
33
33
|
}
|
|
34
|
-
context.logger.info(`project: ${project}`);
|
|
35
34
|
options.path = (0, workspace_1.buildDefaultPath)(project);
|
|
36
35
|
context.logger.info(`options.path: ${options.path}`);
|
|
37
36
|
//const parsedPath = parseName(options.path as string, options.name);
|
package/src/init/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAIoC;AACpC,oEAAoE;AACpE,qGAAqG;AACrG,qEAAqE;AACrE,gFAAgF;AAChF,qEAAuF;AAEvF,+CAA+C;AAE/C,2EAA2E;AAE3E,SAAgB,IAAI,CAAC,OAAY;IAC/B,OAAO,CAAO,IAAU,EAAE,OAAyB,EAAE,EAAE;QAErD,wFAAwF;QACxF,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACpB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,iIAAiI,CAAC,CAAC;YACvJ,OAAO,IAAA,iBAAI,GAAE,CAAC;SACf;QAED,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QAC3D,MAAM,SAAS,GAAG,MAAM,IAAA,wBAAY,EAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,OAAiB,CAAC,CAAC;QAElE,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,gCAAmB,CAAC,YAAY,OAAO,CAAC,OAAO,mBAAmB,CAAC,CAAC;SAC/E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAIoC;AACpC,oEAAoE;AACpE,qGAAqG;AACrG,qEAAqE;AACrE,gFAAgF;AAChF,qEAAuF;AAEvF,+CAA+C;AAE/C,2EAA2E;AAE3E,SAAgB,IAAI,CAAC,OAAY;IAC/B,OAAO,CAAO,IAAU,EAAE,OAAyB,EAAE,EAAE;QAErD,wFAAwF;QACxF,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACpB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,iIAAiI,CAAC,CAAC;YACvJ,OAAO,IAAA,iBAAI,GAAE,CAAC;SACf;QAED,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QAC3D,MAAM,SAAS,GAAG,MAAM,IAAA,wBAAY,EAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,OAAiB,CAAC,CAAC;QAElE,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,gCAAmB,CAAC,YAAY,OAAO,CAAC,OAAO,mBAAmB,CAAC,CAAC;SAC/E;QAED,OAAO,CAAC,IAAI,GAAG,IAAA,4BAAgB,EAAC,OAAO,CAAC,CAAC;QACzC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;QAErD,qEAAqE;QACrE,iCAAiC;QACjC,iCAAiC;QAEjC,MAAM,cAAc,GAAG,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,SAAS,CAAC,EAAE;YAC3C,IAAA,2BAAc,kCACT,cAAO,GACP,OAAO,EACV;YACF,wBAAwB;SACzB,CAAC,CAAC;QAEH,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,sBAAS,EAAC,cAAc,EAAE,0BAAa,CAAC,SAAS,CAAC;SACnD,CAAC,CAAC;IACL,CAAC,CAAA,CAAC;AACJ,CAAC;AApCD,oBAoCC"}
|