Blacked and isorted the python files

Prettied and eslinted the typescript/html files
This commit is contained in:
2020-10-11 10:56:29 +05:30
parent b31db593c2
commit d677cfb1ea
505 changed files with 7560 additions and 5650 deletions

View File

@ -1,12 +1,14 @@
import { Component, OnInit } from '@angular/core';
import { SectionListDataSource } from './section-list-datasource';
import { Section } from '../../core/section';
import { ActivatedRoute } from '@angular/router';
import { Section } from '../../core/section';
import { SectionListDataSource } from './section-list-datasource';
@Component({
selector: 'app-section-list',
templateUrl: './section-list.component.html',
styleUrls: ['./section-list.component.css']
styleUrls: ['./section-list.component.css'],
})
export class SectionListComponent implements OnInit {
dataSource: SectionListDataSource;
@ -14,14 +16,12 @@ export class SectionListComponent implements OnInit {
/** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */
displayedColumns = ['name'];
constructor(private route: ActivatedRoute) {
}
constructor(private route: ActivatedRoute) {}
ngOnInit() {
this.route.data
.subscribe((data: { list: Section[] }) => {
this.list = data.list;
});
this.route.data.subscribe((data: { list: Section[] }) => {
this.list = data.list;
});
this.dataSource = new SectionListDataSource(this.list);
}
}