1
0
mirror of https://github.com/Eugeny/tabby-web.git synced 2025-07-25 04:18:02 +00:00
Files
tabby-web/frontend/src/homepage/index.ts
Eugene Pankov 079af8cf5c .
2021-10-25 09:14:05 +02:00

55 lines
1.4 KiB
TypeScript

/* eslint-disable @typescript-eslint/no-extraneous-class */
import { NgModule } from '@angular/core'
import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap'
import { CommonModule } from '@angular/common'
import { FormsModule } from '@angular/forms'
import { RouterModule } from '@angular/router'
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'
import { NgxImageZoomModule } from 'ngx-image-zoom'
import { HomeComponent } from './components/home.component'
import { HomeIndexComponent } from './components/homeIndex.component'
import { DemoTerminalComponent } from './components/demoTerminal.component'
import { HomeFeaturesComponent } from './components/homeFeatures.component'
import { InstanceInfoResolver } from 'src/api'
import { CommonAppModule } from 'src/common'
const ROUTES = [
{
path: '',
component: HomeComponent,
resolve: {
instanceInfo: InstanceInfoResolver,
},
children: [
{
path: '',
component: HomeIndexComponent,
},
{
path: 'about/features',
component: HomeFeaturesComponent,
},
],
},
]
@NgModule({
imports: [
CommonAppModule,
CommonModule,
FormsModule,
NgbNavModule,
FontAwesomeModule,
NgxImageZoomModule,
RouterModule.forChild(ROUTES),
],
declarations: [
HomeComponent,
HomeIndexComponent,
HomeFeaturesComponent,
DemoTerminalComponent,
],
})
export class HomepageModule { }