Remove overrides ca asta se rezolva cu altceva, more readme
This commit is contained in:
parent
85d4207617
commit
7910420e17
@ -90,3 +90,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
27
README.md
27
README.md
@ -10,7 +10,7 @@ Install dependencies:
|
||||
|
||||
In `app.module.ts` add:
|
||||
|
||||
```
|
||||
```ts
|
||||
export function httpLoaderFactory(httpClient: HttpClient, configService: ConfigService): PruningTranslationLoader {
|
||||
return new PruningTranslationLoader(httpClient, '/assets/i18n/', `.json?version=${configService.values.FRONTEND_APP_VERSION}`);
|
||||
}
|
||||
@ -52,3 +52,28 @@ section:
|
||||
```
|
||||
|
||||
Make sure `noImplicitOverride` is **not** set to `true`.
|
||||
|
||||
Include the common-ui assets in the `assets` section of `angular.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "{libs,projects}/common-ui/src/assets/",
|
||||
"output": "/assets/"
|
||||
}
|
||||
```
|
||||
|
||||
Update `styles` and `stylePreprocessorOptions` in `angular.json`:
|
||||
|
||||
```
|
||||
"styles": [
|
||||
...
|
||||
"{libs,projects}/common-ui/src/assets/styles/common-styles.scss"
|
||||
],
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": [
|
||||
...
|
||||
"./{libs,projects}/common-ui/src/assets/styles"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
@ -17,12 +17,12 @@ export class ConfirmationDialogService extends DialogService<DialogType> {
|
||||
},
|
||||
};
|
||||
|
||||
constructor(protected override readonly _dialog: MatDialog) {
|
||||
constructor(protected readonly _dialog: MatDialog) {
|
||||
super(_dialog);
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
override openDialog(data?: { disableConfirm: boolean; [key: string]: unknown }): MatDialogRef<unknown> {
|
||||
openDialog(data?: { disableConfirm: boolean; [key: string]: unknown }): MatDialogRef<unknown> {
|
||||
return super.openDialog(
|
||||
'confirm',
|
||||
null,
|
||||
@ -32,7 +32,7 @@ export class ConfirmationDialogService extends DialogService<DialogType> {
|
||||
details: _('confirmation-dialog.unsaved-changes.details'),
|
||||
confirmationText: _('confirmation-dialog.unsaved-changes.confirmation-text'),
|
||||
discardChangesText: _('confirmation-dialog.unsaved-changes.discard-changes-text'),
|
||||
disableConfirm: data.disableConfirm,
|
||||
disableConfirm: data?.disableConfirm,
|
||||
titleColor: TitleColors.WARN,
|
||||
}),
|
||||
);
|
||||
|
||||
@ -26,9 +26,9 @@ export class EntitiesService<E extends IListable, I = E> extends GenericService<
|
||||
private readonly _all$ = new BehaviorSubject<E[]>([]);
|
||||
|
||||
constructor(
|
||||
protected override readonly _injector: Injector,
|
||||
protected readonly _injector: Injector,
|
||||
@Optional() @Inject(ENTITY_CLASS) private readonly _entityClass: new (entityInterface: I, ...args: unknown[]) => E,
|
||||
@Optional() @Inject(ENTITY_PATH) protected override readonly _defaultModelPath = '',
|
||||
@Optional() @Inject(ENTITY_PATH) protected readonly _defaultModelPath = '',
|
||||
) {
|
||||
super(_injector, _defaultModelPath);
|
||||
this.all$ = this._all$.asObservable().pipe(shareDistinctLast());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user