Skip to content

Commit a224af5

Browse files
chore: upgrade Angular to v19
ng update @angular/core@19 @angular/cli@19, plus: - bump @fortawesome/angular-fontawesome to 1.0.0 (only major that supports Angular 19 as peer dependency). - automatic core migration dropped the now-default `standalone: true` from all standalone component decorators. - fixed a build break: the v19 esbuild-based builder now resolves url() references inside inline component <style> blocks at build time, and the relative path to output-onlinepngtools.png in landing-page-inicio.component.html failed to resolve on Windows. Switched it to the root-relative /assets/... path already used elsewhere in the app. Build and test suite (7/7) pass. New compiler warning (pre-existing, unrelated to this bump): AppComponent imports LandingPageInicioComponent/HeaderLandingPageComponent/NotFoundComponent without using them in its own template (they're rendered via router-outlet) - left as-is, out of scope for this migration.
1 parent 2842420 commit a224af5

10 files changed

Lines changed: 3778 additions & 2014 deletions

File tree

package-lock.json

Lines changed: 3723 additions & 1952 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@
1010
},
1111
"private": true,
1212
"dependencies": {
13-
"@angular/animations": "^18.2.14",
14-
"@angular/common": "^18.2.14",
15-
"@angular/compiler": "^18.2.14",
16-
"@angular/core": "^18.2.14",
17-
"@angular/forms": "^18.2.14",
18-
"@angular/platform-browser": "^18.2.14",
19-
"@angular/platform-browser-dynamic": "^18.2.14",
20-
"@angular/router": "^18.2.14",
21-
"@fortawesome/angular-fontawesome": "^0.14.1",
13+
"@angular/animations": "^19.2.25",
14+
"@angular/common": "^19.2.25",
15+
"@angular/compiler": "^19.2.25",
16+
"@angular/core": "^19.2.25",
17+
"@angular/forms": "^19.2.25",
18+
"@angular/platform-browser": "^19.2.25",
19+
"@angular/platform-browser-dynamic": "^19.2.25",
20+
"@angular/router": "^19.2.25",
21+
"@fortawesome/angular-fontawesome": "^1.0.0",
2222
"angular-font-awesome": "^3.1.2",
2323
"express": "^4.19.2",
2424
"rxjs": "~7.8.0",
2525
"tslib": "^2.3.0",
26-
"zone.js": "~0.14.10"
26+
"zone.js": "~0.15.1"
2727
},
2828
"devDependencies": {
29-
"@angular-devkit/build-angular": "^18.2.21",
30-
"@angular/cli": "^18.2.21",
31-
"@angular/compiler-cli": "^18.2.14",
29+
"@angular-devkit/build-angular": "^19.2.27",
30+
"@angular/cli": "^19.2.27",
31+
"@angular/compiler-cli": "^19.2.25",
3232
"@types/jasmine": "~5.1.0",
3333
"autoprefixer": "^10.4.19",
3434
"jasmine-core": "~5.1.0",
@@ -39,6 +39,6 @@
3939
"karma-jasmine-html-reporter": "~2.1.0",
4040
"postcss": "^8.4.38",
4141
"tailwindcss": "^3.4.1",
42-
"typescript": "~5.4.2"
42+
"typescript": "~5.8.3"
4343
}
4444
}

src/app/app.component.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ import { HeaderLandingPageComponent } from './page/header-landing-page/header-la
55
import { NotFoundComponent } from './not-found/not-found.component';
66

