Skip to content

Commit a61460d

Browse files
author
Ben Grynhaus
committed
Prettier alignment
1 parent 1de2f82 commit a61460d

File tree

80 files changed

+949
-695
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+949
-695
lines changed

apps/demo/src/app/app.component.spec.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ describe('AppComponent', () => {
66
let component: AppComponent;
77
let fixture: ComponentFixture<AppComponent>;
88

9-
beforeEach(
10-
async(() => {
11-
TestBed.configureTestingModule({
12-
declarations: [AppComponent]
13-
}).compileComponents();
14-
})
15-
);
9+
beforeEach(async(() => {
10+
TestBed.configureTestingModule({
11+
declarations: [AppComponent],
12+
}).compileComponents();
13+
}));
1614

1715
beforeEach(() => {
1816
fixture = TestBed.createComponent(AppComponent);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const environment = {
2-
production: true
2+
production: true,
33
};

apps/demo/src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
// The list of which env maps to which file can be found in `.angular-cli.json`.
55

66
export const environment = {
7-
production: false
7+
production: false,
88
};

apps/docs/src/app/app-routing.module.ts

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,41 @@ import {
1515
WrappersComponent,
1616
} from './containers';
1717

18-
1918
const routes: Routes = [
20-
{ path: 'landing', redirectTo: '' },
21-
{ path: '', component: LandingComponent },
22-
{ path: 'performance', component: PerformanceComponent, children: [
19+
{ path: 'landing', redirectTo: '' },
20+
{ path: '', component: LandingComponent },
21+
{
22+
path: 'performance',
23+
component: PerformanceComponent,
24+
children: [
2325
{ path: '', redirectTo: 'angular', pathMatch: 'full' },
2426
{ path: 'angular', component: AngularPerfComponent },
2527
{ path: 'mixed', component: MixedPerfComponent },
2628
{ path: 'profiles', component: ProfilesComponent },
27-
] },
28-
{ path: 'components', component: ComponentDocsComponent, children: [
29+
],
30+
},
31+
{
32+
path: 'components',
33+
component: ComponentDocsComponent,
34+
children: [
2935
{ path: '', redirectTo: 'fabric', pathMatch: 'full' },
3036
{ path: 'fabric', component: FabricComponent },
3137
{ path: 'semantic-ui', component: SemanticUiComponent },
32-
] },
33-
{ path: 'docs', component: DocsComponent, children: [
38+
],
39+
},
40+
{
41+
path: 'docs',
42+
component: DocsComponent,
43+
children: [
3444
{ path: '', redirectTo: 'getting-started', pathMatch: 'full' },
3545
{ path: 'getting-started', component: GettingStartedComponent },
3646
{ path: 'wrappers', component: WrappersComponent },
37-
] },
47+
],
48+
},
3849
];
3950

4051
@NgModule({
41-
imports: [
42-
RouterModule.forRoot(routes)
43-
],
44-
exports: [
45-
RouterModule
46-
],
52+
imports: [RouterModule.forRoot(routes)],
53+
exports: [RouterModule],
4754
})
4855
export class AppRoutingModule {}

apps/docs/src/app/app.component.spec.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ describe('AppComponent', () => {
66
let component: AppComponent;
77
let fixture: ComponentFixture<AppComponent>;
88

9-
beforeEach(
10-
async(() => {
11-
TestBed.configureTestingModule({
12-
declarations: [AppComponent]
13-
}).compileComponents();
14-
})
15-
);
9+
beforeEach(async(() => {
10+
TestBed.configureTestingModule({
11+
declarations: [AppComponent],
12+
}).compileComponents();
13+
}));
1614

1715
beforeEach(() => {
1816
fixture = TestBed.createComponent(AppComponent);

apps/docs/src/app/app.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { Component } from '@angular/core';
22

3-
43
@Component({
54
selector: 'app-root',
65
templateUrl: './app.component.html',
7-
styleUrls: ['./app.component.scss']
6+
styleUrls: ['./app.component.scss'],
87
})
98
export class AppComponent {}

apps/docs/src/app/app.module.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { AppComponent } from './app.component';
1515
import { FabricModule } from './fabric.module';
1616
import { SemanticModule } from './semantic.module';
1717

18-
1918
@NgModule({
2019
imports: [
2120
AngularReactBrowserModule,
@@ -35,6 +34,6 @@ import { SemanticModule } from './semantic.module';
3534
],
3635
declarations: [AppComponent, LandingComponent],
3736
bootstrap: [AppComponent],
38-
schemas: [NO_ERRORS_SCHEMA]
37+
schemas: [NO_ERRORS_SCHEMA],
3938
})
40-
export class AppModule { }
39+
export class AppModule {}

apps/docs/src/app/components/components.module.ts

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { SharedModule } from '../shared';
1414
import { FabricModule } from '../fabric.module';
1515
import { PageHeaderComponent } from './page-header/page-header.component';
1616

17-
1817
const components = [
1918
DotComponent,
2019
IconsComponent,
@@ -25,24 +24,10 @@ const components = [
2524
];
2625

2726
@NgModule({
28-
imports: [
29-
CommonModule,
30-
RouterModule,
31-
FabricModule,
32-
ReactComponentsModule,
33-
MaterialModule,
34-
SharedModule,
35-
],
27+
imports: [CommonModule, RouterModule, FabricModule, ReactComponentsModule, MaterialModule, SharedModule],
3628
declarations: components,
3729
exports: components,
3830
})
39-
export class ComponentsModule { }
31+
export class ComponentsModule {}
4032

41-
export {
42-
DotComponent,
43-
IconsComponent,
44-
NavbarComponent,
45-
PageHeaderComponent,
46-
SubNavComponent,
47-
TriangleComponent,
48-
}
33+
export { DotComponent, IconsComponent, NavbarComponent, PageHeaderComponent, SubNavComponent, TriangleComponent };

apps/docs/src/app/components/dot/dot.component.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ describe('DotComponent', () => {
1111

1212
beforeEach(async(() => {
1313
TestBed.configureTestingModule({
14-
declarations: [ DotComponent ]
15-
})
16-
.compileComponents();
14+
declarations: [DotComponent],
15+
}).compileComponents();
1716
}));
1817

1918
beforeEach(() => {
Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
// tslint:disable:no-output-rename
22
import { ChangeDetectionStrategy, Component, Input, Output, EventEmitter } from '@angular/core';
33

4-
54
@Component({
65
selector: 'app-dot',
76
templateUrl: './dot.component.html',
87
styleUrls: ['./dot.component.scss'],
98
changeDetection: ChangeDetectionStrategy.OnPush,
109
})
1110
export class DotComponent {
11+
@Input()
12+
x: string;
13+
@Input()
14+
y: string;
15+
@Input()
16+
size: string;
17+
@Input()
18+
color: string;
19+
@Input()
20+
backgroundColor: string;
21+
@Input()
22+
textOverride: string;
1223

13-
@Input() x: string;
14-
@Input() y: string;
15-
@Input() size: string;
16-
@Input() color: string;
17-
@Input() backgroundColor: string;
18-
@Input() textOverride: string;
19-
20-
@Output('onMouseEnter') mouseEnter: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();
21-
@Output('onMouseLeave') mouseLeave: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();
24+
@Output('onMouseEnter')
25+
mouseEnter: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();
26+
@Output('onMouseLeave')
27+
mouseLeave: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();
2228

2329
onMouseEnter = ev => this.mouseEnter.emit(ev as any);
2430
onMouseLeave = ev => this.mouseLeave.emit(ev as any);
25-
2631
}

0 commit comments

Comments
 (0)