@if (store.isConnected()) {
-
-
-
-
- {{ formattedUserName() }}
-
-
- {{ store.user().username }}
-
+
+
+
+
+ {{ formattedUserName() }}
+
+
+ {{ store.user().username }}
+
+
-
}
@for (item of userItems(); track item.label) {
- @if (item.visible) {
-
- }
+ @if (item.visible) {
+
+ }
}
diff --git a/src/app/features/sidebar/sidebar.ts b/src/app/features/sidebar/sidebar.ts
index 1733f4a..8e3e683 100644
--- a/src/app/features/sidebar/sidebar.ts
+++ b/src/app/features/sidebar/sidebar.ts
@@ -32,18 +32,18 @@ export class Sidebar {
{
label: 'Accueil',
icon: 'pi pi-home',
- routerLink: ['/']
+ routerLink: ['/'],
},
{
label: 'Tâche',
icon: 'pi pi-check-square',
- routerLink: ['/', 'todo']
+ routerLink: ['/', 'todo'],
},
{
label: 'Bibliothèque',
icon: 'pi pi-book',
- routerLink: ['/', 'books']
- }
+ routerLink: ['/', 'books'],
+ },
]);
userItems = computed(() => [
@@ -53,7 +53,7 @@ export class Sidebar {
visible: !this.store.isConnected(),
command: () => {
this.router.navigate(['login']);
- }
+ },
},
{
label: 'Se déconnecter',
@@ -61,7 +61,7 @@ export class Sidebar {
visible: this.store.isConnected(),
command: () => {
this.store.logout();
- }
- }
+ },
+ },
]);
}
diff --git a/src/app/features/todo/model/todo.mock.ts b/src/app/features/todo/model/todo.mock.ts
index b8d2029..72cb8cb 100644
--- a/src/app/features/todo/model/todo.mock.ts
+++ b/src/app/features/todo/model/todo.mock.ts
@@ -1,4 +1,4 @@
-import { Todo } from "./todo.model";
+import { Todo } from './todo.model';
export const TODOS: Todo[] = [
{ id: 1, title: 'Apprendre Vue', completed: false },
@@ -6,5 +6,5 @@ export const TODOS: Todo[] = [
{ id: 3, title: 'Apprendre Symfony', completed: false },
{ id: 4, title: 'Apprendre Python', completed: false },
{ id: 5, title: 'Apprendre React', completed: false },
- { id: 6, title: 'Apprendre Rust', completed: false }
+ { id: 6, title: 'Apprendre Rust', completed: false },
];
diff --git a/src/app/features/todo/service/todo.service.ts b/src/app/features/todo/service/todo.service.ts
index 143e2bb..5106d88 100644
--- a/src/app/features/todo/service/todo.service.ts
+++ b/src/app/features/todo/service/todo.service.ts
@@ -1,7 +1,7 @@
-import { Service } from "@angular/core";
+import { Service } from '@angular/core';
-import { TODOS } from "../model/todo.mock";
-import { Todo } from "../model/todo.model";
+import { TODOS } from '../model/todo.mock';
+import { Todo } from '../model/todo.model';
@Service({ autoProvided: false })
export class TodoService {
@@ -9,10 +9,10 @@ export class TodoService {
return TODOS;
}
- addTodo(todo: Partial
): Todo{
+ addTodo(todo: Partial): Todo {
return {
id: Math.random().toString(36).substring(2, 9),
- ...todo
+ ...todo,
} as Todo;
}
}
diff --git a/src/app/features/todo/store/todo.store.ts b/src/app/features/todo/store/todo.store.ts
index 33789cf..60a89ac 100644
--- a/src/app/features/todo/store/todo.store.ts
+++ b/src/app/features/todo/store/todo.store.ts
@@ -1,22 +1,22 @@
-import { computed, inject } from "@angular/core";
-import { patchState, signalStore, withComputed, withHooks, withMethods, withProps, withState } from "@ngrx/signals";
-import { MessageService } from "@openng/optimus-ui/api";
+import { computed, inject } from '@angular/core';
+import { patchState, signalStore, withComputed, withHooks, withMethods, withProps, withState } from '@ngrx/signals';
+import { MessageService } from '@openng/optimus-ui/api';
-import { Todo } from "../model/todo.model";
-import { TodoService } from "../service/todo.service";
+import { Todo } from '../model/todo.model';
+import { TodoService } from '../service/todo.service';
-export type TodoFilter = "all" | "pending" | "completed";
+export type TodoFilter = 'all' | 'pending' | 'completed';
interface TodosState {
- todos: Todo[],
- loading: boolean,
- filter: TodoFilter
+ todos: Todo[];
+ loading: boolean;
+ filter: TodoFilter;
}
const initialState: TodosState = {
todos: [],
loading: false,
- filter: "all"
+ filter: 'all',
};
export const TodoStore = signalStore(
@@ -25,14 +25,14 @@ export const TodoStore = signalStore(
filteredTodos: computed(() => {
const todos = state.todos();
switch (state.filter()) {
- case "all":
+ case 'all':
return todos;
- case "pending":
- return todos.filter(todo => !todo.completed);
- case "completed":
- return todos.filter(todo => todo.completed);
+ case 'pending':
+ return todos.filter((todo) => !todo.completed);
+ case 'completed':
+ return todos.filter((todo) => todo.completed);
}
- })
+ }),
})),
withProps(() => ({
todoService: inject(TodoService),
@@ -41,60 +41,66 @@ export const TodoStore = signalStore(
withMethods((store) => ({
loadAll() {
const todos = store.todoService.loadAll();
- patchState(store, { todos }, { loading: true })
+ patchState(store, { todos }, { loading: true });
},
addTodo(title: string) {
- const todo = store.todoService.addTodo({ title, completed: false});
+ const todo = store.todoService.addTodo({ title, completed: false });
patchState(store, (state) => ({
- todos: [...state.todos,todo]
+ todos: [...state.todos, todo],
}));
store.messageService.add({
severity: 'success',
summary: 'Succès',
- detail: `Le tâche "${todo.title}" a été ajouté`
+ detail: `Le tâche "${todo.title}" a été ajouté`,
});
},
updateTodo(id: number, completed: boolean) {
- const todo = store.todos().filter((todo: Todo) => todo.id === id).pop();
+ const todo = store
+ .todos()
+ .filter((todo: Todo) => todo.id === id)
+ .pop();
if (todo) {
patchState(store, (state) => ({
- todos: state.todos.map(todo => todo.id == id ? {...todo, completed} : todo)
+ todos: state.todos.map((todo) => (todo.id == id ? { ...todo, completed } : todo)),
}));
if (completed) {
store.messageService.add({
severity: 'success',
summary: 'Terminé',
- detail: `Le tâche "${todo.title}" est terminée`
+ detail: `Le tâche "${todo.title}" est terminée`,
});
} else {
store.messageService.add({
severity: 'warn',
summary: 'En cours',
- detail: `Le tâche "${todo.title}" est en cours`
+ detail: `Le tâche "${todo.title}" est en cours`,
});
}
}
},
deleteTodo(id: number) {
- const todo = store.todos().filter((todo: Todo) => todo.id === id).pop();
+ const todo = store
+ .todos()
+ .filter((todo: Todo) => todo.id === id)
+ .pop();
if (todo) {
patchState(store, (state) => ({
- todos: state.todos.filter(todo => todo.id != id)
+ todos: state.todos.filter((todo) => todo.id != id),
}));
store.messageService.add({
severity: 'warn',
summary: 'Succès',
- detail: `Le tâche "${todo.title}" a été supprimée`
+ detail: `Le tâche "${todo.title}" a été supprimée`,
});
}
},
updateFilter(filter: TodoFilter) {
patchState(store, { filter });
- }
+ },
})),
- withHooks(store => ({
+ withHooks((store) => ({
onInit() {
- store.loadAll()
- }
- }))
+ store.loadAll();
+ },
+ })),
);
diff --git a/src/app/features/todo/todo.html b/src/app/features/todo/todo.html
index d2cf8aa..c27de37 100644
--- a/src/app/features/todo/todo.html
+++ b/src/app/features/todo/todo.html
@@ -11,7 +11,11 @@ Mes Tâches
-
@@ -31,83 +35,90 @@
Mes Tâches
@if (store.filteredTodos().length === 0) {
-
-
-
-
+
+
+
+
+
+
+ @if (filter() === 'all') {
+ Aucune tâche pour le moment
+ } @else if (filter() === 'pending') {
+ Aucune tâche en cours
+ } @else {
+ Aucune tâche terminée
+ }
+
+
+ @if (filter() === 'all') {
+ Commencez par ajouter une nouvelle tâche ci-dessus
+ } @else {
+ Essayez un autre filtre pour voir vos tâches
+ }
+
-
- @if (filter() === 'all') {
- Aucune tâche pour le moment
- } @else if (filter() === 'pending') {
- Aucune tâche en cours
- } @else {
- Aucune tâche terminée
- }
-
-
- @if (filter() === 'all') {
- Commencez par ajouter une nouvelle tâche ci-dessus
- } @else {
- Essayez un autre filtre pour voir vos tâches
- }
-
-
} @else {
-
-
- @for (todo of store.filteredTodos(); track todo.id) {
- -
-
-
-
+
+
+ @for (todo of store.filteredTodos(); track todo.id) {
+ -
+
-
- }
-
+
+
+
+
+ }
+
}
@if (store.todos().length > 0) {
-
-
-
-
{{ completedCount() }} terminée{{ completedCount() > 1 ? 's' : '' }}
-
-
-
-
{{ pendingTotalCount() }} en cours
+
+
+
+
{{ completedCount() }} terminée{{ completedCount() > 1 ? 's' : '' }}
+
+
+
+
{{ pendingTotalCount() }} en cours
+
-
}
diff --git a/src/app/features/todo/todo.ts b/src/app/features/todo/todo.ts
index ed0ecd1..1b7fd5e 100644
--- a/src/app/features/todo/todo.ts
+++ b/src/app/features/todo/todo.ts
@@ -28,17 +28,11 @@ export default class Todo implements OnInit {
{ label: 'Terminé', value: 'completed' },
]);
- pendingCount = computed(() =>
- this.store.filteredTodos().filter(t => !t.completed).length
- );
+ pendingCount = computed(() => this.store.filteredTodos().filter((t) => !t.completed).length);
- completedCount = computed(() =>
- this.store.todos().filter(t => t.completed).length
- );
+ completedCount = computed(() => this.store.todos().filter((t) => t.completed).length);
- pendingTotalCount = computed(() =>
- this.store.todos().filter(t => !t.completed).length
- );
+ pendingTotalCount = computed(() => this.store.todos().filter((t) => !t.completed).length);
ngOnInit(): void {
this.filter.set(this.store.filter());
diff --git a/src/app/shared/appSate/app-state-store.ts b/src/app/shared/appSate/app-state-store.ts
index a8a06ee..35f082d 100644
--- a/src/app/shared/appSate/app-state-store.ts
+++ b/src/app/shared/appSate/app-state-store.ts
@@ -1,29 +1,29 @@
-import { computed, inject } from "@angular/core";
-import { patchState, signalStore, withComputed, withMethods, withState } from "@ngrx/signals";
-import { firstValueFrom } from "rxjs";
+import { computed, inject } from '@angular/core';
+import { patchState, signalStore, withComputed, withMethods, withState } from '@ngrx/signals';
+import { firstValueFrom } from 'rxjs';
-import { AppStateApi } from "./app-state-api";
-import { Settings } from "./model/settings.model";
-import { User } from "./model/user.model";
+import { AppStateApi } from './app-state-api';
+import { Settings } from './model/settings.model';
+import { User } from './model/user.model';
export interface AppState {
- user: Partial
,
- settings: Settings
+ user: Partial;
+ settings: Settings;
}
const initialAppState: AppState = {
user: {},
settings: {
- availableLanguages: ["fr"],
- currentLanguage: "fr",
- }
-}
+ availableLanguages: ['fr'],
+ currentLanguage: 'fr',
+ },
+};
export const AppStateStore = signalStore(
{ providedIn: 'root' },
withState(initialAppState),
withComputed((store) => ({
- isConnected: computed(() => 'id' in store.user())
+ isConnected: computed(() => 'id' in store.user()),
})),
withMethods((store, appStateApi = inject(AppStateApi)) => ({
async loadSettings() {
@@ -31,10 +31,10 @@ export const AppStateStore = signalStore(
patchState(store, { user: {}, settings });
},
login(user: User) {
- patchState(store, { user })
+ patchState(store, { user });
},
logout() {
- patchState(store, { user: {}})
- }
- }))
+ patchState(store, { user: {} });
+ },
+ })),
);
diff --git a/src/app/shared/appSate/model/user.data.ts b/src/app/shared/appSate/model/user.data.ts
index 9c48560..f4a5591 100644
--- a/src/app/shared/appSate/model/user.data.ts
+++ b/src/app/shared/appSate/model/user.data.ts
@@ -1,8 +1,8 @@
-import { User } from "./user.model";
+import { User } from './user.model';
export const userData: User = {
id: 1,
- firstName: "John",
- lastName: "Doe",
- username: "admin"
-}
+ firstName: 'John',
+ lastName: 'Doe',
+ username: 'admin',
+};
diff --git a/src/app/shared/component/paginator.ts b/src/app/shared/component/paginator.ts
index 2b3bcfa..6448e2c 100644
--- a/src/app/shared/component/paginator.ts
+++ b/src/app/shared/component/paginator.ts
@@ -17,7 +17,6 @@ import { Pager } from '../store/paginator-feature';
`,
})
export class PaginatorComponent {
-
pager = input.required();
total = input.required();
diff --git a/src/app/shared/interceptor/http-response-error-interceptor.ts b/src/app/shared/interceptor/http-response-error-interceptor.ts
index 0c4959b..28e24d4 100644
--- a/src/app/shared/interceptor/http-response-error-interceptor.ts
+++ b/src/app/shared/interceptor/http-response-error-interceptor.ts
@@ -7,12 +7,14 @@ export const httpResponseErrorInterceptor: HttpInterceptorFn = (req, next) => {
const messageService = inject(MessageService);
return next(req).pipe(
catchError((error: HttpErrorResponse) => {
- messageService.add({ severity: "error", summary: "Http response error" })
+ messageService.add({ severity: 'error', summary: 'Http response error' });
- return of(new HttpResponse({
- body: undefined,
- status: error.status
- }));
- })
+ return of(
+ new HttpResponse({
+ body: undefined,
+ status: error.status,
+ }),
+ );
+ }),
);
};
diff --git a/src/app/shared/layout/layout.service.ts b/src/app/shared/layout/layout.service.ts
index e194ff9..2317463 100644
--- a/src/app/shared/layout/layout.service.ts
+++ b/src/app/shared/layout/layout.service.ts
@@ -2,9 +2,9 @@ import { Service, signal } from '@angular/core';
@Service()
export class LayoutService {
- sidebarExpanded = signal(false);
+ sidebarExpanded = signal(false);
- toggleSidebar() {
- this.sidebarExpanded.update((v) => !v);
- }
+ toggleSidebar() {
+ this.sidebarExpanded.update((v) => !v);
+ }
}
diff --git a/src/app/shared/model/es-result.ts b/src/app/shared/model/es-result.ts
index 55541c3..088f20e 100644
--- a/src/app/shared/model/es-result.ts
+++ b/src/app/shared/model/es-result.ts
@@ -1,20 +1,20 @@
export interface EsRecord {
created: string;
id: string;
- links: Links
- metadata: unknown,
+ links: Links;
+ metadata: unknown;
updated: string;
}
export interface EsResult {
- aggregations: Record,
+ aggregations: Record;
hits: {
- hits: EsRecord[],
+ hits: EsRecord[];
total: {
relation: string;
value: number;
- }
- },
+ };
+ };
links: Links;
}
@@ -26,15 +26,15 @@ export interface Links {
}
export const EsResultInitialState: EsResult = {
- aggregations: {},
- hits: {
- hits: [],
- total: {
- relation: 'eq',
- value: 0
- }
+ aggregations: {},
+ hits: {
+ hits: [],
+ total: {
+ relation: 'eq',
+ value: 0,
},
- links: {
- self: ''
- }
+ },
+ links: {
+ self: '',
+ },
};
diff --git a/src/app/shared/page-title-strategy.spec.ts b/src/app/shared/page-title-strategy.spec.ts
index c2b8048..bc81cb8 100644
--- a/src/app/shared/page-title-strategy.spec.ts
+++ b/src/app/shared/page-title-strategy.spec.ts
@@ -12,10 +12,7 @@ describe('PageTitleStrategy', () => {
beforeEach(() => {
TestBed.configureTestingModule({
- providers: [
- PageTitleStrategy,
- { provide: TitleStrategy, useExisting: PageTitleStrategy },
- ],
+ providers: [PageTitleStrategy, { provide: TitleStrategy, useExisting: PageTitleStrategy }],
});
strategy = TestBed.inject(PageTitleStrategy);
titleService = TestBed.inject(Title);
diff --git a/src/app/shared/page-title-strategy.ts b/src/app/shared/page-title-strategy.ts
index d6c355f..d184b87 100644
--- a/src/app/shared/page-title-strategy.ts
+++ b/src/app/shared/page-title-strategy.ts
@@ -1,6 +1,6 @@
-import { inject, Service } from "@angular/core";
-import { Title } from "@angular/platform-browser";
-import { RouterStateSnapshot, TitleStrategy } from "@angular/router";
+import { inject, Service } from '@angular/core';
+import { Title } from '@angular/platform-browser';
+import { RouterStateSnapshot, TitleStrategy } from '@angular/router';
@Service({ autoProvided: false })
export class PageTitleStrategy extends TitleStrategy {
diff --git a/src/app/shared/store/paginator-feature.spec.ts b/src/app/shared/store/paginator-feature.spec.ts
index 0f3d22a..0223c64 100644
--- a/src/app/shared/store/paginator-feature.spec.ts
+++ b/src/app/shared/store/paginator-feature.spec.ts
@@ -24,9 +24,7 @@ describe('withPaginator()', () => {
it('changes page correctly when rows stay the same', () => {
const store = createStore();
- TestBed.runInInjectionContext(() =>
- store.changePage({ page: 1, rows: 10, first: 11, pageCount: 5 })
- );
+ TestBed.runInInjectionContext(() => store.changePage({ page: 1, rows: 10, first: 11, pageCount: 5 }));
expect(store.pager().page).toBe(2);
expect(store.pager().first).toBe(11);
expect(store.pager().rows).toBe(10);
@@ -34,9 +32,7 @@ describe('withPaginator()', () => {
it('resets to first page when rows per page changes', () => {
const store = createStore();
- TestBed.runInInjectionContext(() =>
- store.changePage({ page: 2, rows: 25, first: 51, pageCount: 5 })
- );
+ TestBed.runInInjectionContext(() => store.changePage({ page: 2, rows: 25, first: 51, pageCount: 5 }));
expect(store.pager().page).toBe(1);
expect(store.pager().first).toBe(1);
expect(store.pager().rows).toBe(25);
@@ -44,17 +40,13 @@ describe('withPaginator()', () => {
it('preserves rowsPerPageOptions when changing page', () => {
const store = createStore();
- TestBed.runInInjectionContext(() =>
- store.changePage({ page: 1, rows: 10, first: 11, pageCount: 5 })
- );
+ TestBed.runInInjectionContext(() => store.changePage({ page: 1, rows: 10, first: 11, pageCount: 5 }));
expect(store.pager().rowsPerPageOptions).toEqual([10, 25, 50]);
});
it('handles page 0 (first page) correctly', () => {
const store = createStore();
- TestBed.runInInjectionContext(() =>
- store.changePage({ page: 0, rows: 10, first: 1, pageCount: 5 })
- );
+ TestBed.runInInjectionContext(() => store.changePage({ page: 0, rows: 10, first: 1, pageCount: 5 }));
expect(store.pager().page).toBe(1);
expect(store.pager().first).toBe(1);
});
@@ -62,7 +54,7 @@ describe('withPaginator()', () => {
it('falls back to initial rows when event rows is undefined', () => {
const store = createStore();
TestBed.runInInjectionContext(() =>
- store.changePage({ page: 2, rows: undefined as unknown as number, first: 21, pageCount: 5 })
+ store.changePage({ page: 2, rows: undefined as unknown as number, first: 21, pageCount: 5 }),
);
expect(store.pager().rows).toBe(defaultPager.rows);
});
diff --git a/src/app/shared/store/paginator-feature.ts b/src/app/shared/store/paginator-feature.ts
index 737dc3d..cf8f59e 100644
--- a/src/app/shared/store/paginator-feature.ts
+++ b/src/app/shared/store/paginator-feature.ts
@@ -1,5 +1,5 @@
-import { patchState, signalMethod, signalStoreFeature, withMethods, withState } from "@ngrx/signals";
-import { PaginatorState } from "@openng/optimus-ui/paginator";
+import { patchState, signalMethod, signalStoreFeature, withMethods, withState } from '@ngrx/signals';
+import { PaginatorState } from '@openng/optimus-ui/paginator';
export interface Pager {
page: number;
@@ -15,10 +15,10 @@ export interface Paginator {
export function withPaginator(pager: Pager) {
return signalStoreFeature(
withState({
- pager: pager
+ pager: pager,
}),
withMethods((store) => ({
- changePage: signalMethod(event => {
+ changePage: signalMethod((event) => {
if (event.rows !== store.pager.rows()) {
event.page = 0;
event.first = 1;
@@ -27,11 +27,11 @@ export function withPaginator(pager: Pager) {
pager: {
page: (event.page || 0) + 1,
first: (event.page || 0) * (event.rows || pager.rows) + 1,
- rows: (event.rows || pager.rows),
- rowsPerPageOptions: store.pager().rowsPerPageOptions
- }
+ rows: event.rows || pager.rows,
+ rowsPerPageOptions: store.pager().rowsPerPageOptions,
+ },
});
}),
- }))
+ })),
);
}
diff --git a/src/app/shared/store/request-status-feature.spec.ts b/src/app/shared/store/request-status-feature.spec.ts
index 70f6c48..1f70aff 100644
--- a/src/app/shared/store/request-status-feature.spec.ts
+++ b/src/app/shared/store/request-status-feature.spec.ts
@@ -1,13 +1,7 @@
import { TestBed } from '@angular/core/testing';
import { patchState, signalStore, withMethods } from '@ngrx/signals';
-import {
- RequestStatus,
- setError,
- setFulfilled,
- setPending,
- withRequestStatus,
-} from './request-status-feature';
+import { RequestStatus, setError, setFulfilled, setPending, withRequestStatus } from './request-status-feature';
const TestStore = signalStore(
withRequestStatus(),
@@ -15,7 +9,7 @@ const TestStore = signalStore(
setStatus(status: RequestStatus) {
patchState(store, { requestStatus: status });
},
- }))
+ })),
);
describe('request-status-feature', () => {
@@ -74,9 +68,7 @@ describe('request-status-feature', () => {
});
it('error returns the error message when status is an error object', () => {
- TestBed.runInInjectionContext(() =>
- store.setStatus({ error: 'network error' })
- );
+ TestBed.runInInjectionContext(() => store.setStatus({ error: 'network error' }));
expect(store.error()).toBe('network error');
expect(store.isPending()).toBe(false);
expect(store.isFulfilled()).toBe(false);
diff --git a/src/app/shared/store/request-status-feature.ts b/src/app/shared/store/request-status-feature.ts
index 100d43e..edfeba4 100644
--- a/src/app/shared/store/request-status-feature.ts
+++ b/src/app/shared/store/request-status-feature.ts
@@ -1,24 +1,26 @@
-import { computed } from "@angular/core";
-import { signalStoreFeature, withComputed, withState } from "@ngrx/signals";
+import { computed } from '@angular/core';
+import { signalStoreFeature, withComputed, withState } from '@ngrx/signals';
export type RequestStatus = 'idle' | 'pending' | 'fulfilled' | { error: string };
-export interface RequestStatusState { requestStatus: RequestStatus }
+export interface RequestStatusState {
+ requestStatus: RequestStatus;
+}
export function withRequestStatus() {
return signalStoreFeature(
- withState({requestStatus: 'idle'}),
+ withState({ requestStatus: 'idle' }),
withComputed(({ requestStatus }) => {
return {
isPending: computed(() => requestStatus() === 'pending'),
isFulfilled: computed(() => requestStatus() === 'fulfilled'),
error: computed(() => {
const status = requestStatus();
- return (typeof status === 'object') ? status.error : null;
- })
- }
- })
- )
+ return typeof status === 'object' ? status.error : null;
+ }),
+ };
+ }),
+ );
}
export function setPending(): RequestStatusState {
diff --git a/src/index.html b/src/index.html
index 0bf70db..c9a9003 100644
--- a/src/index.html
+++ b/src/index.html
@@ -1,13 +1,13 @@
-
-
- Angular POC
-
-
-
-
-
-
-
+
+
+ Angular POC
+
+
+
+
+
+
+
diff --git a/src/main.ts b/src/main.ts
index 92975ea..2fb39d2 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -3,5 +3,4 @@ import { bootstrapApplication } from '@angular/platform-browser';
import { App } from './app/app';
import { appConfig } from './app/app.config';
-bootstrapApplication(App, appConfig)
- .catch((err) => console.error(err));
+bootstrapApplication(App, appConfig).catch((err) => console.error(err));
diff --git a/tsconfig.app.json b/tsconfig.app.json
index e23df31..16e5822 100644
--- a/tsconfig.app.json
+++ b/tsconfig.app.json
@@ -7,11 +7,6 @@
"rootDir": "./src",
"types": []
},
- "include": [
- "src/**/*.ts"
- ],
- "exclude": [
- "src/**/*.spec.ts",
- "src/test-setup.ts"
- ]
+ "include": ["src/**/*.ts"],
+ "exclude": ["src/**/*.spec.ts", "src/test-setup.ts"]
}
diff --git a/tsconfig.spec.json b/tsconfig.spec.json
index 0224d45..fb20455 100644
--- a/tsconfig.spec.json
+++ b/tsconfig.spec.json
@@ -5,11 +5,6 @@
"rootDir": "./src",
"types": ["vitest/globals", "node"]
},
- "files": [
- "src/test-setup.ts"
- ],
- "include": [
- "src/**/*.spec.ts",
- "src/**/*.d.ts"
- ]
+ "files": ["src/test-setup.ts"],
+ "include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
}
diff --git a/vite.config.mts b/vite.config.mts
index 0472280..c0435a6 100644
--- a/vite.config.mts
+++ b/vite.config.mts
@@ -1,5 +1,5 @@
-import angular from '@analogjs/vite-plugin-angular';
import { resolve } from 'path';
+import angular from '@analogjs/vite-plugin-angular';
import { defineConfig } from 'vitest/config';
export default defineConfig({