dev #12926 dev #12927 изменил название клиента и пути для разворачивания проекта Наработки по каталогу товаров наработки по карточке товара
100 lines
3.9 KiB
TypeScript
100 lines
3.9 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
import { AppComponent } from './app.component';
|
|
import { MainComponent } from './pages/main/main.component';
|
|
import { NavbarComponent } from './components/navbar/navbar.component';
|
|
import { CardComponent } from './components/card/card.component';
|
|
import {InputMaskModule} from "primeng/inputmask";
|
|
import { AuthComponent } from './pages/account/auth/auth.component';
|
|
import {ProgressSpinnerModule} from "primeng/progressspinner";
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
import { AccountComponent } from './pages/account/account.component';
|
|
import { ExitComponent } from './components/exit/exit.component';
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
import { DialogService } from 'primeng/dynamicdialog';
|
|
import { BonusProgramComponent } from './pages/account/bonus-program/bonus-program.component';
|
|
import { OrdersComponent } from './pages/account/orders/orders.component';
|
|
import { OrderInfoComponent } from './components/order-info/order-info.component';
|
|
import { ServiceWorkerModule } from '@angular/service-worker';
|
|
import { environment } from '../environments/environment';
|
|
import { AngularFireModule } from '@angular/fire/compat';
|
|
import { AngularFireMessagingModule } from '@angular/fire/compat/messaging';
|
|
import {ToastModule} from 'primeng/toast';
|
|
import { MessageService } from 'primeng/api';
|
|
import { FooterButtonsComponent } from './components/footer-buttons/footer-buttons.component';
|
|
import { UserDataComponent } from './pages/account/user-data/user-data.component';
|
|
import { RefSystemComponent } from './pages/account/ref-system/ref-system.component';
|
|
import { QRCodeModule } from 'angularx-qrcode';
|
|
import { ShareButtonsModule } from 'ngx-sharebuttons/buttons';
|
|
import { ShareIconsModule } from 'ngx-sharebuttons/icons';
|
|
import { MessagingService } from './services/messaging.service';
|
|
import { NotFoundComponent } from './pages/not-found/not-found.component';
|
|
import { ProductsComponent } from './pages/products/products.component';
|
|
import { CartComponent } from './pages/cart/cart.component';
|
|
import {ListboxModule} from 'primeng/listbox';
|
|
import { ProductModalComponent } from './components/product-modal/product-modal.component';
|
|
import { CheckboxGroupComponent } from './components/checkbox-group/checkbox-group.component';
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
NavbarComponent,
|
|
MainComponent,
|
|
CardComponent,
|
|
AuthComponent,
|
|
AccountComponent,
|
|
ExitComponent,
|
|
BonusProgramComponent,
|
|
OrdersComponent,
|
|
OrderInfoComponent,
|
|
FooterButtonsComponent,
|
|
UserDataComponent,
|
|
RefSystemComponent,
|
|
NotFoundComponent,
|
|
ProductsComponent,
|
|
CartComponent,
|
|
ProductModalComponent,
|
|
CheckboxGroupComponent
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
AppRoutingModule,
|
|
RouterModule.forRoot([
|
|
{
|
|
path: '**',
|
|
component: MainComponent
|
|
},
|
|
// { path: '**', component: NotFoundComponent }
|
|
]),
|
|
InputMaskModule,
|
|
ProgressSpinnerModule,
|
|
FormsModule,
|
|
HttpClientModule,
|
|
BrowserAnimationsModule,
|
|
BrowserModule,
|
|
ServiceWorkerModule.register('ngsw-worker.js', {
|
|
enabled: environment.production,
|
|
// Register the ServiceWorker as soon as the application is stable
|
|
// or after 30 seconds (whichever comes first).
|
|
registrationStrategy: 'registerWhenStable:30000'
|
|
}),
|
|
AngularFireModule.initializeApp(environment.firebase),
|
|
AngularFireMessagingModule,
|
|
ToastModule,
|
|
ReactiveFormsModule,
|
|
QRCodeModule,
|
|
ShareButtonsModule.withConfig({
|
|
debug: true
|
|
}),
|
|
ShareIconsModule,
|
|
ListboxModule
|
|
],
|
|
providers: [DialogService, MessageService, MessagingService ],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule { }
|