
Angular was added to organize the FE of the UI application better. In doing so I have rebuilt the build scripts, added a routing mechanism for the Go server to route and serve the compiled TS pages from Angular. Change-Id: I7ae2cacfd90372fa536b1639e5b54a8da786e2cd
66 lines
2.4 KiB
TypeScript
66 lines
2.4 KiB
TypeScript
import { BrowserModule } from '@angular/platform-browser';
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
import { AppComponent } from './app.component';
|
|
|
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
import { MatListModule } from '@angular/material/list';
|
|
import { MatIconModule } from '@angular/material/icon';
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
import { MatTableModule } from '@angular/material/table';
|
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
import { RouterModule } from '@angular/router';
|
|
import { AirshipComponent } from './airship/airship.component';
|
|
import { DashboardsComponent } from './dashboards/dashboards.component';
|
|
import { HomeComponent } from './home/home.component';
|
|
import { BareMetalComponent } from './airship/bare-metal/bare-metal.component';
|
|
import { DocumentComponent } from './airship/document/document.component';
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
import { DocumentOverviewComponent } from './airship/document/document-overview/document-overview.component';
|
|
import { DocumentPullComponent } from './airship/document/document-pull/document-pull.component';
|
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
import { WebsocketService } from '../services/websocket/websocket.service';
|
|
import { ToastrModule } from 'ngx-toastr';
|
|
import {FormsModule} from '@angular/forms';
|
|
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
AirshipComponent,
|
|
DashboardsComponent,
|
|
HomeComponent,
|
|
BareMetalComponent,
|
|
DocumentComponent,
|
|
DocumentOverviewComponent,
|
|
DocumentPullComponent,
|
|
],
|
|
imports: [
|
|
AppRoutingModule,
|
|
BrowserModule,
|
|
BrowserAnimationsModule,
|
|
FlexLayoutModule,
|
|
FormsModule,
|
|
MatToolbarModule,
|
|
MatSidenavModule,
|
|
MatListModule,
|
|
MatIconModule,
|
|
MatButtonModule,
|
|
MatTableModule,
|
|
MatCheckboxModule,
|
|
MatExpansionModule,
|
|
HttpClientModule,
|
|
RouterModule,
|
|
MatTabsModule,
|
|
ToastrModule.forRoot()
|
|
],
|
|
providers: [WebsocketService],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule { }
|