mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
fix: run prettier on all file to avoid prettier issue inside PR
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { defineConfig } from 'cypress';
|
||||
import { nxComponentTestingPreset } from '@nx/angular/plugins/component-testing';
|
||||
import { defineConfig } from 'cypress';
|
||||
|
||||
export default defineConfig({
|
||||
component: nxComponentTestingPreset(__filename),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
@@ -5,6 +5,8 @@ import { TableComponent } from './table.component';
|
||||
standalone: true,
|
||||
imports: [TableComponent],
|
||||
selector: 'app-root',
|
||||
template: ` <app-table /> `,
|
||||
template: `
|
||||
<app-table />
|
||||
`,
|
||||
})
|
||||
export class AppComponent {}
|
||||
|
||||
@@ -94,7 +94,7 @@ export class TableComponent
|
||||
private api = inject(FakeBackendService);
|
||||
|
||||
readonly issues$ = this.select((s) => s.users).pipe(
|
||||
tap((t) => console.log('UserNEw ', t))
|
||||
tap((t) => console.log('UserNEw ', t)),
|
||||
);
|
||||
readonly loading$ = this.select((s) => s.loading);
|
||||
readonly error$ = this.select((s) => s.error);
|
||||
@@ -124,11 +124,11 @@ export class TableComponent
|
||||
tap((t) => console.log('user', t)),
|
||||
tapResponse(
|
||||
(data) => this.patchState({ users: data, loading: false }),
|
||||
(err) => this.patchState({ error: err as string, loading: false })
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(err) => this.patchState({ error: err as string, loading: false }),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
@@ -137,7 +137,7 @@ export class TableComponent
|
||||
this.loadData(
|
||||
this.select({
|
||||
sortActive: this.sort.sortChange.pipe(
|
||||
map((s) => s.active as keyof User)
|
||||
map((s) => s.active as keyof User),
|
||||
),
|
||||
sortDir: this.sort.sortChange.pipe(map((s) => s.direction)),
|
||||
pageIndex: this.paginator.page.pipe(map((p) => p.pageIndex)),
|
||||
@@ -146,8 +146,8 @@ export class TableComponent
|
||||
sortActive: this.sort.active as keyof User,
|
||||
sortDir: this.sort.direction,
|
||||
pageIndex: 1,
|
||||
})
|
||||
)
|
||||
}),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
Reference in New Issue
Block a user