Browse Source
* Install Angular CLI * Core setup and cleanup * TypeScript and webpack updates * Angular 13 * Add JS lib to Angular workspace * Do not use JS library with workspace * Angular 14 * Angular 15 * Code fixes * Couple package bumps * Restore angularCompilerOptions * Remove property reference to users inside group that didn't existpull/332/head
8 changed files with 5526 additions and 1606 deletions
@ -0,0 +1,35 @@
@@ -0,0 +1,35 @@
|
||||
{ |
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", |
||||
"version": 1, |
||||
"newProjectRoot": "apps", |
||||
"cli": { |
||||
"analytics": false |
||||
}, |
||||
"projects": { |
||||
"app": { |
||||
"projectType": "application", |
||||
"schematics": { |
||||
"@schematics/angular:application": { |
||||
"strict": true |
||||
} |
||||
}, |
||||
"root": ".", |
||||
"sourceRoot": "src", |
||||
"prefix": "app", |
||||
"architect": { |
||||
"build": { |
||||
"builder": "@angular-devkit/build-angular:browser", |
||||
"options": { |
||||
"outputPath": "dist", |
||||
"index": "src/index.html", |
||||
"main": "src/main.ts", |
||||
"tsConfig": "tsconfig.json", |
||||
"assets": [], |
||||
"styles": [], |
||||
"scripts": [] |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
@ -1,10 +1,18 @@
@@ -1,10 +1,18 @@
|
||||
import { InjectFlags, InjectionToken, Injector, Type } from "@angular/core"; |
||||
import { InjectFlags, InjectOptions, Injector, ProviderToken } from "@angular/core"; |
||||
|
||||
export class ModalInjector implements Injector { |
||||
constructor(private _parentInjector: Injector, private _additionalTokens: WeakMap<any, any>) {} |
||||
|
||||
get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): T; |
||||
get(token: any, notFoundValue?: any, flags?: any) { |
||||
get<T>( |
||||
token: ProviderToken<T>, |
||||
notFoundValue: undefined, |
||||
options: InjectOptions & { optional?: false } |
||||
): T; |
||||
get<T>(token: ProviderToken<T>, notFoundValue: null, options: InjectOptions): T; |
||||
get<T>(token: ProviderToken<T>, notFoundValue?: T, options?: InjectOptions | InjectFlags): T; |
||||
get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T; |
||||
get(token: any, notFoundValue?: any): any; |
||||
get(token: any, notFoundValue?: any, flags?: any): any { |
||||
return this._additionalTokens.get(token) ?? this._parentInjector.get<any>(token, notFoundValue); |
||||
} |
||||
} |
||||
|
||||
@ -1,26 +1,31 @@
@@ -1,26 +1,31 @@
|
||||
{ |
||||
"angularCompilerOptions": { |
||||
"strictTemplates": true, |
||||
"preserveWhitespaces": true |
||||
}, |
||||
"compilerOptions": { |
||||
"pretty": true, |
||||
"moduleResolution": "node", |
||||
"noImplicitAny": true, |
||||
"emitDecoratorMetadata": true, |
||||
"experimentalDecorators": true, |
||||
"module": "es6", |
||||
"target": "ES2016", |
||||
"allowJs": true, |
||||
"module": "ES2020", |
||||
"lib": ["es5", "es6", "es7", "dom"], |
||||
"sourceMap": true, |
||||
"allowSyntheticDefaultImports": true, |
||||
"types": [], |
||||
"experimentalDecorators": true, |
||||
"emitDecoratorMetadata": true, |
||||
"declaration": false, |
||||
"outDir": "dist", |
||||
"baseUrl": ".", |
||||
"resolveJsonModule": true, |
||||
"paths": { |
||||
"tldjs": ["jslib/src/misc/tldjs.noop"], |
||||
"jslib-common/*": ["jslib/common/src/*"], |
||||
"jslib-angular/*": ["jslib/angular/src/*"], |
||||
"jslib-electron/*": ["jslib/electron/src/*"], |
||||
"jslib-node/*": ["jslib/node/src/*"] |
||||
} |
||||
}, |
||||
"angularCompilerOptions": { |
||||
"preserveWhitespaces": true |
||||
"useDefineForClassFields": false |
||||
}, |
||||
"include": ["src", "src-cli"] |
||||
} |
||||
|
||||
Loading…
Reference in new issue