Skip to content

Commit fe3c17e

Browse files
committed
Match the default angular-cli style settings
1 parent 68f86c2 commit fe3c17e

File tree

12 files changed

+88
-88
lines changed

12 files changed

+88
-88
lines changed

e2e/src/app.e2e-spec.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
import { AppPage } from './app.po'
2-
import { browser, logging } from 'protractor'
1+
import { AppPage } from './app.po';
2+
import { browser, logging } from 'protractor';
33

44
describe('workspace-project App', () => {
5-
let page: AppPage
5+
let page: AppPage;
66

77
beforeEach(() => {
8-
page = new AppPage()
9-
})
8+
page = new AppPage();
9+
});
1010

1111
it('should display welcome message', () => {
12-
page.navigateTo()
13-
expect(page.getTitleText()).toEqual('yfiles-angular-cli-integration app is running!')
14-
})
12+
page.navigateTo();
13+
expect(page.getTitleText()).toEqual('yfiles-angular-cli-integration app is running!');
14+
});
1515

1616
afterEach(async () => {
1717
// Assert that there are no errors emitted from the browser
1818
const logs = await browser
1919
.manage()
2020
.logs()
21-
.get(logging.Type.BROWSER)
21+
.get(logging.Type.BROWSER);
2222
expect(logs).not.toContain(
2323
jasmine.objectContaining({
2424
level: logging.Level.SEVERE
2525
} as logging.Entry)
26-
)
27-
})
28-
})
26+
);
27+
});
28+
});

e2e/src/app.po.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { browser, by, element } from 'protractor'
1+
import { browser, by, element } from 'protractor';
22

33
export class AppPage {
44
navigateTo() {
5-
return browser.get(browser.baseUrl) as Promise<any>
5+
return browser.get(browser.baseUrl) as Promise<any>;
66
}
77

88
getTitleText() {
9-
return element(by.css('app-root .content span')).getText() as Promise<string>
9+
return element(by.css('app-root .content span')).getText() as Promise<string>;
1010
}
1111
}

src/app/app.component.spec.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
import { TestBed, async } from '@angular/core/testing'
2-
import { AppComponent } from './app.component'
1+
import { TestBed, async } from '@angular/core/testing';
2+
import { AppComponent } from './app.component';
33

44
describe('AppComponent', () => {
55
beforeEach(async(() => {
66
TestBed.configureTestingModule({
77
declarations: [AppComponent]
8-
}).compileComponents()
9-
}))
8+
}).compileComponents();
9+
}));
1010

1111
it('should create the app', () => {
12-
const fixture = TestBed.createComponent(AppComponent)
13-
const app = fixture.debugElement.componentInstance
14-
expect(app).toBeTruthy()
15-
})
12+
const fixture = TestBed.createComponent(AppComponent);
13+
const app = fixture.debugElement.componentInstance;
14+
expect(app).toBeTruthy();
15+
});
1616

1717
it(`should have as title 'yfiles-angular-cli-integration'`, () => {
18-
const fixture = TestBed.createComponent(AppComponent)
19-
const app = fixture.debugElement.componentInstance
20-
expect(app.title).toEqual('yfiles-angular-cli-integration')
21-
})
18+
const fixture = TestBed.createComponent(AppComponent);
19+
const app = fixture.debugElement.componentInstance;
20+
expect(app.title).toEqual('yfiles-angular-cli-integration');
21+
});
2222

2323
it('should render title', () => {
24-
const fixture = TestBed.createComponent(AppComponent)
25-
fixture.detectChanges()
26-
const compiled = fixture.debugElement.nativeElement
24+
const fixture = TestBed.createComponent(AppComponent);
25+
fixture.detectChanges();
26+
const compiled = fixture.debugElement.nativeElement;
2727
expect(compiled.querySelector('.content span').textContent).toContain(
2828
'yfiles-angular-cli-integration app is running!'
29-
)
30-
})
31-
})
29+
);
30+
});
31+
});

src/app/app.component.ts

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

33
@Component({
44
selector: 'app-root',
55
templateUrl: './app.component.html',
66
styleUrls: ['./app.component.css']
77
})
88
export class AppComponent {
9-
title = 'yfiles-angular-cli-integration'
9+
title = 'yfiles-angular-cli-integration';
1010
}

src/app/app.module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { BrowserModule } from '@angular/platform-browser'
2-
import { NgModule } from '@angular/core'
1+
import { BrowserModule } from '@angular/platform-browser';
2+
import { NgModule } from '@angular/core';
33

4-
import { AppComponent } from './app.component'
5-
import { GraphComponentComponent } from './graph-component/graph-component.component'
4+
import { AppComponent } from './app.component';
5+
import { GraphComponentComponent } from './graph-component/graph-component.component';
66

