Skip to content

Commit

Permalink
style: order imports
Browse files Browse the repository at this point in the history
  • Loading branch information
grantwforsythe committed Mar 5, 2024
1 parent 7809392 commit e571f50
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
6 changes: 3 additions & 3 deletions src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -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: [
Expand Down
5 changes: 4 additions & 1 deletion src/app/app.routes.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -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));

0 comments on commit e571f50

Please sign in to comment.