-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor the application structure and optimize related codes
- Loading branch information
1 parent
2e607c0
commit b35064d
Showing
17 changed files
with
266 additions
and
194 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
import { RouterOutlet } from '@angular/router'; | ||
import { NavigationComponent } from './features/components/navigation/navigation.component'; | ||
|
||
@Component({ | ||
selector: 'tt-root', | ||
standalone: true, | ||
template: ` <tt-navigation> | ||
<main class="p-5 sm:p-10"> | ||
<router-outlet></router-outlet> | ||
</main> | ||
</tt-navigation>`, | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
imports: [RouterOutlet, NavigationComponent], | ||
}) | ||
export class AppComponent {} |
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,34 @@ | ||
import { importProvidersFrom } from '@angular/core'; | ||
import { Routes } from '@angular/router'; | ||
import { CalendarModule, DateAdapter } from 'angular-calendar'; | ||
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns'; | ||
|
||
export const appRoutes: Routes = [ | ||
{ | ||
path: '', | ||
title: 'Overview', | ||
loadComponent: () => import('./pages/overview/overview.component'), | ||
}, | ||
{ | ||
path: 'calendar', | ||
title: 'Calendar', | ||
providers: [ | ||
importProvidersFrom( | ||
CalendarModule.forRoot({ | ||
provide: DateAdapter, | ||
useFactory: adapterFactory, | ||
}), | ||
), | ||
], | ||
loadComponent: () => import('./pages/calendar/calendar.component'), | ||
}, | ||
{ | ||
path: 'backup', | ||
title: 'Import/Export Database', | ||
loadComponent: () => import('./pages/backup/backup.component'), | ||
}, | ||
{ | ||
path: '**', | ||
loadComponent: () => import('./pages/overview/overview.component'), | ||
}, | ||
]; |
File renamed without changes.
File renamed without changes.
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
48 changes: 0 additions & 48 deletions
48
apps/time-tracker/src/app/features/components/work-time-form/work-time-form.module.ts
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
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
Oops, something went wrong.