feat(nx): upgrade nx 20 and angular 19

This commit is contained in:
thomas
2024-12-06 21:34:43 +01:00
parent bdc6d9ede4
commit f3be3eedff
143 changed files with 7652 additions and 7864 deletions

View File

@@ -2,7 +2,6 @@ import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
@Component({
standalone: true,
imports: [RouterOutlet],
selector: 'app-root',
template: `

View File

@@ -5,7 +5,6 @@ import { Photo } from '../photo.model';
@Component({
selector: 'app-photos',
standalone: true,
imports: [DatePipe, RouterLink],
template: `
<img src="{{ photo.url_m }}" alt="{{ photo.title }}" class="image" />

View File

@@ -13,7 +13,6 @@ import { PhotoStore } from './photos.store';
@Component({
selector: 'app-photos',
standalone: true,
imports: [
ReactiveFormsModule,
MatFormFieldModule,

View File

@@ -1,10 +1,10 @@
import { Injectable, inject } from '@angular/core';
import { inject, Injectable } from '@angular/core';
import {
ComponentStore,
OnStateInit,
OnStoreInit,
tapResponse,
} from '@ngrx/component-store';
import { tapResponse } from '@ngrx/operators';
import { pipe } from 'rxjs';
import { filter, mergeMap, tap } from 'rxjs/operators';
import { Photo } from '../photo.model';

View File

@@ -1,10 +1,8 @@
import { JsonPipe } from '@angular/common';
import { Component } from '@angular/core';
import { UserComponent } from './user.component';
@Component({
standalone: true,
imports: [UserComponent, JsonPipe],
imports: [UserComponent],
selector: 'app-root',
template: `
<div class="flex flex-col gap-3">

View File

@@ -16,7 +16,6 @@ const ageToCategory = (age: number): Category => {
@Component({
selector: 'app-user',
standalone: true,
imports: [TitleCasePipe],
template: `
{{ fullName | titlecase }} plays tennis in the {{ category }} category!!

View File

@@ -7,7 +7,6 @@ import {
import { FormsModule } from '@angular/forms';
@Component({
standalone: true,
imports: [FormsModule],
selector: 'app-root',
template: `

View File

@@ -9,7 +9,6 @@ import { FormsModule } from '@angular/forms';
import { UserService } from './user.service';
@Component({
standalone: true,
imports: [FormsModule],
selector: 'app-actions',
template: `

View File

@@ -4,7 +4,6 @@ import { ActionsComponent } from './action.component';
import { UserService } from './user.service';
@Component({
standalone: true,
imports: [FormsModule, ActionsComponent],
selector: 'app-root',
template: `

View File

@@ -4,7 +4,6 @@ import { UserStore } from './user.service';
@Component({
selector: 'address-user',
standalone: true,
template: `
<div cd-flash class="m-4 block border border-gray-500 p-4">
Address:

View File

@@ -6,7 +6,6 @@ import { NoteComponent } from './note.component';
import { UserFormComponent } from './user-form.component';
@Component({
standalone: true,
selector: 'app-root',
template: `
<name />

View File

@@ -4,7 +4,6 @@ import { UserStore } from './user.service';
@Component({
selector: 'job',
standalone: true,
template: `
<div cd-flash class="m-4 block border border-gray-500 p-4">
Job:

View File

@@ -4,7 +4,6 @@ import { UserStore } from './user.service';
@Component({
selector: 'name',
standalone: true,
template: `
<div cd-flash class="m-4 block border border-gray-500 p-4">
Name: {{ userService.user().name }}

View File

@@ -4,7 +4,6 @@ import { UserStore } from './user.service';
@Component({
selector: 'note',
standalone: true,
template: `
<div cd-flash class="m-4 block border border-gray-500 p-4">
Note: {{ userService.user().note }}

View File

@@ -4,7 +4,6 @@ import { UserStore } from './user.service';
@Component({
selector: 'user-form',
standalone: true,
imports: [ReactiveFormsModule],
template: `
<form [formGroup]="form" (ngSubmit)="submit()" class="flex flex-col gap-4">

View File

@@ -4,7 +4,6 @@ import { ProductRowComponent } from './product-row.component';
import { products } from './product.model';
@Component({
standalone: true,
imports: [TableComponent, ProductRowComponent],
selector: 'app-root',
template: `

View File

@@ -10,7 +10,6 @@ import { CurrencyService } from './currency.service';
import { Product } from './product.model';
@Component({
standalone: true,
selector: 'tr[product-row]',
template: `
<td>{{ productInfo.name }}</td>

View File

@@ -2,7 +2,6 @@ import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
@Component({
standalone: true,
imports: [RouterOutlet],
selector: 'app-root',
template: `

View File

@@ -9,7 +9,6 @@ import { products } from './products';
@Component({
selector: 'app-dashboard',
standalone: true,
imports: [RouterLink],
template: `
<h2 class="mb-1 w-full bg-gray-400 p-2 text-white">Checkout</h2>

View File

@@ -4,7 +4,6 @@ import { products } from './products';
@Component({
selector: 'app-dashboard',
standalone: true,
imports: [RouterLink],
template: `
<h2 class="mb-5 w-full bg-gray-400 p-2 text-white">List of Products</h2>

View File

@@ -11,7 +11,6 @@ import { products } from './products';
@Component({
selector: 'app-order',
standalone: true,
imports: [RouterLink, ReactiveFormsModule],
template: `
<h2 class="mb-5 w-full bg-gray-400 p-2 text-white">Order</h2>

View File

@@ -3,7 +3,6 @@ import { RouterLink } from '@angular/router';
@Component({
selector: 'app-dashboard',
standalone: true,
imports: [RouterLink],
template: `
<h2 class="mb-1 w-full bg-green-700 p-2 text-white">Payment Success</h2>