You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.6 KiB
60 lines
1.6 KiB
import { NgModule } from "@angular/core";
|
|
import { BrowserModule } from "@angular/platform-browser";
|
|
|
|
import { NZ_I18N } from "ng-zorro-antd/i18n";
|
|
import { zh_CN } from "ng-zorro-antd/i18n";
|
|
import { registerLocaleData } from "@angular/common";
|
|
import zh from "@angular/common/locales/zh";
|
|
import { FormsModule } from "@angular/forms";
|
|
import { HTTP_INTERCEPTORS, HttpClientModule } from "@angular/common/http";
|
|
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
|
|
|
import { AppRoutingModule } from "./app-routing.module";
|
|
import { AppComponent } from "./app.component";
|
|
import { IconsProviderModule, TableListModule } from "@cdk/public-api";
|
|
import { SharedModule } from "@cdk/shared/shared.module";
|
|
import { AppLayoutComponent, OrgFormComponent } from "./components";
|
|
import {
|
|
DashboardComponent,
|
|
LoginComponent,
|
|
MealSettingComponent,
|
|
DataVisComponent,
|
|
FoodComponent,
|
|
DishComponent,
|
|
OrgInfoComponent,
|
|
} from "./pages";
|
|
import { HTTPInterceptor } from "./services/http.interceptor";
|
|
|
|
registerLocaleData(zh);
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
AppLayoutComponent,
|
|
OrgFormComponent,
|
|
|
|
DashboardComponent,
|
|
LoginComponent,
|
|
MealSettingComponent,
|
|
DataVisComponent,
|
|
FoodComponent,
|
|
DishComponent,
|
|
OrgInfoComponent,
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
AppRoutingModule,
|
|
FormsModule,
|
|
HttpClientModule,
|
|
BrowserAnimationsModule,
|
|
IconsProviderModule,
|
|
SharedModule,
|
|
TableListModule,
|
|
],
|
|
providers: [
|
|
{ provide: NZ_I18N, useValue: zh_CN },
|
|
{ provide: HTTP_INTERCEPTORS, useClass: HTTPInterceptor, multi: true },
|
|
],
|
|
bootstrap: [AppComponent],
|
|
})
|
|
export class AppModule {}
|
|
|