Skip to content

Commit

Permalink
[NAB-327] - Release 2.0.0
Browse files Browse the repository at this point in the history
- update lint versions to latest 8.13.0
- fix lint issues in dialog-refactor.component.ts and page-master.ts
  • Loading branch information
mazarijuraj committed Nov 11, 2024
1 parent 325db0c commit 5e4f30b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@
"@types/jasminewd2": "~2.0.3",
"@types/moment": "~2.13.0",
"@types/node": "~12.12.29",
"@typescript-eslint/eslint-plugin": "5.11.0",
"@typescript-eslint/parser": "5.11.0",
"@typescript-eslint/eslint-plugin": "8.13.0",
"@typescript-eslint/parser": "8.13.0",
"codelyzer": "^6.0.0",
"cspell": "~5.18.4",
"eslint": "^8.2.0",
"eslint": "^8.13.0",
"jasmine-core": "~3.6.0",
"jasmine-reporters": "^2.3.2",
"jasmine-spec-reporter": "~5.0.0",
Expand Down
7 changes: 2 additions & 5 deletions src/app/dialogs/dialog-refactor/dialog-refactor.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Component, Inject, OnInit} from '@angular/core';
import {Component, Inject} from '@angular/core';
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';
import {FormControl, ValidatorFn, Validators} from '@angular/forms';
import {ModelService} from '../../modeler/services/model/model.service';
Expand All @@ -14,7 +14,7 @@ export interface DialogRefactorData {
templateUrl: './dialog-refactor.component.html',
styleUrls: ['./dialog-refactor.component.scss']
})
export class DialogRefactorComponent implements OnInit {
export class DialogRefactorComponent {

formControl: FormControl;
result: string;
Expand All @@ -31,9 +31,6 @@ export class DialogRefactorComponent implements OnInit {
]);
}

ngOnInit(): void {
}

refactor() {
if (this.formControl.valid) {
this.result = this.formControl.value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Component, Injector, OnInit} from '@angular/core';
import {PageMaster} from '../../components/master-detail/page-master';
import {PageMasterComponent} from '../../components/master-detail/page-master.component';
import {ActionsModeService} from '../actions-mode.service';
import {Sort} from '@angular/material/sort';
import {DataActionsTool} from '../tools/data-actions-tool';
Expand All @@ -19,7 +19,7 @@ import {MasterItem} from '../action-editor/classes/master-item';
templateUrl: './action-master.component.html',
styleUrl: './action-master.component.scss'
})
export class ActionMasterComponent extends PageMaster implements OnInit {
export class ActionMasterComponent extends PageMasterComponent implements OnInit {

constructor(private _parentInjector: Injector,
private _actionsModeService: ActionsModeService,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Component, Injector, OnInit} from '@angular/core';
import {PageMaster} from '../page-master';
import {PageMasterComponent} from '../page-master.component';

@Component({
selector: 'nab-main-master',
templateUrl: './main-master.component.html',
styleUrl: './main-master.component.scss'
})
export class MainMasterComponent extends PageMaster implements OnInit {
export class MainMasterComponent extends PageMasterComponent implements OnInit {

constructor() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {PageEvent} from '@angular/material/paginator';
selector: 'nab-abstract-page-master-component',
template: ''
})
export abstract class PageMaster extends AbstractMasterComponent implements OnInit {
export abstract class PageMasterComponent extends AbstractMasterComponent implements OnInit {

@Input()protected _pageSize: number = 20;
protected _pageIndex: number;
Expand Down

0 comments on commit 5e4f30b

Please sign in to comment.