add standalone: true to all components

This commit is contained in:
Cucumberrbob 2025-06-07 18:56:40 +01:00
parent a7cab6d0dc
commit a24928f9eb
No known key found for this signature in database
GPG key ID: 2B935C47401C3614
9 changed files with 13 additions and 4 deletions

View file

@ -12,6 +12,7 @@ import { NgClass } from '@angular/common';
templateUrl: './add-new-torrent.component.html',
styleUrls: ['./add-new-torrent.component.scss'],
imports: [FormsModule, NgClass],
standalone: true,
})
export class AddNewTorrentComponent implements OnInit {
public fileName: string;

View file

@ -9,6 +9,7 @@ import { NgClass } from '@angular/common';
templateUrl: './login.component.html',
styleUrls: ['./login.component.scss'],
imports: [FormsModule, NgClass],
standalone: true,
})
export class LoginComponent {
public userName: string;

View file

@ -3,10 +3,11 @@ import { NavbarComponent } from '../navbar/navbar.component';
import { RouterOutlet } from '@angular/router';
@Component({
selector: 'app-main-layout',
templateUrl: './main-layout.component.html',
styleUrls: ['./main-layout.component.scss'],
imports: [NavbarComponent, RouterOutlet],
selector: 'app-main-layout',
templateUrl: './main-layout.component.html',
styleUrls: ['./main-layout.component.scss'],
imports: [NavbarComponent, RouterOutlet],
standalone: true,
})
export class MainLayoutComponent {
constructor() {}

View file

@ -10,6 +10,7 @@ import { NgClass, DatePipe } from '@angular/common';
templateUrl: './navbar.component.html',
styleUrls: ['./navbar.component.scss'],
imports: [RouterLink, NgClass, DatePipe],
standalone: true,
})
export class NavbarComponent implements OnInit {
public showMobileMenu = false;

View file

@ -8,6 +8,7 @@ import { NgClass } from '@angular/common';
templateUrl: './profile.component.html',
styleUrls: ['./profile.component.scss'],
imports: [FormsModule, NgClass],
standalone: true,
})
export class ProfileComponent {
constructor(private authService: AuthService) {}

View file

@ -11,6 +11,7 @@ import { FileSizePipe } from '../filesize.pipe';
templateUrl: './settings.component.html',
styleUrls: ['./settings.component.scss'],
imports: [NgClass, FormsModule, KeyValuePipe, Nl2BrPipe, FileSizePipe],
standalone: true,
})
export class SettingsComponent implements OnInit {
public activeTab = 0;

View file

@ -9,6 +9,7 @@ import { FormsModule } from '@angular/forms';
templateUrl: './setup.component.html',
styleUrls: ['./setup.component.scss'],
imports: [FormsModule, NgClass],
standalone: true,
})
export class SetupComponent {
public userName: string;

View file

@ -14,6 +14,7 @@ import { FileSizePipe } from '../filesize.pipe';
templateUrl: './torrent-table.component.html',
styleUrls: ['./torrent-table.component.scss'],
imports: [FormsModule, NgClass, DecimalPipe, DatePipe, TorrentStatusPipe, SortPipe, FileSizePipe],
standalone: true,
})
export class TorrentTableComponent implements OnInit {
public torrents: Torrent[] = [];

View file

@ -25,6 +25,7 @@ import { FileSizePipe } from '../filesize.pipe';
DecodeURIPipe,
FileSizePipe,
],
standalone: true,
})
export class TorrentComponent implements OnInit {
public torrent: Torrent;