update tslint -> eslint
This commit is contained in:
@@ -6,12 +6,13 @@ describe('BrandComponent', () => {
|
||||
let component: BrandComponent;
|
||||
let fixture: ComponentFixture<BrandComponent>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [BrandComponent]
|
||||
beforeEach(
|
||||
waitForAsync(() => {
|
||||
void TestBed.configureTestingModule({
|
||||
declarations: [BrandComponent],
|
||||
}).compileComponents();
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
);
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(BrandComponent);
|
||||
@@ -20,6 +21,6 @@ describe('BrandComponent', () => {
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
void expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,16 +1,8 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-brand',
|
||||
templateUrl: './brand.component.html',
|
||||
styleUrls: ['./brand.component.less']
|
||||
styleUrls: ['./brand.component.less'],
|
||||
})
|
||||
export class BrandComponent implements OnInit {
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
||||
export class BrandComponent {}
|
||||
|
||||
@@ -5,26 +5,20 @@ import {RouterModule, Routes} from '@angular/router';
|
||||
import {LogoModule} from '../../widget-modules/components/logo/logo.module';
|
||||
import {NewUserComponent} from './new-user/new-user.component';
|
||||
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
pathMatch: 'full',
|
||||
component: BrandComponent
|
||||
component: BrandComponent,
|
||||
},
|
||||
{
|
||||
path: 'new-user',
|
||||
component: NewUserComponent
|
||||
component: NewUserComponent,
|
||||
},
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
declarations: [BrandComponent, NewUserComponent],
|
||||
imports: [
|
||||
CommonModule,
|
||||
RouterModule.forChild(routes),
|
||||
LogoModule
|
||||
]
|
||||
imports: [CommonModule, RouterModule.forChild(routes), LogoModule],
|
||||
})
|
||||
export class BrandModule {
|
||||
}
|
||||
export class BrandModule {}
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
<div class="frame">
|
||||
<app-brand class="brand"></app-brand>
|
||||
<div *ngIf="user$|async as user" class="text">
|
||||
<div *ngIf="user$ | async as user" class="text">
|
||||
<div class="welcome">WILLKOMMEN</div>
|
||||
<div class="name">{{user.name}}</div>
|
||||
<div class="roles">Es wurden noch keine Berechtigungen zugeteilt, bitte wende Dich an den Administrator!</div>
|
||||
<div class="name">{{ user.name }}</div>
|
||||
<div class="roles">
|
||||
Es wurden noch keine Berechtigungen zugeteilt, bitte wende Dich an den
|
||||
Administrator!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,12 +6,13 @@ describe('NewUserComponent', () => {
|
||||
let component: NewUserComponent;
|
||||
let fixture: ComponentFixture<NewUserComponent>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [NewUserComponent]
|
||||
beforeEach(
|
||||
waitForAsync(() => {
|
||||
void TestBed.configureTestingModule({
|
||||
declarations: [NewUserComponent],
|
||||
}).compileComponents();
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
);
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(NewUserComponent);
|
||||
@@ -20,6 +21,6 @@ describe('NewUserComponent', () => {
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
void expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -6,12 +6,12 @@ import {User} from '../../../services/user/user';
|
||||
@Component({
|
||||
selector: 'app-new-user',
|
||||
templateUrl: './new-user.component.html',
|
||||
styleUrls: ['./new-user.component.less']
|
||||
styleUrls: ['./new-user.component.less'],
|
||||
})
|
||||
export class NewUserComponent {
|
||||
public user$: Observable<User>;
|
||||
|
||||
constructor(private userService: UserService) {
|
||||
public constructor(private userService: UserService) {
|
||||
this.user$ = userService.user$;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user