Update to Angular 19

This commit is contained in:
Geomitron
2025-03-09 16:55:53 -05:00
parent 277489a5c5
commit c876276952
17 changed files with 2084 additions and 1481 deletions

View File

@@ -6,6 +6,7 @@ import { SettingsService } from './core/services/settings.service'
selector: 'app-root',
templateUrl: './app.component.html',
styles: [],
standalone: false,
})
export class AppComponent {

View File

@@ -3,6 +3,7 @@ import { AfterViewInit, Component, ElementRef, HostBinding, ViewChild } from '@a
@Component({
selector: 'app-browse',
templateUrl: './browse.component.html',
standalone: false,
})
export class BrowseComponent implements AfterViewInit {
@HostBinding('class.contents') contents = true

View File

@@ -8,6 +8,7 @@ import { instrumentToDiff } from 'src-shared/UtilFunctions'
@Component({
selector: 'app-chart-sidebar-instrument',
templateUrl: './chart-sidebar-instrument.component.html',
standalone: false,
})
export class ChartSidebarInstrumentComponent {

View File

@@ -10,6 +10,7 @@ import { driveLink } from 'src-shared/UtilFunctions'
@Component({
selector: 'app-chart-sidebar-menu',
templateUrl: './chart-sidebar-menu.component.html',
standalone: false,
})
export class ChartSidebarMenutComponent implements OnInit {

View File

@@ -14,6 +14,7 @@ import { ChartPreview } from './render.js'
@Component({
selector: 'app-chart-sidebar-preview',
templateUrl: './chart-sidebar-preview.component.html',
standalone: false,
})
export class ChartSidebarPreviewComponent implements OnInit, OnDestroy {
@HostBinding('class.h-full') height = true

View File

@@ -13,6 +13,7 @@ import { difficulties, difficultyDisplay, driveLink, hasIssues, instruments, msT
@Component({
selector: 'app-chart-sidebar',
templateUrl: './chart-sidebar.component.html',
standalone: false,
})
export class ChartSidebarComponent implements OnInit {
@HostBinding('class.contents') contents = true

View File

@@ -10,6 +10,7 @@ import { SelectionService } from '../../../../core/services/selection.service.js
@Component({
selector: 'tr[app-result-table-row]',
templateUrl: './result-table-row.component.html',
standalone: false,
})
export class ResultTableRowComponent implements OnInit {
@Input() song: ChartData[]

View File

@@ -11,6 +11,7 @@ import { ResultTableRowComponent } from './result-table-row/result-table-row.com
@Component({
selector: 'app-result-table',
templateUrl: './result-table.component.html',
standalone: false,
})
export class ResultTableComponent implements OnInit {
@HostBinding('class.contents') contents = true

View File

@@ -10,6 +10,7 @@ import { difficulties, difficultyDisplay, drumTypeDisplay, DrumTypeName, drumTyp
@Component({
selector: 'app-search-bar',
templateUrl: './search-bar.component.html',
standalone: false,
})
export class SearchBarComponent implements OnInit, AfterViewInit {

View File

@@ -9,6 +9,7 @@ import { DownloadService } from '../../../../core/services/download.service'
@Component({
selector: 'app-downloads-modal',
templateUrl: './downloads-modal.component.html',
standalone: false,
})
export class DownloadsModalComponent {
@HostBinding('class.contents') contents = true

View File

@@ -10,6 +10,7 @@ import { SelectionService } from '../../../core/services/selection.service'
@Component({
selector: 'app-status-bar',
templateUrl: './status-bar.component.html',
standalone: false,
})
export class StatusBarComponent {

View File

@@ -8,6 +8,7 @@ import { themes } from 'src-shared/Settings'
@Component({
selector: 'app-settings',
templateUrl: './settings.component.html',
standalone: false,
})
export class SettingsComponent implements OnInit {
@ViewChild('themeDropdown', { static: true }) themeDropdown: ElementRef

View File

@@ -3,6 +3,7 @@ import { ChangeDetectorRef, Component, OnInit } from '@angular/core'
@Component({
selector: 'app-toolbar',
templateUrl: './toolbar.component.html',
standalone: false,
})
export class ToolbarComponent implements OnInit {

View File

@@ -5,6 +5,7 @@ import { SettingsService } from 'src-angular/app/core/services/settings.service'
@Component({
selector: 'app-tools',
templateUrl: './tools.component.html',
standalone: false,
})
export class ToolsComponent {
@ViewChild('themeDropdown', { static: true }) themeDropdown: ElementRef

View File

@@ -4,6 +4,7 @@ import { removeStyleTags } from 'src-shared/UtilFunctions'
@Pipe({
name: 'removeStyleTags',
standalone: false,
})
export class RemoveStyleTagsPipe implements PipeTransform {
transform(value: string | null): string {