try fix
This commit is contained in:
parent
698287e5de
commit
fa923cf366
@ -1,11 +1,23 @@
|
||||
{
|
||||
"extends": ["../../.eslintrc.json"],
|
||||
"ignorePatterns": ["!**/*"],
|
||||
"extends": [
|
||||
"../../.eslintrc.json"
|
||||
],
|
||||
"env": {
|
||||
"browser": true,
|
||||
"node": true
|
||||
},
|
||||
"ignorePatterns": [
|
||||
"!**/*"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["**/*.ts"],
|
||||
"files": [
|
||||
"**/*.ts"
|
||||
],
|
||||
"parserOptions": {
|
||||
"project": ["libs/common-ui/tsconfig.json"]
|
||||
"project": [
|
||||
"tsconfig.json"
|
||||
]
|
||||
},
|
||||
"rules": {
|
||||
"@angular-eslint/directive-selector": [
|
||||
@ -37,27 +49,41 @@
|
||||
"error",
|
||||
{
|
||||
"selector": "memberLike",
|
||||
"modifiers": ["private"],
|
||||
"format": ["camelCase"],
|
||||
"modifiers": [
|
||||
"private"
|
||||
],
|
||||
"format": [
|
||||
"camelCase"
|
||||
],
|
||||
"leadingUnderscore": "allow"
|
||||
},
|
||||
{
|
||||
"selector": "memberLike",
|
||||
"modifiers": ["protected"],
|
||||
"format": ["camelCase"],
|
||||
"modifiers": [
|
||||
"protected"
|
||||
],
|
||||
"format": [
|
||||
"camelCase"
|
||||
],
|
||||
"leadingUnderscore": "allow"
|
||||
},
|
||||
{
|
||||
"selector": "memberLike",
|
||||
"modifiers": ["private"],
|
||||
"format": ["UPPER_CASE", "camelCase"],
|
||||
"modifiers": [
|
||||
"private"
|
||||
],
|
||||
"format": [
|
||||
"UPPER_CASE",
|
||||
"camelCase"
|
||||
],
|
||||
"leadingUnderscore": "allow"
|
||||
}
|
||||
],
|
||||
"no-underscore-dangle": "off",
|
||||
"no-param-reassign": "error",
|
||||
"consistent-return": "off",
|
||||
"@typescript-eslint/restrict-template-expressions": "off"
|
||||
"@typescript-eslint/restrict-template-expressions": "off",
|
||||
"@typescript-eslint/lines-between-class-members": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
12
README.md
12
README.md
@ -1,12 +1,14 @@
|
||||
## Installation
|
||||
|
||||
Install submodule at `libs/common-ui`.
|
||||
Install submodule at `{libs,projects}/common-ui`.
|
||||
|
||||
Install dependencies:
|
||||
|
||||
- `yarn add keycloak-angular keycloak-js ngx-toastr @biesbjerg/ngx-translate-extract-marker @ngx-translate/core @ngx-translate/http-loader dayjs lodash-es ngx-translate-messageformat-compiler`
|
||||
- `yarn add @types/lodash-es -D`
|
||||
- `ng add @angular/material`
|
||||
- ```sh
|
||||
yarn add keycloak-angular keycloak-js ngx-toastr @biesbjerg/ngx-translate-extract-marker @ngx-translate/core @ngx-translate/http-loader dayjs lodash-es ngx-translate-messageformat-compiler
|
||||
```
|
||||
- `yarn add @types/lodash-es -D`
|
||||
- `ng add @angular/material`
|
||||
|
||||
In `app.module.ts` add:
|
||||
|
||||
@ -45,7 +47,7 @@ section:
|
||||
...
|
||||
"paths": {
|
||||
...
|
||||
"@iqser/common-ui": ["libs/common-ui/src/index.ts"]
|
||||
"@iqser/common-ui": ["{libs,projects}/common-ui/src/index.ts"]
|
||||
},
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
|
||||
@ -19,5 +19,5 @@ export abstract class BaseFormComponent extends AutoUnsubscribe {
|
||||
return !this.valid || !this.changed;
|
||||
}
|
||||
|
||||
abstract save();
|
||||
abstract save(): unknown;
|
||||
}
|
||||
|
||||
@ -14,7 +14,7 @@ export class SyncWidthDirective implements OnDestroy {
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
clearInterval(this._interval);
|
||||
window.clearInterval(this._interval);
|
||||
}
|
||||
|
||||
@HostListener('window:resize')
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { IListable } from '@iqser/common-ui';
|
||||
import { BehaviorSubject, Observable } from 'rxjs';
|
||||
import { IListable } from '../../models';
|
||||
|
||||
export class EntityWrapper<T extends IListable> {
|
||||
readonly classes$: BehaviorSubject<Record<string, boolean>>;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { IListable } from '@iqser/common-ui';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
import { IListable } from '../../models';
|
||||
|
||||
export interface WorkflowColumn<T extends IListable, K> {
|
||||
key: K;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { IListable } from '@iqser/common-ui';
|
||||
import { IListable } from '../../models';
|
||||
import { WorkflowColumn } from './workflow-column.model';
|
||||
|
||||
export interface WorkflowConfig<T extends IListable, K> {
|
||||
|
||||
@ -7,8 +7,7 @@ import { LoadingService } from '../loading';
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class CompositeRouteGuard implements CanActivate {
|
||||
constructor(protected readonly _injector: Injector, private readonly _loadingService: LoadingService) {
|
||||
}
|
||||
constructor(protected readonly _injector: Injector, private readonly _loadingService: LoadingService) {}
|
||||
|
||||
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> {
|
||||
this._loadingService.start();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user