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

@@ -11,14 +11,14 @@ import { RouterModule } from '@angular/router';
path: '',
loadChildren: () =>
import('./dashboard/dashboard.component').then(
(m) => m.ContactDashboardModule
(m) => m.ContactDashboardModule,
),
},
{
path: 'create-contact',
loadChildren: () =>
import('./create-contact/create-contact.component').then(
(m) => m.CreateContactModule
(m) => m.CreateContactModule,
),
},
]),

View File

@@ -3,13 +3,15 @@ import { RouterModule } from '@angular/router';
@Component({
selector: 'lib-create-contact',
template: `Create Contact Form
template: `
Create Contact Form
<button
routerLink=".."
class="border bg-gray-700 rounded-lg p-2 text-white ml-5">
class="ml-5 rounded-lg border bg-gray-700 p-2 text-white">
Back
</button> `,
</button>
`,
})
export class CreateContactComponent {}

View File

@@ -3,13 +3,15 @@ import { RouterModule } from '@angular/router';
@Component({
selector: 'lib-contact-dashboard',
template: `Contact Dashboard
template: `
Contact Dashboard
<button
routerLink="create-contact"
class="border bg-gray-700 rounded-lg p-2 text-white ml-10">
class="ml-10 rounded-lg border bg-gray-700 p-2 text-white">
Create contact
</button> `,
</button>
`,
})
export class ContactDashboardComponent {}

View File

@@ -2,6 +2,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'lib-user-home',
template: `User Home component`,
template: `
User Home component
`,
})
export class UserHomeComponent {}

View File

@@ -5,15 +5,15 @@ import { Component, Inject } from '@angular/core';
selector: 'lib-user-shell',
template: `
-- User Panel --
<div class="flex gap-2 items-center">
<div class="flex items-center gap-2">
<button
routerLink="home"
class="border px-4 py-2 border-blue-400 rounded-md">
class="rounded-md border border-blue-400 px-4 py-2">
Home
</button>
<button
routerLink="contact"
class="border px-4 py-2 border-blue-400 rounded-md">
class="rounded-md border border-blue-400 px-4 py-2">
Contact
</button>
More buttons ...

View File

@@ -11,14 +11,14 @@ export const userShellRoutes: Route[] = [
path: 'home',
loadChildren: () =>
import('@angular-challenges/module-to-standalone/user/home').then(
(m) => m.UserHomeModule
(m) => m.UserHomeModule,
),
},
{
path: 'contact',
loadChildren: () =>
import('@angular-challenges/module-to-standalone/user/contact').then(
(m) => m.ContactFeatureModule
(m) => m.ContactFeatureModule,
),
},
],