mirror of
https://github.com/MikroWizard/mikrofront.git
synced 2026-05-14 15:51:29 +00:00
MikroWizard Initial commit | MikroFront Welcome to the world :)
This commit is contained in:
commit
b97aec6b97
203 changed files with 41097 additions and 0 deletions
116
src/app/app.module.ts
Normal file
116
src/app/app.module.ts
Normal file
|
|
@ -0,0 +1,116 @@
|
|||
import { NgModule ,APP_INITIALIZER} from '@angular/core';
|
||||
import { HashLocationStrategy, LocationStrategy, PathLocationStrategy } from '@angular/common';
|
||||
import { BrowserModule, Title } from '@angular/platform-browser';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { ReactiveFormsModule,FormsModule } from '@angular/forms';
|
||||
|
||||
import { NgScrollbarModule } from 'ngx-scrollbar';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
|
||||
// Import routing module
|
||||
import { AppRoutingModule } from './app-routing.module';
|
||||
import { provideDateFnsAdapter } from 'ngx-material-date-fns-adapter';
|
||||
|
||||
// Import app component
|
||||
import { AppComponent } from './app.component';
|
||||
|
||||
// Import containers
|
||||
import { DefaultFooterComponent, DefaultHeaderComponent, DefaultLayoutComponent } from './containers';
|
||||
import { MikroWizardProvider } from './providers/mikrowizard/provider';
|
||||
import { dataProvider } from './providers/mikrowizard/data';
|
||||
import { loginChecker } from './providers/login_checker';
|
||||
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
||||
import { provideHighlightOptions, Highlight, HighlightAuto } from 'ngx-highlightjs';
|
||||
|
||||
import {
|
||||
AvatarModule,
|
||||
BadgeModule,
|
||||
BreadcrumbModule,
|
||||
ButtonGroupModule,
|
||||
ButtonModule,
|
||||
CardModule,
|
||||
DropdownModule,
|
||||
FooterModule,
|
||||
FormModule,
|
||||
GridModule,
|
||||
HeaderModule,
|
||||
ListGroupModule,
|
||||
NavModule,
|
||||
ProgressModule,
|
||||
SharedModule,
|
||||
SidebarModule,
|
||||
TabsModule,
|
||||
UtilitiesModule,
|
||||
ModalModule
|
||||
} from '@coreui/angular';
|
||||
|
||||
import { IconModule, IconSetService } from '@coreui/icons-angular';
|
||||
|
||||
const APP_CONTAINERS = [
|
||||
DefaultFooterComponent,
|
||||
DefaultHeaderComponent,
|
||||
DefaultLayoutComponent
|
||||
];
|
||||
export function loginStatusProviderFactory(provider: loginChecker) {
|
||||
return () => provider.load();
|
||||
}
|
||||
@NgModule({
|
||||
declarations: [AppComponent, ...APP_CONTAINERS],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
BrowserAnimationsModule,
|
||||
AppRoutingModule,
|
||||
AvatarModule,
|
||||
BreadcrumbModule,
|
||||
FooterModule,
|
||||
DropdownModule,
|
||||
GridModule,
|
||||
HeaderModule,
|
||||
SidebarModule,
|
||||
IconModule,
|
||||
NavModule,
|
||||
HttpClientModule,
|
||||
ButtonModule,
|
||||
FormModule,
|
||||
UtilitiesModule,
|
||||
ButtonGroupModule,
|
||||
ReactiveFormsModule,
|
||||
FormsModule,
|
||||
SidebarModule,
|
||||
SharedModule,
|
||||
TabsModule,
|
||||
ListGroupModule,
|
||||
ProgressModule,
|
||||
BadgeModule,
|
||||
ListGroupModule,
|
||||
CardModule,
|
||||
NgScrollbarModule,
|
||||
ModalModule,
|
||||
FontAwesomeModule
|
||||
],
|
||||
providers: [
|
||||
{
|
||||
provide: LocationStrategy,
|
||||
useClass: HashLocationStrategy
|
||||
},
|
||||
MikroWizardProvider,
|
||||
dataProvider,
|
||||
loginChecker,
|
||||
IconSetService,
|
||||
provideDateFnsAdapter(),
|
||||
provideHighlightOptions({
|
||||
fullLibraryLoader: () => import('highlight.js'),
|
||||
lineNumbersLoader: () => import('ngx-highlightjs/line-numbers')
|
||||
}),
|
||||
{
|
||||
provide: APP_INITIALIZER,
|
||||
useFactory: loginStatusProviderFactory,
|
||||
deps: [loginChecker],
|
||||
multi: true,
|
||||
},
|
||||
Title
|
||||
],
|
||||
bootstrap: [AppComponent]
|
||||
})
|
||||
export class AppModule {
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue