Initial commit

This commit is contained in:
2024-12-29 12:20:01 +01:00
commit 9ebe9b55bd
87 changed files with 21545 additions and 0 deletions

View File

@@ -0,0 +1 @@
<router-outlet />

View File

View File

@@ -0,0 +1,11 @@
import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
@Component({
selector: 'app-root',
imports: [RouterOutlet],
templateUrl: './app.component.html',
styleUrl: './app.component.scss'
})
export class AppComponent {
}

View File

@@ -0,0 +1,14 @@
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter, withComponentInputBinding } from '@angular/router';
import { routes } from './app.routes';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
export const appConfig: ApplicationConfig = {
providers: [
provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes, withComponentInputBinding()),
provideAnimationsAsync(),
provideHttpClient(withInterceptorsFromDi())
]
};

View File

@@ -0,0 +1,23 @@
import { Routes } from '@angular/router';
import { UploadComponent } from '../upload/upload.component';
import { DownloadComponent } from '../download/download.component';
import { ErrorComponent } from '../error/error.component';
export const routes: Routes = [
{
'path': '',
'component': UploadComponent
},
{
'path': 'download',
'component': DownloadComponent
},
{
'path': 'error/:errorCode',
'component': ErrorComponent
},
{
'path': '**',
'redirectTo': '/error/404'
}
];