Skip to content

Commit

Permalink
ci: apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Nov 25, 2024
1 parent 7315df1 commit 6e426ce
Show file tree
Hide file tree
Showing 19 changed files with 79 additions and 67 deletions.
8 changes: 4 additions & 4 deletions examples/angular/basic/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { PostComponent } from './components/post.component'
import { PostsComponent } from './components/posts.component'

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'basic-example',
templateUrl: './app.component.html',
imports: [PostComponent, PostsComponent]
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'basic-example',
templateUrl: './app.component.html',
imports: [PostComponent, PostsComponent],
})
export class BasicExampleComponent {
postId = signal(-1)
Expand Down
8 changes: 4 additions & 4 deletions examples/angular/devtools-panel/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { RouterLink, RouterOutlet } from '@angular/router'
import { ExampleQueryComponent } from './components/example-query.component'

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
template: `
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
template: `
<ul>
<li>
<a routerLink="basic">Basic devtools panel example</a>
Expand All @@ -17,6 +17,6 @@ import { ExampleQueryComponent } from './components/example-query.component'
<router-outlet />
`,
imports: [ExampleQueryComponent, RouterOutlet, RouterLink]
imports: [ExampleQueryComponent, RouterOutlet, RouterLink],
})
export class AppComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { ExampleQueryComponent } from './example-query.component'
import type { ElementRef } from '@angular/core'

@Component({
selector: 'basic-devtools-panel-example',
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
selector: 'basic-devtools-panel-example',
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
<example-query />
<h1>Basic devtools panel example</h1>
<p>
Expand All @@ -20,7 +20,7 @@ import type { ElementRef } from '@angular/core'
<div #div style="height: 500px"></div>
}
`,
imports: [ExampleQueryComponent]
imports: [ExampleQueryComponent],
})
export default class BasicDevtoolsPanelExampleComponent {
isOpen = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import type { ElementRef } from '@angular/core'
import type { DevtoolsPanelRef } from '@tanstack/angular-query-devtools-experimental'

@Component({
selector: 'lazy-load-devtools-panel-example',
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
selector: 'lazy-load-devtools-panel-example',
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
<example-query />
<h1>Lazy load devtools panel example</h1>
<p>
Expand All @@ -27,7 +27,7 @@ import type { DevtoolsPanelRef } from '@tanstack/angular-query-devtools-experime
<div #div style="height: 500px"></div>
}
`,
imports: [ExampleQueryComponent]
imports: [ExampleQueryComponent],
})
export default class LazyLoadDevtoolsPanelExampleComponent {
isOpen = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'
import { ExampleComponent } from './components/example.component'

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
template: `<example />`,
imports: [ExampleComponent]
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
template: `<example />`,
imports: [ExampleComponent],
})
export class AppComponent {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { provideHttpClient, withFetch, withInterceptors } from '@angular/common/http'
import {
provideHttpClient,
withFetch,
withInterceptors,
} from '@angular/common/http'
import {
QueryClient,
provideTanStackQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import { ProjectStyleDirective } from '../directives/project-style.directive'
import { ProjectsService } from '../services/projects.service'

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'example',
templateUrl: './example.component.html',
imports: [ProjectStyleDirective]
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'example',
templateUrl: './example.component.html',
imports: [ProjectStyleDirective],
})
export class ExampleComponent {
projectsService = inject(ProjectsService)
Expand Down
8 changes: 4 additions & 4 deletions examples/angular/pagination/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'
import { ExampleComponent } from './components/example.component'

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
template: `<example />`,
imports: [ExampleComponent]
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
template: `<example />`,
imports: [ExampleComponent],
})
export class AppComponent {}
6 changes: 5 additions & 1 deletion examples/angular/pagination/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { provideHttpClient, withFetch, withInterceptors } from '@angular/common/http'
import {
provideHttpClient,
withFetch,
withInterceptors,
} from '@angular/common/http'
import {
QueryClient,
provideTanStackQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { Component } from '@angular/core'
import { RouterOutlet } from '@angular/router'

@Component({
selector: 'app-root',
imports: [RouterOutlet],
templateUrl: './app.component.html',
styles: []
selector: 'app-root',
imports: [RouterOutlet],
templateUrl: './app.component.html',
styles: [],
})
export class AppComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import { injectQuery } from '@tanstack/angular-query-experimental'
import { QueriesService } from '../services/queries-service'

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'post',
templateUrl: './post.component.html',
imports: [RouterLink]
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'post',
templateUrl: './post.component.html',
imports: [RouterLink],
})
export default class PostComponent {
private queries = inject(QueriesService)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { QueryClient, injectQuery } from '@tanstack/angular-query-experimental'
import { QueriesService } from '../services/queries-service'

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'posts',
templateUrl: './posts.component.html',
imports: [RouterLink]
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'posts',
templateUrl: './posts.component.html',
imports: [RouterLink],
})
export default class PostsComponent {
private queries = inject(QueriesService)
Expand Down
8 changes: 4 additions & 4 deletions examples/angular/router/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'
import { RouterOutlet } from '@angular/router'

@Component({
selector: 'app-root',
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [RouterOutlet],
templateUrl: './app.component.html'
selector: 'app-root',
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [RouterOutlet],
templateUrl: './app.component.html',
})
export class AppComponent {}
8 changes: 4 additions & 4 deletions examples/angular/router/src/app/components/post.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import { lastValueFrom } from 'rxjs'
import { PostsService } from '../services/posts-service'

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'post',
templateUrl: './post.component.html',
imports: [RouterLink]
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'post',
templateUrl: './post.component.html',
imports: [RouterLink],
})
export default class PostComponent {
#postsService = inject(PostsService)
Expand Down
8 changes: 4 additions & 4 deletions examples/angular/router/src/app/components/posts.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { lastValueFrom } from 'rxjs'
import { PostsService } from '../services/posts-service'

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'posts',
templateUrl: './posts.component.html',
imports: [RouterLink]
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'posts',
templateUrl: './posts.component.html',
imports: [RouterLink],
})
export default class PostsComponent {
#postsService = inject(PostsService)
Expand Down
8 changes: 4 additions & 4 deletions examples/angular/rxjs/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'
import { ExampleComponent } from './components/example.component'

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
template: `<example />`,
imports: [ExampleComponent]
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
template: `<example />`,
imports: [ExampleComponent],
})
export class AppComponent {}
6 changes: 5 additions & 1 deletion examples/angular/rxjs/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { provideHttpClient, withFetch, withInterceptors } from '@angular/common/http'
import {
provideHttpClient,
withFetch,
withInterceptors,
} from '@angular/common/http'
import {
QueryClient,
provideTanStackQuery,
Expand Down
8 changes: 4 additions & 4 deletions examples/angular/rxjs/src/app/components/example.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import { debounceTime, distinctUntilChanged, lastValueFrom } from 'rxjs'
import { AutocompleteService } from '../services/autocomplete-service'

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'example',
templateUrl: './example.component.html',
imports: [ReactiveFormsModule]
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'example',
templateUrl: './example.component.html',
imports: [ReactiveFormsModule],
})
export class ExampleComponent {
#autocompleteService = inject(AutocompleteService)
Expand Down
8 changes: 4 additions & 4 deletions examples/angular/simple/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'
import { SimpleExampleComponent } from './components/simple-example.component'

@Component({
selector: 'app-root',
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [SimpleExampleComponent],
template: `<simple-example />`
selector: 'app-root',
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [SimpleExampleComponent],
template: `<simple-example />`,
})
export class AppComponent {}

0 comments on commit 6e426ce

Please sign in to comment.