(chore) upgraded angular with migrations and cleaned up node packages
This commit is contained in:
1 parent
b57044dbdc
commit
3ebc771cb1
27 files changed
+1814
-1498
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import {AfterViewInit, Component, ElementRef, HostListener, OnInit, ViewChild, ViewEncapsulation} from '@angular/core';
|
||||
import {AfterViewInit, Component, ElementRef, HostListener, OnInit, ViewChild, ViewEncapsulation, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {ViewportService} from '../shared/services/viewport.service';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {TranslatePipe} from '@ngx-translate/core';
|
||||
@@ -18,6 +18,7 @@ import {TerminalEmulatorComponent} from '../shared/terminal-emulator/terminal-em
|
||||
FormsModule,
|
||||
TerminalEmulatorComponent
|
||||
],
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrls: ['./about.component.css']
|
||||
})
|
||||
export class AboutComponent implements OnInit, AfterViewInit {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, OnDestroy, OnInit} from '@angular/core';
|
||||
import {Component, OnDestroy, OnInit, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {Router, RouterLink} from '@angular/router';
|
||||
import {ArticleService} from '../shared/services/article.service';
|
||||
import {UserService} from '../shared/services/user.service';
|
||||
@@ -29,6 +29,7 @@ interface Article {
|
||||
selector: 'app-admin',
|
||||
templateUrl: './admin.component.html',
|
||||
styleUrls: ['./admin.component.css'],
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
imports: [
|
||||
FormsModule,
|
||||
NgStyle,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {Component, ChangeDetectionStrategy} from '@angular/core';
|
||||
import { RouterOutlet} from '@angular/router';
|
||||
import {TranslateService} from '@ngx-translate/core';
|
||||
|
||||
@@ -6,6 +6,7 @@ import {TranslateService} from '@ngx-translate/core';
|
||||
selector: 'app-root',
|
||||
imports: [RouterOutlet],
|
||||
templateUrl: './app.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './app.component.css',
|
||||
})
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {ApplicationConfig, importProvidersFrom, provideZoneChangeDetection} from '@angular/core';
|
||||
import {provideRouter, withInMemoryScrolling, withViewTransitions} from '@angular/router';
|
||||
import {routes} from './app.routes';
|
||||
import {provideClientHydration, withEventReplay} from '@angular/platform-browser';
|
||||
import {HttpClient, provideHttpClient} from '@angular/common/http';
|
||||
import {provideClientHydration, withEventReplay, withNoIncrementalHydration} from '@angular/platform-browser';
|
||||
import {HttpClient, provideHttpClient, withXhr} from '@angular/common/http';
|
||||
import {AuthService} from './shared/services/auth.service';
|
||||
import {AuthInterceptor} from './auth.interceptor';
|
||||
import {TranslateHttpLoader} from '@ngx-translate/http-loader';
|
||||
@@ -23,8 +23,8 @@ export const appConfig: ApplicationConfig = {
|
||||
anchorScrolling: 'enabled'
|
||||
})
|
||||
),
|
||||
provideClientHydration(withEventReplay()),
|
||||
provideHttpClient(),
|
||||
provideClientHydration(withEventReplay(), withNoIncrementalHydration()),
|
||||
provideHttpClient(withXhr()),
|
||||
provideMarkdown({
|
||||
markedOptions: {
|
||||
provide: MARKED_OPTIONS,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, OnInit, ViewEncapsulation} from '@angular/core';
|
||||
import {Component, OnInit, ViewEncapsulation, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {DatePipe, NgClass, NgStyle} from '@angular/common';
|
||||
import {ArticleService} from '../../shared/services/article.service';
|
||||
import {ActivatedRoute} from '@angular/router';
|
||||
@@ -33,6 +33,7 @@ interface Article {
|
||||
NgClass
|
||||
],
|
||||
templateUrl: './article-page.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './article-page.component.css'
|
||||
})
|
||||
export class ArticlePageComponent implements OnInit {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {Component, OnInit, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {ViewportService} from '../shared/services/viewport.service'
|
||||
import {DatePipe, AsyncPipe, SlicePipe, NgStyle, NgClass} from '@angular/common';
|
||||
import { ArticleService } from '../shared/services/article.service';
|
||||
@@ -20,6 +20,7 @@ import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
NgClass
|
||||
],
|
||||
templateUrl: './blog.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './blog.component.css'
|
||||
})
|
||||
export class BlogComponent implements OnInit {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {Component, OnInit, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {AuthService} from '../shared/services/auth.service';
|
||||
import {Router} from '@angular/router';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
@@ -10,6 +10,7 @@ import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
selector: 'app-login',
|
||||
templateUrl: './login.component.html',
|
||||
styleUrls: ['./login.component.css'],
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
imports: [
|
||||
FormsModule,
|
||||
ParallaxComponent
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {Component, OnInit, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
|
||||
@@ -8,6 +8,7 @@ import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
ParallaxComponent
|
||||
],
|
||||
templateUrl: './not-found.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './not-found.component.css',
|
||||
})
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
animate.leave="modal-leave"
|
||||
(click)="$event.stopPropagation()"
|
||||
>
|
||||
<img [src]="selectedItem?.src" [alt]="selectedItem?.alt">
|
||||
<img [src]="$safeNavigationMigration(selectedItem?.src)" [alt]="$safeNavigationMigration(selectedItem?.alt)">
|
||||
<h2>{{ selectedItem?.label }}</h2>
|
||||
<button (click)="closeModal()">Close</button>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, OnInit, ViewEncapsulation} from '@angular/core';
|
||||
import {Component, OnInit, ViewEncapsulation, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {ViewportService} from '../shared/services/viewport.service';
|
||||
import { CommonModule, NgStyle } from '@angular/common';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
@@ -17,6 +17,7 @@ import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
ParallaxComponent
|
||||
],
|
||||
templateUrl: './portfolio.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './portfolio.component.css'
|
||||
})
|
||||
export class PortfolioComponent implements OnInit {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {AfterViewInit, Component, OnInit} from '@angular/core';
|
||||
import {AfterViewInit, Component, OnInit, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {ViewportService} from '../shared/services/viewport.service';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {TranslatePipe} from '@ngx-translate/core';
|
||||
@@ -11,6 +11,7 @@ import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
ParallaxComponent
|
||||
],
|
||||
templateUrl: './privacy.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './privacy.component.css'
|
||||
})
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, AfterViewInit, signal, OnInit} from '@angular/core';
|
||||
import {Component, AfterViewInit, signal, OnInit, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {ViewportService} from '../services/viewport.service';
|
||||
import {NgClass} from '@angular/common';
|
||||
|
||||
@@ -16,6 +16,7 @@ declare global {
|
||||
NgClass
|
||||
],
|
||||
templateUrl: './audio-player.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './audio-player.component.css'
|
||||
})
|
||||
export class AudioPlayerComponent implements AfterViewInit, OnInit {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {Component, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {TranslatePipe} from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
@@ -7,6 +7,7 @@ import {TranslatePipe} from '@ngx-translate/core';
|
||||
TranslatePipe
|
||||
],
|
||||
templateUrl: './footer.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './footer.component.css'
|
||||
})
|
||||
export class FooterComponent {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, forwardRef, OnInit} from '@angular/core';
|
||||
import {Component, forwardRef, OnInit, ChangeDetectionStrategy} from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
||||
import {MarkdownModule} from 'ngx-markdown';
|
||||
@@ -9,6 +9,7 @@ import { ViewportService} from '../services/viewport.service';
|
||||
imports: [CommonModule, FormsModule, MarkdownModule],
|
||||
templateUrl: './markdown-editor.component.html',
|
||||
styleUrl: './markdown-editor.component.css',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
providers: [
|
||||
{
|
||||
provide: NG_VALUE_ACCESSOR,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {Component, OnInit, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {ViewportService} from '../services/viewport.service';
|
||||
|
||||
import {NavigationEnd, Router, RouterLink} from '@angular/router';
|
||||
@@ -11,6 +11,7 @@ import {TranslatePipe, TranslateService} from '@ngx-translate/core';
|
||||
TranslatePipe
|
||||
],
|
||||
templateUrl: './mobile-navbar.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './mobile-navbar.component.css'
|
||||
})
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
||||
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-modal',
|
||||
templateUrl: './modal.component.html',
|
||||
styleUrls: ['./modal.component.css'],
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
imports: []
|
||||
})
|
||||
export class ModalComponent {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {Component, OnInit, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {NavigationEnd, Router, RouterLink} from '@angular/router';
|
||||
import {ViewportService} from '../services/viewport.service';
|
||||
import {filter} from 'rxjs/operators';
|
||||
@@ -8,6 +8,7 @@ import {TranslatePipe, TranslateService} from '@ngx-translate/core';
|
||||
selector: 'app-navbar',
|
||||
templateUrl: './navbar.component.html',
|
||||
styleUrls: ['./navbar.component.css'],
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
imports: [
|
||||
RouterLink,
|
||||
TranslatePipe
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {AfterViewInit, Component, ElementRef, Inject, OnDestroy, OnInit, PLATFORM_ID, ViewChild, Input} from '@angular/core';
|
||||
import {AfterViewInit, Component, ElementRef, Inject, OnDestroy, OnInit, PLATFORM_ID, ViewChild, Input, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {ViewportService} from '../services/viewport.service';
|
||||
import {isPlatformBrowser} from '@angular/common';
|
||||
import Parallax from 'parallax-js';
|
||||
@@ -7,6 +7,7 @@ import Parallax from 'parallax-js';
|
||||
selector: 'app-parallax',
|
||||
imports: [],
|
||||
templateUrl: './parallax.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './parallax.component.css',
|
||||
})
|
||||
export class ParallaxComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
import { NavbarComponent } from '../navbar/navbar.component';
|
||||
import { MobileNavbarComponent } from '../mobile-navbar/mobile-navbar.component';
|
||||
@@ -9,6 +9,7 @@ import { ViewportService } from '../services/viewport.service';
|
||||
selector: 'app-public-layout',
|
||||
imports: [RouterOutlet, NavbarComponent, MobileNavbarComponent, FooterComponent],
|
||||
templateUrl: './public-layout.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './public-layout.component.css',
|
||||
})
|
||||
export class PublicLayoutComponent implements OnInit {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, OnInit, Input, Output, EventEmitter} from '@angular/core';
|
||||
import {Component, OnInit, Input, Output, EventEmitter, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {ShortenerService} from '../services/shortener.service';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import { SlicePipe } from '@angular/common';
|
||||
@@ -11,6 +11,7 @@ import {AuthService} from '../services/auth.service';
|
||||
SlicePipe
|
||||
],
|
||||
templateUrl: './shortener.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './shortener.component.css'
|
||||
})
|
||||
export class ShortenerComponent implements OnInit {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, ElementRef, Input, OnChanges, OnInit, SimpleChanges, TemplateRef, ViewChild, ViewEncapsulation} from '@angular/core';
|
||||
import {Component, ElementRef, Input, OnChanges, OnInit, SimpleChanges, TemplateRef, ViewChild, ViewEncapsulation, ChangeDetectionStrategy} from '@angular/core';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { Router } from '@angular/router';
|
||||
import {TranslatePipe} from '@ngx-translate/core';
|
||||
@@ -23,6 +23,7 @@ interface TerminalEntry {
|
||||
standalone: true,
|
||||
imports: [FormsModule, TranslatePipe, NgTemplateOutlet],
|
||||
templateUrl: './terminal-emulator.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './terminal-emulator.component.css'
|
||||
})
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {Component, OnInit, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {NgStyle} from '@angular/common';
|
||||
import {ViewportService} from '../shared/services/viewport.service';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
@@ -13,6 +13,7 @@ import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
ParallaxComponent
|
||||
],
|
||||
templateUrl: './socials.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.Eager,
|
||||
styleUrl: './socials.component.css'
|
||||
})
|
||||
export class SocialsComponent implements OnInit {
|
||||
|
||||
Reference in new issue
Block a user