From e571f50eba8d8bfcc6e23f940b0d30e734faadb9 Mon Sep 17 00:00:00 2001 From: Grant Forsythe Date: Mon, 4 Mar 2024 21:43:40 -0500 Subject: [PATCH] style: order imports --- src/app/app.component.ts | 4 ++-- src/app/app.config.ts | 6 +++--- src/app/app.routes.ts | 5 ++++- src/main.ts | 4 ++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 23fef88..e445712 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,7 +1,7 @@ -import { Component } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { RouterOutlet } from '@angular/router'; +import { Component } from '@angular/core'; import { LoginComponent } from './login/login.component'; +import { RouterOutlet } from '@angular/router'; @Component({ selector: 'app-root', diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 324a6fa..4de62f9 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,11 +1,11 @@ +import { provideHttpClient, withInterceptors } from '@angular/common/http'; import { ApplicationConfig } from '@angular/core'; +import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; import { provideRouter } from '@angular/router'; -import { routes } from './app.routes'; -import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; -import { provideHttpClient, withInterceptors } from '@angular/common/http'; import { authInterceptor } from './services/auth/auth.interceptor'; import { cacheInterceptor } from './services/cache/cache.interceptor'; +import { routes } from './app.routes'; export const appConfig: ApplicationConfig = { providers: [ diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index f83a903..1a963c5 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,9 +1,12 @@ import { Routes } from '@angular/router'; -import { LoginComponent } from './login/login.component'; + import { authGuard } from './services/auth/auth.guard'; import { BudgetsComponent } from './budgets/budgets.component'; +import { LoginComponent } from './login/login.component'; import { BudgetDetailsComponent } from './budget-details/budget-details.component'; +// TODO: 404 Route +// TODO: Privacy policy route export const routes: Routes = [ { path: '', component: LoginComponent }, // TODO: Refactor to use child routes diff --git a/src/main.ts b/src/main.ts index 5c08679..63ee5ff 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ -import { bootstrapApplication } from '@angular/platform-browser'; -import { appConfig } from './app/app.config'; import { AppComponent } from './app/app.component'; +import { appConfig } from './app/app.config'; +import { bootstrapApplication } from '@angular/platform-browser'; // eslint-disable-next-line @typescript-eslint/no-confusing-void-expression bootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err));