fix: run prettier on all file to avoid prettier issue inside PR

This commit is contained in:
thomas
2024-01-07 21:41:36 +01:00
parent 3bc793f6b3
commit c8b7c5d4a6
195 changed files with 575 additions and 452 deletions

View File

@@ -21,13 +21,13 @@ import { PersonListComponent } from './person-list.component';
template: `
<button
(click)="loadList.set(true)"
class="border border-black p-2 rounded-md">
class="rounded-md border border-black p-2">
Load List
</button>
<app-person-list
*ngIf="loadList()"
class="max-w-2xl w-3/4"
class="w-3/4 max-w-2xl"
[persons]="persons()" />
`,
host: {

View File

@@ -16,7 +16,7 @@ export class PersonService {
this.persons.set(
this.fakeBackend
.returnNewList(this.persons())
.filter((p) => p.email !== email)
.filter((p) => p.email !== email),
);
}
@@ -24,7 +24,7 @@ export class PersonService {
this.persons.set(
this.fakeBackend
.returnNewList(this.persons())
.map((p) => (p.email === email ? { email, name: randFirstName() } : p))
.map((p) => (p.email === email ? { email, name: randFirstName() } : p)),
);
}

View File

@@ -9,11 +9,11 @@ import { Person } from './person.model';
standalone: true,
imports: [CommonModule, NgForTrackByModule],
template: `
<div class="h-[300px] relative overflow-hidden">
<div class="relative h-[300px] overflow-hidden">
<div class="absolute inset-0 overflow-scroll">
<div
*ngFor="let person of persons; trackByProp: 'email'"
class="flex justify-between items-center border-b h-9">
class="flex h-9 items-center justify-between border-b">
<h3>{{ person.name }}</h3>
<p>{{ person.email }}</p>
</div>

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />

View File

@@ -1,7 +1,7 @@
import { bootstrapApplication } from '@angular/platform-browser';
import { appConfig } from './app/app.config';
import { AppComponent } from './app/app.component';
import { appConfig } from './app/app.config';
bootstrapApplication(AppComponent, appConfig).catch((err) =>
console.error(err)
console.error(err),
);