@tech4good/angular-schematics 18.1.0 → 20.1.0

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 (136) hide show
  1. package/README.md +9 -14
  2. package/package.json +10 -9
  3. package/src/collection.json +3 -3
  4. package/src/component/files/__name@dasherize__/__name@dasherize__.component.spec.ts.template +25 -22
  5. package/src/component/files/__name@dasherize__/__name@dasherize__.component.ts.template +0 -1
  6. package/src/component/index.js +8 -15
  7. package/src/component/index.js.map +1 -1
  8. package/src/component/index_spec.js +5 -13
  9. package/src/component/index_spec.js.map +1 -1
  10. package/src/entity/index.js +8 -15
  11. package/src/entity/index.js.map +1 -1
  12. package/src/entity/index_spec.js +5 -13
  13. package/src/entity/index_spec.js.map +1 -1
  14. package/src/{init → ng-add}/files/.github/workflows/angular-github-ci.yml.template +1 -1
  15. package/src/{init → ng-add}/files/angular.json.template +26 -0
  16. package/src/ng-add/files/eslint.config.js.template +97 -0
  17. package/src/ng-add/files/package.json.template +71 -0
  18. package/src/ng-add/files/src/app/admin/admin-panel/admin-panel.component.spec.ts.template +37 -0
  19. package/src/{init → ng-add}/files/src/app/admin/admin-panel/admin-panel.component.ts.template +0 -1
  20. package/src/ng-add/files/src/app/app.component.spec.ts.template +39 -0
  21. package/src/{init → ng-add}/files/src/app/app.component.ts.template +0 -1
  22. package/src/{init → ng-add}/files/src/app/core/firebase/firebase.mock.service.ts.template +4 -2
  23. package/src/{init → ng-add}/files/src/app/core/firebase/firebase.service.ts.template +3 -1
  24. package/src/{init → ng-add}/files/src/app/core/store/auth/auth.mock.ts.template +9 -3
  25. package/src/ng-add/files/src/app/first-time/consent/consent.component.spec.ts.template +37 -0
  26. package/src/{init → ng-add}/files/src/app/first-time/consent/consent.component.ts.template +0 -1
  27. package/src/ng-add/files/src/app/first-time/early-access/early-access.component.spec.ts.template +40 -0
  28. package/src/{init → ng-add}/files/src/app/first-time/early-access/early-access.component.ts.template +1 -3
  29. package/src/ng-add/files/src/app/first-time/landing/landing.component.spec.ts.template +37 -0
  30. package/src/{init → ng-add}/files/src/app/first-time/landing/landing.component.ts.template +0 -1
  31. package/src/ng-add/files/src/app/first-time/login/login.component.spec.ts.template +37 -0
  32. package/src/{init → ng-add}/files/src/app/first-time/login/login.component.ts.template +0 -1
  33. package/src/ng-add/files/src/app/first-time/onboarding/onboarding.component.spec.ts.template +37 -0
  34. package/src/{init → ng-add}/files/src/app/first-time/onboarding/onboarding.component.ts.template +0 -1
  35. package/src/ng-add/files/src/app/main/home/home.component.spec.ts.template +37 -0
  36. package/src/{init → ng-add}/files/src/app/main/home/home.component.ts.template +0 -1
  37. package/src/ng-add/files/src/app/shared/navbar/navbar.component.spec.ts.template +37 -0
  38. package/src/{init → ng-add}/files/src/app/shared/navbar/navbar.component.ts.template +0 -1
  39. package/src/ng-add/files/src/app/shared/redeployment-warning/redeployment-warning.component.spec.ts.template +30 -0
  40. package/src/{init → ng-add}/files/src/app/shared/redeployment-warning/redeployment-warning.component.ts.template +0 -1
  41. package/src/ng-add/files/src/main.ts.template +6 -0
  42. package/src/{init → ng-add}/index.d.ts +1 -1
  43. package/src/{init → ng-add}/index.js +9 -16
  44. package/src/ng-add/index.js.map +1 -0
  45. package/src/{init → ng-add}/schema.json +2 -2
  46. package/src/shared/camelcase-formatter.js +1 -2
  47. package/src/shared/camelcase-formatter.js.map +1 -1
  48. package/src/shared/statements-adder.js +3 -4
  49. package/src/shared/statements-adder.js.map +1 -1
  50. package/tsconfig.json +10 -25
  51. package/src/init/files/.eslintrc.json.template +0 -120
  52. package/src/init/files/package.json.template +0 -68
  53. package/src/init/files/src/app/admin/admin-panel/admin-panel.component.spec.ts.template +0 -32
  54. package/src/init/files/src/app/app.component.spec.ts.template +0 -27
  55. package/src/init/files/src/app/first-time/consent/consent.component.spec.ts.template +0 -32
  56. package/src/init/files/src/app/first-time/early-access/early-access.component.spec.ts.template +0 -35
  57. package/src/init/files/src/app/first-time/landing/landing.component.spec.ts.template +0 -32
  58. package/src/init/files/src/app/first-time/login/login.component.spec.ts.template +0 -32
  59. package/src/init/files/src/app/first-time/onboarding/onboarding.component.spec.ts.template +0 -33
  60. package/src/init/files/src/app/main/home/home.component.spec.ts.template +0 -32
  61. package/src/init/files/src/app/shared/navbar/navbar.component.spec.ts.template +0 -32
  62. package/src/init/files/src/app/shared/redeployment-warning/redeployment-warning.component.spec.ts.template +0 -24
  63. package/src/init/index.js.map +0 -1
  64. /package/src/{init → ng-add}/files/.firebaserc.template +0 -0
  65. /package/src/{init → ng-add}/files/.gitattributes.template +0 -0
  66. /package/src/{init → ng-add}/files/.gitignore.template +0 -0
  67. /package/src/{init → ng-add}/files/CODE_OF_CONDUCT.md.template +0 -0
  68. /package/src/{init → ng-add}/files/CONTRIBUTING.md.template +0 -0
  69. /package/src/{init → ng-add}/files/README.md.template +0 -0
  70. /package/src/{init → ng-add}/files/contributing-docs/coding-standards.md.template +0 -0
  71. /package/src/{init → ng-add}/files/contributing-docs/using-fixup-commits.md.template +0 -0
  72. /package/src/{init → ng-add}/files/jest.config.ts.template +0 -0
  73. /package/src/{init → ng-add}/files/public/images/close-x.svg +0 -0
  74. /package/src/{init → ng-add}/files/setup-jest.ts.template +0 -0
  75. /package/src/{init → ng-add}/files/src/app/admin/admin-panel/admin-panel.animations.ts.template +0 -0
  76. /package/src/{init → ng-add}/files/src/app/admin/admin-panel/admin-panel.component.html.template +0 -0
  77. /package/src/{init → ng-add}/files/src/app/admin/admin-panel/admin-panel.component.scss.template +0 -0
  78. /package/src/{init → ng-add}/files/src/app/app.component.html.template +0 -0
  79. /package/src/{init → ng-add}/files/src/app/app.component.scss.template +0 -0
  80. /package/src/{init → ng-add}/files/src/app/app.config.ts.template +0 -0
  81. /package/src/{init → ng-add}/files/src/app/app.routes.ts.template +0 -0
  82. /package/src/{init → ng-add}/files/src/app/core/analytics/log.service.ts.template +0 -0
  83. /package/src/{init → ng-add}/files/src/app/core/analytics/time-analytics.service.ts.template +0 -0
  84. /package/src/{init → ng-add}/files/src/app/core/auth/auth.guard.ts.template +0 -0
  85. /package/src/{init → ng-add}/files/src/app/core/firebase/cached-listeners.service.ts.template +0 -0
  86. /package/src/{init → ng-add}/files/src/app/core/firebase/database.service.ts.template +0 -0
  87. /package/src/{init → ng-add}/files/src/app/core/local-storage/local-storage.service.ts.template +0 -0
  88. /package/src/{init → ng-add}/files/src/app/core/local-storage/session-local-storage.service.ts.template +0 -0
  89. /package/src/{init → ng-add}/files/src/app/core/local-storage/session.service.ts.template +0 -0
  90. /package/src/{init → ng-add}/files/src/app/core/router/routing-state.service.ts.template +0 -0
  91. /package/src/{init → ng-add}/files/src/app/core/store/app.model.ts.template +0 -0
  92. /package/src/{init → ng-add}/files/src/app/core/store/app.store.ts.template +0 -0
  93. /package/src/{init → ng-add}/files/src/app/core/store/auth/auth.store.ts.template +0 -0
  94. /package/src/{init → ng-add}/files/src/app/core/store/batch-write.firebase.service.ts.template +0 -0
  95. /package/src/{init → ng-add}/files/src/app/core/store/batch-write.mock.service.ts.template +0 -0
  96. /package/src/{init → ng-add}/files/src/app/core/store/batch-write.service.ts.template +0 -0
  97. /package/src/{init → ng-add}/files/src/app/core/store/user/user.mock.ts.template +0 -0
  98. /package/src/{init → ng-add}/files/src/app/core/store/user/user.model.ts.template +0 -0
  99. /package/src/{init → ng-add}/files/src/app/core/store/user/user.store.ts.template +0 -0
  100. /package/src/{init → ng-add}/files/src/app/core/store/user-context/user-context.mock.ts.template +0 -0
  101. /package/src/{init → ng-add}/files/src/app/core/store/user-context/user-context.model.ts.template +0 -0
  102. /package/src/{init → ng-add}/files/src/app/core/store/user-context/user-context.store.ts.template +0 -0
  103. /package/src/{init → ng-add}/files/src/app/core/utils/rand.utils.ts.template +0 -0
  104. /package/src/{init → ng-add}/files/src/app/first-time/consent/consent.animations.ts.template +0 -0
  105. /package/src/{init → ng-add}/files/src/app/first-time/consent/consent.component.html.template +0 -0
  106. /package/src/{init → ng-add}/files/src/app/first-time/consent/consent.component.scss.template +0 -0
  107. /package/src/{init → ng-add}/files/src/app/first-time/early-access/early-access.animations.ts.template +0 -0
  108. /package/src/{init → ng-add}/files/src/app/first-time/early-access/early-access.component.html.template +0 -0
  109. /package/src/{init → ng-add}/files/src/app/first-time/early-access/early-access.component.scss.template +0 -0
  110. /package/src/{init → ng-add}/files/src/app/first-time/early-access/early-access.model.ts.template +0 -0
  111. /package/src/{init → ng-add}/files/src/app/first-time/landing/landing.animations.ts.template +0 -0
  112. /package/src/{init → ng-add}/files/src/app/first-time/landing/landing.component.html.template +0 -0
  113. /package/src/{init → ng-add}/files/src/app/first-time/landing/landing.component.scss.template +0 -0
  114. /package/src/{init → ng-add}/files/src/app/first-time/login/login.component.html.template +0 -0
  115. /package/src/{init → ng-add}/files/src/app/first-time/login/login.component.scss.template +0 -0
  116. /package/src/{init → ng-add}/files/src/app/first-time/onboarding/onboarding.animations.ts.template +0 -0
  117. /package/src/{init → ng-add}/files/src/app/first-time/onboarding/onboarding.component.html.template +0 -0
  118. /package/src/{init → ng-add}/files/src/app/first-time/onboarding/onboarding.component.scss.template +0 -0
  119. /package/src/{init → ng-add}/files/src/app/main/home/home.animations.ts.template +0 -0
  120. /package/src/{init → ng-add}/files/src/app/main/home/home.component.html.template +0 -0
  121. /package/src/{init → ng-add}/files/src/app/main/home/home.component.scss.template +0 -0
  122. /package/src/{init → ng-add}/files/src/app/shared/navbar/navbar.component.html.template +0 -0
  123. /package/src/{init → ng-add}/files/src/app/shared/navbar/navbar.component.scss.template +0 -0
  124. /package/src/{init → ng-add}/files/src/app/shared/redeployment-warning/redeployment-warning.component.html.template +0 -0
  125. /package/src/{init → ng-add}/files/src/app/shared/redeployment-warning/redeployment-warning.component.scss.template +0 -0
  126. /package/src/{init → ng-add}/files/src/app/shared/redeployment-warning/redeployment-warning.service.ts.template +0 -0
  127. /package/src/{init → ng-add}/files/src/env.d.ts.template +0 -0
  128. /package/src/{init → ng-add}/files/src/environments/environment.prod.ts.template +0 -0
  129. /package/src/{init → ng-add}/files/src/environments/environment.test.ts.template +0 -0
  130. /package/src/{init → ng-add}/files/src/environments/environment.ts.template +0 -0
  131. /package/src/{init → ng-add}/files/src/index.html.template +0 -0
  132. /package/src/{init → ng-add}/files/src/styles/_variables.scss.template +0 -0
  133. /package/src/{init → ng-add}/files/src/styles.scss.template +0 -0
  134. /package/src/{init → ng-add}/files/tsconfig.app.json.template +0 -0
  135. /package/src/{init → ng-add}/files/tsconfig.json.template +0 -0
  136. /package/src/{init → ng-add}/files/tsconfig.spec.json.template +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"statements-adder.js","sourceRoot":"","sources":["statements-adder.ts"],"names":[],"mappings":";;;AAAA,2DAAuE;AACvE,+DAA0E;AAM1E,SAAgB,aAAa,CAAC,IAAU,EAAE,QAAgB;IACxD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjC,IAAI,IAAI,KAAK,IAAI,EAAE;QACjB,MAAM,IAAI,gCAAmB,CAAC,QAAQ,QAAQ,kBAAkB,CAAC,CAAC;KACnE;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC;AAND,sCAMC;AAED,SAAgB,YAAY,CAAC,UAAkB,EAAE,UAAkB,EAAE,MAAgB,EAAE,UAAoB;IAEzG,IAAI,QAAQ,GAAW,EAAE,CAAC;IAC1B,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;QAC7B,IAAI,QAAQ,CAAC,KAAK,CAAC,KAAK,SAAS;YAC/B,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAClB,IAAI,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC5B,IAAI,KAAK,GAAG,WAAW,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;QACjE,O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CAAC,MAAM,CAAC;QACrE,kBAAkB;QAClB,MAAM,YAAY,GAAG,IAAI,qBAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC7E,cAAc,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAClE,CAAC;IACD,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;AAEpC,CAAC;AAED,SAAS,WAAW,CAAC,MAAc,EAAE,SAAiB,EAAE,KAAa;IACnE,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC;AAC/D,CAAC"}
