mirror of https://github.com/abpframework/abp.git
5 changed files with 40 additions and 86 deletions
@ -1,12 +1,14 @@ |
|||||
import { Component } from '@angular/core'; |
import { Component } from '@angular/core'; |
||||
|
import { InternetConnectionStatusComponent, LoaderBarComponent } from '@abp/ng.theme.shared'; |
||||
|
import { DynamicLayoutComponent } from '@abp/ng.core'; |
||||
|
|
||||
@Component({ |
@Component({ |
||||
standalone: false, |
|
||||
selector: 'app-root', |
selector: 'app-root', |
||||
template: ` |
template: ` |
||||
<abp-loader-bar></abp-loader-bar> |
<abp-loader-bar></abp-loader-bar> |
||||
<abp-dynamic-layout></abp-dynamic-layout> |
<abp-dynamic-layout></abp-dynamic-layout> |
||||
<abp-internet-status></abp-internet-status> |
<abp-internet-status></abp-internet-status> |
||||
`,
|
`,
|
||||
|
imports: [LoaderBarComponent, DynamicLayoutComponent, InternetConnectionStatusComponent], |
||||
}) |
}) |
||||
export class AppComponent {} |
export class AppComponent {} |
||||
|
|||||
@ -1,58 +0,0 @@ |
|||||
import { NgModule } from '@angular/core'; |
|
||||
import { BrowserModule } from '@angular/platform-browser'; |
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; |
|
||||
import { CoreModule, provideAbpCore, withOptions } from '@abp/ng.core'; |
|
||||
import { registerLocale } from '@abp/ng.core/locale'; |
|
||||
import { |
|
||||
InternetConnectionStatusComponent, |
|
||||
ThemeSharedModule, |
|
||||
provideAbpThemeShared, |
|
||||
} from '@abp/ng.theme.shared'; |
|
||||
import { ThemeLeptonXModule } from '@abp/ng.theme.lepton-x'; |
|
||||
import { SideMenuLayoutModule } from '@abp/ng.theme.lepton-x/layouts'; |
|
||||
import { provideAbpOAuth } from '@abp/ng.oauth'; |
|
||||
import { provideSettingManagementConfig } from '@abp/ng.setting-management/config'; |
|
||||
import { provideAccountConfig } from '@abp/ng.account/config'; |
|
||||
import { provideIdentityConfig } from '@abp/ng.identity/config'; |
|
||||
import { provideTenantManagementConfig } from '@abp/ng.tenant-management/config'; |
|
||||
import { provideFeatureManagementConfig } from '@abp/ng.feature-management'; |
|
||||
import { AccountLayoutModule } from '@abp/ng.theme.lepton-x/account'; |
|
||||
import { environment } from '../environments/environment'; |
|
||||
import { AppRoutingModule } from './app-routing.module'; |
|
||||
import { AppComponent } from './app.component'; |
|
||||
import { APP_ROUTE_PROVIDER } from './route.provider'; |
|
||||
|
|
||||
@NgModule({ |
|
||||
imports: [ |
|
||||
BrowserModule, |
|
||||
BrowserAnimationsModule, |
|
||||
AppRoutingModule, |
|
||||
CoreModule, |
|
||||
ThemeSharedModule, |
|
||||
ThemeLeptonXModule.forRoot(), |
|
||||
SideMenuLayoutModule.forRoot(), |
|
||||
AccountLayoutModule.forRoot(), |
|
||||
InternetConnectionStatusComponent, |
|
||||
], |
|
||||
providers: [ |
|
||||
APP_ROUTE_PROVIDER, |
|
||||
provideAbpCore( |
|
||||
withOptions({ |
|
||||
environment, |
|
||||
registerLocaleFn: registerLocale(), |
|
||||
sendNullsAsQueryParam: false, |
|
||||
skipGetAppConfiguration: false, |
|
||||
}), |
|
||||
), |
|
||||
provideAbpOAuth(), |
|
||||
provideAbpThemeShared(), |
|
||||
provideSettingManagementConfig(), |
|
||||
provideAccountConfig(), |
|
||||
provideIdentityConfig(), |
|
||||
provideTenantManagementConfig(), |
|
||||
provideFeatureManagementConfig(), |
|
||||
], |
|
||||
declarations: [AppComponent], |
|
||||
bootstrap: [AppComponent], |
|
||||
}) |
|
||||
export class AppModule {} |
|
||||
@ -1,13 +0,0 @@ |
|||||
import { CoreModule } from '@abp/ng.core'; |
|
||||
import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap'; |
|
||||
import { NgModule } from '@angular/core'; |
|
||||
import { ThemeSharedModule } from '@abp/ng.theme.shared'; |
|
||||
import { NgxValidateCoreModule } from '@ngx-validate/core'; |
|
||||
|
|
||||
@NgModule({ |
|
||||
declarations: [], |
|
||||
imports: [CoreModule, ThemeSharedModule, NgbDropdownModule, NgxValidateCoreModule], |
|
||||
exports: [CoreModule, ThemeSharedModule, NgbDropdownModule, NgxValidateCoreModule], |
|
||||
providers: [], |
|
||||
}) |
|
||||
export class SharedModule {} |
|
||||
@ -1,13 +1,43 @@ |
|||||
import { enableProdMode } from '@angular/core'; |
import { enableProdMode } from '@angular/core'; |
||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; |
import { provideRouter } from '@angular/router'; |
||||
|
import { bootstrapApplication } from '@angular/platform-browser'; |
||||
|
|
||||
import { AppModule } from './app/app.module'; |
|
||||
import { environment } from './environments/environment'; |
import { environment } from './environments/environment'; |
||||
|
import { APP_ROUTE_PROVIDER } from './app/route.provider'; |
||||
|
import { provideAbpCore, withOptions } from '@abp/ng.core'; |
||||
|
import { registerLocale } from '@abp/ng.core/locale'; |
||||
|
import { provideAbpOAuth } from '@abp/ng.oauth'; |
||||
|
import { provideAbpThemeShared } from '@abp/ng.theme.shared'; |
||||
|
import { provideSettingManagementConfig } from '@abp/ng.setting-management/config'; |
||||
|
import { provideAccountConfig } from '@abp/ng.account/config'; |
||||
|
import { provideIdentityConfig } from '@abp/ng.identity/config'; |
||||
|
import { provideTenantManagementConfig } from '@abp/ng.tenant-management/config'; |
||||
|
import { provideFeatureManagementConfig } from '@abp/ng.feature-management'; |
||||
|
import { appRoutes } from './app/app.routes'; |
||||
|
import { AppComponent } from './app/app.component'; |
||||
|
|
||||
if (environment.production) { |
if (environment.production) { |
||||
enableProdMode(); |
enableProdMode(); |
||||
} |
} |
||||
|
|
||||
platformBrowserDynamic() |
bootstrapApplication(AppComponent, { |
||||
.bootstrapModule(AppModule) |
providers: [ |
||||
.catch(err => console.error(err)); |
provideRouter(appRoutes), |
||||
|
APP_ROUTE_PROVIDER, |
||||
|
provideAbpCore( |
||||
|
withOptions({ |
||||
|
environment, |
||||
|
registerLocaleFn: registerLocale(), |
||||
|
sendNullsAsQueryParam: false, |
||||
|
skipGetAppConfiguration: false, |
||||
|
}), |
||||
|
), |
||||
|
provideAbpOAuth(), |
||||
|
provideAbpThemeShared(), |
||||
|
provideSettingManagementConfig(), |
||||
|
provideAccountConfig(), |
||||
|
provideIdentityConfig(), |
||||
|
provideTenantManagementConfig(), |
||||
|
provideFeatureManagementConfig(), |
||||
|
], |
||||
|
}).catch(err => console.error(err)); |
||||
|
|||||
Loading…
Reference in new issue