diff --git a/apps/taiga-lumbermill/src/components/app/app.component.html b/apps/taiga-lumbermill/src/components/app/app.component.html index b54876d26..72273050a 100644 --- a/apps/taiga-lumbermill/src/components/app/app.component.html +++ b/apps/taiga-lumbermill/src/components/app/app.component.html @@ -1,3 +1,3 @@ - + diff --git a/apps/taiga-lumbermill/src/components/app/app.component.ts b/apps/taiga-lumbermill/src/components/app/app.component.ts index 3458d60b9..cedef18ce 100644 --- a/apps/taiga-lumbermill/src/components/app/app.component.ts +++ b/apps/taiga-lumbermill/src/components/app/app.component.ts @@ -1,8 +1,7 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {RouterModule} from '@angular/router'; -import {TuiRoot} from '@taiga-ui/core'; +import {TUI_DARK_MODE, TuiRoot} from '@taiga-ui/core'; -import {ThemeService} from '../../services/theme.service'; import {NavigationComponent} from '../navigation/navigation.component'; @Component({ @@ -13,6 +12,5 @@ import {NavigationComponent} from '../navigation/navigation.component'; changeDetection: ChangeDetectionStrategy.OnPush, }) export class AppComponent { - protected themeService = inject(ThemeService); - public title = 'taiga-lumbermill'; + protected readonly darkMode = inject(TUI_DARK_MODE); } diff --git a/apps/taiga-lumbermill/src/components/app/app.routes.ts b/apps/taiga-lumbermill/src/components/app/app.routes.ts index 7a74da1ba..bbbf3921b 100644 --- a/apps/taiga-lumbermill/src/components/app/app.routes.ts +++ b/apps/taiga-lumbermill/src/components/app/app.routes.ts @@ -12,7 +12,7 @@ export const appRoutes: Route[] = [ path: '', loadComponent: async () => import( - '../../dashboards/dashboards-list/dashboards-list.component' + '../../components/dashboards-list/dashboards-list.component' ).then((mod) => mod.DashboardsListComponent), data: {title: ''}, }, @@ -37,28 +37,28 @@ export const appRoutes: Route[] = [ { path: 'theme', loadComponent: async () => - import('../../dashboards/theme-generator/theme-generator.component').then( + import('../../features/theme-generator/theme-generator.component').then( (mod) => mod.ThemeGeneratorComponent, ), }, { path: '', loadComponent: async () => - import('../../dashboards/common-page/common-page.component').then( + import('../../components/common-page/common-page.component').then( (mod) => mod.CommonPageComponent, ), }, { path: 'login', loadComponent: async () => - import('../../dashboards/login/login.component').then( + import('../../features/login/login.component').then( (mod) => mod.LoginComponent, ), }, { path: 'sign-up', loadComponent: async () => - import('../../dashboards/sign-up/sign-up.component').then( + import('../../features/sign-up/sign-up.component').then( (mod) => mod.SignUpComponent, ), }, diff --git a/apps/taiga-lumbermill/src/dashboards/common-page/common-page.component.html b/apps/taiga-lumbermill/src/components/common-page/common-page.component.html similarity index 100% rename from apps/taiga-lumbermill/src/dashboards/common-page/common-page.component.html rename to apps/taiga-lumbermill/src/components/common-page/common-page.component.html diff --git a/apps/taiga-lumbermill/src/dashboards/common-page/common-page.component.less b/apps/taiga-lumbermill/src/components/common-page/common-page.component.less similarity index 100% rename from apps/taiga-lumbermill/src/dashboards/common-page/common-page.component.less rename to apps/taiga-lumbermill/src/components/common-page/common-page.component.less diff --git a/apps/taiga-lumbermill/src/dashboards/common-page/common-page.component.ts b/apps/taiga-lumbermill/src/components/common-page/common-page.component.ts similarity index 100% rename from apps/taiga-lumbermill/src/dashboards/common-page/common-page.component.ts rename to apps/taiga-lumbermill/src/components/common-page/common-page.component.ts diff --git a/apps/taiga-lumbermill/src/dashboards/dashboards-list/dashboards-list.component.html b/apps/taiga-lumbermill/src/components/dashboards-list/dashboards-list.component.html similarity index 100% rename from apps/taiga-lumbermill/src/dashboards/dashboards-list/dashboards-list.component.html rename to apps/taiga-lumbermill/src/components/dashboards-list/dashboards-list.component.html diff --git a/apps/taiga-lumbermill/src/dashboards/dashboards-list/dashboards-list.component.less b/apps/taiga-lumbermill/src/components/dashboards-list/dashboards-list.component.less similarity index 100% rename from apps/taiga-lumbermill/src/dashboards/dashboards-list/dashboards-list.component.less rename to apps/taiga-lumbermill/src/components/dashboards-list/dashboards-list.component.less diff --git a/apps/taiga-lumbermill/src/dashboards/dashboards-list/dashboards-list.component.ts b/apps/taiga-lumbermill/src/components/dashboards-list/dashboards-list.component.ts similarity index 100% rename from apps/taiga-lumbermill/src/dashboards/dashboards-list/dashboards-list.component.ts rename to apps/taiga-lumbermill/src/components/dashboards-list/dashboards-list.component.ts diff --git a/apps/taiga-lumbermill/src/components/navigation/navigation.component.html b/apps/taiga-lumbermill/src/components/navigation/navigation.component.html index ad56e423a..4b06d2e34 100644 --- a/apps/taiga-lumbermill/src/components/navigation/navigation.component.html +++ b/apps/taiga-lumbermill/src/components/navigation/navigation.component.html @@ -2,69 +2,158 @@ + + + + + + Taiga lumbermill + +
+ - } - - - -
+ class="tui-doc-dark-mode-switch" + [iconStart]="icon()" + [style.border-radius.%]="100" + (click)="darkMode.set(!darkMode())" + >