77
@NgModule({
88
declarations: [AppComponent, GraphComponentComponent],
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing'
1+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
22

3-
import { GraphComponentComponent } from './graph-component.component'
3+
import { GraphComponentComponent } from './graph-component.component';
44

55
describe('GraphComponentComponent', () => {
6-
let component: GraphComponentComponent
7-
let fixture: ComponentFixture<GraphComponentComponent>
6+
let component: GraphComponentComponent;
7+
let fixture: ComponentFixture<GraphComponentComponent>;
88

99
beforeEach(async(() => {
1010
TestBed.configureTestingModule({
1111
declarations: [GraphComponentComponent]
12-
}).compileComponents()
13-
}))
12+
}).compileComponents();
13+
}));
1414

1515
beforeEach(() => {
16-
fixture = TestBed.createComponent(GraphComponentComponent)
17-
component = fixture.componentInstance
18-
fixture.detectChanges()
19-
})
16+
fixture = TestBed.createComponent(GraphComponentComponent);
17+
component = fixture.componentInstance;
18+
fixture.detectChanges();
19+
});
2020

2121
it('should create', () => {
22-
expect(component).toBeTruthy()
23-
})
24-
})
22+
expect(component).toBeTruthy();
23+
});
24+
});
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core'
2-
import { GraphComponent, GraphEditorInputMode, License, Point, Rect } from 'yfiles'
3-
import licenseData from '../../license.json'
1+
import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core';
2+
import { GraphComponent, GraphEditorInputMode, License, Point, Rect } from 'yfiles';
3+
import licenseData from '../../license.json';
44

5-
License.value = licenseData
5+
License.value = licenseData;
66

77
@Component({
88
selector: 'app-graph-component',
99
templateUrl: './graph-component.component.html',
1010
styleUrls: ['./graph-component.component.css']
1111
})
1212
export class GraphComponentComponent implements AfterViewInit {
13-
@ViewChild('graphComponentRef', { static: false }) graphComponentRef!: ElementRef
14-
graphComponent!: GraphComponent
13+
@ViewChild('graphComponentRef', { static: false }) graphComponentRef!: ElementRef;
14+
graphComponent!: GraphComponent;
1515

1616
ngAfterViewInit() {
1717
// instantiate a new GraphComponent
18-
this.graphComponent = new GraphComponent(this.graphComponentRef.nativeElement)
18+
this.graphComponent = new GraphComponent(this.graphComponentRef.nativeElement);
1919

2020
// configure an input mode for out of the box editing
21-
this.graphComponent.inputMode = new GraphEditorInputMode()
21+
this.graphComponent.inputMode = new GraphEditorInputMode();
2222

2323
// create some graph elements
24-
this.createSampleGraph(this.graphComponent.graph)
24+
this.createSampleGraph(this.graphComponent.graph);
2525

2626
// center the newly created graph
27-
this.graphComponent.fitGraphBounds()
27+
this.graphComponent.fitGraphBounds();
2828
}
2929

3030
createSampleGraph(graph) {
3131
// create some nodes
32-
const node1 = graph.createNodeAt(new Point(30, 30))
33-
const node2 = graph.createNodeAt(new Point(150, 30))
34-
const node3 = graph.createNode(new Rect(230, 200, 60, 30))
32+
const node1 = graph.createNodeAt(new Point(30, 30));
33+
const node2 = graph.createNodeAt(new Point(150, 30));
34+
const node3 = graph.createNode(new Rect(230, 200, 60, 30));
3535

3636
// create some edges between the nodes
37-
graph.createEdge(node1, node2)
38-
graph.createEdge(node1, node3)
39-
const edge = graph.createEdge(node2, node3)
37+
graph.createEdge(node1, node2);
38+
graph.createEdge(node1, node3);
39+
const edge = graph.createEdge(node2, node3);
4040
// Creates the first bend for edge at (260, 30)
41-
graph.addBend(edge, new Point(260, 30))
41+
graph.addBend(edge, new Point(260, 30));
4242

4343
// add labels to some graph elements
44-
graph.addLabel(node1, 'n1')
45-
graph.addLabel(node2, 'n2')
46-
graph.addLabel(node3, 'n3')
44+
graph.addLabel(node1, 'n1');
45+
graph.addLabel(node2, 'n2');
46+
graph.addLabel(node3, 'n3');
4747
}
4848
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const environment = {
22
production: true
3-
}
3+
};

src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

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

99
/*
1010
* For easier debugging in development mode, you can import the following file

src/main.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { enableProdMode } from '@angular/core'
2-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
1+
import { enableProdMode } from '@angular/core';
2+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
33

4-
import { AppModule } from './app/app.module'
5-
import { environment } from './environments/environment'
4+
import { AppModule } from './app/app.module';
5+
import { environment } from './environments/environment';
66

77
if (environment.production) {
8-
enableProdMode()
8+
enableProdMode();
99
}
1010

1111
platformBrowserDynamic()
1212
.bootstrapModule(AppModule)
13-
.catch(err => console.error(err))
13+
.catch(err => console.error(err));

0 commit comments

Comments
 (0)