generated from pascaliske/docker-package
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a45d22
commit ed57f82
Showing
17 changed files
with
2,058 additions
and
2,004 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
import { Component } from '@angular/core' | ||
import { Component, OnInit } from '@angular/core' | ||
import { Router, RouterOutlet } from '@angular/router' | ||
import { NgProgressModule } from 'ngx-progressbar' | ||
|
||
@Component({ | ||
standalone: true, | ||
selector: 'cmp-root', | ||
templateUrl: './app.component.html', | ||
styleUrls: ['./app.component.scss'], | ||
imports: [RouterOutlet, NgProgressModule], | ||
}) | ||
export class AppComponent {} | ||
export class AppComponent implements OnInit { | ||
public constructor(private readonly router: Router) {} | ||
|
||
public ngOnInit(): void { | ||
// delayed initial navigation | ||
setTimeout(() => this.router.initialNavigation()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { ApplicationConfig, mergeApplicationConfig } from '@angular/core' | ||
import { provideServerRendering } from '@angular/platform-server' | ||
import { appConfig } from './app.config' | ||
|
||
export const serverConfig: ApplicationConfig = mergeApplicationConfig(appConfig, { | ||
providers: [provideServerRendering()], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { importProvidersFrom, ApplicationConfig, ValueProvider, APP_ID } from '@angular/core' | ||
import { provideClientHydration } from '@angular/platform-browser' | ||
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async' | ||
import { provideRouter } from '@angular/router' | ||
import { NgProgressModule } from 'ngx-progressbar' | ||
import { NgProgressHttpModule } from 'ngx-progressbar/http' | ||
import { NgProgressRouterModule } from 'ngx-progressbar/router' | ||
import { features, routes } from './app.routing' | ||
|
||
export const provideAppId: () => ValueProvider = (): ValueProvider => ({ | ||
provide: APP_ID, | ||
useValue: 'traefik-errors', | ||
}) | ||
|
||
export const appConfig: ApplicationConfig = { | ||
providers: [ | ||
importProvidersFrom( | ||
NgProgressModule.withConfig({ color: '#ff6666', fixed: true }), | ||
NgProgressHttpModule, | ||
NgProgressRouterModule, | ||
), | ||
provideClientHydration(), | ||
provideAnimationsAsync(), | ||
provideRouter(routes, ...features), | ||
provideAppId(), | ||
], | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import type { RouterFeatures, Routes } from '@angular/router' | ||
import { withDisabledInitialNavigation, withInMemoryScrolling } from '@angular/router' | ||
import { ValidCodeGuard } from 'pages/error/valid-code.guard' | ||
|
||
export const features: RouterFeatures[] = [ | ||
withDisabledInitialNavigation(), | ||
withInMemoryScrolling({ | ||
anchorScrolling: 'enabled', | ||
scrollPositionRestoration: 'enabled', | ||
}), | ||
] | ||
|
||
export const routes: Routes = [ | ||
{ | ||
path: '**', | ||
canActivate: [ValidCodeGuard()], | ||
loadComponent: () => import('pages/error/error.component').then(m => m.ErrorComponent), | ||
}, | ||
] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.