Skip to content

Commit d18c5f6

Browse files
committed
chore(): format
1 parent e9c2dfa commit d18c5f6

27 files changed

+180
-188
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"test": "ng test",
1212
"lint": "ng lint",
1313
"e2e": "ng e2e",
14+
"format": "prettier --write \"src/**/*{.ts,.scss}\"",
1415
"gh-pages": "ionic build --prod --base-href 'https://fivethree.io/' && npx ngh --dir=www/ --cname=fivethree.io"
1516
},
1617
"private": true,

src/app/app-routing.module.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,22 @@ import { NgModule } from '@angular/core';
22
import { Routes, RouterModule } from '@angular/router';
33

44
const routes: Routes = [
5-
{ path: '', loadChildren: () => import('./pages/home/home.module').then(m => m.HomePageModule) },
6-
{ path: '**', loadChildren: () => import('./pages/page-not-found/page-not-found.module').then(m => m.PageNotFoundPageModule) },
5+
{
6+
path: '',
7+
loadChildren: () =>
8+
import('./pages/home/home.module').then(m => m.HomePageModule)
9+
},
10+
{
11+
path: '**',
12+
loadChildren: () =>
13+
import('./pages/page-not-found/page-not-found.module').then(
14+
m => m.PageNotFoundPageModule
15+
)
16+
}
717
];
818

919
@NgModule({
1020
imports: [RouterModule.forRoot(routes)],
1121
exports: [RouterModule]
1222
})
13-
export class AppRoutingModule { }
23+
export class AppRoutingModule {}

src/app/app.component.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { StatusBar } from '@ionic-native/status-bar/ngx';
88
import { AppComponent } from './app.component';
99

1010
describe('AppComponent', () => {
11-
1211
let statusBarSpy, splashScreenSpy, platformReadySpy, platformSpy;
1312

1413
beforeEach(async(() => {
@@ -23,8 +22,8 @@ describe('AppComponent', () => {
2322
providers: [
2423
{ provide: StatusBar, useValue: statusBarSpy },
2524
{ provide: SplashScreen, useValue: splashScreenSpy },
26-
{ provide: Platform, useValue: platformSpy },
27-
],
25+
{ provide: Platform, useValue: platformSpy }
26+
]
2827
}).compileComponents();
2928
}));
3029

@@ -43,5 +42,4 @@ describe('AppComponent', () => {
4342
});
4443

4544
// TODO: add more tests!
46-
4745
});

src/app/app.module.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ export function HttpLoaderFactory(http: HttpClient) {
3838
deps: [HttpClient]
3939
}
4040
}),
41-
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }),
42-
LottieModule,
41+
ServiceWorkerModule.register('ngsw-worker.js', {
42+
enabled: environment.production
43+
}),
44+
LottieModule
4345
],
4446
providers: [
4547
StatusBar,
@@ -48,4 +50,4 @@ export function HttpLoaderFactory(http: HttpClient) {
4850
],
4951
bootstrap: [AppComponent]
5052
})
51-
export class AppModule { }
53+
export class AppModule {}

src/app/components/about/about.component.spec.ts

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

99
beforeEach(async(() => {
1010
TestBed.configureTestingModule({
11-
declarations: [ AboutComponent ]
12-
})
13-
.compileComponents();
11+
declarations: [AboutComponent]
12+
}).compileComponents();
1413
}));
1514

1615
beforeEach(() => {

src/app/components/about/about.component.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import { Component, OnInit } from '@angular/core';
66
styleUrls: ['./about.component.scss']
77
})
88
export class AboutComponent implements OnInit {
9+
constructor() {}
910

10-
constructor() { }
11-
12-
ngOnInit() {
13-
}
14-
11+
ngOnInit() {}
1512
}

src/app/components/components.module.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ import { TeamComponent } from './team/team.component';
99
import { FivethreeCoreModule } from '@fivethree/core';
1010

1111
@NgModule({
12-
declarations: [
13-
HeaderComponent,
14-
FooterComponent,
15-
AboutComponent,
16-
TeamComponent
17-
],
18-
imports: [
19-
CommonModule,
20-
IonicModule,
21-
TranslateModule.forChild(),
22-
FivethreeCoreModule
23-
],
24-
exports: [
25-
HeaderComponent,
26-
FooterComponent,
27-
AboutComponent,
28-
TeamComponent,
29-
FivethreeCoreModule
30-
],
31-
providers: [],
12+
declarations: [
13+
HeaderComponent,
14+
FooterComponent,
15+
AboutComponent,
16+
TeamComponent
17+
],
18+
imports: [
19+
CommonModule,
20+
IonicModule,
21+
TranslateModule.forChild(),
22+
FivethreeCoreModule
23+
],
24+
exports: [
25+
HeaderComponent,
26+
FooterComponent,
27+
AboutComponent,
28+
TeamComponent,
29+
FivethreeCoreModule
30+
],
31+
providers: []
3232
})
33-
export class ComponentsModule { }
33+
export class ComponentsModule {}
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
ion-footer {
2-
background: var(--ion-color-dark);
3-
padding: 64px 0 64px 0;
2+
background: var(--ion-color-dark);
3+
padding: 64px 0 64px 0;
44
}
55

66
h4 {
7-
color: var(--ion-color-dark-contrast);
7+
color: var(--ion-color-dark-contrast);
88
}
99

1010
.links {
11-
display: block;
12-
margin-bottom: 8px;
13-
font-size: 16px;
14-
line-height: 1.3;
15-
color: var(--ion-color-light);
11+
display: block;
12+
margin-bottom: 8px;
13+
font-size: 16px;
14+
line-height: 1.3;
15+
color: var(--ion-color-light);
1616
}
1717

1818
a:hover {
19-
color: var(--ion-color-light-shade);
19+
color: var(--ion-color-light-shade);
2020
}
2121

2222
a {
23-
text-decoration: none;
23+
text-decoration: none;
2424
}
2525

2626
#social {
27-
display: flex;
28-
justify-content: center;
29-
align-items: center;
30-
31-
a {
32-
color: var(--ion-color-light);
33-
font-size: 2rem;
34-
padding: 0 12px 0 12px;
35-
}
36-
37-
a:first-child {
38-
padding-left: 0;
39-
}
40-
41-
a:last-child {
42-
padding-right: 0;
43-
}
27+
display: flex;
28+
justify-content: center;
29+
align-items: center;
30+
31+
a {
32+
color: var(--ion-color-light);
33+
font-size: 2rem;
34+
padding: 0 12px 0 12px;
35+
}
36+
37+
a:first-child {
38+
padding-left: 0;
39+
}
40+
41+
a:last-child {
42+
padding-right: 0;
43+
}
4444
}
4545

4646
@media screen and (max-width: 991px) {
47-
#social {
48-
order: -1;
49-
}
50-
}
47+
#social {
48+
order: -1;
49+
}
50+
}

src/app/components/footer/footer.component.spec.ts

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

99
beforeEach(async(() => {
1010
TestBed.configureTestingModule({
11-
declarations: [ FooterComponent ]
12-
})
13-
.compileComponents();
11+
declarations: [FooterComponent]
12+
}).compileComponents();
1413
}));
1514

1615
beforeEach(() => {

src/app/components/footer/footer.component.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import { Component, OnInit } from '@angular/core';
66
styleUrls: ['./footer.component.scss']
77
})
88
export class FooterComponent implements OnInit {
9+
constructor() {}
910

10-
constructor() { }
11-
12-
ngOnInit() {
13-
}
14-
11+
ngOnInit() {}
1512
}

0 commit comments

Comments
 (0)