74 lines
2.1 KiB
TypeScript
74 lines
2.1 KiB
TypeScript
// Entrypoint for Zuul dashboard pages
|
|
//
|
|
// Copyright 2018 Red Hat, Inc
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
// not use this file except in compliance with the License. You may obtain
|
|
// a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
// License for the specific language governing permissions and limitations
|
|
// under the License.
|
|
|
|
import './styles/zuul.css'
|
|
|
|
import { APP_BASE_HREF } from '@angular/common'
|
|
import { NgModule } from '@angular/core'
|
|
import { BrowserModule } from '@angular/platform-browser'
|
|
import { HttpClientModule } from '@angular/common/http'
|
|
import { FormsModule } from '@angular/forms'
|
|
|
|
import { CoreModule } from './core/core.module'
|
|
|
|
import { AppRoutingModule } from './app-routing.module'
|
|
import { AppComponent } from './app.component'
|
|
import { getAppBaseHref } from './zuul/zuul.service'
|
|
|
|
import BuildsComponent from './builds/builds.component'
|
|
import NavigationComponent from './navigation/navigation.component'
|
|
import JobsComponent from './jobs/jobs.component'
|
|
import StatusComponent from './status/status.component'
|
|
import StreamComponent from './stream/stream.component'
|
|
import TenantsComponent from './tenants/tenants.component'
|
|
import ZuulService from './zuul/zuul.service'
|
|
|
|
|
|
@NgModule({
|
|
imports: [
|
|
BrowserModule,
|
|
HttpClientModule,
|
|
FormsModule,
|
|
CoreModule.forRoot({}),
|
|
AppRoutingModule,
|
|
],
|
|
declarations: [
|
|
AppComponent,
|
|
BuildsComponent,
|
|
NavigationComponent,
|
|
JobsComponent,
|
|
StatusComponent,
|
|
StreamComponent,
|
|
TenantsComponent
|
|
],
|
|
entryComponents: [
|
|
BuildsComponent,
|
|
NavigationComponent,
|
|
JobsComponent,
|
|
StatusComponent,
|
|
StreamComponent,
|
|
TenantsComponent
|
|
],
|
|
providers: [
|
|
ZuulService,
|
|
{provide: APP_BASE_HREF, useValue: getAppBaseHref()}
|
|
],
|
|
bootstrap: [
|
|
AppComponent
|
|
]
|
|
})
|
|
export class AppModule { }
|