package/tsconfig.json CHANGED
@@ -1,34 +1,19 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "baseUrl": "tsconfig",
4
- "lib": [
5
- "es2018",
6
- "dom"
7
- ],
3
+ "baseUrl": "./",
4
+ "lib": ["es2021", "dom"],
8
5
  "declaration": true,
9
6
  "module": "commonjs",
10
7
  "moduleResolution": "node",
11
8
  "noEmitOnError": true,
12
- "noFallthroughCasesInSwitch": true,
13
- "noImplicitAny": true,
14
- "noImplicitThis": true,
15
- "noUnusedParameters": true,
16
- "noUnusedLocals": true,
17
- "rootDir": "src/",
18
- "skipDefaultLibCheck": true,
19
9
  "skipLibCheck": true,
20
10
  "sourceMap": true,
21
- "strictNullChecks": true,
22
- "target": "es6",
23
- "types": [
24
- "jasmine",
25
- "node"
26
- ]
11
+ "target": "es2021",
12
+ "rootDir": "src",
13
+ "types": ["jasmine", "node"],
14
+ "esModuleInterop": true,
15
+ "importHelpers": true
27
16
  },
28
- "include": [
29
- "src/**/*"
30
- ],
31
- "exclude": [
32
- "src/*/files/**/*"
33
- ]
34
- }
17
+ "include": ["src/**/*"],
18
+ "exclude": ["src/*/files/**/*"]
19
+ }
@@ -1,120 +0,0 @@
1
- {
2
- "root": true,
3
- "ignorePatterns": [
4
- "projects/**/*"
5
- ],
6
- "overrides": [
7
- {
8
- "files": [
9
- "*.ts"
10
- ],
11
- "parserOptions": {
12
- "project": [
13
- "tsconfig.json"
14
- ],
15
- "createDefaultProgram": true
16
- },
17
- "extends": [
18
- "plugin:@angular-eslint/recommended",
19
- "plugin:@angular-eslint/template/process-inline-templates",
20
- "eslint:recommended",
21
- "plugin:@typescript-eslint/recommended",
22
- "google"
23
- ],
24
- "rules": {
25
- "@angular-eslint/component-selector": [
26
- "error",
27
- {
28
- "prefix": "app",
29
- "style": "kebab-case",
30
- "type": "element"
31
- }
32
- ],
33
- "@angular-eslint/directive-selector": [
34
- "error",
35
- {
36
- "prefix": "app",
37
- "style": "camelCase",
38
- "type": "attribute"
39
- }
40
- ],
41
- "@angular-eslint/no-empty-lifecycle-method": "off",
42
- "@typescript-eslint/no-empty-function": "off",
43
- "@typescript-eslint/no-unused-vars": "off",
44
- "@typescript-eslint/no-inferrable-types": "off",
45
- "@typescript-eslint/no-empty-interface": "off",
46
- "max-len": "off",
47
- "require-jsdoc": "off",
48
- "valid-jsdoc": "off",
49
- "no-unused-vars": "off",
50
- "new-cap": "off",
51
- "object-curly-spacing": ["error", "always"],
52
- "quotes": ["error", "single", {
53
- "allowTemplateLiterals": true,
54
- "avoidEscape": true
55
- }],
56
- "spaced-comment": ["error", "always", {
57
- "line": {
58
- "markers": ["/"],
59
- "exceptions": ["-", "+"]
60
- },
61
- "block": {
62
- "markers": ["!"],
63
- "exceptions": ["*"],
64
- "balanced": true
65
- }
66
- }],
67
- "indent": "off",
68
- "@typescript-eslint/indent": [
69
- "error", 2, {
70
- "CallExpression": {
71
- "arguments": 1
72
- },
73
- "MemberExpression": "off",
74
- "ObjectExpression": 1,
75
- "ArrayExpression": 1,
76
- "SwitchCase": 1,
77
- "FunctionDeclaration": {
78
- "body": 1,
79
- "parameters": 1
80
- },
81
- "FunctionExpression": {
82
- "body": 1,
83
- "parameters": 1
84
- },
85
- "ignoredNodes": [
86
- "ConditionalExpression",
87
- "FunctionExpression > .params[decorators.length > 0]",
88
- "FunctionExpression > .params > :matches(Decorator, :not(:first-child))",
89
- "ClassBody.body > PropertyDefinition[decorators.length > 0] > .key"
90
- ]
91
- }
92
- ]
93
- }
94
- },
95
- {
96
- "files": [
97
- "*.actions.ts",
98
- "*.selectors.ts",
99
- "*.spec.ts",
100
- "*.effects.ts",
101
- "src/app/core/store/**/*.service.ts",
102
- "src/app/core/firebase/*.service.ts",
103
- "src/app/core/analytics/time-analytics.service.ts",
104
- "src/app/core/setup/module-import-guard.ts"
105
- ],
106
- "rules": {
107
- "@typescript-eslint/no-explicit-any": "off"
108
- }
109
- },
110
- {
111
- "files": [
112
- "*.html"
113
- ],
114
- "extends": [
115
- "plugin:@angular-eslint/template/recommended"
116
- ],
117
- "rules": {}
118
- }
119
- ]
120
- }
@@ -1,68 +0,0 @@
1
- {
2
- "name": "<%= dasherize(project) %>",
3
- "version": "0.0.0",
4
- "type": "module",
5
- "scripts": {
6
- "ng": "ng",
7
- "start": "ng serve",
8
- "build": "ng build",
9
- "watch": "ng build --watch --configuration development",
10
- "test": "jest",
11
- "test:watch": "jest --watch",
12
- "test:coverage": "jest --coverage",
13
- "lint": "ng lint",
14
- "lintfix": "ng lint --fix"
15
- },
16
- "private": true,
17
- "dependencies": {
18
- "@angular/animations": "^18.0.0",
19
- "@angular/cdk": "^18.0.6",
20
- "@angular/common": "^18.0.0",
21
- "@angular/compiler": "^18.0.0",
22
- "@angular/core": "^18.0.0",
23
- "@angular/fire": "^18.0.1",
24
- "@angular/forms": "^18.0.0",
25
- "@angular/material": "^18.0.6",
26
- "@angular/platform-browser": "^18.0.0",
27
- "@angular/platform-browser-dynamic": "^18.0.0",
28
- "@angular/router": "^18.0.0",
29
- "@ngrx/signals": "^18.0.0",
30
- "core-js": "^3.37.1",
31
- "cross-fetch": "^4.0.0",
32
- "crypto-es": "^2.1.0",
33
- "dotenv": "^16.4.5",
34
- "globalthis": "^1.0.4",
35
- "ngx-env": "^0.1.0",
36
- "proxy-polyfill": "^0.3.2",
37
- "rxjs": "~7.8.0",
38
- "tslib": "^2.3.0",
39
- "zone.js": "~0.14.3"
40
- },
41
- "devDependencies": {
42
- "@angular-devkit/build-angular": "^18.0.7",
43
- "@angular-eslint/builder": "^18.1.0",
44
- "@angular-eslint/eslint-plugin": "^18.1.0",
45
- "@angular-eslint/eslint-plugin-template": "^18.1.0",
46
- "@angular-eslint/schematics": "^18.1.0",
47
- "@angular-eslint/template-parser": "^18.1.0",
48
- "@angular/cli": "^18.0.7",
49
- "@angular/compiler-cli": "^18.0.0",
50
- "@ngx-env/builder": "^18.0.1",
51
- "@tech4good/angular-schematics": "^18.1.0",
52
- "@types/estree": "^1.0.0",
53
- "@types/jest": "^29.5.14",
54
- "@types/node": "^18.19.47",
55
- "@typescript-eslint/eslint-plugin": "6.10.0",
56
- "@typescript-eslint/parser": "6.10.0",
57
- "@testing-library/angular": "^17.3.6",
58
- "@testing-library/jest-dom": "^6.6.3",
59
- "eslint-config-google": "^0.14.0",
60
- "jest": "^29.7.0",
61
- "jest-environment-jsdom": "^29.7.0",
62
- "jest-preset-angular": "^14.5.1",
63
- "typescript": "~5.4.2",
64
- "ts-jest": "^29.3.4",
65
- "ts-jest-mock-import-meta": "^1.3.0",
66
- "ts-node": "^10.9.2"
67
- }
68
- }
@@ -1,32 +0,0 @@
1
- import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { AdminPanelComponent } from './admin-panel.component';
4
- import { DATABASE_SERVICE } from 'src/app/core/firebase/database.service';
5
- import { FirebaseMockService } from 'src/app/core/firebase/firebase.mock.service';
6
- import { BatchWriteMockService } from 'src/app/core/store/batch-write.mock.service';
7
- import { BATCH_WRITE_SERVICE } from 'src/app/core/store/batch-write.service';
8
-
9
- describe('AdminPanelComponent', () => {
10
- let component: AdminPanelComponent;
11
- let fixture: ComponentFixture<AdminPanelComponent>;
12
-
13
- beforeEach(waitForAsync(() => {
14
- TestBed.configureTestingModule({
15
- imports: [AdminPanelComponent],
16
- providers: [
17
- { provide: DATABASE_SERVICE, useClass: FirebaseMockService },
18
- { provide: BATCH_WRITE_SERVICE, useClass: BatchWriteMockService },
19
- ],
20
- }).compileComponents();
21
- }));
22
-
23
- beforeEach(() => {
24
- fixture = TestBed.createComponent(AdminPanelComponent);
25
- component = fixture.componentInstance;
26
- fixture.detectChanges();
27
- });
28
-
29
- it('should create', () => {
30
- expect(component).toBeTruthy();
31
- });
32
- });
@@ -1,27 +0,0 @@
1
- import { TestBed } from '@angular/core/testing';
2
-
3
- import { AppComponent } from './app.component';
4
- import { DATABASE_SERVICE } from 'src/app/core/firebase/database.service';
5
- import { FirebaseMockService } from 'src/app/core/firebase/firebase.mock.service';
6
- import { BatchWriteMockService } from 'src/app/core/store/batch-write.mock.service';
7
- import { BATCH_WRITE_SERVICE } from 'src/app/core/store/batch-write.service';
8
- import { LOG_SERVICE, LogInDevService } from './core/analytics/log.service';
9
-
10
- describe('AppComponent', () => {
11
- beforeEach(async () => {
12
- await TestBed.configureTestingModule({
13
- imports: [AppComponent],
14
- providers: [
15
- { provide: DATABASE_SERVICE, useClass: FirebaseMockService },
16
- { provide: BATCH_WRITE_SERVICE, useClass: BatchWriteMockService },
17
- { provide: LOG_SERVICE, useClass: LogInDevService },
18
- ],
19
- }).compileComponents();
20
- });
21
-
22
- it('should create the app', () => {
23
- const fixture = TestBed.createComponent(AppComponent);
24
- const app = fixture.componentInstance;
25
- expect(app).toBeTruthy();
26
- });
27
- });
@@ -1,32 +0,0 @@
1
- import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { ConsentComponent } from './consent.component';
4
- import { DATABASE_SERVICE } from 'src/app/core/firebase/database.service';
5
- import { FirebaseMockService } from 'src/app/core/firebase/firebase.mock.service';
6
- import { BatchWriteMockService } from 'src/app/core/store/batch-write.mock.service';
7
- import { BATCH_WRITE_SERVICE } from 'src/app/core/store/batch-write.service';
8
-
9
- describe('ConsentComponent', () => {
10
- let component: ConsentComponent;
11
- let fixture: ComponentFixture<ConsentComponent>;
12
-
13
- beforeEach(waitForAsync(() => {
14
- TestBed.configureTestingModule({
15
- imports: [ConsentComponent],
16
- providers: [
17
- { provide: DATABASE_SERVICE, useClass: FirebaseMockService },
18
- { provide: BATCH_WRITE_SERVICE, useClass: BatchWriteMockService },
19
- ],
20
- }).compileComponents();
21
- }));
22
-
23
- beforeEach(() => {
24
- fixture = TestBed.createComponent(ConsentComponent);
25
- component = fixture.componentInstance;
26
- fixture.detectChanges();
27
- });
28
-
29
- it('should create', () => {
30
- expect(component).toBeTruthy();
31
- });
32
- });
@@ -1,35 +0,0 @@
1
- import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { EarlyAccessComponent } from './early-access.component';
4
- import { DATABASE_SERVICE } from 'src/app/core/firebase/database.service';
5
- import { FirebaseMockService } from 'src/app/core/firebase/firebase.mock.service';
6
- import { BatchWriteMockService } from 'src/app/core/store/batch-write.mock.service';
7
- import { BATCH_WRITE_SERVICE } from 'src/app/core/store/batch-write.service';
8
- import { AuthStore } from 'src/app/core/store/auth/auth.store';
9
- import { AuthLoggedInMockDB } from 'src/app/core/store/auth/auth.mock';
10
-
11
- describe('EarlyAccessComponent', () => {
12
- let component: EarlyAccessComponent;
13
- let fixture: ComponentFixture<EarlyAccessComponent>;
14
-
15
- beforeEach(waitForAsync(() => {
16
- TestBed.configureTestingModule({
17
- imports: [EarlyAccessComponent],
18
- providers: [
19
- { provide: AuthStore, useClass: AuthLoggedInMockDB }, // Needed to use `currentUser()`
20
- { provide: DATABASE_SERVICE, useClass: FirebaseMockService },
21
- { provide: BATCH_WRITE_SERVICE, useClass: BatchWriteMockService },
22
- ],
23
- }).compileComponents();
24
- }));
25
-
26
- beforeEach(() => {
27
- fixture = TestBed.createComponent(EarlyAccessComponent);
28
- component = fixture.componentInstance;
29
- fixture.detectChanges();
30
- });
31
-
32
- it('should create', () => {
33
- expect(component).toBeTruthy();
34
- });
35
- });
@@ -1,32 +0,0 @@
1
- import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { LandingComponent } from './landing.component';
4
- import { DATABASE_SERVICE } from 'src/app/core/firebase/database.service';
5
- import { FirebaseMockService } from 'src/app/core/firebase/firebase.mock.service';
6
- import { BatchWriteMockService } from 'src/app/core/store/batch-write.mock.service';
7
- import { BATCH_WRITE_SERVICE } from 'src/app/core/store/batch-write.service';
8
-
9
- describe('LandingComponent', () => {
10
- let component: LandingComponent;
11
- let fixture: ComponentFixture<LandingComponent>;
12
-
13
- beforeEach(waitForAsync(() => {
14
- TestBed.configureTestingModule({
15
- imports: [LandingComponent],
16
- providers: [
17
- { provide: DATABASE_SERVICE, useClass: FirebaseMockService },
18
- { provide: BATCH_WRITE_SERVICE, useClass: BatchWriteMockService },
19
- ],
20
- }).compileComponents();
21
- }));
22
-
23
- beforeEach(() => {
24
- fixture = TestBed.createComponent(LandingComponent);
25
- component = fixture.componentInstance;
26
- fixture.detectChanges();
27
- });
28
-
29
- it('should create', () => {
30
- expect(component).toBeTruthy();
31
- });
32
- });
@@ -1,32 +0,0 @@
1
- import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { LoginComponent } from './login.component';
4
- import { DATABASE_SERVICE } from 'src/app/core/firebase/database.service';
5
- import { FirebaseMockService } from 'src/app/core/firebase/firebase.mock.service';
6
- import { BatchWriteMockService } from 'src/app/core/store/batch-write.mock.service';
7
- import { BATCH_WRITE_SERVICE } from 'src/app/core/store/batch-write.service';
8
-
9
- describe('LoginComponent', () => {
10
- let component: LoginComponent;
11
- let fixture: ComponentFixture<LoginComponent>;
12
-
13
- beforeEach(waitForAsync(() => {
14
- TestBed.configureTestingModule({
15
- imports: [LoginComponent],
16
- providers: [
17
- { provide: DATABASE_SERVICE, useClass: FirebaseMockService },
18
- { provide: BATCH_WRITE_SERVICE, useClass: BatchWriteMockService },
19
- ],
20
- }).compileComponents();
21
- }));
22
-
23
- beforeEach(() => {
24
- fixture = TestBed.createComponent(LoginComponent);
25
- component = fixture.componentInstance;
26
- fixture.detectChanges();
27
- });
28
-
29
- it('should create', () => {
30
- expect(component).toBeTruthy();
31
- });
32
- });
@@ -1,33 +0,0 @@
1
- import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { OnboardingComponent } from './onboarding.component';
4
- import { DATABASE_SERVICE } from 'src/app/core/firebase/database.service';
5
- import { FirebaseMockService } from 'src/app/core/firebase/firebase.mock.service';
6
- import { BatchWriteMockService } from 'src/app/core/store/batch-write.mock.service';
7
- import { BATCH_WRITE_SERVICE } from 'src/app/core/store/batch-write.service';
8
-
9
- describe('OnboardingComponent', () => {
10
- let component: OnboardingComponent;
11
- let fixture: ComponentFixture<OnboardingComponent>;
12
-
13
- beforeEach(waitForAsync(() => {
14
- TestBed.configureTestingModule({
15
- imports: [OnboardingComponent],
16
- providers: [
17
- { provide: DATABASE_SERVICE, useClass: FirebaseMockService },
18
- { provide: BATCH_WRITE_SERVICE, useClass: BatchWriteMockService },
19
- ],
20
- })
21
- .compileComponents();
22
- }));
23
-
24
- beforeEach(() => {
25
- fixture = TestBed.createComponent(OnboardingComponent);
26
- component = fixture.componentInstance;
27
- fixture.detectChanges();
28
- });
29
-
30
- it('should create', () => {
31
- expect(component).toBeTruthy();
32
- });
33
- });
@@ -1,32 +0,0 @@
1
- import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { HomeComponent } from './home.component';
4
- import { DATABASE_SERVICE } from 'src/app/core/firebase/database.service';
5
- import { FirebaseMockService } from 'src/app/core/firebase/firebase.mock.service';
6
- import { BatchWriteMockService } from 'src/app/core/store/batch-write.mock.service';
7
- import { BATCH_WRITE_SERVICE } from 'src/app/core/store/batch-write.service';
8
-
9
- describe('HomeComponent', () => {
10
- let component: HomeComponent;
11
- let fixture: ComponentFixture<HomeComponent>;
12
-
13
- beforeEach(waitForAsync(() => {
14
- TestBed.configureTestingModule({
15
- imports: [HomeComponent],
16
- providers: [
17
- { provide: DATABASE_SERVICE, useClass: FirebaseMockService },
18
- { provide: BATCH_WRITE_SERVICE, useClass: BatchWriteMockService },
19
- ],
20
- }).compileComponents();
21
- }));
22
-
23
- beforeEach(() => {
24
- fixture = TestBed.createComponent(HomeComponent);
25
- component = fixture.componentInstance;
26
- fixture.detectChanges();
27
- });
28
-
29
- it('should create', () => {
30
- expect(component).toBeTruthy();
31
- });
32
- });
@@ -1,32 +0,0 @@
1
- import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { NavbarComponent } from './navbar.component';
4
- import { DATABASE_SERVICE } from 'src/app/core/firebase/database.service';
5
- import { FirebaseMockService } from 'src/app/core/firebase/firebase.mock.service';
6
- import { BatchWriteMockService } from 'src/app/core/store/batch-write.mock.service';
7
- import { BATCH_WRITE_SERVICE } from 'src/app/core/store/batch-write.service';
8
-
9
- describe('NavbarComponent', () => {
10
- let component: NavbarComponent;
11
- let fixture: ComponentFixture<NavbarComponent>;
12
-
13
- beforeEach(waitForAsync(() => {
14
- TestBed.configureTestingModule({
15
- imports: [NavbarComponent],
16
- providers: [
17
- { provide: DATABASE_SERVICE, useClass: FirebaseMockService },
18
- { provide: BATCH_WRITE_SERVICE, useClass: BatchWriteMockService },
19
- ],
20
- }).compileComponents();
21
- }));
22
-
23
- beforeEach(() => {
24
- fixture = TestBed.createComponent(NavbarComponent);
25
- component = fixture.componentInstance;
26
- fixture.detectChanges();
27
- });
28
-
29
- it('should create', () => {
30
- expect(component).toBeTruthy();
31
- });
32
- });
@@ -1,24 +0,0 @@
1
- import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { RedeploymentWarningComponent } from './redeployment-warning.component';
4
-
5
- describe('RedeploymentWarningComponent', () => {
6
- let component: RedeploymentWarningComponent;
7
- let fixture: ComponentFixture<RedeploymentWarningComponent>;
8
-
9
- beforeEach(waitForAsync(() => {
10
- TestBed.configureTestingModule({
11
- imports: [RedeploymentWarningComponent],
12
- }).compileComponents();
13
- }));
14
-
15
- beforeEach(() => {
16
- fixture = TestBed.createComponent(RedeploymentWarningComponent);
17
- component = fixture.componentInstance;
18
- fixture.detectChanges();
19
- });
20
-
21
- it('should create', () => {
22
- expect(component).toBeTruthy();
23
- });
24
- });
@@ -1 +0,0 @@
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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