Skip to content

Commit 3fe78e5

Browse files
authored
refactor: improve project structure with core, shared and feature-based organization (#66)
### Checklist - [x] Esta PR está vinculada a uma Issue - [x] O escopo da Issue foi atendido - [x] Código segue o padrão do projeto - [x] Testes foram adicionados ou atualizados (se necessário) - [x] Nenhum commit desnecessário incluído - [x] Não há código comentado ou temporário - [x] Documentação foi atualizada (se necessário) - [x] Não há breaking changes não documentadas
1 parent f406eb3 commit 3fe78e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+136
-31
lines changed

docs/project-structure.md

Lines changed: 107 additions & 0 deletions

src/app/app.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, signal } from '@angular/core';
22
import { RouterOutlet } from '@angular/router';
3-
import { FooterComponent } from './shared/components/footer/footer.component';
3+
import { FooterComponent } from './shared/layout/footer/footer.component';
44
import { AuthService } from './core/auth/auth.service';
55
import { HeaderComponent } from './shared/layout/header/header.component';
66
import { CommonModule } from '@angular/common';
@@ -9,8 +9,8 @@ import { CommonModule } from '@angular/common';
99
selector: 'app-root',
1010
standalone: true,
1111
imports: [FooterComponent, RouterOutlet, HeaderComponent, CommonModule],
12-
templateUrl: './app.html',
13-
styleUrls: ['./app.scss'],
12+
templateUrl: './app.component.html',
13+
styleUrls: ['./app.component.scss'],
1414
})
1515
export class App {
1616

src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { MatPaginatorIntl } from '@angular/material/paginator';
66

77
import { routes } from './app.routes';
88
import { provideHttpClient, withInterceptors } from '@angular/common/http';
9-
import { authInterceptor } from './core/api/auth.interceptor';
10-
import { getPortuguesePaginatorIntl } from './shared/paginator-itl';
9+
import { authInterceptor } from './core/http/credentials.interceptor';
10+
import { getPortuguesePaginatorIntl } from './shared/paginator-intl';
1111

1212

1313
export const appConfig: ApplicationConfig = {

src/app/app.routes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { Routes } from '@angular/router';
2-
import { authGuard } from './core/auth/auth-guard';
2+
import { authGuard } from './core/auth/auth.guard';
33
import { LoginComponent } from './features/auth/login/login.component';
44
import { HomeComponent } from './features/home/home.component';
55
import { PersonComponent } from './features/person/pages/list/person-list.component';
66
import { PersonCreateComponent } from './features/person/pages/create/person-create.component';
7-
import { PersonEditComponent } from './features/person/pages/person-edit/person-edit.component';
7+
import { PersonEditComponent } from './features/person/pages/edit/person-edit.component';
88

99
export const routes: Routes = [
1010

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { TestBed } from '@angular/core/testing';
22
import { CanActivateFn } from '@angular/router';
33

4-
import { authGuard } from './auth-guard';
4+
import { authGuard } from './auth.guard';
55

66
describe('authGuard', () => {
77
const executeGuard: CanActivateFn = (...guardParameters) =>

0 commit comments

Comments
 (0)