77
@Component({
8-
selector: 'app-root',
9-
standalone: true,
10-
imports: [
11-
RouterOutlet,
12-
LandingPageInicioComponent,
13-
HeaderLandingPageComponent,
14-
NotFoundComponent,
15-
],
16-
templateUrl: './app.component.html',
17-
styleUrl: './app.component.css',
8+
selector: 'app-root',
9+
imports: [
10+
RouterOutlet,
11+
LandingPageInicioComponent,
12+
HeaderLandingPageComponent,
13+
NotFoundComponent,
14+
],
15+
templateUrl: './app.component.html',
16+
styleUrl: './app.component.css'
1817
})
1918
export class AppComponent implements OnInit {
2019
sunIcon: HTMLElement | null = null;

src/app/not-found/not-found.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { HeaderLandingPageComponent } from '../page/header-landing-page/header-l
33
import { FooterComponent } from '../page/footer/footer.component';
44

55
@Component({
6-
selector: 'app-not-found',
7-
standalone: true,
8-
imports: [HeaderLandingPageComponent,FooterComponent],
9-
templateUrl: './not-found.component.html',
10-
styleUrl: './not-found.component.css'
6+
selector: 'app-not-found',
7+
imports: [HeaderLandingPageComponent, FooterComponent],
8+
templateUrl: './not-found.component.html',
9+
styleUrl: './not-found.component.css'
1110
})
1211
export class NotFoundComponent {
1312

src/app/page/button-toggle-dark-light/button-toggle-dark-light.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { Component, OnInit, Renderer2 } from '@angular/core';
22

33
@Component({
4-
selector: 'app-button-toggle-dark-light',
5-
standalone: true,
6-
imports: [],
7-
templateUrl: './button-toggle-dark-light.component.html',
8-
styleUrl: './button-toggle-dark-light.component.css'
4+
selector: 'app-button-toggle-dark-light',
5+
imports: [],
6+
templateUrl: './button-toggle-dark-light.component.html',
7+
styleUrl: './button-toggle-dark-light.component.css'
98
})
109
export class ButtonToggleDarkLightComponent implements OnInit{
1110
sunIcon: HTMLElement | null = null;

src/app/page/footer/footer.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'app-footer',
5-
standalone: true,
6-
imports: [],
7-
templateUrl: './footer.component.html',
8-
styleUrl: './footer.component.css'
4+
selector: 'app-footer',
5+
imports: [],
6+
templateUrl: './footer.component.html',
7+
styleUrl: './footer.component.css'
98
})
109
export class FooterComponent {
1110

src/app/page/header-landing-page/header-landing-page.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { ButtonToggleDarkLightComponent } from '../button-toggle-dark-light/butt
33
import { NgClass } from '@angular/common';
44

55
@Component({
6-
selector: 'app-header-landing-page',
7-
standalone: true,
8-
imports: [ButtonToggleDarkLightComponent,NgClass],
9-
templateUrl: './header-landing-page.component.html',
10-
styleUrl: './header-landing-page.component.css',
6+
selector: 'app-header-landing-page',
7+
imports: [ButtonToggleDarkLightComponent, NgClass],
8+
templateUrl: './header-landing-page.component.html',
9+
styleUrl: './header-landing-page.component.css'
1110
})
1211
export class HeaderLandingPageComponent {
1312
activeLink: any= 'inicio';

src/app/page/landing-page-inicio/landing-page-inicio.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- Start block -->
33
<style>
44
.img-t {
5-
background-image: url('../../../assets/output-onlinepngtools.png');
5+
background-image: url('/assets/output-onlinepngtools.png');
66
background-size: cover;
77
/* filter: brightness(50%); */
88
}

src/app/page/landing-page-inicio/landing-page-inicio.component.ts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,17 @@ import { NgClass } from '@angular/common';
1313
// import { faCoffee } from '@fortawesome/free-solid-svg-icons';
1414

1515
@Component({
16-
selector: 'app-landing-page-inicio',
17-
standalone: true,
18-
imports: [
19-
HeaderLandingPageComponent,
20-
FooterComponent,
21-
SliderEventComponent,
22-
FontAwesomeModule,
23-
FormsModule,
24-
NgClass,
25-
],
26-
templateUrl: './landing-page-inicio.component.html',
27-
styleUrl: './landing-page-inicio.component.css',
16+
selector: 'app-landing-page-inicio',
17+
imports: [
18+
HeaderLandingPageComponent,
19+
FooterComponent,
20+
SliderEventComponent,
21+
FontAwesomeModule,
22+
FormsModule,
23+
NgClass,
24+
],
25+
templateUrl: './landing-page-inicio.component.html',
26+
styleUrl: './landing-page-inicio.component.css'
2827
})
2928
export class LandingPageInicioComponent {
3029
isOpen1 = false;

src/app/page/slider-event/slider-event.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ import { CommonModule } from '@angular/common';
1212
// import { BrowserModule } from '@angular/platform-browser';
1313

1414
@Component({
15-
selector: 'app-slider-event',
16-
standalone: true,
17-
imports: [FormsModule, CommonModule],
18-
templateUrl: './slider-event.component.html',
19-
styleUrl: './slider-event.component.css',
15+
selector: 'app-slider-event',
16+
imports: [FormsModule, CommonModule],
17+
templateUrl: './slider-event.component.html',
18+
styleUrl: './slider-event.component.css'
2019
})
2120
export class SliderEventComponent {
2221
@Input() cards: any[] = [

0 commit comments

Comments
 (0)