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

@@ -16,7 +16,7 @@ import { PersonListComponent } from './person-list.component';
providers: [PersonService],
selector: 'app-root',
template: `
<h1 class="font-semibold text-center text-3xl" title="Title">
<h1 class="text-center text-3xl font-semibold" title="Title">
List of Persons
</h1>
@@ -30,7 +30,7 @@ import { PersonListComponent } from './person-list.component';
</mat-form-field>
<app-person-list
class="max-w-2xl w-3/4"
class="w-3/4 max-w-2xl"
[persons]="persons()"
(delete)="personService.deletePerson($event)"
(update)="personService.updatePerson($event)" />

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

@@ -10,16 +10,16 @@ import { Person } from './person.model';
template: `
<div
*ngFor="let person of persons"
class="flex justify-between items-center border-b">
class="flex items-center justify-between border-b">
<h3>{{ person.name }}</h3>
<div class="flex gap-10 py-1">
<button
class="border rounded-md p-2 bg-blue-500 text-white"
class="rounded-md border bg-blue-500 p-2 text-white"
(click)="update.emit(person.email)">
UPDATE
</button>
<button
class="border rounded-md p-2 bg-red-500 text-white"
class="rounded-md border bg-red-500 p-2 text-white"
(click)="delete.emit(person.email)">
DELETE
</button>

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),
);