2019-07-15 14:54:19 +00:00
|
|
|
// angular modules
|
2019-11-05 16:19:33 +00:00
|
|
|
import { NgModule, APP_INITIALIZER, ModuleWithProviders, Injector,Optional,SkipSelf } from '@angular/core';
|
2019-07-15 14:54:19 +00:00
|
|
|
import { CommonModule, DatePipe } from '@angular/common';
|
|
|
|
import { HttpClientModule, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
|
|
import { FormsModule } from '@angular/forms';
|
|
|
|
|
|
|
|
// external modules
|
|
|
|
import { OAuthModule,AuthConfig, OAuthService, OAuthStorage } from 'angular-oauth2-oidc';
|
|
|
|
import { StoreModule,Store } from '@ngrx/store';
|
|
|
|
import { EffectsModule } from '@ngrx/effects';
|
|
|
|
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
2019-07-18 16:59:42 +00:00
|
|
|
import {UploadxModule } from 'ngx-uploadx';
|
2019-07-15 14:54:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
// routing module
|
|
|
|
import { AppCommonRoutingModule } from './common-routing.module';
|
|
|
|
|
|
|
|
import { MODULE_NAME } from './module-name';
|
|
|
|
|
|
|
|
//components
|
|
|
|
import { SafePipe } from './shared/safe.pipe';
|
2019-12-19 12:32:51 +00:00
|
|
|
import { AuthConfigFactory,IAuthconfigFactory} from './shared/authconfigFactory';
|
2019-11-04 17:47:15 +00:00
|
|
|
import { AppComponent} from './components/app/app.component';
|
2019-07-15 14:54:19 +00:00
|
|
|
import { AuthCallbackComponent } from './components/auth-callback/auth-callback.component';
|
|
|
|
import { SessionClearedComponent } from './components/session-cleared/session-cleared.component';
|
|
|
|
import { ResumableFileUploadComponent } from './components/resumable-file-upload/resumable-file-upload.component';
|
|
|
|
import { NotFoundComponent } from './components/not-found/not-found.component';
|
2019-11-08 12:37:38 +00:00
|
|
|
import { NotImplementedComponent } from './components/not-implemented/not-implemented.component';
|
2019-07-15 14:54:19 +00:00
|
|
|
import { SidePanelComponent } from './components/side-panel/side-panel.component';
|
|
|
|
import { TimespanComponent } from './components/timespan/timespan.component';
|
|
|
|
import { TagInputComponent } from './components/tag-input/tag-input.component';
|
2020-01-08 10:37:37 +00:00
|
|
|
import {MenuBackgroundComponent} from './components/menu-background/menu-background.component';
|
2019-07-17 09:51:14 +00:00
|
|
|
import {IEventMessage } from './models/event.message';
|
|
|
|
import { IItem, Item } from './models/item';
|
|
|
|
import {IItemType} from './models/item.type';
|
|
|
|
import {IItemTypes} from './models/item.types';
|
|
|
|
import {IItemTask,ItemTask} from './models/itemTask';
|
|
|
|
import {IListItem} from './models/list.item';
|
|
|
|
import {ITypeaheadItem} from './models/typeahead.item';
|
|
|
|
import {IUser} from './models/user';
|
|
|
|
import * as commonActions from './actions/app-common.actions';
|
|
|
|
import * as commonReducers from './reducers/app-common.reducer';
|
|
|
|
import * as commonEffects from './effects/app-common.effects';
|
2019-07-12 11:07:31 +00:00
|
|
|
|
2019-11-12 21:50:57 +00:00
|
|
|
export {
|
2019-07-16 14:15:40 +00:00
|
|
|
SafePipe,
|
|
|
|
AuthCallbackComponent,
|
2019-11-04 17:47:15 +00:00
|
|
|
AppComponent,
|
2019-07-16 14:15:40 +00:00
|
|
|
SessionClearedComponent,
|
|
|
|
ResumableFileUploadComponent,
|
|
|
|
NotFoundComponent,
|
2019-11-08 12:37:38 +00:00
|
|
|
NotImplementedComponent,
|
2019-07-16 14:15:40 +00:00
|
|
|
SidePanelComponent,
|
|
|
|
TimespanComponent,
|
2019-07-17 09:51:14 +00:00
|
|
|
TagInputComponent,
|
|
|
|
IEventMessage,
|
|
|
|
IItem,
|
|
|
|
Item,
|
|
|
|
IItemType,
|
|
|
|
IItemTypes,
|
|
|
|
IItemTask,
|
|
|
|
ItemTask,
|
|
|
|
IListItem,
|
|
|
|
ITypeaheadItem,
|
|
|
|
IUser,
|
|
|
|
commonActions,
|
2019-12-19 12:32:51 +00:00
|
|
|
commonReducers,
|
|
|
|
IAuthconfigFactory,
|
2020-01-08 10:37:37 +00:00
|
|
|
AuthConfigFactory,
|
|
|
|
MenuBackgroundComponent
|
2019-07-16 14:15:40 +00:00
|
|
|
};
|
|
|
|
|
2019-07-12 11:07:31 +00:00
|
|
|
@NgModule({
|
|
|
|
imports: [
|
2019-07-15 14:54:19 +00:00
|
|
|
CommonModule,
|
|
|
|
HttpClientModule,
|
|
|
|
AppCommonRoutingModule,
|
2019-07-17 09:51:14 +00:00
|
|
|
StoreModule.forFeature(MODULE_NAME, commonReducers.reducer ),
|
|
|
|
EffectsModule.forFeature([commonEffects.AppCommonEffects]),
|
2019-07-15 14:54:19 +00:00
|
|
|
OAuthModule.forRoot(),
|
|
|
|
NgbModule,
|
2019-07-18 16:59:42 +00:00
|
|
|
FormsModule,
|
|
|
|
UploadxModule
|
2019-07-15 14:54:19 +00:00
|
|
|
],
|
|
|
|
declarations: [
|
2019-11-04 17:47:15 +00:00
|
|
|
AppComponent,
|
2019-07-15 14:54:19 +00:00
|
|
|
AuthCallbackComponent,
|
|
|
|
SidePanelComponent,
|
|
|
|
SafePipe,
|
|
|
|
NotFoundComponent,
|
2019-11-08 12:37:38 +00:00
|
|
|
NotImplementedComponent,
|
2019-07-15 14:54:19 +00:00
|
|
|
ResumableFileUploadComponent,
|
|
|
|
TimespanComponent,
|
|
|
|
TagInputComponent,
|
2020-01-08 10:37:37 +00:00
|
|
|
SessionClearedComponent,
|
|
|
|
MenuBackgroundComponent
|
2019-07-12 11:07:31 +00:00
|
|
|
],
|
2019-10-30 16:56:56 +00:00
|
|
|
exports: [
|
|
|
|
NgbModule,
|
|
|
|
UploadxModule,
|
2019-10-30 17:13:32 +00:00
|
|
|
CommonModule,
|
2019-11-04 17:47:15 +00:00
|
|
|
AppComponent,
|
2019-10-30 16:56:56 +00:00
|
|
|
ResumableFileUploadComponent,
|
2019-10-28 13:18:25 +00:00
|
|
|
AuthCallbackComponent,
|
|
|
|
SidePanelComponent,
|
|
|
|
SafePipe,
|
|
|
|
NotFoundComponent,
|
2019-11-08 12:37:38 +00:00
|
|
|
NotImplementedComponent,
|
2019-10-28 13:18:25 +00:00
|
|
|
ResumableFileUploadComponent,
|
|
|
|
TimespanComponent,
|
|
|
|
TagInputComponent,
|
2020-01-08 10:37:37 +00:00
|
|
|
SessionClearedComponent,
|
|
|
|
MenuBackgroundComponent
|
2019-10-28 13:18:25 +00:00
|
|
|
]
|
2019-07-12 11:07:31 +00:00
|
|
|
})
|
2019-07-15 14:54:19 +00:00
|
|
|
export class AppCommonModule {
|
|
|
|
}
|