Skip to content

Commit 3b3b1a7

Browse files
author
Alain BOUDARD
committed
fix(codestyle): Intellij code format / organize imports
1 parent 60d4d74 commit 3b3b1a7

Some content is hidden

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

62 files changed

+242
-231
lines changed

src/angular/src/app/app-routing/app-routing.module.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ const routes: Routes = [
2626
];
2727

2828
@NgModule({
29-
imports: [RouterModule.forRoot(routes, { useHash: true, relativeLinkResolution: 'legacy' })],
30-
exports: [RouterModule]
29+
imports: [ RouterModule.forRoot(routes, { useHash: true, relativeLinkResolution: 'legacy' }) ],
30+
exports: [ RouterModule ]
3131
})
32-
export class AppRoutingModule { }
32+
export class AppRoutingModule {
33+
}

src/angular/src/app/app.component.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { TestBed, waitForAsync } from '@angular/core/testing';
22
import { AppComponent } from './app.component';
3+
34
describe('AppComponent', () => {
45
beforeEach(waitForAsync(() => {
56
TestBed.configureTestingModule({

src/angular/src/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { UtilsService } from './services/utils.service';
2-
import { Component, ChangeDetectionStrategy } from '@angular/core';
2+
import { ChangeDetectionStrategy, Component } from '@angular/core';
33
import { ToastService } from './services/toast.service';
44

55
@Component({
66
selector: 'app-root',
77
templateUrl: './app.component.html',
8-
styleUrls: ['./app.component.css'],
8+
styleUrls: [ './app.component.css' ],
99
changeDetection: ChangeDetectionStrategy.OnPush
1010
})
1111
export class AppComponent {

src/angular/src/app/app.module.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { TodoModule } from './todo/todo.module';
1616

1717

1818
@NgModule({
19-
declarations: [AppComponent],
19+
declarations: [ AppComponent ],
2020
imports: [
2121
CompModule,
2222
TodoModule,
@@ -39,6 +39,7 @@ import { TodoModule } from './todo/todo.module';
3939
provide: NgbDateParserFormatter, useClass: CustomDateParser
4040
}
4141
],
42-
bootstrap: [AppComponent]
42+
bootstrap: [ AppComponent ]
4343
})
44-
export class AppModule { }
44+
export class AppModule {
45+
}

src/angular/src/app/comp/comp.module.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ import { RouterModule } from '@angular/router';
1111
* Module des composants annexes non liés aux routes
1212
*/
1313
@NgModule({
14-
imports: [CommonModule, RouterModule, FontAwesomeModule],
14+
imports: [ CommonModule, RouterModule, FontAwesomeModule ],
1515
declarations: [
1616
FaInputComponent,
1717
HelloComponent,
1818
NavbarComponent,
1919
FooterComponent
2020
],
21-
exports: [FaInputComponent, HelloComponent, NavbarComponent, FooterComponent]
21+
exports: [ FaInputComponent, HelloComponent, NavbarComponent, FooterComponent ]
2222
})
23-
export class CompModule {}
23+
export class CompModule {
24+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<fa-icon class="mr-2" [icon]="icon"></fa-icon>
1+
<fa-icon [icon]="icon" class="mr-2"></fa-icon>
22
<ng-content></ng-content>
33
<!--input #input (focus)="inputFocus = true" (blur)="inputFocus = false" (keyup)="value.emit(input.value)"-->

src/angular/src/app/comp/fa-input/fa-input.component.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
border: none;
77
outline: none;
88
}
9+
910
i {
1011
color: $input-focus-border-color;
1112
}
13+
1214
:host(.focus) {
1315
color: $input-focus-color;
1416
background-color: $input-focus-bg;

src/angular/src/app/comp/fa-input/fa-input.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('FaInputComponent', () => {
1010
TestBed.configureTestingModule({
1111
declarations: [ FaInputComponent ]
1212
})
13-
.compileComponents();
13+
.compileComponents();
1414
}));
1515

1616
beforeEach(() => {

src/angular/src/app/comp/fa-input/fa-input.component.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
import {
2-
Component,
3-
ContentChild,
4-
EventEmitter,
5-
HostBinding,
6-
Input,
7-
Output
8-
} from '@angular/core';
1+
import { Component, ContentChild, EventEmitter, HostBinding, Input, Output } from '@angular/core';
92
import { InputRefDirective } from '../../shared/input-ref.directive';
103

114
@Component({
125
selector: 'app-fa-input',
136
templateUrl: './fa-input.component.html',
14-
styleUrls: ['./fa-input.component.scss']
7+
styleUrls: [ './fa-input.component.scss' ]
158
})
169
export class FaInputComponent {
1710
@Input() icon: string;

src/angular/src/app/comp/footer/footer.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
&copy;
44
<span [innerText]="yearNow"></span>&nbsp;
55
<span> Coco </span>
6-
<span class="float-right" [innerText]="appVersion"></span>
6+
<span [innerText]="appVersion" class="float-right"></span>
77
</div>
88
</footer>

0 commit comments

Comments
 (0)