Remove unused lifecycle methodes Fix #87
This commit is contained in:
parent
80635e6626
commit
79dfd6e5a1
50
frontend/.eslintrc.json
Normal file
50
frontend/.eslintrc.json
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"root": true,
|
||||||
|
"ignorePatterns": [
|
||||||
|
"projects/**/*"
|
||||||
|
],
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"*.ts"
|
||||||
|
],
|
||||||
|
"parserOptions": {
|
||||||
|
"project": [
|
||||||
|
"tsconfig.json"
|
||||||
|
],
|
||||||
|
"createDefaultProgram": true
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"plugin:@angular-eslint/recommended",
|
||||||
|
"plugin:@angular-eslint/template/process-inline-templates"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"@angular-eslint/directive-selector": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"type": "attribute",
|
||||||
|
"prefix": "app",
|
||||||
|
"style": "camelCase"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@angular-eslint/component-selector": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"type": "element",
|
||||||
|
"prefix": "app",
|
||||||
|
"style": "kebab-case"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"*.html"
|
||||||
|
],
|
||||||
|
"extends": [
|
||||||
|
"plugin:@angular-eslint/template/recommended"
|
||||||
|
],
|
||||||
|
"rules": {}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -26,7 +26,10 @@
|
|||||||
"polyfills": "src/polyfills.ts",
|
"polyfills": "src/polyfills.ts",
|
||||||
"tsConfig": "tsconfig.app.json",
|
"tsConfig": "tsconfig.app.json",
|
||||||
"inlineStyleLanguage": "scss",
|
"inlineStyleLanguage": "scss",
|
||||||
"assets": ["src/favicon.png", "src/assets"],
|
"assets": [
|
||||||
|
"src/favicon.png",
|
||||||
|
"src/assets"
|
||||||
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"./node_modules/@angular/material/prebuilt-themes/purple-green.css",
|
"./node_modules/@angular/material/prebuilt-themes/purple-green.css",
|
||||||
"src/styles.scss"
|
"src/styles.scss"
|
||||||
@ -92,16 +95,31 @@
|
|||||||
"tsConfig": "tsconfig.spec.json",
|
"tsConfig": "tsconfig.spec.json",
|
||||||
"karmaConfig": "karma.conf.js",
|
"karmaConfig": "karma.conf.js",
|
||||||
"inlineStyleLanguage": "scss",
|
"inlineStyleLanguage": "scss",
|
||||||
"assets": ["src/favicon.ico", "src/assets"],
|
"assets": [
|
||||||
|
"src/favicon.ico",
|
||||||
|
"src/assets"
|
||||||
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
|
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
|
||||||
"src/styles.scss"
|
"src/styles.scss"
|
||||||
],
|
],
|
||||||
"scripts": []
|
"scripts": []
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"lint": {
|
||||||
|
"builder": "@angular-eslint/builder:lint",
|
||||||
|
"options": {
|
||||||
|
"lintFilePatterns": [
|
||||||
|
"src/**/*.ts",
|
||||||
|
"src/**/*.html"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultProject": "Aktienbot"
|
"defaultProject": "Aktienbot",
|
||||||
|
"cli": {
|
||||||
|
"defaultCollection": "@angular-eslint/schematics"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
3537
frontend/package-lock.json
generated
3537
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,8 @@
|
|||||||
"start": "ng serve",
|
"start": "ng serve",
|
||||||
"build": "ng build",
|
"build": "ng build",
|
||||||
"watch": "ng build --watch --configuration development",
|
"watch": "ng build --watch --configuration development",
|
||||||
"test": "ng test"
|
"test": "ng test",
|
||||||
|
"lint": "ng lint"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -28,10 +29,18 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "~13.2.5",
|
"@angular-devkit/build-angular": "~13.2.5",
|
||||||
|
"@angular-eslint/builder": "13.2.1",
|
||||||
|
"@angular-eslint/eslint-plugin": "13.2.1",
|
||||||
|
"@angular-eslint/eslint-plugin-template": "13.2.1",
|
||||||
|
"@angular-eslint/schematics": "13.2.1",
|
||||||
|
"@angular-eslint/template-parser": "13.2.1",
|
||||||
"@angular/cli": "~13.2.5",
|
"@angular/cli": "~13.2.5",
|
||||||
"@angular/compiler-cli": "~13.2.0",
|
"@angular/compiler-cli": "~13.2.0",
|
||||||
"@types/jasmine": "~3.10.0",
|
"@types/jasmine": "~3.10.0",
|
||||||
"@types/node": "^12.11.1",
|
"@types/node": "^12.11.1",
|
||||||
|
"@typescript-eslint/eslint-plugin": "5.17.0",
|
||||||
|
"@typescript-eslint/parser": "5.17.0",
|
||||||
|
"eslint": "^8.12.0",
|
||||||
"jasmine-core": "~4.0.0",
|
"jasmine-core": "~4.0.0",
|
||||||
"karma": "~6.3.0",
|
"karma": "~6.3.0",
|
||||||
"karma-chrome-launcher": "~3.1.0",
|
"karma-chrome-launcher": "~3.1.0",
|
||||||
|
@ -13,7 +13,7 @@ import { TransactionData } from '../dashboard.component';
|
|||||||
templateUrl: './user-dialog.component.html',
|
templateUrl: './user-dialog.component.html',
|
||||||
styleUrls: ['./user-dialog.component.scss'],
|
styleUrls: ['./user-dialog.component.scss'],
|
||||||
})
|
})
|
||||||
export class UserDialogComponent implements OnInit {
|
export class UserDialogComponent {
|
||||||
constructor(
|
constructor(
|
||||||
private dataService: DataService,
|
private dataService: DataService,
|
||||||
public dialog: MatDialog,
|
public dialog: MatDialog,
|
||||||
@ -21,8 +21,6 @@ export class UserDialogComponent implements OnInit {
|
|||||||
@Inject(MAT_DIALOG_DATA) public data: TransactionData
|
@Inject(MAT_DIALOG_DATA) public data: TransactionData
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit(): void {}
|
|
||||||
|
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
//TODO check tat price is decimal
|
//TODO check tat price is decimal
|
||||||
console.log(
|
console.log(
|
||||||
|
@ -6,14 +6,12 @@ import { TokenStorageService } from 'src/app/Services/token.service';
|
|||||||
templateUrl: './header.component.html',
|
templateUrl: './header.component.html',
|
||||||
styleUrls: ['./header.component.scss'],
|
styleUrls: ['./header.component.scss'],
|
||||||
})
|
})
|
||||||
export class HeaderComponent implements OnInit {
|
export class HeaderComponent {
|
||||||
/**
|
/**
|
||||||
* @param {TokenStorageService} privatetokenStorage
|
* @param {TokenStorageService} privatetokenStorage
|
||||||
*/
|
*/
|
||||||
constructor(private tokenStorage: TokenStorageService) {}
|
constructor(private tokenStorage: TokenStorageService) {}
|
||||||
|
|
||||||
ngOnInit(): void {}
|
|
||||||
|
|
||||||
//logout() clears session storage; All user data is eradicated from it and page is reloaded
|
//logout() clears session storage; All user data is eradicated from it and page is reloaded
|
||||||
logout() {
|
logout() {
|
||||||
this.tokenStorage.signOut();
|
this.tokenStorage.signOut();
|
||||||
|
@ -5,11 +5,9 @@ import { Component, OnInit } from '@angular/core';
|
|||||||
templateUrl: './confirmation-dialog.component.html',
|
templateUrl: './confirmation-dialog.component.html',
|
||||||
styleUrls: ['./confirmation-dialog.component.scss'],
|
styleUrls: ['./confirmation-dialog.component.scss'],
|
||||||
})
|
})
|
||||||
export class ConfirmationDialogComponent implements OnInit {
|
export class ConfirmationDialogComponent {
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
||||||
ngOnInit(): void {}
|
|
||||||
|
|
||||||
confirm() {}
|
confirm() {}
|
||||||
|
|
||||||
returnBack() {}
|
returnBack() {}
|
||||||
|
@ -5,10 +5,8 @@ import { Component, OnInit } from '@angular/core';
|
|||||||
templateUrl: './help-dialog.component.html',
|
templateUrl: './help-dialog.component.html',
|
||||||
styleUrls: ['./help-dialog.component.scss'],
|
styleUrls: ['./help-dialog.component.scss'],
|
||||||
})
|
})
|
||||||
export class HelpDialogComponent implements OnInit {
|
export class HelpDialogComponent {
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
||||||
ngOnInit(): void {}
|
|
||||||
|
|
||||||
close() {}
|
close() {}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import { AuthService } from '../../Services/auth.service';
|
|||||||
templateUrl: './register.component.html',
|
templateUrl: './register.component.html',
|
||||||
styleUrls: ['./register.component.scss'],
|
styleUrls: ['./register.component.scss'],
|
||||||
})
|
})
|
||||||
export class RegisterComponent implements OnInit {
|
export class RegisterComponent {
|
||||||
form: any = {
|
form: any = {
|
||||||
email: null,
|
email: null,
|
||||||
password: null,
|
password: null,
|
||||||
@ -22,7 +22,6 @@ export class RegisterComponent implements OnInit {
|
|||||||
* @param {Router} privaterouter
|
* @param {Router} privaterouter
|
||||||
*/
|
*/
|
||||||
constructor(private authService: AuthService, private router: Router) {}
|
constructor(private authService: AuthService, private router: Router) {}
|
||||||
ngOnInit(): void {}
|
|
||||||
onSubmit(): void {
|
onSubmit(): void {
|
||||||
const { email, username, password } = this.form;
|
const { email, username, password } = this.form;
|
||||||
this.authService.register(email, username, password).subscribe(
|
this.authService.register(email, username, password).subscribe(
|
||||||
|
Loading…
Reference in New Issue
Block a user