Migration to standalone complete
This commit is contained in:
@@ -4,12 +4,15 @@ import {Message} from '@stomp/stompjs';
|
|||||||
import {BookService} from './book/service/book.service';
|
import {BookService} from './book/service/book.service';
|
||||||
import {EventService} from './shared/websocket/event.service';
|
import {EventService} from './shared/websocket/event.service';
|
||||||
import {parseLogNotification} from './shared/websocket/model/log-notification.model';
|
import {parseLogNotification} from './shared/websocket/model/log-notification.model';
|
||||||
|
import { ConfirmDialog } from 'primeng/confirmdialog';
|
||||||
|
import { Toast } from 'primeng/toast';
|
||||||
|
import { RouterOutlet } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
templateUrl: './app.component.html',
|
templateUrl: './app.component.html',
|
||||||
standalone: false,
|
styleUrl: './app.component.scss',
|
||||||
styleUrl: './app.component.scss'
|
imports: [ConfirmDialog, Toast, RouterOutlet]
|
||||||
})
|
})
|
||||||
export class AppComponent implements OnInit {
|
export class AppComponent implements OnInit {
|
||||||
|
|
||||||
|
|||||||
@@ -1,100 +0,0 @@
|
|||||||
import {NgModule} from '@angular/core';
|
|
||||||
import {BrowserModule} from '@angular/platform-browser';
|
|
||||||
import {AppRoutingModule} from './app-routing.module';
|
|
||||||
import {AppComponent} from './app.component';
|
|
||||||
|
|
||||||
import {FormsModule} from '@angular/forms';
|
|
||||||
import {DialogService} from 'primeng/dynamicdialog';
|
|
||||||
import {InputTextModule} from 'primeng/inputtext';
|
|
||||||
import {TableModule} from 'primeng/table';
|
|
||||||
import {Button} from 'primeng/button';
|
|
||||||
import {StepperModule} from 'primeng/stepper';
|
|
||||||
import {IconFieldModule} from 'primeng/iconfield';
|
|
||||||
import {InputIconModule} from 'primeng/inputicon';
|
|
||||||
import {ToggleButtonModule} from 'primeng/togglebutton';
|
|
||||||
import {PasswordModule} from 'primeng/password';
|
|
||||||
import {ToastModule} from 'primeng/toast';
|
|
||||||
import {InfiniteScrollDirective} from 'ngx-infinite-scroll';
|
|
||||||
import {ConfirmationService, MessageService} from 'primeng/api';
|
|
||||||
import {DropdownModule} from 'primeng/dropdown';
|
|
||||||
import {rxStompServiceFactory} from './shared/websocket/rx-stomp-service-factory';
|
|
||||||
import {RxStompService} from './shared/websocket/rx-stomp.service';
|
|
||||||
import {VirtualScrollerModule} from '@iharbeck/ngx-virtual-scroller';
|
|
||||||
import {LazyLoadImageModule} from 'ng-lazyload-image';
|
|
||||||
import {ConfirmDialogModule} from 'primeng/confirmdialog';
|
|
||||||
import {CheckboxModule} from 'primeng/checkbox';
|
|
||||||
import {DividerModule} from 'primeng/divider';
|
|
||||||
import {DialogModule} from 'primeng/dialog';
|
|
||||||
import {SpeedDialModule} from 'primeng/speeddial';
|
|
||||||
import {RouteReuseStrategy} from '@angular/router';
|
|
||||||
import {CustomReuseStrategy} from './custom-reuse-strategy';
|
|
||||||
import {MenuModule} from 'primeng/menu';
|
|
||||||
import {ProgressSpinnerModule} from 'primeng/progressspinner';
|
|
||||||
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
|
|
||||||
import {providePrimeNG} from 'primeng/config';
|
|
||||||
import Aura from '@primeng/themes/aura';
|
|
||||||
import {IftaLabel} from 'primeng/iftalabel';
|
|
||||||
import {MultiSelectModule} from 'primeng/multiselect';
|
|
||||||
import {SelectButton} from "primeng/selectbutton";
|
|
||||||
import {RadioButton} from 'primeng/radiobutton';
|
|
||||||
import {Select} from 'primeng/select';
|
|
||||||
import {provideHttpClient} from "@angular/common/http";
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
declarations: [
|
|
||||||
AppComponent
|
|
||||||
],
|
|
||||||
imports: [
|
|
||||||
BrowserModule,
|
|
||||||
AppRoutingModule,
|
|
||||||
FormsModule,
|
|
||||||
InputTextModule,
|
|
||||||
TableModule,
|
|
||||||
Button,
|
|
||||||
StepperModule,
|
|
||||||
IconFieldModule,
|
|
||||||
InputIconModule,
|
|
||||||
ToggleButtonModule,
|
|
||||||
PasswordModule,
|
|
||||||
ToastModule,
|
|
||||||
InfiniteScrollDirective,
|
|
||||||
DropdownModule,
|
|
||||||
VirtualScrollerModule,
|
|
||||||
LazyLoadImageModule,
|
|
||||||
ConfirmDialogModule,
|
|
||||||
CheckboxModule,
|
|
||||||
DividerModule,
|
|
||||||
DialogModule,
|
|
||||||
SpeedDialModule,
|
|
||||||
MenuModule,
|
|
||||||
ProgressSpinnerModule,
|
|
||||||
IftaLabel,
|
|
||||||
MultiSelectModule,
|
|
||||||
SelectButton,
|
|
||||||
RadioButton,
|
|
||||||
Select
|
|
||||||
],
|
|
||||||
providers: [
|
|
||||||
provideHttpClient(),
|
|
||||||
DialogService,
|
|
||||||
MessageService,
|
|
||||||
ConfirmationService,
|
|
||||||
{
|
|
||||||
provide: RxStompService,
|
|
||||||
useFactory: rxStompServiceFactory,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
provide: RouteReuseStrategy,
|
|
||||||
useClass: CustomReuseStrategy
|
|
||||||
},
|
|
||||||
provideAnimationsAsync(),
|
|
||||||
providePrimeNG({
|
|
||||||
theme: {
|
|
||||||
preset: Aura
|
|
||||||
}
|
|
||||||
})
|
|
||||||
],
|
|
||||||
bootstrap: [AppComponent]
|
|
||||||
})
|
|
||||||
export class AppModule {
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
import {NgModule} from '@angular/core';
|
import {Routes} from '@angular/router';
|
||||||
import {RouterModule, Routes} from '@angular/router';
|
|
||||||
import {PdfViewerComponent} from './book/components/pdf-viewer/pdf-viewer.component';
|
import {PdfViewerComponent} from './book/components/pdf-viewer/pdf-viewer.component';
|
||||||
import {MainDashboardComponent} from './dashboard/components/main-dashboard/main-dashboard.component';
|
import {MainDashboardComponent} from './dashboard/components/main-dashboard/main-dashboard.component';
|
||||||
import {BookBrowserComponent} from './book/components/book-browser/book-browser.component';
|
import {BookBrowserComponent} from './book/components/book-browser/book-browser.component';
|
||||||
import {AppLayoutComponent} from './layout/component/layout-main/app.layout.component';
|
import {AppLayoutComponent} from './layout/component/layout-main/app.layout.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: '', component: AppLayoutComponent,
|
path: '', component: AppLayoutComponent,
|
||||||
children: [
|
children: [
|
||||||
@@ -28,10 +27,3 @@ const routes: Routes = [
|
|||||||
component: PdfViewerComponent
|
component: PdfViewerComponent
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [RouterModule.forRoot(routes)],
|
|
||||||
exports: [RouterModule]
|
|
||||||
})
|
|
||||||
export class AppRoutingModule {
|
|
||||||
}
|
|
||||||
+36
-6
@@ -1,7 +1,37 @@
|
|||||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
import {provideHttpClient} from '@angular/common/http';
|
||||||
import { AppModule } from './app/app.module';
|
import {DialogService} from 'primeng/dynamicdialog';
|
||||||
|
import {ConfirmationService, MessageService} from 'primeng/api';
|
||||||
|
import {RxStompService} from './app/shared/websocket/rx-stomp.service';
|
||||||
|
import {rxStompServiceFactory} from './app/shared/websocket/rx-stomp-service-factory';
|
||||||
|
import {provideRouter, RouteReuseStrategy} from '@angular/router';
|
||||||
|
import {CustomReuseStrategy} from './app/custom-reuse-strategy';
|
||||||
|
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
|
||||||
|
import {providePrimeNG} from 'primeng/config';
|
||||||
|
import {bootstrapApplication} from '@angular/platform-browser';
|
||||||
|
import {AppComponent} from './app/app.component';
|
||||||
|
import Aura from '@primeng/themes/aura';
|
||||||
|
import {routes} from './app/app.routes';
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule, {
|
bootstrapApplication(AppComponent, {
|
||||||
ngZoneEventCoalescing: true,
|
providers: [
|
||||||
})
|
provideHttpClient(),
|
||||||
.catch(err => console.error(err));
|
provideRouter(routes),
|
||||||
|
DialogService,
|
||||||
|
MessageService,
|
||||||
|
ConfirmationService,
|
||||||
|
{
|
||||||
|
provide: RxStompService,
|
||||||
|
useFactory: rxStompServiceFactory,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
provide: RouteReuseStrategy,
|
||||||
|
useClass: CustomReuseStrategy
|
||||||
|
},
|
||||||
|
provideAnimationsAsync(),
|
||||||
|
providePrimeNG({
|
||||||
|
theme: {
|
||||||
|
preset: Aura
|
||||||
|
}
|
||||||
|
})
|
||||||
|
]
|
||||||
|
}).catch(err => console.error(err));
|
||||||
|
|||||||
Reference in New Issue
Block a user