[ACA-1443] prettier formatting and checks (#629)

* intergrate prettier

* update settings

* integrate with travis

* unified formatting across all files
This commit is contained in:
Denys Vuika
2018-09-13 16:47:55 +01:00
committed by GitHub
parent 06402a9c72
commit 883a1971c5
163 changed files with 13571 additions and 12512 deletions

View File

@@ -26,27 +26,30 @@
import { Component, ViewEncapsulation } from '@angular/core';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs';
import { selectUser, appLanguagePicker } from '../../store/selectors/app.selectors';
import {
selectUser,
appLanguagePicker
} from '../../store/selectors/app.selectors';
import { AppStore } from '../../store/states';
import { ProfileState } from '@alfresco/adf-extensions';
import { SetSelectedNodesAction } from '../../store/actions';
@Component({
selector: 'aca-current-user',
templateUrl: './current-user.component.html',
encapsulation: ViewEncapsulation.None,
host: { class: 'aca-current-user' }
selector: 'aca-current-user',
templateUrl: './current-user.component.html',
encapsulation: ViewEncapsulation.None,
host: { class: 'aca-current-user' }
})
export class CurrentUserComponent {
profile$: Observable<ProfileState>;
languagePicker$: Observable<boolean>;
profile$: Observable<ProfileState>;
languagePicker$: Observable<boolean>;
constructor(private store: Store<AppStore>) {
this.profile$ = this.store.select(selectUser);
this.languagePicker$ = store.select(appLanguagePicker);
}
constructor(private store: Store<AppStore>) {
this.profile$ = this.store.select(selectUser);
this.languagePicker$ = store.select(appLanguagePicker);
}
onLogoutEvent() {
this.store.dispatch(new SetSelectedNodesAction([]));
}
onLogoutEvent() {
this.store.dispatch(new SetSelectedNodesAction([]));
}
}